@verdocs/web-sdk 5.3.1 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. package/dist/cjs/index-Be9PlTB7.js +2 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
  4. package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
  5. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +5 -3
  7. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  8. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
  11. package/dist/cjs/{verdocs-kba-dialog_3.cjs.entry.js → verdocs-delegate-dialog_4.cjs.entry.js} +53 -4
  12. package/dist/cjs/verdocs-delegate-dialog_4.cjs.entry.js.map +1 -0
  13. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
  18. package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
  19. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  20. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  21. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  23. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  26. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-sign.cjs.entry.js +37 -4
  32. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  33. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  34. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  36. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  37. package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  43. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  46. package/dist/collection/collection-manifest.json +1 -0
  47. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  48. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  49. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  50. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  51. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
  52. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  53. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  54. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  55. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  56. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  57. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  58. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  59. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  60. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  61. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  62. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  63. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  64. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  65. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  66. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  67. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  68. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  69. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  70. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  71. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  72. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  73. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +177 -0
  74. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +154 -0
  75. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -0
  76. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  77. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  78. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  79. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  80. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  81. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  82. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  83. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  84. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  85. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +3 -0
  86. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -4
  87. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  88. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -1
  89. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +4 -2
  90. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  91. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  92. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -1
  93. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
  94. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  95. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  96. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  97. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  98. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  99. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  100. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  101. package/dist/components/index.js +2 -0
  102. package/dist/components/index.js.map +1 -1
  103. package/dist/components/{p-Bb2F00K4.js → p--hL4T8Ae.js} +11 -11
  104. package/dist/components/{p-Bb2F00K4.js.map → p--hL4T8Ae.js.map} +1 -1
  105. package/dist/components/{p-im6p8eaY.js → p-9HvXJwEq.js} +3 -3
  106. package/dist/components/{p-im6p8eaY.js.map → p-9HvXJwEq.js.map} +1 -1
  107. package/dist/components/{p-IIsukGEV.js → p-B7buybCz.js} +3 -3
  108. package/dist/components/{p-IIsukGEV.js.map → p-B7buybCz.js.map} +1 -1
  109. package/dist/components/{p-DkRVY3iu.js → p-BBJxuJAR.js} +6 -6
  110. package/dist/components/{p-DkRVY3iu.js.map → p-BBJxuJAR.js.map} +1 -1
  111. package/dist/components/{p-C0nK1qtH.js → p-BCfTxJfb.js} +3 -3
  112. package/dist/components/{p-C0nK1qtH.js.map → p-BCfTxJfb.js.map} +1 -1
  113. package/dist/components/{p-BgLJVBaB.js → p-BDDzkCIR.js} +4 -4
  114. package/dist/components/{p-BgLJVBaB.js.map → p-BDDzkCIR.js.map} +1 -1
  115. package/dist/components/{p-CgbZe6eM.js → p-BDmKp20X.js} +7 -7
  116. package/dist/components/{p-CgbZe6eM.js.map → p-BDmKp20X.js.map} +1 -1
  117. package/dist/components/{p-DzDX8A_h.js → p-BHu8qhRh.js} +3 -3
  118. package/dist/components/{p-DzDX8A_h.js.map → p-BHu8qhRh.js.map} +1 -1
  119. package/dist/components/{p-X6ujIO0j.js → p-BMXdvy4u.js} +8 -8
  120. package/dist/components/{p-X6ujIO0j.js.map → p-BMXdvy4u.js.map} +1 -1
  121. package/dist/components/{p-DQh221R1.js → p-BN5wpJih.js} +12 -12
  122. package/dist/components/{p-DQh221R1.js.map → p-BN5wpJih.js.map} +1 -1
  123. package/dist/components/{p-ke4RFlpQ.js → p-BP9TCpZ6.js} +25 -25
  124. package/dist/components/{p-ke4RFlpQ.js.map → p-BP9TCpZ6.js.map} +1 -1
  125. package/dist/components/{p-BHKb3X7a.js → p-BRC3PsLk.js} +9 -9
  126. package/dist/components/{p-BHKb3X7a.js.map → p-BRC3PsLk.js.map} +1 -1
  127. package/dist/components/{p-BPaxQrtW.js → p-BakshEO1.js} +3 -3
  128. package/dist/components/{p-BPaxQrtW.js.map → p-BakshEO1.js.map} +1 -1
  129. package/dist/components/p-BpUKXYCJ.js +83 -0
  130. package/dist/components/p-BpUKXYCJ.js.map +1 -0
  131. package/dist/components/{p-B8nK0hJl.js → p-Bswg8Fe8.js} +11 -11
  132. package/dist/components/{p-B8nK0hJl.js.map → p-Bswg8Fe8.js.map} +1 -1
  133. package/dist/components/{p-dIi8HYZ5.js → p-CEXKKH9Z.js} +9 -9
  134. package/dist/components/{p-dIi8HYZ5.js.map → p-CEXKKH9Z.js.map} +1 -1
  135. package/dist/components/{p-WhDWrMQm.js → p-CFBQG_2F.js} +11 -11
  136. package/dist/components/{p-WhDWrMQm.js.map → p-CFBQG_2F.js.map} +1 -1
  137. package/dist/components/{p-D_x2HuZp.js → p-CJIN0YXw.js} +11 -11
  138. package/dist/components/{p-D_x2HuZp.js.map → p-CJIN0YXw.js.map} +1 -1
  139. package/dist/components/{p-kaKbklxN.js → p-CSFCBy3P.js} +27 -27
  140. package/dist/components/{p-kaKbklxN.js.map → p-CSFCBy3P.js.map} +1 -1
  141. package/dist/components/{p-BcXBFK4l.js → p-CUlK6Rs_.js} +5 -5
  142. package/dist/components/{p-BcXBFK4l.js.map → p-CUlK6Rs_.js.map} +1 -1
  143. package/dist/components/{p-Cn6fa00B.js → p-CVkbflKM.js} +3 -3
  144. package/dist/components/{p-Cn6fa00B.js.map → p-CVkbflKM.js.map} +1 -1
  145. package/dist/components/{p-BV_wbVq4.js → p-Cexe1-Oo.js} +3 -3
  146. package/dist/components/{p-BV_wbVq4.js.map → p-Cexe1-Oo.js.map} +1 -1
  147. package/dist/components/{p-CLHwiJsu.js → p-Cf1Xpjup.js} +3 -3
  148. package/dist/components/{p-CLHwiJsu.js.map → p-Cf1Xpjup.js.map} +1 -1
  149. package/dist/components/{p-D38Lnu3J.js → p-CfqdAcYb.js} +3 -3
  150. package/dist/components/{p-D38Lnu3J.js.map → p-CfqdAcYb.js.map} +1 -1
  151. package/dist/components/{p-Crehnwtj.js → p-Ck25a52V.js} +10 -10
  152. package/dist/components/{p-Crehnwtj.js.map → p-Ck25a52V.js.map} +1 -1
  153. package/dist/components/{p-DDAZR40U.js → p-Cry7waUN.js} +6 -6
  154. package/dist/components/{p-DDAZR40U.js.map → p-Cry7waUN.js.map} +1 -1
  155. package/dist/components/{p-DBr1-dfD.js → p-D0rJh5my.js} +3 -3
  156. package/dist/components/{p-DBr1-dfD.js.map → p-D0rJh5my.js.map} +1 -1
  157. package/dist/components/{p-Bs52WSYR.js → p-D13UCp1m.js} +6 -6
  158. package/dist/components/{p-Bs52WSYR.js.map → p-D13UCp1m.js.map} +1 -1
  159. package/dist/components/{p-CunjhIft.js → p-D8_fPEOD.js} +8 -8
  160. package/dist/components/{p-CunjhIft.js.map → p-D8_fPEOD.js.map} +1 -1
  161. package/dist/components/{p-GUGCYQ6F.js → p-DAGrOW1D.js} +5 -5
  162. package/dist/components/{p-GUGCYQ6F.js.map → p-DAGrOW1D.js.map} +1 -1
  163. package/dist/components/{p-DD5pf8Tj.js → p-DAelmHnU.js} +5 -5
  164. package/dist/components/{p-DD5pf8Tj.js.map → p-DAelmHnU.js.map} +1 -1
  165. package/dist/components/{p-C2Fb8G6A.js → p-DCy6nwED.js} +12 -12
  166. package/dist/components/{p-C2Fb8G6A.js.map → p-DCy6nwED.js.map} +1 -1
  167. package/dist/components/{p-D3n1gA61.js → p-DGdQtEJc.js} +11 -11
  168. package/dist/components/{p-D3n1gA61.js.map → p-DGdQtEJc.js.map} +1 -1
  169. package/dist/components/{p-XHSVTLB0.js → p-DMYs4VZa.js} +3 -3
  170. package/dist/components/{p-XHSVTLB0.js.map → p-DMYs4VZa.js.map} +1 -1
  171. package/dist/components/{p-CPRS8f3I.js → p-DNOYDWfH.js} +13 -13
  172. package/dist/components/{p-CPRS8f3I.js.map → p-DNOYDWfH.js.map} +1 -1
  173. package/dist/components/{p-CDFzZQgR.js → p-DSuGln_n.js} +4 -4
  174. package/dist/components/{p-CDFzZQgR.js.map → p-DSuGln_n.js.map} +1 -1
  175. package/dist/components/{p-B3jMBr0M.js → p-Dq3ca8_9.js} +10 -8
  176. package/dist/components/p-Dq3ca8_9.js.map +1 -0
  177. package/dist/components/{p-D5OLYsa3.js → p-Dsw72vlR.js} +4 -4
  178. package/dist/components/{p-D5OLYsa3.js.map → p-Dsw72vlR.js.map} +1 -1
  179. package/dist/components/{p-CUMKIsSw.js → p-Dt-0j6pv.js} +3 -3
  180. package/dist/components/{p-CUMKIsSw.js.map → p-Dt-0j6pv.js.map} +1 -1
  181. package/dist/components/{p-B86IoqG1.js → p-IhdX5vVL.js} +3 -3
  182. package/dist/components/{p-B86IoqG1.js.map → p-IhdX5vVL.js.map} +1 -1
  183. package/dist/components/{p-C8toWnqC.js → p-K9Q7whri.js} +4 -4
  184. package/dist/components/{p-C8toWnqC.js.map → p-K9Q7whri.js.map} +1 -1
  185. package/dist/components/{p-DGRiUZlM.js → p-LNfVhsoj.js} +26 -26
  186. package/dist/components/{p-DGRiUZlM.js.map → p-LNfVhsoj.js.map} +1 -1
  187. package/dist/components/{p-DxZzj3bW.js → p-_nUQ5iEk.js} +3 -3
  188. package/dist/components/{p-DxZzj3bW.js.map → p-_nUQ5iEk.js.map} +1 -1
  189. package/dist/components/{p-BodfySqq.js → p-b88NoejR.js} +4 -4
  190. package/dist/components/{p-BodfySqq.js.map → p-b88NoejR.js.map} +1 -1
  191. package/dist/components/{p-DmSZqyDY.js → p-dDTMckyL.js} +3 -3
  192. package/dist/components/{p-DmSZqyDY.js.map → p-dDTMckyL.js.map} +1 -1
  193. package/dist/components/{p-B79DYGjE.js → p-gCXTKxs5.js} +3 -3
  194. package/dist/components/{p-B79DYGjE.js.map → p-gCXTKxs5.js.map} +1 -1
  195. package/dist/components/{p-DGiDigbo.js → p-gJ8vsaSU.js} +9 -9
  196. package/dist/components/{p-DGiDigbo.js.map → p-gJ8vsaSU.js.map} +1 -1
  197. package/dist/components/{p-TyROYR6-.js → p-pXqgg9BU.js} +4 -4
  198. package/dist/components/{p-TyROYR6-.js.map → p-pXqgg9BU.js.map} +1 -1
  199. package/dist/components/{p-BwIyL1sF.js → p-r7qm8EsM.js} +11 -11
  200. package/dist/components/{p-BwIyL1sF.js.map → p-r7qm8EsM.js.map} +1 -1
  201. package/dist/components/{p-BGMd4wA7.js → p-uNT6jl98.js} +13 -13
  202. package/dist/components/{p-BGMd4wA7.js.map → p-uNT6jl98.js.map} +1 -1
  203. package/dist/components/{p-DB-CFkUZ.js → p-vZUBjvdn.js} +11 -11
  204. package/dist/components/{p-DB-CFkUZ.js.map → p-vZUBjvdn.js.map} +1 -1
  205. package/dist/components/{p-Blv4Px1q.js → p-xbfIS4ny.js} +4 -4
  206. package/dist/components/{p-Blv4Px1q.js.map → p-xbfIS4ny.js.map} +1 -1
  207. package/dist/components/{p-BQjKN6Ez.js → p-zOGAwuLP.js} +3 -3
  208. package/dist/components/{p-BQjKN6Ez.js.map → p-zOGAwuLP.js.map} +1 -1
  209. package/dist/components/verdocs-auth.js +3 -3
  210. package/dist/components/verdocs-build.js +41 -41
  211. package/dist/components/verdocs-button-panel.js +1 -1
  212. package/dist/components/verdocs-button.js +1 -1
  213. package/dist/components/verdocs-checkbox.js +1 -1
  214. package/dist/components/verdocs-component-error.js +1 -1
  215. package/dist/components/verdocs-contact-picker.js +1 -1
  216. package/dist/components/verdocs-date-input.js +3 -3
  217. package/dist/components/verdocs-delegate-dialog.d.ts +11 -0
  218. package/dist/components/verdocs-delegate-dialog.js +9 -0
  219. package/dist/components/verdocs-delegate-dialog.js.map +1 -0
  220. package/dist/components/verdocs-dialog.js +1 -1
  221. package/dist/components/verdocs-dropdown.js +1 -1
  222. package/dist/components/verdocs-envelope-document-page.js +1 -1
  223. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  224. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  225. package/dist/components/verdocs-envelope-sidebar.js +10 -10
  226. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  227. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  228. package/dist/components/verdocs-envelopes-list.js +16 -16
  229. package/dist/components/verdocs-field-attachment.js +1 -1
  230. package/dist/components/verdocs-field-checkbox.js +1 -1
  231. package/dist/components/verdocs-field-date.js +1 -1
  232. package/dist/components/verdocs-field-dropdown.js +1 -1
  233. package/dist/components/verdocs-field-initial.js +1 -1
  234. package/dist/components/verdocs-field-payment.js +9 -9
  235. package/dist/components/verdocs-field-radio.js +1 -1
  236. package/dist/components/verdocs-field-signature.js +1 -1
  237. package/dist/components/verdocs-field-textarea.js +1 -1
  238. package/dist/components/verdocs-field-textbox.js +1 -1
  239. package/dist/components/verdocs-field-timestamp.js +1 -1
  240. package/dist/components/verdocs-file-chooser.js +1 -1
  241. package/dist/components/verdocs-help-icon.js +1 -1
  242. package/dist/components/verdocs-initial-dialog.js +1 -1
  243. package/dist/components/verdocs-kba-dialog.js +1 -1
  244. package/dist/components/verdocs-loader.js +1 -1
  245. package/dist/components/verdocs-menu-panel.js +1 -1
  246. package/dist/components/verdocs-multiselect.js +2 -2
  247. package/dist/components/verdocs-ok-dialog.js +1 -1
  248. package/dist/components/verdocs-organization-card.js +2 -2
  249. package/dist/components/verdocs-otp-dialog.js +1 -1
  250. package/dist/components/verdocs-pagination.js +1 -1
  251. package/dist/components/verdocs-portal.js +1 -1
  252. package/dist/components/verdocs-preview.js +1 -1
  253. package/dist/components/verdocs-progress-bar.js +1 -1
  254. package/dist/components/verdocs-quick-filter.js +1 -1
  255. package/dist/components/verdocs-quick-functions.js +1 -1
  256. package/dist/components/verdocs-radio-button.js +1 -1
  257. package/dist/components/verdocs-search-box.js +1 -1
  258. package/dist/components/verdocs-search-tabs.js +1 -1
  259. package/dist/components/verdocs-select-input.js +1 -1
  260. package/dist/components/verdocs-send.js +1 -1
  261. package/dist/components/verdocs-sign.js +61 -19
  262. package/dist/components/verdocs-sign.js.map +1 -1
  263. package/dist/components/verdocs-signature-dialog.js +1 -1
  264. package/dist/components/verdocs-spinner.js +1 -1
  265. package/dist/components/verdocs-status-indicator.js +1 -1
  266. package/dist/components/verdocs-switch.js +1 -1
  267. package/dist/components/verdocs-table.js +2 -2
  268. package/dist/components/verdocs-tabs.js +1 -1
  269. package/dist/components/verdocs-template-attachments.js +1 -1
  270. package/dist/components/verdocs-template-build-tabs.js +1 -1
  271. package/dist/components/verdocs-template-card.js +1 -1
  272. package/dist/components/verdocs-template-create.js +4 -4
  273. package/dist/components/verdocs-template-document-page.js +1 -1
  274. package/dist/components/verdocs-template-field-properties.js +1 -1
  275. package/dist/components/verdocs-template-fields.js +1 -1
  276. package/dist/components/verdocs-template-role-properties.js +1 -1
  277. package/dist/components/verdocs-template-roles.js +1 -1
  278. package/dist/components/verdocs-template-settings.js +1 -1
  279. package/dist/components/verdocs-template-star.js +1 -1
  280. package/dist/components/verdocs-template-tags.js +1 -1
  281. package/dist/components/verdocs-templates-list.js +17 -17
  282. package/dist/components/verdocs-text-input.js +1 -1
  283. package/dist/components/verdocs-toggle-button.js +1 -1
  284. package/dist/components/verdocs-toggle.js +1 -1
  285. package/dist/components/verdocs-toolbar-icon.js +1 -1
  286. package/dist/components/verdocs-upload-dialog.js +1 -1
  287. package/dist/components/verdocs-view.js +1 -1
  288. package/dist/custom-elements.json +17 -0
  289. package/dist/esm/index-CF7i8guW.js +2 -2
  290. package/dist/esm/loader.js +1 -1
  291. package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
  292. package/dist/esm/verdocs-button_3.entry.js +6 -6
  293. package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
  294. package/dist/esm/verdocs-contact-picker.entry.js +5 -3
  295. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  296. package/dist/esm/verdocs-date-input.entry.js +2 -2
  297. package/dist/esm/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  298. package/dist/esm/{verdocs-kba-dialog_3.entry.js → verdocs-delegate-dialog_4.entry.js} +54 -6
  299. package/dist/esm/verdocs-delegate-dialog_4.entry.js.map +1 -0
  300. package/dist/esm/verdocs-dialog.entry.js +1 -1
  301. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  302. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  303. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  304. package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
  305. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  306. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  307. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  308. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  309. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  310. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  311. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  312. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  313. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  314. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  315. package/dist/esm/verdocs-search-box.entry.js +1 -1
  316. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  317. package/dist/esm/verdocs-sign.entry.js +38 -5
  318. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  319. package/dist/esm/verdocs-spinner.entry.js +1 -1
  320. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  321. package/dist/esm/verdocs-switch.entry.js +2 -2
  322. package/dist/esm/verdocs-table.entry.js +2 -2
  323. package/dist/esm/verdocs-template-card.entry.js +1 -1
  324. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  325. package/dist/esm/verdocs-template-star.entry.js +1 -1
  326. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  327. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  328. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  329. package/dist/esm/verdocs-toggle.entry.js +1 -1
  330. package/dist/esm/verdocs-web-sdk.js +1 -1
  331. package/dist/esm-es5/index-CF7i8guW.js +1 -1
  332. package/dist/esm-es5/loader.js +1 -1
  333. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  334. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  336. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  337. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  338. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  339. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  340. package/dist/esm-es5/verdocs-delegate-dialog_4.entry.js +2 -0
  341. package/dist/{esm/verdocs-kba-dialog_3.entry.js.map → esm-es5/verdocs-delegate-dialog_4.entry.js.map} +1 -1
  342. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  343. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
  347. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  361. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  365. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  373. package/dist/types/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.d.ts +38 -0
  374. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -0
  375. package/dist/types/components.d.ts +65 -0
  376. package/dist/verdocs-web-sdk/{p-f28a1014.entry.js → p-001f340b.entry.js} +2 -2
  377. package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js → p-034eb84e.entry.js} +2 -2
  378. package/dist/verdocs-web-sdk/{p-b720bffc.entry.js → p-0359f32e.entry.js} +2 -2
  379. package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js → p-127c5b10.entry.js} +2 -2
  380. package/dist/verdocs-web-sdk/{p-cb428e80.entry.js → p-1d72e3ab.entry.js} +2 -2
  381. package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js → p-204afc1e.system.entry.js} +2 -2
  382. package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js → p-2514da1e.system.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js → p-2a087f29.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-48299322.entry.js → p-327e38bf.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/p-33691e24.system.entry.js +2 -0
  386. package/dist/verdocs-web-sdk/p-33691e24.system.entry.js.map +1 -0
  387. package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js +2 -0
  388. package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js.map +1 -0
  389. package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js → p-352ab9b7.system.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-32d77c26.entry.js → p-356af98a.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js → p-3a0cc47f.system.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js → p-3ab1625e.system.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js → p-42939fbd.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-484341d0.entry.js → p-43971b64.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js → p-4a0dc414.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js → p-4c5bb9d1.system.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js → p-4d563225.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js → p-4e28a33a.system.entry.js} +2 -2
  399. package/dist/verdocs-web-sdk/{p-df954c57.entry.js → p-4e9d67fe.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js → p-596326ba.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/p-59723c89.entry.js +2 -0
  402. package/dist/verdocs-web-sdk/{p-1718b823.entry.js.map → p-59723c89.entry.js.map} +1 -1
  403. package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js → p-5f8f5f48.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js → p-6013eb3f.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-76215a73.entry.js → p-655c3035.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-aa18533b.entry.js → p-672b6b7b.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js → p-6845c12e.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-fb00149a.entry.js → p-68b11f68.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js → p-6a5c1de9.system.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/p-6f6a0c7a.system.entry.js +2 -0
  411. package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js → p-72c996d0.system.entry.js} +2 -2
  412. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js → p-72e9198d.system.entry.js} +2 -2
  413. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js.map → p-72e9198d.system.entry.js.map} +1 -1
  414. package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js → p-767c93e8.system.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js → p-76a86430.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-9f4c393c.system.entry.js → p-76aed8e2.system.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/p-76aed8e2.system.entry.js.map +1 -0
  418. package/dist/verdocs-web-sdk/{p-49522ebb.entry.js → p-784daaf3.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js → p-7f085b76.system.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-832e4346.entry.js → p-80f0dfbc.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/p-80f0dfbc.entry.js.map +1 -0
  422. package/dist/verdocs-web-sdk/{p-e8713631.entry.js → p-86e18c44.entry.js} +3 -3
  423. package/dist/verdocs-web-sdk/{p-e8713631.entry.js.map → p-86e18c44.entry.js.map} +1 -1
  424. package/dist/verdocs-web-sdk/{p-43326217.entry.js → p-8be6c2b0.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-71793bb2.entry.js → p-92d45701.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js → p-931bf9ec.system.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js → p-963208c6.system.entry.js} +2 -2
  428. package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js → p-99f4f945.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +1 -0
  430. package/dist/verdocs-web-sdk/{p-BQeD2Uzl.system.js.map → p-B8hJTIPP.system.js.map} +1 -1
  431. package/dist/verdocs-web-sdk/{p-CgaVlmPG.system.js.map → p-BDGgiBJR.system.js.map} +1 -1
  432. package/dist/verdocs-web-sdk/{p-Dt57R1T4.system.js.map → p-BK8oE7he.system.js.map} +1 -1
  433. package/dist/verdocs-web-sdk/{p-CzcrfRov.system.js.map → p-BOuTTVR2.system.js.map} +1 -1
  434. package/dist/verdocs-web-sdk/{p-Bf4B0vsS.system.js.map → p-BPt7ZeYN.system.js.map} +1 -1
  435. package/dist/verdocs-web-sdk/p-BQneONkc.system.js.map +1 -0
  436. package/dist/verdocs-web-sdk/{p-DR2NwM3E.system.js.map → p-B_BNAU2R.system.js.map} +1 -1
  437. package/dist/verdocs-web-sdk/{p-Bv035E2W.system.js.map → p-Bbn-DzjB.system.js.map} +1 -1
  438. package/dist/verdocs-web-sdk/p-BfaNlwpr.system.js.map +1 -0
  439. package/dist/verdocs-web-sdk/{p-BH-YVoIR.system.js.map → p-BtN2tR0_.system.js.map} +1 -1
  440. package/dist/verdocs-web-sdk/{p-DnhrroGp.system.js.map → p-C28cwiJN.system.js.map} +1 -1
  441. package/dist/verdocs-web-sdk/{p-Dt0S5N8D.system.js.map → p-C3pXyYu2.system.js.map} +1 -1
  442. package/dist/verdocs-web-sdk/{p-BqV2sLyM.system.js.map → p-C4wFtWGl.system.js.map} +1 -1
  443. package/dist/verdocs-web-sdk/{p-B9makh4c.system.js.map → p-CB78zeGU.system.js.map} +1 -1
  444. package/dist/verdocs-web-sdk/{p-BEa6VFpF.system.js.map → p-CD2Fdeq7.system.js.map} +1 -1
  445. package/dist/verdocs-web-sdk/{p-fih-g25U.system.js.map → p-CHZu9FwY.system.js.map} +1 -1
  446. package/dist/verdocs-web-sdk/{p-DAWcoDTu.system.js.map → p-CflLDny-.system.js.map} +1 -1
  447. package/dist/verdocs-web-sdk/{p-DqMEkp6a.system.js.map → p-CqnaEr0M.system.js.map} +1 -1
  448. package/dist/verdocs-web-sdk/{p-DwPw01KR.system.js.map → p-Ctlx9aRK.system.js.map} +1 -1
  449. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  450. package/dist/verdocs-web-sdk/{p-DtqpEcJn.system.js.map → p-CxebBOfo.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/{p-CMjFvlqO.system.js.map → p-CyniDtbb.system.js.map} +1 -1
  452. package/dist/verdocs-web-sdk/{p-BXdHDPn2.system.js.map → p-D2By4ZeB.system.js.map} +1 -1
  453. package/dist/verdocs-web-sdk/{p-DFOpAjqC.system.js.map → p-DdgLD7ev.system.js.map} +1 -1
  454. package/dist/verdocs-web-sdk/{p--x2D_CxE.system.js.map → p-Dmi3C21y.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/{p-CJHhU-q9.system.js.map → p-DpJ6fOKq.system.js.map} +1 -1
  456. package/dist/verdocs-web-sdk/{p-CqlWk1GQ.system.js.map → p-Ds5wL-Co.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/{p-DHGQrIAb.system.js.map → p-DsSM-GM5.system.js.map} +1 -1
  458. package/dist/verdocs-web-sdk/{p-D3kzqvo2.system.js.map → p-L5sYoH8b.system.js.map} +1 -1
  459. package/dist/verdocs-web-sdk/{p-CNuYIT4Z.system.js.map → p-LIkyGpz6.system.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-C6DpDki6.system.js.map → p-U0rW0Gqv.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-07a175f6.entry.js → p-a1e4b631.entry.js} +2 -2
  462. package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js → p-a279bb92.system.entry.js} +2 -2
  463. package/dist/verdocs-web-sdk/p-a734eed0.entry.js +2 -0
  464. package/dist/verdocs-web-sdk/{p-0613e287.entry.js → p-b980a35c.entry.js} +2 -2
  465. package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js → p-be6db7c0.system.entry.js} +2 -2
  466. package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js → p-bee95303.system.entry.js} +2 -2
  467. package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js → p-c48624a8.system.entry.js} +2 -2
  468. package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js → p-c5b23884.system.entry.js} +2 -2
  469. package/dist/verdocs-web-sdk/{p-BsWaGIkx.system.js.map → p-cI4bagwT.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/{p-720ceced.entry.js → p-cc823255.entry.js} +2 -2
  471. package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js → p-cd56307c.entry.js} +2 -2
  472. package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js → p-cd60348a.system.entry.js} +2 -2
  473. package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js → p-ce2336aa.system.entry.js} +2 -2
  474. package/dist/verdocs-web-sdk/{p-a3354a48.entry.js → p-d1e99a40.entry.js} +2 -2
  475. package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js → p-d2a4aedb.system.entry.js} +2 -2
  476. package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js → p-dbb8413d.system.entry.js} +2 -2
  477. package/dist/verdocs-web-sdk/p-e3414fba.entry.js +2 -0
  478. package/dist/verdocs-web-sdk/p-e3414fba.entry.js.map +1 -0
  479. package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js → p-e8c146fc.system.entry.js} +2 -2
  480. package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js → p-ed194be6.system.entry.js} +2 -2
  481. package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js +2 -0
  482. package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js.map +1 -0
  483. package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js → p-efc459f7.system.entry.js} +2 -2
  484. package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js → p-fb9bc98b.entry.js} +2 -2
  485. package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js → p-fe22a117.system.entry.js} +2 -2
  486. package/dist/verdocs-web-sdk/{p-C99h0Uet.system.js.map → p-jcVDqxOd.system.js.map} +1 -1
  487. package/dist/verdocs-web-sdk/{p-CtQG0G-c.system.js.map → p-luuB7PWr.system.js.map} +1 -1
  488. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  489. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -0
  490. package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
  491. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  492. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  493. package/package.json +3 -3
  494. package/dist/cjs/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
  495. package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js.map +0 -1
  496. package/dist/components/p-B3jMBr0M.js.map +0 -1
  497. package/dist/esm/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  498. package/dist/esm-es5/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  499. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +0 -2
  500. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js.map +0 -1
  501. package/dist/verdocs-web-sdk/p-1718b823.entry.js +0 -2
  502. package/dist/verdocs-web-sdk/p-1ad8c20c.entry.js +0 -2
  503. package/dist/verdocs-web-sdk/p-33edf6a4.system.entry.js +0 -2
  504. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js +0 -2
  505. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js.map +0 -1
  506. package/dist/verdocs-web-sdk/p-832e4346.entry.js.map +0 -1
  507. package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js.map +0 -1
  508. package/dist/verdocs-web-sdk/p-C2JOLTNG.system.js.map +0 -1
  509. package/dist/verdocs-web-sdk/p-CC3tLap5.system.js.map +0 -1
  510. package/dist/verdocs-web-sdk/p-DM4F2Fmu.system.js.map +0 -1
  511. package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js +0 -2
  512. package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js.map +0 -1
  513. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js +0 -2
  514. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js.map +0 -1
  515. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js +0 -2
  516. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js.map +0 -1
  517. package/dist/verdocs-web-sdk/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
  518. /package/dist/verdocs-web-sdk/{p-f28a1014.entry.js.map → p-001f340b.entry.js.map} +0 -0
  519. /package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js.map → p-034eb84e.entry.js.map} +0 -0
  520. /package/dist/verdocs-web-sdk/{p-b720bffc.entry.js.map → p-0359f32e.entry.js.map} +0 -0
  521. /package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js.map → p-127c5b10.entry.js.map} +0 -0
  522. /package/dist/verdocs-web-sdk/{p-cb428e80.entry.js.map → p-1d72e3ab.entry.js.map} +0 -0
  523. /package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js.map → p-204afc1e.system.entry.js.map} +0 -0
  524. /package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js.map → p-2514da1e.system.entry.js.map} +0 -0
  525. /package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js.map → p-2a087f29.entry.js.map} +0 -0
  526. /package/dist/verdocs-web-sdk/{p-48299322.entry.js.map → p-327e38bf.entry.js.map} +0 -0
  527. /package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js.map → p-352ab9b7.system.entry.js.map} +0 -0
  528. /package/dist/verdocs-web-sdk/{p-32d77c26.entry.js.map → p-356af98a.entry.js.map} +0 -0
  529. /package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js.map → p-3a0cc47f.system.entry.js.map} +0 -0
  530. /package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js.map → p-3ab1625e.system.entry.js.map} +0 -0
  531. /package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js.map → p-42939fbd.entry.js.map} +0 -0
  532. /package/dist/verdocs-web-sdk/{p-484341d0.entry.js.map → p-43971b64.entry.js.map} +0 -0
  533. /package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js.map → p-4a0dc414.entry.js.map} +0 -0
  534. /package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js.map → p-4c5bb9d1.system.entry.js.map} +0 -0
  535. /package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js.map → p-4d563225.entry.js.map} +0 -0
  536. /package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js.map → p-4e28a33a.system.entry.js.map} +0 -0
  537. /package/dist/verdocs-web-sdk/{p-df954c57.entry.js.map → p-4e9d67fe.entry.js.map} +0 -0
  538. /package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js.map → p-596326ba.system.entry.js.map} +0 -0
  539. /package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js.map → p-5f8f5f48.entry.js.map} +0 -0
  540. /package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js.map → p-6013eb3f.entry.js.map} +0 -0
  541. /package/dist/verdocs-web-sdk/{p-76215a73.entry.js.map → p-655c3035.entry.js.map} +0 -0
  542. /package/dist/verdocs-web-sdk/{p-aa18533b.entry.js.map → p-672b6b7b.entry.js.map} +0 -0
  543. /package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js.map → p-6845c12e.system.entry.js.map} +0 -0
  544. /package/dist/verdocs-web-sdk/{p-fb00149a.entry.js.map → p-68b11f68.entry.js.map} +0 -0
  545. /package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js.map → p-6a5c1de9.system.entry.js.map} +0 -0
  546. /package/dist/verdocs-web-sdk/{p-33edf6a4.system.entry.js.map → p-6f6a0c7a.system.entry.js.map} +0 -0
  547. /package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js.map → p-72c996d0.system.entry.js.map} +0 -0
  548. /package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js.map → p-767c93e8.system.entry.js.map} +0 -0
  549. /package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js.map → p-76a86430.system.entry.js.map} +0 -0
  550. /package/dist/verdocs-web-sdk/{p-49522ebb.entry.js.map → p-784daaf3.entry.js.map} +0 -0
  551. /package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js.map → p-7f085b76.system.entry.js.map} +0 -0
  552. /package/dist/verdocs-web-sdk/{p-43326217.entry.js.map → p-8be6c2b0.entry.js.map} +0 -0
  553. /package/dist/verdocs-web-sdk/{p-71793bb2.entry.js.map → p-92d45701.entry.js.map} +0 -0
  554. /package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js.map → p-931bf9ec.system.entry.js.map} +0 -0
  555. /package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js.map → p-963208c6.system.entry.js.map} +0 -0
  556. /package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js.map → p-99f4f945.entry.js.map} +0 -0
  557. /package/dist/verdocs-web-sdk/{p-07a175f6.entry.js.map → p-a1e4b631.entry.js.map} +0 -0
  558. /package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js.map → p-a279bb92.system.entry.js.map} +0 -0
  559. /package/dist/verdocs-web-sdk/{p-1ad8c20c.entry.js.map → p-a734eed0.entry.js.map} +0 -0
  560. /package/dist/verdocs-web-sdk/{p-0613e287.entry.js.map → p-b980a35c.entry.js.map} +0 -0
  561. /package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js.map → p-be6db7c0.system.entry.js.map} +0 -0
  562. /package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js.map → p-bee95303.system.entry.js.map} +0 -0
  563. /package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js.map → p-c48624a8.system.entry.js.map} +0 -0
  564. /package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js.map → p-c5b23884.system.entry.js.map} +0 -0
  565. /package/dist/verdocs-web-sdk/{p-720ceced.entry.js.map → p-cc823255.entry.js.map} +0 -0
  566. /package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js.map → p-cd56307c.entry.js.map} +0 -0
  567. /package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js.map → p-cd60348a.system.entry.js.map} +0 -0
  568. /package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js.map → p-ce2336aa.system.entry.js.map} +0 -0
  569. /package/dist/verdocs-web-sdk/{p-a3354a48.entry.js.map → p-d1e99a40.entry.js.map} +0 -0
  570. /package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js.map → p-d2a4aedb.system.entry.js.map} +0 -0
  571. /package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js.map → p-dbb8413d.system.entry.js.map} +0 -0
  572. /package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js.map → p-e8c146fc.system.entry.js.map} +0 -0
  573. /package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js.map → p-ed194be6.system.entry.js.map} +0 -0
  574. /package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js.map → p-efc459f7.system.entry.js.map} +0 -0
  575. /package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js.map → p-fb9bc98b.entry.js.map} +0 -0
  576. /package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js.map → p-fe22a117.system.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(o){"use strict";var r,e,n,d,t,i;return{setters:[function(o){r=o.r;e=o.c;n=o.h;d=o.H;t=o.g},function(o){i=o.randomString}],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-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var a='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var c=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=e(this,"optionSelected");this.options=[];this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.showPicker=false}o.prototype.handleSelectOption=function(o,r){var e;o.stopPropagation();(e=this.optionSelected)===null||e===void 0?void 0:e.emit(r);this.showPicker=false};o.prototype.toggle=function(){this.showPicker=!this.showPicker};o.prototype.render=function(){var o=this;var r="verdocs-dropdown-".concat(i(8));return n(d,{key:"26e5cc46644eb41b1ffed2184326e9eaaa9668b1"},n("button",{key:"c1dcb9329ce082aa21fd8b884d2f39df3d0b85dc",class:"arrow",innerHTML:a,"aria-label":"Open Menu",id:r,onClick:function(){return o.showPicker=!o.showPicker}}),this.showPicker&&n("verdocs-portal",{key:"2096de37955819556d84c0dbefaf76f9ea5b925b",anchor:r,onClickAway:function(){return o.showPicker=false},id:"verdocs-dropdown-menu-items"},this.options.map((function(r){if(!r.label){return n("div",{class:"verdocs-dropdown-menu-separator"})}else{return n("button",{class:"verdocs-dropdown-menu-option",disabled:r.disabled||false,onClick:function(e){return o.handleSelectOption(e,r)}},r.label)}}))))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());c.style=s}}}));
2
- //# sourceMappingURL=p-e579e74c.system.entry.js.map
1
+ System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(o){"use strict";var r,e,n,d,t,a;return{setters:[function(o){r=o.r;e=o.c;n=o.h;d=o.H;t=o.g},function(o){a=o.randomString}],execute:function(){var 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-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var c=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=e(this,"optionSelected");this.options=[];this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.showPicker=false}o.prototype.handleSelectOption=function(o,r){var e;o.stopPropagation();(e=this.optionSelected)===null||e===void 0?void 0:e.emit(r);this.showPicker=false};o.prototype.toggle=function(){this.showPicker=!this.showPicker};o.prototype.render=function(){var o=this;var r="verdocs-dropdown-".concat(a(8));return n(d,{key:"466a4c33a9d8867a5740fd05b49dfba52ae07334"},n("button",{key:"7e0493bac43d60b5116c604a0012951e69380eb6",class:"arrow",innerHTML:s,"aria-label":"Open Menu",id:r,onClick:function(){return o.showPicker=!o.showPicker}}),this.showPicker&&n("verdocs-portal",{key:"8fcdfbf97c8f3a859dfa523eed4660195f246124",anchor:r,onClickAway:function(){return o.showPicker=false},id:"verdocs-dropdown-menu-items"},this.options.map((function(r){if(!r.label){return n("div",{class:"verdocs-dropdown-menu-separator"})}else{return n("button",{class:"verdocs-dropdown-menu-option",disabled:r.disabled||false,onClick:function(e){return o.handleSelectOption(e,r)}},r.label)}}))))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());c.style=i}}}));
2
+ //# sourceMappingURL=p-767c93e8.system.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):r(e.value).then(s,a)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(o=1,r&&(n=a[0]&2?r["return"]:a[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;if(r=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(a[0]===6&&i.label<n[1]){i.label=n[1];n=a;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(a);break}if(n[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var t,i,o,r,n,s,a,l,c,d,f;return{setters:[function(e){t=e.r;i=e.c;o=e.h;r=e.H},function(e){n=e.VerdocsEndpoint;s=e.getTemplate;a=e.updateTemplateRole;l=e.deleteTemplateRole;c=e.isValidEmail},function(e){d=e.S},function(e){f=e.S}],execute:function(){var u='@-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-menu-panel-overlay{top:0;left:0;width:100%;height:100%;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.4980392157)}#verdocs-menu-panel{opacity:0;z-index:10001;position:fixed;overflow-y:scroll;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-animation:showVerdocsMenuPanel 0.35s;-webkit-animation-fill-mode:forwards}@-webkit-keyframes showVerdocsMenuPanel{0%{opacity:0;right:-300px}100%{right:0;opacity:1}}';var p=e("verdocs_menu_panel",function(){function e(e){t(this,e);this.close=i(this,"close");this.moved=false;this.overlayId="verdocs-menu-panel-overlay";this.panelId="verdocs-menu-panel";this.side="right";this.overlay=true;this.width=300}e.prototype.handleClick=function(e){var t;if(!this.element.contains(e.target)){this.hide();(t=this.close)===null||t===void 0?void 0:t.emit()}};e.prototype.componentWillLoad=function(){this.hide();if(this.overlay){this.portal=document.createElement("div");this.portal.setAttribute("id",this.overlayId);document.body.append(this.portal)}this.portal=document.createElement("div");this.portal.setAttribute("id",this.panelId);this.portal.style.top="0px";this.portal.style.bottom="0px";this.portal.style.width="".concat(this.width,"px");if(this.side==="left"){this.portal.style.left="0px"}else{this.portal.style.right="0px"}document.body.append(this.portal)};e.prototype.componentDidLoad=function(){this.portal.appendChild(this.element)};e.prototype.disconnectedCallback=function(){this.moved?this.portal.remove():this.moved=true};e.prototype.hide=function(){var e,t;(e=document.getElementById(this.overlayId))===null||e===void 0?void 0:e.remove();(t=document.getElementById(this.panelId))===null||t===void 0?void 0:t.remove()};e.prototype.render=function(){var e=this;return o(r,{key:"620b2d96ba41fcd87803da3c3d36436f17da02fd",ref:function(t){return e.element=t}},o("slot",{key:"85ac66ee22cf9a5717f4fe5de2644c96c14afd65"}))};return e}());p.style=u;var h='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form{gap:15px;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-role-properties form .instructions{margin:7px 0 0 0;font-size:12px;font-style:italic}verdocs-template-role-properties form .input-label{display:block;font-size:14px;-ms-flex:0 0 100px;flex:0 0 100px;font-weight:700;margin:0 0 4px 0;color:#555570}verdocs-template-role-properties form .first-last{gap:15px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form verdocs-help-icon{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-role-properties verdocs-select-input label{display:block}verdocs-template-role-properties verdocs-text-input{margin:0}verdocs-template-role-properties verdocs-text-input label{display:block}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var b=e("verdocs_template_role_properties",function(){function e(e){t(this,e);this.close=i(this,"close");this.delete=i(this,"delete");this.sdkError=i(this,"sdkError");this.templateListenerId=null;this.endpoint=n.getDefault();this.templateId="";this.roleName="";this.dirty=false;this.saving=false;this.name="";this.type="signer";this.first_name="";this.last_name="";this.email="";this.phone="";this.delegator=false;this.loading=true;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(o){try{this.endpoint.loadSession();if(!this.templateId){console.log("[ROLES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return[2]}this.listenToTemplate()}catch(o){console.log("[ROLES Error with preview session",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new d(o.message,(t=o.response)===null||t===void 0?void 0:t.status,(i=o.response)===null||i===void 0?void 0:i.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToTemplate()};e.prototype.listenToTemplate=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){console.log("[ROLES] Loading tempate",this.templateId);this.unlistenToTemplate();f.subscribe("templates",this.templateId,(function(){return s(e.endpoint,e.templateId)}),false,(function(t){var i;console.log("[BUILD] Template Updated",t);e.template=t;e.loading=false;var o=(i=e.template)===null||i===void 0?void 0:i.roles.find((function(t){return t.name===e.roleName}));if(o){e.name=o.name;e.type=o.type;e.first_name=o.first_name;e.last_name=o.last_name;e.email=o.email;e.phone=o.phone;e.delegator=o.delegator;console.log("[ROLES] Editing role",o)}}));return[2]}))}))};e.prototype.unlistenToTemplate=function(){if(this.templateListenerId){f.store.delListener(this.templateListenerId);this.templateListenerId=null}};e.prototype.handleCancel=function(e){var t=this;var i,o;e.stopPropagation();var r=(i=this.template)===null||i===void 0?void 0:i.roles.find((function(e){return e.name===t.roleName}));if(r){this.name=r.name;this.type=r.type;this.first_name=r.first_name;this.last_name=r.last_name;this.email=r.email;this.phone=r.phone;this.delegator=r.delegator}this.dirty=false;(o=this.close)===null||o===void 0?void 0:o.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){e.stopPropagation();this.saving=true;a(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((function(e){return __awaiter(t,void 0,void 0,(function(){var t,i,o;var r=this;return __generator(this,(function(n){console.log("[ROLES] Update result",e);this.saving=false;this.dirty=false;i=JSON.parse(JSON.stringify(this.template));o=i.roles.findIndex((function(e){return e.name===r.roleName}));if(o>-1){i.roles[o]=e}f.updateTemplate(this.templateId,i);(t=this.close)===null||t===void 0?void 0:t.emit();return[2]}))}))})).catch((function(e){console.log("[ROLES Update error",e);t.saving=false}));return[2]}))}))};e.prototype.handleDelete=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){e.stopPropagation();if(window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")){l(this.endpoint,this.templateId,this.roleName).then((function(){var e,i;var o=JSON.parse(JSON.stringify(t.template));o.roles=o.roles.filter((function(e){return e.name!==t.roleName}));f.getTemplate(t.endpoint,t.templateId,true);(e=t.delete)===null||e===void 0?void 0:e.emit({templateId:t.templateId,roleName:t.roleName});(i=t.close)===null||i===void 0?void 0:i.emit()})).catch((function(e){console.log("[ROLES Deletion error",e)}))}return[2]}))}))};e.prototype.render=function(){var e=this;var t;var i=(((t=this.template)===null||t===void 0?void 0:t.fields)||[]).some((function(t){return t.role_name===e.roleName}));var n=!this.email&&!this.first_name&&!this.last_name||c(this.email)&&!!this.first_name&&!!this.last_name;return o(r,{key:"0cb90773a405b842fd65dc842bd222393327bfda"},o("form",{key:"5a2f59d5e9453a8e0a28e281a5e8e00e4ff48734",onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("div",{key:"28e488540cbc43fd60f18d7afe22fdd83baa01d6"},o("verdocs-text-input",{key:"a81752032a51aafc103a3c81f359700279800fcc",id:"verdocs-role-name",label:"Role Name (Must be unique)",value:this.name,autocomplete:"off",disabled:i,placeholder:"Role Name...",onInput:function(t){e.name=t.target.value;e.dirty=true}}),i&&o("div",{key:"b45732e234d85c3f0f8237dc4935fc7dd3a1be8f",class:"instructions"},"This role has fields assigned and can no longer be renamed.")),o("div",{key:"0b35b31d334f8bec6e76159c34560e8c3655f449"},o("div",{key:"331e86e0dfe93b4ac521cce08e6201c824f58964",class:"input-label"},"Type:"),o("verdocs-select-input",{key:"745cd90f3a39ab8cd34bfd391fb534206e640944",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:function(t){e.type=t.target.value;e.dirty=true}})),o("div",{key:"d426d87dd0b1ad7f19e82022e3f8a240a3fc6b48"},o("div",{key:"139647d5ba8f447df5fe8cb727cea2f8c3c4a4ee",class:"input-label"},"Default Contact Info:"),o("div",{key:"58b6407105e6d41247f8efb7b539b3d6100f3ece",class:"first-last"},o("verdocs-text-input",{key:"6bd0d6052ded34db7584231cc6bc5c6bc21e75d4",id:"verdocs-recipient-first",value:this.first_name,autocomplete:"off",placeholder:"First...",onInput:function(t){e.first_name=t.target.value;e.dirty=true}}),o("verdocs-text-input",{key:"135f6024ea458d5b5161919584ebb8bf691c5fe8",id:"verdocs-recipient-first",value:this.last_name,autocomplete:"off",placeholder:"Last...",onInput:function(t){e.last_name=t.target.value;e.dirty=true}}))),o("div",{key:"137098702e8fefd55f80561bf3fa1366fe7a9306"},o("verdocs-text-input",{key:"b3288c2bdda90ec63948821f6e5d9bed0555aea6",id:"verdocs-recipient-email",value:this.email,autocomplete:"off",placeholder:"Email Address...",onInput:function(t){e.email=t.target.value;e.dirty=true}}),o("div",{key:"892f12c9429c2e2166493563054cd230a7b7f273",style:{height:"15px"}}),o("div",{key:"b26750310aa44563ecb53e585fbd02a3329476ff"},o("verdocs-text-input",{key:"c5ed1eb446c83b8a738f483da47ee405eb3c46d3",id:"verdocs-recipient-phone",value:this.phone,autocomplete:"off",placeholder:"Phone Number...",onInput:function(t){e.phone=t.target.value;e.dirty=true}}))),o("div",{key:"2d588cd5467e22b2ca646d2db6ee1129d4425e36",class:"buttons"},o("button",{key:"d56630b85383cef24d346e126a72edf714b12e11",class:"delete-button",disabled:this.dirty,onClick:function(t){return e.handleDelete(t)},innerHTML:v}),o("div",{key:"56af532ac7e3f216473ac76c94a8df9fed90ec0d",style:{flex:"1"}}),o("verdocs-button",{key:"21fae0b17777c6d51ffa671bb90a240ea4c38afd",size:"small",label:"Save",disabled:!this.dirty||!n,onClick:function(t){return e.handleSave(t)}}))))};return e}());b.style=h}}}));
2
- //# sourceMappingURL=p-65a5d2d4.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{l(o.next(e))}catch(e){n(e)}}function a(e){try{l(o["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):r(e.value).then(s,a)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(o=1,r&&(n=a[0]&2?r["return"]:a[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;if(r=0,n)a=[a[0]&2,n.value];switch(a[0]){case 0:case 1:n=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){i.label=a[1];break}if(a[0]===6&&i.label<n[1]){i.label=n[1];n=a;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(a);break}if(n[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var t,i,o,r,n,s,a,l,c,d,f;return{setters:[function(e){t=e.r;i=e.c;o=e.h;r=e.H},function(e){n=e.VerdocsEndpoint;s=e.getTemplate;a=e.updateTemplateRole;l=e.deleteTemplateRole;c=e.isValidEmail},function(e){d=e.S},function(e){f=e.S}],execute:function(){var u='@-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-menu-panel-overlay{top:0;left:0;width:100%;height:100%;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.4980392157)}#verdocs-menu-panel{opacity:0;z-index:10001;position:fixed;overflow-y:scroll;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-animation:showVerdocsMenuPanel 0.35s;-webkit-animation-fill-mode:forwards}@-webkit-keyframes showVerdocsMenuPanel{0%{opacity:0;right:-300px}100%{right:0;opacity:1}}';var p=e("verdocs_menu_panel",function(){function e(e){t(this,e);this.close=i(this,"close");this.moved=false;this.overlayId="verdocs-menu-panel-overlay";this.panelId="verdocs-menu-panel";this.side="right";this.overlay=true;this.width=300}e.prototype.handleClick=function(e){var t;if(!this.element.contains(e.target)){this.hide();(t=this.close)===null||t===void 0?void 0:t.emit()}};e.prototype.componentWillLoad=function(){this.hide();if(this.overlay){this.portal=document.createElement("div");this.portal.setAttribute("id",this.overlayId);document.body.append(this.portal)}this.portal=document.createElement("div");this.portal.setAttribute("id",this.panelId);this.portal.style.top="0px";this.portal.style.bottom="0px";this.portal.style.width="".concat(this.width,"px");if(this.side==="left"){this.portal.style.left="0px"}else{this.portal.style.right="0px"}document.body.append(this.portal)};e.prototype.componentDidLoad=function(){this.portal.appendChild(this.element)};e.prototype.disconnectedCallback=function(){this.moved?this.portal.remove():this.moved=true};e.prototype.hide=function(){var e,t;(e=document.getElementById(this.overlayId))===null||e===void 0?void 0:e.remove();(t=document.getElementById(this.panelId))===null||t===void 0?void 0:t.remove()};e.prototype.render=function(){var e=this;return o(r,{key:"433d003e79f33ac91e6535b34a7857520eba52a9",ref:function(t){return e.element=t}},o("slot",{key:"349bf90ff34df330916d1aad0a40c79cce1c32bc"}))};return e}());p.style=u;var h='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form{gap:15px;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-role-properties form .instructions{margin:7px 0 0 0;font-size:12px;font-style:italic}verdocs-template-role-properties form .input-label{display:block;font-size:14px;-ms-flex:0 0 100px;flex:0 0 100px;font-weight:700;margin:0 0 4px 0;color:#555570}verdocs-template-role-properties form .first-last{gap:15px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form verdocs-help-icon{-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-role-properties verdocs-select-input label{display:block}verdocs-template-role-properties verdocs-text-input{margin:0}verdocs-template-role-properties verdocs-text-input label{display:block}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';var b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var v=e("verdocs_template_role_properties",function(){function e(e){t(this,e);this.close=i(this,"close");this.delete=i(this,"delete");this.sdkError=i(this,"sdkError");this.templateListenerId=null;this.endpoint=n.getDefault();this.templateId="";this.roleName="";this.dirty=false;this.saving=false;this.name="";this.type="signer";this.first_name="";this.last_name="";this.email="";this.phone="";this.delegator=false;this.loading=true;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i;return __generator(this,(function(o){try{this.endpoint.loadSession();if(!this.templateId){console.log("[ROLES] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[ROLES] Unable to start builder session, must be authenticated");return[2]}this.listenToTemplate()}catch(o){console.log("[ROLES Error with preview session",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new d(o.message,(t=o.response)===null||t===void 0?void 0:t.status,(i=o.response)===null||i===void 0?void 0:i.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToTemplate()};e.prototype.listenToTemplate=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){console.log("[ROLES] Loading tempate",this.templateId);this.unlistenToTemplate();f.subscribe("templates",this.templateId,(function(){return s(e.endpoint,e.templateId)}),false,(function(t){var i;console.log("[BUILD] Template Updated",t);e.template=t;e.loading=false;var o=(i=e.template)===null||i===void 0?void 0:i.roles.find((function(t){return t.name===e.roleName}));if(o){e.name=o.name;e.type=o.type;e.first_name=o.first_name;e.last_name=o.last_name;e.email=o.email;e.phone=o.phone;e.delegator=o.delegator;console.log("[ROLES] Editing role",o)}}));return[2]}))}))};e.prototype.unlistenToTemplate=function(){if(this.templateListenerId){f.store.delListener(this.templateListenerId);this.templateListenerId=null}};e.prototype.handleCancel=function(e){var t=this;var i,o;e.stopPropagation();var r=(i=this.template)===null||i===void 0?void 0:i.roles.find((function(e){return e.name===t.roleName}));if(r){this.name=r.name;this.type=r.type;this.first_name=r.first_name;this.last_name=r.last_name;this.email=r.email;this.phone=r.phone;this.delegator=r.delegator}this.dirty=false;(o=this.close)===null||o===void 0?void 0:o.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){e.stopPropagation();this.saving=true;a(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((function(e){return __awaiter(t,void 0,void 0,(function(){var t,i,o;var r=this;return __generator(this,(function(n){console.log("[ROLES] Update result",e);this.saving=false;this.dirty=false;i=JSON.parse(JSON.stringify(this.template));o=i.roles.findIndex((function(e){return e.name===r.roleName}));if(o>-1){i.roles[o]=e}f.updateTemplate(this.templateId,i);(t=this.close)===null||t===void 0?void 0:t.emit();return[2]}))}))})).catch((function(e){console.log("[ROLES Update error",e);t.saving=false}));return[2]}))}))};e.prototype.handleDelete=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){e.stopPropagation();if(window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")){l(this.endpoint,this.templateId,this.roleName).then((function(){var e,i;var o=JSON.parse(JSON.stringify(t.template));o.roles=o.roles.filter((function(e){return e.name!==t.roleName}));f.getTemplate(t.endpoint,t.templateId,true);(e=t.delete)===null||e===void 0?void 0:e.emit({templateId:t.templateId,roleName:t.roleName});(i=t.close)===null||i===void 0?void 0:i.emit()})).catch((function(e){console.log("[ROLES Deletion error",e)}))}return[2]}))}))};e.prototype.render=function(){var e=this;var t;var i=(((t=this.template)===null||t===void 0?void 0:t.fields)||[]).some((function(t){return t.role_name===e.roleName}));var n=!this.email&&!this.first_name&&!this.last_name||c(this.email)&&!!this.first_name&&!!this.last_name;return o(r,{key:"69774e9a8bc30870080aa30482ece13677534252"},o("form",{key:"33d9f4b82d56200d6df9215303e738cab7bd6c46",onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("div",{key:"b91e6faf60e432dffdee7a7cdfc39ebe1b063f17"},o("verdocs-text-input",{key:"cc7c668adbc67fdf6147c6fc585c9be569d93656",id:"verdocs-role-name",label:"Role Name (Must be unique)",value:this.name,autocomplete:"off",disabled:i,placeholder:"Role Name...",onInput:function(t){e.name=t.target.value;e.dirty=true}}),i&&o("div",{key:"8dc436a87bbc5e712253acbaa60a6a6995192866",class:"instructions"},"This role has fields assigned and can no longer be renamed.")),o("div",{key:"9005606e0e55019547f7b34f2eb6fac4ef2cf781"},o("div",{key:"e7fc270d2743317575dd4c89eee1385f651de7cb",class:"input-label"},"Type:"),o("verdocs-select-input",{key:"9df55b8637c47f1db044cc05627e39300bca6903",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:function(t){e.type=t.target.value;e.dirty=true}})),o("div",{key:"e25604392d34cbf77b94dda6de6384cb7272a4dc"},o("div",{key:"5926b2734d605bdad544d7de04cb32205d3f8a17",class:"input-label"},"Default Contact Info:"),o("div",{key:"b1e3070f2dd4c7b1cb76ed2d17eb5d6c289bb6b0",class:"first-last"},o("verdocs-text-input",{key:"fb9e886ba1d468a8543326d649b494e1f371105f",id:"verdocs-recipient-first",value:this.first_name,autocomplete:"off",placeholder:"First...",onInput:function(t){e.first_name=t.target.value;e.dirty=true}}),o("verdocs-text-input",{key:"8b9228271f0c206269bf7dfd560a0f77dcf7f9d2",id:"verdocs-recipient-first",value:this.last_name,autocomplete:"off",placeholder:"Last...",onInput:function(t){e.last_name=t.target.value;e.dirty=true}}))),o("div",{key:"92db075222714d0ef2e63f43bd6aeac6dda135b4"},o("verdocs-text-input",{key:"b614b9a4f57018105f95b6d4be371ae2ab43d034",id:"verdocs-recipient-email",value:this.email,autocomplete:"off",placeholder:"Email Address...",onInput:function(t){e.email=t.target.value;e.dirty=true}}),o("div",{key:"5fac807ae61273d1fca93e243114c6a43595bca4",style:{height:"15px"}}),o("div",{key:"c94d7518ab0a33d093c8c53061e6b76136786cf4"},o("verdocs-text-input",{key:"e10740221dc8a37bbe6239868885fa6162a714a4",id:"verdocs-recipient-phone",value:this.phone,autocomplete:"off",placeholder:"Phone Number...",onInput:function(t){e.phone=t.target.value;e.dirty=true}}))),o("div",{key:"8d87329fad7879c6c8c8f7fbd1d84277b1a4c6f3",class:"buttons"},o("button",{key:"968fe7fa6dda5fa610f984345daf1b3b20ba33f7",class:"delete-button",disabled:this.dirty,onClick:function(t){return e.handleDelete(t)},innerHTML:b}),o("div",{key:"47e781c250561d27982bc44548be452b965ebdf0",style:{flex:"1"}}),o("verdocs-button",{key:"7db073d8545a497611b7d3070b85d65b87b1880f",size:"small",label:"Save",disabled:!this.dirty||!n,onClick:function(t){return e.handleSave(t)}}))))};return e}());v.style=h}}}));
2
+ //# sourceMappingURL=p-76a86430.system.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-80p0Fzir.system.js","./p-CrzDCQEM.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var i,t,n,s,o,r,a,l,d,c,v,p,h,u,f,w,g,m,b;return{setters:[function(e){i=e.r;t=e.c;n=e.h;s=e.H;o=e.F},function(e){r=e.d},function(e){a=e.VerdocsEndpoint;l=e.getEnvelope;d=e.resendInvitation;c=e.cancelEnvelope;v=e.updateRecipient;p=e.formatFullName;h=e.updateEnvelope;u=e.userIsEnvelopeOwner;f=e.capitalize},function(e){w=e.F},function(e){g=e.V},function(e){m=e.S},function(e){b=e.S}],execute:function(){var 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-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}';var k=24*60*60*1e3;var C='<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>';var y='<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>';var 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="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var M={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>'};var D=e("verdocs_envelope_sidebar",function(){function e(e){i(this,e);this.sdkError=t(this,"sdkError");this.envelopeUpdated=t(this,"envelopeUpdated");this.toggle=t(this,"toggle");this.another=t(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}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new m(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.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();b.subscribe("envelopes",this.envelopeId,(function(){return l(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){b.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.setTab=function(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};e.prototype.canResendRecipient=function(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)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":d(this.endpoint,this.envelopeId,e.role_name).then((function(){g("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);g("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":g("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":g("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;c(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);g("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";b.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;g("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.handleUpdateRecipient=function(e,i){var t=this;console.log("Updating recipient",e,i);var n={};if(i.email!==e.email){n.email=i.email}if(i.phone!==e.phone){n.phone=i.phone}if(i.message!==e.message){n.message=i.message}if(i.first_name!==e.first_name){n.first_name=i.first_name}if(i.last_name!==e.last_name){n.last_name=i.last_name}if(Object.keys(n).length>0){v(this.endpoint,this.envelopeId,e.role_name,n).then((function(e){g("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);b.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){g(e.response.data.error,{style:"error"});t.showUpdateDialog=""}))}else{this.showUpdateDialog=""}};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=p(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.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(i.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:"Envelope expired.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(k,3*k)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;h(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);b.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;g(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,a,l,d,c,v,h,g,m,b,x;if(this.loading){return n(s,null)}var D=u(this.endpoint.profile,this.envelope);var _=this.prepareHistoryEntries();var B=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";return n(s,{class:this.panelOpen?"open":""},n("div",{class:"side-buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:C}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:y}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:z})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},r.format(new Date((l=this.envelope)===null||l===void 0?void 0:l.created_at),w)),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},r.format(new Date((d=this.envelope)===null||d===void 0?void 0:d.updated_at),w)),n("div",{class:"label"},"Status"),n("div",{class:"value"},f((c=this.envelope)===null||c===void 0?void 0:c.status)),n("div",{class:"label"},"Owner ID"),n("div",{class:"value"},(v=this.envelope)===null||v===void 0?void 0:v.profile_id),n("div",{class:"label"},"Owner Name"),n("div",{class:"value"},p((h=this.envelope)===null||h===void 0?void 0:h.profile)),n("div",{class:"label"},"Owner Email"),n("div",{class:"value"},(m=(g=this.envelope)===null||g===void 0?void 0:g.profile)===null||m===void 0?void 0:m.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(b=this.envelope)===null||b===void 0?void 0:b.recipients.map((function(i,t){var s;var o=i.status!=="submitted"&&i.status!=="canceled"&&i.status!=="declined";var r=i.status!=="submitted";var a=e.canResendRecipient(i);var l=p(i);return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},t+1),n("div",{class:"recipient-name"},i.role_name),n("div",{class:(s={"recipient-status":true},s[i.status]=true,s)},i.status),D&&!B&&n("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"update",label:"Update",disabled:!r},{id:"reminder",label:"Send Reminder",disabled:!a},{id:"inperson",label:"Get In-Person Link",disabled:!o},{id:"reinvite",label:"Re-invite",disabled:!a}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},l),n("div",{class:"recipient-name"},i.email),n("div",{class:"recipient-name"},i.phone)))})),D&&n("div",{class:"reminders"},n("div",{class:"form-row"},n("div",{class:"reminders-label"},"Reminders"),n("verdocs-switch",{disabled:B||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&n(o,null,n("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),n("div",{class:"form-row"},n("div",{class:"form-label"},"Initial Reminder (days):"),n("verdocs-text-input",{placeholder:"In hours...",disabled:B||this.updatingReminders,value:String(Math.floor(this.initialReminder/k)),onBlur:function(i){e.initialReminder=Number(i.target.value)*k;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),n("div",{class:"form-row"},n("div",{class:"form-label"},"Follow-up Reminders:"),n("verdocs-text-input",{placeholder:"In hours...",disabled:B||this.updatingReminders,value:String(Math.floor(this.followupReminders/k)),onBlur:function(i){e.followupReminders=Number(i.target.value)*k;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),n("div",{class:"form-row"},n("div",{class:"form-label"},"Next Reminder:"),n("div",{style:{color:"#dddddd"}},r.format(new Date((x=this.envelope)===null||x===void 0?void 0:x.next_reminder),"P p"))))),D&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!B},disabled:B})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),_.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:M[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},r.format(e.date,w))))}))),this.showRecipientDialog&&n("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&n("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&n("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:function(){e.showReinviteDialog=""}}),this.showUpdateDialog&&n("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:function(i){console.log("next",i.detail);if(i.detail.action==="save"){e.handleUpdateRecipient(i.detail.originalRecipient,i.detail.updatedRecipient)}else{e.showUpdateDialog=""}}}))};return e}());D.style=x}}}));
2
- //# sourceMappingURL=p-9f4c393c.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-80p0Fzir.system.js","./p-CrzDCQEM.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js"],(function(e){"use strict";var i,t,n,s,o,r,a,l,d,c,v,p,h,u,f,w,g,m,b;return{setters:[function(e){i=e.r;t=e.c;n=e.h;s=e.H;o=e.F},function(e){r=e.d},function(e){a=e.VerdocsEndpoint;l=e.getEnvelope;d=e.resendInvitation;c=e.cancelEnvelope;v=e.updateRecipient;p=e.formatFullName;h=e.updateEnvelope;u=e.userIsEnvelopeOwner;f=e.capitalize},function(e){w=e.F},function(e){g=e.V},function(e){m=e.S},function(e){b=e.S}],execute:function(){var 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-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}';var k=24*60*60*1e3;var C='<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>';var y='<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>';var 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="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var M={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>'};var D=e("verdocs_envelope_sidebar",function(){function e(e){i(this,e);this.sdkError=t(this,"sdkError");this.envelopeUpdated=t(this,"envelopeUpdated");this.toggle=t(this,"toggle");this.another=t(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}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new m(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.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();b.subscribe("envelopes",this.envelopeId,(function(){return l(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){b.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.setTab=function(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};e.prototype.canResendRecipient=function(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)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":d(this.endpoint,this.envelopeId,e.role_name).then((function(){g("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);g("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":g("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":g("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;c(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);g("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";b.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;g("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.handleUpdateRecipient=function(e,i){var t=this;console.log("Updating recipient",e,i);var n={};if(i.email!==e.email){n.email=i.email}if(i.phone!==e.phone){n.phone=i.phone}if(i.message!==e.message){n.message=i.message}if(i.first_name!==e.first_name){n.first_name=i.first_name}if(i.last_name!==e.last_name){n.last_name=i.last_name}if(Object.keys(n).length>0){v(this.endpoint,this.envelopeId,e.role_name,n).then((function(e){g("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);b.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){g(e.response.data.error,{style:"error"});t.showUpdateDialog=""}))}else{this.showUpdateDialog=""}};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=p(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.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(i.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:"Envelope expired.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(k,3*k)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;h(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);b.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;g(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,a,l,d,c,v,h,g,m,b,x;if(this.loading){return n(s,null)}var D=u(this.endpoint.profile,this.envelope);var _=this.prepareHistoryEntries();var B=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";return n(s,{class:this.panelOpen?"open":""},n("div",{class:"side-buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:C}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:y}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:z})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},r.format(new Date((l=this.envelope)===null||l===void 0?void 0:l.created_at),w)),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},r.format(new Date((d=this.envelope)===null||d===void 0?void 0:d.updated_at),w)),n("div",{class:"label"},"Status"),n("div",{class:"value"},f((c=this.envelope)===null||c===void 0?void 0:c.status)),n("div",{class:"label"},"Owner ID"),n("div",{class:"value"},(v=this.envelope)===null||v===void 0?void 0:v.profile_id),n("div",{class:"label"},"Owner Name"),n("div",{class:"value"},p((h=this.envelope)===null||h===void 0?void 0:h.profile)),n("div",{class:"label"},"Owner Email"),n("div",{class:"value"},(m=(g=this.envelope)===null||g===void 0?void 0:g.profile)===null||m===void 0?void 0:m.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(b=this.envelope)===null||b===void 0?void 0:b.recipients.map((function(i,t){var s;var o=i.status!=="submitted"&&i.status!=="canceled"&&i.status!=="declined";var r=i.status!=="submitted";var a=e.canResendRecipient(i);var l=p(i);return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},t+1),n("div",{class:"recipient-name"},i.role_name.replace("delegated_to_","Delegated")),n("div",{class:(s={"recipient-status":true},s[i.status]=true,s)},i.status),D&&!B&&n("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"update",label:"Update",disabled:!r},{id:"reminder",label:"Send Reminder",disabled:!a},{id:"inperson",label:"Get In-Person Link",disabled:!o},{id:"reinvite",label:"Re-invite",disabled:!a}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},l),n("div",{class:"recipient-name"},i.email),n("div",{class:"recipient-name"},i.phone)))})),D&&n("div",{class:"reminders"},n("div",{class:"form-row"},n("div",{class:"reminders-label"},"Reminders"),n("verdocs-switch",{disabled:B||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&n(o,null,n("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),n("div",{class:"form-row"},n("div",{class:"form-label"},"Initial Reminder (days):"),n("verdocs-text-input",{placeholder:"In hours...",disabled:B||this.updatingReminders,value:String(Math.floor(this.initialReminder/k)),onBlur:function(i){e.initialReminder=Number(i.target.value)*k;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),n("div",{class:"form-row"},n("div",{class:"form-label"},"Follow-up Reminders:"),n("verdocs-text-input",{placeholder:"In hours...",disabled:B||this.updatingReminders,value:String(Math.floor(this.followupReminders/k)),onBlur:function(i){e.followupReminders=Number(i.target.value)*k;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),n("div",{class:"form-row"},n("div",{class:"form-label"},"Next Reminder:"),n("div",{style:{color:"#dddddd"}},r.format(new Date((x=this.envelope)===null||x===void 0?void 0:x.next_reminder),"P p"))))),D&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!B},disabled:B})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),_.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:M[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},r.format(e.date,w))))}))),this.showRecipientDialog&&n("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&n("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&n("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:function(){e.showReinviteDialog=""}}),this.showUpdateDialog&&n("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:function(i){console.log("next",i.detail);if(i.detail.action==="save"){e.handleUpdateRecipient(i.detail.originalRecipient,i.detail.updatedRecipient)}else{e.showUpdateDialog=""}}}))};return e}());D.style=x}}}));
2
+ //# sourceMappingURL=p-76aed8e2.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsEnvelopeSidebarCss","MS_PER_DAY","InformationCircle","Users","ClipboardDocuments","ActivityIcons","visibility","pencil","mail","contact_mail","done","send","gesture","clear","check_circle","link","cancel","done_all","create","perm_identity","people","contact_email","textsms","verified_user","account_circle","idcard","idcardslash","key","keyslash","pin","pinslash","VerdocsEnvelopeSidebar","exports","class_1","hostRef","this","envelopeListenerId","endpoint","VerdocsEndpoint","getDefault","envelopeId","activeTab","panelOpen","showRecipientDialog","showCancelDialog","showReinviteDialog","showUpdateDialog","remindersEnabled","updatingReminders","initialReminder","followupReminders","loading","envelope","prototype","componentWillLoad","loadSession","console","log","concat","session","listenToEnvelope","e","_a","sdkError","emit","SDKError","message","_b","response","status","_c","data","disconnectedCallback","unlistenToEnvelope","Store","subscribe","getEnvelope","_this","sortEnvelopeRecipients","initial_reminder","followup_reminders","store","delListener","recipients","sort","a","b","sequence","order","setTab","tab","toggle","open","canResendRecipient","recipient","includes","handleRecipientAction","id","role_name","resendInvitation","then","VerdocsToast","style","catch","envelopeUpdated","event","handleCancelEnvelope","cancelEnvelope","r","__awaiter","newEnvelope","JSON","parse","stringify","updateEnvelope","handleUpdateRecipient","originalRecipient","updatedRecipient","fields","email","phone","first_name","last_name","Object","keys","length","updateRecipient","error","prepareHistoryEntries","entries","histories","history_entries","push","icon","date","Date","created_at","_d","updated_at","ownerCanceled","some","history","_e","_f","canceled_at","forEach","find","fullName","formatFullName","toLowerCase","event_detail","getTime","handleToggleReminders","handleSetReminders","render","h","Host","isEnvelopeOwner","userIsEnvelopeOwner","profile","historyEntries","functionsDisabled","class","onClick","innerHTML","format","FORMAT_TIMESTAMP","capitalize","_g","profile_id","_h","_k","_j","_l","map","index","canGetInPersonLink","canUpdate","canSendReminder","replace","_o","onOptionSelected","item","detail","options","label","disabled","checked","onCheckedChange","Fragment","placeholder","value","String","Math","floor","onBlur","Number","target","color","_m","next_reminder","variant","entry","roleName","onNext","heading","action"],"sources":["src/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.scss?tag=verdocs-envelope-sidebar","src/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-envelope-sidebar {\n font-family: $verdocs-primary-font;\n flex-direction: row;\n display: flex;\n flex: 0 0 56px;\n width: 56px;\n min-height: 400px;\n height: 100%;\n background: #41435e;\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n\n &.open {\n flex: 0 0 400px;\n max-width: 100%;\n width: 400px;\n\n @media screen and (max-width: 500px) {\n flex: 0 0 300px;\n width: 300px;\n }\n }\n\n .side-buttons {\n flex-direction: column;\n flex: 0 0 56px;\n display: flex;\n\n button {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 50px;\n outline: none;\n border: none;\n border-left: 2px solid transparent;\n background: none;\n width: 100%;\n\n &.active {\n border-left: 2px solid #50bd80;\n }\n\n svg {\n color: white;\n width: 24px;\n height: 24px;\n }\n }\n }\n\n .content {\n flex: 1;\n display: none;\n color: white;\n flex-direction: column;\n padding: 12px 16px 16px;\n }\n\n &.open .content {\n display: flex;\n overflow-y: scroll;\n }\n\n verdocs-ok-dialog .content {\n color: black;\n }\n\n .title {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 12px;\n font-size: 16px;\n line-height: 24px;\n font-weight: 400;\n //flex: 0;\n }\n\n .label {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: 12px;\n line-height: 16px;\n color: rgba(255, 255, 255, 0.54);\n //flex: 0;\n }\n\n .value {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 14px;\n font-size: 14px;\n font-weight: 500;\n line-height: 16px;\n color: #fff;\n //flex: 0;\n }\n\n .manage-recipients-button {\n align-self: center;\n white-space: nowrap;\n width: 100%;\n margin: 0 0 10px 0;\n\n .label {\n color: #ffffff;\n font-size: 14px;\n }\n\n button {\n width: 100%;\n }\n }\n\n .recipient-detail {\n flex: 0;\n padding: 8px;\n font-size: 14px;\n position: relative;\n flex-direction: column;\n border: solid 1px #979797;\n margin-bottom: 16px;\n }\n\n .recipient-header {\n flex-direction: row;\n box-sizing: border-box;\n display: flex;\n gap: 6px;\n align-items: center;\n margin-bottom: 4px;\n }\n\n .recipient-number {\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 24px;\n font-size: 14px;\n font-weight: 500;\n border: solid 1px #979797;\n }\n\n .recipient-name {\n flex: 1;\n box-sizing: border-box;\n text-transform: capitalize;\n }\n\n .recipient-status {\n flex: 0 0 100px;\n border-radius: 5px;\n text-align: center;\n box-sizing: border-box;\n max-width: 100px;\n min-width: 100px;\n background-color: #616161; // Default\n text-transform: capitalize;\n font-size: 14px;\n padding: 3px 0;\n\n &.invited {\n background-color: #ff8f00;\n }\n &.opened {\n background-color: #616161;\n }\n &.signed,\n &.submitted {\n background-color: #2e7d32;\n }\n &.pending {\n background-color: #0277bd;\n }\n &.canceled,\n &.declined {\n background-color: #c62828;\n }\n\n @media screen and (max-width: 500px) {\n flex: 1 1 60px;\n max-width: 60px;\n min-width: 60px;\n }\n }\n\n .recipient-content {\n flex-direction: column;\n }\n\n .recipient-name {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .history-entry {\n display: flex;\n align-items: center;\n flex-direction: row;\n padding: 8px 0 0;\n margin: 8px 0 0;\n border-top: 1px solid #dddddd;\n\n .activity-icon {\n margin-right: 14px;\n\n svg {\n width: 24px;\n height: 24px;\n fill: #ffffff;\n }\n }\n\n .activity-details {\n }\n\n .activity-text {\n font-size: 14px;\n line-height: 16px;\n margin-bottom: 4px;\n }\n\n .activity-date {\n font-size: 12px;\n line-height: 16px;\n color: rgba(255, 255, 255, 0.54);\n }\n }\n\n .content .history-entry:first-of-type {\n border-top: none;\n }\n\n .reminders {\n margin: 15px 0 30px 0;\n\n .form-row {\n margin: 8px 0 0;\n display: flex;\n flex-direction: row;\n\n .reminders-label {\n display: flex;\n flex: 1;\n }\n\n .form-label {\n flex: 1;\n }\n\n verdocs-text-input {\n margin: 0;\n width: 100px;\n }\n }\n }\n}\n","import {format} from 'date-fns';\nimport {IEnvelope, IRecipient, updateRecipient} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Fragment, Host, Prop, State} from '@stencil/core';\nimport {cancelEnvelope, capitalize, formatFullName, getEnvelope, resendInvitation, updateEnvelope, userIsEnvelopeOwner, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {FORMAT_TIMESTAMP} from '../../../utils/Types';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst MS_PER_DAY = 24 * 60 * 60 * 1000;\n\nconst InformationCircle = `<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>`;\n\nconst Users = `<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>`;\n\nconst ClipboardDocuments = `<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>`;\n\n// https://materialui.co/icon/verified-user and https://heroicons.com/\nconst ActivityIcons = {\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n 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>`,\n};\n\ninterface IHistoryEntry {\n icon: string;\n message: string;\n date: Date;\n}\n\n/**\n * Displays a file upload mechanism suitable for the first step of creating a template.\n * This is typically the first step in a template creation workflow.\n */\n@Component({\n tag: 'verdocs-envelope-sidebar',\n styleUrl: 'verdocs-envelope-sidebar.scss',\n shadow: false,\n})\nexport class VerdocsEnvelopeSidebar {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n /**\n * Event fired when the sidebar is opened or closed.\n */\n @Event({composed: true}) toggle: EventEmitter<{open: boolean}>;\n\n /**\n * Event fired when the user clicks Send Another in the Manage Recipients dialog. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) another: EventEmitter<{envelope: IEnvelope}>;\n\n // @State() envelope: IEnvelope | null = null;\n // @State() sortedRecipients: IRecipient[] = [];\n // @State() roleNames: string[] = [];\n @State() activeTab: number = 1;\n @State() panelOpen = false;\n @State() showRecipientDialog = '';\n @State() showCancelDialog = false;\n @State() showReinviteDialog = '';\n @State() showUpdateDialog = '';\n\n @State() remindersEnabled = false;\n @State() updatingReminders = false;\n @State() initialReminder: number | null = null;\n @State() followupReminders: number | null = null;\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n try {\n this.endpoint.loadSession();\n\n if (!this.envelopeId) {\n console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n if (!this.endpoint.session) {\n console.log('[SIDEBAR] Unable to start session, must be authenticated');\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[SIDEBAR] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[SIDEBAR] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n\n this.sortEnvelopeRecipients();\n this.initialReminder = this.envelope?.initial_reminder;\n this.followupReminders = this.envelope?.followup_reminders;\n this.remindersEnabled = !!this.initialReminder;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n sortEnvelopeRecipients() {\n (this.envelope?.recipients || []).sort((a, b) => {\n return a.sequence === b.sequence ? a.order - b.order : a.sequence - b.sequence;\n });\n }\n\n setTab(tab: number) {\n this.panelOpen = tab !== this.activeTab || !this.panelOpen;\n this.toggle?.emit({open: this.panelOpen});\n this.activeTab = tab;\n }\n\n // TODO: Refactor to a common library?\n canResendRecipient(recipient: IRecipient) {\n return (\n !['pending', 'declined', 'submitted', 'canceled'].includes(recipient.status) && //\n !['complete', 'declined', 'canceled'].includes(this.envelope?.status)\n );\n }\n\n handleRecipientAction(recipient: IRecipient, id: string) {\n console.log('[SIDEBAR] Recipient action', id, recipient);\n switch (id) {\n case 'update':\n this.showUpdateDialog = recipient.role_name;\n break;\n\n case 'reminder':\n resendInvitation(this.endpoint, this.envelopeId, recipient.role_name)\n .then(() => {\n VerdocsToast('Reminder Sent', {style: 'success'});\n })\n .catch(e => {\n console.log('[SIDEBAR] Error resending invitation', e);\n VerdocsToast('Error resending invitation: ' + e.message, {style: 'error'});\n });\n break;\n\n case 'reinvite':\n this.showReinviteDialog = recipient.role_name;\n // resendInvitation(this.endpoint, this.envelopeId, recipient.role_name)\n // .then(() => {\n // VerdocsToast('Reminder Sent', {style: 'success'});\n // })\n // .catch(e => {\n // console.log('[SIDEBAR] Error resending invitation', e);\n // VerdocsToast('Error resending invitation: ' + e.message, {style: 'error'});\n // });\n break;\n\n case 'inperson':\n this.showRecipientDialog = recipient.role_name;\n break;\n\n case 'modify':\n VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n break;\n\n case 'details':\n VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n break;\n }\n\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: id});\n }\n\n handleCancelEnvelope() {\n this.loading = true;\n cancelEnvelope(this.endpoint, this.envelopeId)\n .then(async r => {\n console.log('[SIDEBAR] Envelope canceled', r);\n VerdocsToast('Envelope canceled', {style: 'success'});\n\n // TODO: Use returned value instead?\n const newEnvelope = JSON.parse(JSON.stringify(this.envelope));\n newEnvelope.status = 'canceled';\n Store.updateEnvelope(this.envelopeId, newEnvelope);\n\n this.loading = false;\n this.panelOpen = false;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: newEnvelope, event: 'canceled'});\n })\n .catch(e => {\n console.log('[SIDEBAR] Error canceling envelope', e);\n this.loading = false;\n VerdocsToast('Error canceling envelope: ' + e.message, {style: 'error'});\n });\n }\n\n handleUpdateRecipient(originalRecipient: IRecipient, updatedRecipient: IRecipient) {\n console.log('Updating recipient', originalRecipient, updatedRecipient);\n const fields: any = {};\n if (updatedRecipient.email !== originalRecipient.email) {\n fields.email = updatedRecipient.email;\n }\n if (updatedRecipient.phone !== originalRecipient.phone) {\n fields.phone = updatedRecipient.phone;\n }\n if (updatedRecipient.message !== originalRecipient.message) {\n fields.message = updatedRecipient.message;\n }\n if (updatedRecipient.first_name !== originalRecipient.first_name) {\n fields.first_name = updatedRecipient.first_name;\n }\n if (updatedRecipient.last_name !== originalRecipient.last_name) {\n fields.last_name = updatedRecipient.last_name;\n }\n\n if (Object.keys(fields).length > 0) {\n updateRecipient(this.endpoint, this.envelopeId, originalRecipient.role_name, fields)\n .then(r => {\n // TODO: Reload the envelope?\n VerdocsToast('Recipient updated', {style: 'success'});\n console.log('[SIDEBAR] Updated recipient', r);\n Store.getEnvelope(this.endpoint, this.envelopeId, true);\n this.showUpdateDialog = '';\n })\n .catch(e => {\n VerdocsToast(e.response.data.error, {style: 'error'});\n this.showUpdateDialog = '';\n });\n } else {\n this.showUpdateDialog = '';\n }\n }\n\n prepareHistoryEntries() {\n const entries: IHistoryEntry[] = [];\n const histories = this.envelope?.history_entries || [];\n\n entries.push({icon: 'pencil', message: 'Envelope created.', date: new Date(this.envelope?.created_at)});\n\n if (this.envelope?.status === 'complete') {\n entries.push({icon: 'pencil', message: 'Envelope completed.', date: new Date(this.envelope?.updated_at)});\n }\n\n // TODO: Shift back to server-side generating these events? We'll still need\n // to tolerate both cases here for a while.\n const ownerCanceled = histories.some(history => (history.event as any) === 'owner:canceled');\n if (this.envelope?.status === 'canceled' && !ownerCanceled) {\n entries.push({icon: 'pencil', message: 'Envelope Canceled.', date: new Date(this.envelope?.canceled_at)});\n }\n\n histories.forEach(history => {\n const recipient = (this.envelope?.recipients || []).find(recipient => recipient.role_name === history.role_name);\n const fullName = formatFullName(recipient);\n\n switch (history.event.toLowerCase()) {\n case 'recipient:kba_verified':\n entries.push({icon: 'key', message: `KBA verification completed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:kba_failed':\n entries.push({icon: 'keyslash', message: `KBA verification failed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:id_verified':\n entries.push({icon: 'idcard', message: `ID verification completed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:id_failed':\n entries.push({icon: 'idcardslash', message: `ID verification failed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:pin_verified':\n entries.push({icon: 'pin', message: `PIN verification completed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:pin_failed':\n entries.push({icon: 'pinslash', message: `PIN verification failed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:signed':\n entries.push({icon: 'gesture', message: `Signed by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:declined':\n entries.push({icon: 'clear', message: `Declined by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:opened':\n switch (history.event_detail) {\n // TODO: Sync these up with reality\n case 'email':\n case 'mail':\n entries.push({icon: 'visibility', message: `Opened by ${fullName}, via email.`, date: new Date(history.created_at)});\n break;\n case 'sms':\n entries.push({icon: 'visibility', message: `Opened by ${fullName}, via SMS.`, date: new Date(history.created_at)});\n break;\n case 'in_person_link':\n entries.push({icon: 'visibility', message: `Opened by ${fullName}, via In-person link.`, date: new Date(history.created_at)});\n break;\n case 'in_app':\n entries.push({icon: 'visibility', message: `Opened by ${fullName}, via dashboard.`, date: new Date(history.created_at)});\n break;\n default:\n entries.push({icon: 'visibility', message: `Opened by ${fullName}.`, date: new Date(history.created_at)});\n }\n break;\n case 'recipient:submitted':\n switch (history.event_detail) {\n // TODO: Sync up\n case 'approver':\n entries.push({icon: 'check_circle', message: `Approved by ${fullName}.`, date: new Date(history.created_at)});\n break;\n default:\n entries.push({icon: 'send', message: `Submitted by ${fullName}.`, date: new Date(history.created_at)});\n break;\n }\n break;\n case 'recipient:prepared':\n entries.push({icon: 'send', message: `Prepared by ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:claimed':\n if (history.event_detail === 'guest') {\n entries.push({icon: 'account_circle', message: `${fullName} claimed the Envelope as a guest.`, date: new Date(history.created_at)});\n } else if (history.event_detail === 'profile') {\n entries.push({icon: 'verified_user', message: `${fullName} claimed the Envelope as a verified user.`, date: new Date(history.created_at)});\n }\n break;\n case 'recipient:agreed':\n entries.push({icon: 'done', message: `${fullName} agreed to use electronic records and signatures.`, date: new Date(history.created_at)});\n break;\n case 'recipient:invited':\n if (history.event_detail === 'sms') {\n entries.push({icon: 'textsms', message: `${fullName} has been invited via SMS.`, date: new Date(history.created_at)});\n } else {\n entries.push({icon: 'mail', message: `${fullName} has been invited via email.`, date: new Date(history.created_at)});\n }\n break;\n case 'recipient:reminder':\n if (history.event_detail === 'sms') {\n entries.push({icon: 'textsms', message: `${fullName} sent a reminder via SMS.`, date: new Date(history.created_at)});\n } else {\n entries.push({icon: 'mail', message: `${fullName} sent a reminder via email.`, date: new Date(history.created_at)});\n }\n break;\n case 'invitation:resent':\n entries.push({\n icon: 'mail',\n message: `Invitation was resent to ${fullName}${history.event_detail === 'reminder' ? ' by reminder' : ''}.`,\n date: new Date(history.created_at),\n });\n break;\n case 'envelope:cc':\n entries.push({icon: 'contact_mail', message: `A copy has been sent to ${fullName}.`, date: new Date(history.created_at)});\n break;\n case 'recipient:delegated':\n entries.push({icon: 'people', message: history.event_detail, date: new Date(history.created_at)});\n break;\n case 'recipient:updated_info':\n entries.push({icon: 'perm_identity', message: history.event_detail, date: new Date(history.created_at)});\n break;\n case 'owner:updated_recipient_info':\n entries.push({icon: 'perm_identity', message: history.event_detail, date: new Date(history.created_at)});\n break;\n case 'created':\n entries.push({icon: 'create', message: `Envelope was created.`, date: new Date(history.created_at)});\n break;\n case 'completed':\n entries.push({icon: 'done_all', message: `Envelope was completed.`, date: new Date(history.created_at)});\n break;\n // TODO: Final answer?\n case 'envelope:canceled':\n case 'envelope_canceled':\n case 'canceled':\n case 'owner:canceled':\n entries.push({icon: 'cancel', message: `Envelope was canceled by the creator.`, date: new Date(history.created_at)});\n break;\n case 'envelope:expired':\n entries.push({icon: 'cancel', message: `Envelope expired.`, date: new Date(history.created_at)});\n break;\n case 'owner:get_in_person_link':\n entries.push({icon: 'link', message: `Owner accessed the In-person link for ${recipient}.`, date: new Date(history.created_at)});\n break;\n default:\n console.log('[SIDEBAR] Unknown history type', history);\n break;\n }\n });\n\n entries.sort((a, b) => b.date.getTime() - a.date.getTime());\n return entries;\n }\n\n // canModify(recipient: IRecipient) {\n // const invalidRecipientStatus = ['declined', 'signed', 'submitted', 'canceled'];\n // const invalidEnvelopeStatus = ['complete', 'declined', 'canceled'];\n // return recipient.claimed !== true && invalidRecipientStatus.indexOf(recipient.status) === -1 && invalidEnvelopeStatus.indexOf(this.envelope?.status) === -1;\n // }\n\n handleToggleReminders() {\n if (this.remindersEnabled) {\n return this.handleSetReminders(null, null);\n } else {\n return this.handleSetReminders(MS_PER_DAY, 3 * MS_PER_DAY);\n }\n }\n\n handleSetReminders(initial_reminder: number | null, followup_reminders: number | null) {\n console.log('Updating reminders...');\n this.updatingReminders = true;\n\n updateEnvelope(this.endpoint, this.envelopeId, {initial_reminder, followup_reminders})\n .then(envelope => {\n console.log('Updated', envelope);\n Store.updateEnvelope(this.envelopeId, envelope);\n this.initialReminder = envelope.initial_reminder;\n this.followupReminders = envelope.followup_reminders;\n this.remindersEnabled = !!envelope.initial_reminder;\n this.updatingReminders = false;\n })\n .catch(e => {\n console.log('Error updating envelope', e);\n this.initialReminder = this.envelope?.initial_reminder;\n this.followupReminders = this.envelope?.followup_reminders;\n this.remindersEnabled = !!this.envelope?.initial_reminder;\n this.updatingReminders = false;\n VerdocsToast(e.response.data.error, {style: 'error'});\n });\n }\n\n render() {\n if (this.loading) {\n // We don't show a loading indicator for the sidebar, to avoid FOUS\n return <Host />;\n }\n\n const isEnvelopeOwner = userIsEnvelopeOwner(this.endpoint.profile, this.envelope);\n const historyEntries = this.prepareHistoryEntries();\n const functionsDisabled = this.envelope?.status !== 'pending' && this.envelope?.status !== 'in progress';\n\n return (\n <Host class={this.panelOpen ? 'open' : ''}>\n <div class=\"side-buttons\">\n <button class={this.activeTab === 1 ? 'active' : ''} onClick={() => this.setTab(1)} innerHTML={InformationCircle} />\n <button class={this.activeTab === 2 ? 'active' : ''} onClick={() => this.setTab(2)} innerHTML={Users} />\n <button class={this.activeTab === 3 ? 'active' : ''} onClick={() => this.setTab(3)} innerHTML={ClipboardDocuments} />\n </div>\n\n {this.activeTab === 1 && (\n <div class=\"content\">\n <div class=\"title\">Details</div>\n\n <div class=\"label\">Envelope ID</div>\n <div class=\"value\">{this.envelope?.id}</div>\n\n <div class=\"label\">Date Created</div>\n <div class=\"value\">{format(new Date(this.envelope?.created_at), FORMAT_TIMESTAMP)}</div>\n\n <div class=\"label\">Last Modified</div>\n <div class=\"value\">{format(new Date(this.envelope?.updated_at), FORMAT_TIMESTAMP)}</div>\n\n <div class=\"label\">Status</div>\n <div class=\"value\">{capitalize(this.envelope?.status)}</div>\n\n <div class=\"label\">Owner ID</div>\n <div class=\"value\">{this.envelope?.profile_id}</div>\n\n <div class=\"label\">Owner Name</div>\n <div class=\"value\">{formatFullName(this.envelope?.profile)}</div>\n\n <div class=\"label\">Owner Email</div>\n <div class=\"value\">{this.envelope?.profile?.email}</div>\n </div>\n )}\n\n {this.activeTab === 2 && (\n <div class=\"content\">\n <div class=\"title\">Recipients</div>\n {this.envelope?.recipients.map((recipient, index) => {\n const canGetInPersonLink = recipient.status !== 'submitted' && recipient.status !== 'canceled' && recipient.status !== 'declined';\n const canUpdate = recipient.status !== 'submitted';\n const canSendReminder = this.canResendRecipient(recipient);\n const fullName = formatFullName(recipient);\n\n return (\n <div class=\"recipient-detail\">\n <div class=\"recipient-header\">\n <div class=\"recipient-number\">{index + 1}</div>\n <div class=\"recipient-name\">{recipient.role_name.replace('delegated_to_', 'Delegated')}</div>\n <div class={{'recipient-status': true, [recipient.status]: true}}>{recipient.status}</div>\n {isEnvelopeOwner && !functionsDisabled && (\n <verdocs-dropdown\n onOptionSelected={item => this.handleRecipientAction(recipient, item.detail.id)}\n options={[\n {id: 'update', label: 'Update', disabled: !canUpdate},\n {id: 'reminder', label: 'Send Reminder', disabled: !canSendReminder},\n {id: 'inperson', label: 'Get In-Person Link', disabled: !canGetInPersonLink},\n {id: 'reinvite', label: 'Re-invite', disabled: !canSendReminder},\n // {id: 'modify', label: 'Modify Recipient', disabled: !this.canModifyRecipient(recipient)},\n // TODO: Details dialog\n // {id:'details',label: 'View Details'},\n ]}\n />\n )}\n </div>\n\n <dic class=\"recipient-content\">\n <div class=\"recipient-name\">{fullName}</div>\n <div class=\"recipient-name\">{recipient.email}</div>\n <div class=\"recipient-name\">{recipient.phone}</div>\n </dic>\n </div>\n );\n })}\n\n {isEnvelopeOwner && (\n <div class=\"reminders\">\n <div class=\"form-row\">\n <div class=\"reminders-label\">Reminders</div>\n <verdocs-switch disabled={functionsDisabled || this.updatingReminders} checked={this.remindersEnabled} onCheckedChange={() => this.handleToggleReminders()} />\n </div>\n\n {this.remindersEnabled && (\n <Fragment>\n <div class=\"form-row\">NOTE: Reminders will only be sent for up to 14 days.</div>\n <div class=\"form-row\">\n <div class=\"form-label\">Initial Reminder (days):</div>\n <verdocs-text-input\n placeholder=\"In hours...\"\n disabled={functionsDisabled || this.updatingReminders}\n value={String(Math.floor(this.initialReminder / MS_PER_DAY))}\n onBlur={(e: any) => {\n this.initialReminder = Number(e.target.value) * MS_PER_DAY;\n this.handleSetReminders(this.initialReminder, this.followupReminders);\n }}\n />\n </div>\n <div class=\"form-row\">\n <div class=\"form-label\">Follow-up Reminders:</div>\n <verdocs-text-input\n placeholder=\"In hours...\"\n disabled={functionsDisabled || this.updatingReminders}\n value={String(Math.floor(this.followupReminders / MS_PER_DAY))}\n onBlur={(e: any) => {\n this.followupReminders = Number(e.target.value) * MS_PER_DAY;\n this.handleSetReminders(this.initialReminder, this.followupReminders);\n }}\n />\n </div>\n <div class=\"form-row\">\n <div class=\"form-label\">Next Reminder:</div>\n <div style={{color: '#dddddd'}}>{format(new Date(this.envelope?.next_reminder), 'P p')}</div>\n </div>\n </Fragment>\n )}\n </div>\n )}\n {isEnvelopeOwner && (\n <verdocs-button\n class=\"manage-recipients-button\"\n variant=\"standard\"\n label=\"Cancel Envelope\"\n onClick={() => (this.showCancelDialog = !functionsDisabled)}\n disabled={functionsDisabled}\n />\n )}\n </div>\n )}\n\n {this.activeTab === 3 && (\n <div class=\"content\">\n <div class=\"title\">History</div>\n\n {historyEntries.map(entry => (\n <div class=\"history-entry\">\n <div class=\"activity-icon\" innerHTML={ActivityIcons[entry.icon] || entry.icon} />\n <div class=\"activity-details\">\n <div class=\"activity-text\">{entry.message}</div>\n {/* 'MMMM Do YYYY, h:mm:ss a' */}\n <div class=\"activity-date\">{format(entry.date, FORMAT_TIMESTAMP)}</div>\n </div>\n </div>\n ))}\n </div>\n )}\n\n {this.showRecipientDialog && (\n <verdocs-envelope-recipient-link envelopeId={this.envelopeId} roleName={this.showRecipientDialog} onNext={() => (this.showRecipientDialog = '')} />\n )}\n\n {this.showCancelDialog && (\n <verdocs-ok-dialog\n heading=\"Cancel Envelope?\"\n message={'Are you sure you want to cancel this Envelope? This action cannot be undone.'}\n onNext={() => {\n this.showCancelDialog = false;\n this.handleCancelEnvelope();\n }}\n />\n )}\n\n {this.showReinviteDialog && (\n <verdocs-ok-dialog\n heading=\"Re-invite Recipient?\"\n 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.'}\n onNext={() => {\n this.showReinviteDialog = '';\n // this.handleCancelEnvelope();\n }}\n />\n )}\n\n {this.showUpdateDialog && (\n <verdocs-envelope-update-recipient\n envelopeId={this.envelopeId}\n roleName={this.showUpdateDialog}\n onNext={e => {\n console.log('next', e.detail);\n if (e.detail.action === 'save') {\n this.handleUpdateRecipient(e.detail.originalRecipient, e.detail.updatedRecipient);\n } else {\n this.showUpdateDialog = '';\n }\n }}\n />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as o,h as e,H as r}from"./p-CF7i8guW.js";const t='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#f3f3fc;background:#f3f3fc}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const i=class{constructor(e){o(this,e);this.checked=false;this.name="";this.value="";this.disabled=false}render(){return e(r,{key:"1706718a820c71690d78fb101c02d0e68eb4386e",class:{disabled:this.disabled}},e("input",{key:"82eaec668b1a39cf05d645dd3479a48be73a1cd5",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),e("label",{key:"419894528ba238e0058cb7c6543b8f59d8349e2b",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};i.style=t;export{i as verdocs_radio_button};
2
- //# sourceMappingURL=p-49522ebb.entry.js.map
1
+ import{r as o,h as e,H as r}from"./p-CF7i8guW.js";const t='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#f3f3fc;background:#f3f3fc}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const i=class{constructor(e){o(this,e);this.checked=false;this.name="";this.value="";this.disabled=false}render(){return e(r,{key:"25dcdde1d8837e343002fb1ead236752099bef7a",class:{disabled:this.disabled}},e("input",{key:"612b43c1693b5c50a56d8ec54d598a11822a6f82",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),e("label",{key:"568e105e85565a22c766a823323d333202cc4386",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};i.style=t;export{i as verdocs_radio_button};
2
+ //# sourceMappingURL=p-784daaf3.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function c(t){try{s(n.next(t))}catch(t){r(t)}}function a(t){try{s(n["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):o(t.value).then(c,a)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","./p-C06jLDFm.system.js","./p-CrzDCQEM.system.js","./p-Bzy18UgU.system.js"],(function(t){"use strict";var e,i,n,o,r,c,a;return{setters:[function(t){e=t.r;i=t.h;n=t.H;o=t.g},function(t){r=t.A;c=t.l},function(t){a=t.V},null],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-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-text-input .input-element:disabled{cursor:not-allowed;background:#aeb4bf;border:1px solid #33364b}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var u=t("verdocs_date_input",function(){function t(t){e(this,t);this.picker=null;this.value="";this.label="";this.placeholder="";this.helpText="";this.disabled=false;this.required=false;this.showingPw=false;this.focused=false;this.containerId="verdocs-date-input-".concat(Math.random().toString(36).substring(2,11))}t.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){this.focused=true;(t=this.picker)===null||t===void 0?void 0:t.show();setTimeout((function(){e.focused=false}),500);return[2]}))}))};t.prototype.componentDidLoad=function(){var t=this;this.picker=new r("#".concat(this.containerId),{locale:c,isMobile:true,autoClose:true,onShow:function(){return t.focused=true},onHide:function(){return t.focused=false},onSelect:function(e){var i=e.date,n=e.formattedDate;var o=new CustomEvent("input",{detail:{date:i,formattedDate:n}});t.hostEl.dispatchEvent(o)}})};t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return a("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return i(n,{key:"cc88f2d255889798b44d1b4a378df4825dad2864",class:"input-field"},i("label",{key:"54efdeecf84a03dbb649ecc2eec048bc54cc76a1"},this.label&&i("div",{key:"9d276e51d188ed7b80b987b3e91ab5afc040bfb5",class:"input-label"},this.label+":",this.required&&i("span",{key:"66f64bfe62f167af288bf7ae6df0c97d872425ce",class:"required"},"*")),i("div",{key:"57ec4d6abb6738e8c6aaf71c80c5657ca6597fcc",class:"input-container"},i("input",{key:"9e1a8b80b378a273a244ff17ef0ede94688f27bf",type:"text",value:this.value,required:this.required,class:"input-element","data-lpignore":"true",id:this.containerId,disabled:this.disabled,placeholder:this.placeholder,ref:function(e){return t.inputEl=e},onInput:function(e){return t.value=e.target.value}})),this.helpText&&i("verdocs-help-icon",{key:"7b7468b7db8c613c31c52fa21cfcd824b84afbd6",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());u.style=s}}}));
2
- //# sourceMappingURL=p-ecefb50c.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function c(t){try{s(n.next(t))}catch(t){r(t)}}function a(t){try{s(n["throw"](t))}catch(t){r(t)}}function s(t){t.done?i(t.value):o(t.value).then(c,a)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,c;return c={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(t){return function(e){return s([t,e])}}function s(a){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(i=0)),i)try{if(n=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;o=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];o=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","./p-C06jLDFm.system.js","./p-CrzDCQEM.system.js","./p-Bzy18UgU.system.js"],(function(t){"use strict";var e,i,n,o,r,c,a;return{setters:[function(t){e=t.r;i=t.h;n=t.H;o=t.g},function(t){r=t.A;c=t.l},function(t){a=t.V},null],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-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-text-input .input-element:disabled{cursor:not-allowed;background:#aeb4bf;border:1px solid #33364b}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var u=t("verdocs_date_input",function(){function t(t){e(this,t);this.picker=null;this.value="";this.label="";this.placeholder="";this.helpText="";this.disabled=false;this.required=false;this.showingPw=false;this.focused=false;this.containerId="verdocs-date-input-".concat(Math.random().toString(36).substring(2,11))}t.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){this.focused=true;(t=this.picker)===null||t===void 0?void 0:t.show();setTimeout((function(){e.focused=false}),500);return[2]}))}))};t.prototype.componentDidLoad=function(){var t=this;this.picker=new r("#".concat(this.containerId),{locale:c,isMobile:true,autoClose:true,onShow:function(){return t.focused=true},onHide:function(){return t.focused=false},onSelect:function(e){var i=e.date,n=e.formattedDate;var o=new CustomEvent("input",{detail:{date:i,formattedDate:n}});t.hostEl.dispatchEvent(o)}})};t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return a("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return i(n,{key:"467efdebf394aca2734bce2755e10b84638fe5a4",class:"input-field"},i("label",{key:"8dc6200b52f0d97f7360c3856056eb5d85c6d299"},this.label&&i("div",{key:"006018a6ec21a7780b78686feecf09f50357a871",class:"input-label"},this.label+":",this.required&&i("span",{key:"44882599b166ed99a3f3abb3276f03cf7c3702cc",class:"required"},"*")),i("div",{key:"390990d7c2e9132949e7af69fcd464f95b275b21",class:"input-container"},i("input",{key:"4324380a6c31b299f0f1ef0081043d8fe404e448",type:"text",value:this.value,required:this.required,class:"input-element","data-lpignore":"true",id:this.containerId,disabled:this.disabled,placeholder:this.placeholder,ref:function(e){return t.inputEl=e},onInput:function(e){return t.value=e.target.value}})),this.helpText&&i("verdocs-help-icon",{key:"ddd928e400e4fe83d0ffb2e6fc34eddff488fad1",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());u.style=s}}}));
2
+ //# sourceMappingURL=p-7f085b76.system.entry.js.map