@verdocs/web-sdk 6.2.7 → 6.3.1

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 (681) hide show
  1. package/dist/cjs/{index-BSi_QTIT.js → index-CQ5bTnED.js} +51 -12
  2. package/dist/cjs/index-CQ5bTnED.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +3 -3
  11. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  12. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -1
  14. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +25 -15
  15. package/dist/cjs/verdocs-dialog.cjs.entry.js +28 -0
  16. package/dist/cjs/verdocs-dialog.entry.cjs.js.map +1 -0
  17. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.cjs.js.map +1 -0
  19. package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +317 -0
  20. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  24. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +8 -8
  25. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  28. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  29. package/dist/cjs/{verdocs-dialog_2.cjs.entry.js → verdocs-ok-dialog.cjs.entry.js} +2 -25
  30. package/dist/cjs/verdocs-ok-dialog.entry.cjs.js.map +1 -0
  31. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-sign.cjs.entry.js +11 -11
  39. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  40. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -3
  42. package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -2
  45. package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  48. package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
  49. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  50. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  53. package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
  54. package/dist/collection/collection-manifest.json +3 -1
  55. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  56. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +1 -1
  57. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +29 -40
  58. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +13 -9
  59. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -1
  60. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.css +63 -0
  61. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +104 -0
  62. package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js.map +1 -0
  63. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  64. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  65. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  66. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  67. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +12 -12
  68. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  69. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +12 -5
  70. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
  71. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  72. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  73. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.css +94 -0
  74. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +305 -0
  75. package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js.map +1 -0
  76. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  77. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.css +4 -0
  78. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +1 -1
  79. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js.map +1 -1
  80. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.css +4 -0
  81. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +1 -1
  82. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js.map +1 -1
  83. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -0
  84. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  85. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  86. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  87. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  88. package/dist/components/index.js +5 -1
  89. package/dist/components/index.js.map +1 -1
  90. package/dist/components/{p-Da1nfhXq.js → p-5Fek5Wy9.js} +10 -10
  91. package/dist/components/{p-Da1nfhXq.js.map → p-5Fek5Wy9.js.map} +1 -1
  92. package/dist/components/{p-Cm3Ns2TB.js → p-5cFBOeAO.js} +4 -4
  93. package/dist/components/{p-Cm3Ns2TB.js.map → p-5cFBOeAO.js.map} +1 -1
  94. package/dist/components/{p-BiqAkA9R.js → p-B1xA5_lE.js} +12 -12
  95. package/dist/components/{p-BiqAkA9R.js.map → p-B1xA5_lE.js.map} +1 -1
  96. package/dist/components/p-B847qTqO.js +194 -0
  97. package/dist/components/p-B847qTqO.js.map +1 -0
  98. package/dist/components/{p-CBfSBOmz.js → p-BBgYkz_p.js} +6 -6
  99. package/dist/components/{p-CBfSBOmz.js.map → p-BBgYkz_p.js.map} +1 -1
  100. package/dist/components/{p-tGg7lt4q.js → p-BJmkJ4bg.js} +6 -6
  101. package/dist/components/{p-tGg7lt4q.js.map → p-BJmkJ4bg.js.map} +1 -1
  102. package/dist/components/{p-RQJ9uyyW.js → p-BLnFOrAj.js} +3 -3
  103. package/dist/components/{p-RQJ9uyyW.js.map → p-BLnFOrAj.js.map} +1 -1
  104. package/dist/components/{p-mrJQukV3.js → p-BQVsyF2B.js} +4 -4
  105. package/dist/components/{p-mrJQukV3.js.map → p-BQVsyF2B.js.map} +1 -1
  106. package/dist/components/{p-Ck_1uk0F.js → p-Be40bZ4S.js} +15 -15
  107. package/dist/components/{p-Ck_1uk0F.js.map → p-Be40bZ4S.js.map} +1 -1
  108. package/dist/components/{p-CwgpN7A7.js → p-BjnLxewv.js} +40 -18
  109. package/dist/components/p-BjnLxewv.js.map +1 -0
  110. package/dist/components/{p-C2cseLAY.js → p-Bp0u1Tax.js} +3 -3
  111. package/dist/components/{p-C2cseLAY.js.map → p-Bp0u1Tax.js.map} +1 -1
  112. package/dist/components/{p-Bf5ceLBh.js → p-BtUdLOJF.js} +4 -4
  113. package/dist/components/{p-Bf5ceLBh.js.map → p-BtUdLOJF.js.map} +1 -1
  114. package/dist/components/{p-AVxZpgsX.js → p-C74Z96Hx.js} +8 -8
  115. package/dist/components/{p-AVxZpgsX.js.map → p-C74Z96Hx.js.map} +1 -1
  116. package/dist/components/{p-wj1u5UNC.js → p-C7Lom-pC.js} +3 -3
  117. package/dist/components/{p-wj1u5UNC.js.map → p-C7Lom-pC.js.map} +1 -1
  118. package/dist/components/{p-Dwu1JL0y.js → p-C97fAomN.js} +39 -20
  119. package/dist/components/p-C97fAomN.js.map +1 -0
  120. package/dist/components/{p-DIl7zlTd.js → p-CRuFRHzn.js} +3 -3
  121. package/dist/components/{p-DIl7zlTd.js.map → p-CRuFRHzn.js.map} +1 -1
  122. package/dist/components/{p-vDfciSeg.js → p-CSxSI_ON.js} +29 -29
  123. package/dist/components/{p-vDfciSeg.js.map → p-CSxSI_ON.js.map} +1 -1
  124. package/dist/components/{p-9up2BmHp.js → p-CUAGH_8P.js} +39 -4
  125. package/dist/components/p-CUAGH_8P.js.map +1 -0
  126. package/dist/components/p-CWGZlA4l.js +62 -0
  127. package/dist/components/p-CWGZlA4l.js.map +1 -0
  128. package/dist/components/{p-BhqIuhDg.js → p-CYcdoH4s.js} +3 -3
  129. package/dist/components/{p-BhqIuhDg.js.map → p-CYcdoH4s.js.map} +1 -1
  130. package/dist/components/{p-D_QT5uZk.js → p-CbATIWo8.js} +3 -3
  131. package/dist/components/{p-D_QT5uZk.js.map → p-CbATIWo8.js.map} +1 -1
  132. package/dist/components/{p-IbPNQm1I.js → p-CcVkCmQi.js} +13 -13
  133. package/dist/components/p-CcVkCmQi.js.map +1 -0
  134. package/dist/components/{p-BW3GsUj9.js → p-Cf0Hy4s4.js} +3 -3
  135. package/dist/components/{p-BW3GsUj9.js.map → p-Cf0Hy4s4.js.map} +1 -1
  136. package/dist/components/{p-C3iwT41e.js → p-ClMXECec.js} +3 -3
  137. package/dist/components/{p-C3iwT41e.js.map → p-ClMXECec.js.map} +1 -1
  138. package/dist/components/{p-Bba-t7GY.js → p-CmOvVqbw.js} +4 -4
  139. package/dist/components/{p-Bba-t7GY.js.map → p-CmOvVqbw.js.map} +1 -1
  140. package/dist/components/{p-fnInzV73.js → p-Cxr-iSrc.js} +4 -4
  141. package/dist/components/{p-fnInzV73.js.map → p-Cxr-iSrc.js.map} +1 -1
  142. package/dist/components/{p-CPvyHpp6.js → p-D-o8QR0Y.js} +4 -4
  143. package/dist/components/{p-CPvyHpp6.js.map → p-D-o8QR0Y.js.map} +1 -1
  144. package/dist/components/{p-9Csbf-tN.js → p-D90w1eGV.js} +7 -7
  145. package/dist/components/{p-9Csbf-tN.js.map → p-D90w1eGV.js.map} +1 -1
  146. package/dist/components/{p-_BQ9q2MT.js → p-D9PE4xz7.js} +4 -4
  147. package/dist/components/{p-_BQ9q2MT.js.map → p-D9PE4xz7.js.map} +1 -1
  148. package/dist/components/{p-Ctqad2FQ.js → p-D9wBk_Bz.js} +3 -3
  149. package/dist/components/{p-Ctqad2FQ.js.map → p-D9wBk_Bz.js.map} +1 -1
  150. package/dist/components/{p-kvTSiSQ0.js → p-DHOg-bdt.js} +4 -4
  151. package/dist/components/p-DHOg-bdt.js.map +1 -0
  152. package/dist/components/{p-D2DrESHF.js → p-DHYsT4bg.js} +27 -27
  153. package/dist/components/{p-D2DrESHF.js.map → p-DHYsT4bg.js.map} +1 -1
  154. package/dist/components/{p-Opf3i5hz.js → p-DJ98c2L8.js} +3 -3
  155. package/dist/components/{p-Opf3i5hz.js.map → p-DJ98c2L8.js.map} +1 -1
  156. package/dist/components/{p-DaDjn3gR.js → p-DLRzhboq.js} +5 -5
  157. package/dist/components/{p-DaDjn3gR.js.map → p-DLRzhboq.js.map} +1 -1
  158. package/dist/components/{p-CkxqbZql.js → p-DMN-w8Ma.js} +11 -11
  159. package/dist/components/{p-CkxqbZql.js.map → p-DMN-w8Ma.js.map} +1 -1
  160. package/dist/components/{p-jXH2SygA.js → p-DQ5Kf869.js} +15 -15
  161. package/dist/components/p-DQ5Kf869.js.map +1 -0
  162. package/dist/components/{p-BJqJsTbt.js → p-DQZV5DpX.js} +16 -16
  163. package/dist/components/p-DQZV5DpX.js.map +1 -0
  164. package/dist/components/{p-BL3Ul9SN.js → p-DQc8oYff.js} +3 -3
  165. package/dist/components/{p-BL3Ul9SN.js.map → p-DQc8oYff.js.map} +1 -1
  166. package/dist/components/{p-Bq8xEv_t.js → p-DYfrJ4GD.js} +10 -10
  167. package/dist/components/{p-Bq8xEv_t.js.map → p-DYfrJ4GD.js.map} +1 -1
  168. package/dist/components/{p-CDYnBmu_.js → p-DZonUNfY.js} +14 -14
  169. package/dist/components/{p-CDYnBmu_.js.map → p-DZonUNfY.js.map} +1 -1
  170. package/dist/components/{p-CBRYaKLM.js → p-DaISePSz.js} +3 -3
  171. package/dist/components/{p-CBRYaKLM.js.map → p-DaISePSz.js.map} +1 -1
  172. package/dist/components/{p-DGJlf5J_.js → p-Ddtzdi61.js} +3 -3
  173. package/dist/components/{p-DGJlf5J_.js.map → p-Ddtzdi61.js.map} +1 -1
  174. package/dist/components/{p-DDxQuWAZ.js → p-Dj0PabuK.js} +10 -10
  175. package/dist/components/{p-DDxQuWAZ.js.map → p-Dj0PabuK.js.map} +1 -1
  176. package/dist/components/{p-CJt2BxDt.js → p-DzDB_SyD.js} +12 -12
  177. package/dist/components/{p-CJt2BxDt.js.map → p-DzDB_SyD.js.map} +1 -1
  178. package/dist/components/{p-BvDqCFDj.js → p-ExxjGoKu.js} +4 -4
  179. package/dist/components/{p-BvDqCFDj.js.map → p-ExxjGoKu.js.map} +1 -1
  180. package/dist/components/{p-icGdbhUU.js → p-MU4718Ji.js} +3 -3
  181. package/dist/components/{p-icGdbhUU.js.map → p-MU4718Ji.js.map} +1 -1
  182. package/dist/components/{p-CnRyZDAM.js → p-MbNTNztz.js} +12 -12
  183. package/dist/components/{p-CnRyZDAM.js.map → p-MbNTNztz.js.map} +1 -1
  184. package/dist/components/{p-Q6w_Yld9.js → p-ShTRLp1e.js} +10 -10
  185. package/dist/components/{p-Q6w_Yld9.js.map → p-ShTRLp1e.js.map} +1 -1
  186. package/dist/components/{p-BUDGHfvB.js → p-_8VAlOYF.js} +4 -4
  187. package/dist/components/{p-BUDGHfvB.js.map → p-_8VAlOYF.js.map} +1 -1
  188. package/dist/components/{p-DPBSrcaG.js → p-dBiQS3q6.js} +7 -7
  189. package/dist/components/{p-DPBSrcaG.js.map → p-dBiQS3q6.js.map} +1 -1
  190. package/dist/components/{p-LeCnrgBv.js → p-ewRI_6tO.js} +7 -7
  191. package/dist/components/{p-LeCnrgBv.js.map → p-ewRI_6tO.js.map} +1 -1
  192. package/dist/components/{p-gEwPUp5J.js → p-foP05GI4.js} +28 -28
  193. package/dist/components/{p-gEwPUp5J.js.map → p-foP05GI4.js.map} +1 -1
  194. package/dist/components/{p-C2Dmo84A.js → p-l5nPaeTL.js} +3 -3
  195. package/dist/components/{p-C2Dmo84A.js.map → p-l5nPaeTL.js.map} +1 -1
  196. package/dist/components/{p-KqTfG8Kf.js → p-qfdb4bEJ.js} +3 -3
  197. package/dist/components/{p-KqTfG8Kf.js.map → p-qfdb4bEJ.js.map} +1 -1
  198. package/dist/components/{p-BPPiqx8Q.js → p-s5aulRbG.js} +12 -12
  199. package/dist/components/{p-BPPiqx8Q.js.map → p-s5aulRbG.js.map} +1 -1
  200. package/dist/components/{p-D_sm-ZDj.js → p-tXZcbV3w.js} +12 -12
  201. package/dist/components/{p-D_sm-ZDj.js.map → p-tXZcbV3w.js.map} +1 -1
  202. package/dist/components/{p-CrZquwr4.js → p-xtoLmSCb.js} +5 -5
  203. package/dist/components/{p-CrZquwr4.js.map → p-xtoLmSCb.js.map} +1 -1
  204. package/dist/components/{p-gGtgKfmC.js → p-zln1sHDr.js} +12 -12
  205. package/dist/components/{p-gGtgKfmC.js.map → p-zln1sHDr.js.map} +1 -1
  206. package/dist/components/verdocs-auth.js +4 -4
  207. package/dist/components/verdocs-build.js +43 -43
  208. package/dist/components/verdocs-button-panel.js +1 -1
  209. package/dist/components/verdocs-button.js +1 -1
  210. package/dist/components/verdocs-checkbox.js +1 -1
  211. package/dist/components/verdocs-component-error.js +1 -1
  212. package/dist/components/verdocs-contact-picker.js +1 -1
  213. package/dist/components/verdocs-date-input.js +2 -2
  214. package/dist/components/verdocs-delegate-dialog.js +1 -1
  215. package/dist/components/verdocs-dialog.js +1 -1
  216. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  217. package/dist/components/verdocs-dropdown.js +1 -1
  218. package/dist/components/verdocs-envelope-document-page.js +1 -1
  219. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  220. package/dist/components/verdocs-envelope-recipient-summary.js +2 -2
  221. package/dist/components/verdocs-envelope-sidebar.js +11 -11
  222. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  223. package/dist/components/verdocs-envelopes-list.js +17 -17
  224. package/dist/components/verdocs-field-attachment.js +1 -1
  225. package/dist/components/verdocs-field-checkbox.js +1 -1
  226. package/dist/components/verdocs-field-date.js +1 -1
  227. package/dist/components/verdocs-field-dropdown.js +1 -1
  228. package/dist/components/verdocs-field-initial.js +1 -1
  229. package/dist/components/verdocs-field-payment.js +10 -10
  230. package/dist/components/verdocs-field-radio.js +1 -1
  231. package/dist/components/verdocs-field-signature.js +1 -1
  232. package/dist/components/verdocs-field-textarea.js +1 -1
  233. package/dist/components/verdocs-field-textbox.js +1 -1
  234. package/dist/components/verdocs-field-timestamp.js +1 -1
  235. package/dist/components/verdocs-file-chooser.js +1 -1
  236. package/dist/components/verdocs-help-icon.js +1 -1
  237. package/dist/components/verdocs-initial-dialog.js +1 -1
  238. package/dist/components/verdocs-kba-dialog.js +1 -1
  239. package/dist/components/verdocs-loader.js +1 -1
  240. package/dist/components/verdocs-menu-panel.js +1 -1
  241. package/dist/components/verdocs-multiselect.js +2 -2
  242. package/dist/components/verdocs-ok-dialog.js +1 -1
  243. package/dist/components/verdocs-organization-card.js +2 -2
  244. package/dist/components/verdocs-otp-dialog.js +1 -1
  245. package/dist/components/verdocs-pagination.js +1 -1
  246. package/dist/components/verdocs-portal.js +1 -1
  247. package/dist/components/verdocs-preview.js +1 -1
  248. package/dist/components/verdocs-progress-bar.js +1 -1
  249. package/dist/components/verdocs-question-dialog.d.ts +11 -0
  250. package/dist/components/verdocs-question-dialog.js +9 -0
  251. package/dist/components/verdocs-question-dialog.js.map +1 -0
  252. package/dist/components/verdocs-quick-filter.js +1 -1
  253. package/dist/components/verdocs-quick-functions.js +2 -2
  254. package/dist/components/verdocs-radio-button.js +1 -1
  255. package/dist/components/verdocs-search-box.js +1 -1
  256. package/dist/components/verdocs-search-tabs.js +2 -2
  257. package/dist/components/verdocs-select-input.js +1 -1
  258. package/dist/components/verdocs-send.js +1 -1
  259. package/dist/components/verdocs-sign-footer.d.ts +11 -0
  260. package/dist/components/verdocs-sign-footer.js +9 -0
  261. package/dist/components/verdocs-sign-footer.js.map +1 -0
  262. package/dist/components/verdocs-sign.js +65 -41
  263. package/dist/components/verdocs-sign.js.map +1 -1
  264. package/dist/components/verdocs-signature-dialog.js +1 -1
  265. package/dist/components/verdocs-spinner.js +1 -1
  266. package/dist/components/verdocs-status-indicator.js +1 -1
  267. package/dist/components/verdocs-switch.js +1 -1
  268. package/dist/components/verdocs-table.js +1 -1
  269. package/dist/components/verdocs-tabs.js +1 -1
  270. package/dist/components/verdocs-template-attachments.js +1 -1
  271. package/dist/components/verdocs-template-build-tabs.js +1 -1
  272. package/dist/components/verdocs-template-card.js +2 -2
  273. package/dist/components/verdocs-template-create.js +5 -5
  274. package/dist/components/verdocs-template-document-page.js +1 -1
  275. package/dist/components/verdocs-template-field-properties.js +1 -1
  276. package/dist/components/verdocs-template-fields.js +1 -1
  277. package/dist/components/verdocs-template-role-properties.js +1 -1
  278. package/dist/components/verdocs-template-roles.js +1 -1
  279. package/dist/components/verdocs-template-settings.js +1 -1
  280. package/dist/components/verdocs-template-star.js +1 -1
  281. package/dist/components/verdocs-template-tags.js +2 -2
  282. package/dist/components/verdocs-templates-list.js +11 -11
  283. package/dist/components/verdocs-text-input.js +1 -1
  284. package/dist/components/verdocs-toggle-button.js +1 -1
  285. package/dist/components/verdocs-toggle.js +1 -1
  286. package/dist/components/verdocs-toolbar-icon.js +1 -1
  287. package/dist/components/verdocs-upload-dialog.js +1 -1
  288. package/dist/components/verdocs-view.js +1 -1
  289. package/dist/custom-elements.json +30 -0
  290. package/dist/esm/{index-DjAHH4ih.js → index-BIRwgFLv.js} +51 -12
  291. package/dist/esm/index-BIRwgFLv.js.map +1 -0
  292. package/dist/esm/loader.js +3 -3
  293. package/dist/esm/verdocs-auth.entry.js +1 -1
  294. package/dist/esm/verdocs-build.entry.js +1 -1
  295. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  296. package/dist/esm/verdocs-button_3.entry.js +1 -1
  297. package/dist/esm/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -1
  298. package/dist/esm/verdocs-checkbox_5.entry.js +2 -2
  299. package/dist/esm/verdocs-contact-picker.entry.js +3 -3
  300. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  301. package/dist/esm/verdocs-date-input.entry.js +1 -1
  302. package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  303. package/dist/esm/verdocs-delegate-dialog_5.entry.js +25 -15
  304. package/dist/esm/verdocs-dialog.entry.js +26 -0
  305. package/dist/esm/verdocs-dialog.entry.js.map +1 -0
  306. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  307. package/dist/esm/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -0
  308. package/dist/esm/verdocs-envelope-document-page_3.entry.js +313 -0
  309. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  310. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
  311. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  312. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  313. package/dist/esm/verdocs-field-attachment_13.entry.js +8 -8
  314. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  315. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  316. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  317. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  318. package/dist/esm/{verdocs-dialog_2.entry.js → verdocs-ok-dialog.entry.js} +3 -25
  319. package/dist/esm/verdocs-ok-dialog.entry.js.map +1 -0
  320. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  321. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  322. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  323. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  324. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  325. package/dist/esm/verdocs-search-box.entry.js +1 -1
  326. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  327. package/dist/esm/verdocs-sign.entry.js +12 -12
  328. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  329. package/dist/esm/verdocs-spinner.entry.js +1 -1
  330. package/dist/esm/verdocs-status-indicator.entry.js +3 -3
  331. package/dist/esm/verdocs-switch.entry.js +1 -1
  332. package/dist/esm/verdocs-table.entry.js +1 -1
  333. package/dist/esm/verdocs-template-card.entry.js +2 -2
  334. package/dist/esm/verdocs-template-create.entry.js +1 -1
  335. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  336. package/dist/esm/verdocs-template-star.entry.js +2 -2
  337. package/dist/esm/verdocs-template-tags.entry.js +2 -2
  338. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  339. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  340. package/dist/esm/verdocs-toggle.entry.js +1 -1
  341. package/dist/esm/verdocs-web-sdk.js +4 -4
  342. package/dist/esm/verdocs-web-sdk.js.map +1 -1
  343. package/dist/esm-es5/index-BIRwgFLv.js +2 -0
  344. package/dist/esm-es5/index-BIRwgFLv.js.map +1 -0
  345. package/dist/esm-es5/loader.js +1 -1
  346. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  347. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -1
  351. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-checkbox_5.entry.js.map +1 -1
  353. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  354. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  355. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  357. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
  359. package/dist/esm-es5/verdocs-dialog.entry.js +2 -0
  360. package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -0
  361. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -0
  363. package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +2 -0
  364. package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js.map +1 -0
  365. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  371. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  373. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  374. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  375. package/dist/esm-es5/verdocs-ok-dialog.entry.js +2 -0
  376. package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +1 -0
  377. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  378. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  379. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  380. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  381. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  382. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  383. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  384. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  385. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  386. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  387. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  388. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  389. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  390. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  391. package/dist/esm-es5/verdocs-template-create.entry.js +1 -1
  392. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  393. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  394. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  395. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  396. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  397. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  398. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  399. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  400. package/dist/types/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.d.ts +24 -0
  401. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +0 -1
  402. package/dist/types/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.d.ts +53 -0
  403. package/dist/types/components.d.ts +160 -2
  404. package/dist/types/stencil-public-runtime.d.ts +1 -1
  405. package/dist/verdocs-web-sdk/{p-1Cwi_bnK.system.js.map → p--vmsuu3V.system.js.map} +1 -1
  406. package/dist/verdocs-web-sdk/{p-24a5020f.system.entry.js → p-05d69432.system.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-22d7fd99.entry.js → p-09c39bb0.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-CDd3Y_Oc.system.js.map → p-0YtsUAM2.system.js.map} +1 -1
  409. package/dist/verdocs-web-sdk/{p-095f01ea.entry.js → p-0bcad97a.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-7787a0e4.system.entry.js → p-0c0bc455.system.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/p-0c77bf48.entry.js +2 -0
  412. package/dist/verdocs-web-sdk/p-0c77bf48.entry.js.map +1 -0
  413. package/dist/verdocs-web-sdk/{p-83057e79.entry.js → p-0d2d4a51.entry.js} +2 -2
  414. package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js +2 -0
  415. package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js.map +1 -0
  416. package/dist/verdocs-web-sdk/{p-1bc8a67b.entry.js → p-1382d27a.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/{p-bcad2169.system.entry.js → p-14c53f80.system.entry.js} +2 -2
  418. package/dist/verdocs-web-sdk/{p-e612587a.entry.js → p-14d762cd.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/{p-c137b66c.entry.js → p-159eca82.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-8f615cf8.entry.js → p-1c6b6903.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/{p-68dc5809.entry.js → p-1d7ad250.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/p-1deb700a.entry.js +2 -0
  423. package/dist/verdocs-web-sdk/p-1deb700a.entry.js.map +1 -0
  424. package/dist/verdocs-web-sdk/{p-9a614582.entry.js → p-228e230f.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-54089f3f.system.entry.js → p-270d59bd.system.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-56cd489c.entry.js → p-2753f307.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-da01f5fd.entry.js → p-29cd606e.entry.js} +3 -3
  428. package/dist/verdocs-web-sdk/{p-8ae75311.entry.js → p-2c19375d.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/{p-DpcvJtUM.system.js.map → p-2xwvEc_F.system.js.map} +1 -1
  430. package/dist/verdocs-web-sdk/{p-77a495cb.system.entry.js → p-314a958b.system.entry.js} +2 -2
  431. package/dist/verdocs-web-sdk/{p-3f18c552.system.entry.js → p-314eebba.system.entry.js} +2 -2
  432. package/dist/verdocs-web-sdk/{p-e9be55a9.entry.js → p-3b76f728.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/p-44fd33e0.entry.js +2 -0
  434. package/dist/verdocs-web-sdk/{p-77a3e9ea.entry.js.map → p-44fd33e0.entry.js.map} +1 -1
  435. package/dist/verdocs-web-sdk/p-46c1af93.system.entry.js +2 -0
  436. package/dist/verdocs-web-sdk/p-46c1af93.system.entry.js.map +1 -0
  437. package/dist/verdocs-web-sdk/{p-a7b796c9.entry.js → p-49122faa.entry.js} +2 -2
  438. package/dist/verdocs-web-sdk/p-49122faa.entry.js.map +1 -0
  439. package/dist/verdocs-web-sdk/{p-0d3060d5.system.entry.js → p-4bd8b685.system.entry.js} +2 -2
  440. package/dist/verdocs-web-sdk/{p-DjReAtE4.system.js.map → p-4gw3gtyg.system.js.map} +1 -1
  441. package/dist/verdocs-web-sdk/{p-a4b4356a.entry.js → p-5662207e.entry.js} +2 -2
  442. package/dist/verdocs-web-sdk/{p-b2598797.system.entry.js → p-574a6e6f.system.entry.js} +2 -2
  443. package/dist/verdocs-web-sdk/{p-03a6ee37.system.entry.js → p-59190e63.system.entry.js} +2 -2
  444. package/dist/verdocs-web-sdk/{p-7c552800.entry.js → p-6093e7f5.entry.js} +2 -2
  445. package/dist/verdocs-web-sdk/{p-e1010b5e.entry.js → p-63ab6794.entry.js} +2 -2
  446. package/dist/verdocs-web-sdk/{p-c636caf4.entry.js → p-67a376cb.entry.js} +2 -2
  447. package/dist/verdocs-web-sdk/{p-91455dc1.system.entry.js → p-6987434e.system.entry.js} +2 -2
  448. package/dist/verdocs-web-sdk/{p-7032e5ee.entry.js → p-6ac24714.entry.js} +2 -2
  449. package/dist/verdocs-web-sdk/{p-899a183a.system.entry.js → p-6bc3511b.system.entry.js} +2 -2
  450. package/dist/verdocs-web-sdk/{p-Cw8YN0pQ.system.js.map → p-6cRdX3ws.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/{p-331b0a01.entry.js → p-6de1884e.entry.js} +2 -2
  452. package/dist/verdocs-web-sdk/{p-8daa82ec.system.entry.js → p-755119da.system.entry.js} +2 -2
  453. package/dist/verdocs-web-sdk/{p-74f1369b.entry.js → p-77d8e792.entry.js} +2 -2
  454. package/dist/verdocs-web-sdk/{p-2ab55e7e.entry.js → p-79dba586.entry.js} +2 -2
  455. package/dist/verdocs-web-sdk/{p-b2d5d57c.system.entry.js → p-7ab4a24b.system.entry.js} +2 -2
  456. package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js.map +1 -0
  457. package/dist/verdocs-web-sdk/{p-408204b5.entry.js → p-80e6f99d.entry.js} +2 -2
  458. package/dist/verdocs-web-sdk/{p-6ec49614.system.entry.js → p-81eb7d87.system.entry.js} +2 -2
  459. package/dist/verdocs-web-sdk/p-8ceda2dc.system.entry.js +2 -0
  460. package/dist/verdocs-web-sdk/{p-77a96b42.system.entry.js.map → p-8ceda2dc.system.entry.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-75154f85.system.entry.js → p-9339d348.system.entry.js} +2 -2
  462. package/dist/verdocs-web-sdk/{p-424acea6.system.entry.js → p-97dd9902.system.entry.js} +2 -2
  463. package/dist/verdocs-web-sdk/{p-2083a0b5.system.entry.js → p-995169b9.system.entry.js} +2 -2
  464. package/dist/verdocs-web-sdk/{p-f706a680.system.entry.js → p-99ae19a0.system.entry.js} +2 -2
  465. package/dist/verdocs-web-sdk/{p-8697ea44.system.entry.js → p-9fcc54f8.system.entry.js} +2 -2
  466. package/dist/verdocs-web-sdk/{p-D2J4BqZ5.system.js.map → p-B0D33bcu.system.js.map} +1 -1
  467. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +2 -0
  468. package/dist/verdocs-web-sdk/{p-BSxnvcXp.system.js.map → p-B8zpaHu-.system.js.map} +1 -1
  469. package/dist/verdocs-web-sdk/{p-mV1PT3tZ.system.js.map → p-BGlPI7AC.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/p-BIRwgFLv.js +3 -0
  471. package/dist/verdocs-web-sdk/p-BIRwgFLv.js.map +1 -0
  472. package/dist/verdocs-web-sdk/{p-DmidtinD.system.js.map → p-BJqpjw-r.system.js.map} +1 -1
  473. package/dist/verdocs-web-sdk/p-BK1P8OnR.system.js.map +1 -0
  474. package/dist/verdocs-web-sdk/p-BO6MZhlp.system.js +3 -0
  475. package/dist/verdocs-web-sdk/p-BO6MZhlp.system.js.map +1 -0
  476. package/dist/verdocs-web-sdk/{p-DIFMCsR8.system.js.map → p-BOIq74fd.system.js.map} +1 -1
  477. package/dist/verdocs-web-sdk/{p-Bfjmk6kM.system.js.map → p-BRQAtXgj.system.js.map} +1 -1
  478. package/dist/verdocs-web-sdk/{p-YdG8FzTN.system.js.map → p-BWbfBzAr.system.js.map} +1 -1
  479. package/dist/verdocs-web-sdk/{p-tlNLqVnV.system.js.map → p-BhANrWDa.system.js.map} +1 -1
  480. package/dist/verdocs-web-sdk/{p-DqN8pWd6.system.js.map → p-ByKENGSG.system.js.map} +1 -1
  481. package/dist/verdocs-web-sdk/{p-D6lkIXxV.system.js.map → p-CD1Gqdjg.system.js.map} +1 -1
  482. package/dist/verdocs-web-sdk/{p-BLUIpLYQ.system.js.map → p-CJEtk8yq.system.js.map} +1 -1
  483. package/dist/verdocs-web-sdk/{p-BFiBadxx.system.js.map → p-CKOnL51R.system.js.map} +1 -1
  484. package/dist/verdocs-web-sdk/{p-qmFLckgf.system.js.map → p-CPejf19w.system.js.map} +1 -1
  485. package/dist/verdocs-web-sdk/{p-BDfCyBqE.system.js.map → p-CQci2PMw.system.js.map} +1 -1
  486. package/dist/verdocs-web-sdk/p-CTxgqZQn.system.js.map +1 -0
  487. package/dist/verdocs-web-sdk/{p-BR93bjYo.system.js.map → p-CU8FT6ot.system.js.map} +1 -1
  488. package/dist/verdocs-web-sdk/{p-DC4mn44e.system.js.map → p-C_2Ossf2.system.js.map} +1 -1
  489. package/dist/verdocs-web-sdk/{p-C-KROPlf.system.js.map → p-CjbrW449.system.js.map} +1 -1
  490. package/dist/verdocs-web-sdk/p-CzO641zU.system.js.map +1 -0
  491. package/dist/verdocs-web-sdk/p-CzugWljc.system.js.map +1 -0
  492. package/dist/verdocs-web-sdk/{p-D-jNdMbp.system.js.map → p-D2ZYm5cm.system.js.map} +1 -1
  493. package/dist/verdocs-web-sdk/{p-CoMELZur.system.js.map → p-D9Bo3I4r.system.js.map} +1 -1
  494. package/dist/verdocs-web-sdk/{p-DN26hbJo.system.js.map → p-DASzZUhG.system.js.map} +1 -1
  495. package/dist/verdocs-web-sdk/{p-Bf1JxkHa.system.js.map → p-DGJgRe1p.system.js.map} +1 -1
  496. package/dist/verdocs-web-sdk/p-D_YsBkfv.system.js.map +1 -0
  497. package/dist/verdocs-web-sdk/{p-DrJsQShN.system.js.map → p-DbN8Hgam.system.js.map} +1 -1
  498. package/dist/verdocs-web-sdk/{p-BAjoE0hn.system.js.map → p-Dds3TKDk.system.js.map} +1 -1
  499. package/dist/verdocs-web-sdk/{p-CuZVPC43.system.js.map → p-DjEDnCUT.system.js.map} +1 -1
  500. package/dist/verdocs-web-sdk/{p-L9recsMg.system.js.map → p-DoIzZVRM.system.js.map} +1 -1
  501. package/dist/verdocs-web-sdk/{p-CgYIryaO.system.js.map → p-LJP2gGrW.system.js.map} +1 -1
  502. package/dist/verdocs-web-sdk/{p-Cs7NUoKG.system.js.map → p-Ls0TeKFP.system.js.map} +1 -1
  503. package/dist/verdocs-web-sdk/{p-BTH3kXDy.system.js.map → p-RthJMgT5.system.js.map} +1 -1
  504. package/dist/verdocs-web-sdk/{p-D5jBjbqb.system.js.map → p-SA_7qBwy.system.js.map} +1 -1
  505. package/dist/verdocs-web-sdk/{p-bd7e0e8f.system.entry.js → p-a29716da.system.entry.js} +2 -2
  506. package/dist/verdocs-web-sdk/{p-e6c86704.system.entry.js → p-a59be807.system.entry.js} +2 -2
  507. package/dist/verdocs-web-sdk/{p-e251a7f7.entry.js → p-a8582158.entry.js} +2 -2
  508. package/dist/verdocs-web-sdk/{p-94805e3a.system.entry.js → p-a87d21bc.system.entry.js} +2 -2
  509. package/dist/verdocs-web-sdk/{p-10496565.entry.js → p-a90d4850.entry.js} +2 -2
  510. package/dist/verdocs-web-sdk/p-aa1f6673.entry.js +2 -0
  511. package/dist/verdocs-web-sdk/p-aa1f6673.entry.js.map +1 -0
  512. package/dist/verdocs-web-sdk/{p-a8ccb0e1.entry.js → p-abf6f99e.entry.js} +2 -2
  513. package/dist/verdocs-web-sdk/{p-95098523.entry.js → p-ac595231.entry.js} +2 -2
  514. package/dist/verdocs-web-sdk/p-ac9343dd.system.entry.js +2 -0
  515. package/dist/verdocs-web-sdk/p-ac9343dd.system.entry.js.map +1 -0
  516. package/dist/verdocs-web-sdk/p-acd04b08.entry.js +2 -0
  517. package/dist/verdocs-web-sdk/p-acd04b08.entry.js.map +1 -0
  518. package/dist/verdocs-web-sdk/{p-296df8e6.system.entry.js → p-afb4f00a.system.entry.js} +2 -2
  519. package/dist/verdocs-web-sdk/{p-ba37926e.system.entry.js → p-b1c41006.system.entry.js} +2 -2
  520. package/dist/verdocs-web-sdk/{p-6ec9a626.system.entry.js → p-b70cbb9c.system.entry.js} +2 -2
  521. package/dist/verdocs-web-sdk/p-b976781d.system.entry.js +2 -0
  522. package/dist/verdocs-web-sdk/p-b976781d.system.entry.js.map +1 -0
  523. package/dist/verdocs-web-sdk/{p-d0cdb769.entry.js → p-bea6ce53.entry.js} +2 -2
  524. package/dist/verdocs-web-sdk/{p-05b5f6a8.system.entry.js → p-c061d0f7.system.entry.js} +2 -2
  525. package/dist/verdocs-web-sdk/{p-4251e17b.system.entry.js → p-c996f71e.system.entry.js} +2 -2
  526. package/dist/verdocs-web-sdk/{p-d995bf66.entry.js → p-cc638c7d.entry.js} +2 -2
  527. package/dist/verdocs-web-sdk/{p-a5c1783e.system.entry.js → p-cda179bf.system.entry.js} +2 -2
  528. package/dist/verdocs-web-sdk/{p-d68d286d.entry.js → p-ce3e9ace.entry.js} +2 -2
  529. package/dist/verdocs-web-sdk/{p-5808c4ab.system.entry.js → p-e3fef183.system.entry.js} +2 -2
  530. package/dist/verdocs-web-sdk/{p-79a57db4.system.entry.js → p-e4f0949d.system.entry.js} +2 -2
  531. package/dist/verdocs-web-sdk/{p-dc64588a.system.entry.js → p-e5ac5479.system.entry.js} +2 -2
  532. package/dist/verdocs-web-sdk/{p-b81c87a9.entry.js → p-e8d6a5ca.entry.js} +2 -2
  533. package/dist/verdocs-web-sdk/{p-1b86055f.entry.js → p-ea69720d.entry.js} +2 -2
  534. package/dist/verdocs-web-sdk/{p-b0e8639b.system.entry.js → p-ead7ce15.system.entry.js} +2 -2
  535. package/dist/verdocs-web-sdk/{p-b954399f.system.entry.js → p-ec6f161e.system.entry.js} +2 -2
  536. package/dist/verdocs-web-sdk/p-ed353630.entry.js +2 -0
  537. package/dist/verdocs-web-sdk/p-ed353630.entry.js.map +1 -0
  538. package/dist/verdocs-web-sdk/{p-84ef045b.entry.js → p-eee0e96c.entry.js} +2 -2
  539. package/dist/verdocs-web-sdk/{p-072cf3bf.system.entry.js → p-f0c1a98b.system.entry.js} +4 -4
  540. package/dist/verdocs-web-sdk/{p-262e6ed3.entry.js → p-f40ab4f5.entry.js} +2 -2
  541. package/dist/verdocs-web-sdk/{p-85a01930.system.entry.js → p-f51c7617.system.entry.js} +2 -2
  542. package/dist/verdocs-web-sdk/{p-474ac411.entry.js → p-fd51104b.entry.js} +3 -3
  543. package/dist/verdocs-web-sdk/p-ffb4ee7b.system.entry.js +2 -0
  544. package/dist/verdocs-web-sdk/p-ffb4ee7b.system.entry.js.map +1 -0
  545. package/dist/verdocs-web-sdk/{p-pcmVRVX-.system.js.map → p-kWPPZ5YQ.system.js.map} +1 -1
  546. package/dist/verdocs-web-sdk/{p-jGm3fIdS.system.js.map → p-no56iQU4.system.js.map} +1 -1
  547. package/dist/verdocs-web-sdk/p-qtfDSnRg.system.js.map +1 -0
  548. package/dist/verdocs-web-sdk/{p-CJgSdGDZ.system.js.map → p-tMwKz0tH.system.js.map} +1 -1
  549. package/dist/verdocs-web-sdk/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.esm.js.map +1 -1
  550. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  551. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -1
  552. package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +1 -0
  553. package/dist/verdocs-web-sdk/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.esm.js.map +1 -0
  554. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.esm.js.map +1 -0
  555. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  556. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  557. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  558. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  559. package/package.json +5 -5
  560. package/dist/cjs/index-BSi_QTIT.js.map +0 -1
  561. package/dist/cjs/verdocs-dialog.verdocs-ok-dialog.entry.cjs.js.map +0 -1
  562. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +0 -132
  563. package/dist/cjs/verdocs-envelope-document-page.entry.cjs.js.map +0 -1
  564. package/dist/components/p-9up2BmHp.js.map +0 -1
  565. package/dist/components/p-BJqJsTbt.js.map +0 -1
  566. package/dist/components/p-CwgpN7A7.js.map +0 -1
  567. package/dist/components/p-Dwu1JL0y.js.map +0 -1
  568. package/dist/components/p-IbPNQm1I.js.map +0 -1
  569. package/dist/components/p-jXH2SygA.js.map +0 -1
  570. package/dist/components/p-kvTSiSQ0.js.map +0 -1
  571. package/dist/esm/index-DjAHH4ih.js.map +0 -1
  572. package/dist/esm/verdocs-dialog.verdocs-ok-dialog.entry.js.map +0 -1
  573. package/dist/esm/verdocs-envelope-document-page.entry.js +0 -130
  574. package/dist/esm/verdocs-envelope-document-page.entry.js.map +0 -1
  575. package/dist/esm-es5/index-DjAHH4ih.js +0 -2
  576. package/dist/esm-es5/index-DjAHH4ih.js.map +0 -1
  577. package/dist/esm-es5/verdocs-dialog.verdocs-ok-dialog.entry.js.map +0 -1
  578. package/dist/esm-es5/verdocs-dialog_2.entry.js +0 -2
  579. package/dist/esm-es5/verdocs-dialog_2.entry.js.map +0 -1
  580. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +0 -2
  581. package/dist/esm-es5/verdocs-envelope-document-page.entry.js.map +0 -1
  582. package/dist/verdocs-web-sdk/p-198505d1.entry.js +0 -2
  583. package/dist/verdocs-web-sdk/p-198505d1.entry.js.map +0 -1
  584. package/dist/verdocs-web-sdk/p-54a99b75.system.entry.js +0 -2
  585. package/dist/verdocs-web-sdk/p-54a99b75.system.entry.js.map +0 -1
  586. package/dist/verdocs-web-sdk/p-5b010bdb.entry.js +0 -2
  587. package/dist/verdocs-web-sdk/p-5b010bdb.entry.js.map +0 -1
  588. package/dist/verdocs-web-sdk/p-77a3e9ea.entry.js +0 -2
  589. package/dist/verdocs-web-sdk/p-77a96b42.system.entry.js +0 -2
  590. package/dist/verdocs-web-sdk/p-7e1ae321.system.entry.js +0 -2
  591. package/dist/verdocs-web-sdk/p-7e1ae321.system.entry.js.map +0 -1
  592. package/dist/verdocs-web-sdk/p-89675355.system.entry.js +0 -2
  593. package/dist/verdocs-web-sdk/p-89675355.system.entry.js.map +0 -1
  594. package/dist/verdocs-web-sdk/p-B6BNgFvR.system.js.map +0 -1
  595. package/dist/verdocs-web-sdk/p-BSxnvcXp.system.js +0 -2
  596. package/dist/verdocs-web-sdk/p-BsSES842.system.js.map +0 -1
  597. package/dist/verdocs-web-sdk/p-C-Q0RpYH.system.js.map +0 -1
  598. package/dist/verdocs-web-sdk/p-DjAHH4ih.js +0 -3
  599. package/dist/verdocs-web-sdk/p-DjAHH4ih.js.map +0 -1
  600. package/dist/verdocs-web-sdk/p-DnpXTA0c.system.js.map +0 -1
  601. package/dist/verdocs-web-sdk/p-IELtlxxf.system.js +0 -3
  602. package/dist/verdocs-web-sdk/p-IELtlxxf.system.js.map +0 -1
  603. package/dist/verdocs-web-sdk/p-a7b796c9.entry.js.map +0 -1
  604. package/dist/verdocs-web-sdk/p-b2d5d57c.system.entry.js.map +0 -1
  605. package/dist/verdocs-web-sdk/p-e7b26cd8.system.entry.js +0 -2
  606. package/dist/verdocs-web-sdk/p-e7b26cd8.system.entry.js.map +0 -1
  607. package/dist/verdocs-web-sdk/p-fa410d5c.entry.js +0 -2
  608. package/dist/verdocs-web-sdk/p-fa410d5c.entry.js.map +0 -1
  609. package/dist/verdocs-web-sdk/p-fbb5d382.entry.js +0 -2
  610. package/dist/verdocs-web-sdk/p-fbb5d382.entry.js.map +0 -1
  611. package/dist/verdocs-web-sdk/p-gJaz09Zo.system.js.map +0 -1
  612. package/dist/verdocs-web-sdk/verdocs-dialog.verdocs-ok-dialog.entry.esm.js.map +0 -1
  613. package/dist/verdocs-web-sdk/verdocs-envelope-document-page.entry.esm.js.map +0 -1
  614. /package/dist/verdocs-web-sdk/{p-24a5020f.system.entry.js.map → p-05d69432.system.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-22d7fd99.entry.js.map → p-09c39bb0.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-095f01ea.entry.js.map → p-0bcad97a.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-7787a0e4.system.entry.js.map → p-0c0bc455.system.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-83057e79.entry.js.map → p-0d2d4a51.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-1bc8a67b.entry.js.map → p-1382d27a.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-bcad2169.system.entry.js.map → p-14c53f80.system.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-e612587a.entry.js.map → p-14d762cd.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-c137b66c.entry.js.map → p-159eca82.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-8f615cf8.entry.js.map → p-1c6b6903.entry.js.map} +0 -0
  624. /package/dist/verdocs-web-sdk/{p-68dc5809.entry.js.map → p-1d7ad250.entry.js.map} +0 -0
  625. /package/dist/verdocs-web-sdk/{p-9a614582.entry.js.map → p-228e230f.entry.js.map} +0 -0
  626. /package/dist/verdocs-web-sdk/{p-54089f3f.system.entry.js.map → p-270d59bd.system.entry.js.map} +0 -0
  627. /package/dist/verdocs-web-sdk/{p-56cd489c.entry.js.map → p-2753f307.entry.js.map} +0 -0
  628. /package/dist/verdocs-web-sdk/{p-da01f5fd.entry.js.map → p-29cd606e.entry.js.map} +0 -0
  629. /package/dist/verdocs-web-sdk/{p-8ae75311.entry.js.map → p-2c19375d.entry.js.map} +0 -0
  630. /package/dist/verdocs-web-sdk/{p-77a495cb.system.entry.js.map → p-314a958b.system.entry.js.map} +0 -0
  631. /package/dist/verdocs-web-sdk/{p-3f18c552.system.entry.js.map → p-314eebba.system.entry.js.map} +0 -0
  632. /package/dist/verdocs-web-sdk/{p-e9be55a9.entry.js.map → p-3b76f728.entry.js.map} +0 -0
  633. /package/dist/verdocs-web-sdk/{p-0d3060d5.system.entry.js.map → p-4bd8b685.system.entry.js.map} +0 -0
  634. /package/dist/verdocs-web-sdk/{p-a4b4356a.entry.js.map → p-5662207e.entry.js.map} +0 -0
  635. /package/dist/verdocs-web-sdk/{p-b2598797.system.entry.js.map → p-574a6e6f.system.entry.js.map} +0 -0
  636. /package/dist/verdocs-web-sdk/{p-03a6ee37.system.entry.js.map → p-59190e63.system.entry.js.map} +0 -0
  637. /package/dist/verdocs-web-sdk/{p-7c552800.entry.js.map → p-6093e7f5.entry.js.map} +0 -0
  638. /package/dist/verdocs-web-sdk/{p-e1010b5e.entry.js.map → p-63ab6794.entry.js.map} +0 -0
  639. /package/dist/verdocs-web-sdk/{p-c636caf4.entry.js.map → p-67a376cb.entry.js.map} +0 -0
  640. /package/dist/verdocs-web-sdk/{p-91455dc1.system.entry.js.map → p-6987434e.system.entry.js.map} +0 -0
  641. /package/dist/verdocs-web-sdk/{p-7032e5ee.entry.js.map → p-6ac24714.entry.js.map} +0 -0
  642. /package/dist/verdocs-web-sdk/{p-899a183a.system.entry.js.map → p-6bc3511b.system.entry.js.map} +0 -0
  643. /package/dist/verdocs-web-sdk/{p-331b0a01.entry.js.map → p-6de1884e.entry.js.map} +0 -0
  644. /package/dist/verdocs-web-sdk/{p-8daa82ec.system.entry.js.map → p-755119da.system.entry.js.map} +0 -0
  645. /package/dist/verdocs-web-sdk/{p-74f1369b.entry.js.map → p-77d8e792.entry.js.map} +0 -0
  646. /package/dist/verdocs-web-sdk/{p-2ab55e7e.entry.js.map → p-79dba586.entry.js.map} +0 -0
  647. /package/dist/verdocs-web-sdk/{p-408204b5.entry.js.map → p-80e6f99d.entry.js.map} +0 -0
  648. /package/dist/verdocs-web-sdk/{p-6ec49614.system.entry.js.map → p-81eb7d87.system.entry.js.map} +0 -0
  649. /package/dist/verdocs-web-sdk/{p-75154f85.system.entry.js.map → p-9339d348.system.entry.js.map} +0 -0
  650. /package/dist/verdocs-web-sdk/{p-424acea6.system.entry.js.map → p-97dd9902.system.entry.js.map} +0 -0
  651. /package/dist/verdocs-web-sdk/{p-2083a0b5.system.entry.js.map → p-995169b9.system.entry.js.map} +0 -0
  652. /package/dist/verdocs-web-sdk/{p-f706a680.system.entry.js.map → p-99ae19a0.system.entry.js.map} +0 -0
  653. /package/dist/verdocs-web-sdk/{p-8697ea44.system.entry.js.map → p-9fcc54f8.system.entry.js.map} +0 -0
  654. /package/dist/verdocs-web-sdk/{p-bd7e0e8f.system.entry.js.map → p-a29716da.system.entry.js.map} +0 -0
  655. /package/dist/verdocs-web-sdk/{p-e6c86704.system.entry.js.map → p-a59be807.system.entry.js.map} +0 -0
  656. /package/dist/verdocs-web-sdk/{p-e251a7f7.entry.js.map → p-a8582158.entry.js.map} +0 -0
  657. /package/dist/verdocs-web-sdk/{p-94805e3a.system.entry.js.map → p-a87d21bc.system.entry.js.map} +0 -0
  658. /package/dist/verdocs-web-sdk/{p-10496565.entry.js.map → p-a90d4850.entry.js.map} +0 -0
  659. /package/dist/verdocs-web-sdk/{p-a8ccb0e1.entry.js.map → p-abf6f99e.entry.js.map} +0 -0
  660. /package/dist/verdocs-web-sdk/{p-95098523.entry.js.map → p-ac595231.entry.js.map} +0 -0
  661. /package/dist/verdocs-web-sdk/{p-296df8e6.system.entry.js.map → p-afb4f00a.system.entry.js.map} +0 -0
  662. /package/dist/verdocs-web-sdk/{p-ba37926e.system.entry.js.map → p-b1c41006.system.entry.js.map} +0 -0
  663. /package/dist/verdocs-web-sdk/{p-6ec9a626.system.entry.js.map → p-b70cbb9c.system.entry.js.map} +0 -0
  664. /package/dist/verdocs-web-sdk/{p-d0cdb769.entry.js.map → p-bea6ce53.entry.js.map} +0 -0
  665. /package/dist/verdocs-web-sdk/{p-05b5f6a8.system.entry.js.map → p-c061d0f7.system.entry.js.map} +0 -0
  666. /package/dist/verdocs-web-sdk/{p-4251e17b.system.entry.js.map → p-c996f71e.system.entry.js.map} +0 -0
  667. /package/dist/verdocs-web-sdk/{p-d995bf66.entry.js.map → p-cc638c7d.entry.js.map} +0 -0
  668. /package/dist/verdocs-web-sdk/{p-a5c1783e.system.entry.js.map → p-cda179bf.system.entry.js.map} +0 -0
  669. /package/dist/verdocs-web-sdk/{p-d68d286d.entry.js.map → p-ce3e9ace.entry.js.map} +0 -0
  670. /package/dist/verdocs-web-sdk/{p-5808c4ab.system.entry.js.map → p-e3fef183.system.entry.js.map} +0 -0
  671. /package/dist/verdocs-web-sdk/{p-79a57db4.system.entry.js.map → p-e4f0949d.system.entry.js.map} +0 -0
  672. /package/dist/verdocs-web-sdk/{p-dc64588a.system.entry.js.map → p-e5ac5479.system.entry.js.map} +0 -0
  673. /package/dist/verdocs-web-sdk/{p-b81c87a9.entry.js.map → p-e8d6a5ca.entry.js.map} +0 -0
  674. /package/dist/verdocs-web-sdk/{p-1b86055f.entry.js.map → p-ea69720d.entry.js.map} +0 -0
  675. /package/dist/verdocs-web-sdk/{p-b0e8639b.system.entry.js.map → p-ead7ce15.system.entry.js.map} +0 -0
  676. /package/dist/verdocs-web-sdk/{p-b954399f.system.entry.js.map → p-ec6f161e.system.entry.js.map} +0 -0
  677. /package/dist/verdocs-web-sdk/{p-84ef045b.entry.js.map → p-eee0e96c.entry.js.map} +0 -0
  678. /package/dist/verdocs-web-sdk/{p-072cf3bf.system.entry.js.map → p-f0c1a98b.system.entry.js.map} +0 -0
  679. /package/dist/verdocs-web-sdk/{p-262e6ed3.entry.js.map → p-f40ab4f5.entry.js.map} +0 -0
  680. /package/dist/verdocs-web-sdk/{p-85a01930.system.entry.js.map → p-f51c7617.system.entry.js.map} +0 -0
  681. /package/dist/verdocs-web-sdk/{p-474ac411.entry.js.map → p-fd51104b.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- System.register(["./p-IELtlxxf.system.js","./p-DmF0GSqu.system.js"],(function(o){"use strict";var e,r,i,a,c;return{setters:[function(o){e=o.r;r=o.h;i=o.H;a=o.c},function(o){c=o.d}],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-organization-card{font-family:"Inter", "Barlow", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:#ffffff;border-radius:8px;padding:7px 15px}verdocs-organization-card .icon{-ms-flex:0;flex:0;height:24px;width:24px;margin:0 14px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;height:24px;width:24px}verdocs-organization-card .content{margin-top:2px}.verdocs-org-card-popup{font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border-radius:10px;width:326px;padding:20px 40px 0 40px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border:1px solid #cccccc}.verdocs-org-card-popup .popup-header-with-logo{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-header-with-logo img{max-width:300px;max-height:50px}.verdocs-org-card-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;text-transform:uppercase}.verdocs-org-card-popup .status{-webkit-transform:scale(1.5);transform:scale(1.5);width:24px;height:24px}.verdocs-org-card-popup .field{margin:0 0 20px 0}.verdocs-org-card-popup .field strong{color:#7b7b9a;display:block;margin:0 0 5px 0}.verdocs-org-card-popup .field a{color:#654dcb;text-transform:uppercase}';var t='<svg xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true" height="24px" viewBox="0 0 24 24" width="24px"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></svg>';var d=o("verdocs_organization_card",function(){function o(o){e(this,o);this.hovered=false}o.prototype.onMouseOver=function(){this.hovered=true};o.prototype.onMouseOut=function(){this.hovered=false};o.prototype.render=function(){var o,e,a,s,d,n;console.log("Rendering org card",this.organization.thumbnail_url,this.organization);var l=t;var p="verdocs-org-card-".concat(this.organization.id);return r(i,{key:"f714963eac994c9af17b768ceb22c66f90319bd6",id:p},this.organization.thumbnail_url?r("img",{class:"icon",src:this.organization.thumbnail_url,alt:"Logo"}):r("span",{class:"icon",innerHTML:l}),r("span",{key:"641f1eb3669bce8066eb52974b490bf2f33480d3",class:"content"},(o=this.organization)===null||o===void 0?void 0:o.name),r("verdocs-portal",{key:"57d1f15ad28798b414d6c7b0b9187d489501aae9",anchor:p},r("div",{key:"3324ae37c0d8b818d5dab21b11693306d1dce6b3",class:"verdocs-org-card-popup",style:{display:this.hovered?"block":"none"}},this.organization.full_logo_url?r("div",{class:"popup-header-with-logo"},r("img",{src:this.organization.full_logo_url,alt:"Logo"}),r("div",{class:"title"},(e=this.organization)===null||e===void 0?void 0:e.name)):r("div",{class:"popup-header"},r("span",{class:"status"},r("span",{class:"icon",innerHTML:l})),r("span",{class:"title"},(a=this.organization)===null||a===void 0?void 0:a.name)),r("div",{key:"9fe15a204516ddfcc7f35cb7ee33bbb80b163260",class:"popup-body"},r("div",{key:"a7b6c6041e09759545403613b5388ba90f789acc",class:"field"},r("strong",{key:"e558409769026901dfc17a67f2d7d59582cd960e"},"Joined"),c.format(new Date(((s=this.organization)===null||s===void 0?void 0:s.created_at)||undefined),"LLL d, Y")),this.organization.url&&r("div",{key:"94e6ce975794db4f3c5201af902a93fe886c416e",class:"field"},r("strong",{key:"3ec6bd5272f762065ab6c0b95301b77539e514ff"},"Website"),r("a",{key:"44be7da94d554d4c75575e23d56143c2346637b9",href:(d=this.organization)===null||d===void 0?void 0:d.url,target:"_blank",rel:"nofollow"},(n=this.organization)===null||n===void 0?void 0:n.url))))))};return o}());d.style=s;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)}}";var l="10001";var p=o("verdocs_portal",function(){function o(o){e(this,o);this.clickAway=a(this,"clickAway");this.moved=false;this.voffset=0}o.prototype.handleScroll=function(){this.calculatePosition()};o.prototype.handleResize=function(){this.calculatePosition()};o.prototype.handleClick=function(o){var e;var r=o.target.closest(".verdocs-portal");if(!this.element.contains(o.target)&&!r){(e=this.clickAway)===null||e===void 0?void 0:e.emit()}document.querySelectorAll(".verdocs-multiselect-dropdown").forEach((function(o){return o.remove()}))};o.prototype.calculateLeft=function(){var o;var e=document.getElementById(this.anchor);if(!e)return 0;var r=e.getBoundingClientRect();var i=document.documentElement.clientWidth+document.documentElement.scrollLeft;var a=Math.max(r.left,0);var c=((o=this.element)===null||o===void 0?void 0:o.offsetWidth)||400;var s=a+c>i;return s?i-c-20:a};o.prototype.calculateTop=function(){var o;var e=document.getElementById(this.anchor);if(!e)return 0;var r=e.getBoundingClientRect();var i=document.documentElement.clientHeight+document.documentElement.scrollTop;var a=r.bottom+this.voffset+document.documentElement.scrollTop;var c=((o=this.element)===null||o===void 0?void 0:o.offsetHeight)||300;var s=a+c>i;return s?a-c-r.height:a};o.prototype.calculatePosition=function(){this.portal.style.top="".concat(this.calculateTop(),"px");this.portal.style.left="".concat(this.calculateLeft(),"px")};o.prototype.componentWillLoad=function(){var o;var e="".concat(this.anchor,"-portal");(o=document.getElementById(e))===null||o===void 0?void 0:o.remove();this.portal=document.createElement("div");this.portal.setAttribute("id",e);this.portal.style.zIndex=l;this.portal.style.position="absolute";this.portal.className="verdocs-portal-wrapper";document.body.append(this.portal)};o.prototype.componentDidLoad=function(){this.portal.appendChild(this.element);this.calculatePosition()};o.prototype.disconnectedCallback=function(){this.moved?this.portal.remove():this.moved=true};o.prototype.render=function(){var o=this;return r(i,{key:"eeb176eb22239e9bd1859d87e50d9dba08a36c5a",ref:function(e){return o.element=e},class:"verdocs-portal"},r("slot",{key:"0cc38913adf3b2d41e9d635a7c6bafac3e71fd8f"}))};return o}());p.style=n}}}));
2
- //# sourceMappingURL=p-dc64588a.system.entry.js.map
1
+ System.register(["./p-BO6MZhlp.system.js","./p-DmF0GSqu.system.js"],(function(o){"use strict";var e,r,i,a,c;return{setters:[function(o){e=o.r;r=o.h;i=o.H;a=o.c},function(o){c=o.d}],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-organization-card{font-family:"Inter", "Barlow", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:#ffffff;border-radius:8px;padding:7px 15px}verdocs-organization-card .icon{-ms-flex:0;flex:0;height:24px;width:24px;margin:0 14px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;height:24px;width:24px}verdocs-organization-card .content{margin-top:2px}.verdocs-org-card-popup{font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border-radius:10px;width:326px;padding:20px 40px 0 40px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border:1px solid #cccccc}.verdocs-org-card-popup .popup-header-with-logo{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-header-with-logo img{max-width:300px;max-height:50px}.verdocs-org-card-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex:0;flex:0;gap:20px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end;margin:0 0 20px 0;font-size:21px;line-height:16px;color:#4c56cb}.verdocs-org-card-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-size:14px;text-transform:uppercase}.verdocs-org-card-popup .status{-webkit-transform:scale(1.5);transform:scale(1.5);width:24px;height:24px}.verdocs-org-card-popup .field{margin:0 0 20px 0}.verdocs-org-card-popup .field strong{color:#7b7b9a;display:block;margin:0 0 5px 0}.verdocs-org-card-popup .field a{color:#654dcb;text-transform:uppercase}';var t='<svg xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true" height="24px" viewBox="0 0 24 24" width="24px"><path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"></path></svg>';var d=o("verdocs_organization_card",function(){function o(o){e(this,o);this.hovered=false}o.prototype.onMouseOver=function(){this.hovered=true};o.prototype.onMouseOut=function(){this.hovered=false};o.prototype.render=function(){var o,e,a,s,d,n;console.log("Rendering org card",this.organization.thumbnail_url,this.organization);var l=t;var p="verdocs-org-card-".concat(this.organization.id);return r(i,{key:"f714963eac994c9af17b768ceb22c66f90319bd6",id:p},this.organization.thumbnail_url?r("img",{class:"icon",src:this.organization.thumbnail_url,alt:"Logo"}):r("span",{class:"icon",innerHTML:l}),r("span",{key:"641f1eb3669bce8066eb52974b490bf2f33480d3",class:"content"},(o=this.organization)===null||o===void 0?void 0:o.name),r("verdocs-portal",{key:"57d1f15ad28798b414d6c7b0b9187d489501aae9",anchor:p},r("div",{key:"3324ae37c0d8b818d5dab21b11693306d1dce6b3",class:"verdocs-org-card-popup",style:{display:this.hovered?"block":"none"}},this.organization.full_logo_url?r("div",{class:"popup-header-with-logo"},r("img",{src:this.organization.full_logo_url,alt:"Logo"}),r("div",{class:"title"},(e=this.organization)===null||e===void 0?void 0:e.name)):r("div",{class:"popup-header"},r("span",{class:"status"},r("span",{class:"icon",innerHTML:l})),r("span",{class:"title"},(a=this.organization)===null||a===void 0?void 0:a.name)),r("div",{key:"9fe15a204516ddfcc7f35cb7ee33bbb80b163260",class:"popup-body"},r("div",{key:"a7b6c6041e09759545403613b5388ba90f789acc",class:"field"},r("strong",{key:"e558409769026901dfc17a67f2d7d59582cd960e"},"Joined"),c.format(new Date(((s=this.organization)===null||s===void 0?void 0:s.created_at)||undefined),"LLL d, Y")),this.organization.url&&r("div",{key:"94e6ce975794db4f3c5201af902a93fe886c416e",class:"field"},r("strong",{key:"3ec6bd5272f762065ab6c0b95301b77539e514ff"},"Website"),r("a",{key:"44be7da94d554d4c75575e23d56143c2346637b9",href:(d=this.organization)===null||d===void 0?void 0:d.url,target:"_blank",rel:"nofollow"},(n=this.organization)===null||n===void 0?void 0:n.url))))))};return o}());d.style=s;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)}}";var l="10001";var p=o("verdocs_portal",function(){function o(o){e(this,o);this.clickAway=a(this,"clickAway");this.moved=false;this.voffset=0}o.prototype.handleScroll=function(){this.calculatePosition()};o.prototype.handleResize=function(){this.calculatePosition()};o.prototype.handleClick=function(o){var e;var r=o.target.closest(".verdocs-portal");if(!this.element.contains(o.target)&&!r){(e=this.clickAway)===null||e===void 0?void 0:e.emit()}document.querySelectorAll(".verdocs-multiselect-dropdown").forEach((function(o){return o.remove()}))};o.prototype.calculateLeft=function(){var o;var e=document.getElementById(this.anchor);if(!e)return 0;var r=e.getBoundingClientRect();var i=document.documentElement.clientWidth+document.documentElement.scrollLeft;var a=Math.max(r.left,0);var c=((o=this.element)===null||o===void 0?void 0:o.offsetWidth)||400;var s=a+c>i;return s?i-c-20:a};o.prototype.calculateTop=function(){var o;var e=document.getElementById(this.anchor);if(!e)return 0;var r=e.getBoundingClientRect();var i=document.documentElement.clientHeight+document.documentElement.scrollTop;var a=r.bottom+this.voffset+document.documentElement.scrollTop;var c=((o=this.element)===null||o===void 0?void 0:o.offsetHeight)||300;var s=a+c>i;return s?a-c-r.height:a};o.prototype.calculatePosition=function(){this.portal.style.top="".concat(this.calculateTop(),"px");this.portal.style.left="".concat(this.calculateLeft(),"px")};o.prototype.componentWillLoad=function(){var o;var e="".concat(this.anchor,"-portal");(o=document.getElementById(e))===null||o===void 0?void 0:o.remove();this.portal=document.createElement("div");this.portal.setAttribute("id",e);this.portal.style.zIndex=l;this.portal.style.position="absolute";this.portal.className="verdocs-portal-wrapper";document.body.append(this.portal)};o.prototype.componentDidLoad=function(){this.portal.appendChild(this.element);this.calculatePosition()};o.prototype.disconnectedCallback=function(){this.moved?this.portal.remove():this.moved=true};o.prototype.render=function(){var o=this;return r(i,{key:"eeb176eb22239e9bd1859d87e50d9dba08a36c5a",ref:function(e){return o.element=e},class:"verdocs-portal"},r("slot",{key:"0cc38913adf3b2d41e9d635a7c6bafac3e71fd8f"}))};return o}());p.style=n}}}));
2
+ //# sourceMappingURL=p-e5ac5479.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as i,h as s,H as t,F as n}from"./p-DjAHH4ih.js";import{d as o}from"./p-dzBXqXlK.js";import{VerdocsEndpoint as a,getEnvelope as r,remindRecipient as l,cancelEnvelope as d,updateRecipient as c,formatFullName as v,updateEnvelope as h,userIsEnvelopeOwner as p,getRecipientsWithActions as w,resetRecipient as g,recipientCanAct as m,capitalize as b}from"@verdocs/js-sdk";import{a as f}from"./p-dqxNbm_b.js";import{V as u}from"./p-CyvDgtoV.js";import{S as x}from"./p-C1sRVZWv.js";import{S as k}from"./p-DmsV595e.js";const 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-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{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;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;font-size:14px;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;gap:6px;-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;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 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}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';const y=24*60*60*1e3;const z=`<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>`;const M=`<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>`;const D=`<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>`;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>`,idcard:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,idcardslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,key:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,keyslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,pin:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,pinslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`};const V=class{constructor(s){e(this,s);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.toggle=i(this,"toggle");this.another=i(this,"another");this.envelopeListenerId=null;this.endpoint=a.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.showUpdateDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}async componentWillLoad(){var e,i,s;try{this.endpoint.loadSession();if(!this.envelopeId){console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);return}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return}this.listenToEnvelope()}catch(t){console.log("[SIDEBAR] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new x(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();k.subscribe("envelopes",this.envelopeId,(()=>r(this.endpoint,this.envelopeId)),false,(e=>{var i,s;this.envelope=e;this.loading=false;this.sortEnvelopeRecipients();this.initialReminder=(i=this.envelope)===null||i===void 0?void 0:i.initial_reminder;this.followupReminders=(s=this.envelope)===null||s===void 0?void 0:s.followup_reminders;this.remindersEnabled=!!this.initialReminder}))}unlistenToEnvelope(){if(this.envelopeListenerId){k.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}sortEnvelopeRecipients(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.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;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e}canResendRecipient(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)}handleRecipientAction(e,i){var s;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{u("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e);u("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":u("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":u("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})}handleCancelEnvelope(){this.loading=true;d(this.endpoint,this.envelopeId).then((async e=>{var i;console.log("[SIDEBAR] Envelope canceled",e);u("Envelope canceled",{style:"success"});const s=JSON.parse(JSON.stringify(this.envelope));s.status="canceled";k.updateEnvelope(this.envelopeId,s);this.loading=false;this.panelOpen=false;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:s,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e);this.loading=false;u("Error canceling envelope: "+e.message,{style:"error"})}))}handleUpdateRecipient(e,i){console.log("Updating recipient",e,i);const s={};if(i.email!==e.email){s.email=i.email}if(i.phone!==e.phone){s.phone=i.phone}if(i.message!==e.message){s.message=i.message}if(i.first_name!==e.first_name){s.first_name=i.first_name}if(i.last_name!==e.last_name){s.last_name=i.last_name}if(Object.keys(s).length>0){c(this.endpoint,this.envelopeId,e.role_name,s).then((e=>{u("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);k.getEnvelope(this.endpoint,this.envelopeId,true);this.showUpdateDialog=""})).catch((e=>{u(e.response.data.error,{style:"error"});this.showUpdateDialog=""}))}else{this.showUpdateDialog=""}}prepareHistoryEntries(){var e,i,s,t,n,o;const a=[];const r=((e=this.envelope)===null||e===void 0?void 0:e.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((i=this.envelope)===null||i===void 0?void 0:i.created_at)});if(((s=this.envelope)===null||s===void 0?void 0:s.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.updated_at)})}const l=r.some((e=>e.event==="owner:canceled"));if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="canceled"&&!l){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((o=this.envelope)===null||o===void 0?void 0:o.canceled_at)})}r.forEach((e=>{var i;const s=(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).find((i=>i.role_name===e.role_name));const t=v(s);switch(e.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:`KBA verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:`KBA verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:`ID verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:`ID verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:`PIN verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:`PIN verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":a.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":a.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":a.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":a.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:a.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":a.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:a.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":if(e.event_detail==="guest"){a.push({icon:"account_circle",message:`${t} claimed the Envelope as a guest.`,date:new Date(e.created_at)})}else if(e.event_detail==="profile"){a.push({icon:"verified_user",message:`${t} claimed the Envelope as a verified user.`,date:new Date(e.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":if(e.event_detail==="sms"){a.push({icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)})}else{a.push({icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)})}break;case"recipient:reminder":if(e.event_detail==="sms"){a.push({icon:"textsms",message:`${t} sent a reminder via SMS.`,date:new Date(e.created_at)})}else{a.push({icon:"mail",message:`${t} sent a reminder via email.`,date:new Date(e.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:`Invitation was resent to ${t}${e.event_detail==="reminder"?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":a.push({icon:"create",message:`Envelope was created.`,date:new Date(e.created_at)});break;case"completed":a.push({icon:"done_all",message:`Envelope was completed.`,date:new Date(e.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:`Envelope was canceled by the creator.`,date:new Date(e.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:`Envelope expired.`,date:new Date(e.created_at)});break;case"owner:get_in_person_link":a.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);break}}));a.sort(((e,i)=>i.date.getTime()-e.date.getTime()));return a}handleToggleReminders(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(y,3*y)}}handleSetReminders(e,i){console.log("Updating reminders...");this.updatingReminders=true;h(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((e=>{console.log("Updated",e);k.updateEnvelope(this.envelopeId,e);this.initialReminder=e.initial_reminder;this.followupReminders=e.followup_reminders;this.remindersEnabled=!!e.initial_reminder;this.updatingReminders=false})).catch((e=>{var i,s,t;console.log("Error updating envelope",e);this.initialReminder=(i=this.envelope)===null||i===void 0?void 0:i.initial_reminder;this.followupReminders=(s=this.envelope)===null||s===void 0?void 0:s.followup_reminders;this.remindersEnabled=!!((t=this.envelope)===null||t===void 0?void 0:t.initial_reminder);this.updatingReminders=false;u(e.response.data.error,{style:"error"})}))}render(){var e,i,a,r,l,d,c,h,x,k,C,V;if(this.loading){return s(t,null)}const B=p(this.endpoint.profile,this.envelope);const E=this.prepareHistoryEntries();const L=((e=this.envelope)===null||e===void 0?void 0:e.status)!=="pending"&&((i=this.envelope)===null||i===void 0?void 0:i.status)!=="in progress";const S=w(this.envelope);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:this.activeTab===1?"active":"",onClick:()=>this.setTab(1),innerHTML:z}),s("button",{class:this.activeTab===2?"active":"",onClick:()=>this.setTab(2),innerHTML:M}),s("button",{class:this.activeTab===3?"active":"",onClick:()=>this.setTab(3),innerHTML:D})),this.activeTab===1&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},o.format(new Date((r=this.envelope)===null||r===void 0?void 0:r.created_at),f)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},o.format(new Date((l=this.envelope)===null||l===void 0?void 0:l.updated_at),f)),s("div",{class:"label"},"Status"),s("div",{class:"value"},b((d=this.envelope)===null||d===void 0?void 0:d.status)),s("div",{class:"label"},"Owner ID"),s("div",{class:"value"},(c=this.envelope)===null||c===void 0?void 0:c.profile_id),s("div",{class:"label"},"Owner Name"),s("div",{class:"value"},v((h=this.envelope)===null||h===void 0?void 0:h.profile)),s("div",{class:"label"},"Owner Email"),s("div",{class:"value"},(k=(x=this.envelope)===null||x===void 0?void 0:x.profile)===null||k===void 0?void 0:k.email)),this.activeTab===2&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),(C=this.envelope)===null||C===void 0?void 0:C.recipients.map(((e,i)=>{const t=m(e,S);const n=e.status!=="submitted";const o=this.canResendRecipient(e);const a=v(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-name"},e.role_name.replace("delegated_to_","Delegated")),s("div",{class:{"recipient-status":true,[e.status]:true}},e.status),B&&!L&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"update",label:"Update",disabled:!n},{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!t},{id:"reinvite",label:"Re-invite",disabled:!o}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},a),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),B&&s("div",{class:"reminders"},s("div",{class:"form-row"},s("div",{class:"reminders-label"},"Reminders"),s("verdocs-switch",{disabled:L||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:()=>this.handleToggleReminders()})),this.remindersEnabled&&s(n,null,s("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),s("div",{class:"form-row"},s("div",{class:"form-label"},"Initial Reminder (days):"),s("verdocs-text-input",{placeholder:"In hours...",disabled:L||this.updatingReminders,value:String(Math.floor(this.initialReminder/y)),onBlur:e=>{this.initialReminder=Number(e.target.value)*y;this.handleSetReminders(this.initialReminder,this.followupReminders)}})),s("div",{class:"form-row"},s("div",{class:"form-label"},"Follow-up Reminders:"),s("verdocs-text-input",{placeholder:"In hours...",disabled:L||this.updatingReminders,value:String(Math.floor(this.followupReminders/y)),onBlur:e=>{this.followupReminders=Number(e.target.value)*y;this.handleSetReminders(this.initialReminder,this.followupReminders)}})),s("div",{class:"form-row"},s("div",{class:"form-label"},"Next Reminder:"),s("div",{style:{color:"#dddddd"}},o.format(new Date((V=this.envelope)===null||V===void 0?void 0:V.next_reminder),"P p"))))),B&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:()=>this.showCancelDialog=!L,disabled:L})),this.activeTab===3&&s("div",{class:"content"},s("div",{class:"title"},"History"),E.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"},o.format(e.date,f))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),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=false;this.handleCancelEnvelope()}}),this.showReinviteDialog&&s("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:()=>{g(this.endpoint,this.envelopeId,this.showReinviteDialog).then((()=>{u("Recipient Reset",{style:"success"});this.showReinviteDialog=""})).catch((e=>{console.log("[SIDEBAR] Error resetting recipient",e);u("Error resetting recipient: "+e.message,{style:"error"});this.showReinviteDialog=""}))}}),this.showUpdateDialog&&s("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:e=>{console.log("next",e.detail);if(e.detail.action==="save"){this.handleUpdateRecipient(e.detail.originalRecipient,e.detail.updatedRecipient)}else{this.showUpdateDialog=""}}}))}};V.style=C;export{V as verdocs_envelope_sidebar};
2
- //# sourceMappingURL=p-b81c87a9.entry.js.map
1
+ import{r as e,c as i,h as s,H as t,F as n}from"./p-BIRwgFLv.js";import{d as o}from"./p-dzBXqXlK.js";import{VerdocsEndpoint as a,getEnvelope as r,remindRecipient as l,cancelEnvelope as d,updateRecipient as c,formatFullName as v,updateEnvelope as h,userIsEnvelopeOwner as p,getRecipientsWithActions as w,resetRecipient as g,recipientCanAct as m,capitalize as b}from"@verdocs/js-sdk";import{a as f}from"./p-dqxNbm_b.js";import{V as u}from"./p-CyvDgtoV.js";import{S as x}from"./p-C1sRVZWv.js";import{S as k}from"./p-DmsV595e.js";const 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-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{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;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;font-size:14px;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;gap:6px;-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;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 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}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';const y=24*60*60*1e3;const z=`<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>`;const M=`<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>`;const D=`<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>`;const B={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>`,idcard:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,idcardslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,key:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,keyslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,pin:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`,pinslash:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`};const V=class{constructor(s){e(this,s);this.sdkError=i(this,"sdkError");this.envelopeUpdated=i(this,"envelopeUpdated");this.toggle=i(this,"toggle");this.another=i(this,"another");this.envelopeListenerId=null;this.endpoint=a.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.showUpdateDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}async componentWillLoad(){var e,i,s;try{this.endpoint.loadSession();if(!this.envelopeId){console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);return}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return}this.listenToEnvelope()}catch(t){console.log("[SIDEBAR] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new x(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();k.subscribe("envelopes",this.envelopeId,(()=>r(this.endpoint,this.envelopeId)),false,(e=>{var i,s;this.envelope=e;this.loading=false;this.sortEnvelopeRecipients();this.initialReminder=(i=this.envelope)===null||i===void 0?void 0:i.initial_reminder;this.followupReminders=(s=this.envelope)===null||s===void 0?void 0:s.followup_reminders;this.remindersEnabled=!!this.initialReminder}))}unlistenToEnvelope(){if(this.envelopeListenerId){k.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}sortEnvelopeRecipients(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.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;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e}canResendRecipient(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)}handleRecipientAction(e,i){var s;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{u("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e);u("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":u("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":u("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})}handleCancelEnvelope(){this.loading=true;d(this.endpoint,this.envelopeId).then((async e=>{var i;console.log("[SIDEBAR] Envelope canceled",e);u("Envelope canceled",{style:"success"});const s=JSON.parse(JSON.stringify(this.envelope));s.status="canceled";k.updateEnvelope(this.envelopeId,s);this.loading=false;this.panelOpen=false;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:s,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e);this.loading=false;u("Error canceling envelope: "+e.message,{style:"error"})}))}handleUpdateRecipient(e,i){console.log("Updating recipient",e,i);const s={};if(i.email!==e.email){s.email=i.email}if(i.phone!==e.phone){s.phone=i.phone}if(i.message!==e.message){s.message=i.message}if(i.first_name!==e.first_name){s.first_name=i.first_name}if(i.last_name!==e.last_name){s.last_name=i.last_name}if(Object.keys(s).length>0){c(this.endpoint,this.envelopeId,e.role_name,s).then((e=>{u("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);k.getEnvelope(this.endpoint,this.envelopeId,true);this.showUpdateDialog=""})).catch((e=>{u(e.response.data.error,{style:"error"});this.showUpdateDialog=""}))}else{this.showUpdateDialog=""}}prepareHistoryEntries(){var e,i,s,t,n,o;const a=[];const r=((e=this.envelope)===null||e===void 0?void 0:e.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((i=this.envelope)===null||i===void 0?void 0:i.created_at)});if(((s=this.envelope)===null||s===void 0?void 0:s.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.updated_at)})}const l=r.some((e=>e.event==="owner:canceled"));if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="canceled"&&!l){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((o=this.envelope)===null||o===void 0?void 0:o.canceled_at)})}r.forEach((e=>{var i;const s=(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).find((i=>i.role_name===e.role_name));const t=v(s);switch(e.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:`KBA verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:`KBA verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:`ID verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:`ID verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:`PIN verification completed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:`PIN verification failed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":a.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":a.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":a.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":a.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:a.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":a.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:a.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":if(e.event_detail==="guest"){a.push({icon:"account_circle",message:`${t} claimed the Envelope as a guest.`,date:new Date(e.created_at)})}else if(e.event_detail==="profile"){a.push({icon:"verified_user",message:`${t} claimed the Envelope as a verified user.`,date:new Date(e.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":if(e.event_detail==="sms"){a.push({icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)})}else{a.push({icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)})}break;case"recipient:reminder":if(e.event_detail==="sms"){a.push({icon:"textsms",message:`${t} sent a reminder via SMS.`,date:new Date(e.created_at)})}else{a.push({icon:"mail",message:`${t} sent a reminder via email.`,date:new Date(e.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:`Invitation was resent to ${t}${e.event_detail==="reminder"?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":a.push({icon:"create",message:`Envelope was created.`,date:new Date(e.created_at)});break;case"completed":a.push({icon:"done_all",message:`Envelope was completed.`,date:new Date(e.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:`Envelope was canceled by the creator.`,date:new Date(e.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:`Envelope expired.`,date:new Date(e.created_at)});break;case"owner:get_in_person_link":a.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);break}}));a.sort(((e,i)=>i.date.getTime()-e.date.getTime()));return a}handleToggleReminders(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(y,3*y)}}handleSetReminders(e,i){console.log("Updating reminders...");this.updatingReminders=true;h(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((e=>{console.log("Updated",e);k.updateEnvelope(this.envelopeId,e);this.initialReminder=e.initial_reminder;this.followupReminders=e.followup_reminders;this.remindersEnabled=!!e.initial_reminder;this.updatingReminders=false})).catch((e=>{var i,s,t;console.log("Error updating envelope",e);this.initialReminder=(i=this.envelope)===null||i===void 0?void 0:i.initial_reminder;this.followupReminders=(s=this.envelope)===null||s===void 0?void 0:s.followup_reminders;this.remindersEnabled=!!((t=this.envelope)===null||t===void 0?void 0:t.initial_reminder);this.updatingReminders=false;u(e.response.data.error,{style:"error"})}))}render(){var e,i,a,r,l,d,c,h,x,k,C,V;if(this.loading){return s(t,null)}const H=p(this.endpoint.profile,this.envelope);const E=this.prepareHistoryEntries();const L=((e=this.envelope)===null||e===void 0?void 0:e.status)!=="pending"&&((i=this.envelope)===null||i===void 0?void 0:i.status)!=="in progress";const R=w(this.envelope);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:this.activeTab===1?"active":"",onClick:()=>this.setTab(1),innerHTML:z}),s("button",{class:this.activeTab===2?"active":"",onClick:()=>this.setTab(2),innerHTML:M}),s("button",{class:this.activeTab===3?"active":"",onClick:()=>this.setTab(3),innerHTML:D})),this.activeTab===1&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},o.format(new Date((r=this.envelope)===null||r===void 0?void 0:r.created_at),f)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},o.format(new Date((l=this.envelope)===null||l===void 0?void 0:l.updated_at),f)),s("div",{class:"label"},"Status"),s("div",{class:"value"},b((d=this.envelope)===null||d===void 0?void 0:d.status)),s("div",{class:"label"},"Owner ID"),s("div",{class:"value"},(c=this.envelope)===null||c===void 0?void 0:c.profile_id),s("div",{class:"label"},"Owner Name"),s("div",{class:"value"},v((h=this.envelope)===null||h===void 0?void 0:h.profile)),s("div",{class:"label"},"Owner Email"),s("div",{class:"value"},(k=(x=this.envelope)===null||x===void 0?void 0:x.profile)===null||k===void 0?void 0:k.email)),this.activeTab===2&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),(C=this.envelope)===null||C===void 0?void 0:C.recipients.map(((e,i)=>{const t=m(e,R);const n=e.status!=="submitted";const o=this.canResendRecipient(e);const a=v(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-name"},e.role_name.replace("delegated_to_","Delegated")),s("div",{class:{"recipient-status":true,[e.status]:true}},e.status),H&&!L&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"update",label:"Update",disabled:!n},{id:"reminder",label:"Send Reminder",disabled:!o},{id:"inperson",label:"Get In-Person Link",disabled:!t},{id:"reinvite",label:"Re-invite",disabled:!o}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},a),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),H&&s("div",{class:"reminders"},s("div",{class:"form-row"},s("div",{class:"reminders-label"},"Reminders"),s("verdocs-switch",{disabled:L||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:()=>this.handleToggleReminders()})),this.remindersEnabled&&s(n,null,s("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),s("div",{class:"form-row"},s("div",{class:"form-label"},"Initial Reminder (days):"),s("verdocs-text-input",{placeholder:"In hours...",disabled:L||this.updatingReminders,value:String(Math.floor(this.initialReminder/y)),onBlur:e=>{this.initialReminder=Number(e.target.value)*y;this.handleSetReminders(this.initialReminder,this.followupReminders)}})),s("div",{class:"form-row"},s("div",{class:"form-label"},"Follow-up Reminders:"),s("verdocs-text-input",{placeholder:"In hours...",disabled:L||this.updatingReminders,value:String(Math.floor(this.followupReminders/y)),onBlur:e=>{this.followupReminders=Number(e.target.value)*y;this.handleSetReminders(this.initialReminder,this.followupReminders)}})),s("div",{class:"form-row"},s("div",{class:"form-label"},"Next Reminder:"),s("div",{style:{color:"#dddddd"}},o.format(new Date((V=this.envelope)===null||V===void 0?void 0:V.next_reminder),"P p"))))),H&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:()=>this.showCancelDialog=!L,disabled:L})),this.activeTab===3&&s("div",{class:"content"},s("div",{class:"title"},"History"),E.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:B[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},o.format(e.date,f))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),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=false;this.handleCancelEnvelope()}}),this.showReinviteDialog&&s("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:()=>{g(this.endpoint,this.envelopeId,this.showReinviteDialog).then((()=>{u("Recipient Reset",{style:"success"});this.showReinviteDialog=""})).catch((e=>{console.log("[SIDEBAR] Error resetting recipient",e);u("Error resetting recipient: "+e.message,{style:"error"});this.showReinviteDialog=""}))}}),this.showUpdateDialog&&s("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:e=>{console.log("next",e.detail);if(e.detail.action==="save"){this.handleUpdateRecipient(e.detail.originalRecipient,e.detail.updatedRecipient)}else{this.showUpdateDialog=""}}}))}};V.style=C;export{V as verdocs_envelope_sidebar};
2
+ //# sourceMappingURL=p-e8d6a5ca.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as s,h as i,H as l}from"./p-DjAHH4ih.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-L_9dApfY.js";import{V as v}from"./p-CyvDgtoV.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-dzBXqXlK.js";import"./p-dqxNbm_b.js";const x='@-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-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const b=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>`;const u=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const m=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const g=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const w=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"68a05a5c1fedd90f4ec2127fb043edd7c2c28f94"},i("div",{key:"c50f01f7d76b549ae740dac7717871cb9208f03e",class:"header"},i("div",{key:"a5c67f6bbf6006643218fa7055a6dc51a55df449",class:"filter"},i("verdocs-text-input",{key:"192882a7b4e4791106366374fefd69bad926f34c",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"833922aaeffdbbf99a3e2656233ea63ee226ad46",label:"View",value:this.view,options:u,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"e72e40afa6488c74b51b681bd157f1c752b6ddd8",label:"Status",value:this.status,options:m,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"e6215bb25f027ede21fce567612737a676eeb1ca",label:"Sort By",value:this.sort,options:g,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"39af45d325d2ca39844512d9683fc0b96bf57904",mode:"dark",size:24}),i("div",{key:"351cca0acde590d5eebbdbbebe3a531ad6ef753f",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"aede30436004276df9a472fa0c3dbe330a064708",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:b,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,":  ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"1d07c3fa2c2f5cb5daf2e944fbcce3de2247fb6e",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"9e071fa11e21f496f45356b8f548c68dd48283bf",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};w.style=x;export{w as verdocs_envelopes_list};
2
- //# sourceMappingURL=p-1b86055f.entry.js.map
1
+ import{r as e,c as s,h as i,H as l}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-L_9dApfY.js";import{V as v}from"./p-CyvDgtoV.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-dzBXqXlK.js";import"./p-dqxNbm_b.js";const x='@-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-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const u=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="#000000" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>`;const b=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const m=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const g=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const w=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"03cd297bd02b0d6d887e650e3aa700a0d42991dd"},i("div",{key:"037d805f957a2e0db5704e3ffd384baaf18ba9ae",class:"header"},i("div",{key:"b23c821d9f9e91a4e6403c332cb4240cedda6642",class:"filter"},i("verdocs-text-input",{key:"f237c117659de85df6e9df8b993ae0780996e381",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"566ebddafa8799fd6cf877d40e70fc1c920bf35e",label:"View",value:this.view,options:b,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"d9b137f457e2132fec77e18555a5d814b62ddd5e",label:"Status",value:this.status,options:m,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"2fd91f70082e083328e9d51690b1bc8f9a1c3469",label:"Sort By",value:this.sort,options:g,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"40e2c1bfe4e43fbe8eeead14fe9bf079d64f5603",mode:"dark",size:24}),i("div",{key:"3fce23374bd0d8c326bd42148e3eb320994e4a5b",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"a5d968a71b44e5c945724834b92b15eee6c20374",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:u,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,":  ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"8130262b941194cc21047ee4887c7411143d267a",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"aef8588d052e8f9e0094697d4b12dc66dde33362",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};w.style=x;export{w as verdocs_envelopes_list};
2
+ //# sourceMappingURL=p-ea69720d.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function l(e){try{c(s.next(e))}catch(e){a(e)}}function r(e){try{c(s["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(l,r)}c((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,i,a,l=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return l.next=r(0),l["throw"]=r(1),l["return"]=r(2),typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return c([e,t])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(l&&(l=0,r[0]&&(n=0)),n)try{if(s=1,i&&(a=r[0]&2?i["return"]:r[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;if(i=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];i=0}finally{s=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-IELtlxxf.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js"],(function(e){"use strict";var t,n,s,i,a,l,r,c,o,d,p;return{setters:[function(e){t=e.r;n=e.c;s=e.h;i=e.H},function(e){a=e.d},function(e){l=e.VerdocsEndpoint;r=e.getTemplates;c=e.deleteTemplate;o=e.integerSequence;d=e.canPerformTemplateAction},function(e){p=e.S}],execute:function(){var h='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var u='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var w=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var y=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var k=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var z=e("verdocs_templates_list",function(){function e(e){var s=this;t(this,e);this.sdkError=n(this,"sdkError");this.viewTemplate=n(this,"viewTemplate");this.signNow=n(this,"signNow");this.submittedData=n(this,"submittedData");this.editTemplate=n(this,"editTemplate");this.templateDeleted=n(this,"templateDeleted");this.changeSort=n(this,"changeSort");this.changeVisibility=n(this,"changeVisibility");this.changeStarred=n(this,"changeStarred");this.changeName=n(this,"changeName");this.endpoint=l.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter="";this.handleOptionSelected=function(e,t){var n,i,a,l;if(e==="send"){(n=s.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:s.endpoint,template:t})}else if(e==="signnow"){(i=s.signNow)===null||i===void 0?void 0:i.emit({endpoint:s.endpoint,template:t})}else if(e==="submitted"){(a=s.submittedData)===null||a===void 0?void 0:a.emit({endpoint:s.endpoint,template:t})}else if(e==="edit"){(l=s.editTemplate)===null||l===void 0?void 0:l.emit({endpoint:s.endpoint,template:t})}else if(e==="delete"){s.confirmDelete=t}}}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,i,a;return __generator(this,(function(l){switch(l.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;l.label=1;case 1:l.trys.push([1,3,,4]);s={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){s.q=this.name.trim()}return[4,r(this.endpoint,s)];case 2:i=l.sent();this.templates=i.templates;this.count=i.count;this.loading=false;return[3,4];case 3:a=l.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new p(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;c(this.endpoint,e.id).then((function(){var n;console.log("[TEMPLATES] Deleted template",e);(n=t.templateDeleted)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(n){var s,i,a;console.log("[TEMPLATES] Error deleting template",e);(s=t.sdkError)===null||s===void 0?void 0:s.emit(new p(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(a=n.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return s(i,{key:"413e89687da4869f59f79773dc094ba3b257837c"},s("div",{key:"92cd27b85f2c8829f86628a87c48f00e1fb1cdb0",class:"header"},s("div",{key:"e6455d3c2b0ab61197911eed67ad13b19cf8aac6",class:"filter"},s("verdocs-text-input",{key:"e22da80be6a401da2bb444674f464652d4c96e87",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var n;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(n=e.changeName)===null||n===void 0?void 0:n.emit(e.name)}})),s("verdocs-quick-filter",{key:"af8740dc5f1db25dd5bb45d008abbefedb7ec3df",label:"Visibility",value:this.visibility,options:w,onOptionSelected:function(t){var n;e.visibility=t.detail.value;(n=e.changeVisibility)===null||n===void 0?void 0:n.emit(e.visibility)}}),s("verdocs-quick-filter",{key:"a2f0809f07eda91cae7d9c7d7fbded09f878c1fb",label:"Starred",value:this.starred,options:y,onOptionSelected:function(t){var n;e.starred=t.detail.value;(n=e.changeStarred)===null||n===void 0?void 0:n.emit(e.starred)}}),s("verdocs-quick-filter",{key:"faf2c2d42d2e75c0fc277a4f01d2c745cef771c0",label:"Sort By",value:this.sort,options:k,onOptionSelected:function(t){var n;e.sort=t.detail.value;(n=e.changeSort)===null||n===void 0?void 0:n.emit(e.sort)}}),this.loading&&s("verdocs-spinner",{key:"b4a0a5ffb052490dcad6e1cc30fa19483b7e5f68",mode:"dark",size:24}),s("div",{key:"8c4b7a71c95d67658d7c9f3c35a21c4cec410fff",style:{display:"flex",flex:"1"}})),t.map((function(t){var n=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var i=t[n];var l=[];var r=[];if(e.allowedActions.includes("send")){l.push({label:"Preview / Send",id:"send",disabled:!d(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("signnow")){l.push({label:"Sign Now",id:"signnow",disabled:true})}if(e.allowedActions.includes("submitted")){l.push({label:""});l.push({label:"Submissions",id:"submitted",disabled:!d(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:"Edit",id:"edit",disabled:!r.includes("write")})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:"Delete",id:"delete",disabled:!r.includes("delete")})}}return s("div",{class:"template",onClick:function(){var n;(n=e.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,template:t})}},s("div",{class:"inner"},s("verdocs-template-star",{template:t,endpoint:e.endpoint}),s("div",{class:"spacer icon-spacer"}),s("div",{class:"name"},t.name),s("div",{class:"spacer usage-spacer"}),s("div",{class:"usage"},s("span",{innerHTML:m,title:"Usage Counter"}),t.counter||"--"),s("div",{class:"spacer last-used-spacer"}),s("div",{class:"last-used"},n==="created_at"&&s("span",{innerHTML:x,title:"Created"}),n==="updated_at"&&s("span",{innerHTML:g,title:"Last Updated"}),n==="last_used_at"&&s("span",{innerHTML:b,title:"Last Used"}),i?a.format(new Date(i),"P"):"Never"),s("div",{class:"spacer ownership-spacer"}),t.is_public&&s("div",{class:"ownership"},s("span",{innerHTML:v})," Public"),!t.is_public&&!t.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:u})," Private"),!t.is_public&&t.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:f})," Shared"),s("verdocs-dropdown",{options:l,onOptionSelected:function(n){return e.handleOptionSelected(n.detail.id,t)}})))})),!this.initiallyLoaded&&s("div",{key:"3fc32fc73c74bd4eddb7442364116bc4d40d4f3b"},o(0,this.rowsPerPage).map((function(){return s("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&s("div",{key:"16e2f578e56b65e45b172205b2c59364c2a40613",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?s("div",{style:{marginTop:"20px"}},s("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):s("div",null),this.confirmDelete&&s("verdocs-ok-dialog",{key:"d06aaa74a605b6b27c1382fba0d899ff6d9b61f5",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}());z.style=h}}}));
2
- //# sourceMappingURL=p-b0e8639b.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function l(e){try{c(s.next(e))}catch(e){a(e)}}function r(e){try{c(s["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(l,r)}c((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,i,a,l=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return l.next=r(0),l["throw"]=r(1),l["return"]=r(2),typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return c([e,t])}}function c(r){if(s)throw new TypeError("Generator is already executing.");while(l&&(l=0,r[0]&&(n=0)),n)try{if(s=1,i&&(a=r[0]&2?i["return"]:r[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,r[1])).done)return a;if(i=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:n.label++;return{value:r[1],done:false};case 5:n.label++;i=r[1];r=[0];continue;case 7:r=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){n.label=r[1];break}if(r[0]===6&&n.label<a[1]){n.label=a[1];a=r;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(r);break}if(a[2])n.ops.pop();n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e];i=0}finally{s=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-BO6MZhlp.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js"],(function(e){"use strict";var t,n,s,i,a,l,r,c,o,d,p;return{setters:[function(e){t=e.r;n=e.c;s=e.h;i=e.H},function(e){a=e.d},function(e){l=e.VerdocsEndpoint;r=e.getTemplates;c=e.deleteTemplate;o=e.integerSequence;d=e.canPerformTemplateAction},function(e){p=e.S}],execute:function(){var h='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var u='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var w=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var y=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var k=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var z=e("verdocs_templates_list",function(){function e(e){var s=this;t(this,e);this.sdkError=n(this,"sdkError");this.viewTemplate=n(this,"viewTemplate");this.signNow=n(this,"signNow");this.submittedData=n(this,"submittedData");this.editTemplate=n(this,"editTemplate");this.templateDeleted=n(this,"templateDeleted");this.changeSort=n(this,"changeSort");this.changeVisibility=n(this,"changeVisibility");this.changeStarred=n(this,"changeStarred");this.changeName=n(this,"changeName");this.endpoint=l.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter="";this.handleOptionSelected=function(e,t){var n,i,a,l;if(e==="send"){(n=s.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:s.endpoint,template:t})}else if(e==="signnow"){(i=s.signNow)===null||i===void 0?void 0:i.emit({endpoint:s.endpoint,template:t})}else if(e==="submitted"){(a=s.submittedData)===null||a===void 0?void 0:a.emit({endpoint:s.endpoint,template:t})}else if(e==="edit"){(l=s.editTemplate)===null||l===void 0?void 0:l.emit({endpoint:s.endpoint,template:t})}else if(e==="delete"){s.confirmDelete=t}}}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,i,a;return __generator(this,(function(l){switch(l.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;l.label=1;case 1:l.trys.push([1,3,,4]);s={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){s.q=this.name.trim()}return[4,r(this.endpoint,s)];case 2:i=l.sent();this.templates=i.templates;this.count=i.count;this.loading=false;return[3,4];case 3:a=l.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new p(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;c(this.endpoint,e.id).then((function(){var n;console.log("[TEMPLATES] Deleted template",e);(n=t.templateDeleted)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(n){var s,i,a;console.log("[TEMPLATES] Error deleting template",e);(s=t.sdkError)===null||s===void 0?void 0:s.emit(new p(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(a=n.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return s(i,{key:"413e89687da4869f59f79773dc094ba3b257837c"},s("div",{key:"92cd27b85f2c8829f86628a87c48f00e1fb1cdb0",class:"header"},s("div",{key:"e6455d3c2b0ab61197911eed67ad13b19cf8aac6",class:"filter"},s("verdocs-text-input",{key:"e22da80be6a401da2bb444674f464652d4c96e87",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var n;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(n=e.changeName)===null||n===void 0?void 0:n.emit(e.name)}})),s("verdocs-quick-filter",{key:"af8740dc5f1db25dd5bb45d008abbefedb7ec3df",label:"Visibility",value:this.visibility,options:w,onOptionSelected:function(t){var n;e.visibility=t.detail.value;(n=e.changeVisibility)===null||n===void 0?void 0:n.emit(e.visibility)}}),s("verdocs-quick-filter",{key:"a2f0809f07eda91cae7d9c7d7fbded09f878c1fb",label:"Starred",value:this.starred,options:y,onOptionSelected:function(t){var n;e.starred=t.detail.value;(n=e.changeStarred)===null||n===void 0?void 0:n.emit(e.starred)}}),s("verdocs-quick-filter",{key:"faf2c2d42d2e75c0fc277a4f01d2c745cef771c0",label:"Sort By",value:this.sort,options:k,onOptionSelected:function(t){var n;e.sort=t.detail.value;(n=e.changeSort)===null||n===void 0?void 0:n.emit(e.sort)}}),this.loading&&s("verdocs-spinner",{key:"b4a0a5ffb052490dcad6e1cc30fa19483b7e5f68",mode:"dark",size:24}),s("div",{key:"8c4b7a71c95d67658d7c9f3c35a21c4cec410fff",style:{display:"flex",flex:"1"}})),t.map((function(t){var n=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var i=t[n];var l=[];var r=[];if(e.allowedActions.includes("send")){l.push({label:"Preview / Send",id:"send",disabled:!d(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("signnow")){l.push({label:"Sign Now",id:"signnow",disabled:true})}if(e.allowedActions.includes("submitted")){l.push({label:""});l.push({label:"Submissions",id:"submitted",disabled:!d(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:"Edit",id:"edit",disabled:!r.includes("write")})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){l.push({label:"Delete",id:"delete",disabled:!r.includes("delete")})}}return s("div",{class:"template",onClick:function(){var n;(n=e.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,template:t})}},s("div",{class:"inner"},s("verdocs-template-star",{template:t,endpoint:e.endpoint}),s("div",{class:"spacer icon-spacer"}),s("div",{class:"name"},t.name),s("div",{class:"spacer usage-spacer"}),s("div",{class:"usage"},s("span",{innerHTML:m,title:"Usage Counter"}),t.counter||"--"),s("div",{class:"spacer last-used-spacer"}),s("div",{class:"last-used"},n==="created_at"&&s("span",{innerHTML:x,title:"Created"}),n==="updated_at"&&s("span",{innerHTML:g,title:"Last Updated"}),n==="last_used_at"&&s("span",{innerHTML:b,title:"Last Used"}),i?a.format(new Date(i),"P"):"Never"),s("div",{class:"spacer ownership-spacer"}),t.is_public&&s("div",{class:"ownership"},s("span",{innerHTML:v})," Public"),!t.is_public&&!t.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:u})," Private"),!t.is_public&&t.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:f})," Shared"),s("verdocs-dropdown",{options:l,onOptionSelected:function(n){return e.handleOptionSelected(n.detail.id,t)}})))})),!this.initiallyLoaded&&s("div",{key:"3fc32fc73c74bd4eddb7442364116bc4d40d4f3b"},o(0,this.rowsPerPage).map((function(){return s("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&s("div",{key:"16e2f578e56b65e45b172205b2c59364c2a40613",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?s("div",{style:{marginTop:"20px"}},s("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):s("div",null),this.confirmDelete&&s("verdocs-ok-dialog",{key:"d06aaa74a605b6b27c1382fba0d899ff6d9b61f5",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}());z.style=h}}}));
2
+ //# sourceMappingURL=p-ead7ce15.system.entry.js.map
@@ -1,2 +1,2 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function r(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{a(t.next(e))}catch(e){o(e)}}function l(e){try{a(t["throw"](e))}catch(e){o(e)}}function a(e){e.done?n(e.value):r(e.value).then(s,l)}a((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=l(0),s["throw"]=l(1),s["return"]=l(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(i){return a([e,i])}}function a(l){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(n=0)),n)try{if(t=1,r&&(o=l[0]&2?r["return"]:l[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;if(r=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;r=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1];o=l;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(l);break}if(o[2])n.ops.pop();n.trys.pop();continue}l=i.call(e,n)}catch(e){l=[6,e];r=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-IELtlxxf.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var i,n,t,r,o,s,l,a,c,u,f,d;return{setters:[function(e){i=e.r;n=e.c;t=e.h;r=e.H},function(e){o=e.VerdocsEndpoint;s=e.getEnvelope;l=e.getInPersonLink;a=e.getRecipientsWithActions;c=e.recipientCanAct;u=e.formatFullName},function(e){f=e.S},function(e){d=e.S}],execute:function(){var p='@-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-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}';var m=e("verdocs_envelope_recipient_summary",function(){function e(e){i(this,e);this.another=n(this,"another");this.view=n(this,"view");this.next=n(this,"next");this.sdkError=n(this,"sdkError");this.envelopeListenerId=null;this.endpoint=o.getDefault();this.envelopeId="";this.canSendAnother=true;this.canView=true;this.canDone=true;this.recipientStatusIcons=[];this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11));this.gettingLinks={};this.links={};this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENTS] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENTS] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENTS] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();d.subscribe("envelopes",this.envelopeId,(function(){return s(e.endpoint,e.envelopeId)}),false,(function(i){e.envelope=i;e.loading=false;e.sortEnvelopeRecipients()}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){d.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.handleAnother=function(e){var i;e.preventDefault();(i=this.another)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleView=function(e){var i;e.preventDefault();(i=this.view)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){var i=this;navigator.clipboard.writeText(e).then((function(){})).catch((function(e){var n;console.warn("[RECIPIENTS] Error copying to clipboard",e);(n=i.sdkError)===null||n===void 0?void 0:n.emit(e)}))};e.prototype.getLink=function(e){var i;var n=this;this.gettingLinks=__assign(__assign({},this.gettingLinks),(i={},i[e.role_name]=true,i));l(this.endpoint,e.envelope_id,e.role_name).then((function(i){var t,r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));n.links=__assign(__assign({},n.links),(r={},r[e.role_name]=i.link,r));n.copyLink(i.link)})).catch((function(i){var t;var r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));console.log("[RECIPIENTS] Error getting link",i);(r=n.sdkError)===null||r===void 0?void 0:r.emit(i)}))};e.prototype.render=function(){var e=this;var i;if(this.loading){return t(r,null)}return t(r,null,t("div",{class:"summary-content"},t("h1",{class:"summary-title"},"Recipient Summary"),t("div",{class:"summary-rows"},(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).map((function(i){var n=a(e.envelope);var r=c(i,n);var o=e.links[i.role_name];var s=e.gettingLinks[i.role_name];var l=u(i);return t("div",{class:"summary-recipient"},t("div",{class:"role-name"},i.role_name),t("div",{class:"role-details"},t("div",{class:"role-info"},t("div",{class:"role-full-name"},l," (",i.email||i.phone,")"),r&&!o&&t("verdocs-button",{size:"small",variant:"outline",label:"Get Link",disabled:s,onClick:function(){return e.getLink(i)}})),o&&t("div",{class:"link-wrapper"},t("div",{class:"link"},o),t("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(o)}}))))}))),(this.canSendAnother||this.canView||this.canDone)&&t("div",{class:"buttons"},this.canSendAnother&&t("verdocs-button",{size:"small",label:"Send Another",onClick:function(i){return e.handleAnother(i)}}),this.canView&&t("verdocs-button",{size:"small",label:"View Now",onClick:function(i){return e.handleView(i)}}),this.canDone&&t("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}());m.style=p}}}));
2
- //# sourceMappingURL=p-b954399f.system.entry.js.map
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function r(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{a(t.next(e))}catch(e){o(e)}}function l(e){try{a(t["throw"](e))}catch(e){o(e)}}function a(e){e.done?n(e.value):r(e.value).then(s,l)}a((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=l(0),s["throw"]=l(1),s["return"]=l(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(i){return a([e,i])}}function a(l){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(n=0)),n)try{if(t=1,r&&(o=l[0]&2?r["return"]:l[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;if(r=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;r=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1];o=l;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(l);break}if(o[2])n.ops.pop();n.trys.pop();continue}l=i.call(e,n)}catch(e){l=[6,e];r=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-BO6MZhlp.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var i,n,t,r,o,s,l,a,c,u,f,d;return{setters:[function(e){i=e.r;n=e.c;t=e.h;r=e.H},function(e){o=e.VerdocsEndpoint;s=e.getEnvelope;l=e.getInPersonLink;a=e.getRecipientsWithActions;c=e.recipientCanAct;u=e.formatFullName},function(e){f=e.S},function(e){d=e.S}],execute:function(){var p='@-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-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}';var m=e("verdocs_envelope_recipient_summary",function(){function e(e){i(this,e);this.another=n(this,"another");this.view=n(this,"view");this.next=n(this,"next");this.sdkError=n(this,"sdkError");this.envelopeListenerId=null;this.endpoint=o.getDefault();this.envelopeId="";this.canSendAnother=true;this.canView=true;this.canDone=true;this.recipientStatusIcons=[];this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11));this.gettingLinks={};this.links={};this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENTS] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENTS] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENTS] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();d.subscribe("envelopes",this.envelopeId,(function(){return s(e.endpoint,e.envelopeId)}),false,(function(i){e.envelope=i;e.loading=false;e.sortEnvelopeRecipients()}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){d.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.handleAnother=function(e){var i;e.preventDefault();(i=this.another)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleView=function(e){var i;e.preventDefault();(i=this.view)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){var i=this;navigator.clipboard.writeText(e).then((function(){})).catch((function(e){var n;console.warn("[RECIPIENTS] Error copying to clipboard",e);(n=i.sdkError)===null||n===void 0?void 0:n.emit(e)}))};e.prototype.getLink=function(e){var i;var n=this;this.gettingLinks=__assign(__assign({},this.gettingLinks),(i={},i[e.role_name]=true,i));l(this.endpoint,e.envelope_id,e.role_name).then((function(i){var t,r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));n.links=__assign(__assign({},n.links),(r={},r[e.role_name]=i.link,r));n.copyLink(i.link)})).catch((function(i){var t;var r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));console.log("[RECIPIENTS] Error getting link",i);(r=n.sdkError)===null||r===void 0?void 0:r.emit(i)}))};e.prototype.render=function(){var e=this;var i;if(this.loading){return t(r,null)}return t(r,null,t("div",{class:"summary-content"},t("h1",{class:"summary-title"},"Recipient Summary"),t("div",{class:"summary-rows"},(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).map((function(i){var n=a(e.envelope);var r=c(i,n);var o=e.links[i.role_name];var s=e.gettingLinks[i.role_name];var l=u(i);return t("div",{class:"summary-recipient"},t("div",{class:"role-name"},i.role_name),t("div",{class:"role-details"},t("div",{class:"role-info"},t("div",{class:"role-full-name"},l," (",i.email||i.phone,")"),r&&!o&&t("verdocs-button",{size:"small",variant:"outline",label:"Get Link",disabled:s,onClick:function(){return e.getLink(i)}})),o&&t("div",{class:"link-wrapper"},t("div",{class:"link"},o),t("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(o)}}))))}))),(this.canSendAnother||this.canView||this.canDone)&&t("div",{class:"buttons"},this.canSendAnother&&t("verdocs-button",{size:"small",label:"Send Another",onClick:function(i){return e.handleAnother(i)}}),this.canView&&t("verdocs-button",{size:"small",label:"View Now",onClick:function(i){return e.handleView(i)}}),this.canDone&&t("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}());m.style=p}}}));
2
+ //# sourceMappingURL=p-ec6f161e.system.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as o,h as i,H as d}from"./p-BIRwgFLv.js";const a='@-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{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}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:8px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;border:1px solid #aeb4bf;-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{gap:12px;padding:20px;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;-ms-flex-direction:row;flex-direction:row;color:#ffffff;border-bottom:1.5px solid #e5e7eb}verdocs-dialog .heading .icon{width:40px;height:40px;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border-radius:8px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#654dcb}verdocs-dialog .heading .title{-ms-flex:1;flex:1;height:40px;display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-align:center;align-items:center;color:#092c4c}verdocs-dialog .content{padding:20px 20px 0 20px;font-size:16px;line-height:26px;color:#374151}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .content ul{margin:0 0 1em 0;padding:0 0 0 20px}verdocs-dialog .content ul li{font-size:14px;line-height:20px;margin:0 0 12px 0;padding:0 0 0 8px}verdocs-dialog .content ul li::marker{font-size:18px;color:#654dcb}verdocs-dialog .content ol{margin:0 0 1em 0;padding:0 0 0 20px}verdocs-dialog .content ol li{font-size:14px;line-height:20px;margin:0 0 12px 0;padding:0 0 0 8px}verdocs-dialog .content ol li::marker{font-weight:500;color:#654dcb}verdocs-dialog .footer{padding:0 20px 20px 20px}';const r=class{constructor(i){e(this,i);this.exit=o(this,"exit")}handleDismiss(e){var o;if(e.target.className==="background-overlay"){e.preventDefault();(o=this.exit)===null||o===void 0?void 0:o.emit()}}render(){return i(d,{key:"be17acda3073b24421df0056f635605186a30c7a"},i("div",{key:"5f81616d9759436c1ff5aecec01b48c9b34beb01",class:"background-overlay",onClick:e=>this.handleDismiss(e)},i("div",{key:"9c92691a7a0a927894c8a6a452cee07e9a9c6149",class:"dialog"},i("slot",{key:"1942793ef2ed923dbc8bbeae0856086478891b18",name:"heading"},i("div",{key:"b0612747e4788180147a9681c13d7f54b1545abf",class:"heading"},"Title")),i("slot",{key:"6466b34551df42a274317118cc50b87788d116ca",name:"content"},i("div",{key:"07ffe13455670646c154299fc9de570d283b2d3b",class:"content"},"Content")),i("slot",{key:"974d452de004ba7669d17e1ae7a4b5370e113c4a",name:"footer"},i("div",{key:"5100d78a34effea5b805f9c7b5f567a61938149b",class:"footer"},"Footer")))))}};r.style=a;export{r as verdocs_dialog};
2
+ //# sourceMappingURL=p-ed353630.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","createEvent","h","Host","verdocsDialogCss","VerdocsDialog","constructor","hostRef","this","exit","handleDismiss","e","_a","target","className","preventDefault","emit","render","key","class","onClick","name","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,OAAQC,MAAY,kBAEtE,MAAMC,EAAmB,yxEAEzB,MAAMC,EAAgB,MAClB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,GACvBC,KAAKC,KAAOR,EAAYO,KAAM,OAClC,CAGA,aAAAE,CAAcC,GACV,IAAIC,EACJ,GAAID,EAAEE,OAAOC,YAAc,qBAAsB,CAC7CH,EAAEI,kBACDH,EAAKJ,KAAKC,QAAU,MAAQG,SAAY,OAAS,EAAIA,EAAGI,MAC7D,CACJ,CACA,MAAAC,GACI,OAAQf,EAAEC,EAAM,CAAEe,IAAK,4CAA8ChB,EAAE,MAAO,CAAEgB,IAAK,2CAA4CC,MAAO,qBAAsBC,QAAST,GAAKH,KAAKE,cAAcC,IAAMT,EAAE,MAAO,CAAEgB,IAAK,2CAA4CC,MAAO,UAAYjB,EAAE,OAAQ,CAAEgB,IAAK,2CAA4CG,KAAM,WAAanB,EAAE,MAAO,CAAEgB,IAAK,2CAA4CC,MAAO,WAAa,UAAWjB,EAAE,OAAQ,CAAEgB,IAAK,2CAA4CG,KAAM,WAAanB,EAAE,MAAO,CAAEgB,IAAK,2CAA4CC,MAAO,WAAa,YAAajB,EAAE,OAAQ,CAAEgB,IAAK,2CAA4CG,KAAM,UAAYnB,EAAE,MAAO,CAAEgB,IAAK,2CAA4CC,MAAO,UAAY,aAC9wB,GAEJd,EAAciB,MAAQlB,SAEbC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as r,H as s}from"./p-DjAHH4ih.js";import{VerdocsEndpoint as a,toggleTemplateStar as o}from"@verdocs/js-sdk";const i='@-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-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';const n=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>`;const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>`;const c=class{constructor(r){t(this,r);this.starChange=e(this,"starChange");this.sdkError=e(this,"sdkError");this.endpoint=a.getDefault();this.updating=false}async componentWillLoad(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}}toggle(t){t.stopPropagation();this.updating=true;o(a.getDefault(),this.template.id).then((t=>{this.updating=false;this.template.star_counter=t.star_counter;this.starChange.emit({templateId:this.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((t=>{this.updating=false;console.log("[STAR] Error toggling template star",t.message);this.sdkError.emit(t)}))}render(){return r(s,{key:"6f8faa1b06cc1103dee9014a4431b57135d81f0e"},r("div",{key:"f8277b3fb815b8a6b8b2ab2d2b9bad72e2b0d93b",class:`star ${this.updating?"updating":""}`,innerHTML:this.template.star_counter?l:n,onClick:t=>this.toggle(t)}),r("div",{key:"8e55a5ed6aebcc84ca2a91bc047a54d201f29108",class:"count"},this.template.star_counter||"--"))}};c.style=i;export{c as verdocs_template_star};
2
- //# sourceMappingURL=p-84ef045b.entry.js.map
1
+ import{r as t,c as e,h as r,H as s}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as a,toggleTemplateStar as o}from"@verdocs/js-sdk";const i='@-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-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';const n=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>`;const l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>`;const c=class{constructor(r){t(this,r);this.starChange=e(this,"starChange");this.sdkError=e(this,"sdkError");this.endpoint=a.getDefault();this.updating=false}async componentWillLoad(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}}toggle(t){t.stopPropagation();this.updating=true;o(a.getDefault(),this.template.id).then((t=>{this.updating=false;this.template.star_counter=t.star_counter;this.starChange.emit({templateId:this.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((t=>{this.updating=false;console.log("[STAR] Error toggling template star",t.message);this.sdkError.emit(t)}))}render(){return r(s,{key:"f2ab84b711e5ad68d23b767c5bfdf4ecdbf18f20"},r("div",{key:"b08c47c7871081eb04b50f9ac0c584b6cd362d68",class:`star ${this.updating?"updating":""}`,innerHTML:this.template.star_counter?l:n,onClick:t=>this.toggle(t)}),r("div",{key:"d43fd956c556abd5a27ae94ec77a8accf7ca50fc",class:"count"},this.template.star_counter||"--"))}};c.style=i;export{c as verdocs_template_star};
2
+ //# sourceMappingURL=p-eee0e96c.entry.js.map