@verdocs/web-sdk 6.8.1 → 6.8.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 (436) hide show
  1. package/dist/cjs/{Icons-Dr02rZHd.js → Icons-GgNiIFTt.js} +4 -2
  2. package/dist/{components/p-Du758Jse.js.map → cjs/Icons-GgNiIFTt.js.map} +1 -1
  3. package/dist/cjs/{Toast-CFBM1R4z.js → Toast-BgG-6jAg.js} +7 -3
  4. package/dist/cjs/{Toast-CFBM1R4z.js.map → Toast-BgG-6jAg.js.map} +1 -1
  5. package/dist/cjs/index-CQ5bTnED.js +6 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{utils-DjHWIYcY.js → utils-ecG41L2k.js} +11 -6
  8. package/dist/cjs/utils-ecG41L2k.js.map +1 -0
  9. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-view.entry.cjs.js.map +1 -0
  10. package/dist/cjs/{verdocs-adopt-signature-dialog_8.cjs.entry.js → verdocs-adopt-signature-dialog_7.cjs.entry.js} +3 -74
  11. package/dist/cjs/verdocs-auth.cjs.entry.js +3 -4
  12. package/dist/cjs/verdocs-auth.entry.cjs.js.map +1 -1
  13. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +63 -2
  21. package/dist/cjs/verdocs-field-payment.cjs.entry.js +9 -1
  22. package/dist/cjs/verdocs-field-payment.entry.cjs.js.map +1 -1
  23. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-preview_7.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-sign.cjs.entry.js +60 -9
  27. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  28. package/dist/cjs/verdocs-signing-progress.cjs.entry.js +77 -0
  29. package/dist/cjs/verdocs-signing-progress.entry.cjs.js.map +1 -0
  30. package/dist/cjs/verdocs-template-document-page.verdocs-toolbar-icon.entry.cjs.js.map +1 -1
  31. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +11 -11
  32. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  33. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +2 -3
  34. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  35. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +61 -14
  36. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  37. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +26 -0
  38. package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js.map +1 -1
  39. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +26 -0
  40. package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js.map +1 -1
  41. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +25 -0
  42. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js.map +1 -1
  43. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +27 -0
  44. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js.map +1 -1
  45. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +25 -0
  46. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js.map +1 -1
  47. package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +26 -0
  48. package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js.map +1 -1
  49. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js +26 -0
  50. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js.map +1 -1
  51. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +25 -0
  52. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js.map +1 -1
  53. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +25 -0
  54. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js.map +1 -1
  55. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +25 -0
  56. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js.map +1 -1
  57. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +26 -0
  58. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js.map +1 -1
  59. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +10 -10
  60. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js.map +1 -1
  61. package/dist/collection/utils/Icons.js +1 -0
  62. package/dist/collection/utils/Icons.js.map +1 -1
  63. package/dist/collection/utils/Toast.js +5 -1
  64. package/dist/collection/utils/Toast.js.map +1 -1
  65. package/dist/collection/utils/utils.js +9 -4
  66. package/dist/collection/utils/utils.js.map +1 -1
  67. package/dist/components/{p-BhfPQRmb.js → p--qy4LrSt.js} +3 -3
  68. package/dist/components/{p-BhfPQRmb.js.map → p--qy4LrSt.js.map} +1 -1
  69. package/dist/{esm/Icons-COC8ZzcY.js → components/p-4iMdAi-F.js} +4 -3
  70. package/dist/components/p-4iMdAi-F.js.map +1 -0
  71. package/dist/components/{p-CuOkNuk2.js → p-5374ZOPB.js} +3 -3
  72. package/dist/components/{p-CuOkNuk2.js.map → p-5374ZOPB.js.map} +1 -1
  73. package/dist/components/{p-D3vX2BjV.js → p-6scipSAA.js} +4 -4
  74. package/dist/components/{p-D3vX2BjV.js.map → p-6scipSAA.js.map} +1 -1
  75. package/dist/components/{p-BuPGeecy.js → p-8aKU2veY.js} +3 -3
  76. package/dist/components/{p-BuPGeecy.js.map → p-8aKU2veY.js.map} +1 -1
  77. package/dist/components/{p-CdaVcvEc.js → p-B4HqZ5yO.js} +13 -5
  78. package/dist/components/p-B4HqZ5yO.js.map +1 -0
  79. package/dist/components/{p-BndCPrX4.js → p-B91pFl_v.js} +16 -16
  80. package/dist/components/{p-BndCPrX4.js.map → p-B91pFl_v.js.map} +1 -1
  81. package/dist/components/{p-BhAmsiGS.js → p-BF4y1YRU.js} +3 -3
  82. package/dist/components/{p-BhAmsiGS.js.map → p-BF4y1YRU.js.map} +1 -1
  83. package/dist/components/{p-CbqdqC8j.js → p-BYz85yxG.js} +14 -5
  84. package/dist/components/p-BYz85yxG.js.map +1 -0
  85. package/dist/components/{p-CC0KCzJ2.js → p-Bw4ea7Kw.js} +12 -5
  86. package/dist/components/p-Bw4ea7Kw.js.map +1 -0
  87. package/dist/components/{p-Bpu-zxZH.js → p-Bys760t8.js} +12 -5
  88. package/dist/components/p-Bys760t8.js.map +1 -0
  89. package/dist/components/{p-XEyZOtxy.js → p-C8STy7JQ.js} +4 -4
  90. package/dist/components/{p-XEyZOtxy.js.map → p-C8STy7JQ.js.map} +1 -1
  91. package/dist/components/{p-CEkIWhd-.js → p-CErFd8ng.js} +4 -4
  92. package/dist/components/{p-CEkIWhd-.js.map → p-CErFd8ng.js.map} +1 -1
  93. package/dist/components/{p-BnrYh7lb.js → p-CNwYj4cS.js} +13 -5
  94. package/dist/components/p-CNwYj4cS.js.map +1 -0
  95. package/dist/components/{p-B_5Ul4Jm.js → p-CRIrD66O.js} +3 -3
  96. package/dist/components/{p-B_5Ul4Jm.js.map → p-CRIrD66O.js.map} +1 -1
  97. package/dist/components/{p-ClKxADje.js → p-Cal5IvqT.js} +3 -3
  98. package/dist/components/{p-ClKxADje.js.map → p-Cal5IvqT.js.map} +1 -1
  99. package/dist/components/{p-Ct99f25g.js → p-CcCp1gLW.js} +12 -5
  100. package/dist/components/p-CcCp1gLW.js.map +1 -0
  101. package/dist/components/{p-DcLwCcej.js → p-CdoA0Vhp.js} +25 -25
  102. package/dist/components/p-CdoA0Vhp.js.map +1 -0
  103. package/dist/components/{p-XXMNFK4_.js → p-CherENoi.js} +3 -3
  104. package/dist/components/{p-XXMNFK4_.js.map → p-CherENoi.js.map} +1 -1
  105. package/dist/components/{p-D98i71vl.js → p-Cp7g7TMK.js} +4 -4
  106. package/dist/components/{p-D98i71vl.js.map → p-Cp7g7TMK.js.map} +1 -1
  107. package/dist/components/{p-BYxr_9pG.js → p-CwA1DkPT.js} +4 -4
  108. package/dist/components/{p-BYxr_9pG.js.map → p-CwA1DkPT.js.map} +1 -1
  109. package/dist/components/{p-CxGK9zOT.js → p-D0JcxROc.js} +12 -5
  110. package/dist/components/p-D0JcxROc.js.map +1 -0
  111. package/dist/components/{p-YBSd2E-F.js → p-D1tvdWaA.js} +4 -4
  112. package/dist/components/{p-YBSd2E-F.js.map → p-D1tvdWaA.js.map} +1 -1
  113. package/dist/components/{p-BFALqJGq.js → p-D5iqEzJy.js} +13 -5
  114. package/dist/components/p-D5iqEzJy.js.map +1 -0
  115. package/dist/components/{p-CyvDgtoV.js → p-D97GxsI-.js} +7 -3
  116. package/dist/components/p-D97GxsI-.js.map +1 -0
  117. package/dist/components/{p-CiKj592X.js → p-DaWDoIag.js} +4 -4
  118. package/dist/components/{p-CiKj592X.js.map → p-DaWDoIag.js.map} +1 -1
  119. package/dist/components/{p-Dk8BEvRP.js → p-Dpu4D5bv.js} +12 -7
  120. package/dist/components/p-Dpu4D5bv.js.map +1 -0
  121. package/dist/components/{p-YnO0Tmc-.js → p-DtpXCLdt.js} +4 -4
  122. package/dist/components/{p-YnO0Tmc-.js.map → p-DtpXCLdt.js.map} +1 -1
  123. package/dist/components/{p-BZMRf_1r.js → p-DyfpSDn-.js} +3 -3
  124. package/dist/components/{p-BZMRf_1r.js.map → p-DyfpSDn-.js.map} +1 -1
  125. package/dist/components/{p-0SpRA2X8.js → p-_igYrwND.js} +3 -3
  126. package/dist/components/{p-0SpRA2X8.js.map → p-_igYrwND.js.map} +1 -1
  127. package/dist/components/{p-BiI11z4K.js → p-b0kPOapT.js} +18 -18
  128. package/dist/components/{p-BiI11z4K.js.map → p-b0kPOapT.js.map} +1 -1
  129. package/dist/components/{p-BXNOWeQl.js → p-hDK3S4nn.js} +3 -3
  130. package/dist/components/{p-BXNOWeQl.js.map → p-hDK3S4nn.js.map} +1 -1
  131. package/dist/components/{p-BOEjAXQi.js → p-tSwumenv.js} +3 -3
  132. package/dist/components/{p-BOEjAXQi.js.map → p-tSwumenv.js.map} +1 -1
  133. package/dist/components/{p-jeLHHnry.js → p-wSGGYtAF.js} +13 -5
  134. package/dist/components/p-wSGGYtAF.js.map +1 -0
  135. package/dist/components/{p-CStsF8-Q.js → p-yvuxqHqW.js} +12 -5
  136. package/dist/components/p-yvuxqHqW.js.map +1 -0
  137. package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
  138. package/dist/components/verdocs-auth.js +4 -5
  139. package/dist/components/verdocs-auth.js.map +1 -1
  140. package/dist/components/verdocs-build.js +23 -23
  141. package/dist/components/verdocs-contact-picker.js +1 -1
  142. package/dist/components/verdocs-date-input.js +1 -1
  143. package/dist/components/verdocs-envelope-document-page.js +1 -1
  144. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  145. package/dist/components/verdocs-envelope-sidebar.js +4 -4
  146. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  147. package/dist/components/verdocs-envelopes-list.js +4 -4
  148. package/dist/components/verdocs-field-attachment.js +1 -1
  149. package/dist/components/verdocs-field-checkbox.js +1 -1
  150. package/dist/components/verdocs-field-date.js +1 -1
  151. package/dist/components/verdocs-field-dropdown.js +1 -1
  152. package/dist/components/verdocs-field-initial.js +1 -1
  153. package/dist/components/verdocs-field-payment.js +11 -3
  154. package/dist/components/verdocs-field-payment.js.map +1 -1
  155. package/dist/components/verdocs-field-radio.js +1 -1
  156. package/dist/components/verdocs-field-signature.js +1 -1
  157. package/dist/components/verdocs-field-textarea.js +1 -1
  158. package/dist/components/verdocs-field-textbox.js +1 -1
  159. package/dist/components/verdocs-field-timestamp.js +1 -1
  160. package/dist/components/verdocs-file-chooser.js +1 -1
  161. package/dist/components/verdocs-initial-dialog.js +1 -1
  162. package/dist/components/verdocs-kba-dialog.js +1 -1
  163. package/dist/components/verdocs-otp-dialog.js +1 -1
  164. package/dist/components/verdocs-passcode-dialog.js +1 -1
  165. package/dist/components/verdocs-preview.js +1 -1
  166. package/dist/components/verdocs-quick-filter.js +1 -1
  167. package/dist/components/verdocs-send.js +1 -1
  168. package/dist/components/verdocs-sign.js +104 -59
  169. package/dist/components/verdocs-sign.js.map +1 -1
  170. package/dist/components/verdocs-signature-dialog.js +1 -1
  171. package/dist/components/verdocs-signing-progress.js +97 -1
  172. package/dist/components/verdocs-signing-progress.js.map +1 -1
  173. package/dist/components/verdocs-template-attachments.js +1 -1
  174. package/dist/components/verdocs-template-build-tabs.js +1 -1
  175. package/dist/components/verdocs-template-document-page.js +1 -1
  176. package/dist/components/verdocs-template-field-properties.js +1 -1
  177. package/dist/components/verdocs-template-fields.js +1 -1
  178. package/dist/components/verdocs-template-role-properties.js +1 -1
  179. package/dist/components/verdocs-template-roles.js +1 -1
  180. package/dist/components/verdocs-template-settings.js +1 -1
  181. package/dist/components/verdocs-templates-list.js +2 -2
  182. package/dist/components/verdocs-text-input.js +1 -1
  183. package/dist/components/verdocs-view.js +1 -1
  184. package/dist/custom-elements.json +2507 -0
  185. package/dist/{components/p-Du758Jse.js → esm/Icons-uiSvPcsq.js} +4 -3
  186. package/dist/{cjs/Icons-Dr02rZHd.js.map → esm/Icons-uiSvPcsq.js.map} +1 -1
  187. package/dist/esm/{Toast-CyvDgtoV.js → Toast-D97GxsI-.js} +7 -3
  188. package/dist/esm/{Toast-CyvDgtoV.js.map → Toast-D97GxsI-.js.map} +1 -1
  189. package/dist/esm/index-BIRwgFLv.js +6 -2
  190. package/dist/esm/loader.js +1 -1
  191. package/dist/esm/{utils-Deu82Q9L.js → utils-CerrMWqr.js} +12 -7
  192. package/dist/esm/utils-CerrMWqr.js.map +1 -0
  193. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-view.entry.js.map +1 -0
  194. package/dist/esm/{verdocs-adopt-signature-dialog_8.entry.js → verdocs-adopt-signature-dialog_7.entry.js} +5 -75
  195. package/dist/esm/verdocs-auth.entry.js +3 -4
  196. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  197. package/dist/esm/verdocs-button_3.entry.js +1 -1
  198. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  199. package/dist/esm/verdocs-date-input.entry.js +1 -1
  200. package/dist/esm/verdocs-download-dialog_4.entry.js +1 -1
  201. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  202. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  203. package/dist/esm/verdocs-envelopes-list.entry.js +2 -2
  204. package/dist/esm/verdocs-field-attachment_11.entry.js +63 -2
  205. package/dist/esm/verdocs-field-payment.entry.js +9 -1
  206. package/dist/esm/verdocs-field-payment.entry.js.map +1 -1
  207. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  208. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  209. package/dist/esm/verdocs-preview_7.entry.js +3 -3
  210. package/dist/esm/verdocs-sign.entry.js +60 -9
  211. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  212. package/dist/{components/p-DsyPm0eu.js → esm/verdocs-signing-progress.entry.js} +11 -38
  213. package/dist/esm/verdocs-signing-progress.entry.js.map +1 -0
  214. package/dist/esm/verdocs-template-document-page.verdocs-toolbar-icon.entry.js.map +1 -1
  215. package/dist/esm/verdocs-template-document-page_2.entry.js +11 -11
  216. package/dist/esm/verdocs-web-sdk.js +1 -1
  217. package/dist/esm-es5/{Icons-COC8ZzcY.js → Icons-uiSvPcsq.js} +2 -2
  218. package/dist/{esm/Icons-COC8ZzcY.js.map → esm-es5/Icons-uiSvPcsq.js.map} +1 -1
  219. package/dist/esm-es5/{Toast-CyvDgtoV.js → Toast-D97GxsI-.js} +2 -2
  220. package/dist/esm-es5/{Toast-CyvDgtoV.js.map → Toast-D97GxsI-.js.map} +1 -1
  221. package/dist/esm-es5/index-BIRwgFLv.js +1 -1
  222. package/dist/esm-es5/loader.js +1 -1
  223. package/dist/esm-es5/utils-CerrMWqr.js +2 -0
  224. package/dist/esm-es5/utils-CerrMWqr.js.map +1 -0
  225. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-view.entry.js.map +1 -0
  226. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +2 -0
  227. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -0
  228. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  229. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  230. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  231. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  232. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  233. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  234. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  235. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  236. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  237. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  238. package/dist/esm-es5/verdocs-field-attachment_11.entry.js.map +1 -1
  239. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  240. package/dist/esm-es5/verdocs-field-payment.entry.js.map +1 -1
  241. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  242. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  243. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  244. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  245. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  246. package/dist/esm-es5/verdocs-signing-progress.entry.js +2 -0
  247. package/dist/esm-es5/verdocs-signing-progress.entry.js.map +1 -0
  248. package/dist/esm-es5/verdocs-template-document-page.verdocs-toolbar-icon.entry.js.map +1 -1
  249. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  250. package/dist/esm-es5/verdocs-template-document-page_2.entry.js.map +1 -1
  251. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  252. package/dist/globals.css +25 -0
  253. package/dist/overrides.css +4 -0
  254. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +4 -6
  255. package/dist/types/components/fields/verdocs-field-attachment/verdocs-field-attachment.d.ts +5 -0
  256. package/dist/types/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +5 -0
  257. package/dist/types/components/fields/verdocs-field-date/verdocs-field-date.d.ts +5 -0
  258. package/dist/types/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +7 -1
  259. package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +5 -0
  260. package/dist/types/components/fields/verdocs-field-payment/verdocs-field-payment.d.ts +5 -0
  261. package/dist/types/components/fields/verdocs-field-radio/verdocs-field-radio.d.ts +5 -0
  262. package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +5 -0
  263. package/dist/types/components/fields/verdocs-field-textarea/verdocs-field-textarea.d.ts +5 -0
  264. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +5 -0
  265. package/dist/types/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +5 -0
  266. package/dist/types/components.d.ts +90 -22
  267. package/dist/types/utils/Icons.d.ts +1 -0
  268. package/dist/verdocs-web-sdk/{p-B1XDpnEI.system.js.map → p-0-YdlCL1.system.js.map} +1 -1
  269. package/dist/verdocs-web-sdk/{p-056535b3.entry.js → p-048d4433.entry.js} +2 -2
  270. package/dist/verdocs-web-sdk/p-066b9068.entry.js +2 -0
  271. package/dist/verdocs-web-sdk/p-066b9068.entry.js.map +1 -0
  272. package/dist/verdocs-web-sdk/p-0c24c1b8.entry.js +2 -0
  273. package/dist/verdocs-web-sdk/p-0c24c1b8.entry.js.map +1 -0
  274. package/dist/verdocs-web-sdk/{p-ec6cde3b.entry.js → p-178ccb4a.entry.js} +2 -2
  275. package/dist/verdocs-web-sdk/{p-12cddd31.system.entry.js → p-1c2f170a.system.entry.js} +2 -2
  276. package/dist/verdocs-web-sdk/{p-cc45f0ef.system.entry.js → p-3295f0be.system.entry.js} +2 -2
  277. package/dist/verdocs-web-sdk/{p-890af2e3.system.entry.js → p-333d4a2e.system.entry.js} +2 -2
  278. package/dist/verdocs-web-sdk/p-46b44d60.entry.js +2 -0
  279. package/dist/verdocs-web-sdk/p-46b44d60.entry.js.map +1 -0
  280. package/dist/verdocs-web-sdk/{p-178d03a6.system.entry.js → p-49cd823f.system.entry.js} +2 -2
  281. package/dist/verdocs-web-sdk/{p-8113ca1b.entry.js → p-4d0a53c0.entry.js} +2 -2
  282. package/dist/verdocs-web-sdk/p-4d2642f5.system.entry.js +2 -0
  283. package/dist/verdocs-web-sdk/p-4d2642f5.system.entry.js.map +1 -0
  284. package/dist/verdocs-web-sdk/{p-c1b0b0a8.entry.js → p-5340c596.entry.js} +2 -2
  285. package/dist/verdocs-web-sdk/{p-4671fd0b.entry.js → p-53be15dc.entry.js} +2 -2
  286. package/dist/verdocs-web-sdk/p-56bb100f.system.entry.js +2 -0
  287. package/dist/verdocs-web-sdk/p-56bb100f.system.entry.js.map +1 -0
  288. package/dist/verdocs-web-sdk/{p-54570885.system.entry.js → p-59243cd3.system.entry.js} +3 -3
  289. package/dist/verdocs-web-sdk/p-59243cd3.system.entry.js.map +1 -0
  290. package/dist/verdocs-web-sdk/{p-7c7ce93e.system.entry.js → p-63c0f31d.system.entry.js} +2 -2
  291. package/dist/verdocs-web-sdk/p-64b9e2de.entry.js +2 -0
  292. package/dist/verdocs-web-sdk/p-64b9e2de.entry.js.map +1 -0
  293. package/dist/verdocs-web-sdk/{p-3f43a818.system.entry.js → p-69e35ea8.system.entry.js} +2 -2
  294. package/dist/verdocs-web-sdk/{p-c3557409.entry.js → p-72ff97d7.entry.js} +3 -3
  295. package/dist/verdocs-web-sdk/{p-2d393705.entry.js → p-7a086c18.entry.js} +2 -2
  296. package/dist/verdocs-web-sdk/p-7f7da7d6.system.entry.js +2 -0
  297. package/dist/verdocs-web-sdk/p-7f7da7d6.system.entry.js.map +1 -0
  298. package/dist/verdocs-web-sdk/{p-04fcf283.entry.js → p-8b2d4ca5.entry.js} +3 -3
  299. package/dist/verdocs-web-sdk/{p-04fcf283.entry.js.map → p-8b2d4ca5.entry.js.map} +1 -1
  300. package/dist/verdocs-web-sdk/p-B-lvFg2a.system.js.map +1 -0
  301. package/dist/verdocs-web-sdk/p-B390zQJa.js +2 -0
  302. package/dist/verdocs-web-sdk/p-B390zQJa.js.map +1 -0
  303. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  304. package/dist/verdocs-web-sdk/p-BREkr6mU.system.js.map +1 -0
  305. package/dist/verdocs-web-sdk/p-BWHKc078.system.js.map +1 -0
  306. package/dist/verdocs-web-sdk/{p-DZCgLJyz.system.js.map → p-BcNo_mbk.system.js.map} +1 -1
  307. package/dist/verdocs-web-sdk/p-BjX323yE.system.js.map +1 -0
  308. package/dist/verdocs-web-sdk/{p-CYt-EjVy.system.js.map → p-BnNnWnOr.system.js.map} +1 -1
  309. package/dist/verdocs-web-sdk/p-C-5pmv-B.system.js.map +1 -0
  310. package/dist/verdocs-web-sdk/{p-CLk8bJUK.system.js.map → p-C0HruX7m.system.js.map} +1 -1
  311. package/dist/verdocs-web-sdk/{p-32jbwDH-.system.js.map → p-CC3ukJv1.system.js.map} +1 -1
  312. package/dist/verdocs-web-sdk/{p-H1Tf5vYL.system.js.map → p-CEiXLEdr.system.js.map} +1 -1
  313. package/dist/verdocs-web-sdk/p-CVkABARN.system.js.map +1 -0
  314. package/dist/verdocs-web-sdk/{p-B4iIFpTv.system.js.map → p-CWh-S6N5.system.js.map} +1 -1
  315. package/dist/verdocs-web-sdk/{p--IsJSUgl.system.js.map → p-CY7jihMi.system.js.map} +1 -1
  316. package/dist/verdocs-web-sdk/{p-CyvDgtoV.js → p-D97GxsI-.js} +2 -2
  317. package/dist/verdocs-web-sdk/{p-CyvDgtoV.js.map → p-D97GxsI-.js.map} +1 -1
  318. package/dist/verdocs-web-sdk/{p-DwOCgVjl.system.js → p-DejNzlEq.system.js} +2 -2
  319. package/dist/verdocs-web-sdk/{p-DwOCgVjl.system.js.map → p-DejNzlEq.system.js.map} +1 -1
  320. package/dist/verdocs-web-sdk/{p-CrzDCQEM.system.js → p-Dj475wLP.system.js} +2 -2
  321. package/dist/verdocs-web-sdk/{p-CrzDCQEM.system.js.map → p-Dj475wLP.system.js.map} +1 -1
  322. package/dist/verdocs-web-sdk/{p-Bz9aRrx5.system.js.map → p-ESsv28K0.system.js.map} +1 -1
  323. package/dist/verdocs-web-sdk/{p-DiSsW5Ao.system.js.map → p-H6g35dUh.system.js.map} +1 -1
  324. package/dist/verdocs-web-sdk/p-LGooaeHw.system.js.map +1 -0
  325. package/dist/verdocs-web-sdk/p-b2108c5c.system.entry.js +2 -0
  326. package/dist/verdocs-web-sdk/p-b2108c5c.system.entry.js.map +1 -0
  327. package/dist/verdocs-web-sdk/p-b5db2ed4.entry.js +2 -0
  328. package/dist/verdocs-web-sdk/p-b5db2ed4.entry.js.map +1 -0
  329. package/dist/verdocs-web-sdk/p-be9c544d.system.entry.js +2 -0
  330. package/dist/verdocs-web-sdk/p-be9c544d.system.entry.js.map +1 -0
  331. package/dist/verdocs-web-sdk/p-bf7fb952.entry.js +2 -0
  332. package/dist/verdocs-web-sdk/p-bf7fb952.entry.js.map +1 -0
  333. package/dist/verdocs-web-sdk/{p-648b7df3.entry.js → p-c0c4b822.entry.js} +2 -2
  334. package/dist/verdocs-web-sdk/p-cec41aeb.entry.js +2 -0
  335. package/dist/verdocs-web-sdk/p-cec41aeb.entry.js.map +1 -0
  336. package/dist/verdocs-web-sdk/p-d026af3f.system.entry.js +2 -0
  337. package/dist/verdocs-web-sdk/p-d026af3f.system.entry.js.map +1 -0
  338. package/dist/verdocs-web-sdk/p-d4cfa91a.system.entry.js +2 -0
  339. package/dist/verdocs-web-sdk/p-d4cfa91a.system.entry.js.map +1 -0
  340. package/dist/verdocs-web-sdk/{p-9041335d.system.entry.js → p-e4b13df9.system.entry.js} +2 -2
  341. package/dist/verdocs-web-sdk/p-e4b13df9.system.entry.js.map +1 -0
  342. package/dist/verdocs-web-sdk/{p-9ec65cad.system.entry.js → p-f1ca6e1c.system.entry.js} +2 -2
  343. package/dist/verdocs-web-sdk/{p-fb2a67ee.system.entry.js → p-f4c4a49e.system.entry.js} +2 -2
  344. package/dist/verdocs-web-sdk/p-f4c4a49e.system.entry.js.map +1 -0
  345. package/dist/verdocs-web-sdk/p-f589tneI.system.js +2 -0
  346. package/dist/verdocs-web-sdk/p-f589tneI.system.js.map +1 -0
  347. package/dist/verdocs-web-sdk/{p-63c200f1.entry.js → p-fe5aabfb.entry.js} +2 -2
  348. package/dist/verdocs-web-sdk/{p-COC8ZzcY.js → p-uiSvPcsq.js} +2 -2
  349. package/dist/verdocs-web-sdk/{p-COC8ZzcY.js.map → p-uiSvPcsq.js.map} +1 -1
  350. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-view.entry.esm.js.map +1 -0
  351. package/dist/verdocs-web-sdk/verdocs-auth.entry.esm.js.map +1 -1
  352. package/dist/verdocs-web-sdk/verdocs-field-payment.entry.esm.js.map +1 -1
  353. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  354. package/dist/verdocs-web-sdk/verdocs-signing-progress.entry.esm.js.map +1 -0
  355. package/dist/verdocs-web-sdk/verdocs-template-document-page.verdocs-toolbar-icon.entry.esm.js.map +1 -1
  356. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -1
  357. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  358. package/package.json +2 -2
  359. package/dist/cjs/utils-DjHWIYcY.js.map +0 -1
  360. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +0 -1
  361. package/dist/components/p-BFALqJGq.js.map +0 -1
  362. package/dist/components/p-BnrYh7lb.js.map +0 -1
  363. package/dist/components/p-Bpu-zxZH.js.map +0 -1
  364. package/dist/components/p-CC0KCzJ2.js.map +0 -1
  365. package/dist/components/p-CStsF8-Q.js.map +0 -1
  366. package/dist/components/p-CbqdqC8j.js.map +0 -1
  367. package/dist/components/p-CdaVcvEc.js.map +0 -1
  368. package/dist/components/p-Ct99f25g.js.map +0 -1
  369. package/dist/components/p-CxGK9zOT.js.map +0 -1
  370. package/dist/components/p-CyvDgtoV.js.map +0 -1
  371. package/dist/components/p-DcLwCcej.js.map +0 -1
  372. package/dist/components/p-Dk8BEvRP.js.map +0 -1
  373. package/dist/components/p-DsyPm0eu.js.map +0 -1
  374. package/dist/components/p-jeLHHnry.js.map +0 -1
  375. package/dist/esm/utils-Deu82Q9L.js.map +0 -1
  376. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +0 -1
  377. package/dist/esm-es5/Icons-COC8ZzcY.js.map +0 -1
  378. package/dist/esm-es5/utils-Deu82Q9L.js +0 -2
  379. package/dist/esm-es5/utils-Deu82Q9L.js.map +0 -1
  380. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +0 -1
  381. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +0 -2
  382. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js.map +0 -1
  383. package/dist/verdocs-web-sdk/p-135a0f52.system.entry.js +0 -2
  384. package/dist/verdocs-web-sdk/p-135a0f52.system.entry.js.map +0 -1
  385. package/dist/verdocs-web-sdk/p-2b82e085.entry.js +0 -2
  386. package/dist/verdocs-web-sdk/p-2b82e085.entry.js.map +0 -1
  387. package/dist/verdocs-web-sdk/p-43517ad0.entry.js +0 -2
  388. package/dist/verdocs-web-sdk/p-43517ad0.entry.js.map +0 -1
  389. package/dist/verdocs-web-sdk/p-442d1d67.entry.js +0 -2
  390. package/dist/verdocs-web-sdk/p-442d1d67.entry.js.map +0 -1
  391. package/dist/verdocs-web-sdk/p-4b154306.system.entry.js +0 -2
  392. package/dist/verdocs-web-sdk/p-4b154306.system.entry.js.map +0 -1
  393. package/dist/verdocs-web-sdk/p-54570885.system.entry.js.map +0 -1
  394. package/dist/verdocs-web-sdk/p-54ba1ad7.entry.js +0 -2
  395. package/dist/verdocs-web-sdk/p-54ba1ad7.entry.js.map +0 -1
  396. package/dist/verdocs-web-sdk/p-61c4fa10.entry.js +0 -2
  397. package/dist/verdocs-web-sdk/p-61c4fa10.entry.js.map +0 -1
  398. package/dist/verdocs-web-sdk/p-66a7ac9e.system.entry.js +0 -2
  399. package/dist/verdocs-web-sdk/p-66a7ac9e.system.entry.js.map +0 -1
  400. package/dist/verdocs-web-sdk/p-9041335d.system.entry.js.map +0 -1
  401. package/dist/verdocs-web-sdk/p-BgKRsvh1.system.js +0 -2
  402. package/dist/verdocs-web-sdk/p-BgKRsvh1.system.js.map +0 -1
  403. package/dist/verdocs-web-sdk/p-BhSJlV9V.system.js.map +0 -1
  404. package/dist/verdocs-web-sdk/p-CUAJG_9-.system.js.map +0 -1
  405. package/dist/verdocs-web-sdk/p-CvP5xl4d.system.js.map +0 -1
  406. package/dist/verdocs-web-sdk/p-D1_QXyvS.system.js.map +0 -1
  407. package/dist/verdocs-web-sdk/p-DmMl-ZBy.system.js.map +0 -1
  408. package/dist/verdocs-web-sdk/p-bd84c406.entry.js +0 -2
  409. package/dist/verdocs-web-sdk/p-bd84c406.entry.js.map +0 -1
  410. package/dist/verdocs-web-sdk/p-c9065579.system.entry.js +0 -2
  411. package/dist/verdocs-web-sdk/p-c9065579.system.entry.js.map +0 -1
  412. package/dist/verdocs-web-sdk/p-d8b02448.system.entry.js +0 -2
  413. package/dist/verdocs-web-sdk/p-d8b02448.system.entry.js.map +0 -1
  414. package/dist/verdocs-web-sdk/p-fb2a67ee.system.entry.js.map +0 -1
  415. package/dist/verdocs-web-sdk/p-fb51cfc3.system.entry.js +0 -2
  416. package/dist/verdocs-web-sdk/p-fb51cfc3.system.entry.js.map +0 -1
  417. package/dist/verdocs-web-sdk/p-oC6bZSel.js +0 -2
  418. package/dist/verdocs-web-sdk/p-oC6bZSel.js.map +0 -1
  419. package/dist/verdocs-web-sdk/p-r1Xitom6.system.js.map +0 -1
  420. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +0 -1
  421. /package/dist/verdocs-web-sdk/{p-056535b3.entry.js.map → p-048d4433.entry.js.map} +0 -0
  422. /package/dist/verdocs-web-sdk/{p-ec6cde3b.entry.js.map → p-178ccb4a.entry.js.map} +0 -0
  423. /package/dist/verdocs-web-sdk/{p-12cddd31.system.entry.js.map → p-1c2f170a.system.entry.js.map} +0 -0
  424. /package/dist/verdocs-web-sdk/{p-cc45f0ef.system.entry.js.map → p-3295f0be.system.entry.js.map} +0 -0
  425. /package/dist/verdocs-web-sdk/{p-890af2e3.system.entry.js.map → p-333d4a2e.system.entry.js.map} +0 -0
  426. /package/dist/verdocs-web-sdk/{p-178d03a6.system.entry.js.map → p-49cd823f.system.entry.js.map} +0 -0
  427. /package/dist/verdocs-web-sdk/{p-8113ca1b.entry.js.map → p-4d0a53c0.entry.js.map} +0 -0
  428. /package/dist/verdocs-web-sdk/{p-c1b0b0a8.entry.js.map → p-5340c596.entry.js.map} +0 -0
  429. /package/dist/verdocs-web-sdk/{p-4671fd0b.entry.js.map → p-53be15dc.entry.js.map} +0 -0
  430. /package/dist/verdocs-web-sdk/{p-7c7ce93e.system.entry.js.map → p-63c0f31d.system.entry.js.map} +0 -0
  431. /package/dist/verdocs-web-sdk/{p-3f43a818.system.entry.js.map → p-69e35ea8.system.entry.js.map} +0 -0
  432. /package/dist/verdocs-web-sdk/{p-c3557409.entry.js.map → p-72ff97d7.entry.js.map} +0 -0
  433. /package/dist/verdocs-web-sdk/{p-2d393705.entry.js.map → p-7a086c18.entry.js.map} +0 -0
  434. /package/dist/verdocs-web-sdk/{p-648b7df3.entry.js.map → p-c0c4b822.entry.js.map} +0 -0
  435. /package/dist/verdocs-web-sdk/{p-9ec65cad.system.entry.js.map → p-f1ca6e1c.system.entry.js.map} +0 -0
  436. /package/dist/verdocs-web-sdk/{p-63c200f1.entry.js.map → p-fe5aabfb.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o["throw"](e))}catch(e){s(e)}}function d(e){e.done?t(e.value):i(e.value).then(r,a)}d((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,i,s,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(n){return d([e,n])}}function d(a){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(o=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=n.call(e,t)}catch(e){a=[6,e];i=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-BO6MZhlp.system.js","@verdocs/js-sdk","./p-BgKRsvh1.system.js","./p-7Iu0_GGa.system.js","./p-lEpx1l-p.system.js","./p-DmF0GSqu.system.js","./p-C2OP3llY.system.js"],(function(e){"use strict";var n,t,o,i,s,r,a,d,l,c,f;return{setters:[function(e){n=e.r;t=e.c;o=e.h;i=e.H;s=e.g},function(e){r=e.VerdocsEndpoint;a=e.getEnvelopeDocumentPageDisplayUri;d=e.getEnvelope},function(e){l=e.t},function(e){c=e.S},function(e){f=e.S},null,null],execute:function(){var u='verdocs-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-download-dialog .heading-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;padding:0 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:12px 15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:36px;height:36px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:18px;height:18px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .status-indicator{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:2px;font-size:11px;color:#9ca3af;min-width:50px}verdocs-download-dialog .status-indicator .signed{color:#10b981}verdocs-download-dialog .status-indicator .spinner-inline{display:-ms-flexbox;display:flex;color:#9ca3af;-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}verdocs-download-dialog .status-indicator svg{width:16px;height:16px}verdocs-download-dialog .info-message{font-size:13px;color:#6b7280;font-style:italic;padding:0 4px}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';var v='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var h='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var b='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var p='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var g='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23 4V10H17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.49 15A9 9 0 1 1 21.23 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var x=e("verdocs_download_dialog",function(){function e(e){n(this,e);this.download=t(this,"download");this.exit=t(this,"exit");this.signed=false;this.polling=false;this.documents=[];this.hasCertificate=false}e.prototype.handleOptionClick=function(e,n){var t=this.documents.some((function(e){return e.type==="certificate"}))||this.hasCertificate;var o=this.signed&&t;if(e==="certificate"&&!o){return}if(e==="zip"&&(this.polling||!o)){return}this.download.emit({action:e,documentId:n})};e.prototype.render=function(){var e=this;var n=this.documents.filter((function(e){return e.type==="attachment"})).sort((function(e,n){return e.order!==n.order?e.order-n.order:e.created_at.localeCompare(n.created_at)}));var t=this.documents.some((function(e){return e.type==="certificate"}))||this.hasCertificate;var i=this.signed&&t;var s=!this.polling&&i;var r=!this.signed;return o("verdocs-dialog",{key:"bbeaf815bfa639d92aba937fb2932171fb6a969d",onExit:function(){return e.exit.emit()}},o("div",{key:"3baaed7a0448b0b4487baf09996b0c0eed8dcc32",slot:"heading",class:"heading-container"},o("h3",{key:"055f9b0b3a1cbc4bf1dde3f66d33afe3cd69c59a",style:{margin:"0",fontSize:"1.25rem",fontWeight:"600",padding:"16px 24px"}},"Download")),o("div",{key:"d02a5cadb9e6ccc26f42d11a04d11c8796553137",slot:"content",class:"content"},n.length<=2&&n.map((function(n){return o("div",{class:"download-option",onClick:function(){return e.handleOptionClick("document",n.id)}},o("div",{class:"icon-container",innerHTML:v}),o("div",{class:"text-container"},o("div",{class:"label"},n.name),o("div",{class:"description"},"Download the document")),r?o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g})):o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Signed")))})),n.length>2&&o("div",{key:"445d03fccd38d54dfce8b32528dd4ff869729b71",class:"info-message"},"Multiple documents attached. Please use the ZIP option below to download all files."),o("div",{key:"82d95c21a9a16ab3536f85054e43333e44af83d0",class:{"download-option":true,disabled:!i},onClick:function(){return e.handleOptionClick("certificate")},title:!i?"Certificate not yet available":""},o("div",{key:"adc703860b88d7fa5cd945ed8a6436eaac4e0186",class:"icon-container",innerHTML:h}),o("div",{key:"36f00a3cf54559157cd472700d0d6c8ad6fea55e",class:"text-container"},o("div",{key:"f2329e85febf992f0ea1a601a7c355063f196942",class:"label"},"Certificate"),o("div",{key:"9a9d90b9f55884fbfca9d289a753121737b07c0c",class:"description"},"Download the certificate")),i?o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Ready")):o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g}))),o("div",{key:"05381515775fefc45fb04e935ece500a14fff159",class:{"download-option":true,disabled:!s},onClick:function(){return e.handleOptionClick("zip")},title:!s?"Waiting for all documents to be ready":""},o("div",{key:"e260f34177dde5d0994f593662c98f223f890da2",class:"icon-container",innerHTML:b}),o("div",{key:"44a9a16e8c3a02449d331b9d74603ea8cfcd570b",class:"text-container"},o("div",{key:"54d968ac458d60d1aac7c39c3206069317bf67a3",class:"label"},"All Files"),o("div",{key:"b5f7246c36b12d83fdb63d7e38e90957fec3dd32",class:"description"},"Download everything as a ZIP file")),s?o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Ready")):o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g})))),o("div",{key:"e8f9a266b2b1302bc4a4170803737ce6c3cece6c",slot:"footer",style:{display:"none"}}))};return e}());x.style=u;var w="verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var k=e("verdocs_envelope_document_page",function(){function e(e){n(this,e);this.pageRendered=t(this,"pageRendered");this.endpoint=r.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=this;return[4,a(this.endpoint,this.documentId,this.pageNumber,this.type)];case 1:e.pageDisplayUri=n.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(l((function(n){for(var t=0,o=n;t<o.length;t++){var i=o[t];var s=i.contentRect.width;e.renderedWidth=s;e.renderedHeight=e.virtualHeight*(s/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var n="".concat(this.renderedHeight,"px");return o(i,{key:"633b71e22df815319ad854618b74b035a6e43603",id:"".concat(this.containerId),style:{height:n,flex:"0 0 ".concat(n)}},this.layers.map((function(t){return t.type==="div"?o("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(e.containerId,"-").concat(t.name),style:{height:n}}):e.pageDisplayUri?o("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(e.containerId,"-").concat(t.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(n){e.naturalWidth=n.target.naturalWidth;e.naturalHeight=n.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=n.target.offsetWidth/e.aspectRatio}}):o("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());k.style=w;var m='verdocs-question-dialog{top:0;left:0;right:0;bottom:0;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-question-dialog.closed{display:none}verdocs-question-dialog textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:14px;padding:9px;outline:none}verdocs-question-dialog .heading .title{font-size:18px}verdocs-question-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;border-radius:6px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button.cancel{background-color:#654dcb}verdocs-question-dialog .buttons button.ok{background-color:#55bc81}verdocs-question-dialog .buttons button.ok.single{max-width:150px}verdocs-question-dialog .buttons button:disabled{background-color:#6c727f}';var y='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#ffffff"/></svg>';var C=e("verdocs_question_dialog",function(){function e(e){n(this,e);this.next=t(this,"next");this.exit=t(this,"exit");this.question="";this.closed=false}e.prototype.handleOk=function(){this.next.emit({question:this.question})};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return o("verdocs-dialog",{key:"d0e85744fa9901d1be794cd59f4c9b87922e6e91",onExit:function(n){return e.handleDismiss(n)}},o("div",{key:"6d7ead703cdf217588ac98d2ac93a35644838b78",slot:"heading",class:"heading"},o("div",{key:"d07c6155fc98f51204a51add33d82afec7592c4b",class:"icon",innerHTML:y}),o("div",{key:"e9698d0aa4b24db343afd149adee95d9c3c0a52a",class:"title"},"Ask the Sender a Question")),o("div",{key:"cdef7a2b00c4c66e1748733e3c614e39ad456192",slot:"content",class:"content"},o("textarea",{key:"81c88e1d61be54e7ba80c9101fb71bf903df8d1c",name:"question",rows:6,placeholder:"Enter your question...",onInput:function(n){return e.question=n.target.value}},this.question)),o("div",{key:"a7d5a31362337e6c80c0ac5b2c6471efbacb9a23",class:"footer",slot:"footer"},o("div",{key:"71ae8344f053cfd94dc6befed76933fe67f490d1",class:"buttons"},o("button",{key:"04aec379b7b4f21885f72ed2016b10ac26730476",class:"cancel",onClick:function(){return e.handleCancel()}},"Cancel"),o("button",{key:"6e6e8bb27367c9a1167a49519da299d9ce9ee983",class:"ok",onClick:function(){return e.handleOk()}},"OK"))))};return e}());C.style=m;var L='verdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: -ms-flexbox;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-family: var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);\n -webkit-transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n}\nverdocs-sign-footer a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n}\nverdocs-sign-footer.loading {\n display: none;\n}\nverdocs-sign-footer .powered-by {\n white-space: nowrap;\n}\nverdocs-sign-footer .buttons {\n -ms-flex: 0;\n flex: 0;\n gap: 16px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .buttons button {\n gap: 4px;\n border: none;\n display: -ms-flexbox;\n display: flex;\n outline: none;\n cursor: pointer;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n background: transparent;\n}\nverdocs-sign-footer .buttons div {\n gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .links {\n -ms-flex: 0;\n flex: 0;\n gap: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n}\nverdocs-sign-footer.just-buttons .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n}\n@container (max-width: 720px) {\n verdocs-sign-footer.has-buttons .powered-by {\n display: none;\n }\n}\n@container (max-width: 540px) {\n verdocs-sign-footer.no-buttons .powered-by {\n display: none;\n }\n verdocs-sign-footer.has-buttons .links {\n display: none;\n }\n verdocs-sign-footer .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n }\n}';var H='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#424242"/></svg>';var M='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z" fill="#424242"/></svg>';var j='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z" fill="#424242"/></svg>';var V=e("verdocs_sign_footer",function(){function e(e){n(this,e);this.askQuestion=t(this,"askQuestion");this.decline=t(this,"decline");this.finishLater=t(this,"finishLater");this.sdkError=t(this,"sdkError");this.envelopeListenerId=null;this.endpoint=r.getDefault();this.envelopeId="";this.isDone=false;this.askingQuestion=false;this.declinine=false;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t;return __generator(this,(function(o){try{if(!this.envelopeId){console.log("[FOOTER] Missing required envelope ID ".concat(this.envelopeId));return[2]}this.listenToEnvelope()}catch(o){console.log("[FOOTER] Error loading envelope",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(o.message,(n=o.response)===null||n===void 0?void 0:n.status,(t=o.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(n){console.log("[FOOTER] Loading envelope",this.envelopeId);this.unlistenToEnvelope();f.subscribe("envelopes",this.envelopeId,(function(){return d(e.endpoint,e.envelopeId)}),false,(function(n){e.envelope=n}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){f.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.render=function(){var e=this;var n,t,s,r,a,d,l,c,f,u,v,h,b,p,g,x,w,k,m,y,C,L,V,_;var z=!!((t=(n=this.envelope)===null||n===void 0?void 0:n.organization)===null||t===void 0?void 0:t.powered_by_label);var q=!!((r=(s=this.envelope)===null||s===void 0?void 0:s.organization)===null||r===void 0?void 0:r.terms_use_url)||!!((d=(a=this.envelope)===null||a===void 0?void 0:a.organization)===null||d===void 0?void 0:d.privacy_policy_url);var T=!this.isDone;return o(i,{key:"1fc747454660d14e69a4a65cbf71cd81f010d9c3",class:{"has-buttons":T,"no-buttons":!T,"has-powered-by":z,"has-links":q,"just-buttons":!z&&!q}},((c=(l=this.envelope)===null||l===void 0?void 0:l.organization)===null||c===void 0?void 0:c.powered_by_label)&&o("div",{key:"f8cae910df0d2c759af9ee2200aef58b80bb3f37",class:"powered-by"},((u=(f=this.envelope)===null||f===void 0?void 0:f.organization)===null||u===void 0?void 0:u.powered_by_url)?o("a",{href:(h=(v=this.envelope)===null||v===void 0?void 0:v.organization)===null||h===void 0?void 0:h.powered_by_url,target:"_blank",rel:"noopener noreferrer"},o("span",null,(p=(b=this.envelope)===null||b===void 0?void 0:b.organization)===null||p===void 0?void 0:p.powered_by_label)):o("span",null,(x=(g=this.envelope)===null||g===void 0?void 0:g.organization)===null||x===void 0?void 0:x.powered_by_label)),!this.isDone&&o("div",{key:"06bd0f346de34e567cfa2e2e5ae8bf06a8b6a1d9",class:"buttons"},o("button",{key:"bee3e5c2aad8cc60c9b291b14bba2e5eb1ee9c32",onClick:function(){return e.askingQuestion=true}},o("span",{key:"f42932689a3330a72b61e853d389eac39b2362a3",innerHTML:H}),"Ask Sender a Question"),o("button",{key:"7012513a564bfc6d5a416467843d1056ad5427c8",onClick:function(){var n;return(n=e.decline)===null||n===void 0?void 0:n.emit()}},o("span",{key:"7e0506798239ec5935d2c98e577e482744e3aa1f",innerHTML:M}),"Decline Signing"),o("button",{key:"3b3765e04da3d7f0749f2cbc24d84f2a3b6edb47",onClick:function(){var n;return(n=e.finishLater)===null||n===void 0?void 0:n.emit()}},o("span",{key:"0511b44dc272d16fdd2d2d6098f603f651c9bc50",innerHTML:j}),"Finish Later")),o("div",{key:"cbea53ab6d84e268e1750bb0fec9f846040bd4ad",class:"links"},((k=(w=this.envelope)===null||w===void 0?void 0:w.organization)===null||k===void 0?void 0:k.terms_use_url)&&o("a",{key:"45628f09eaf2105226ab8b906e20e787de1e28ff",href:(y=(m=this.envelope)===null||m===void 0?void 0:m.organization)===null||y===void 0?void 0:y.terms_use_url,target:"_blank",rel:"noopener noreferrer"},o("span",{key:"08dc74860f84fb34c64a21c5409571998e5ce217"},"Terms of Use")),((L=(C=this.envelope)===null||C===void 0?void 0:C.organization)===null||L===void 0?void 0:L.privacy_policy_url)&&o("a",{key:"c3cc1fb07f7de02108762611c5b69206218e4b59",href:(_=(V=this.envelope)===null||V===void 0?void 0:V.organization)===null||_===void 0?void 0:_.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},o("span",{key:"c4bc436c7f7213bc0af61859ef27d8c41e331884"},"Privacy Policy"))),this.askingQuestion&&o("verdocs-question-dialog",{key:"93380ca89c21673f72c53e4d4f941b7d35c0079e",onNext:function(n){var t;(t=e.askQuestion)===null||t===void 0?void 0:t.emit({question:n.detail.question});e.askingQuestion=false},onExit:function(){return e.askingQuestion=false}}))};return e}());V.style=L}}}));
2
- //# sourceMappingURL=p-890af2e3.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,n,t,o){function i(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{d(o.next(e))}catch(e){s(e)}}function a(e){try{d(o["throw"](e))}catch(e){s(e)}}function d(e){e.done?t(e.value):i(e.value).then(r,a)}d((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,i,s,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(n){return d([e,n])}}function d(a){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(o=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;i=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){t.label=a[1];break}if(a[0]===6&&t.label<s[1]){t.label=s[1];s=a;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(a);break}if(s[2])t.ops.pop();t.trys.pop();continue}a=n.call(e,t)}catch(e){a=[6,e];i=0}finally{o=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-BO6MZhlp.system.js","@verdocs/js-sdk","./p-f589tneI.system.js","./p-7Iu0_GGa.system.js","./p-lEpx1l-p.system.js","./p-DmF0GSqu.system.js","./p-C2OP3llY.system.js"],(function(e){"use strict";var n,t,o,i,s,r,a,d,l,c,f;return{setters:[function(e){n=e.r;t=e.c;o=e.h;i=e.H;s=e.g},function(e){r=e.VerdocsEndpoint;a=e.getEnvelopeDocumentPageDisplayUri;d=e.getEnvelope},function(e){l=e.t},function(e){c=e.S},function(e){f=e.S},null,null],execute:function(){var u='verdocs-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-download-dialog .heading-container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:15px;padding:0 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:12px 15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:36px;height:36px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:18px;height:18px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .status-indicator{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:2px;font-size:11px;color:#9ca3af;min-width:50px}verdocs-download-dialog .status-indicator .signed{color:#10b981}verdocs-download-dialog .status-indicator .spinner-inline{display:-ms-flexbox;display:flex;color:#9ca3af;-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}verdocs-download-dialog .status-indicator svg{width:16px;height:16px}verdocs-download-dialog .info-message{font-size:13px;color:#6b7280;font-style:italic;padding:0 4px}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}';var v='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var h='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var b='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var p='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var g='<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23 4V10H17" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20.49 15A9 9 0 1 1 21.23 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';var x=e("verdocs_download_dialog",function(){function e(e){n(this,e);this.download=t(this,"download");this.exit=t(this,"exit");this.signed=false;this.polling=false;this.documents=[];this.hasCertificate=false}e.prototype.handleOptionClick=function(e,n){var t=this.documents.some((function(e){return e.type==="certificate"}))||this.hasCertificate;var o=this.signed&&t;if(e==="certificate"&&!o){return}if(e==="zip"&&(this.polling||!o)){return}this.download.emit({action:e,documentId:n})};e.prototype.render=function(){var e=this;var n=this.documents.filter((function(e){return e.type==="attachment"})).sort((function(e,n){return e.order!==n.order?e.order-n.order:e.created_at.localeCompare(n.created_at)}));var t=this.documents.some((function(e){return e.type==="certificate"}))||this.hasCertificate;var i=this.signed&&t;var s=!this.polling&&i;var r=!this.signed;return o("verdocs-dialog",{key:"bbeaf815bfa639d92aba937fb2932171fb6a969d",onExit:function(){return e.exit.emit()}},o("div",{key:"3baaed7a0448b0b4487baf09996b0c0eed8dcc32",slot:"heading",class:"heading-container"},o("h3",{key:"055f9b0b3a1cbc4bf1dde3f66d33afe3cd69c59a",style:{margin:"0",fontSize:"1.25rem",fontWeight:"600",padding:"16px 24px"}},"Download")),o("div",{key:"d02a5cadb9e6ccc26f42d11a04d11c8796553137",slot:"content",class:"content"},n.length<=2&&n.map((function(n){return o("div",{class:"download-option",onClick:function(){return e.handleOptionClick("document",n.id)}},o("div",{class:"icon-container",innerHTML:v}),o("div",{class:"text-container"},o("div",{class:"label"},n.name),o("div",{class:"description"},"Download the document")),r?o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g})):o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Signed")))})),n.length>2&&o("div",{key:"445d03fccd38d54dfce8b32528dd4ff869729b71",class:"info-message"},"Multiple documents attached. Please use the ZIP option below to download all files."),o("div",{key:"82d95c21a9a16ab3536f85054e43333e44af83d0",class:{"download-option":true,disabled:!i},onClick:function(){return e.handleOptionClick("certificate")},title:!i?"Certificate not yet available":""},o("div",{key:"adc703860b88d7fa5cd945ed8a6436eaac4e0186",class:"icon-container",innerHTML:h}),o("div",{key:"36f00a3cf54559157cd472700d0d6c8ad6fea55e",class:"text-container"},o("div",{key:"f2329e85febf992f0ea1a601a7c355063f196942",class:"label"},"Certificate"),o("div",{key:"9a9d90b9f55884fbfca9d289a753121737b07c0c",class:"description"},"Download the certificate")),i?o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Ready")):o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g}))),o("div",{key:"05381515775fefc45fb04e935ece500a14fff159",class:{"download-option":true,disabled:!s},onClick:function(){return e.handleOptionClick("zip")},title:!s?"Waiting for all documents to be ready":""},o("div",{key:"e260f34177dde5d0994f593662c98f223f890da2",class:"icon-container",innerHTML:b}),o("div",{key:"44a9a16e8c3a02449d331b9d74603ea8cfcd570b",class:"text-container"},o("div",{key:"54d968ac458d60d1aac7c39c3206069317bf67a3",class:"label"},"All Files"),o("div",{key:"b5f7246c36b12d83fdb63d7e38e90957fec3dd32",class:"description"},"Download everything as a ZIP file")),s?o("div",{class:"status-indicator"},o("div",{class:"signed",innerHTML:p}),o("span",null,"Ready")):o("div",{class:"status-indicator"},o("div",{class:"spinner-inline",innerHTML:g})))),o("div",{key:"e8f9a266b2b1302bc4a4170803737ce6c3cece6c",slot:"footer",style:{display:"none"}}))};return e}());x.style=u;var w="verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var k=e("verdocs_envelope_document_page",function(){function e(e){n(this,e);this.pageRendered=t(this,"pageRendered");this.endpoint=r.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=this;return[4,a(this.endpoint,this.documentId,this.pageNumber,this.type)];case 1:e.pageDisplayUri=n.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(l((function(n){for(var t=0,o=n;t<o.length;t++){var i=o[t];var s=i.contentRect.width;e.renderedWidth=s;e.renderedHeight=e.virtualHeight*(s/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var n="".concat(this.renderedHeight,"px");return o(i,{key:"633b71e22df815319ad854618b74b035a6e43603",id:"".concat(this.containerId),style:{height:n,flex:"0 0 ".concat(n)}},this.layers.map((function(t){return t.type==="div"?o("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(e.containerId,"-").concat(t.name),style:{height:n}}):e.pageDisplayUri?o("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(e.containerId,"-").concat(t.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(n){e.naturalWidth=n.target.naturalWidth;e.naturalHeight=n.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=n.target.offsetWidth/e.aspectRatio}}):o("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());k.style=w;var m='verdocs-question-dialog{top:0;left:0;right:0;bottom:0;position:fixed;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-question-dialog.closed{display:none}verdocs-question-dialog textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:14px;padding:9px;outline:none}verdocs-question-dialog .heading .title{font-size:18px}verdocs-question-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;border-radius:6px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button.cancel{background-color:#654dcb}verdocs-question-dialog .buttons button.ok{background-color:#55bc81}verdocs-question-dialog .buttons button.ok.single{max-width:150px}verdocs-question-dialog .buttons button:disabled{background-color:#6c727f}';var y='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#ffffff"/></svg>';var C=e("verdocs_question_dialog",function(){function e(e){n(this,e);this.next=t(this,"next");this.exit=t(this,"exit");this.question="";this.closed=false}e.prototype.handleOk=function(){this.next.emit({question:this.question})};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return o("verdocs-dialog",{key:"d0e85744fa9901d1be794cd59f4c9b87922e6e91",onExit:function(n){return e.handleDismiss(n)}},o("div",{key:"6d7ead703cdf217588ac98d2ac93a35644838b78",slot:"heading",class:"heading"},o("div",{key:"d07c6155fc98f51204a51add33d82afec7592c4b",class:"icon",innerHTML:y}),o("div",{key:"e9698d0aa4b24db343afd149adee95d9c3c0a52a",class:"title"},"Ask the Sender a Question")),o("div",{key:"cdef7a2b00c4c66e1748733e3c614e39ad456192",slot:"content",class:"content"},o("textarea",{key:"81c88e1d61be54e7ba80c9101fb71bf903df8d1c",name:"question",rows:6,placeholder:"Enter your question...",onInput:function(n){return e.question=n.target.value}},this.question)),o("div",{key:"a7d5a31362337e6c80c0ac5b2c6471efbacb9a23",class:"footer",slot:"footer"},o("div",{key:"71ae8344f053cfd94dc6befed76933fe67f490d1",class:"buttons"},o("button",{key:"04aec379b7b4f21885f72ed2016b10ac26730476",class:"cancel",onClick:function(){return e.handleCancel()}},"Cancel"),o("button",{key:"6e6e8bb27367c9a1167a49519da299d9ce9ee983",class:"ok",onClick:function(){return e.handleOk()}},"OK"))))};return e}());C.style=m;var L='verdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: -ms-flexbox;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-family: var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);\n -webkit-transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n}\nverdocs-sign-footer a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n}\nverdocs-sign-footer.loading {\n display: none;\n}\nverdocs-sign-footer .powered-by {\n white-space: nowrap;\n}\nverdocs-sign-footer .buttons {\n -ms-flex: 0;\n flex: 0;\n gap: 16px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .buttons button {\n gap: 4px;\n border: none;\n display: -ms-flexbox;\n display: flex;\n outline: none;\n cursor: pointer;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n background: transparent;\n}\nverdocs-sign-footer .buttons div {\n gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .links {\n -ms-flex: 0;\n flex: 0;\n gap: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n}\nverdocs-sign-footer.just-buttons .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n}\n@container (max-width: 720px) {\n verdocs-sign-footer.has-buttons .powered-by {\n display: none;\n }\n}\n@container (max-width: 540px) {\n verdocs-sign-footer.no-buttons .powered-by {\n display: none;\n }\n verdocs-sign-footer.has-buttons .links {\n display: none;\n }\n verdocs-sign-footer .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n }\n}';var H='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#424242"/></svg>';var M='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z" fill="#424242"/></svg>';var j='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z" fill="#424242"/></svg>';var V=e("verdocs_sign_footer",function(){function e(e){n(this,e);this.askQuestion=t(this,"askQuestion");this.decline=t(this,"decline");this.finishLater=t(this,"finishLater");this.sdkError=t(this,"sdkError");this.envelopeListenerId=null;this.endpoint=r.getDefault();this.envelopeId="";this.isDone=false;this.askingQuestion=false;this.declinine=false;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t;return __generator(this,(function(o){try{if(!this.envelopeId){console.log("[FOOTER] Missing required envelope ID ".concat(this.envelopeId));return[2]}this.listenToEnvelope()}catch(o){console.log("[FOOTER] Error loading envelope",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new c(o.message,(n=o.response)===null||n===void 0?void 0:n.status,(t=o.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(n){console.log("[FOOTER] Loading envelope",this.envelopeId);this.unlistenToEnvelope();f.subscribe("envelopes",this.envelopeId,(function(){return d(e.endpoint,e.envelopeId)}),false,(function(n){e.envelope=n}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){f.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.render=function(){var e=this;var n,t,s,r,a,d,l,c,f,u,v,h,b,p,g,x,w,k,m,y,C,L,V,_;var z=!!((t=(n=this.envelope)===null||n===void 0?void 0:n.organization)===null||t===void 0?void 0:t.powered_by_label);var q=!!((r=(s=this.envelope)===null||s===void 0?void 0:s.organization)===null||r===void 0?void 0:r.terms_use_url)||!!((d=(a=this.envelope)===null||a===void 0?void 0:a.organization)===null||d===void 0?void 0:d.privacy_policy_url);var T=!this.isDone;return o(i,{key:"1fc747454660d14e69a4a65cbf71cd81f010d9c3",class:{"has-buttons":T,"no-buttons":!T,"has-powered-by":z,"has-links":q,"just-buttons":!z&&!q}},((c=(l=this.envelope)===null||l===void 0?void 0:l.organization)===null||c===void 0?void 0:c.powered_by_label)&&o("div",{key:"f8cae910df0d2c759af9ee2200aef58b80bb3f37",class:"powered-by"},((u=(f=this.envelope)===null||f===void 0?void 0:f.organization)===null||u===void 0?void 0:u.powered_by_url)?o("a",{href:(h=(v=this.envelope)===null||v===void 0?void 0:v.organization)===null||h===void 0?void 0:h.powered_by_url,target:"_blank",rel:"noopener noreferrer"},o("span",null,(p=(b=this.envelope)===null||b===void 0?void 0:b.organization)===null||p===void 0?void 0:p.powered_by_label)):o("span",null,(x=(g=this.envelope)===null||g===void 0?void 0:g.organization)===null||x===void 0?void 0:x.powered_by_label)),!this.isDone&&o("div",{key:"06bd0f346de34e567cfa2e2e5ae8bf06a8b6a1d9",class:"buttons"},o("button",{key:"bee3e5c2aad8cc60c9b291b14bba2e5eb1ee9c32",onClick:function(){return e.askingQuestion=true}},o("span",{key:"f42932689a3330a72b61e853d389eac39b2362a3",innerHTML:H}),"Ask Sender a Question"),o("button",{key:"7012513a564bfc6d5a416467843d1056ad5427c8",onClick:function(){var n;return(n=e.decline)===null||n===void 0?void 0:n.emit()}},o("span",{key:"7e0506798239ec5935d2c98e577e482744e3aa1f",innerHTML:M}),"Decline Signing"),o("button",{key:"3b3765e04da3d7f0749f2cbc24d84f2a3b6edb47",onClick:function(){var n;return(n=e.finishLater)===null||n===void 0?void 0:n.emit()}},o("span",{key:"0511b44dc272d16fdd2d2d6098f603f651c9bc50",innerHTML:j}),"Finish Later")),o("div",{key:"cbea53ab6d84e268e1750bb0fec9f846040bd4ad",class:"links"},((k=(w=this.envelope)===null||w===void 0?void 0:w.organization)===null||k===void 0?void 0:k.terms_use_url)&&o("a",{key:"45628f09eaf2105226ab8b906e20e787de1e28ff",href:(y=(m=this.envelope)===null||m===void 0?void 0:m.organization)===null||y===void 0?void 0:y.terms_use_url,target:"_blank",rel:"noopener noreferrer"},o("span",{key:"08dc74860f84fb34c64a21c5409571998e5ce217"},"Terms of Use")),((L=(C=this.envelope)===null||C===void 0?void 0:C.organization)===null||L===void 0?void 0:L.privacy_policy_url)&&o("a",{key:"c3cc1fb07f7de02108762611c5b69206218e4b59",href:(_=(V=this.envelope)===null||V===void 0?void 0:V.organization)===null||_===void 0?void 0:_.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},o("span",{key:"c4bc436c7f7213bc0af61859ef27d8c41e331884"},"Privacy Policy"))),this.askingQuestion&&o("verdocs-question-dialog",{key:"93380ca89c21673f72c53e4d4f941b7d35c0079e",onNext:function(n){var t;(t=e.askQuestion)===null||t===void 0?void 0:t.emit({question:n.detail.question});e.askingQuestion=false},onExit:function(){return e.askingQuestion=false}}))};return e}());V.style=L}}}));
2
+ //# sourceMappingURL=p-333d4a2e.system.entry.js.map
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as s}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as i,createProfile as o,verifyEmail as a,authenticate as r,getMyUser as l,resendVerification as n,resetPassword as d}from"@verdocs/js-sdk";import{V as h}from"./p-D97GxsI-.js";import{S as c}from"./p-C1sRVZWv.js";const u='verdocs-auth{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{width:320px;display:-ms-flexbox;display:flex;padding:20px;max-width:90%;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-pack:center;justify-content:center;background:#ffffff}verdocs-auth .logo{width:128px;max-width:100%;margin:20px 0 30px}verdocs-auth h3{color:#092c4c;text-align:center;font-weight:400;font-size:18px;line-height:1.75;margin:0}verdocs-auth em{font-size:14px;margin:15px 0}verdocs-auth .buttons{gap:20px;margin:20px 0 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p{color:#092c4c;margin:1em 0;font-size:14px}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}verdocs-auth .already-have{color:#092c4c;margin:0.5em 0;font-size:14px}';const p=class{constructor(s){e(this,s);this.authenticated=t(this,"authenticated");this.sdkError=t(this,"sdkError");this.endpoint=i.getDefault();this.visible=true;this.logo="https://app.verdocs.com/assets/blue-logo.svg";this.displayMode="login";this.org_name="";this.first_name="";this.last_name="";this.email="";this.verificationCode="";this.newPassword="";this.password="";this.confirmpass="";this.submitting=false;this.resendDisabled=false;this.session=null;this.profile=null;this.resendDisabledTimer=null;this.tempAuthEndpoint=new i({baseURL:i.getDefault().getBaseURL(),persist:false})}componentWillLoad(){this.endpoint.loadSession();i.getDefault().onSessionChanged(((e,t,s)=>{var i,o;this.session=t;this.profile=s;if(t){(i=this.authenticated)===null||i===void 0?void 0:i.emit({authenticated:true,session:t,profile:s})}else{(o=this.authenticated)===null||o===void 0?void 0:o.emit({authenticated:false,session:t,profile:s})}}))}isPasswordComplex(e){const t=e=>/[A-Z]/.test(e);const s=e=>/[a-z]/.test(e);const i=e=>/[`!@#$%^&*()_\-+=\[\]{};':"\\|,.<>\/?~ ]/.test(e);let o=0,a=0,r=0;for(let l=0;l<e.length;l++){let n=e.charAt(l);if(t(n))o++;else if(s(n))a++;else if(i(n))r++}return e.length>=8&&a>0&&o>0&&r>0}handleSignup(){if(!this.isPasswordComplex(this.password)){h("Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.",{style:"error"});return}if(this.password!==this.confirmpass){h("Passwords do not match.",{style:"error"});return}this.submitting=true;this.tempAuthEndpoint.clearSession();o(this.tempAuthEndpoint,{email:this.email,password:this.password,first_name:this.first_name,last_name:this.last_name,org_name:this.org_name}).then((e=>{console.log("[AUTH] Profile creation result",e);this.tempAuthEndpoint.setToken(e.access_token);this.password="";this.first_name="";this.last_name="";this.org_name="";this.displayMode="verify";this.submitting=false})).catch((e=>{var t,s,i,o,a,r;console.log("[AUTH] Signup error",e.response);this.submitting=false;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,profile:null,session:null});(s=this.sdkError)===null||s===void 0?void 0:s.emit(new c(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(o=e.response)===null||o===void 0?void 0:o.data));h("Signup failed: "+((r=(a=e.response)===null||a===void 0?void 0:a.data)===null||r===void 0?void 0:r.error)||"Unknown Error",{style:"error"})}))}async handleVerification(){this.submitting=true;try{this.submitting=false;const e=await a(this.tempAuthEndpoint,{email:this.email,token:this.verificationCode});h("Thank you for verifying your email address.",{style:"success"});this.completeLogin(e)}catch(e){this.submitting=false;console.log("Verification error",e);h("Verification error, please check the code and try again.")}}completeLogin(e){this.clearForms();this.tempAuthEndpoint.clearSession();this.endpoint.setToken(e.access_token)}async loginAndCheckVerification(){var e,t,s;if(this.submitting){return}this.submitting=true;this.tempAuthEndpoint.clearSession();try{this.submitting=false;const e=await r(this.tempAuthEndpoint,{username:this.email.trim(),password:this.password,grant_type:"password"});console.log("[AUTH] Authenticated, checking email verification");this.tempAuthEndpoint.setToken(e.access_token);const t=await l(this.tempAuthEndpoint);if(!t.email_verified){console.log("[AUTH] Logged in, pending email address verification");this.displayMode="verify"}else{console.log("[AUTH] Email address is verified, completing login");this.completeLogin(e)}}catch(i){this.submitting=false;console.log("[AUTH] Auth failure",((e=i.response)===null||e===void 0?void 0:e.data)||i);h(((s=(t=i.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.message)||"Login failed. Please check your credentials and try again.",{style:"error"})}}clearForms(){this.submitting=false;this.resendDisabled=false;this.email="";this.password="";this.newPassword="";this.confirmpass="";this.verificationCode="";this.first_name="";this.last_name="";this.org_name=""}handleLogout(){console.log("logging out");this.endpoint.clearSession();this.tempAuthEndpoint.clearSession();this.clearForms();this.displayMode="login"}handleResendVerification(){this.resendDisabled=true;this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=false;this.resendDisabledTimer=null}),3e4);n(this.tempAuthEndpoint).then((e=>{console.log("[AUTH] Verification request resent",e);h("Please check your email for a verification code.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e);h("Unable to resend code. Please try again later.",{style:"error"})}))}handleResendReset(){this.resendDisabled=true;this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=false;this.resendDisabledTimer=null}),3e4);d(this.tempAuthEndpoint,{email:this.email}).then((e=>{console.log("[AUTH] Resend-code request resent",e);h("Please check your email again for a verification code.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend reset request",e);h("Unable to resend code. Please try again later.",{style:"error"})}))}async handleResetGetCode(){this.submitting=true;this.confirmpass="";this.newPassword="";try{this.submitting=false;const e=await d(this.endpoint,{email:this.email});console.log("[AUTH] Reset result",e);h("Please check your email inbox for a password reset code.",{style:"success"});this.verificationCode="";this.confirmpass="";this.newPassword="";this.displayMode="reset"}catch(e){this.submitting=false;console.log("Reset request error",e);h("Request failed. Please check your email address and try again.")}}async handleResetPassword(){if(!this.isPasswordComplex(this.newPassword)){h("Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.",{style:"error"});return}if(this.newPassword!==this.confirmpass){h("Passwords do not match.",{style:"error"});return}this.submitting=true;try{this.submitting=false;const e=await d(this.endpoint,{email:this.email,code:this.verificationCode,new_password:this.newPassword});console.log("reset result",e);h("Your password has been reset. You may now use your new password to login.",{style:"success"});this.verificationCode="";this.confirmpass="";this.newPassword="";this.password="";this.displayMode="login"}catch(e){this.submitting=false;console.log("Verification error",e);h("Verification error, please check the code and try again.")}}async handleReset(){this.submitting=true;try{const e=await d(this.endpoint,{email:this.email});console.log("[AUTH] Reset sent",e);this.submitting=false;this.displayMode="login";h("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})}catch(e){console.log("[AUTH] Unable to reset password",e);this.submitting=false;h("Unable to reset password. Please check your email address and try again.",{style:"error"})}}render(){if(!this.visible){return s("div",{style:{display:"none"}},"Authenticated")}if(this.session){return s("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})}if(this.displayMode==="signup"){const e=this.submitting||!this.first_name||!this.last_name||!this.email||!this.password||!this.confirmpass||!this.org_name;return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Sign up for a free account"),s("div",{class:"already-have"},"Already have an account?",s("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),s("form",{onSubmit:()=>this.handleSignup()},s("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},s("verdocs-text-input",{label:"First Name",autocomplete:"first",required:true,value:this.first_name,onInput:e=>this.first_name=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:true,value:this.last_name,onInput:e=>this.last_name=e.target.value,disabled:this.submitting})),s("verdocs-text-input",{label:"Email Address",autocomplete:"email",required:true,value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"new-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Confirm Password",type:"password",required:true,autocomplete:"off",value:this.confirmpass,onInput:e=>this.confirmpass=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:true,value:this.org_name,onInput:e=>this.org_name=e.target.value,disabled:this.submitting,style:{flex:"1"}}),s("div",{style:{marginTop:"30px"}}),s("verdocs-button",{label:"Next",disabled:e,onClick:e?()=>{}:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}if(this.displayMode==="verify"){return s("div",{class:"form"},s("form",{onSubmit:()=>this.handleVerification()},s("p",null,"Please check your e-mail inbox for a verification code and enter it below."),s("verdocs-text-input",{label:"Verification Code",required:true,value:this.verificationCode,onInput:e=>this.verificationCode=e.target.value,disabled:this.submitting}),s("div",{class:"buttons"},s("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>this.handleLogout()}),s("verdocs-button",{label:"Verify",disabled:this.submitting||!this.verificationCode||this.verificationCode.length!==6,onClick:()=>this.handleVerification()})),s("div",{class:"buttons"},s("verdocs-button",{variant:"text",label:"Resend Code",disabled:this.resendDisabled||this.submitting,onClick:()=>this.handleResendVerification()}))))}if(this.displayMode==="forgot"){return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Forgot your password?"),s("p",null,"Enter your e-mail address below. If the e-mail address is valid, a password reset code will be sent to your inbox. Please allow up to 15 minutes to arrive, and check your spam folder if you do not receive the message."),s("form",{onSubmit:()=>this.handleResetGetCode()},s("verdocs-text-input",{label:"Email Address",autocomplete:"email",required:true,value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("div",{style:{marginTop:"30px"}}),s("div",{class:"buttons"},s("verdocs-button",{size:"small",label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),s("verdocs-button",{size:"small",label:"Request Code",disabled:this.submitting,onClick:()=>this.handleResetGetCode()}))))}if(this.displayMode==="reset"){return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Forgot your password?"),s("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not receive the message."),s("form",{onSubmit:()=>this.handleResetPassword()},s("verdocs-text-input",{label:"Verification Code",required:true,value:this.verificationCode,onInput:e=>this.verificationCode=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"off",value:this.newPassword,onInput:e=>this.newPassword=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Confirm Password",type:"password",required:true,autocomplete:"off",value:this.confirmpass,onInput:e=>this.confirmpass=e.target.value,disabled:this.submitting}),s("div",{style:{marginTop:"30px"}}),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),s("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleResetPassword()})),s("div",{class:"buttons"},s("verdocs-button",{variant:"text",label:"Resend Code",disabled:this.resendDisabled||this.submitting,onClick:()=>this.handleResendReset()}))))}return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Log in to your account"),s("div",{class:"already-have"},"Don't have an account?",s("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.submitting})),s("form",{onSubmit:()=>this.loginAndCheckVerification()},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),s("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),s("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};p.style=u;export{p as verdocs_auth};
2
+ //# sourceMappingURL=p-46b44d60.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["registerInstance","createEvent","h","VerdocsEndpoint","createProfile","verifyEmail","authenticate","getMyUser","resendVerification","resetPassword","VerdocsToast","SDKError","verdocsAuthCss","VerdocsAuth","constructor","hostRef","this","authenticated","sdkError","endpoint","getDefault","visible","logo","displayMode","org_name","first_name","last_name","email","verificationCode","newPassword","password","confirmpass","submitting","resendDisabled","session","profile","resendDisabledTimer","tempAuthEndpoint","baseURL","getBaseURL","persist","componentWillLoad","loadSession","onSessionChanged","_endpoint","_a","_b","emit","isPasswordComplex","isUppercase","ch","test","isLowercase","isSpecialChar","countOfUpperCase","countOfLowerCase","countOfSpecialChar","i","length","charAt","handleSignup","style","clearSession","then","r","console","log","setToken","access_token","catch","e","_c","_d","_e","_f","response","message","status","data","error","handleVerification","verificationResult","token","completeLogin","result","clearForms","loginAndCheckVerification","authResult","username","trim","grant_type","user","email_verified","handleLogout","handleResendVerification","setTimeout","handleResendReset","handleResetGetCode","handleResetPassword","resetResult","code","new_password","handleReset","render","display","label","disabled","onClick","justifyContent","margin","invalid","class","href","src","alt","variant","onSubmit","flexDirection","columnGap","autocomplete","required","value","onInput","target","type","flex","marginTop","size"],"sources":["0"],"mappings":"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","ignoreList":[]}
@@ -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=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["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-BO6MZhlp.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-C2OP3llY.system.js","./p-CrzDCQEM.system.js","./p-7Iu0_GGa.system.js","./p-lEpx1l-p.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,x,k,C;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.remindRecipient;c=e.cancelEnvelope;v=e.updateRecipient;p=e.formatFullName;h=e.updateEnvelope;u=e.userIsEnvelopeOwner;f=e.getRecipientsWithActions;w=e.resetRecipient;g=e.recipientCanAct;m=e.capitalize},function(e){b=e.a},function(e){x=e.V},function(e){k=e.S},function(e){C=e.S}],execute:function(){var y='verdocs-envelope-sidebar{font-family:var(--verdocs-primary-font, "Inter", "Barlow", 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 z=24*60*60*1e3;var M='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="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 D='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="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 _='<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 B={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var V=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 k(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();C.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){C.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(){x("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);x("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":x("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":x("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);x("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";C.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;x("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){x("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);C.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){x(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(z,3*z)}};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);C.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;x(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,a,l,d,c,v,h,k,C,y,V;if(this.loading){return n(s,null)}var H=u(this.endpoint.profile,this.envelope);var E=this.prepareHistoryEntries();var j=((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";var S=f(this.envelope);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:M}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:D}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:_})),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),b)),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),b)),n("div",{class:"label"},"Status"),n("div",{class:"value"},m((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"},(C=(k=this.envelope)===null||k===void 0?void 0:k.profile)===null||C===void 0?void 0:C.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(y=this.envelope)===null||y===void 0?void 0:y.recipients.map((function(i,t){var s;var o=g(i,S);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),H&&!j&&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)))})),H&&n("div",{class:"reminders"},n("div",{class:"form-row"},n("div",{class:"reminders-label"},"Reminders"),n("verdocs-switch",{disabled:j||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:j||this.updatingReminders,value:String(Math.floor(this.initialReminder/z)),onBlur:function(i){e.initialReminder=Number(i.target.value)*z;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:j||this.updatingReminders,value:String(Math.floor(this.followupReminders/z)),onBlur:function(i){e.followupReminders=Number(i.target.value)*z;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((V=this.envelope)===null||V===void 0?void 0:V.next_reminder),"P p"))))),H&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!j},disabled:j})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),E.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:B[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,b))))}))),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(){w(e.endpoint,e.envelopeId,e.showReinviteDialog).then((function(){x("Recipient Reset",{style:"success"});e.showReinviteDialog=""})).catch((function(i){console.log("[SIDEBAR] Error resetting recipient",i);x("Error resetting recipient: "+i.message,{style:"error"});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}());V.style=y}}}));
2
- //# sourceMappingURL=p-178d03a6.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=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["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-BO6MZhlp.system.js","./p-DmF0GSqu.system.js","@verdocs/js-sdk","./p-C2OP3llY.system.js","./p-Dj475wLP.system.js","./p-7Iu0_GGa.system.js","./p-lEpx1l-p.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,x,k,C;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.remindRecipient;c=e.cancelEnvelope;v=e.updateRecipient;p=e.formatFullName;h=e.updateEnvelope;u=e.userIsEnvelopeOwner;f=e.getRecipientsWithActions;w=e.resetRecipient;g=e.recipientCanAct;m=e.capitalize},function(e){b=e.a},function(e){x=e.V},function(e){k=e.S},function(e){C=e.S}],execute:function(){var y='verdocs-envelope-sidebar{font-family:var(--verdocs-primary-font, "Inter", "Barlow", 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 z=24*60*60*1e3;var M='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="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 D='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="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 _='<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 B={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var V=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 k(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();C.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){C.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(){x("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);x("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":x("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":x("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);x("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";C.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;x("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){x("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);C.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){x(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(z,3*z)}};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);C.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;x(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,a,l,d,c,v,h,k,C,y,V;if(this.loading){return n(s,null)}var H=u(this.endpoint.profile,this.envelope);var E=this.prepareHistoryEntries();var j=((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";var L=f(this.envelope);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:M}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:D}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:_})),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),b)),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),b)),n("div",{class:"label"},"Status"),n("div",{class:"value"},m((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"},(C=(k=this.envelope)===null||k===void 0?void 0:k.profile)===null||C===void 0?void 0:C.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(y=this.envelope)===null||y===void 0?void 0:y.recipients.map((function(i,t){var s;var o=g(i,L);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),H&&!j&&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)))})),H&&n("div",{class:"reminders"},n("div",{class:"form-row"},n("div",{class:"reminders-label"},"Reminders"),n("verdocs-switch",{disabled:j||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:j||this.updatingReminders,value:String(Math.floor(this.initialReminder/z)),onBlur:function(i){e.initialReminder=Number(i.target.value)*z;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:j||this.updatingReminders,value:String(Math.floor(this.followupReminders/z)),onBlur:function(i){e.followupReminders=Number(i.target.value)*z;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((V=this.envelope)===null||V===void 0?void 0:V.next_reminder),"P p"))))),H&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!j},disabled:j})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),E.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:B[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,b))))}))),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(){w(e.endpoint,e.envelopeId,e.showReinviteDialog).then((function(){x("Recipient Reset",{style:"success"});e.showReinviteDialog=""})).catch((function(i){console.log("[SIDEBAR] Error resetting recipient",i);x("Error resetting recipient: "+i.message,{style:"error"});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}());V.style=y}}}));
2
+ //# sourceMappingURL=p-49cd823f.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as s,h as o,H as r}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as i}from"@verdocs/js-sdk";import{u as l}from"./p-COC8ZzcY.js";const a='verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';const c=class{constructor(o){e(this,o);this.fileSelected=s(this,"fileSelected");this.endpoint=i.getDefault()}handleFileChanged(e){var s,o;this.file=((s=e.target.files)===null||s===void 0?void 0:s[0])||null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)}handleSelectFile(e){var s,o;e.stopPropagation();this.file=null;(s=this.fileSelected)===null||s===void 0?void 0:s.emit({file:null});(o=document.getElementById("verdocs-file-chooser"))===null||o===void 0?void 0:o.click()}render(){const e=this.file?"Select a different file":"Select a file from your computer";return o(r,{key:"9bbcded830636b89e0b47dd545c15117c5b9f8b8"},o("input",{key:"0d8fb69380eb9391ad2e704e07abf29483ed7a01",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),o("div",{key:"ac5d2a127e5653ed80effd71e7d5b41024b931a7",class:"upload-box"},o("div",{key:"bfe87d0804272452b31461e4eb714e9336157394",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),o("div",{key:"0999c21ef1c212435cbabd7eca81f8a7463055fe",class:"or-prefer"},this.file?l:"Or, if you prefer..."),o("verdocs-button",{key:"d0b299a80d0cede99f92b06ab512053de0441011",label:e,size:"small",onClick:e=>this.handleSelectFile(e)})))}};c.style=a;const d='verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';const t=class{constructor(s){e(this,s);this.label="";this.showPercent=false;this.percent=0}render(){const e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return o(r,{key:"deb87ba92583c69d4257c9b0ac2e288c5968dcec"},o("div",{key:"6122cb2a4629aaff872b7aaa78d6c48e72a1c4a6",class:"labels"},this.label&&o("div",{key:"39d984b137bfccf228a397baf25eb94d918ba5a1",class:"label"},this.label),this.showPercent&&o("div",{key:"9e5e8d5b01fac6ad5ee539ed6ed979399e035798",class:"label"},this.percent,"%")),o("div",{key:"5a2d126da3607ab523a795139741c3490cf0b27b",class:"bar"},o("div",{key:"f58d38908e994413826c740efc343e962ec4b50a",class:"slider",style:{width:`${e}%`}})))}};t.style=d;export{c as verdocs_file_chooser,t as verdocs_progress_bar};
2
- //# sourceMappingURL=p-8113ca1b.entry.js.map
1
+ import{r as e,c as s,h as o,H as r}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as i}from"@verdocs/js-sdk";import{u as l}from"./p-uiSvPcsq.js";const a='verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';const c=class{constructor(o){e(this,o);this.fileSelected=s(this,"fileSelected");this.endpoint=i.getDefault()}handleFileChanged(e){var s,o;this.file=((s=e.target.files)===null||s===void 0?void 0:s[0])||null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)}handleSelectFile(e){var s,o;e.stopPropagation();this.file=null;(s=this.fileSelected)===null||s===void 0?void 0:s.emit({file:null});(o=document.getElementById("verdocs-file-chooser"))===null||o===void 0?void 0:o.click()}render(){const e=this.file?"Select a different file":"Select a file from your computer";return o(r,{key:"9bbcded830636b89e0b47dd545c15117c5b9f8b8"},o("input",{key:"0d8fb69380eb9391ad2e704e07abf29483ed7a01",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),o("div",{key:"ac5d2a127e5653ed80effd71e7d5b41024b931a7",class:"upload-box"},o("div",{key:"bfe87d0804272452b31461e4eb714e9336157394",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),o("div",{key:"0999c21ef1c212435cbabd7eca81f8a7463055fe",class:"or-prefer"},this.file?l:"Or, if you prefer..."),o("verdocs-button",{key:"d0b299a80d0cede99f92b06ab512053de0441011",label:e,size:"small",onClick:e=>this.handleSelectFile(e)})))}};c.style=a;const d='verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';const t=class{constructor(s){e(this,s);this.label="";this.showPercent=false;this.percent=0}render(){const e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return o(r,{key:"deb87ba92583c69d4257c9b0ac2e288c5968dcec"},o("div",{key:"6122cb2a4629aaff872b7aaa78d6c48e72a1c4a6",class:"labels"},this.label&&o("div",{key:"39d984b137bfccf228a397baf25eb94d918ba5a1",class:"label"},this.label),this.showPercent&&o("div",{key:"9e5e8d5b01fac6ad5ee539ed6ed979399e035798",class:"label"},this.percent,"%")),o("div",{key:"5a2d126da3607ab523a795139741c3490cf0b27b",class:"bar"},o("div",{key:"f58d38908e994413826c740efc343e962ec4b50a",class:"slider",style:{width:`${e}%`}})))}};t.style=d;export{c as verdocs_file_chooser,t as verdocs_progress_bar};
2
+ //# sourceMappingURL=p-4d0a53c0.entry.js.map