@verdocs/web-sdk 4.0.9 → 4.1.2

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 (493) hide show
  1. package/dist/cjs/{EnvelopeStore-13f60ae9.js → EnvelopeStore-db4f3f17.js} +10 -0
  2. package/dist/cjs/{TemplateFieldStore-6a79aae7.js → TemplateFieldStore-2db70818.js} +2 -6
  3. package/dist/cjs/{TemplateRoleStore-06db6e56.js → TemplateRoleStore-fb869e9a.js} +0 -5
  4. package/dist/cjs/{TemplateStore-5a46be5e.js → TemplateStore-037833e5.js} +20 -5
  5. package/dist/cjs/index-cfdfab36.js +18 -18
  6. package/dist/cjs/{interact.min-3f0b5e7d.js → interact.min-ee721bdc.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{utils-5eb11b46.js → utils-d9ecd23d.js} +5 -12
  9. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-build.cjs.entry.js +29 -24
  11. package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-button_3.cjs.entry.js +5 -5
  13. package/dist/cjs/{verdocs-checkbox_5.cjs.entry.js → verdocs-checkbox_3.cjs.entry.js} +5 -93
  14. package/dist/cjs/verdocs-component-error.cjs.entry.js +21 -0
  15. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +30 -11
  16. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +4 -6
  17. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  22. package/dist/cjs/{verdocs-field-attachment_14.cjs.entry.js → verdocs-field-attachment_13.cjs.entry.js} +202 -377
  23. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +5 -5
  26. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
  28. package/dist/cjs/{verdocs-organization-card.cjs.entry.js → verdocs-organization-card_2.cjs.entry.js} +85 -5
  29. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-preview_10.cjs.entry.js +156 -79
  31. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +2 -2
  32. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +12 -12
  33. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +11 -24
  36. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -2
  37. package/dist/cjs/verdocs-sign.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +11 -3
  40. package/dist/cjs/verdocs-tabs.cjs.entry.js +2 -2
  41. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +210 -0
  43. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  46. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  49. package/dist/collection/collection-manifest.json +0 -1
  50. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +4 -4
  51. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +14 -2
  52. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +2 -2
  53. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  54. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +2 -2
  55. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +5 -1
  56. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.css +2 -2
  57. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +5 -1
  58. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +5 -1
  59. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +13 -21
  60. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +36 -5
  61. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +10 -1
  62. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +13 -2
  63. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.css +1 -0
  64. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +6 -2
  65. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +5 -1
  66. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +2 -2
  67. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +6 -2
  68. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +5 -1
  69. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +7 -5
  70. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.css +1 -1
  71. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +5 -1
  72. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +7 -3
  73. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +6 -2
  74. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +5 -1
  75. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +5 -1
  76. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  77. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +9 -7
  78. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +11 -0
  79. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +7 -9
  80. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -1
  81. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  82. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +6 -7
  83. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  84. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  85. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  86. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  87. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +10 -24
  88. package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +31 -22
  89. package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +42 -19
  90. package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
  91. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +85 -36
  92. package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.js +5 -2
  93. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +9 -1
  94. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +30 -8
  95. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  96. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  97. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  98. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.css +7 -3
  99. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +118 -43
  100. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.css +2 -1
  101. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +22 -27
  102. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +76 -33
  103. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +21 -29
  104. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -1
  105. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +20 -28
  106. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.css +1 -1
  107. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +26 -28
  108. package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.css +1 -1
  109. package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -1
  110. package/dist/collection/components/fields/verdocs-field-radio-button-group/verdocs-field-radio-button.js +22 -29
  111. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.css +1 -1
  112. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +27 -30
  113. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.css +1 -1
  114. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +21 -27
  115. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
  116. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +19 -31
  117. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +1 -1
  118. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +21 -31
  119. package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js +5 -5
  120. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.js +5 -11
  121. package/dist/collection/components/settings/verdocs-settings-organization/verdocs-settings-organization.js +0 -8
  122. package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.css +37 -2
  123. package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js +50 -25
  124. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  125. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  126. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  127. package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +1 -0
  128. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  129. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  130. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  131. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  132. package/dist/collection/utils/EnvelopeStore.js +10 -0
  133. package/dist/collection/utils/TemplateFieldStore.js +2 -10
  134. package/dist/collection/utils/TemplateRoleStore.js +0 -5
  135. package/dist/collection/utils/TemplateStore.js +18 -3
  136. package/dist/collection/utils/utils.js +5 -12
  137. package/dist/components/EnvelopeStore.js +10 -0
  138. package/dist/components/TemplateFieldStore.js +2 -6
  139. package/dist/components/TemplateRoleStore.js +0 -5
  140. package/dist/components/TemplateStore.js +18 -3
  141. package/dist/components/index.js +0 -2
  142. package/dist/components/utils.js +5 -12
  143. package/dist/components/verdocs-auth.js +2 -2
  144. package/dist/components/verdocs-build.js +35 -24
  145. package/dist/components/verdocs-button-panel.js +1 -94
  146. package/dist/components/verdocs-button-panel2.js +96 -0
  147. package/dist/components/verdocs-button2.js +1 -1
  148. package/dist/components/verdocs-checkbox2.js +1 -1
  149. package/dist/components/verdocs-component-error2.js +1 -1
  150. package/dist/components/verdocs-contact-picker2.js +45 -11
  151. package/dist/components/verdocs-dialog2.js +1 -1
  152. package/dist/components/verdocs-dropdown2.js +1 -1
  153. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  154. package/dist/components/verdocs-envelopes-list.js +6 -6
  155. package/dist/components/verdocs-field-attachment2.js +91 -39
  156. package/dist/components/verdocs-field-checkbox2.js +24 -29
  157. package/dist/components/verdocs-field-date2.js +22 -30
  158. package/dist/components/verdocs-field-dropdown2.js +21 -28
  159. package/dist/components/verdocs-field-initial2.js +21 -28
  160. package/dist/components/verdocs-field-payment.js +1 -1
  161. package/dist/components/verdocs-field-radio-button2.js +24 -31
  162. package/dist/components/verdocs-field-signature2.js +22 -30
  163. package/dist/components/verdocs-field-textarea2.js +20 -27
  164. package/dist/components/verdocs-field-textbox2.js +20 -32
  165. package/dist/components/verdocs-field-timestamp2.js +21 -32
  166. package/dist/components/verdocs-file-chooser2.js +1 -1
  167. package/dist/components/verdocs-help-icon2.js +2 -2
  168. package/dist/components/verdocs-initial-dialog2.js +9 -7
  169. package/dist/components/verdocs-kba-dialog.js +5 -5
  170. package/dist/components/verdocs-loader2.js +1 -1
  171. package/dist/components/verdocs-ok-dialog2.js +2 -2
  172. package/dist/components/verdocs-organization-card.js +22 -8
  173. package/dist/components/verdocs-pagination2.js +1 -1
  174. package/dist/components/verdocs-portal2.js +2 -2
  175. package/dist/components/verdocs-preview2.js +37 -19
  176. package/dist/components/verdocs-progress-bar2.js +2 -2
  177. package/dist/components/verdocs-quick-filter2.js +1 -1
  178. package/dist/components/verdocs-quick-functions2.js +1 -1
  179. package/dist/components/verdocs-radio-button2.js +1 -1
  180. package/dist/components/verdocs-search-box2.js +1 -1
  181. package/dist/components/verdocs-search-tabs.js +1 -1
  182. package/dist/components/verdocs-search.js +1 -1
  183. package/dist/components/verdocs-select-input2.js +1 -1
  184. package/dist/components/verdocs-send2.js +95 -36
  185. package/dist/components/verdocs-settings-api-keys2.js +5 -5
  186. package/dist/components/verdocs-settings-members2.js +5 -11
  187. package/dist/components/verdocs-settings-organization2.js +0 -8
  188. package/dist/components/verdocs-settings.js +8 -9
  189. package/dist/components/verdocs-signature-dialog2.js +6 -7
  190. package/dist/components/verdocs-spinner2.js +1 -1
  191. package/dist/components/verdocs-status-indicator2.js +11 -3
  192. package/dist/components/verdocs-table2.js +3 -5
  193. package/dist/components/verdocs-tabs2.js +2 -2
  194. package/dist/components/verdocs-template-build-tabs2.js +57 -27
  195. package/dist/components/verdocs-template-card.js +1 -1
  196. package/dist/components/verdocs-template-document-page2.js +1 -1
  197. package/dist/components/verdocs-template-role-properties2.js +7 -7
  198. package/dist/components/verdocs-template-roles2.js +1 -0
  199. package/dist/components/verdocs-template-sender2.js +1 -1
  200. package/dist/components/verdocs-template-star2.js +1 -1
  201. package/dist/components/verdocs-template-tags.js +1 -1
  202. package/dist/components/verdocs-templates-list.js +7 -7
  203. package/dist/components/verdocs-text-input2.js +2 -2
  204. package/dist/components/verdocs-toggle-button2.js +1 -1
  205. package/dist/components/verdocs-toggle.js +1 -1
  206. package/dist/components/verdocs-toolbar-icon2.js +1 -1
  207. package/dist/components/verdocs-upload-dialog2.js +1 -1
  208. package/dist/esm/{EnvelopeStore-fefba6fd.js → EnvelopeStore-9df042b5.js} +10 -0
  209. package/dist/esm/{TemplateFieldStore-d7516adf.js → TemplateFieldStore-32329b5a.js} +2 -6
  210. package/dist/esm/{TemplateRoleStore-ddc3b96f.js → TemplateRoleStore-0a4f98cb.js} +0 -5
  211. package/dist/esm/{TemplateStore-df5484bb.js → TemplateStore-78ad24d7.js} +20 -5
  212. package/dist/esm/index-b89cf6a4.js +18 -18
  213. package/dist/esm/{interact.min-b055a9b6.js → interact.min-4fac3f2b.js} +1 -1
  214. package/dist/esm/loader.js +1 -1
  215. package/dist/esm/{utils-61c1093b.js → utils-d1c95309.js} +6 -13
  216. package/dist/esm/verdocs-auth.entry.js +2 -2
  217. package/dist/esm/verdocs-build.entry.js +29 -24
  218. package/dist/esm/verdocs-button-panel.entry.js +2 -2
  219. package/dist/esm/verdocs-button_3.entry.js +5 -5
  220. package/dist/esm/{verdocs-checkbox_5.entry.js → verdocs-checkbox_3.entry.js} +6 -92
  221. package/dist/esm/verdocs-component-error.entry.js +17 -0
  222. package/dist/esm/verdocs-contact-picker_2.entry.js +30 -11
  223. package/dist/esm/verdocs-dialog_2.entry.js +4 -6
  224. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  225. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  226. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  227. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  228. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  229. package/dist/esm/{verdocs-field-attachment_14.entry.js → verdocs-field-attachment_13.entry.js} +205 -379
  230. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  231. package/dist/esm/verdocs-file-chooser_2.entry.js +3 -3
  232. package/dist/esm/verdocs-kba-dialog.entry.js +5 -5
  233. package/dist/esm/verdocs-loader.entry.js +1 -1
  234. package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
  235. package/dist/esm/{verdocs-organization-card.entry.js → verdocs-organization-card_2.entry.js} +86 -7
  236. package/dist/esm/verdocs-pagination_2.entry.js +3 -3
  237. package/dist/esm/verdocs-preview_10.entry.js +156 -79
  238. package/dist/esm/verdocs-quick-functions_2.entry.js +2 -2
  239. package/dist/esm/verdocs-radio-button_3.entry.js +12 -12
  240. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  241. package/dist/esm/verdocs-search.entry.js +1 -1
  242. package/dist/esm/verdocs-settings-api-keys_4.entry.js +11 -24
  243. package/dist/esm/verdocs-settings.entry.js +1 -2
  244. package/dist/esm/verdocs-sign.entry.js +2 -2
  245. package/dist/esm/verdocs-spinner.entry.js +1 -1
  246. package/dist/esm/verdocs-status-indicator.entry.js +11 -3
  247. package/dist/esm/verdocs-tabs.entry.js +2 -2
  248. package/dist/esm/verdocs-template-card.entry.js +1 -1
  249. package/dist/esm/verdocs-template-document-page_2.entry.js +205 -0
  250. package/dist/esm/verdocs-template-star.entry.js +1 -1
  251. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  252. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  253. package/dist/esm/verdocs-toggle.entry.js +1 -1
  254. package/dist/esm/verdocs-view.entry.js +1 -1
  255. package/dist/esm/verdocs-web-sdk.js +1 -1
  256. package/dist/esm-es5/{EnvelopeStore-fefba6fd.js → EnvelopeStore-9df042b5.js} +1 -1
  257. package/dist/esm-es5/TemplateFieldStore-32329b5a.js +1 -0
  258. package/dist/esm-es5/TemplateRoleStore-0a4f98cb.js +1 -0
  259. package/dist/esm-es5/TemplateStore-78ad24d7.js +1 -0
  260. package/dist/esm-es5/index-b89cf6a4.js +1 -1
  261. package/dist/esm-es5/{interact.min-b055a9b6.js → interact.min-4fac3f2b.js} +1 -1
  262. package/dist/esm-es5/loader.js +1 -1
  263. package/dist/esm-es5/{utils-61c1093b.js → utils-d1c95309.js} +1 -1
  264. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  265. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  266. package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
  267. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  268. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -0
  269. package/dist/esm-es5/verdocs-component-error.entry.js +1 -0
  270. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  271. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  272. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  273. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  274. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  275. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  276. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  277. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -0
  278. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  279. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  280. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  281. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  282. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  283. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -0
  284. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  285. package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
  286. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
  287. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  288. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  289. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  290. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  291. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  292. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  293. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  294. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  295. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  296. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  297. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
  298. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  299. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  300. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  301. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  302. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  303. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  304. package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +3 -3
  305. package/dist/types/components/controls/verdocs-button-panel/verdocs-button-panel.d.ts +12 -0
  306. package/dist/types/components/controls/verdocs-checkbox/verdocs-checkbox.d.ts +1 -1
  307. package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +1 -1
  308. package/dist/types/components/controls/verdocs-file-chooser/verdocs-file-chooser.d.ts +4 -0
  309. package/dist/types/components/controls/verdocs-help-icon/verdocs-help-icon.d.ts +4 -0
  310. package/dist/types/components/controls/verdocs-loader/verdocs-loader.d.ts +4 -0
  311. package/dist/types/components/controls/verdocs-organization-card/verdocs-organization-card.d.ts +9 -2
  312. package/dist/types/components/controls/verdocs-pagination/verdocs-pagination.d.ts +9 -0
  313. package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +11 -0
  314. package/dist/types/components/controls/verdocs-progress-bar/verdocs-progress-bar.d.ts +5 -1
  315. package/dist/types/components/controls/verdocs-quick-filter/verdocs-quick-filter.d.ts +4 -0
  316. package/dist/types/components/controls/verdocs-radio-button/verdocs-radio-button.d.ts +1 -1
  317. package/dist/types/components/controls/verdocs-select-input/verdocs-select-input.d.ts +5 -1
  318. package/dist/types/components/controls/verdocs-spinner/verdocs-spinner.d.ts +4 -0
  319. package/dist/types/components/controls/verdocs-table/verdocs-table.d.ts +4 -0
  320. package/dist/types/components/controls/verdocs-tabs/verdocs-tabs.d.ts +4 -0
  321. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +5 -1
  322. package/dist/types/components/controls/verdocs-toggle/verdocs-toggle.d.ts +5 -1
  323. package/dist/types/components/controls/verdocs-toggle-button/verdocs-toggle-button.d.ts +4 -0
  324. package/dist/types/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.d.ts +4 -0
  325. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +1 -3
  326. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +10 -22
  327. package/dist/types/components/embeds/verdocs-build/verdocs-build.d.ts +8 -4
  328. package/dist/types/components/embeds/verdocs-preview/verdocs-preview.d.ts +6 -0
  329. package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +17 -7
  330. package/dist/types/components/embeds/verdocs-settings/verdocs-settings.d.ts +4 -0
  331. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +3 -0
  332. package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +25 -10
  333. package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +3 -3
  334. package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +1 -2
  335. package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +7 -2
  336. package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +7 -2
  337. package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +2 -1
  338. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +1 -1
  339. package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +2 -1
  340. package/dist/types/components/settings/verdocs-settings-organization/verdocs-settings-organization.d.ts +0 -1
  341. package/dist/types/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.d.ts +5 -3
  342. package/dist/types/components.d.ts +531 -253
  343. package/dist/types/utils/TemplateFieldStore.d.ts +0 -1
  344. package/dist/verdocs-web-sdk/{p-0003dac3.entry.js → p-000b8414.entry.js} +1 -1
  345. package/dist/verdocs-web-sdk/p-05c9b6c9.system.entry.js +1 -0
  346. package/dist/verdocs-web-sdk/{p-db9ef2cc.entry.js → p-0a0ac65f.entry.js} +1 -1
  347. package/dist/verdocs-web-sdk/p-0d5fb952.system.js +1 -0
  348. package/dist/verdocs-web-sdk/{p-79407dd8.entry.js → p-0ff14c4d.entry.js} +1 -1
  349. package/dist/verdocs-web-sdk/p-13450dcd.system.entry.js +1 -0
  350. package/dist/verdocs-web-sdk/{p-c1f7cfff.system.entry.js → p-16850eac.system.entry.js} +1 -1
  351. package/dist/verdocs-web-sdk/{p-82fbf5b5.entry.js → p-1dd1d686.entry.js} +1 -1
  352. package/dist/verdocs-web-sdk/{p-79cef953.system.entry.js → p-1fec2d1e.system.entry.js} +1 -1
  353. package/dist/verdocs-web-sdk/{p-483cc30b.entry.js → p-203d8ff0.entry.js} +1 -1
  354. package/dist/verdocs-web-sdk/{p-c543852a.entry.js → p-225418c7.entry.js} +1 -1
  355. package/dist/verdocs-web-sdk/p-2b6566eb.entry.js +1 -0
  356. package/dist/verdocs-web-sdk/{p-c244e090.entry.js → p-3093ede7.entry.js} +1 -1
  357. package/dist/verdocs-web-sdk/{p-819187c7.system.entry.js → p-314321b8.system.entry.js} +1 -1
  358. package/dist/verdocs-web-sdk/p-316fc185.js +1 -0
  359. package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
  360. package/dist/verdocs-web-sdk/p-3a8b2213.system.entry.js +1 -0
  361. package/dist/verdocs-web-sdk/p-4291db9f.entry.js +1 -0
  362. package/dist/verdocs-web-sdk/{p-84f477d1.entry.js → p-42ec5f5b.entry.js} +1 -1
  363. package/dist/verdocs-web-sdk/{p-aaa5c11a.system.entry.js → p-43962d76.system.entry.js} +1 -1
  364. package/dist/verdocs-web-sdk/p-4542fd4b.entry.js +1 -0
  365. package/dist/verdocs-web-sdk/p-45cf0ab5.entry.js +1 -0
  366. package/dist/verdocs-web-sdk/p-4df630c2.system.entry.js +1 -0
  367. package/dist/verdocs-web-sdk/{p-35859fe1.system.entry.js → p-5070ad92.system.entry.js} +1 -1
  368. package/dist/verdocs-web-sdk/p-515ee177.system.entry.js +1 -0
  369. package/dist/verdocs-web-sdk/{p-4cd628a3.system.entry.js → p-5309a156.system.entry.js} +1 -1
  370. package/dist/verdocs-web-sdk/p-540d9467.entry.js +1 -0
  371. package/dist/verdocs-web-sdk/{p-4424d71f.system.entry.js → p-597bd8aa.system.entry.js} +1 -1
  372. package/dist/verdocs-web-sdk/{p-ac014bc9.system.entry.js → p-5be462d9.system.entry.js} +1 -1
  373. package/dist/verdocs-web-sdk/{p-6d1bdae8.system.js → p-5bec8b75.system.js} +1 -1
  374. package/dist/verdocs-web-sdk/{p-e92688db.entry.js → p-5df130eb.entry.js} +1 -1
  375. package/dist/verdocs-web-sdk/p-5e3e9c4a.system.js +1 -0
  376. package/dist/verdocs-web-sdk/{p-a88760cd.entry.js → p-62728531.entry.js} +1 -1
  377. package/dist/verdocs-web-sdk/{p-35157a14.js → p-627f774b.js} +1 -1
  378. package/dist/verdocs-web-sdk/p-62af2ee6.system.entry.js +1 -0
  379. package/dist/verdocs-web-sdk/{p-83d0f5e1.entry.js → p-67c3b3d1.entry.js} +1 -1
  380. package/dist/verdocs-web-sdk/{p-8fbf27ec.entry.js → p-6c5aee88.entry.js} +1 -1
  381. package/dist/verdocs-web-sdk/{p-7b009ca9.entry.js → p-71eeeff4.entry.js} +1 -1
  382. package/dist/verdocs-web-sdk/p-72c7e548.entry.js +1 -0
  383. package/dist/verdocs-web-sdk/p-73042665.entry.js +1 -0
  384. package/dist/verdocs-web-sdk/p-748ed4ef.entry.js +1 -0
  385. package/dist/verdocs-web-sdk/{p-ca71117e.system.entry.js → p-76297fa0.system.entry.js} +1 -1
  386. package/dist/verdocs-web-sdk/p-7b222135.system.entry.js +1 -0
  387. package/dist/verdocs-web-sdk/{p-7a9b4f83.entry.js → p-7b8ae86c.entry.js} +1 -1
  388. package/dist/verdocs-web-sdk/p-7c3b1e47.entry.js +1 -0
  389. package/dist/verdocs-web-sdk/{p-7ab60efa.entry.js → p-7e6fa885.entry.js} +1 -1
  390. package/dist/verdocs-web-sdk/{p-9a57eba9.entry.js → p-7ed27280.entry.js} +1 -1
  391. package/dist/verdocs-web-sdk/{p-db6a7e39.entry.js → p-7fe48d2e.entry.js} +1 -1
  392. package/dist/verdocs-web-sdk/{p-943c7b8f.system.entry.js → p-84781ec3.system.entry.js} +1 -1
  393. package/dist/verdocs-web-sdk/{p-c6645da7.system.entry.js → p-84caf3e1.system.entry.js} +1 -1
  394. package/dist/verdocs-web-sdk/{p-94c638b9.system.js → p-85519037.system.js} +1 -1
  395. package/dist/verdocs-web-sdk/p-900006b0.system.js +1 -0
  396. package/dist/verdocs-web-sdk/{p-756791df.system.entry.js → p-95e90092.system.entry.js} +1 -1
  397. package/dist/verdocs-web-sdk/{p-819fb18d.entry.js → p-96352ec7.entry.js} +1 -1
  398. package/dist/verdocs-web-sdk/p-971ab2d1.entry.js +1 -0
  399. package/dist/verdocs-web-sdk/{p-794109d4.entry.js → p-973a8142.entry.js} +1 -1
  400. package/dist/verdocs-web-sdk/{p-da7d343c.system.entry.js → p-98928410.system.entry.js} +1 -1
  401. package/dist/verdocs-web-sdk/{p-5f8341f5.system.entry.js → p-99510d53.system.entry.js} +1 -1
  402. package/dist/verdocs-web-sdk/p-9c05218b.entry.js +1 -0
  403. package/dist/verdocs-web-sdk/p-9ec464df.js +1 -0
  404. package/dist/verdocs-web-sdk/{p-e8e2bf33.entry.js → p-a5c6eac3.entry.js} +1 -1
  405. package/dist/verdocs-web-sdk/p-a908ebeb.system.entry.js +1 -0
  406. package/dist/verdocs-web-sdk/p-ac7d07de.system.entry.js +1 -0
  407. package/dist/verdocs-web-sdk/{p-79a5e9a6.entry.js → p-ad2814b4.entry.js} +1 -1
  408. package/dist/verdocs-web-sdk/p-afbbdc2f.system.js +1 -0
  409. package/dist/verdocs-web-sdk/p-b0df559c.entry.js +1 -0
  410. package/dist/verdocs-web-sdk/p-b3eab86c.entry.js +1 -0
  411. package/dist/verdocs-web-sdk/p-b699eeef.system.entry.js +1 -0
  412. package/dist/verdocs-web-sdk/{p-4297282e.system.entry.js → p-ba675574.system.entry.js} +1 -1
  413. package/dist/verdocs-web-sdk/{p-71a93045.system.entry.js → p-bb0ed696.system.entry.js} +1 -1
  414. package/dist/verdocs-web-sdk/p-bb1dc544.system.entry.js +1 -0
  415. package/dist/verdocs-web-sdk/{p-6fe0d270.entry.js → p-bbae0a6c.entry.js} +1 -1
  416. package/dist/verdocs-web-sdk/p-bf4a9089.system.entry.js +1 -0
  417. package/dist/verdocs-web-sdk/{p-7d035035.system.entry.js → p-bf8e7b5a.system.entry.js} +1 -1
  418. package/dist/verdocs-web-sdk/p-c28c4e43.js +1 -0
  419. package/dist/verdocs-web-sdk/{p-165bbc34.system.entry.js → p-c598ea74.system.entry.js} +1 -1
  420. package/dist/verdocs-web-sdk/{p-7b397f3a.js → p-cc32d84f.js} +1 -1
  421. package/dist/verdocs-web-sdk/p-ccdb7d88.system.entry.js +1 -0
  422. package/dist/verdocs-web-sdk/{p-8b5d40b6.system.entry.js → p-cf06ba29.system.entry.js} +1 -1
  423. package/dist/verdocs-web-sdk/{p-b259c449.system.entry.js → p-d4331e4f.system.entry.js} +1 -1
  424. package/dist/verdocs-web-sdk/p-d61235cf.entry.js +1 -0
  425. package/dist/verdocs-web-sdk/{p-164d9eb4.system.entry.js → p-e6992b79.system.entry.js} +1 -1
  426. package/dist/verdocs-web-sdk/p-e7b29b46.system.entry.js +1 -0
  427. package/dist/verdocs-web-sdk/{p-6a88d98b.entry.js → p-eaf4de2f.entry.js} +1 -1
  428. package/dist/verdocs-web-sdk/p-f05a3654.system.entry.js +1 -0
  429. package/dist/verdocs-web-sdk/{p-80d24da1.system.entry.js → p-f1d41587.system.entry.js} +1 -1
  430. package/dist/verdocs-web-sdk/p-f2f6c646.system.entry.js +1 -0
  431. package/dist/verdocs-web-sdk/{p-99c29b9c.system.entry.js → p-f54b4cc0.system.entry.js} +1 -1
  432. package/dist/verdocs-web-sdk/p-f69d8d39.js +1 -0
  433. package/dist/verdocs-web-sdk/{p-0bd91b17.entry.js → p-f91f3248.entry.js} +1 -1
  434. package/dist/verdocs-web-sdk/p-f9ffe6b9.entry.js +1 -0
  435. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  436. package/package.json +2 -2
  437. package/dist/cjs/verdocs-floating-menu.cjs.entry.js +0 -107
  438. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -52
  439. package/dist/collection/components/controls/verdocs-floating-menu/verdocs-floating-menu.css +0 -102
  440. package/dist/collection/components/controls/verdocs-floating-menu/verdocs-floating-menu.js +0 -162
  441. package/dist/components/verdocs-floating-menu.d.ts +0 -11
  442. package/dist/components/verdocs-floating-menu.js +0 -128
  443. package/dist/custom-elements.json +0 -2134
  444. package/dist/esm/verdocs-floating-menu.entry.js +0 -103
  445. package/dist/esm/verdocs-toolbar-icon.entry.js +0 -48
  446. package/dist/esm-es5/TemplateFieldStore-d7516adf.js +0 -1
  447. package/dist/esm-es5/TemplateRoleStore-ddc3b96f.js +0 -1
  448. package/dist/esm-es5/TemplateStore-df5484bb.js +0 -1
  449. package/dist/esm-es5/verdocs-checkbox_5.entry.js +0 -1
  450. package/dist/esm-es5/verdocs-field-attachment_14.entry.js +0 -1
  451. package/dist/esm-es5/verdocs-floating-menu.entry.js +0 -1
  452. package/dist/esm-es5/verdocs-organization-card.entry.js +0 -1
  453. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
  454. package/dist/types/components/controls/verdocs-floating-menu/verdocs-floating-menu.d.ts +0 -31
  455. package/dist/verdocs-web-sdk/p-039c572c.entry.js +0 -1
  456. package/dist/verdocs-web-sdk/p-05cfdd58.js +0 -1
  457. package/dist/verdocs-web-sdk/p-0ac52131.system.entry.js +0 -1
  458. package/dist/verdocs-web-sdk/p-0e74b009.entry.js +0 -1
  459. package/dist/verdocs-web-sdk/p-1200552e.system.entry.js +0 -1
  460. package/dist/verdocs-web-sdk/p-17801797.js +0 -1
  461. package/dist/verdocs-web-sdk/p-192fe783.system.entry.js +0 -1
  462. package/dist/verdocs-web-sdk/p-216757ff.entry.js +0 -1
  463. package/dist/verdocs-web-sdk/p-28d5af49.system.entry.js +0 -1
  464. package/dist/verdocs-web-sdk/p-36800dd4.js +0 -1
  465. package/dist/verdocs-web-sdk/p-3c3570cc.entry.js +0 -1
  466. package/dist/verdocs-web-sdk/p-50035423.entry.js +0 -1
  467. package/dist/verdocs-web-sdk/p-5714caa0.system.entry.js +0 -1
  468. package/dist/verdocs-web-sdk/p-5727dd92.system.entry.js +0 -1
  469. package/dist/verdocs-web-sdk/p-5b9c0b5d.system.entry.js +0 -1
  470. package/dist/verdocs-web-sdk/p-65d71829.entry.js +0 -1
  471. package/dist/verdocs-web-sdk/p-660a17c3.entry.js +0 -1
  472. package/dist/verdocs-web-sdk/p-6a82e278.system.js +0 -1
  473. package/dist/verdocs-web-sdk/p-6cd31085.system.entry.js +0 -1
  474. package/dist/verdocs-web-sdk/p-6f1df8e8.system.entry.js +0 -1
  475. package/dist/verdocs-web-sdk/p-721edea6.entry.js +0 -1
  476. package/dist/verdocs-web-sdk/p-727f9a9a.system.js +0 -1
  477. package/dist/verdocs-web-sdk/p-780c095e.entry.js +0 -1
  478. package/dist/verdocs-web-sdk/p-8e831c4b.system.entry.js +0 -1
  479. package/dist/verdocs-web-sdk/p-907bf2f3.entry.js +0 -1
  480. package/dist/verdocs-web-sdk/p-95e2ff59.system.entry.js +0 -1
  481. package/dist/verdocs-web-sdk/p-98f14855.system.js +0 -1
  482. package/dist/verdocs-web-sdk/p-a0857afa.entry.js +0 -1
  483. package/dist/verdocs-web-sdk/p-a0a08e62.system.entry.js +0 -1
  484. package/dist/verdocs-web-sdk/p-a164376d.system.entry.js +0 -1
  485. package/dist/verdocs-web-sdk/p-a1f6189b.system.js +0 -1
  486. package/dist/verdocs-web-sdk/p-ae6a23ba.system.entry.js +0 -1
  487. package/dist/verdocs-web-sdk/p-c22eccdd.entry.js +0 -1
  488. package/dist/verdocs-web-sdk/p-cdb8b832.entry.js +0 -1
  489. package/dist/verdocs-web-sdk/p-da9d0886.system.entry.js +0 -1
  490. package/dist/verdocs-web-sdk/p-ea798c11.entry.js +0 -1
  491. package/dist/verdocs-web-sdk/p-eb86419b.entry.js +0 -1
  492. package/dist/verdocs-web-sdk/p-ecfe6d7e.system.entry.js +0 -1
  493. package/dist/verdocs-web-sdk/p-f070e923.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s,F as o}from"./p-73a6f972.js";import{getRGBA as n}from"@verdocs/js-sdk";import{g as a,a as r}from"./p-17801797.js";import{g as d}from"./p-05cfdd58.js";import"./p-00b37c9a.js";const l=class{constructor(e){t(this,e),this.signatureComplete=i(this,"signatureComplete",7),this.initialComplete=i(this,"initialComplete",7),this.settingsChanged=i(this,"settingsChanged",7),this.deleted=i(this,"deleted",7),this.fieldStore=null,this.roleStore=null,this.templateid="",this.fieldname="",this.disabled=!1,this.fields=void 0,this.pageNum=void 0,this.roleName=void 0,this.fieldId=void 0,this.recipients=void 0,this.selectedRoleName=void 0,this.pdfPages=void 0,this.currentSignature=void 0,this.currentSignatureId=void 0,this.currentInitial=void 0,this.currentInitialId=void 0,this.focused=!1,this.signed=!1,this.xscale=1,this.yscale=1,this.pagenumber=1,this.preparedMessage=void 0,this.signatureUrl="",this.roleindex=0,this.showingProperties=!1}componentWillLoad(){if(this.fieldStore=d(this.templateid),this.roleStore=a(this.templateid),this.recipients&&this.recipients.length>0){const t=this.recipients.find((t=>"preparer"===t.type));console.log("Found preparer",t),t&&(this.preparedMessage=`Prepared by ${t.full_name}`)}}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);t&&t.hidePanel&&t.hidePanel()}render(){var t;const i=this.fieldStore.get("fields").find((t=>t.name===this.fieldname)),a=r(this.roleStore,i.role_name),d=i.rgba||n(a);if(!i)return e(o,null);const l=null!==(t=this.disabled)&&void 0!==t&&t;return e(s,{class:{focused:this.focused,disabled:l},style:{backgroundColor:d}},e("button",{class:{hide:this.signed}},"$"),e("div",this.signed?{class:"frame"}:{style:{display:"none"}}),e("img",{width:"100%",height:"100%",src:this.signatureUrl,alt:"Payment Icon"}))}};l.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-field-payment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:24px;height:24px;display:block;font-size:11px;position:relative;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment.disabled{opacity:0.5}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-payment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-payment .settings-icon svg{fill:#707ae5}verdocs-field-payment .settings-icon:hover{opacity:1}';export{l as verdocs_field_payment}
1
+ import{r as t,c as i,h as e,H as s,F as o}from"./p-73a6f972.js";import{getRGBA as n}from"@verdocs/js-sdk";import{g as a,a as r}from"./p-316fc185.js";import{g as d}from"./p-f69d8d39.js";import"./p-00b37c9a.js";const l=class{constructor(e){t(this,e),this.signatureComplete=i(this,"signatureComplete",7),this.initialComplete=i(this,"initialComplete",7),this.settingsChanged=i(this,"settingsChanged",7),this.deleted=i(this,"deleted",7),this.fieldStore=null,this.roleStore=null,this.templateid="",this.fieldname="",this.disabled=!1,this.fields=void 0,this.pageNum=void 0,this.roleName=void 0,this.fieldId=void 0,this.recipients=void 0,this.selectedRoleName=void 0,this.pdfPages=void 0,this.currentSignature=void 0,this.currentSignatureId=void 0,this.currentInitial=void 0,this.currentInitialId=void 0,this.focused=!1,this.signed=!1,this.xscale=1,this.yscale=1,this.pagenumber=1,this.preparedMessage=void 0,this.signatureUrl="",this.roleindex=0,this.showingProperties=!1}componentWillLoad(){if(this.fieldStore=d(this.templateid),this.roleStore=a(this.templateid),this.recipients&&this.recipients.length>0){const t=this.recipients.find((t=>"preparer"===t.type));console.log("Found preparer",t),t&&(this.preparedMessage=`Prepared by ${t.full_name}`)}}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);t&&t.hidePanel&&t.hidePanel()}render(){var t;const i=this.fieldStore.get("fields").find((t=>t.name===this.fieldname)),a=r(this.roleStore,i.role_name),d=i.rgba||n(a);if(!i)return e(o,null);const l=null!==(t=this.disabled)&&void 0!==t&&t;return e(s,{class:{focused:this.focused,disabled:l},style:{backgroundColor:d}},e("button",{class:{hide:this.signed}},"$"),e("div",this.signed?{class:"frame"}:{style:{display:"none"}}),e("img",{width:"100%",height:"100%",src:this.signatureUrl,alt:"Payment Icon"}))}};l.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-field-payment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:24px;height:24px;display:block;font-size:11px;position:relative;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment.disabled{opacity:0.5}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment.focused{-webkit-animation:verdocs-field-pulse 0.4s 1;animation:verdocs-field-pulse 0.4s 1}verdocs-field-payment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-payment .settings-icon svg{fill:#707ae5}verdocs-field-payment .settings-icon:hover{opacity:1}';export{l as verdocs_field_payment}
@@ -0,0 +1 @@
1
+ import{r as t,h as o,H as e,g as i}from"./p-73a6f972.js";import{c as n}from"./p-68a5aaff.js";import{V as r}from"./p-026b3103.js";const a=class{constructor(o){t(this,o),this.label=void 0,this.startIcon=null,this.endIcon=null,this.size="normal",this.type="button",this.variant="standard",this.disabled=!1}render(){return o("button",{key:"822e0773075831cc4ab6a0c5a9fd3fc89c4cef43",disabled:this.disabled,type:this.type,class:`${this.variant} ${this.size} ${this.type}`},this.startIcon?o("span",{class:"icon start",innerHTML:this.startIcon}):null,o("span",{key:"8ef9ac40620d885dd37fc776929224ea2e6cf596",class:"button-label"},this.label),this.endIcon?o("span",{class:"icon end",innerHTML:this.endIcon}):null)}};a.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';const s=class{constructor(o){t(this,o),this.text="",this.icon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>',this.containerId=`verdocs-help-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=n(this.iconEl,this.tooltipEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var t,o;null===(t=this.tooltipEl)||void 0===t||t.setAttribute("data-show",""),null===(o=this.popperInstance)||void 0===o||o.update().catch((()=>{}))}hide(){var t;null===(t=this.tooltipEl)||void 0===t||t.removeAttribute("data-show")}render(){return o(e,{key:"85c73981ae3001eed65f75f7b3f7ac6236ec6468",class:{}},o("div",{key:"f7e1f58bef884fe6f1366b99c527c3e3e9df8052","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:t=>this.iconEl=t}),o("div",{key:"596faf9cc53b66c22c4cb498adf8bdf21eadf734",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:t=>this.tooltipEl=t},o("span",{key:"464b824ea27eb3a50b63c09b30e856d329784da4",innerHTML:this.text}),o("div",{key:"3a870ec5b129fbaa0350ddea76a255aa0aee1c16","data-popper-arrow":"true",class:"arrow"})))}};s.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:500;position:absolute;padding:5px 10px;font-size:12px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';const c=class{constructor(o){t(this,o),this.value="",this.label="",this.placeholder="",this.autocomplete="",this.helpText="",this.clearable=!1,this.copyable=!1,this.type="text",this.disabled=!1,this.required=!1}copyToClipboard(){this.inputEl.select(),navigator.clipboard.writeText(this.value).then((()=>r("Copied!"))).catch((t=>console.log("Error copying to clipboard",t)))}render(){return o(e,{key:"5bc396cdd768637ac69a21dcb672a53809b979ed",class:`input-field ${this.clearable?"clearable":""} ${this.copyable?"copyable":""}`},o("label",{key:"6294f9b41603ce31f561aeb2940fe764f1e3b573"},this.label&&o("div",{key:"593198e43df84cc8f57b950bfaeab7defd4b8a15",class:"input-label"},this.label+":",this.required&&o("span",{key:"aad606689352175230d4644884e2a9d8ff2726f1",class:"required"},"*")),o("div",{key:"238b830122b5278da983330b87cd84fdd7627297",class:"input-container"},o("input",{key:"af8888c6146e5f617e3121aa6bbb5f56846521dc",type:this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:t=>this.inputEl=t,onInput:t=>this.value=t.target.value}),this.clearable&&this.value&&o("span",{key:"d51ff8c5760437916d45514fe38832bd70a0ddb6",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>',class:"clear",onClick:()=>{setTimeout((()=>{var t;this.value="",null===(t=this.inputEl)||void 0===t||t.setAttribute("value",""),setTimeout((()=>{var t,o;null===(t=this.inputEl)||void 0===t||t.dispatchEvent(new Event("focusout")),null===(o=this.inputEl)||void 0===o||o.blur()}),50)}),50)}}),!this.clearable&&this.copyable&&this.value&&o("span",{key:"e05ce0fb15f2ed2358edcbdfe1c5de77238311a8",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>',class:"copy",onClick:()=>this.copyToClipboard()})),this.helpText&&o("verdocs-help-icon",{key:"b9d0e50d517e04e37636dd4d85e6e4409266b1e2",text:this.helpText})))}get hostEl(){return i(this)}};c.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';export{a as verdocs_button,s as verdocs_help_icon,c as verdocs_text_input}
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as t,H as a}from"./p-73a6f972.js";import{VerdocsEndpoint as i}from"@verdocs/js-sdk";import{i as s}from"./p-cc32d84f.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const c=class{constructor(t){e(this,t),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=void 0,this.email=void 0,this.phone=void 0,this.message=void 0,this.showSuggestions=!1,this.showMessage=!1,this.delegator=!1,this.showKba=!1,this.kbaMethod="",this.pinCode="",this.nameFieldId=`verdocs-contact-picker-name-${Math.random().toString(36).substring(2,11)}`,this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`,this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.templateRole&&(this.name=this.templateRole.full_name||"",this.email=this.templateRole.email||"",this.phone=this.templateRole.phone||"",this.delegator=this.templateRole.delegator||!1,this.message=this.templateRole.message||"",this.showMessage=""!==this.message,this.kbaMethod=this.templateRole.kba_method||"",this.showKba=!!this.kbaMethod,this.pinCode="")}handleNameChange(e){var o;this.name=e.target.value,null===(o=this.searchContacts)||void 0===o||o.emit({query:this.name})}handleEmailChange(e){this.email=e.target.value}handlePhoneChange(e){this.phone=s(e.target.value)}handleMessageChange(e){this.message=e.target.value}handleCancel(e){var o;e.stopPropagation(),this.showSuggestions=!1,null===(o=this.exit)||void 0===o||o.emit()}handleSubmit(e){var o;e.stopPropagation(),this.showSuggestions=!1,null===(o=this.next)||void 0===o||o.emit({full_name:this.name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator})}handleSelectSuggestion(e,o){e.stopPropagation(),this.name=o.name,this.email=o.email,this.phone=o.phone,this.showSuggestions=!1}render(){return t("form",{key:"b4c1d548719a9e43b09e9632078efecf461728fd",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("div",{key:"010bfa4a4802cdf165f4a837d52143296eeb9615",class:"row"},t("label",{key:"baadc6a3159a5e9fe58c91d944269fa5f2319fc5",htmlFor:this.nameFieldId},"Name:"),t("input",{key:"e570c3218970843b9acfb276349a7b9b2cc0d4fc",id:this.nameFieldId,name:this.nameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked",value:this.name,placeholder:"Recipient Name...",onFocus:()=>{var e;return this.showSuggestions=(null===(e=this.contactSuggestions)||void 0===e?void 0:e.length)>0},onInput:e=>this.handleNameChange(e)}),this.showSuggestions&&t("div",{key:"a99e1d83a4292c1f7d978529526f49622ab8a18e",class:"dropdown"},this.contactSuggestions.map((e=>{var o;return t("div",{key:null!==(o=e.id)&&void 0!==o?o:e.name,class:"suggestion",onClick:o=>this.handleSelectSuggestion(o,e)},e.avatar?t("img",{alt:"Avatar",class:"avatar",src:e.avatar}):t("div",{class:"avatar",innerHTML:'<svg focusable="false" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 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>'}),t("div",{class:"details"},t("div",{class:"name"},e.name),e.email&&t("div",{class:"destination"},e.email),e.phone&&t("div",{class:"destination"},e.phone)))})))),t("div",{key:"c1973698147b613df52fa2b8895fb6f7c6eda1e5",class:"row"},t("label",{key:"d9211e7aa931b9e270746be2e3a983e346d14f35",htmlFor:this.emailFieldId},"Email:"),t("input",{key:"4e6e978b03cb2bb7f642ef9472ccb8914021561b",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked",value:this.email,placeholder:"Email Address...",onFocus:()=>this.showSuggestions=!1,onInput:e=>this.handleEmailChange(e)})),t("div",{key:"79fd52114dc907678d3f97fcf50502401c7c7cc6",class:"row"},t("label",{key:"5f044851b4fd341162ac27308a53ef3ae9f87d9e",htmlFor:this.phoneFieldId},"Phone:"),t("input",{key:"6b9e582317bf57617f3ef03771dc208d7a85d20a",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked",value:this.phone,placeholder:"Phone Number...",onFocus:()=>this.showSuggestions=!1,onInput:e=>this.handlePhoneChange(e)})),this.showKba&&t("div",{key:"ee0a3a7bb56ad26f9c6bfad38b1575999b6b1f1a",class:"row"},t("div",{key:"7aaa78abd9f934b59862e94c6c657cbccc0ec587",class:"label-with-icon"},t("label",{key:"3b5625726464e64f2a2089828f8efed86d3e6fac"},"KBA:"),t("verdocs-help-icon",{key:"e3ae8688cb0a3ee0f5673de35de911930b5c1264",text:"Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature."})),t("verdocs-select-input",{key:"25f9fe8483ce98ba0984edbe40ea71432bfa0803",value:this.kbaMethod,onInput:e=>this.kbaMethod=e.target.value,options:[{label:"None",value:""},{label:"PIN Code",value:"pin"},{label:"Full Verification",value:"kba"}]}),"pin"===this.kbaMethod&&t("input",{key:"c73d9196e00f0d8e2ef2372b4c7eec6521e1a8c4",id:"verdocs-pin-code",name:"verdocs-pin-code",type:"text","data-lpignore":"true",autocomplete:"blocked",value:this.pinCode,placeholder:"KBA PIN Code...",onFocus:()=>this.showSuggestions=!1,onInput:e=>this.handleMessageChange(e)})),this.showMessage&&t("div",{key:"8501cd90265ade56a8491226b3fe4f6fd27cab96",class:"row"},t("label",{key:"ed86374d406062b31923a3b70dd8a65454b147e2",htmlFor:"verdocs-contact-picker-message"},"Message:"),t("input",{key:"f8c01b1dc7ee18729db4578b490e4e6caeaba006",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message",type:"text","data-lpignore":"true",autocomplete:"blocked",value:this.message,placeholder:"Invitation Message...",onFocus:()=>this.showSuggestions=!1,onInput:e=>this.handleMessageChange(e)})),t("div",{key:"127c1bae45f6b5e01bb6ea7304c543550cb87074",class:"buttons"},t("verdocs-toggle-button",{key:"7c1fc2e0955cd33d5e8b9778a104120685b9cafd",icon:'<svg focusable="false" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4.5 3.75a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V6.75a3 3 0 0 0-3-3h-15Zm4.125 3a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5Zm-3.873 8.703a4.126 4.126 0 0 1 7.746 0 .75.75 0 0 1-.351.92 7.47 7.47 0 0 1-3.522.877 7.47 7.47 0 0 1-3.522-.877.75.75 0 0 1-.351-.92ZM15 8.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15ZM14.25 12a.75.75 0 0 1 .75-.75h3.75a.75.75 0 0 1 0 1.5H15a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3.75a.75.75 0 0 0 0-1.5H15Z" clip-rule="evenodd" /></svg>',size:"small",active:this.showKba,onToggle:e=>{this.showKba=e.detail.active,e.detail.active||(this.pinCode="",this.kbaMethod=""),this.showSuggestions=!1}}),t("verdocs-toggle-button",{key:"60d536d5c030075158d2f237251cdc9045a7c7e6",icon:'<svg focusable="false" 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>',size:"small",active:this.showMessage,onToggle:e=>{this.showMessage=e.detail.active,this.showSuggestions=!1}}),t("verdocs-toggle-button",{key:"6d634b2fc96412b136fa55074349f85ad2ae0a99",icon:'<svg focusable="false" viewBox="0 0 24 24"><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>',size:"small",active:this.delegator,onToggle:e=>{this.delegator=e.detail.active,this.showSuggestions=!1}}),t("div",{key:"c798509d79008ba083e028ad4ca78170ac7659d3",class:"flex-fill"}),t("verdocs-button",{key:"4f0355a6ebae37fa80d451918e1572a9fe900861",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),t("verdocs-button",{key:"ec6df05fb07868162f6d641e6b7a7d1dc80e5e5d",label:"OK",size:"small",onClick:e=>this.handleSubmit(e)})))}};c.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-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{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 .label-with-icon{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-contact-picker form .label-with-icon verdocs-help-icon svg{-webkit-transform:scale(0.8);transform:scale(0.8)}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:6px;-moz-column-gap:6px;column-gap:6px;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}';const r=class{constructor(t){e(this,t),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(e){var o;e.stopPropagation();const t=!this._active;this._active=t,null===(o=this.toggle)||void 0===o||o.emit({active:t})}render(){return t(a,{key:"19b820fa8c54c87afebe8fbd24d70282eab6922c",class:`size-${this.size}`},this.icon?t("button",{innerHTML:this.icon,class:{active:this._active},onClick:e=>this.handleToggle(e)}):t("button",{class:{active:this._active},onClick:e=>this.handleToggle(e)},this.label))}};r.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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{c as verdocs_contact_picker,r as verdocs_toggle_button}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i,F as o,H as a,g as s}from"./p-73a6f972.js";import{VerdocsEndpoint as r,getTemplateDocumentPageDisplayUri as d}from"@verdocs/js-sdk";import{g as l}from"./p-f69d8d39.js";import{t as c,k as n,g as p,d as h}from"./p-cc32d84f.js";import{c as b}from"./p-68a5aaff.js";import"./p-00b37c9a.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const m=class{constructor(i){e(this,i),this.pageRendered=t(this,"pageRendered",7),this.fieldStore=null,this.endpoint=r.getDefault(),this.editable=!1,this.disabled=!1,this.done=!1,this.templateId="",this.documentId="",this.pageNumber=1,this.virtualWidth=612,this.virtualHeight=792,this.layers=[{name:"page",type:"canvas"}],this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`,this.renderedWidth=this.virtualWidth,this.renderedHeight=this.virtualHeight,this.naturalWidth=this.virtualWidth,this.naturalHeight=this.virtualHeight,this.aspectRatio=this.virtualWidth/this.virtualHeight,this.skipFirstNotification=!0,this.pageDisplayUri="",this.xScale=1,this.yScale=1}async componentWillLoad(){this.pageDisplayUri=await d(this.endpoint,this.templateId,this.documentId,this.pageNumber),this.fieldStore=l(this.templateId)}componentDidLoad(){this.resizeObserver=new ResizeObserver(c((e=>{for(const t of e){const e=t.contentRect.width;this.renderedWidth=e,this.renderedHeight=this.virtualHeight*(e/this.virtualWidth)}this.notifyRenderedSize()}),100)),this.resizeObserver.observe(this.container)}componentDidUpdate(){this.notifyRenderedSize()}disconnectedCallback(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification)return void(this.skipFirstNotification=!1);const e=this.renderedWidth/this.virtualWidth;this.xScale!==e&&(this.xScale=e);const t=this.renderedHeight/this.virtualHeight;this.yScale!==t&&(this.yScale=t),this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:e,yScale:t})}render(){const e=`${this.renderedHeight}px`;return i(a,{key:"6fabe54a0840385228e13a0e61f7748d41fbcf17",id:`${this.containerId}`,style:{height:e,flex:`0 0 ${e}`}},this.layers.map((t=>"div"===t.type?i("div",{class:"verdocs-template-document-page-layer",id:`${this.containerId}-${t.name}`,style:{height:e}},"controls"===t.name&&this.fieldStore.get("fields").filter((e=>e&&e.page===this.pageNumber)).map((e=>{var t,a;const s=p(e);let{name:r,type:d}=e;const{xScale:l,yScale:c,templateId:b,editable:m,disabled:f,done:u,pageNumber:g}=this;switch(((null===(t=e.setting)||void 0===t?void 0:t.leading)>0||(null===(a=e.settings)||void 0===a?void 0:a.leading)>0)&&(d="textarea"),d){case"textbox":return i("verdocs-field-textbox",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"textarea":return i("verdocs-field-textarea",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"date":return i("verdocs-field-date",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"attachment":return i("verdocs-field-attachment",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"dropdown":return i("verdocs-field-dropdown",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"initial":return i("verdocs-field-initial",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"signature":return i("verdocs-field-signature",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,this.xScale,this.yScale,0)});case"timestamp":return i("verdocs-field-timestamp",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"checkbox_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-checkbox",{id:a,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));case"radio_button_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-radio-button",{id:a,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));default:return i(o,null,r)}}))):this.pageDisplayUri?i("img",{class:"verdocs-template-document-page-layer img",id:`${this.containerId}-${t.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":!0,loading:"lazy",onLoad:e=>{this.naturalWidth=e.target.naturalWidth,this.naturalHeight=e.target.naturalHeight,this.aspectRatio=this.naturalWidth/this.naturalHeight,this.virtualHeight=this.virtualWidth/this.aspectRatio,this.renderedHeight=e.target.offsetWidth/this.aspectRatio}}):i("div",null))))}get container(){return s(this)}};m.style="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";const f=class{constructor(t){e(this,t),this.text="",this.icon="",this.placement="bottom",this.containerId=`verdocs-toolbar-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=b(this.iconEl,this.tooltip,{placement:this.placement,modifiers:"left"===this.placement?[{name:"offset",options:{offset:[0,20]}}]:[]})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var e,t;null===(e=this.tooltip)||void 0===e||e.setAttribute("data-show",""),null===(t=this.popperInstance)||void 0===t||t.update().catch((()=>{}))}hide(){var e;null===(e=this.tooltip)||void 0===e||e.removeAttribute("data-show")}render(){return i(a,{key:"81bef5d6b23987730bbeafe741a7fbc52c2d854c",class:{}},i("div",{key:"87a7fab6e8cb787079f37332bdf8fb188f52157a","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:e=>this.iconEl=e}),i("div",{key:"f6593f4c1d6b435a80b0a09d6356c383ec78a5c7",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:e=>this.tooltip=e},this.text,i("div",{key:"b13a8c43aa098db8ee6f2e05a53c02f0f3de9358","data-popper-arrow":"true",class:"arrow"})))}};f.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';export{m as verdocs_template_document_page,f as verdocs_toolbar_icon}
@@ -1 +1 @@
1
- System.register(["./p-e748b2d2.system.js","@verdocs/js-sdk","./p-cd546dbe.system.js"],(function(e){"use strict";var o,r,s,i,c,a;return{setters:[function(e){o=e.r;r=e.c;s=e.h;i=e.H},function(e){c=e.VerdocsEndpoint},function(e){a=e.u}],execute:function(){var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';var d=l;var t=e("verdocs_file_chooser",function(){function e(e){o(this,e);this.fileSelected=r(this,"fileSelected",7);this.endpoint=c.getDefault();this.file=undefined}e.prototype.handleFileChanged=function(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return s(i,{key:"f8febf3e2ed17a5997e9e97aad97a83ecd5a0bb2"},s("input",{key:"b151b6e4a19521ecb95b40a7b414c6ffd3e7c74b",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(o){return e.handleFileChanged(o)}}),s("div",{key:"9aa5d9b06f54f4479afb9276702632c695d24d0f",class:"upload-box"},s("div",{key:"769adcb7a66ae0357e581909978fc18e5cca75ab",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),s("div",{key:"d50342ec030cf44a608b7e13e480015c63822ea7",class:"or-prefer"},this.file?a:"Or, if you prefer..."),s("verdocs-button",{key:"d6a883649258392cb922a4b0a4901e526017bf5f",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());t.style=d;var n='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';var f=n;var b=e("verdocs_progress_bar",function(){function e(e){o(this,e);this.label="";this.showPercent=false;this.percent=0}e.prototype.render=function(){var e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return s(i,{key:"44ff05aec2048b9ed24847dc0b410f379f94bbc6"},s("div",{key:"8706b9d902db9b9731a1d92744fa5cd071bdfca9",class:"labels"},this.label&&s("div",{key:"b56b39c39a16f0316de5b3d15d4e0c130ab9d232",class:"label"},this.label),this.showPercent&&s("div",{key:"99ec3b060256124b4f49325c16ab3cd5ec6d0640",class:"label"},this.percent,"%")),s("div",{key:"4cbd4ac85304f77d148ebecd339e9eb87d8e12b5",class:"bar"},s("div",{key:"472a105258357d4ab398b69f4d75c39b089ade96",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());b.style=f}}}));
1
+ System.register(["./p-e748b2d2.system.js","@verdocs/js-sdk","./p-cd546dbe.system.js"],(function(e){"use strict";var o,r,s,c,i,a;return{setters:[function(e){o=e.r;r=e.c;s=e.h;c=e.H},function(e){i=e.VerdocsEndpoint},function(e){a=e.u}],execute:function(){var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';var d=l;var f=e("verdocs_file_chooser",function(){function e(e){o(this,e);this.fileSelected=r(this,"fileSelected",7);this.endpoint=i.getDefault();this.file=undefined}e.prototype.handleFileChanged=function(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return s(c,{key:"501a0427992593169d853a8733d518a107dee390"},s("input",{key:"7f5c18d4b35bfc90f82424ca0e9796076962a24f",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(o){return e.handleFileChanged(o)}}),s("div",{key:"f534098c145b668763b59e4a0b69e644e4889006",class:"upload-box"},s("div",{key:"a080ece65752c1ee1e6faac36558b452d5204500",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),s("div",{key:"cfa61e426da03bf930fefc41a1bcff3cdc8fd04a",class:"or-prefer"},this.file?a:"Or, if you prefer..."),s("verdocs-button",{key:"3683238282627a6e48e8666ba085bb40cfd2cd7c",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());f.style=d;var t='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';var n=t;var b=e("verdocs_progress_bar",function(){function e(e){o(this,e);this.label="";this.showPercent=false;this.percent=0}e.prototype.render=function(){var e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return s(c,{key:"7a7c98f373c3d1bd1f064d4e8802862fd42bca03"},s("div",{key:"82117f7d403c8bb16cf8edc1a9b3de2eb0a35330",class:"labels"},this.label&&s("div",{key:"90aa3cefdf193d5ebf599c4c93abe1799c979db7",class:"label"},this.label),this.showPercent&&s("div",{key:"5fb5fe56f744a28963d98ad9990919f62a0092f5",class:"label"},this.percent,"%")),s("div",{key:"f91d4fd40eaef38f3a75f721b9de3be764c7c46b",class:"bar"},s("div",{key:"2ecc62850384403a42338d98f4a03c40d717c59a",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());b.style=n}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-e748b2d2.system.js"],(function(e){"use strict";var o,i,a,n;return{setters:[function(e){o=e.r;i=e.c;a=e.h;n=e.H}],execute:function(){var s='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-ok-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog.closed{display:none}verdocs-ok-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-ok-dialog .dialog{max-width:60%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;padding:8px 16px;font-weight:bold;color:#ffffff;background:#46497d}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:30px 0 0 0;padding:0 20px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var d=s;var c=e("verdocs_ok_dialog",function(){function e(e){o(this,e);this.next=i(this,"next",7);this.exit=i(this,"exit",7);this.heading="";this.message="";this.buttonLabel="OK";this.showCancel=false;this.closed=false}e.prototype.handleOk=function(){this.next.emit()};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return a(n,{key:"c1505d930741a4a0e1eb9a9832de8e55d09b207c",class:this.closed?"closed":""},a("div",{key:"f4c1ce92701f56a3b839bc49a0beb38665a65556",class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},a("div",{key:"0fe99745209ca40287512f114122d1a0f0c4e597",class:"dialog"},a("div",{key:"93deffa53c92913b65109f3c9826e61561f91c68",class:"heading"},this.heading),a("div",{key:"b0a64c6f2072655ce439d5008ecfe55651d48d8f",class:"content"},a("div",{key:"3f89fd4b54dfa1c8437c2aa7dd21310827516004",class:"message",innerHTML:this.message}),a("div",{key:"a86843d9915f72bcc00810c87f3311c77cf3b566",class:"buttons"},this.showCancel?a("verdocs-button",{label:"CANCEL",variant:"outline",onClick:function(){return e.handleCancel()}}):a("div",{style:{display:"none"}}),a("verdocs-button",{key:"d160170c8a58dde135ba4c5ae4dac35ac79c24a1",label:this.buttonLabel,onClick:function(){return e.handleOk()}}))))))};return e}());c.style=d}}}));
@@ -1 +1 @@
1
- import{r as e,h as t,H as o,c as i}from"./p-73a6f972.js";import{VerdocsEndpoint as a,updateTemplateRole as s,deleteTemplateRole as r,updateTemplate as d}from"@verdocs/js-sdk";import{g as l,u as c,d as n}from"./p-17801797.js";import{g as b}from"./p-05cfdd58.js";import{g as p}from"./p-f070e923.js";import{S as f}from"./p-fd97809c.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h=class{constructor(t){e(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(o,{key:"08503221049dbcdb5ad6d8804576bd302437a784",class:{disabled:this.disabled}},t("input",{key:"649115f2c5d916fbec807ab0566ec3352abe6afd",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{key:"597495b414c518d808f241cea9c3c66b0fabdf63",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};h.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const m=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.delete=i(this,"delete",7),this.sdkError=i(this,"sdkError",7),this.templateStore=null,this.fieldStore=null,this.roleStore=null,this.endpoint=a.getDefault(),this.templateId="",this.roleName="",this.sender="everyone",this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.full_name="",this.email="",this.phone="",this.delegator=!1}async componentWillLoad(){var e,t,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLE_PROPERTIES] Unable to start builder session, must be authenticated");this.templateStore=await p(this.endpoint,this.templateId,!1),this.fieldStore=b(this.templateId),this.roleStore=l(this.templateId);const e=this.roleStore.state.roles.find((e=>e.name===this.roleName));e&&(this.name=e.name,this.type=e.type,this.full_name=e.full_name,this.email=e.email,this.phone=e.phone,this.delegator=e.delegator,console.log("[ROLE_PROPERTIES] Editing role",e))}catch(i){console.log("[ROLE_PROPERTIES Error with preview session",i),null===(e=this.sdkError)||void 0===e||e.emit(new f(i.message,null===(t=i.response)||void 0===t?void 0:t.status,null===(o=i.response)||void 0===o?void 0:o.data))}}handleCancel(e){var t;e.stopPropagation();const o=this.roleStore.state.roles.find((e=>e.name===this.roleName));o&&(this.name=o.name,this.type=o.type,this.full_name=o.full_name,this.email=o.email,this.phone=o.phone,this.delegator=o.delegator),this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,s(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.full_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLE_PROPERTIES] Update result",e),this.saving=!1,this.dirty=!1,c(this.roleStore,this.roleName,e),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("[ROLE_PROPERTIES Update error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&r(this.endpoint,this.templateId,this.roleName).then((()=>{var e;n(this.roleStore,this.roleName),null===(e=this.delete)||void 0===e||e.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("[ROLE_PROPERTIES Deletion error",e)}))}render(){const e=this.fieldStore.get("fields").some((e=>e.role_name===this.roleName));return t(o,{key:"710e7f0ab8b1ecad6fa29a2872cfa8cd724deabd"},t("div",{key:"cce8cee42d046c80504e4ae6905cd290334612e6",class:"background-overlay",onClick:e=>this.handleCancel(e)},t("div",{key:"9d43dd9253210f0682f9cf59835702e3ccde5b4f",class:"dialog"},t("form",{key:"b532cbc42c82301bbb528b8a3c5112ccad7ae0e4",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("verdocs-text-input",{key:"084af944f9d6c9f3e6fbc562caae052523c755f0",id:"verdocs-role-name",label:"Role Name",value:this.name,autocomplete:"off",disabled:e,helpText:e?"This role has fields assigned and can no longer be renamed.":"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Role Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),t("div",{key:"2dabe3a2431972036407ec97432809b58ca8f250",class:"row"},t("div",{key:"fe50813b64830cd68e0c24621aaf72b926aac517",class:"input-label"},"Type:"),t("verdocs-select-input",{key:"24ba6e3ae5f4fe7c187e7a11e12baaba4caaa094",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),t("verdocs-help-icon",{key:"271c9d72f5b7b7ecb683cd4b0ea0dbfec26d385b",text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),t("verdocs-text-input",{key:"cccad696894aeb79f93803c8cc50fa9552a29860",id:"verdocs-recipient-email",label:"Full Name",value:this.full_name,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.full_name=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"5a374e483b87942567a63c39fe9fdef13d460c59",id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"8e9bf75190115c2b856a5a109a82e4fade3d99a7",id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),t("div",{key:"9fd9cb1a91e78154bf1df75cec3b357a464955c5",class:"row"},t("div",{key:"480168f43800400d9572f6018a0d1d60cc56a588",class:"input-label"},"May Delegate:"),t("div",{key:"e65486b714f0e8917572494c57f1ea316ef73038",class:"checkbox-wrapper"},t("verdocs-checkbox",{key:"3c76bfc3d233e09be06e7bf252fd6997b30fc38b",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked,this.dirty=!0}})),t("verdocs-help-icon",{key:"99076f70ccdf5a961a7078093e2f3f2ca73b56fb",text:"If enabled, this recipient may delegate their actions to another individual."})),t("div",{key:"86f63ddbd965d2709269cfeb1f105c69424d3a5c",class:"buttons"},t("button",{key:"ddde079896635a69dcd10bb82008c1986ed52383",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),t("div",{key:"f4d23743dce9acb5f16c519b569764bb17253944",style:{flex:"1"}}),t("verdocs-button",{key:"fe271dda2a5e9d6a8f0c4ba4199af5ea8f81077d",size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{key:"38b2986e9e3b784215fcafdf486631f7ebf1361b",size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};m.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-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-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-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}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const u=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.sdkError=i(this,"sdkError",7),this.store=null,this.endpoint=a.getDefault(),this.templateId="",this.sender="everyone",this.saving=!1}async componentWillLoad(){var e,t,o,i,a;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[SENDER] Unable to start builder session, must be authenticated");this.store=await p(this.endpoint,this.templateId,!1),this.sender=null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.sender}catch(e){console.log("[SENDER] Error with preview session",e),null===(o=this.sdkError)||void 0===o||o.emit(new f(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(a=e.response)||void 0===a?void 0:a.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,d(this.endpoint,this.templateId,{sender:e}).then((t=>{var o;console.log("Update result",t),(null===(o=this.store)||void 0===o?void 0:o.state)&&(this.store.state.sender=e),this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return t(o,{key:"b8ca2ff8bdae1256801c67f7be188f6b3e4c5c33"},t("div",{key:"565b0287142ce32fd1d11b7e344b35b8151b9e93",class:"background-overlay",onClick:e=>this.handleDismiss(e)},t("div",{key:"2ece454c0aba99deb418e1ac2035e237a2296a6c",class:"dialog"},t("div",{key:"cbac2ba10ad6cd63e714019e4311627e7972ae52",class:"options"},t("div",{key:"1ab94e1e5f30089cabb6abf23ee1294663cfa878",class:"option"},t("verdocs-radio-button",{key:"ae1689ae1a34ff1f9e1ae99917e659c27e2b6731",name:"template-sender",value:"everyone",checked:"everyone"===this.sender,onInput:()=>this.handleSelectSetting("everyone")}),t("div",{key:"78741f9340debb402dfcca11bf33a19660f7c541",class:"description"},t("div",{key:"ddee4eaf150cf0989849a2799896a2fd7c401411",class:"name"},"Anyone on the Web"),t("verdocs-help-icon",{key:"f51b1ba236eb08ebaae5a6171b9d3f8815dfb7c5",text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),t("div",{key:"37095164cf4cfa5030b1d2da04b6add9a572c914",class:"option"},t("verdocs-radio-button",{key:"8e8c8681e992cf00caa314c493afcd5bdb7a0fbe",name:"template-sender",value:"everyone_as_creator",checked:"everyone_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("everyone_as_creator")}),t("div",{key:"5a94fd99ef10648c5c1f68a91f80c31d1e8f5078",class:"description"},t("div",{key:"9a64f779ebe53499683f5af9ec7bc0218fe66499",class:"name"},"Anyone on the Web as me"),t("verdocs-help-icon",{key:"64edd79a609173c7399dbc2cce06269f0f7adc15",text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),t("div",{key:"b287986b5282e92153504a328a9273b0fcb81902",class:"option"},t("verdocs-radio-button",{key:"909e26ec66bf5d27014f2ef41c533662f5e2033e",name:"template-sender",value:"organization_member",checked:"organization_member"===this.sender,onInput:()=>this.handleSelectSetting("organization_member")}),t("div",{key:"3a42018b36b144feefa5a662e23f852dcd230889",class:"description"},t("div",{key:"071573ff99a6019b9d9ba164c7d6d3123b209510",class:"name"},"Anyone in my organization"),t("verdocs-help-icon",{key:"ecb0c3cd3f39c92954dd20c94a12c38ce35aa8cb",text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),t("div",{key:"2515c8c359379c70b7be04b2c50a139b760d777c",class:"option"},t("verdocs-radio-button",{key:"d5edd7267eb494c73cee3168de5d841c969a22aa",name:"template-sender",value:"organization_member_as_creator",checked:"organization_member_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("organization_member_as_creator")}),t("div",{key:"31cbe88f2cc23b74534bb2d51f280a3112827722",class:"description"},t("div",{key:"11160a0c962837e4c4342f46e111fe8ada8ca4d3",class:"name"},"Anyone in my organization as me"),t("verdocs-help-icon",{key:"d23472c9393598908dab4ae2a4cba983bafc89e1",text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),t("div",{key:"128da3cd0259b4d72bd6bca910b932898d9f5f38",class:"option"},t("verdocs-radio-button",{key:"0a65d2f15e37330526bbf384868b4e65a3b7ce5b",name:"template-sender",value:"creator",checked:"creator"===this.sender,onInput:()=>this.handleSelectSetting("creator")}),t("div",{key:"6182e6fd82ea55b8e59e175e6413f324657405b5",class:"description"},t("div",{key:"919c6b40c4f171b491b8001c30acca73c6308a86",class:"name"},"Me"),t("verdocs-help-icon",{key:"9aaaa7ad26ec56b5667c1c1ea31ce19f2742c81e",text:"Only I can use this template."})))),t("div",{key:"6b7bdc820887b652552d4ad9f08ac5c3f83fc71c",class:"buttons"},t("verdocs-button",{key:"bcaf3bc67e9de9c62cda7fb6cc1c5ecbfd168d9e",label:"Close",onClick:()=>this.handleClose()})))))}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-sender{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-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-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_radio_button,m as verdocs_template_role_properties,u as verdocs_template_sender}
1
+ import{r as e,h as t,H as o,c as i}from"./p-73a6f972.js";import{VerdocsEndpoint as a,updateTemplateRole as s,deleteTemplateRole as r,updateTemplate as d}from"@verdocs/js-sdk";import{g as l,u as n,d as c}from"./p-316fc185.js";import{g as p}from"./p-f69d8d39.js";import{g as b}from"./p-9ec464df.js";import{S as f}from"./p-fd97809c.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h=class{constructor(t){e(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(o,{key:"75bec4ec1ed0b9f7683a6b3c43c987c5f8c01539",class:{disabled:this.disabled}},t("input",{key:"7493bdafdaef15d48696a51c4d1e9a7c162bdf8f",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{key:"c0d1aa6861cb76ec86f5995a047e9d923e9a951e",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};h.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const m=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.delete=i(this,"delete",7),this.sdkError=i(this,"sdkError",7),this.templateStore=null,this.fieldStore=null,this.roleStore=null,this.endpoint=a.getDefault(),this.templateId="",this.roleName="",this.sender="everyone",this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.full_name="",this.email="",this.phone="",this.delegator=!1}async componentWillLoad(){var e,t,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLE_PROPERTIES] Unable to start builder session, must be authenticated");this.templateStore=await b(this.endpoint,this.templateId,!1),this.fieldStore=p(this.templateId),this.roleStore=l(this.templateId);const e=this.roleStore.state.roles.find((e=>e.name===this.roleName));e&&(this.name=e.name,this.type=e.type,this.full_name=e.full_name,this.email=e.email,this.phone=e.phone,this.delegator=e.delegator,console.log("[ROLE_PROPERTIES] Editing role",e))}catch(i){console.log("[ROLE_PROPERTIES Error with preview session",i),null===(e=this.sdkError)||void 0===e||e.emit(new f(i.message,null===(t=i.response)||void 0===t?void 0:t.status,null===(o=i.response)||void 0===o?void 0:o.data))}}handleCancel(e){var t;e.stopPropagation();const o=this.roleStore.state.roles.find((e=>e.name===this.roleName));o&&(this.name=o.name,this.type=o.type,this.full_name=o.full_name,this.email=o.email,this.phone=o.phone,this.delegator=o.delegator),this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,s(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.full_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLE_PROPERTIES] Update result",e),this.saving=!1,this.dirty=!1,n(this.roleStore,this.roleName,e),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("[ROLE_PROPERTIES Update error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&r(this.endpoint,this.templateId,this.roleName).then((()=>{var e;c(this.roleStore,this.roleName),null===(e=this.delete)||void 0===e||e.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("[ROLE_PROPERTIES Deletion error",e)}))}render(){const e=this.fieldStore.get("fields").some((e=>e.role_name===this.roleName));return t(o,{key:"c2728e2fb47306d99d3eebaaa38130322d37ad64"},t("div",{key:"a329fa189219f99c747e915ee2f0a41de978474f",class:"background-overlay",onClick:e=>this.handleCancel(e)},t("div",{key:"a0325d8949c173d73ba2a48af5924d015e746266",class:"dialog"},t("form",{key:"378e17dc270ae28779557793f6669143c86a41a3",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("verdocs-text-input",{key:"20f8de0856c8e5c847b7e1852edc437a8c6427fb",id:"verdocs-role-name",label:"Role Name",value:this.name,autocomplete:"off",disabled:e,helpText:e?"This role has fields assigned and can no longer be renamed.":"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Role Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),t("div",{key:"35310c43c72be59031d74995d5e4e08fd74b34bd",class:"row"},t("div",{key:"4b47e8595ad1119d4027049b56acd43443a4b09a",class:"input-label"},"Type:"),t("verdocs-select-input",{key:"97f18bfb8052d6f0690bf2d570a42a0a604556b9",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),t("verdocs-help-icon",{key:"3f4059c1a1232aa08449e4518ccd9473066430df",text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),t("verdocs-text-input",{key:"df9c1439da6894608dad4ef81dddf21e2591115f",id:"verdocs-recipient-email",label:"Full Name",value:this.full_name,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.full_name=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"af0ac9644670cb4b3e5607eb75e6c0aa9746ed76",id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"f7055746726c2d199beac4206847bc1534de5601",id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),t("div",{key:"12903a2f12f8f750cecaf0332a69099f67b4d530",class:"row"},t("div",{key:"9959973a48e154155cc6b5892ae81a5105d62d33",class:"input-label"},"May Delegate:"),t("div",{key:"0dd8af27a2fd4cf6c8a641a39ea3332887b1f71a",class:"checkbox-wrapper"},t("verdocs-checkbox",{key:"8a145a05207fc1cae42d5c3e4596c2d673ecc097",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked,this.dirty=!0}})),t("verdocs-help-icon",{key:"d725f8446967e2c145e0e5ecad8416ee7e368bc8",text:"If enabled, this recipient may delegate their actions to another individual."})),t("div",{key:"eae241c53cc8213d5c14bb213b41923620e17be3",class:"buttons"},t("button",{key:"5eb5792ff0f79aab12bcfbb20ffdf58d431f4103",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),t("div",{key:"bca3f871c37e1a346d98620ee0fd1dd0dfce9917",style:{flex:"1"}}),t("verdocs-button",{key:"b40fb1ff70cb3cce19b793f940fc0038d12490ea",size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{key:"51270815757b0fd6803d527ac3388f1e2af16b25",size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};m.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-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-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-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}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const u=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.sdkError=i(this,"sdkError",7),this.store=null,this.endpoint=a.getDefault(),this.templateId="",this.sender="everyone",this.saving=!1}async componentWillLoad(){var e,t,o,i,a;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[SENDER] Unable to start builder session, must be authenticated");this.store=await b(this.endpoint,this.templateId,!1),this.sender=null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.sender}catch(e){console.log("[SENDER] Error with preview session",e),null===(o=this.sdkError)||void 0===o||o.emit(new f(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(a=e.response)||void 0===a?void 0:a.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,d(this.endpoint,this.templateId,{sender:e}).then((t=>{var o;console.log("Update result",t),(null===(o=this.store)||void 0===o?void 0:o.state)&&(this.store.state.sender=e),this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return t(o,{key:"f8d8cca0bfceaf4770487a2013d8b4719236ddf4"},t("div",{key:"2f3adaefa9ee3dcbac271ee02d76fa46bbe58e10",class:"background-overlay",onClick:e=>this.handleDismiss(e)},t("div",{key:"659f51292068e189d9c995db643fae5c2acb15b3",class:"dialog"},t("div",{key:"3015a1be71fe71983fce44357433b5e2186c4946",class:"options"},t("div",{key:"ce818b1d25630a8f487fbaff0c5db38119a6f824",class:"option"},t("verdocs-radio-button",{key:"8a4d98f6553248a88a024c1d024d3a4145a202ed",name:"template-sender",value:"everyone",checked:"everyone"===this.sender,onInput:()=>this.handleSelectSetting("everyone")}),t("div",{key:"e2924ad4589dfcdca2ad342852f517f919e99914",class:"description"},t("div",{key:"6bf123474dc857917dd84c971bb3e634eecc8868",class:"name"},"Anyone on the Web"),t("verdocs-help-icon",{key:"53129fa609dcb99cf6f1ddc76867c09a90359973",text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),t("div",{key:"4b566084de0d35ade13b0d82354ddfab42fb4be2",class:"option"},t("verdocs-radio-button",{key:"3704512d6d38faf3f275fb039a1c97cf2464b0e2",name:"template-sender",value:"everyone_as_creator",checked:"everyone_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("everyone_as_creator")}),t("div",{key:"8dd4ffbcc1727fb28bec4e404dcc1a4a7cec9431",class:"description"},t("div",{key:"2c4093c5ecff6192c6ec94ffa0a32ae516a4d13d",class:"name"},"Anyone on the Web as me"),t("verdocs-help-icon",{key:"73b99113cd11ac40ef3784fe23b523e54f2a8d5a",text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),t("div",{key:"528f64ff348386c14b0cea7d4983bccd664a0645",class:"option"},t("verdocs-radio-button",{key:"f1538d9c86ad7f2dc337a42f53f49f86faa3a469",name:"template-sender",value:"organization_member",checked:"organization_member"===this.sender,onInput:()=>this.handleSelectSetting("organization_member")}),t("div",{key:"ddd5129726d3b2a0786341c2df2f8012e783d643",class:"description"},t("div",{key:"449c1a5eb124b7006f319f96ff617d6480cab3a9",class:"name"},"Anyone in my organization"),t("verdocs-help-icon",{key:"8d01e0fba4bfb8b5d12390b5c138b19d6362a055",text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),t("div",{key:"76f686a2976749ffa02be5b95d9d61ded315714c",class:"option"},t("verdocs-radio-button",{key:"00c5b5d78a7c380665abc3157403f597cbcaabc9",name:"template-sender",value:"organization_member_as_creator",checked:"organization_member_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("organization_member_as_creator")}),t("div",{key:"7eaf1cce0528f17359b19320ba0e10311ec34821",class:"description"},t("div",{key:"4bd0b1b35504afa1c67566ac8cd589041958de41",class:"name"},"Anyone in my organization as me"),t("verdocs-help-icon",{key:"cfe825b414ef5a0c4ddd33e3de621629cc92149e",text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),t("div",{key:"f86771d023449f505a45f07b73e505a7c481bdf0",class:"option"},t("verdocs-radio-button",{key:"039f5bb7b444f942fb609ad1ef5fda0d5f160083",name:"template-sender",value:"creator",checked:"creator"===this.sender,onInput:()=>this.handleSelectSetting("creator")}),t("div",{key:"b7ecd4a8e68ac17e9ba116a6f8f2dcf84ff92c56",class:"description"},t("div",{key:"ca006222ed947daf96a22425fe7dbc1dd809aef5",class:"name"},"Me"),t("verdocs-help-icon",{key:"fec5c4aeb7285eaa3a22d238208e2072b17a14b0",text:"Only I can use this template."})))),t("div",{key:"1344c8e35ee75f17f5a035ba93e770958b1fcba0",class:"buttons"},t("verdocs-button",{key:"6d2e2796fd3464440662e8dd5dba2ae273aab02e",label:"Close",onClick:()=>this.handleClose()})))))}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-sender{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-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-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_radio_button,m as verdocs_template_role_properties,u as verdocs_template_sender}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-73a6f972.js";import{VerdocsEndpoint as s,createAccount as l,authenticateUser as o,decodeAccessTokenBody as a,resendVerification as n,resetPassword as r}from"@verdocs/js-sdk";import{V as u}from"./p-026b3103.js";import{S as d}from"./p-fd97809c.js";const c=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}],h=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}],p=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}],v=class{constructor(i){e(this,i),this.authenticated=t(this,"authenticated",7),this.sdkError=t(this,"sdkError",7),this.recheckTimer=null,this.resendDisabledTimer=null,this.accessTokenForVerification=null,this.endpoint=s.getDefault(),this.visible=!0,this.logo="https://app.verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.orgname="",this.first="",this.last="",this.username="",this.phone="",this.password="",this.submitting=!1,this.activeSession=null,this.accountType="org",this.howHear="",this.industry="",this.companySize="",this.reason="",this.signupStep=1,this.resendDisabled=!1,this.checkingOrg=!1}componentWillLoad(){var e,t;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}))}disconnectedCallback(){this.cancelRecheckTimer()}cancelRecheckTimer(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}}handleSignup(){this.submitting=!0,this.accessTokenForVerification=null,l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname}).then((e=>{console.log("Result",e),console.log("[AUTH] Created profile",e.profile),console.log("[AUTH] Created organization",e.organization),this.loginAndCheckVerification()})).catch((e=>{var t,i,s,l,o,a;console.log("[AUTH] Signup error",e.response),this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new d(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),u("Signup failed: "+(null===(a=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===a?void 0:a.message)||"Unknown Error",{style:"error"})}))}loginAndCheckVerification(){this.submitting=!0,this.accessTokenForVerification=null,o(this.endpoint,{username:this.username,password:this.password}).then((e=>{var t;this.cancelRecheckTimer(),this.submitting=!1;const i=a(e.accessToken);console.log("[AUTH] Got access token body",i),(null==i?void 0:i.email_verified)?(console.log("[AUTH] Email address is verified, completing login"),this.displayMode="login",this.accessTokenForVerification=null,this.endpoint.setToken(e.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Logged in, pending email address verification"),this.displayMode="verify",this.accessTokenForVerification=e.accessToken,this.recheckTimer=setTimeout((()=>this.loginAndCheckVerification()),5e3))})).catch((e=>{var t,i,s,l;this.cancelRecheckTimer(),console.log("[AUTH] Authentication error",e.response,JSON.stringify(e)),this.displayMode="login",this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new d(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),u("Login failed. Please check your username and password and try again.",{style:"error"})}))}handleLogout(){var e;this.endpoint.clearSession(),this.isAuthenticated=!1,this.accessTokenForVerification=null,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!1,session:null})}handleResend(){this.resendDisabled=!0,this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=!1,this.resendDisabledTimer=null}),3e4),n(this.endpoint,this.accessTokenForVerification).then((e=>{console.log("[AUTH] Verification request resent",e),u("Please check your email for a message with verification instructions.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e)}))}handleReset(){this.submitting=!0,r(this.endpoint,{email:this.username}).then((e=>{console.log("[AUTH] Reset sent",e),this.submitting=!1,this.displayMode="login",u("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to reset password",e),this.submitting=!1}))}render(){if(!this.visible)return i("div",{style:{display:"none"}},"Authenticated");if(this.isAuthenticated)return i("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}});if("signup"===this.displayMode){const e=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname;return i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Sign up for a trial account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),1===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},i("verdocs-text-input",{label:"First Name",autocomplete:"first",required:!0,value:this.first,onInput:e=>this.first=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:!0,value:this.last,onInput:e=>this.last=e.target.value,disabled:this.submitting})),i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",required:!0,autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:!0,value:this.orgname,onInput:e=>this.orgname=e.target.value,disabled:this.submitting,style:{flex:"1"}}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Next",disabled:e,onClick:()=>this.signupStep=2,style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),2===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:e=>this.howHear=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Your Industry",options:c,value:this.industry,onInput:e=>this.industry=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Company Size",options:p,value:this.companySize,onInput:e=>this.companySize=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Purpose",options:h,value:this.reason,onInput:e=>this.reason=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),3===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),i("p",null,i("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",i("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),i("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},i("verdocs-button",{label:"Back",disabled:this.submitting,onClick:()=>{this.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),i("verdocs-button",{label:"Go to Dashboard",disabled:!0,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}return"forgot"===this.displayMode?i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Forgot your password?"),i("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),i("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleReset()})))):"verify"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Please Verify your Email Address"),i("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("div",{class:"buttons"},i("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>{this.username="",this.password="",this.cancelRecheckTimer(),this.displayMode="login"}}),i("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:()=>this.handleResend()}))):i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>{this.displayMode="signup",this.signupStep=1},disabled:this.submitting})),i("form",{onSubmit:()=>this.loginAndCheckVerification()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};v.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';export{v as verdocs_auth}
@@ -1 +1 @@
1
- import{r,h as o}from"./p-73a6f972.js";const e=class{constructor(o){r(this,o),this.selected="all"}render(){return o("div",{key:"b5bf8a69699b2d55bd2c744dc2c96ec09e185351"}," ")}};e.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';export{e as verdocs_search_tabs}
1
+ import{r,h as e}from"./p-73a6f972.js";const o=class{constructor(e){r(this,e),this.selected="all"}render(){return e("div",{key:"16e93641cee94ed98e3c8de50222fb41f5dbfb90"}," ")}};o.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';export{o as verdocs_search_tabs}
@@ -1 +1 @@
1
- import{r as o,h as e}from"./p-73a6f972.js";const t=class{constructor(e){o(this,e),this.options=void 0,this.theme=void 0,this.selectedOption=0}componentWillLoad(){var o;this.selectedOption=(null===(o=this.options)||void 0===o?void 0:o.defaultSelection)||0}render(){return e("div",{key:"bc1116c5d0c8b9a5096ace164a02c420751cc2ec",class:"container"},e("span",{key:"e0346b9aabd5e4fbb29c6f5cc897795870f0643e",class:"label"},`${this.options.label}:`),e("div",{key:"d91de7ce4ad8808f4faaa18b2865c0c4c21f7287",class:"buttons"},this.options.buttons.map(((o,t)=>e("button",{id:o.id,key:o.id,innerHTML:o.icon,class:t===this.selectedOption?"selected":"",onClick:()=>{console.log("clicked",t),this.selectedOption=t}})))))}};t.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toggle{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}';export{t as verdocs_toggle}
1
+ import{r as o,h as e}from"./p-73a6f972.js";const t=class{constructor(e){o(this,e),this.options=void 0,this.theme=void 0,this.selectedOption=0}componentWillLoad(){var o;this.selectedOption=(null===(o=this.options)||void 0===o?void 0:o.defaultSelection)||0}render(){return e("div",{key:"2cffe22d376dc972de87f698e5213c789879978a",class:"container"},e("span",{key:"9a6ad16cc9814f397284e359d29aa5eac0996517",class:"label"},`${this.options.label}:`),e("div",{key:"7869d49e9b0c7bf528d0d564baa081834cead545",class:"buttons"},this.options.buttons.map(((o,t)=>e("button",{id:o.id,key:o.id,innerHTML:o.icon,class:t===this.selectedOption?"selected":"",onClick:()=>{console.log("clicked",t),this.selectedOption=t}})))))}};t.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toggle{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}';export{t as verdocs_toggle}
@@ -1 +1 @@
1
- import{r as e,c as i,h as s,H as t}from"./p-73a6f972.js";import{VerdocsEndpoint as o,resendInvitation as n,cancelEnvelope as l,userIsEnvelopeOwner as a}from"@verdocs/js-sdk";import{g as d}from"./p-36800dd4.js";import{F as r}from"./p-251c4106.js";import{V as c}from"./p-026b3103.js";import{S as v}from"./p-fd97809c.js";import{d as p}from"./p-edaec1b6.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},w=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=o.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":n(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){this.loading=!0,l(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1,null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),this.loading=!1,c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,o,n,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.history_entries)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(n=null===(o=this.store)||void 0===o?void 0:o.state)||void 0===n?void 0:n.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const w=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||w||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":p.push("approver"===e.event_detail?{icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)}:{icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)});break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,o,n,l,d,c,v,w,g,m,b,x,f,u,y,k,z,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=a(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(n=null===(o=this.store)||void 0===o?void 0:o.state)||void 0===n?void 0:n.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p.format(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p.format(new Date(null===(g=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===g?void 0:g.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(b=null===(m=this.store)||void 0===m?void 0:m.state)||void 0===b?void 0:b.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(x=this.store)||void 0===x?void 0:x.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(k=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===k?void 0:k.first_name," ",null===(D=null===(M=null===(z=this.store)||void 0===z?void 0:z.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,o=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p.format(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};w.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{w as verdocs_envelope_sidebar}
1
+ import{r as e,c as i,h as s,H as t}from"./p-73a6f972.js";import{VerdocsEndpoint as o,resendInvitation as n,cancelEnvelope as l,userIsEnvelopeOwner as a}from"@verdocs/js-sdk";import{g as d}from"./p-c28c4e43.js";import{F as r}from"./p-251c4106.js";import{V as c}from"./p-026b3103.js";import{S as v}from"./p-fd97809c.js";import{d as p}from"./p-edaec1b6.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},w=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=o.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":n(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){this.loading=!0,l(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1,null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),this.loading=!1,c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,o,n,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.history_entries)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(n=null===(o=this.store)||void 0===o?void 0:o.state)||void 0===n?void 0:n.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const w=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||w||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":p.push("approver"===e.event_detail?{icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)}:{icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)});break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,o,n,l,d,c,v,w,g,m,b,x,f,u,y,k,z,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=a(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(n=null===(o=this.store)||void 0===o?void 0:o.state)||void 0===n?void 0:n.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p.format(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p.format(new Date(null===(g=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===g?void 0:g.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(b=null===(m=this.store)||void 0===m?void 0:m.state)||void 0===b?void 0:b.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(x=this.store)||void 0===x?void 0:x.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(k=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===k?void 0:k.first_name," ",null===(D=null===(M=null===(z=this.store)||void 0===z?void 0:z.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,o=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p.format(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};w.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{w as verdocs_envelope_sidebar}
@@ -1 +1 @@
1
- System.register(["./p-e748b2d2.system.js"],(function(o){"use strict";var r,n,e,i,t;return{setters:[function(o){r=o.r;n=o.c;e=o.h;i=o.H;t=o.g}],execute:function(){var d='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}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.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var a=d;var c="verdocs-dropdown-menu-items";var s='<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>';function u(o,r,n){var e;return function(){var i=this,t=arguments;var d=function(){e=null;if(!n)o.apply(i,t)};var a=n&&!e;clearTimeout(e);e=setTimeout(d,r);if(a)o.apply(i,t)}}var l=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=n(this,"optionSelected",7);this.options=[]}o.prototype.handleResize=function(){u(this.repositionDropdown.bind(this),100)};o.prototype.handleSelectOption=function(o,r){var n;o.stopPropagation();(n=this.optionSelected)===null||n===void 0?void 0:n.emit(r);this.hide()};o.prototype.repositionDropdown=function(){var o,r;var n=document.getElementById(c);if(n){var e=document.body.scrollWidth;var i=(o=this.dropdownButton)===null||o===void 0?void 0:o.getBoundingClientRect();var t=((r=this.dropdownButton)===null||r===void 0?void 0:r.offsetWidth)||28;console.log("Repositioning dropdown",{bodyWidth:e,buttonRect:i,triggerHeight:t},n);n.style.top="".concat(((i===null||i===void 0?void 0:i.top)||0)+t,"px");n.style.right="".concat(Math.max(0,e-((i===null||i===void 0?void 0:i.right)||0)),"px")}};o.prototype.showDropdown=function(){var o=this;this.hide();var r=document.createElement("div");r.id=c;this.options.forEach((function(n){if(!n.label){var e=document.createElement("div");e.className="verdocs-dropdown-menu-separator";r.appendChild(e)}else{var i=document.createElement("button");i.className="verdocs-dropdown-menu-option";i.disabled=n.disabled||false;i.innerHTML=n.label;i.addEventListener("click",(function(r){return o.handleSelectOption(r,n)}));r.appendChild(i)}}));document.body.appendChild(r);setTimeout(this.repositionDropdown.bind(this),50)};o.prototype.toggle=function(o){o.stopPropagation();if(document.getElementById(c)){this.hide()}else{this.showDropdown()}};o.prototype.hide=function(){var o;(o=document.getElementById(c))===null||o===void 0?void 0:o.remove()};o.prototype.render=function(){var o=this;return e(i,{key:"ba41da3a28f1fb5b36c6918967fad5297cedf8dd"},e("button",{key:"8f10c96d7e108f79115c8b4b309c7e02ab5f37f6",class:"arrow",innerHTML:s,"aria-label":"Open Menu",onClick:function(r){return o.toggle(r)},ref:function(r){return o.dropdownButton=r}}))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());l.style=a}}}));
1
+ System.register(["./p-e748b2d2.system.js"],(function(o){"use strict";var r,n,e,i,t;return{setters:[function(o){r=o.r;n=o.c;e=o.h;i=o.H;t=o.g}],execute:function(){var d='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}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.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var a=d;var c="verdocs-dropdown-menu-items";var s='<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>';function u(o,r,n){var e;return function(){var i=this,t=arguments;var d=function(){e=null;if(!n)o.apply(i,t)};var a=n&&!e;clearTimeout(e);e=setTimeout(d,r);if(a)o.apply(i,t)}}var l=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=n(this,"optionSelected",7);this.options=[]}o.prototype.handleResize=function(){u(this.repositionDropdown.bind(this),100)};o.prototype.handleSelectOption=function(o,r){var n;o.stopPropagation();(n=this.optionSelected)===null||n===void 0?void 0:n.emit(r);this.hide()};o.prototype.repositionDropdown=function(){var o,r;var n=document.getElementById(c);if(n){var e=document.body.scrollWidth;var i=(o=this.dropdownButton)===null||o===void 0?void 0:o.getBoundingClientRect();var t=((r=this.dropdownButton)===null||r===void 0?void 0:r.offsetWidth)||28;console.log("Repositioning dropdown",{bodyWidth:e,buttonRect:i,triggerHeight:t},n);n.style.top="".concat(((i===null||i===void 0?void 0:i.top)||0)+t,"px");n.style.right="".concat(Math.max(0,e-((i===null||i===void 0?void 0:i.right)||0)),"px")}};o.prototype.showDropdown=function(){var o=this;this.hide();var r=document.createElement("div");r.id=c;this.options.forEach((function(n){if(!n.label){var e=document.createElement("div");e.className="verdocs-dropdown-menu-separator";r.appendChild(e)}else{var i=document.createElement("button");i.className="verdocs-dropdown-menu-option";i.disabled=n.disabled||false;i.innerHTML=n.label;i.addEventListener("click",(function(r){return o.handleSelectOption(r,n)}));r.appendChild(i)}}));document.body.appendChild(r);setTimeout(this.repositionDropdown.bind(this),50)};o.prototype.toggle=function(o){o.stopPropagation();if(document.getElementById(c)){this.hide()}else{this.showDropdown()}};o.prototype.hide=function(){var o;(o=document.getElementById(c))===null||o===void 0?void 0:o.remove()};o.prototype.render=function(){var o=this;return e(i,{key:"747b2358b38f0f0290936973c4aaf2ec08a1a846"},e("button",{key:"733cdd06681a5324c4598d2a11e93b78e7ade53b",class:"arrow",innerHTML:s,"aria-label":"Open Menu",onClick:function(r){return o.toggle(r)},ref:function(r){return o.dropdownButton=r}}))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());l.style=a}}}));
@@ -1 +1 @@
1
- System.register(["./p-e748b2d2.system.js"],(function(e){"use strict";var o,r,a,d;return{setters:[function(e){o=e.r;r=e.c;a=e.h;d=e.H}],execute:function(){var c='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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:rgba(0, 0, 0, 0.4980392157);-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 i=c;var l=e("verdocs_dialog",function(){function e(e){o(this,e);this.exit=r(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 a(d,{key:"a70ef89e55b032e0e35b32ca7bd73143579ed719"},a("div",{key:"956e60df02c25de5bc30bf022bded3d4474254a3",class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},a("div",{key:"f786312d515007e9e5b338eea7180d73127bf68c",class:"dialog"},a("slot",{key:"6be94a4f4a45cf06eca5d6fdf5c1534a1993bddc",name:"title"},a("div",{key:"f398bb3152b46748e3e498ece109c127771e5257",class:"heading"},"Please Confirm")),a("slot",{key:"9f3fe959c07e129394cd539080738e2636061634"},a("div",{key:"6b85e230be87e43bd67a0cfc951400752a0efe06",class:"content"})))))};return e}());l.style=i;var n='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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 t=n;var s=e("verdocs_table",function(){function e(e){o(this,e);this.colHeaderClick=r(this,"colHeaderClick",7);this.rowClick=r(this,"rowClick",7);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return a(d,{key:"d048ed4b7942038c96da6873520ecaa2a83014f0",class:"table-wrapper"},a("table",{key:"4328cdcb8da0670fff20f175c9a12deba009e85d",class:"table"},a("thead",{key:"c94cbef7c8b3e05d9ee71c812525f1599529bcd1"},a("tr",{key:"d27169ab0901fef379fd2001953c944915d9cd5e",class:"row header-row"},this.columns.map((function(o,r){return a("th",{class:"col header-col col-".concat(r," col-").concat(o.id),onClick:function(){var r;return(r=e.colHeaderClick)===null||r===void 0?void 0:r.emit({col:o})},innerHTML:o.renderHeader?o.renderHeader(o):o.header||o.id})})))),a("tbody",{key:"5ecf556cd6c25d1f47220c0a22793d0a6ba8ff3e"},this.data.map((function(o){return a("tr",{class:"row data-row",onClick:function(){var r;return(r=e.rowClick)===null||r===void 0?void 0:r.emit({row:o})}},e.columns.map((function(e,r){var d;return a("td",{class:"col data-col col-".concat(r," col-").concat(e.id)},((d=e.renderCell)===null||d===void 0?void 0:d.call(e,e,o))||o[e.id])})))})))))};return e}());s.style=t}}}));
1
+ System.register(["./p-e748b2d2.system.js"],(function(e){"use strict";var o,r,a,d;return{setters:[function(e){o=e.r;r=e.c;a=e.h;d=e.H}],execute:function(){var c='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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:rgba(0, 0, 0, 0.4980392157);-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 i=c;var l=e("verdocs_dialog",function(){function e(e){o(this,e);this.exit=r(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 a(d,{key:"952c27946d1eb8552949ac29d9ffaa05222baaba"},a("div",{key:"4721082da97c31ddb4e29b05922749b42ab38845",class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},a("div",{key:"80e01d2ee87fd7ffbdd789068587d11ab4323644",class:"dialog"},a("slot",{key:"f55b17d75983192918a7c8b5b7df87ca22259b7b",name:"title"},a("div",{key:"0ebb27bff2de5a06232e419cf9eeff67abddbb3a",class:"heading"},"Please Confirm")),a("div",{key:"c93aa214cf8f4c034611f1638dff493a9b2066e2",class:"content"},a("slot",{key:"7473721bf10ed5dfe388e3d17aec8ee67a5e193f"})))))};return e}());l.style=i;var n='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}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 t=n;var s=e("verdocs_table",function(){function e(e){o(this,e);this.colHeaderClick=r(this,"colHeaderClick",7);this.rowClick=r(this,"rowClick",7);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return a(d,{key:"efe778730c2c95e24dffa2043e1b16e93a964612",class:"table-wrapper"},a("table",{key:"18b29a87f943123886ce6191e8d2cfc4f2c76b85",class:"table"},a("thead",{key:"5152847a22a948d8fa0abd8b4ecc5ecdd7014f50"},a("tr",{key:"db88562938a289ea701291926b6d221c62fcd78c",class:"row header-row"},this.columns.map((function(o,r){return a("th",{class:"col header-col col-".concat(r," col-").concat(o.id),onClick:function(){var r;return(r=e.colHeaderClick)===null||r===void 0?void 0:r.emit({col:o})},innerHTML:o.renderHeader?o.renderHeader(o):o.header||o.id})})))),a("tbody",{key:"f8fd817f153e1e1067bebed5ca5b3ee40590e1eb"},this.data.map((function(o){return a("tr",{class:"row data-row",onClick:function(){var r;return(r=e.rowClick)===null||r===void 0?void 0:r.emit({row:o})}},e.columns.map((function(e,r){return e.renderCell?a("td",{class:"col data-col col-".concat(r," col-").concat(e.id),innerHTML:e.renderCell(e,o)}):a("td",{class:"col data-col col-".concat(r," col-").concat(e.id)},o[e.id])})))})))))};return e}());s.style=t}}}));