@verdocs/web-sdk 1.14.12 → 1.15.0

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 (317) hide show
  1. package/dist/cjs/DateTime-ec575ec3.js +45 -0
  2. package/dist/cjs/{EnvelopeStore-a4231cf7.js → EnvelopeStore-00d2572c.js} +1 -1
  3. package/dist/cjs/{Envelopes-e5ffb6a5.js → Envelopes-43302e10.js} +17 -0
  4. package/dist/cjs/{Permissions-4b710db2.js → Permissions-0229bc30.js} +14 -0
  5. package/dist/cjs/{TemplateStore-f2fb6a62.js → TemplateStore-19f84862.js} +1 -1
  6. package/dist/cjs/{index-6528b430.js → index-7c19ba1d.js} +63 -219
  7. package/dist/cjs/ipc-test.cjs.entry.js +37 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{utils-f4efefe3.js → utils-2eefb975.js} +2 -2
  10. package/dist/cjs/verdocs-activity-box.cjs.entry.js +91 -0
  11. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-dropdown.cjs.entry.js +88 -0
  16. package/dist/cjs/{verdocs-template-document-page.cjs.entry.js → verdocs-envelope-document-page.cjs.entry.js} +14 -14
  17. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +4 -4
  18. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -5
  19. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +233 -0
  20. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -3
  21. package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -3
  22. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -3
  23. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -3
  27. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +4 -4
  28. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +4 -4
  29. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-preview.cjs.entry.js +5 -5
  33. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-radio-button.cjs.entry.js +23 -0
  35. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-send.cjs.entry.js +5 -5
  37. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -4
  38. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +236 -0
  39. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +150 -0
  40. package/dist/cjs/{verdocs-template-attachments_4.cjs.entry.js → verdocs-template-fields_4.cjs.entry.js} +242 -233
  41. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  42. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +12 -2
  43. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  44. package/dist/cjs/verdocs-templates-list.cjs.entry.js +91 -0
  45. package/dist/cjs/verdocs-view.cjs.entry.js +5 -5
  46. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  47. package/dist/collection/collection-manifest.json +5 -1
  48. package/dist/collection/components/envelopes/verdocs-activity-box/verdocs-activity-box.css +130 -0
  49. package/dist/collection/components/envelopes/verdocs-activity-box/verdocs-activity-box.js +246 -0
  50. package/dist/collection/components/envelopes/verdocs-activity-box/verdocs-activity-box.stories.js +15 -0
  51. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.css +74 -0
  52. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +474 -0
  53. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.stories.js +18 -0
  54. package/dist/collection/components/other/ipctest/ipc-test.css +4 -0
  55. package/dist/collection/components/other/ipctest/ipc-test.js +79 -0
  56. package/dist/collection/components/other/ipctest/ipc-test.stories.js +8 -0
  57. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +3 -0
  58. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +246 -0
  59. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.stories.js +16 -0
  60. package/dist/components/DateTime.js +43 -0
  61. package/dist/components/Envelopes.js +17 -1
  62. package/dist/components/Permissions.js +13 -1
  63. package/dist/components/VerdocsEndpoint.js +30 -30
  64. package/dist/components/index.d.ts +4 -0
  65. package/dist/components/index.js +4 -0
  66. package/dist/components/index2.js +63 -219
  67. package/dist/components/ipc-test.d.ts +11 -0
  68. package/dist/components/ipc-test.js +142 -0
  69. package/dist/components/utils.js +1 -1
  70. package/dist/components/verdocs-activity-box.d.ts +11 -0
  71. package/dist/components/verdocs-activity-box.js +120 -0
  72. package/dist/components/verdocs-envelope-recipient-summary2.js +1 -1
  73. package/dist/components/verdocs-envelopes-list.d.ts +11 -0
  74. package/dist/components/verdocs-envelopes-list.js +298 -0
  75. package/dist/components/verdocs-sign.js +1 -1
  76. package/dist/components/verdocs-status-indicator.js +1 -7463
  77. package/dist/components/verdocs-status-indicator2.js +7465 -0
  78. package/dist/components/verdocs-template-fields2.js +1 -1
  79. package/dist/components/verdocs-template-reminders.js +10 -0
  80. package/dist/components/verdocs-templates-list.d.ts +11 -0
  81. package/dist/components/verdocs-templates-list.js +120 -0
  82. package/dist/components/verdocs-view2.js +2 -2
  83. package/dist/docs.json +667 -39
  84. package/dist/esm/DateTime-402fe7ca.js +43 -0
  85. package/dist/esm/{EnvelopeStore-28f5d8f5.js → EnvelopeStore-2a74a367.js} +1 -1
  86. package/dist/esm/{Envelopes-105a4a8f.js → Envelopes-e69b678a.js} +17 -1
  87. package/dist/esm/{Permissions-7192ef7c.js → Permissions-2ac18553.js} +13 -1
  88. package/dist/esm/{TemplateStore-87c99dfc.js → TemplateStore-852097c3.js} +1 -1
  89. package/dist/esm/{index-d264c496.js → index-914ed6f7.js} +63 -219
  90. package/dist/esm/ipc-test.entry.js +33 -0
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{utils-1bb75f32.js → utils-8ae39b63.js} +3 -3
  93. package/dist/esm/verdocs-activity-box.entry.js +87 -0
  94. package/dist/esm/verdocs-auth.entry.js +1 -1
  95. package/dist/esm/verdocs-build.entry.js +2 -2
  96. package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
  97. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  98. package/dist/esm/verdocs-dropdown.entry.js +84 -0
  99. package/dist/esm/{verdocs-template-document-page.entry.js → verdocs-envelope-document-page.entry.js} +14 -14
  100. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +4 -4
  101. package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -5
  102. package/dist/esm/verdocs-envelopes-list.entry.js +229 -0
  103. package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
  104. package/dist/esm/verdocs-field-date.entry.js +3 -3
  105. package/dist/esm/verdocs-field-dropdown.entry.js +3 -3
  106. package/dist/esm/verdocs-field-initial.entry.js +3 -3
  107. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  108. package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
  109. package/dist/esm/verdocs-field-signature.entry.js +3 -3
  110. package/dist/esm/verdocs-field-textarea.entry.js +4 -4
  111. package/dist/esm/verdocs-field-textbox.entry.js +4 -4
  112. package/dist/esm/verdocs-field-timestamp.entry.js +3 -3
  113. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  114. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  115. package/dist/esm/verdocs-preview.entry.js +5 -5
  116. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  117. package/dist/esm/verdocs-radio-button.entry.js +19 -0
  118. package/dist/esm/verdocs-search.entry.js +1 -1
  119. package/dist/esm/verdocs-send.entry.js +5 -5
  120. package/dist/esm/verdocs-sign.entry.js +4 -4
  121. package/dist/esm/verdocs-template-attachments_2.entry.js +231 -0
  122. package/dist/esm/verdocs-template-document-page_2.entry.js +145 -0
  123. package/dist/esm/{verdocs-template-attachments_4.entry.js → verdocs-template-fields_4.entry.js} +239 -230
  124. package/dist/esm/verdocs-template-name.entry.js +2 -2
  125. package/dist/esm/verdocs-template-reminders.entry.js +12 -2
  126. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  127. package/dist/esm/verdocs-templates-list.entry.js +87 -0
  128. package/dist/esm/verdocs-view.entry.js +5 -5
  129. package/dist/esm/verdocs-web-sdk.js +1 -1
  130. package/dist/esm-es5/DateTime-402fe7ca.js +1 -0
  131. package/dist/esm-es5/{EnvelopeStore-28f5d8f5.js → EnvelopeStore-2a74a367.js} +1 -1
  132. package/dist/esm-es5/Envelopes-e69b678a.js +1 -0
  133. package/dist/esm-es5/{Permissions-7192ef7c.js → Permissions-2ac18553.js} +1 -1
  134. package/dist/esm-es5/{TemplateStore-87c99dfc.js → TemplateStore-852097c3.js} +1 -1
  135. package/dist/esm-es5/{VerdocsEndpoint-6d7a17ce.js → VerdocsEndpoint-5b92f115.js} +1 -1
  136. package/dist/esm-es5/index-914ed6f7.js +1 -0
  137. package/dist/esm-es5/ipc-test.entry.js +1 -0
  138. package/dist/esm-es5/loader.js +1 -1
  139. package/dist/esm-es5/{utils-1bb75f32.js → utils-8ae39b63.js} +2 -2
  140. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -0
  141. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  143. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  144. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  145. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -0
  146. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -0
  147. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  148. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  149. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -0
  150. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -0
  165. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -0
  169. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
  170. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -0
  171. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -0
  175. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  177. package/dist/types/components/envelopes/verdocs-activity-box/verdocs-activity-box.d.ts +60 -0
  178. package/dist/types/components/envelopes/verdocs-activity-box/verdocs-activity-box.stories.d.ts +10 -0
  179. package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +76 -0
  180. package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.stories.d.ts +10 -0
  181. package/dist/types/components/other/ipctest/ipc-test.d.ts +17 -0
  182. package/dist/types/components/other/ipctest/ipc-test.stories.d.ts +4 -0
  183. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +55 -0
  184. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.stories.d.ts +7 -0
  185. package/dist/types/components.d.ts +228 -2
  186. package/dist/verdocs-web-sdk/{p-10bb1e56.entry.js → p-0177fb6c.entry.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-255a66f9.system.entry.js → p-0529a428.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/p-0a5390c7.js +1 -0
  189. package/dist/verdocs-web-sdk/{p-172f5d37.system.entry.js → p-0aaca8d5.system.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/{p-ff662b13.js → p-0b4ea5f9.js} +1 -1
  191. package/dist/verdocs-web-sdk/{p-ac2b339a.system.entry.js → p-0c0ac290.system.entry.js} +1 -1
  192. package/dist/verdocs-web-sdk/{p-bbdafeac.entry.js → p-0f8c70ec.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-dfbf689b.entry.js → p-10e8d145.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/{p-8109a994.system.entry.js → p-13200610.system.entry.js} +1 -1
  195. package/dist/verdocs-web-sdk/p-138fd801.system.js +1 -0
  196. package/dist/verdocs-web-sdk/{p-2a3de488.system.entry.js → p-1420d87e.system.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/{p-83535db7.entry.js → p-16baf630.entry.js} +1 -1
  198. package/dist/verdocs-web-sdk/p-18a67b44.system.js +1 -0
  199. package/dist/verdocs-web-sdk/{p-237edd0b.entry.js → p-19e1c76a.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-886461cd.system.entry.js → p-1a0cccea.system.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/{p-204f69c7.entry.js → p-1ae77200.entry.js} +1 -1
  202. package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
  203. package/dist/verdocs-web-sdk/{p-c0635249.system.entry.js → p-208b2e94.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/{p-7399931a.system.entry.js → p-21e90bbf.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-b1ffa27a.entry.js → p-22939ee9.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/p-244414ca.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/p-2672bfb4.system.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/{p-e5365d23.system.entry.js → p-2750155d.system.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/{p-2d2bdf3c.system.entry.js → p-2d32da1d.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-a78616fe.entry.js → p-2d7d69a2.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-2f0cd03d.system.js +1 -0
  212. package/dist/verdocs-web-sdk/{p-3a9d248d.entry.js → p-31a49d0c.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/{p-8387794f.system.entry.js → p-31e3d00e.system.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-d21e9e04.system.js → p-3c6f9c7f.system.js} +2 -2
  215. package/dist/verdocs-web-sdk/{p-9d90ed3d.system.entry.js → p-3e4f73cb.system.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/{p-017dc2a9.entry.js → p-3f9d879c.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/p-4083d24f.system.entry.js +1 -0
  218. package/dist/verdocs-web-sdk/{p-8fcb22ea.entry.js → p-438daf23.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-18ee4fd5.js → p-4391cd11.js} +1 -1
  220. package/dist/verdocs-web-sdk/{p-3ea489e9.js → p-4b65e2f3.js} +1 -1
  221. package/dist/verdocs-web-sdk/{p-a6258dde.system.js → p-4cc5d833.system.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-bcda78a9.system.entry.js → p-4e025c82.system.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-8dacb527.entry.js → p-4f0bf0de.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-12f0c4e0.system.entry.js → p-51cfde70.system.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/p-522127c8.entry.js +1 -0
  226. package/dist/verdocs-web-sdk/p-52428dff.entry.js +1 -0
  227. package/dist/verdocs-web-sdk/{p-773a2544.system.entry.js → p-57ee65dc.system.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/p-58bb657b.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/p-68662f17.entry.js +1 -0
  230. package/dist/verdocs-web-sdk/{p-43f5476c.entry.js → p-6c01e798.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-f61f02a7.entry.js → p-6e62e65a.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/p-70b42a9c.system.entry.js +1 -0
  233. package/dist/verdocs-web-sdk/{p-ededd783.entry.js → p-7ac080d6.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-750fabdb.entry.js → p-7fb69dde.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-df439631.system.entry.js → p-8080f854.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-9dd19ab5.system.entry.js → p-84457a67.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/p-87cf1148.entry.js +1 -0
  238. package/dist/verdocs-web-sdk/p-89aac159.system.entry.js +1 -0
  239. package/dist/verdocs-web-sdk/{p-5d19f075.entry.js → p-8aba7c0a.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/{p-8fb2cf32.js → p-8ec8d450.js} +2 -2
  241. package/dist/verdocs-web-sdk/{p-bf850bb9.system.entry.js → p-95fc08e1.system.entry.js} +1 -1
  242. package/dist/verdocs-web-sdk/p-9e9ab67f.entry.js +1 -0
  243. package/dist/verdocs-web-sdk/{p-a5eebbfa.entry.js → p-a5bce263.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/p-aa3fd489.entry.js +1 -0
  245. package/dist/verdocs-web-sdk/{p-d763dac2.entry.js → p-ac58dba7.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/p-acaf51f7.system.entry.js +1 -0
  247. package/dist/verdocs-web-sdk/{p-25870f11.system.entry.js → p-ad7f71cf.system.entry.js} +1 -1
  248. package/dist/verdocs-web-sdk/p-afeff3d1.system.entry.js +1 -0
  249. package/dist/verdocs-web-sdk/p-b43d0cd6.system.entry.js +1 -0
  250. package/dist/verdocs-web-sdk/{p-1236c197.system.entry.js → p-b56feb8c.system.entry.js} +1 -1
  251. package/dist/verdocs-web-sdk/{p-e702cf26.entry.js → p-be3c4aa9.entry.js} +1 -1
  252. package/dist/verdocs-web-sdk/p-c16d1ce1.js +1 -0
  253. package/dist/verdocs-web-sdk/p-c220af42.js +1 -0
  254. package/dist/verdocs-web-sdk/p-c6e4d0fc.system.entry.js +1 -0
  255. package/dist/verdocs-web-sdk/{p-c7dbe82b.system.entry.js → p-c6f6fe4f.system.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/{p-19450d55.system.entry.js → p-c841a530.system.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/p-cafd699c.entry.js +1 -0
  258. package/dist/verdocs-web-sdk/{p-1c4f6ae6.entry.js → p-cc3ff9dc.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/{p-365a8a00.entry.js → p-cd1e5de4.entry.js} +1 -1
  260. package/dist/verdocs-web-sdk/{p-a596cd4f.system.entry.js → p-d35f7faa.system.entry.js} +1 -1
  261. package/dist/verdocs-web-sdk/p-d5316866.entry.js +1 -0
  262. package/dist/verdocs-web-sdk/{p-365a0216.system.js → p-dc849a58.system.js} +1 -1
  263. package/dist/verdocs-web-sdk/p-dc9c4361.system.js +1 -0
  264. package/dist/verdocs-web-sdk/{p-56c65857.system.entry.js → p-e4ceaebf.system.entry.js} +1 -1
  265. package/dist/verdocs-web-sdk/{p-d09a9e1b.system.entry.js → p-e59117c8.system.entry.js} +1 -1
  266. package/dist/verdocs-web-sdk/{p-d146b48e.entry.js → p-e72c075e.entry.js} +1 -1
  267. package/dist/verdocs-web-sdk/p-e82a7328.js +1 -0
  268. package/dist/verdocs-web-sdk/p-e8418235.entry.js +1 -0
  269. package/dist/verdocs-web-sdk/{p-991afbb9.entry.js → p-ebca6188.entry.js} +1 -1
  270. package/dist/verdocs-web-sdk/p-ee84ffc0.system.js +1 -0
  271. package/dist/verdocs-web-sdk/p-f0749d37.system.entry.js +1 -0
  272. package/dist/verdocs-web-sdk/{p-5df694ab.system.entry.js → p-f1accb35.system.entry.js} +1 -1
  273. package/dist/verdocs-web-sdk/{p-7917673a.system.entry.js → p-f37f1ebc.system.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-ca57cd6e.entry.js → p-f483cd49.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/p-f9c6fa6c.system.entry.js +1 -0
  276. package/dist/verdocs-web-sdk/p-fdc4e659.entry.js +1 -0
  277. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  278. package/package.json +2 -2
  279. package/dist/cjs/Roles-9b593b95.js +0 -28
  280. package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +0 -187
  281. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +0 -241
  282. package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -51
  283. package/dist/esm/Roles-6eb459df.js +0 -24
  284. package/dist/esm/verdocs-dropdown_2.entry.js +0 -182
  285. package/dist/esm/verdocs-radio-button_3.entry.js +0 -235
  286. package/dist/esm/verdocs-toolbar-icon.entry.js +0 -47
  287. package/dist/esm-es5/Envelopes-105a4a8f.js +0 -1
  288. package/dist/esm-es5/Roles-6eb459df.js +0 -1
  289. package/dist/esm-es5/index-d264c496.js +0 -1
  290. package/dist/esm-es5/verdocs-dropdown_2.entry.js +0 -1
  291. package/dist/esm-es5/verdocs-radio-button_3.entry.js +0 -1
  292. package/dist/esm-es5/verdocs-template-attachments_4.entry.js +0 -1
  293. package/dist/esm-es5/verdocs-template-document-page.entry.js +0 -1
  294. package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
  295. package/dist/verdocs-web-sdk/p-1e8d9829.entry.js +0 -1
  296. package/dist/verdocs-web-sdk/p-27846894.system.entry.js +0 -1
  297. package/dist/verdocs-web-sdk/p-42aa31a9.entry.js +0 -1
  298. package/dist/verdocs-web-sdk/p-51a3ea62.system.js +0 -1
  299. package/dist/verdocs-web-sdk/p-76b73d80.entry.js +0 -1
  300. package/dist/verdocs-web-sdk/p-789dc7fe.entry.js +0 -1
  301. package/dist/verdocs-web-sdk/p-7a23c2c8.system.js +0 -1
  302. package/dist/verdocs-web-sdk/p-8027431e.js +0 -1
  303. package/dist/verdocs-web-sdk/p-807dbe83.entry.js +0 -1
  304. package/dist/verdocs-web-sdk/p-8229e6df.system.js +0 -1
  305. package/dist/verdocs-web-sdk/p-89f34463.system.entry.js +0 -1
  306. package/dist/verdocs-web-sdk/p-8c57f5d0.system.js +0 -1
  307. package/dist/verdocs-web-sdk/p-8fd812f4.system.js +0 -1
  308. package/dist/verdocs-web-sdk/p-a3931094.system.entry.js +0 -1
  309. package/dist/verdocs-web-sdk/p-a58691dc.entry.js +0 -1
  310. package/dist/verdocs-web-sdk/p-a654311c.system.entry.js +0 -1
  311. package/dist/verdocs-web-sdk/p-ab01f71e.js +0 -1
  312. package/dist/verdocs-web-sdk/p-ad11a39a.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/p-c4c8af4c.system.entry.js +0 -1
  314. package/dist/verdocs-web-sdk/p-cf790f4f.js +0 -1
  315. package/dist/verdocs-web-sdk/p-d869c39c.js +0 -1
  316. package/dist/cjs/{VerdocsEndpoint-e6517a50.js → VerdocsEndpoint-f2af9468.js} +30 -30
  317. package/dist/esm/{VerdocsEndpoint-6d7a17ce.js → VerdocsEndpoint-5b92f115.js} +30 -30
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function r(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?i(e.value):s(e.value).then(a,r)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(i)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:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}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-934a39b4.system.js","./p-8fd812f4.system.js","./p-8c57f5d0.system.js","./p-eaf0b189.system.js","./p-54498887.system.js","./p-365a0216.system.js","./p-7a23c2c8.system.js","./p-7fd7152d.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-51a3ea62.system.js","./p-b4d11d90.system.js"],(function(e){"use strict";var t,i,n,s,o,a,r,l,c,d,v,p,u,h;return{setters:[function(e){t=e.r;i=e.c;n=e.h;s=e.H},function(e){o=e.c},function(e){a=e.u},function(e){r=e.g;l=e.r},function(){},function(e){c=e.V},function(e){d=e.g},function(e){v=e.F},function(e){p=e.V},function(e){u=e.S},function(e){h=e.f},function(){}],execute:function(){var f='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}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}';var g='<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 m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var b='<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 w={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>',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>'};var x=e("verdocs_envelope_sidebar",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.toggle=i(this,"toggle",7);this.another=i(this,"another",7);this.store=null;this.endpoint=c.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showManageDialog=false;this.showCancelDialog=false;this.loading=true}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);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]}n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=o.sent();this.sortEnvelopeRecipients();this.loading=false;return[3,3];case 2:s=o.sent();console.log("[SIDEBAR] Error loading envelope",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new u(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(i=s.response)===null||i===void 0?void 0:i.data));return[3,3];case 3:return[2]}}))}))};e.prototype.sortEnvelopeRecipients=function(){var e,t;(t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.recipients.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}))};e.prototype.setTab=function(e){var t;this.panelOpen=e!==this.activeTab||!this.panelOpen;(t=this.toggle)===null||t===void 0?void 0:t.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var t,i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.canModifyRecipient=function(e){var t,i;return!e.claimed&&!["declined","signed","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,t){var i,n;console.log("[SIDEBAR] Recipient action",t,e);switch(t){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((function(){p("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);p("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":r(this.endpoint,e.envelope_id,e.role_name).then((function(e){var t=e.link;return navigator.clipboard.writeText(t)})).then((function(){return p("Link copied to clipboard.",{style:"success",duration:2e3})})).catch((function(e){console.log("[RECIPIENTS] Error getting link",e);p("Unable to get link: "+e.message,{style:"error"})}));break;case"modify":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:(n=this.store)===null||n===void 0?void 0:n.state,event:t})};e.prototype.cancelEnvelope=function(){var e=this;o(this.endpoint,this.envelopeId).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIDEBAR] Envelope canceled",t);p("Envelope canceled",{style:"success"});n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=s.sent();this.sortEnvelopeRecipients();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:(i=this.store)===null||i===void 0?void 0:i.state,event:"canceled"});return[2]}}))}))})).catch((function(e){console.log("[SIDEBAR] Error canceling envelope",e);p("Error canceling envelope: "+e.message,{style:"error"})}))};e.prototype.prepareHistoryEntries=function(){var e=this;var t,i,n,s,o,a,r,l,c,d,v,p;var u=[];var h=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.histories)||[];u.push({icon:"pencil",message:"Envelope created.",date:new Date((s=(n=this.store)===null||n===void 0?void 0:n.state)===null||s===void 0?void 0:s.created_at)});if(((a=(o=this.store)===null||o===void 0?void 0:o.state)===null||a===void 0?void 0:a.status)==="complete"){u.push({icon:"pencil",message:"Envelope completed.",date:new Date((l=(r=this.store)===null||r===void 0?void 0:r.state)===null||l===void 0?void 0:l.updated_at)})}var f=h.some((function(e){return e.event==="owner:canceled"}));if(((d=(c=this.store)===null||c===void 0?void 0:c.state)===null||d===void 0?void 0:d.status)==="canceled"&&!f){u.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date((p=(v=this.store)===null||v===void 0?void 0:v.state)===null||p===void 0?void 0:p.canceled_at)})}h.forEach((function(t){var i;var n=(i=e.store.state)===null||i===void 0?void 0:i.recipients.find((function(e){return e.role_name===t.role_name}));var s=(n===null||n===void 0?void 0:n.full_name)||"";switch(t.event.toLowerCase()){case"recipient:signed":u.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:declined":u.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:opened":switch(t.event_detail){case"email":case"mail":u.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(t.created_at)});break;case"sms":u.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(t.created_at)});break;case"in_person_link":u.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(t.created_at)});break;case"in_app":u.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(t.created_at)});break;default:u.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(t.created_at)})}break;case"recipient:submitted":switch(t.event_detail){case"approver":u.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(t.created_at)});break;default:u.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(t.created_at)});break}break;case"recipient:prepared":u.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:claimed":if(t.event_detail==="guest"){u.push({icon:"account_circle",message:"".concat(s," claimed the Verdoc as a guest."),date:new Date(t.created_at)})}else if(t.event_detail==="profile"){u.push({icon:"verified_user",message:"".concat(s," claimed the Verdoc as a verified user."),date:new Date(t.created_at)})}break;case"recipient:agreed":u.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(t.created_at)});break;case"recipient:invited":if(t.event_detail==="sms"){u.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(t.created_at)})}else{u.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(t.created_at)})}break;case"invitation:resent":u.push({icon:"mail",message:"Invitation was resent to ".concat(s," ").concat(t.event_detail==="reminder"?" by reminder":"","."),date:new Date(t.created_at)});break;case"envelope:cc":u.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:delegated":u.push({icon:"people",message:t.event_detail,date:new Date(t.created_at)});break;case"recipient:updated_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"owner:updated_recipient_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"created":u.push({icon:"create",message:"Envelope was created.",date:new Date(t.created_at)});break;case"completed":u.push({icon:"done_all",message:"Envelope was completed.",date:new Date(t.created_at)});break;case"canceled":case"owner:canceled":u.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(t.created_at)});break;case"owner:get_in_person_link":u.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(t.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",t);break}}));u.sort((function(e,t){return t.date.getTime()-e.date.getTime()}));return u};e.prototype.canModify=function(e){var t,i;var n=["declined","signed","submitted","canceled"];var s=["complete","declined","canceled"];return e.claimed!==true&&n.indexOf(e.status)===-1&&s.indexOf((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)===-1};e.prototype.render=function(){var e=this;var t,i,o,r,l,c,d,p,u,f,x,y,_,k,z,D,M,E,S,V,B,I,L,H,T;if(!this.store.state){return n(s,null)}var R=this.endpoint.getSession();var C=a(R,this.store.state);var O=this.prepareHistoryEntries();var A=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)!=="pending"&&((r=(o=this.store)===null||o===void 0?void 0:o.state)===null||r===void 0?void 0:r.status)!=="in progress";return n(s,{class:this.panelOpen?"open":""},n("div",{class:"side-buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:g}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:m}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:b})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},(c=(l=this.store)===null||l===void 0?void 0:l.state)===null||c===void 0?void 0:c.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},h(new Date((p=(d=this.store)===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.created_at),v)),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},h(new Date((f=(u=this.store)===null||u===void 0?void 0:u.state)===null||f===void 0?void 0:f.updated_at),v)),n("div",{class:"label"},"Status"),n("div",{class:"value"},(y=(x=this.store)===null||x===void 0?void 0:x.state)===null||y===void 0?void 0:y.status),n("div",{class:"label"},"Verdoc Owner ID"),n("div",{class:"value"},(k=(_=this.store)===null||_===void 0?void 0:_.state)===null||k===void 0?void 0:k.profile_id),n("div",{class:"label"},"Verdoc Owner Name"),n("div",{class:"value"},(M=(D=(z=this.store)===null||z===void 0?void 0:z.state)===null||D===void 0?void 0:D.profile)===null||M===void 0?void 0:M.first_name," ",(V=(S=(E=this.store)===null||E===void 0?void 0:E.state)===null||S===void 0?void 0:S.profile)===null||V===void 0?void 0:V.last_name),n("div",{class:"label"},"Verdoc Owner Email"),n("div",{class:"value"},(L=(I=(B=this.store)===null||B===void 0?void 0:B.state)===null||I===void 0?void 0:I.profile)===null||L===void 0?void 0:L.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(T=(H=this.store)===null||H===void 0?void 0:H.state)===null||T===void 0?void 0:T.recipients.map((function(t,i){var s;var o=!e.canModify(t)||t.status!=="invited"&&t.status!=="opened";var a=e.canResendRecipient(t);return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},i+1),n("div",{class:"recipient-type"},t.role_name),n("div",{class:(s={"recipient-status":true},s[t.status]=true,s)},t.status),C&&!A&&n("verdocs-dropdown",{onOptionSelected:function(i){return e.handleRecipientAction(t,i.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!a},{id:"inperson",label:"Get In-Person Link",disabled:!o}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},t.full_name),n("div",{class:"recipient-name"},t.email),n("div",{class:"recipient-name"},t.phone)))})),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Turn On Reminders",onClick:function(){return e.showManageDialog=!A},disabled:A}),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:function(){return e.showCancelDialog=!A},disabled:A})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),O.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:w[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},h(e.date,v))))}))),this.showManageDialog&&n("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:false,onAnother:function(){var t;e.showManageDialog=false;(t=e.another)===null||t===void 0?void 0:t.emit({envelope:e.store.state})},onNext:function(){e.showManageDialog=false}}),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.cancelEnvelope()}}))};return e}());x.style=f}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function r(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?i(e.value):s(e.value).then(a,r)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(i)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:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}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-934a39b4.system.js","./p-18a67b44.system.js","./p-2f0cd03d.system.js","./p-eaf0b189.system.js","./p-54498887.system.js","./p-dc849a58.system.js","./p-138fd801.system.js","./p-7fd7152d.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-dc9c4361.system.js","./p-b4d11d90.system.js"],(function(e){"use strict";var t,i,n,s,o,a,r,l,c,d,v,p,u,h;return{setters:[function(e){t=e.r;i=e.c;n=e.h;s=e.H},function(e){o=e.c},function(e){a=e.u},function(e){r=e.g;l=e.r},function(){},function(e){c=e.V},function(e){d=e.g},function(e){v=e.F},function(e){p=e.V},function(e){u=e.S},function(e){h=e.f},function(){}],execute:function(){var f='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}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}';var g='<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 m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var b='<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 w={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>',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>'};var x=e("verdocs_envelope_sidebar",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.toggle=i(this,"toggle",7);this.another=i(this,"another",7);this.store=null;this.endpoint=c.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showManageDialog=false;this.showCancelDialog=false;this.loading=true}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);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]}n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=o.sent();this.sortEnvelopeRecipients();this.loading=false;return[3,3];case 2:s=o.sent();console.log("[SIDEBAR] Error loading envelope",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new u(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(i=s.response)===null||i===void 0?void 0:i.data));return[3,3];case 3:return[2]}}))}))};e.prototype.sortEnvelopeRecipients=function(){var e,t;(t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.recipients.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}))};e.prototype.setTab=function(e){var t;this.panelOpen=e!==this.activeTab||!this.panelOpen;(t=this.toggle)===null||t===void 0?void 0:t.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var t,i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.canModifyRecipient=function(e){var t,i;return!e.claimed&&!["declined","signed","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,t){var i,n;console.log("[SIDEBAR] Recipient action",t,e);switch(t){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((function(){p("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);p("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":r(this.endpoint,e.envelope_id,e.role_name).then((function(e){var t=e.link;return navigator.clipboard.writeText(t)})).then((function(){return p("Link copied to clipboard.",{style:"success",duration:2e3})})).catch((function(e){console.log("[RECIPIENTS] Error getting link",e);p("Unable to get link: "+e.message,{style:"error"})}));break;case"modify":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:(n=this.store)===null||n===void 0?void 0:n.state,event:t})};e.prototype.cancelEnvelope=function(){var e=this;o(this.endpoint,this.envelopeId).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIDEBAR] Envelope canceled",t);p("Envelope canceled",{style:"success"});n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=s.sent();this.sortEnvelopeRecipients();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:(i=this.store)===null||i===void 0?void 0:i.state,event:"canceled"});return[2]}}))}))})).catch((function(e){console.log("[SIDEBAR] Error canceling envelope",e);p("Error canceling envelope: "+e.message,{style:"error"})}))};e.prototype.prepareHistoryEntries=function(){var e=this;var t,i,n,s,o,a,r,l,c,d,v,p;var u=[];var h=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.histories)||[];u.push({icon:"pencil",message:"Envelope created.",date:new Date((s=(n=this.store)===null||n===void 0?void 0:n.state)===null||s===void 0?void 0:s.created_at)});if(((a=(o=this.store)===null||o===void 0?void 0:o.state)===null||a===void 0?void 0:a.status)==="complete"){u.push({icon:"pencil",message:"Envelope completed.",date:new Date((l=(r=this.store)===null||r===void 0?void 0:r.state)===null||l===void 0?void 0:l.updated_at)})}var f=h.some((function(e){return e.event==="owner:canceled"}));if(((d=(c=this.store)===null||c===void 0?void 0:c.state)===null||d===void 0?void 0:d.status)==="canceled"&&!f){u.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date((p=(v=this.store)===null||v===void 0?void 0:v.state)===null||p===void 0?void 0:p.canceled_at)})}h.forEach((function(t){var i;var n=(i=e.store.state)===null||i===void 0?void 0:i.recipients.find((function(e){return e.role_name===t.role_name}));var s=(n===null||n===void 0?void 0:n.full_name)||"";switch(t.event.toLowerCase()){case"recipient:signed":u.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:declined":u.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:opened":switch(t.event_detail){case"email":case"mail":u.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(t.created_at)});break;case"sms":u.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(t.created_at)});break;case"in_person_link":u.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(t.created_at)});break;case"in_app":u.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(t.created_at)});break;default:u.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(t.created_at)})}break;case"recipient:submitted":switch(t.event_detail){case"approver":u.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(t.created_at)});break;default:u.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(t.created_at)});break}break;case"recipient:prepared":u.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:claimed":if(t.event_detail==="guest"){u.push({icon:"account_circle",message:"".concat(s," claimed the Verdoc as a guest."),date:new Date(t.created_at)})}else if(t.event_detail==="profile"){u.push({icon:"verified_user",message:"".concat(s," claimed the Verdoc as a verified user."),date:new Date(t.created_at)})}break;case"recipient:agreed":u.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(t.created_at)});break;case"recipient:invited":if(t.event_detail==="sms"){u.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(t.created_at)})}else{u.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(t.created_at)})}break;case"invitation:resent":u.push({icon:"mail",message:"Invitation was resent to ".concat(s," ").concat(t.event_detail==="reminder"?" by reminder":"","."),date:new Date(t.created_at)});break;case"envelope:cc":u.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:delegated":u.push({icon:"people",message:t.event_detail,date:new Date(t.created_at)});break;case"recipient:updated_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"owner:updated_recipient_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"created":u.push({icon:"create",message:"Envelope was created.",date:new Date(t.created_at)});break;case"completed":u.push({icon:"done_all",message:"Envelope was completed.",date:new Date(t.created_at)});break;case"canceled":case"owner:canceled":u.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(t.created_at)});break;case"owner:get_in_person_link":u.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(t.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",t);break}}));u.sort((function(e,t){return t.date.getTime()-e.date.getTime()}));return u};e.prototype.canModify=function(e){var t,i;var n=["declined","signed","submitted","canceled"];var s=["complete","declined","canceled"];return e.claimed!==true&&n.indexOf(e.status)===-1&&s.indexOf((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)===-1};e.prototype.render=function(){var e=this;var t,i,o,r,l,c,d,p,u,f,x,y,_,k,z,D,M,E,S,V,B,I,L,H,T;if(!this.store.state){return n(s,null)}var R=this.endpoint.getSession();var C=a(R,this.store.state);var O=this.prepareHistoryEntries();var A=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)!=="pending"&&((r=(o=this.store)===null||o===void 0?void 0:o.state)===null||r===void 0?void 0:r.status)!=="in progress";return n(s,{class:this.panelOpen?"open":""},n("div",{class:"side-buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:g}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:m}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:b})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},(c=(l=this.store)===null||l===void 0?void 0:l.state)===null||c===void 0?void 0:c.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},h(new Date((p=(d=this.store)===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.created_at),v)),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},h(new Date((f=(u=this.store)===null||u===void 0?void 0:u.state)===null||f===void 0?void 0:f.updated_at),v)),n("div",{class:"label"},"Status"),n("div",{class:"value"},(y=(x=this.store)===null||x===void 0?void 0:x.state)===null||y===void 0?void 0:y.status),n("div",{class:"label"},"Verdoc Owner ID"),n("div",{class:"value"},(k=(_=this.store)===null||_===void 0?void 0:_.state)===null||k===void 0?void 0:k.profile_id),n("div",{class:"label"},"Verdoc Owner Name"),n("div",{class:"value"},(M=(D=(z=this.store)===null||z===void 0?void 0:z.state)===null||D===void 0?void 0:D.profile)===null||M===void 0?void 0:M.first_name," ",(V=(S=(E=this.store)===null||E===void 0?void 0:E.state)===null||S===void 0?void 0:S.profile)===null||V===void 0?void 0:V.last_name),n("div",{class:"label"},"Verdoc Owner Email"),n("div",{class:"value"},(L=(I=(B=this.store)===null||B===void 0?void 0:B.state)===null||I===void 0?void 0:I.profile)===null||L===void 0?void 0:L.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(T=(H=this.store)===null||H===void 0?void 0:H.state)===null||T===void 0?void 0:T.recipients.map((function(t,i){var s;var o=!e.canModify(t)||t.status!=="invited"&&t.status!=="opened";var a=e.canResendRecipient(t);return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},i+1),n("div",{class:"recipient-type"},t.role_name),n("div",{class:(s={"recipient-status":true},s[t.status]=true,s)},t.status),C&&!A&&n("verdocs-dropdown",{onOptionSelected:function(i){return e.handleRecipientAction(t,i.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!a},{id:"inperson",label:"Get In-Person Link",disabled:!o}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},t.full_name),n("div",{class:"recipient-name"},t.email),n("div",{class:"recipient-name"},t.phone)))})),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Turn On Reminders",onClick:function(){return e.showManageDialog=!A},disabled:A}),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:function(){return e.showCancelDialog=!A},disabled:A})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),O.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:w[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},h(e.date,v))))}))),this.showManageDialog&&n("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:false,onAnother:function(){var t;e.showManageDialog=false;(t=e.another)===null||t===void 0?void 0:t.emit({envelope:e.store.state})},onNext:function(){e.showManageDialog=false}}),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.cancelEnvelope()}}))};return e}());x.style=f}}}));
@@ -1 +1 @@
1
- import{d as t}from"./p-05788c2b.js";var e,n,r,o,i,s;!function(t){t.RCOMMON="rcommon:access",t.RFORM_ACCESS="rform:access",t.ORG_CREATE="org:create",t.ORG_VIEW="org:view",t.ORG_UPDATE="org:update",t.ORG_DELETE="org:delete",t.ORG_TRANSFER="org:transfer",t.ORG_LIST="org:list",t.OWNER_ADD="owner:add",t.OWNER_REMOVE="owner:remove",t.ADMIN_ADD="admin:add",t.ADMIN_REMOVE="admin:remove",t.MEMBER_VIEW="member:view",t.MEMBER_ADD="member:add",t.MEMBER_REMOVE="member:remove",t.TEMPLATE_CREATOR_DELETE="template:creator:delete",t.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",t.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",t.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",t.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",t.TEMPLATE_MEMBER_READ="template:member:read",t.TEMPLATE_MEMBER_WRITE="template:member:write",t.TEMPLATE_MEMBER_DELETE="template:member:delete",t.TEMPLATE_MEMBER_VISIBILITY="template:member:visibility"}(e||(e={})),function(t){t.ENV_ESSENTIAL="env:essential",t.ORG_STANDARD="org:standard"}(n||(n={})),function(t){t.OWNER="owner",t.BASIC_USER="basic_user",t.MEMBER="member"}(r||(r={})),function(t){t.CREATOR="creator",t.ORGANIZATION_MEMBER="organization_member",t.ORGANIZATION_MEMBER_AS_CREATOR="organization_member_as_creator",t.EVERYONE="everyone",t.EVERYONE_AS_CREATOR="everyone_as_creator"}(o||(o={})),function(t){t.CREATE_PERSONAL="create_personal",t.CREATE_ORG="create_org",t.CREATE_PUBLIC="create_public",t.READ="read",t.WRITE="write",t.DELETE="delete",t.CHANGE_VISIBILITY_PERSONAL="change_visibility_personal",t.CHANGE_VISIBILITY_ORG="change_visibility_org",t.CHANGE_VISIBILITY_PUBLIC="change_visibility_public"}(i||(i={})),function(t){t.CREATED_AT="created_at",t.UPDATED_AT="updated_at",t.NAME="name",t.LAST_USED_AT="last_used_at",t.COUNTER="counter",t.STAR_COUNTER="star_counter"}(s||(s={}));const u=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function c(t,e,n,r,o,i,s){try{var u=t[i](s),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){c(i,r,o,s,u,"next",t)}function u(t){c(i,r,o,s,u,"throw",t)}s(void 0)}))}}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){return!t.response&&Boolean(t.code)&&"ECONNABORTED"!==t.code&&(t=>!u.has(t&&t.code))(t)}var m=["get","head","options"],p=m.concat(["put","delete"]);function b(t){return"ECONNABORTED"!==t.code&&(!t.response||t.response.status>=500&&t.response.status<=599)}function E(t){return!!t.config&&b(t)&&-1!==p.indexOf(t.config.method)}function w(t){return d(t)||E(t)}function _(){return 0}function y(t){var e=t["axios-retry"]||{};return e.retryCount=e.retryCount||0,t["axios-retry"]=e,e}function R(){return(R=a((function*(t,e,n,r){var o=n.retryCount<t&&e(r);if("object"==typeof o)try{return!1!==(yield o)}catch(t){return!1}return o}))).apply(this,arguments)}function O(t,e){t.interceptors.request.use((t=>(y(t).lastRequestTime=Date.now(),t))),t.interceptors.response.use(null,function(){var n=a((function*(n){var{config:r}=n;if(!r)return Promise.reject(n);var{retries:o=3,retryCondition:i=w,retryDelay:s=_,shouldResetTimeout:u=!1,onRetry:c=(()=>{})}=function(t,e){return f(f({},e),t["axios-retry"])}(r,e),a=y(r);if(yield function(t,e,n,r){return R.apply(this,arguments)}(o,i,a,n)){a.retryCount+=1;var l=s(a.retryCount,n);if(function(t,e){t.defaults.agent===e.agent&&delete e.agent,t.defaults.httpAgent===e.httpAgent&&delete e.httpAgent,t.defaults.httpsAgent===e.httpsAgent&&delete e.httpsAgent}(t,r),!u&&r.timeout&&a.lastRequestTime){var h=Date.now()-a.lastRequestTime,d=r.timeout-h-l;if(d<=0)return Promise.reject(n);r.timeout=d}return r.transformRequest=[t=>t],c(a.retryCount,n,r),new Promise((e=>setTimeout((()=>e(t(r))),l)))}return Promise.reject(n)}));return function(t){return n.apply(this,arguments)}}())}function g(t,e){return function(){return t.apply(e,arguments)}}O.isNetworkError=d,O.isSafeRequestError=function(t){return!!t.config&&b(t)&&-1!==m.indexOf(t.config.method)},O.isIdempotentRequestError=E,O.isNetworkOrIdempotentRequestError=w,O.exponentialDelay=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=100*Math.pow(2,t),n=.2*e*Math.random();return e+n},O.isRetryableError=b;const{toString:v}=Object.prototype,{getPrototypeOf:T}=Object,S=(A=Object.create(null),t=>{const e=v.call(t);return A[e]||(A[e]=e.slice(8,-1).toLowerCase())});var A;const N=t=>(t=t.toLowerCase(),e=>S(e)===t),j=t=>e=>typeof e===t,{isArray:C}=Array,D=j("undefined"),L=N("ArrayBuffer"),U=j("string"),P=j("function"),I=j("number"),F=t=>null!==t&&"object"==typeof t,B=t=>{if("object"!==S(t))return!1;const e=T(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},x=N("Date"),M=N("File"),H=N("Blob"),q=N("FileList"),k=N("URLSearchParams");function z(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),C(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function G(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,K=t=>!D(t)&&t!==J,V=(X="undefined"!=typeof Uint8Array&&T(Uint8Array),t=>X&&t instanceof X);var X;const $=N("HTMLFormElement"),Y=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W=N("RegExp"),Z=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};z(n,((n,o)=>{!1!==e(n,o,t)&&(r[o]=n)})),Object.defineProperties(t,r)},Q="abcdefghijklmnopqrstuvwxyz",tt={DIGIT:"0123456789",ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+"0123456789"},et=N("AsyncFunction"),nt={isArray:C,isArrayBuffer:L,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&P(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||P(t.append)&&("formdata"===(e=S(t))||"object"===e&&P(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&L(t.buffer),e},isString:U,isNumber:I,isBoolean:t=>!0===t||!1===t,isObject:F,isPlainObject:B,isUndefined:D,isDate:x,isFile:M,isBlob:H,isRegExp:W,isFunction:P,isStream:t=>F(t)&&P(t.pipe),isURLSearchParams:k,isTypedArray:V,isFileList:q,forEach:z,merge:function t(){const{caseless:e}=K(this)&&this||{},n={},r=(r,o)=>{const i=e&&G(n,o)||o;n[i]=B(n[i])&&B(r)?t(n[i],r):B(r)?t({},r):C(r)?r.slice():r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&z(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(z(e,((e,r)=>{t[r]=n&&P(e)?g(e,n):e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const u={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||u[s]||(e[s]=t[s],u[s]=!0);t=!1!==n&&T(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:S,kindOfTest:N,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length);const r=t.indexOf(e,n-=e.length);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(C(t))return t;let e=t.length;if(!I(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:Z,freezeMethods:t=>{Z(t,((e,n)=>{if(P(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;P(t[n])&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return C(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:G,global:J,isContextDefined:K,ALPHABET:tt,generateString:(t=16,e=tt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&P(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(F(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=C(t)?[]:{};return z(t,((t,e)=>{const i=n(t,r+1);!D(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:et,isThenable:t=>t&&(F(t)||P(t))&&P(t.then)&&P(t.catch)};function rt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}nt.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:nt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ot=rt.prototype,it={};function st(t){return nt.isPlainObject(t)||nt.isArray(t)}function ut(t){return nt.endsWith(t,"[]")?t.slice(0,-2):t}function ct(t,e,n){return t?t.concat(e).map((function(t,e){return t=ut(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{it[t]={value:t}})),Object.defineProperties(rt,it),Object.defineProperty(ot,"isAxiosError",{value:!0}),rt.from=(t,e,n,r,o,i)=>{const s=Object.create(ot);return nt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),rt.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const at=nt.toFlatObject(nt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function lt(t,e,n){if(!nt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!nt.isUndefined(e[t])}))).metaTokens,o=n.visitor||a,i=n.dots,s=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&nt.isSpecCompliantForm(e);if(!nt.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(nt.isDate(t))return t.toISOString();if(!u&&nt.isBlob(t))throw new rt("Blob is not supported. Use a Buffer instead.");return nt.isArrayBuffer(t)||nt.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function a(t,n,o){let u=t;if(t&&!o&&"object"==typeof t)if(nt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(nt.isArray(t)&&function(t){return nt.isArray(t)&&!t.some(st)}(t)||(nt.isFileList(t)||nt.endsWith(n,"[]"))&&(u=nt.toArray(t)))return n=ut(n),u.forEach((function(t,r){!nt.isUndefined(t)&&null!==t&&e.append(!0===s?ct([n],r,i):null===s?n:n+"[]",c(t))})),!1;return!!st(t)||(e.append(ct(o,n,i),c(t)),!1)}const l=[],f=Object.assign(at,{defaultVisitor:a,convertValue:c,isVisitable:st});if(!nt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!nt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),nt.forEach(n,(function(n,i){!0===(!(nt.isUndefined(n)||null===n)&&o.call(e,n,nt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e}function ft(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ht(t,e){this._pairs=[],t&&lt(t,this,e)}const dt=ht.prototype;function mt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pt(t,e,n){if(!e)return t;const r=n&&n.encode||mt,o=n&&n.serialize;let i;if(i=o?o(e,n):nt.isURLSearchParams(e)?e.toString():new ht(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}dt.append=function(t,e){this._pairs.push([t,e])},dt.toString=function(t){const e=t?function(e){return t.call(this,e,ft)}:ft;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class bt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ht,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function _t(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),u=o>=t.length;return i=!i&&nt.isArray(r)?r.length:i,u?(r[i]=nt.hasOwnProp(r,i)?[r[i],n]:n,!s):(r[i]&&nt.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&nt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(nt.isFormData(t)&&nt.isFunction(t.entries)){const n={};return nt.forEachEntry(t,((t,r)=>{e(function(t){return nt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const yt={"Content-Type":void 0},Rt={transitional:Et,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=nt.isObject(t);if(o&&nt.isHTMLForm(t)&&(t=new FormData(t)),nt.isFormData(t))return r&&r?JSON.stringify(_t(t)):t;if(nt.isArrayBuffer(t)||nt.isBuffer(t)||nt.isStream(t)||nt.isFile(t)||nt.isBlob(t))return t;if(nt.isArrayBufferView(t))return t.buffer;if(nt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return lt(t,new wt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=nt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return lt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t){if(nt.isString(t))try{return(0,JSON.parse)(t),nt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Rt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&nt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw rt.from(t,rt.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};nt.forEach(["delete","get","head"],(function(t){Rt.headers[t]={}})),nt.forEach(["post","put","patch"],(function(t){Rt.headers[t]=nt.merge(yt)}));const Ot=nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gt=Symbol("internals");function vt(t){return t&&String(t).trim().toLowerCase()}function Tt(t){return!1===t||null==t?t:nt.isArray(t)?t.map(Tt):String(t)}function St(t,e,n,r,o){return nt.isFunction(r)?r.call(this,e,n):(o&&(e=n),nt.isString(e)?nt.isString(r)?-1!==e.indexOf(r):nt.isRegExp(r)?r.test(e):void 0:void 0)}class At{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=vt(e);if(!o)throw new Error("header name must be a non-empty string");const i=nt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Tt(t))}const i=(t,e)=>nt.forEach(t,((t,n)=>o(t,n,e)));return nt.isPlainObject(t)||t instanceof this.constructor?i(t,e):nt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Ot[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=vt(t)){const n=nt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(nt.isFunction(e))return e.call(this,t,n);if(nt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=vt(t)){const n=nt.findKey(this,t);return!(!n||void 0===this[n]||e&&!St(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=vt(t)){const o=nt.findKey(n,t);!o||e&&!St(0,n[o],o,e)||(delete n[o],r=!0)}}return nt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!St(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return nt.forEach(this,((r,o)=>{const i=nt.findKey(n,o);if(i)return e[i]=Tt(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Tt(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return nt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&nt.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(function(t,e){const n=nt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return nt.isArray(t)?t.forEach(r):r(t),this}}function Nt(t,e){const n=this||Rt,r=e||n,o=At.from(r.headers);let i=r.data;return nt.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function jt(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,n){rt.call(this,null==t?"canceled":t,rt.ERR_CANCELED,e,n),this.name="CanceledError"}At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nt.freezeMethods(At.prototype),nt.freezeMethods(At),nt.inherits(Ct,rt,{__CANCEL__:!0});const Dt=wt.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),nt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),nt.isString(r)&&s.push("path="+r),nt.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Lt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ut=wt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=nt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Pt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(u){const c=Date.now(),a=r[s];o||(o=c),n[i]=u,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const h=a&&c-a;return h?Math.round(1e3*f/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-n,c=r(u);n=i;const a={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};a[e?"download":"upload"]=!0,t(a)}}const It={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=At.from(t.headers).normalize(),i=t.responseType;let s;function u(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}nt.isFormData(r)&&(wt.isStandardBrowserEnv||wt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const a=Lt(t.baseURL,t.url);function l(){if(!c)return;const r=At.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),pt(a,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new rt("Request aborted",rt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new rt("Network Error",rt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new rt(e,(t.transitional||Et).clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,t,c)),c=null},wt.isStandardBrowserEnv){const e=(t.withCredentials||Ut(a))&&t.xsrfCookieName&&Dt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&nt.forEach(o.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),nt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Pt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Pt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(n(!e||e.type?new Ct(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(a);f&&-1===wt.protocols.indexOf(f)?n(new rt("Unsupported protocol "+f+":",rt.ERR_BAD_REQUEST,t)):c.send(r||null)}))}};nt.forEach(It,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));function Ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function Bt(t){return Ft(t),t.headers=At.from(t.headers),t.data=Nt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=nt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=nt.isString(n)?It[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new rt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(nt.hasOwnProp(It,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!nt.isFunction(r))throw new TypeError("adapter is not a function");return r})(t.adapter||Rt.adapter)(t).then((function(e){return Ft(t),e.data=Nt.call(t,t.transformResponse,e),e.headers=At.from(e.headers),e}),(function(e){return jt(e)||(Ft(t),e&&e.response&&(e.response.data=Nt.call(t,t.transformResponse,e.response),e.response.headers=At.from(e.response.headers))),Promise.reject(e)}))}const xt=t=>t instanceof At?t.toJSON():t;function Mt(t,e){e=e||{};const n={};function r(t,e,n){return nt.isPlainObject(t)&&nt.isPlainObject(e)?nt.merge.call({caseless:n},t,e):nt.isPlainObject(e)?nt.merge({},e):nt.isArray(e)?e.slice():e}function o(t,e,n){return nt.isUndefined(e)?nt.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!nt.isUndefined(e))return r(void 0,e)}function s(t,e){return nt.isUndefined(e)?nt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function u(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(xt(t),xt(e),!0)};return nt.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,s=i(t[r],e[r],r);nt.isUndefined(s)&&i!==u||(n[r]=s)})),n}const Ht={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ht[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const qt={};Ht.transitional=function(t,e,n){function r(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new rt(r(o," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!qt[o]&&(qt[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const kt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new rt("option "+i+" must be "+n,rt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}},validators:Ht},zt=kt.validators;class Gt{constructor(t){this.defaults=t,this.interceptors={request:new bt,response:new bt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;let i;void 0!==n&&kt.assertOptions(n,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),null!=r&&(nt.isFunction(r)?e.paramsSerializer={serialize:r}:kt.assertOptions(r,{encode:zt.function,serialize:zt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&nt.merge(o.common,o[e.method]),i&&nt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=At.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let a;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!u){const t=[Bt.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,a=Promise.resolve(e);f<l;)a=a.then(t[f++],t[f++]);return a}l=s.length;let h=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{a=Bt.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)a=a.then(c[f++],c[f++]);return a}getUri(t){return pt(Lt((t=Mt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}nt.forEach(["delete","get","head","options"],(function(t){Gt.prototype[t]=function(e,n){return this.request(Mt(n||{},{method:t,url:e,data:(n||{}).data}))}})),nt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Mt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Gt.prototype[t]=e(),Gt.prototype[t+"Form"]=e(!0)}));class Jt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Ct(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Jt((function(e){t=e})),cancel:t}}}const Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((([t,e])=>{Kt[e]=t}));const Vt=function t(e){const n=new Gt(e),r=g(Gt.prototype.request,n);return nt.extend(r,Gt.prototype,n,{allOwnKeys:!0}),nt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Mt(e,n))},r}(Rt);Vt.Axios=Gt,Vt.CanceledError=Ct,Vt.CancelToken=Jt,Vt.isCancel=jt,Vt.VERSION="1.4.0",Vt.toFormData=lt,Vt.AxiosError=rt,Vt.Cancel=Vt.CanceledError,Vt.all=function(t){return Promise.all(t)},Vt.spread=function(t){return function(e){return t.apply(null,e)}},Vt.isAxiosError=function(t){return nt.isObject(t)&&!0===t.isAxiosError},Vt.mergeConfig=Mt,Vt.AxiosHeaders=At,Vt.formToJSON=t=>_t(nt.isHTMLForm(t)?new FormData(t):t),Vt.HttpStatusCode=Kt,Vt.default=Vt;var Xt=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},$t=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return Xt()}try{return __global__||Xt()}finally{delete Object.prototype.__global__}}(),Yt=Symbol.for("verdocs-default-endpoint"),Wt=function(t){return console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):""),t},Zt=function(){function e(t){this.environment="verdocs",this.sessionType="user",this.baseURL="https://api.verdocs.com",this.clientID="not-set",this.timeout=6e4,this.token=null,this.nextListenerId=0,this.sessionListeners=new Map,this.requestLoggerId=null,this.session=null,this.baseURL=(null==t?void 0:t.baseURL)||"https://api.verdocs.com",this.timeout=(null==t?void 0:t.timeout)||6e4,this.environment=(null==t?void 0:t.environment)||"verdocs",this.sessionType=(null==t?void 0:t.sessionType)||"user",this.clientID=(null==t?void 0:t.clientID)||"not-set",this.api=Vt.create({baseURL:this.baseURL,timeout:this.timeout}),O(this.api,{retries:0,retryDelay:O.exponentialDelay,onRetry:function(t,e,n){window.console.debug("[JS_SDK] Retrying request (".concat(t,")"),e.message,n.url)}})}return e.prototype.setDefault=function(){$t[Yt]=this},e.getDefault=function(){return $t[Yt]||($t[Yt]=new e,window.console.debug("[JS_SDK] Created default endpoint",$t[Yt])),$t[Yt]},e.prototype.getEnvironment=function(){return this.environment},e.prototype.getSessionType=function(){return this.sessionType},e.prototype.getBaseURL=function(){return this.baseURL},e.prototype.getClientID=function(){return this.clientID},e.prototype.getTimeout=function(){return this.timeout},e.prototype.getSession=function(){return this.session},e.prototype.setEnvironment=function(t){return this.environment=t,this},e.prototype.setSessionType=function(t){return this.sessionType=t,this},e.prototype.setBaseURL=function(t){return this.api.defaults.baseURL=t,this},e.prototype.setClientID=function(t){return this.clientID=t,this.api.defaults.headers.common["X-Client-ID"]=t,this},e.prototype.setTimeout=function(t){return this.timeout=t,this.api.defaults.timeout=t,this},e.prototype.logRequests=function(t){return t&&null===this.requestLoggerId?this.requestLoggerId=this.api.interceptors.request.use(Wt):t||null===this.requestLoggerId||this.api.interceptors.request.eject(this.requestLoggerId),this},e.prototype.setToken=function(e){if(!e)return this.clearSession();var n=t(e);return null===n||n.exp&&1e3*n.exp<(new Date).getTime()?(window.console.warn("[JS_SDK] Ignoring attempt to use expired session token"),this.clearSession()):(this.token=e,this.session=n,"user"===this.sessionType?this.api.defaults.headers.common.Authorization="Bearer ".concat(e):this.api.defaults.headers.common.signer="Bearer ".concat(e),localStorage.setItem(this.sessionStorageKey(),e),this.notifySessionListeners(),this)},e.prototype.getToken=function(){return this.token},e.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())},e.prototype.clearSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,delete this.api.defaults.headers.common.signer,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.clearSignerSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(e){try{e(t,t.session)}catch(t){}}))},e.prototype.onSessionChanged=function(t){var e=this;this.nextListenerId++;var n=Symbol.for(""+this.nextListenerId);return this.sessionListeners.set(n,t),function(){e.sessionListeners.delete(n)}},e.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());return t?this.setToken(t):this.clearSession()},e}();export{o as T,Zt as V}
1
+ import{d as t}from"./p-05788c2b.js";var e,n,r,o,i,s;!function(t){t.CREATOR="creator",t.ORGANIZATION_MEMBER="organization_member",t.ORGANIZATION_MEMBER_AS_CREATOR="organization_member_as_creator",t.EVERYONE="everyone",t.EVERYONE_AS_CREATOR="everyone_as_creator"}(e||(e={})),function(t){t.CREATE_PERSONAL="create_personal",t.CREATE_ORG="create_org",t.CREATE_PUBLIC="create_public",t.READ="read",t.WRITE="write",t.DELETE="delete",t.CHANGE_VISIBILITY_PERSONAL="change_visibility_personal",t.CHANGE_VISIBILITY_ORG="change_visibility_org",t.CHANGE_VISIBILITY_PUBLIC="change_visibility_public"}(n||(n={})),function(t){t.CREATED_AT="created_at",t.UPDATED_AT="updated_at",t.NAME="name",t.LAST_USED_AT="last_used_at",t.COUNTER="counter",t.STAR_COUNTER="star_counter"}(r||(r={})),function(t){t.RCOMMON="rcommon:access",t.RFORM_ACCESS="rform:access",t.ORG_CREATE="org:create",t.ORG_VIEW="org:view",t.ORG_UPDATE="org:update",t.ORG_DELETE="org:delete",t.ORG_TRANSFER="org:transfer",t.ORG_LIST="org:list",t.OWNER_ADD="owner:add",t.OWNER_REMOVE="owner:remove",t.ADMIN_ADD="admin:add",t.ADMIN_REMOVE="admin:remove",t.MEMBER_VIEW="member:view",t.MEMBER_ADD="member:add",t.MEMBER_REMOVE="member:remove",t.TEMPLATE_CREATOR_DELETE="template:creator:delete",t.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",t.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",t.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",t.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",t.TEMPLATE_MEMBER_READ="template:member:read",t.TEMPLATE_MEMBER_WRITE="template:member:write",t.TEMPLATE_MEMBER_DELETE="template:member:delete",t.TEMPLATE_MEMBER_VISIBILITY="template:member:visibility"}(o||(o={})),function(t){t.ENV_ESSENTIAL="env:essential",t.ORG_STANDARD="org:standard"}(i||(i={})),function(t){t.OWNER="owner",t.BASIC_USER="basic_user",t.MEMBER="member"}(s||(s={}));const u=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);function c(t,e,n,r,o,i,s){try{var u=t[i](s),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){c(i,r,o,s,u,"next",t)}function u(t){c(i,r,o,s,u,"throw",t)}s(void 0)}))}}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t){return!t.response&&Boolean(t.code)&&"ECONNABORTED"!==t.code&&(t=>!u.has(t&&t.code))(t)}var m=["get","head","options"],p=m.concat(["put","delete"]);function b(t){return"ECONNABORTED"!==t.code&&(!t.response||t.response.status>=500&&t.response.status<=599)}function E(t){return!!t.config&&b(t)&&-1!==p.indexOf(t.config.method)}function w(t){return d(t)||E(t)}function _(){return 0}function y(t){var e=t["axios-retry"]||{};return e.retryCount=e.retryCount||0,t["axios-retry"]=e,e}function R(){return(R=a((function*(t,e,n,r){var o=n.retryCount<t&&e(r);if("object"==typeof o)try{return!1!==(yield o)}catch(t){return!1}return o}))).apply(this,arguments)}function O(t,e){t.interceptors.request.use((t=>(y(t).lastRequestTime=Date.now(),t))),t.interceptors.response.use(null,function(){var n=a((function*(n){var{config:r}=n;if(!r)return Promise.reject(n);var{retries:o=3,retryCondition:i=w,retryDelay:s=_,shouldResetTimeout:u=!1,onRetry:c=(()=>{})}=function(t,e){return f(f({},e),t["axios-retry"])}(r,e),a=y(r);if(yield function(t,e,n,r){return R.apply(this,arguments)}(o,i,a,n)){a.retryCount+=1;var l=s(a.retryCount,n);if(function(t,e){t.defaults.agent===e.agent&&delete e.agent,t.defaults.httpAgent===e.httpAgent&&delete e.httpAgent,t.defaults.httpsAgent===e.httpsAgent&&delete e.httpsAgent}(t,r),!u&&r.timeout&&a.lastRequestTime){var h=Date.now()-a.lastRequestTime,d=r.timeout-h-l;if(d<=0)return Promise.reject(n);r.timeout=d}return r.transformRequest=[t=>t],c(a.retryCount,n,r),new Promise((e=>setTimeout((()=>e(t(r))),l)))}return Promise.reject(n)}));return function(t){return n.apply(this,arguments)}}())}function g(t,e){return function(){return t.apply(e,arguments)}}O.isNetworkError=d,O.isSafeRequestError=function(t){return!!t.config&&b(t)&&-1!==m.indexOf(t.config.method)},O.isIdempotentRequestError=E,O.isNetworkOrIdempotentRequestError=w,O.exponentialDelay=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=100*Math.pow(2,t),n=.2*e*Math.random();return e+n},O.isRetryableError=b;const{toString:v}=Object.prototype,{getPrototypeOf:T}=Object,S=(A=Object.create(null),t=>{const e=v.call(t);return A[e]||(A[e]=e.slice(8,-1).toLowerCase())});var A;const N=t=>(t=t.toLowerCase(),e=>S(e)===t),j=t=>e=>typeof e===t,{isArray:C}=Array,D=j("undefined"),L=N("ArrayBuffer"),U=j("string"),P=j("function"),I=j("number"),F=t=>null!==t&&"object"==typeof t,B=t=>{if("object"!==S(t))return!1;const e=T(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},x=N("Date"),M=N("File"),H=N("Blob"),q=N("FileList"),k=N("URLSearchParams");function z(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),C(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],e.call(null,t[s],s,t)}}function G(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,K=t=>!D(t)&&t!==J,V=(X="undefined"!=typeof Uint8Array&&T(Uint8Array),t=>X&&t instanceof X);var X;const $=N("HTMLFormElement"),Y=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),W=N("RegExp"),Z=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};z(n,((n,o)=>{!1!==e(n,o,t)&&(r[o]=n)})),Object.defineProperties(t,r)},Q="abcdefghijklmnopqrstuvwxyz",tt={DIGIT:"0123456789",ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+"0123456789"},et=N("AsyncFunction"),nt={isArray:C,isArrayBuffer:L,isBuffer:function(t){return null!==t&&!D(t)&&null!==t.constructor&&!D(t.constructor)&&P(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||P(t.append)&&("formdata"===(e=S(t))||"object"===e&&P(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&L(t.buffer),e},isString:U,isNumber:I,isBoolean:t=>!0===t||!1===t,isObject:F,isPlainObject:B,isUndefined:D,isDate:x,isFile:M,isBlob:H,isRegExp:W,isFunction:P,isStream:t=>F(t)&&P(t.pipe),isURLSearchParams:k,isTypedArray:V,isFileList:q,forEach:z,merge:function t(){const{caseless:e}=K(this)&&this||{},n={},r=(r,o)=>{const i=e&&G(n,o)||o;n[i]=B(n[i])&&B(r)?t(n[i],r):B(r)?t({},r):C(r)?r.slice():r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&z(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(z(e,((e,r)=>{t[r]=n&&P(e)?g(e,n):e}),{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,s;const u={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],r&&!r(s,t,e)||u[s]||(e[s]=t[s],u[s]=!0);t=!1!==n&&T(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:S,kindOfTest:N,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length);const r=t.indexOf(e,n-=e.length);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(C(t))return t;let e=t.length;if(!I(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:$,hasOwnProperty:Y,hasOwnProp:Y,reduceDescriptors:Z,freezeMethods:t=>{Z(t,((e,n)=>{if(P(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;P(t[n])&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach((t=>{n[t]=!0}))};return C(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:G,global:J,isContextDefined:K,ALPHABET:tt,generateString:(t=16,e=tt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&P(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(F(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=C(t)?[]:{};return z(t,((t,e)=>{const i=n(t,r+1);!D(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:et,isThenable:t=>t&&(F(t)||P(t))&&P(t.then)&&P(t.catch)};function rt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}nt.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:nt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ot=rt.prototype,it={};function st(t){return nt.isPlainObject(t)||nt.isArray(t)}function ut(t){return nt.endsWith(t,"[]")?t.slice(0,-2):t}function ct(t,e,n){return t?t.concat(e).map((function(t,e){return t=ut(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{it[t]={value:t}})),Object.defineProperties(rt,it),Object.defineProperty(ot,"isAxiosError",{value:!0}),rt.from=(t,e,n,r,o,i)=>{const s=Object.create(ot);return nt.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),rt.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const at=nt.toFlatObject(nt,{},null,(function(t){return/^is[A-Z]/.test(t)}));function lt(t,e,n){if(!nt.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!nt.isUndefined(e[t])}))).metaTokens,o=n.visitor||a,i=n.dots,s=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&nt.isSpecCompliantForm(e);if(!nt.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(nt.isDate(t))return t.toISOString();if(!u&&nt.isBlob(t))throw new rt("Blob is not supported. Use a Buffer instead.");return nt.isArrayBuffer(t)||nt.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function a(t,n,o){let u=t;if(t&&!o&&"object"==typeof t)if(nt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(nt.isArray(t)&&function(t){return nt.isArray(t)&&!t.some(st)}(t)||(nt.isFileList(t)||nt.endsWith(n,"[]"))&&(u=nt.toArray(t)))return n=ut(n),u.forEach((function(t,r){!nt.isUndefined(t)&&null!==t&&e.append(!0===s?ct([n],r,i):null===s?n:n+"[]",c(t))})),!1;return!!st(t)||(e.append(ct(o,n,i),c(t)),!1)}const l=[],f=Object.assign(at,{defaultVisitor:a,convertValue:c,isVisitable:st});if(!nt.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!nt.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),nt.forEach(n,(function(n,i){!0===(!(nt.isUndefined(n)||null===n)&&o.call(e,n,nt.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e}function ft(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function ht(t,e){this._pairs=[],t&&lt(t,this,e)}const dt=ht.prototype;function mt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pt(t,e,n){if(!e)return t;const r=n&&n.encode||mt,o=n&&n.serialize;let i;if(i=o?o(e,n):nt.isURLSearchParams(e)?e.toString():new ht(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}dt.append=function(t,e){this._pairs.push([t,e])},dt.toString=function(t){const e=t?function(e){return t.call(this,e,ft)}:ft;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class bt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nt.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const Et={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ht,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function _t(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),u=o>=t.length;return i=!i&&nt.isArray(r)?r.length:i,u?(r[i]=nt.hasOwnProp(r,i)?[r[i],n]:n,!s):(r[i]&&nt.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&nt.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!s)}if(nt.isFormData(t)&&nt.isFunction(t.entries)){const n={};return nt.forEachEntry(t,((t,r)=>{e(function(t){return nt.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const yt={"Content-Type":void 0},Rt={transitional:Et,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=nt.isObject(t);if(o&&nt.isHTMLForm(t)&&(t=new FormData(t)),nt.isFormData(t))return r&&r?JSON.stringify(_t(t)):t;if(nt.isArrayBuffer(t)||nt.isBuffer(t)||nt.isStream(t)||nt.isFile(t)||nt.isBlob(t))return t;if(nt.isArrayBufferView(t))return t.buffer;if(nt.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return lt(t,new wt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=nt.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return lt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t){if(nt.isString(t))try{return(0,JSON.parse)(t),nt.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Rt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&nt.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw rt.from(t,rt.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};nt.forEach(["delete","get","head"],(function(t){Rt.headers[t]={}})),nt.forEach(["post","put","patch"],(function(t){Rt.headers[t]=nt.merge(yt)}));const Ot=nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gt=Symbol("internals");function vt(t){return t&&String(t).trim().toLowerCase()}function Tt(t){return!1===t||null==t?t:nt.isArray(t)?t.map(Tt):String(t)}function St(t,e,n,r,o){return nt.isFunction(r)?r.call(this,e,n):(o&&(e=n),nt.isString(e)?nt.isString(r)?-1!==e.indexOf(r):nt.isRegExp(r)?r.test(e):void 0:void 0)}class At{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=vt(e);if(!o)throw new Error("header name must be a non-empty string");const i=nt.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Tt(t))}const i=(t,e)=>nt.forEach(t,((t,n)=>o(t,n,e)));return nt.isPlainObject(t)||t instanceof this.constructor?i(t,e):nt.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Ot[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&o(e,t,n),this}get(t,e){if(t=vt(t)){const n=nt.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(nt.isFunction(e))return e.call(this,t,n);if(nt.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=vt(t)){const n=nt.findKey(this,t);return!(!n||void 0===this[n]||e&&!St(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=vt(t)){const o=nt.findKey(n,t);!o||e&&!St(0,n[o],o,e)||(delete n[o],r=!0)}}return nt.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!St(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return nt.forEach(this,((r,o)=>{const i=nt.findKey(n,o);if(i)return e[i]=Tt(r),void delete e[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete e[o],e[s]=Tt(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return nt.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&nt.isArray(n)?n.join(", "):n)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach((t=>n.set(t))),n}static accessor(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=vt(t);e[r]||(function(t,e){const n=nt.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})}))}(n,t),e[r]=!0)}return nt.isArray(t)?t.forEach(r):r(t),this}}function Nt(t,e){const n=this||Rt,r=e||n,o=At.from(r.headers);let i=r.data;return nt.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function jt(t){return!(!t||!t.__CANCEL__)}function Ct(t,e,n){rt.call(this,null==t?"canceled":t,rt.ERR_CANCELED,e,n),this.name="CanceledError"}At.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nt.freezeMethods(At.prototype),nt.freezeMethods(At),nt.inherits(Ct,rt,{__CANCEL__:!0});const Dt=wt.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),nt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),nt.isString(r)&&s.push("path="+r),nt.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Lt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Ut=wt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=nt.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function Pt(t,e){let n=0;const r=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,s=0;return e=void 0!==e?e:1e3,function(u){const c=Date.now(),a=r[s];o||(o=c),n[i]=u,r[i]=c;let l=s,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<e)return;const h=a&&c-a;return h?Math.round(1e3*f/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-n,c=r(u);n=i;const a={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};a[e?"download":"upload"]=!0,t(a)}}const It={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=At.from(t.headers).normalize(),i=t.responseType;let s;function u(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}nt.isFormData(r)&&(wt.isStandardBrowserEnv||wt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+n))}const a=Lt(t.baseURL,t.url);function l(){if(!c)return;const r=At.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),pt(a,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new rt("Request aborted",rt.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new rt("Network Error",rt.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new rt(e,(t.transitional||Et).clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,t,c)),c=null},wt.isStandardBrowserEnv){const e=(t.withCredentials||Ut(a))&&t.xsrfCookieName&&Dt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&nt.forEach(o.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),nt.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",Pt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Pt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{c&&(n(!e||e.type?new Ct(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(a);f&&-1===wt.protocols.indexOf(f)?n(new rt("Unsupported protocol "+f+":",rt.ERR_BAD_REQUEST,t)):c.send(r||null)}))}};nt.forEach(It,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));function Ft(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ct(null,t)}function Bt(t){return Ft(t),t.headers=At.from(t.headers),t.data=Nt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=nt.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;o<e&&(n=t[o],!(r=nt.isString(n)?It[n.toLowerCase()]:n));o++);if(!r){if(!1===r)throw new rt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(nt.hasOwnProp(It,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!nt.isFunction(r))throw new TypeError("adapter is not a function");return r})(t.adapter||Rt.adapter)(t).then((function(e){return Ft(t),e.data=Nt.call(t,t.transformResponse,e),e.headers=At.from(e.headers),e}),(function(e){return jt(e)||(Ft(t),e&&e.response&&(e.response.data=Nt.call(t,t.transformResponse,e.response),e.response.headers=At.from(e.response.headers))),Promise.reject(e)}))}const xt=t=>t instanceof At?t.toJSON():t;function Mt(t,e){e=e||{};const n={};function r(t,e,n){return nt.isPlainObject(t)&&nt.isPlainObject(e)?nt.merge.call({caseless:n},t,e):nt.isPlainObject(e)?nt.merge({},e):nt.isArray(e)?e.slice():e}function o(t,e,n){return nt.isUndefined(e)?nt.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!nt.isUndefined(e))return r(void 0,e)}function s(t,e){return nt.isUndefined(e)?nt.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function u(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(xt(t),xt(e),!0)};return nt.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,s=i(t[r],e[r],r);nt.isUndefined(s)&&i!==u||(n[r]=s)})),n}const Ht={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Ht[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const qt={};Ht.transitional=function(t,e,n){function r(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new rt(r(o," has been removed"+(e?" in "+e:"")),rt.ERR_DEPRECATED);return e&&!qt[o]&&(qt[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const kt={assertOptions:function(t,e,n){if("object"!=typeof t)throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const e=t[i],n=void 0===e||s(e,i,t);if(!0!==n)throw new rt("option "+i+" must be "+n,rt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}},validators:Ht},zt=kt.validators;class Gt{constructor(t){this.defaults=t,this.interceptors={request:new bt,response:new bt}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Mt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;let i;void 0!==n&&kt.assertOptions(n,{silentJSONParsing:zt.transitional(zt.boolean),forcedJSONParsing:zt.transitional(zt.boolean),clarifyTimeoutError:zt.transitional(zt.boolean)},!1),null!=r&&(nt.isFunction(r)?e.paramsSerializer={serialize:r}:kt.assertOptions(r,{encode:zt.function,serialize:zt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&nt.merge(o.common,o[e.method]),i&&nt.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=At.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let a;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let l,f=0;if(!u){const t=[Bt.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),l=t.length,a=Promise.resolve(e);f<l;)a=a.then(t[f++],t[f++]);return a}l=s.length;let h=e;for(f=0;f<l;){const t=s[f++],e=s[f++];try{h=t(h)}catch(t){e.call(this,t);break}}try{a=Bt.call(this,h)}catch(t){return Promise.reject(t)}for(f=0,l=c.length;f<l;)a=a.then(c[f++],c[f++]);return a}getUri(t){return pt(Lt((t=Mt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}nt.forEach(["delete","get","head","options"],(function(t){Gt.prototype[t]=function(e,n){return this.request(Mt(n||{},{method:t,url:e,data:(n||{}).data}))}})),nt.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Mt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Gt.prototype[t]=e(),Gt.prototype[t+"Form"]=e(!0)}));class Jt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null})),this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,o){n.reason||(n.reason=new Ct(t,r,o),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new Jt((function(e){t=e})),cancel:t}}}const Kt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Kt).forEach((([t,e])=>{Kt[e]=t}));const Vt=function t(e){const n=new Gt(e),r=g(Gt.prototype.request,n);return nt.extend(r,Gt.prototype,n,{allOwnKeys:!0}),nt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Mt(e,n))},r}(Rt);Vt.Axios=Gt,Vt.CanceledError=Ct,Vt.CancelToken=Jt,Vt.isCancel=jt,Vt.VERSION="1.4.0",Vt.toFormData=lt,Vt.AxiosError=rt,Vt.Cancel=Vt.CanceledError,Vt.all=function(t){return Promise.all(t)},Vt.spread=function(t){return function(e){return t.apply(null,e)}},Vt.isAxiosError=function(t){return nt.isObject(t)&&!0===t.isAxiosError},Vt.mergeConfig=Mt,Vt.AxiosHeaders=At,Vt.formToJSON=t=>_t(nt.isHTMLForm(t)?new FormData(t):t),Vt.HttpStatusCode=Kt,Vt.default=Vt;var Xt=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},$t=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return Xt()}try{return __global__||Xt()}finally{delete Object.prototype.__global__}}(),Yt=Symbol.for("verdocs-default-endpoint"),Wt=function(t){return console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):""),t},Zt=function(){function e(t){this.environment="verdocs",this.sessionType="user",this.baseURL="https://api.verdocs.com",this.clientID="not-set",this.timeout=6e4,this.token=null,this.nextListenerId=0,this.sessionListeners=new Map,this.requestLoggerId=null,this.session=null,this.baseURL=(null==t?void 0:t.baseURL)||"https://api.verdocs.com",this.timeout=(null==t?void 0:t.timeout)||6e4,this.environment=(null==t?void 0:t.environment)||"verdocs",this.sessionType=(null==t?void 0:t.sessionType)||"user",this.clientID=(null==t?void 0:t.clientID)||"not-set",this.api=Vt.create({baseURL:this.baseURL,timeout:this.timeout}),O(this.api,{retries:0,retryDelay:O.exponentialDelay,onRetry:function(t,e,n){window.console.debug("[JS_SDK] Retrying request (".concat(t,")"),e.message,n.url)}})}return e.prototype.setDefault=function(){$t[Yt]=this},e.getDefault=function(){return $t[Yt]||($t[Yt]=new e,window.console.debug("[JS_SDK] Created default endpoint",$t[Yt])),$t[Yt]},e.prototype.getEnvironment=function(){return this.environment},e.prototype.getSessionType=function(){return this.sessionType},e.prototype.getBaseURL=function(){return this.baseURL},e.prototype.getClientID=function(){return this.clientID},e.prototype.getTimeout=function(){return this.timeout},e.prototype.getSession=function(){return this.session},e.prototype.setEnvironment=function(t){return this.environment=t,this},e.prototype.setSessionType=function(t){return this.sessionType=t,this},e.prototype.setBaseURL=function(t){return this.api.defaults.baseURL=t,this},e.prototype.setClientID=function(t){return this.clientID=t,this.api.defaults.headers.common["X-Client-ID"]=t,this},e.prototype.setTimeout=function(t){return this.timeout=t,this.api.defaults.timeout=t,this},e.prototype.logRequests=function(t){return t&&null===this.requestLoggerId?this.requestLoggerId=this.api.interceptors.request.use(Wt):t||null===this.requestLoggerId||this.api.interceptors.request.eject(this.requestLoggerId),this},e.prototype.setToken=function(e){if(!e)return this.clearSession();var n=t(e);return null===n||n.exp&&1e3*n.exp<(new Date).getTime()?(window.console.warn("[JS_SDK] Ignoring attempt to use expired session token"),this.clearSession()):(this.token=e,this.session=n,"user"===this.sessionType?this.api.defaults.headers.common.Authorization="Bearer ".concat(e):this.api.defaults.headers.common.signer="Bearer ".concat(e),localStorage.setItem(this.sessionStorageKey(),e),this.notifySessionListeners(),this)},e.prototype.getToken=function(){return this.token},e.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())},e.prototype.clearSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,delete this.api.defaults.headers.common.signer,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.clearSignerSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,this.session=null,this.token=null,this.notifySessionListeners(),this},e.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(e){try{e(t,t.session)}catch(t){}}))},e.prototype.onSessionChanged=function(t){var e=this;this.nextListenerId++;var n=Symbol.for(""+this.nextListenerId);return this.sessionListeners.set(n,t),function(){e.sessionListeners.delete(n)}},e.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());return t?this.setToken(t):this.clearSession()},e}();export{e as T,Zt as V}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function r(e){try{a(o.next(e))}catch(e){n(e)}}function l(e){try{a(o["throw"](e))}catch(e){n(e)}}function a(e){e.done?i(e.value):s(e.value).then(r,l)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,s,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(r){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,s&&(n=r[0]&2?s["return"]:r[0]?s["throw"]||((n=s["return"])&&n.call(s),0):s.next)&&!(n=n.call(s,r[1])).done)return n;if(s=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;s=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){i.label=r[1];break}if(r[0]===6&&i.label<n[1]){i.label=n[1];n=r;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(r);break}if(n[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];s=0}finally{o=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-54498887.system.js","./p-4ac861c9.system.js","./p-365a0216.system.js","./p-a6258dde.system.js","./p-187b20b7.system.js","./p-b4d11d90.system.js"],(function(e){"use strict";var t,i,o,s,n,r,l,a;return{setters:[function(e){t=e.r;i=e.c;o=e.h;s=e.H},function(){},function(e){n=e.u},function(e){r=e.V},function(e){l=e.g},function(e){a=e.S},function(){}],execute:function(){var c='verdocs-template-visibility{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}';var u=e("verdocs_template_visibility",function(){function e(e){t(this,e);this.close=i(this,"close",7);this.sdkError=i(this,"sdkError",7);this.store=null;this.endpoint=r.getDefault();this.templateId="";this.dirty=false;this.personal=false;this.public=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,s,n,r,c,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[VISIBILITY] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[VISIBILITY] Unable to start builder session, must be authenticated");return[2]}c=this;return[4,l(this.endpoint,this.templateId,false)];case 1:c.store=p.sent();this.personal=((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.is_personal)||true;this.public=((o=(i=this.store)===null||i===void 0?void 0:i.state)===null||o===void 0?void 0:o.is_public)||false;this.dirty=false;return[3,3];case 2:u=p.sent();console.log("[TEMPLATE VISIBILITY] Error loading template",u);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new a(u.message,(n=u.response)===null||n===void 0?void 0:n.status,(r=u.response)===null||r===void 0?void 0:r.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t,i,o,s,n;e.stopPropagation();this.personal=(i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.is_personal;this.public=(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.is_public;this.dirty=false;(n=this.close)===null||n===void 0?void 0:n.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(o){switch(o.label){case 0:e.stopPropagation();return[4,n(this.endpoint,this.templateId,{is_personal:this.personal,is_public:this.public})];case 1:o.sent();if((t=this.store)===null||t===void 0?void 0:t.state){this.store.state.is_personal=this.personal;this.store.state.is_public=this.public}this.dirty=false;(i=this.close)===null||i===void 0?void 0:i.emit();return[2]}}))}))};e.prototype.render=function(){var e=this;var t,i;if(!this.endpoint.session){return o(s,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(!this.endpoint.session||!((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.isLoaded)){return o(s,{class:"empty"})}return o(s,null,o("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("h5",null,"Visibility"),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-shared"},"Shared"),o("verdocs-checkbox",{id:"verdocs-is-shared",name:"is-shared",checked:!this.personal,value:"on",onInput:function(t){e.personal=!t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Shared templates are visible to other members of your Organization (if any)."),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-public"},"Public"),o("verdocs-checkbox",{id:"verdocs-is-public",name:"is-public",checked:this.public,value:"on",onInput:function(t){e.public=t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Public templates may appear in results when any other user searches for templates. Note that a template may be both Personal and Public, which may be useful if you want your template to be found via search but not otherwise displayed to other members of your Organization (if any)."),o("div",{class:"buttons"},o("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))))};return e}());u.style=c}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,o){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function r(e){try{a(o.next(e))}catch(e){n(e)}}function l(e){try{a(o["throw"](e))}catch(e){n(e)}}function a(e){e.done?i(e.value):s(e.value).then(r,l)}a((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,s,n,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return a([e,t])}}function a(r){if(o)throw new TypeError("Generator is already executing.");while(i)try{if(o=1,s&&(n=r[0]&2?s["return"]:r[0]?s["throw"]||((n=s["return"])&&n.call(s),0):s.next)&&!(n=n.call(s,r[1])).done)return n;if(s=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;s=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){i.label=r[1];break}if(r[0]===6&&i.label<n[1]){i.label=n[1];n=r;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(r);break}if(n[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];s=0}finally{o=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-54498887.system.js","./p-4ac861c9.system.js","./p-dc849a58.system.js","./p-4cc5d833.system.js","./p-187b20b7.system.js","./p-b4d11d90.system.js"],(function(e){"use strict";var t,i,o,s,n,r,l,a;return{setters:[function(e){t=e.r;i=e.c;o=e.h;s=e.H},function(){},function(e){n=e.u},function(e){r=e.V},function(e){l=e.g},function(e){a=e.S},function(){}],execute:function(){var c='verdocs-template-visibility{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;color:#5c6575}verdocs-template-visibility form h5{font-size:16px;font-weight:bold;color:#4c56cb;margin:0}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;margin:0 0 4px 0;color:#33364b}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{-ms-flex:0;flex:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility form .input-row verdocs-checkbox label>input[type=checkbox]+*::before{margin-right:0}verdocs-template-visibility .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:25px;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}';var u=e("verdocs_template_visibility",function(){function e(e){t(this,e);this.close=i(this,"close",7);this.sdkError=i(this,"sdkError",7);this.store=null;this.endpoint=r.getDefault();this.templateId="";this.dirty=false;this.personal=false;this.public=false}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,s,n,r,c,u;return __generator(this,(function(p){switch(p.label){case 0:p.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.templateId){console.log("[VISIBILITY] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[VISIBILITY] Unable to start builder session, must be authenticated");return[2]}c=this;return[4,l(this.endpoint,this.templateId,false)];case 1:c.store=p.sent();this.personal=((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.is_personal)||true;this.public=((o=(i=this.store)===null||i===void 0?void 0:i.state)===null||o===void 0?void 0:o.is_public)||false;this.dirty=false;return[3,3];case 2:u=p.sent();console.log("[TEMPLATE VISIBILITY] Error loading template",u);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new a(u.message,(n=u.response)===null||n===void 0?void 0:n.status,(r=u.response)===null||r===void 0?void 0:r.data));return[3,3];case 3:return[2]}}))}))};e.prototype.handleCancel=function(e){var t,i,o,s,n;e.stopPropagation();this.personal=(i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.is_personal;this.public=(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.is_public;this.dirty=false;(n=this.close)===null||n===void 0?void 0:n.emit()};e.prototype.handleSave=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(o){switch(o.label){case 0:e.stopPropagation();return[4,n(this.endpoint,this.templateId,{is_personal:this.personal,is_public:this.public})];case 1:o.sent();if((t=this.store)===null||t===void 0?void 0:t.state){this.store.state.is_personal=this.personal;this.store.state.is_public=this.public}this.dirty=false;(i=this.close)===null||i===void 0?void 0:i.emit();return[2]}}))}))};e.prototype.render=function(){var e=this;var t,i;if(!this.endpoint.session){return o(s,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(!this.endpoint.session||!((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.isLoaded)){return o(s,{class:"empty"})}return o(s,null,o("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},o("h5",null,"Visibility"),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-shared"},"Shared"),o("verdocs-checkbox",{id:"verdocs-is-shared",name:"is-shared",checked:!this.personal,value:"on",onInput:function(t){e.personal=!t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Shared templates are visible to other members of your Organization (if any)."),o("div",{class:"input-row"},o("label",{htmlFor:"verdocs-is-public"},"Public"),o("verdocs-checkbox",{id:"verdocs-is-public",name:"is-public",checked:this.public,value:"on",onInput:function(t){e.public=t.target.checked;e.dirty=true}})),o("div",{class:"description"},"Public templates may appear in results when any other user searches for templates. Note that a template may be both Personal and Public, which may be useful if you want your template to be found via search but not otherwise displayed to other members of your Organization (if any)."),o("div",{class:"buttons"},o("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:function(t){return e.handleSave(t)}}))))};return e}());u.style=c}}}));
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as s,a as o}from"./p-9cf1a627.js";import{i as r}from"./p-0d28cf05.js";import"./p-05788c2b.js";import{u as l}from"./p-feb442b1.js";import{V as n}from"./p-ff662b13.js";import{g as a}from"./p-6de76553.js";import{g as d}from"./p-8fb2cf32.js";import"./p-eab67c09.js";import"./p-cf790f4f.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-ab01f71e.js";const h=class{constructor(i){t(this,i),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.endpoint=n.getDefault(),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.xscale=1,this.yscale=1,this.rerender=0}async focusField(){this.inputEl.focus()}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.hidePanel&&t.hidePanel()}componentDidRender(){r.dynamicDrop(!0),this.editable&&r(this.el).resizable({edges:{top:!1,bottom:!1,left:!0,right:!0},listeners:{start:this.handleResizeStart.bind(this),move:this.handleResize.bind(this),end:this.handleResizeEnd.bind(this)}})}handleResizeStart(t){t.preventDefault(),t.stopPropagation()}handleResize(t){let{x:e=0,y:i=0,h:s=0}=t.target.dataset,{width:o,height:r}=t.rect;e=(parseFloat(e)||0)+t.deltaRect.left,i=(parseFloat(i)||0)+t.deltaRect.top,s=(parseFloat(s)||0)+t.deltaRect.height,Object.assign(t.target.style,{width:`${o}px`,height:`${r}px`,transform:`translate(${e}px, ${i+s}px)`}),Object.assign(t.target.dataset,{x:e,y:i,h:s})}handleResizeEnd(t){const e={...d(this.field)},[i,s]=t.target.style.transform.split("(")[1].split(")")[0].split(",").map(parseFloat);e.width=Math.round(parseFloat(t.target.style.width)/this.xscale),e.height=Math.round(parseFloat(t.target.style.height)/this.yscale),e.x=Math.round(e.x+i/this.xscale),e.y=Math.round(e.y-s/this.yscale),l(this.endpoint,this.templateid,this.field.name,{setting:e}).then((()=>{var i;null===(i=this.settingsChanged)||void 0===i||i.emit({fieldName:this.field.name,settings:e}),Object.assign(t.target.dataset,{x:0,y:0,h:0})})).catch((t=>console.log("Field update failed",t)))}render(){var t,e,o,r;const l=d(this.field);let n=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:l.disabled)&&void 0!==e&&e;const h=this.field.rgba||a(this.roleindex),p=(null==l?void 0:l.result)||"",c=(l.width||150)/5;return this.done?i(s,{class:{done:this.done}},p):i(s,{class:{required:null===(o=this.field)||void 0===o?void 0:o.required,disabled:n,done:this.done},style:{backgroundColor:h}},i("input",{type:"text",name:this.field.name,placeholder:null==l?void 0:l.placeholder,tabIndex:null==l?void 0:l.order,value:p,disabled:n,required:null===(r=this.field)||void 0===r?void 0:r.required,ref:t=>this.inputEl=t,maxlength:c}),this.editable&&i("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},i("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var t;return null===(t=this.deleted)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()},helpText:'Text boxes may be used to capture simple text input. Participant-entered values will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must complete the field before proceeding.'})))}get el(){return o(this)}};h.style='verdocs-field-textbox{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:150px;height:15px;display:block;font-size:11px;position:relative;letter-spacing:-0.2px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-textbox.disabled{opacity:0.5}verdocs-field-textbox input{width:100%;height:100%;border:none;outline:none;padding:0 3px;font-size:11px;background:none;font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87)}verdocs-field-textbox input.hide{display:none}verdocs-field-textbox.required{border:1px solid #cc0000}verdocs-field-textbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-textbox verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-textbox verdocs-button-panel[data-active],verdocs-field-textbox verdocs-button-panel:hover{opacity:1}verdocs-field-textbox verdocs-button-panel .icon svg{fill:#333333}verdocs-field-textbox verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-textbox [data-lastpass-icon-root]{display:none !important}';export{h as verdocs_field_textbox}
1
+ import{r as t,c as e,h as i,H as s,a as o}from"./p-9cf1a627.js";import{i as r}from"./p-0d28cf05.js";import"./p-05788c2b.js";import{u as l}from"./p-feb442b1.js";import{V as n}from"./p-0b4ea5f9.js";import{g as a}from"./p-6de76553.js";import{g as d}from"./p-8ec8d450.js";import"./p-eab67c09.js";import"./p-c16d1ce1.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const h=class{constructor(i){t(this,i),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.endpoint=n.getDefault(),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.xscale=1,this.yscale=1,this.rerender=0}async focusField(){this.inputEl.focus()}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.hidePanel&&t.hidePanel()}componentDidRender(){r.dynamicDrop(!0),this.editable&&r(this.el).resizable({edges:{top:!1,bottom:!1,left:!0,right:!0},listeners:{start:this.handleResizeStart.bind(this),move:this.handleResize.bind(this),end:this.handleResizeEnd.bind(this)}})}handleResizeStart(t){t.preventDefault(),t.stopPropagation()}handleResize(t){let{x:e=0,y:i=0,h:s=0}=t.target.dataset,{width:o,height:r}=t.rect;e=(parseFloat(e)||0)+t.deltaRect.left,i=(parseFloat(i)||0)+t.deltaRect.top,s=(parseFloat(s)||0)+t.deltaRect.height,Object.assign(t.target.style,{width:`${o}px`,height:`${r}px`,transform:`translate(${e}px, ${i+s}px)`}),Object.assign(t.target.dataset,{x:e,y:i,h:s})}handleResizeEnd(t){const e={...d(this.field)},[i,s]=t.target.style.transform.split("(")[1].split(")")[0].split(",").map(parseFloat);e.width=Math.round(parseFloat(t.target.style.width)/this.xscale),e.height=Math.round(parseFloat(t.target.style.height)/this.yscale),e.x=Math.round(e.x+i/this.xscale),e.y=Math.round(e.y-s/this.yscale),l(this.endpoint,this.templateid,this.field.name,{setting:e}).then((()=>{var i;null===(i=this.settingsChanged)||void 0===i||i.emit({fieldName:this.field.name,settings:e}),Object.assign(t.target.dataset,{x:0,y:0,h:0})})).catch((t=>console.log("Field update failed",t)))}render(){var t,e,o,r;const l=d(this.field);let n=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:l.disabled)&&void 0!==e&&e;const h=this.field.rgba||a(this.roleindex),p=(null==l?void 0:l.result)||"",c=(l.width||150)/5;return this.done?i(s,{class:{done:this.done}},p):i(s,{class:{required:null===(o=this.field)||void 0===o?void 0:o.required,disabled:n,done:this.done},style:{backgroundColor:h}},i("input",{type:"text",name:this.field.name,placeholder:null==l?void 0:l.placeholder,tabIndex:null==l?void 0:l.order,value:p,disabled:n,required:null===(r=this.field)||void 0===r?void 0:r.required,ref:t=>this.inputEl=t,maxlength:c}),this.editable&&i("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},i("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var t;return null===(t=this.deleted)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()},helpText:'Text boxes may be used to capture simple text input. Participant-entered values will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must complete the field before proceeding.'})))}get el(){return o(this)}};h.style='verdocs-field-textbox{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:150px;height:15px;display:block;font-size:11px;position:relative;letter-spacing:-0.2px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-textbox.disabled{opacity:0.5}verdocs-field-textbox input{width:100%;height:100%;border:none;outline:none;padding:0 3px;font-size:11px;background:none;font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87)}verdocs-field-textbox input.hide{display:none}verdocs-field-textbox.required{border:1px solid #cc0000}verdocs-field-textbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-textbox verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-textbox verdocs-button-panel[data-active],verdocs-field-textbox verdocs-button-panel:hover{opacity:1}verdocs-field-textbox verdocs-button-panel .icon svg{fill:#333333}verdocs-field-textbox verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-textbox [data-lastpass-icon-root]{display:none !important}';export{h as verdocs_field_textbox}
@@ -1 +1 @@
1
- import{r as e,c as t,h as s,H as o}from"./p-9cf1a627.js";import{g as i}from"./p-6de76553.js";import{g as n}from"./p-8fb2cf32.js";import"./p-eab67c09.js";import"./p-cf790f4f.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-ab01f71e.js";const r=class{constructor(s){e(this,s),this.fieldChange=t(this,"fieldChange",7),this.settingsChanged=t(this,"settingsChanged",7),this.deleted=t(this,"deleted",7),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.rerender=0}async focusField(){this.el.focus()}handleChange(e){this.fieldChange.emit(e.target.value)}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);console.log("will hide",e),e&&e.showPanel&&e.showPanel()}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);e&&e.hidePanel&&e.hidePanel()}render(){var e,t;const r=n(this.field),d=null!==(t=null!==(e=this.disabled)&&void 0!==e?e:r.disabled)&&void 0!==t&&t,a=this.field.rgba||i(this.roleindex),l=(null==r?void 0:r.value)||"";return this.done?s(o,{class:{done:this.done}},l):s(o,{class:{required:r.required,disabled:d},style:{backgroundColor:a}},s("select",{tabIndex:r.order,disabled:d,ref:e=>this.el=e,onChange:e=>this.handleChange(e)},s("option",{value:""},"Select..."),(r.options||[]).map((e=>s("option",{value:e.id,selected:e.value===l},e.value)))),this.editable&&s("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},s("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var e;return null===(e=this.deleted)||void 0===e||e.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:e=>{var t;return null===(t=this.settingsChanged)||void 0===t||t.emit(e.detail),this.hideSettingsPanel()}})))}};r.style='verdocs-field-dropdown{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:85px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-dropdown.disabled{opacity:0.5}verdocs-field-dropdown select{position:absolute;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 6px, calc(100% - 3px) 6px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;font-size:11px;border:1px solid rgba(0, 0, 0, 0.2);padding:0 5px}verdocs-field-dropdown select:focus{outline:none}verdocs-field-dropdown select.hide{display:none}verdocs-field-dropdown.required select{border:1px solid #cc0000}verdocs-field-dropdown.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-dropdown verdocs-button-panel{display:block;margin-left:-33px;margin-top:-1px;-webkit-transform:scale(0.7);transform:scale(0.7)}';export{r as verdocs_field_dropdown}
1
+ import{r as e,c as t,h as s,H as o}from"./p-9cf1a627.js";import{g as i}from"./p-6de76553.js";import{g as n}from"./p-8ec8d450.js";import"./p-eab67c09.js";import"./p-c16d1ce1.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const r=class{constructor(s){e(this,s),this.fieldChange=t(this,"fieldChange",7),this.settingsChanged=t(this,"settingsChanged",7),this.deleted=t(this,"deleted",7),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.rerender=0}async focusField(){this.el.focus()}handleChange(e){this.fieldChange.emit(e.target.value)}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);console.log("will hide",e),e&&e.showPanel&&e.showPanel()}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.field.name}`);e&&e.hidePanel&&e.hidePanel()}render(){var e,t;const r=n(this.field),d=null!==(t=null!==(e=this.disabled)&&void 0!==e?e:r.disabled)&&void 0!==t&&t,a=this.field.rgba||i(this.roleindex),l=(null==r?void 0:r.value)||"";return this.done?s(o,{class:{done:this.done}},l):s(o,{class:{required:r.required,disabled:d},style:{backgroundColor:a}},s("select",{tabIndex:r.order,disabled:d,ref:e=>this.el=e,onChange:e=>this.handleChange(e)},s("option",{value:""},"Select..."),(r.options||[]).map((e=>s("option",{value:e.id,selected:e.value===l},e.value)))),this.editable&&s("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},s("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var e;return null===(e=this.deleted)||void 0===e||e.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:e=>{var t;return null===(t=this.settingsChanged)||void 0===t||t.emit(e.detail),this.hideSettingsPanel()}})))}};r.style='verdocs-field-dropdown{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:85px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-dropdown.disabled{opacity:0.5}verdocs-field-dropdown select{position:absolute;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 6px, calc(100% - 3px) 6px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;font-size:11px;border:1px solid rgba(0, 0, 0, 0.2);padding:0 5px}verdocs-field-dropdown select:focus{outline:none}verdocs-field-dropdown select.hide{display:none}verdocs-field-dropdown.required select{border:1px solid #cc0000}verdocs-field-dropdown.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-dropdown verdocs-button-panel{display:block;margin-left:-33px;margin-top:-1px;-webkit-transform:scale(0.7);transform:scale(0.7)}';export{r as verdocs_field_dropdown}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):r(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-934a39b4.system.js","./p-8fd812f4.system.js","./p-54498887.system.js","./p-eaf0b189.system.js","./p-365a0216.system.js","./p-7efdefa3.system.js","./p-d50523fd.system.js","./p-d21e9e04.system.js","./p-7fd7152d.system.js","./p-187b20b7.system.js","./p-ca13070e.system.js","./p-51a3ea62.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js"],(function(e){"use strict";var t,i,n,r,s,o,a,l,d,c,u,h,p,f,v,g,m,x,b,w,y,I,k,_,F,S,N,D;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;s=e.F},function(e){o=e.d;a=e.t;l=e.u;d=e.e;c=e.f},function(e){u=e.R},function(e){h=e.e;p=e.a;f=e.b},function(e){v=e.V},function(e){g=e.a;m=e.i},function(e){x=e.f;b=e.i},function(e){w=e.s;y=e.u;I=e.a;k=e.r;_=e.b},function(e){F=e.a},function(e){S=e.S},function(e){N=e.V},function(e){D=e.f},function(){},function(){}],execute:function(){var E=function(e,t,i){var n=new FormData;n.append("signature",i,t);return e.api.post("/signatures",n).then((function(e){return e.data}))};var R=function(e,t,i){var n=new FormData;n.append("initial",i,t);return e.api.post("/initials",n).then((function(e){return e.data}))};var L='verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}';var A=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var C=[{id:"print",label:"Print"},{id:"download",label:"Download"}];var G=e("verdocs_sign",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.envelopeLoaded=i(this,"envelopeLoaded",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.endpoint=null;this.recipientIndex=-1;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.envelope=null;this.roleNames=[];this.sortedRecipients=[];this.recipient=null;this.signerToken=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.errorMessage="";this.focusedField="";this.submitting=false;this.isDone=false;this.showDone=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document"}e.prototype.componentWillLoad=function(){this.endpoint=new v({sessionType:"signing"})};e.prototype.componentWillRender=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,l,d,c,u,h,p,f;var v=this;return __generator(this,(function(g){switch(g.label){case 0:if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new S("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new S("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new S("[SIGN] Missing required inviteCode",500,""));return[2]}g.label=1;case 1:g.trys.push([1,4,,5]);console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,o(this.endpoint,{envelopeId:this.envelopeId,roleId:this.roleId,inviteCode:this.inviteCode})];case 2:d=g.sent(),c=d.session,u=d.recipient,h=d.signerToken;console.log("[SIGN] Loaded signing session ".concat(c.email," / ").concat(c.profile_id));this.recipient=u;console.log("[SIGN] We are recipient",this.recipient);this.signerToken=h;this.endpoint.setToken(h);if(this.agreed){this.nextButtonLabel="Next"}p=this;return[4,a(this.endpoint,this.envelopeId)];case 3:p.envelope=g.sent();this.sortedRecipients=__spreadArray([],this.envelope.recipients,true);this.sortedRecipients.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}));this.roleNames=this.sortedRecipients.map((function(e){return e.role_name}));if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.recipientIndex=this.roleNames.findIndex((function(e){return e==v.roleId}));if(this.recipientIndex>-1){this.recipient=this.sortedRecipients[this.recipientIndex];this.agreed=this.recipient.agreed;console.log("[SIGN] Found our recipient in the envelope",this.recipientIndex,this.recipient)}else{console.log("[SIGN] Could not find our recipient record",this.roleId,this.sortedRecipients)}this.isDone=["submitted","canceled","declined"].includes(this.recipient.status);this.checkRecipientFields();(n=this.envelopeLoaded)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope});return[3,5];case 4:f=g.sent();console.log("Error with signing session",f);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new S(f.message,(s=f.response)===null||s===void 0?void 0:s.status,(l=f.response)===null||l===void 0?void 0:l.data));return[3,5];case 5:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;h(this.endpoint,this.envelopeId,this.roleId,true).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,r;console.log("Update failure",t);e.submitting=false;(i=e.sdkError)===null||i===void 0?void 0:i.emit(new S(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(r=t.response)===null||r===void 0?void 0:r.data))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,r,s,o,a;return __generator(this,(function(l){switch(l.label){case 0:o=e.detail.id;switch(o){case"later":return[3,1];case"claim":return[3,2];case"decline":return[3,3];case"print":return[3,5];case"download":return[3,6]}return[3,7];case 1:this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});return[3,7];case 2:N("This feature will be available in an upcoming release.");(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});return[3,7];case 3:this.submitting=true;return[4,p(this.endpoint,this.envelopeId,this.roleId)];case 4:a=l.sent();console.log("Decline result",a);(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.isDone=true;return[3,7];case 5:window.print();(r=this.envelopeUpdated)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,7];case 6:w(this.endpoint,this.envelope,this.envelope.envelope_document_id).catch((function(e){console.log("Error downloading PDF",e)}));(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"});return[3,7];case 7:return[2]}}))}))};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e);this.recipient.fields.forEach((function(n){if(n.name===e){n.settings=t.settings;y(n);i.checkRecipientFields()}}))};e.prototype.saveFieldChange=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e);l(this.endpoint,this.envelopeId,e,t).then((function(t){return i.updateRecipientFieldValue(e,t)})).catch((function(e){var t,n,r,s,o,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((r=(n=e.response)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.error)==="jwt expired"){console.log("[SIGN] Signing session expired");i.errorMessage="Signing session expired. Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(s=i.sdkError)===null||s===void 0?void 0:s.emit(new S(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,o,o,a,l,u,h;var p=this;return __generator(this,(function(f){switch(f.label){case 0:i=t.target,n=i.value,r=i.checked;s=e.type;switch(s){case"textbox":return[3,1];case"checkbox_group":return[3,2];case"radio_button_group":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,8];case"date":return[3,11];case"timestamp":return[3,12]}return[3,13];case 1:return[2,this.saveFieldChange(e.name,{prepared:false,value:n})];case 2:{o=e.settings.options.map((function(e){return{id:e.id,checked:t.target.checked}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:o}})]}f.label=3;case 3:{o=e.settings.options.map((function(e){return{id:e.id,selected:t.target.value===e.id}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:o}})]}f.label=4;case 4:return[2,this.saveFieldChange(e.name,{prepared:false,value:t.detail})];case 5:return[4,fetch(t.detail)];case 6:return[4,f.sent().blob()];case 7:a=f.sent();return[2,R(this.endpoint,"initial",a).then((function(t){return __awaiter(p,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,c(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);return[2]}}))}))}))];case 8:return[4,fetch(t.detail)];case 9:return[4,f.sent().blob()];case 10:l=f.sent();return[2,E(this.endpoint,"signature",l).then((function(t){return __awaiter(p,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,d(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);return[2]}}))}))}))];case 11:u=t.target.getAttribute("iso");console.log("Formatting date for save",u);h=D(new Date(u),F);console.log("Formatted",h);return[2,this.saveFieldChange(e.name,{prepared:false,value:h})];case 12:console.log("Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,14];case 13:console.log("Unhandled field update",{value:n,checked:r},e);return[3,14];case 14:return[2]}}))}))};e.prototype.isFieldValid=function(e){var t,i,n,r,s,o,a;var l=e.required,d=l===void 0?false:l;var c=e.settings||{},u=c.result,h=u===void 0?"":u,p=c.value,f=p===void 0?"":p,v=c.base64,x=v===void 0?"":v;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return m(h);case"phone":return g(h);default:return!d||h!==""}case"signature":case"initial":return!d||x!=="";case"timestamp":return true;case"textarea":case"date":case"attachment":return!d||h!=="";case"dropdown":return!d||f!=="";case"checkbox_group":var b=(((n=(i=e.settings)===null||i===void 0?void 0:i.options)===null||n===void 0?void 0:n.filter((function(e){return e.checked})))||[]).length;return!d||b>=(((r=e.settings)===null||r===void 0?void 0:r.minimum_checked)||0)&&b<=(((s=e.settings)===null||s===void 0?void 0:s.maximum_checked)||999);case"radio_button_group":return!d||(((a=(o=e.settings)===null||o===void 0?void 0:o.options)===null||a===void 0?void 0:a.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o,a,l,d;var c=this;return __generator(this,(function(u){switch(u.label){case 0:if(!this.nextSubmits)return[3,5];u.label=1;case 1:u.trys.push([1,3,,4]);this.submitting=true;return[4,f(this.endpoint,this.envelopeId,this.roleId)];case 2:t=u.sent();console.log("[SIGN] Submitted successfully",t);this.recipient.status="submitted";this.showDone=true;this.isDone=true;setTimeout((function(){console.log("[SIGN] Reloading");window.location.reload()}),1e3);return[3,4];case 3:i=u.sent();console.log("[SIGN] Error submitting",i);return[3,4];case 4:this.submitting=false;return[2];case 5:n=this.recipient.fields.filter((function(e){return e.required}));r=n.findIndex((function(e){return e.name===c.focusedField}));s=r+1;if(s>=n.length){s=0}o=n[s];a=0;if(a<n.length&&["signature","initial"].includes(o.type)&&((e=o.settings)===null||e===void 0?void 0:e.result)==="signed"){a++;s++;if(s>=n.length){s=0}o=n[s]}if(a>=n.length){o=null}if(o){l=_(o);d=document.getElementById(l);d===null||d===void 0?void 0:d.focusField();this.focusedField=o.name}return[2]}}))}))};e.prototype.checkRecipientFields=function(){var e=this;var t=this.recipient.fields.filter((function(t){return!e.isFieldValid(t)}));if(t.length<1){this.nextButtonLabel="Finish";this.nextSubmits=true}else{console.log("[SIGN] Remaining invalid fields",t);this.nextButtonLabel="Next";this.nextSubmits=false}};e.prototype.attachFieldAttributes=function(e,t,i,n){var r=this;var s;n.addEventListener("input",(function(e){console.log("[SIGN] onfieldInput",e.detail,e.target.value);if(e.target.name.includes("checkbox_group")||e.target.name.includes("radio_button_group")){console.log("CB",e.target);r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}else{r.checkRecipientFields()}}));n.addEventListener("focusout",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));n.addEventListener("fieldChange",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));n.setAttribute("roleindex",i);n.setAttribute("xScale",e.xScale);n.setAttribute("yScale",e.yScale);n.setAttribute("initials",this.recipient?x(this.recipient.full_name):"");n.setAttribute("name",((s=this.recipient)===null||s===void 0?void 0:s.full_name)||"")};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;var n=I(this.roleNames,this.recipient.role_name);var r=this.recipient.fields.filter((function(e){return e.page===i.pageNumber}));console.log("[SIGN] Page rendered, updating fields",{pageInfo:i,roleIndex:n,recipientFields:r});r.forEach((function(e){var r=k(e,i,n,{disabled:false,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(i,e,n,r)}))}else{t.attachFieldAttributes(i,e,n,r)}}));this.sortedRecipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status===u.INVITED||e.status===u.OPENED||e.status===u.PENDING)})).forEach((function(e){var n=I(t.roleNames,e.role_name);e.fields.forEach((function(e){var r=k(e,i,n,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(i,e,n,r)}))}else{t.attachFieldAttributes(i,e,n,r)}}))}));this.checkRecipientFields()};e.prototype.render=function(){var e=this;if(!this.envelope){return n(r,null,n("verdocs-loader",null))}if(this.isDone){return n(r,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.detail)}}),this.errorMessage&&n("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}return n(r,{class:{agreed:this.agreed}},!this.finishLater&&n("div",{class:"intro"},n("div",{class:"inner"},"Please review and act on these documents.")),n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},!this.agreed?n("div",{class:"agree"},n("verdocs-checkbox",{name:"agree",label:"I agree to use electronic records and signatures.",onInput:function(){return e.handleClickAgree()}})):n(s,null,n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}})),!this.finishLater&&n("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!this.agreed,onClick:function(){return e.handleNext()}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?A:C,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),!this.agreed?n("div",{class:"cover"}):n("div",{style:{display:"none"}}),n("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(this.envelope.documents||[]).map((function(t){var i=b(1,t.page_numbers);return n(s,null,i.map((function(i){return n("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:612,virtualHeight:792,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&n("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){return e.showFinishLater=false}}),this.errorMessage&&n("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))};return e}());G.style=L}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):r(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-934a39b4.system.js","./p-18a67b44.system.js","./p-54498887.system.js","./p-eaf0b189.system.js","./p-dc849a58.system.js","./p-7efdefa3.system.js","./p-d50523fd.system.js","./p-3c6f9c7f.system.js","./p-7fd7152d.system.js","./p-187b20b7.system.js","./p-ca13070e.system.js","./p-dc9c4361.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js"],(function(e){"use strict";var t,i,n,r,s,o,a,l,d,c,u,h,p,f,v,g,m,x,b,w,y,I,k,_,F,S,N,D;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;s=e.F},function(e){o=e.d;a=e.t;l=e.u;d=e.e;c=e.f},function(e){u=e.R},function(e){h=e.e;p=e.a;f=e.b},function(e){v=e.V},function(e){g=e.a;m=e.i},function(e){x=e.f;b=e.i},function(e){w=e.b;y=e.u;I=e.a;k=e.r;_=e.c},function(e){F=e.a},function(e){S=e.S},function(e){N=e.V},function(e){D=e.f},function(){},function(){}],execute:function(){var E=function(e,t,i){var n=new FormData;n.append("signature",i,t);return e.api.post("/signatures",n).then((function(e){return e.data}))};var R=function(e,t,i){var n=new FormData;n.append("initial",i,t);return e.api.post("/initials",n).then((function(e){return e.data}))};var L='verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}';var A=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var C=[{id:"print",label:"Print"},{id:"download",label:"Download"}];var G=e("verdocs_sign",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.envelopeLoaded=i(this,"envelopeLoaded",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.endpoint=null;this.recipientIndex=-1;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.envelope=null;this.roleNames=[];this.sortedRecipients=[];this.recipient=null;this.signerToken=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.errorMessage="";this.focusedField="";this.submitting=false;this.isDone=false;this.showDone=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document"}e.prototype.componentWillLoad=function(){this.endpoint=new v({sessionType:"signing"})};e.prototype.componentWillRender=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,l,d,c,u,h,p,f;var v=this;return __generator(this,(function(g){switch(g.label){case 0:if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new S("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new S("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new S("[SIGN] Missing required inviteCode",500,""));return[2]}g.label=1;case 1:g.trys.push([1,4,,5]);console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,o(this.endpoint,{envelopeId:this.envelopeId,roleId:this.roleId,inviteCode:this.inviteCode})];case 2:d=g.sent(),c=d.session,u=d.recipient,h=d.signerToken;console.log("[SIGN] Loaded signing session ".concat(c.email," / ").concat(c.profile_id));this.recipient=u;console.log("[SIGN] We are recipient",this.recipient);this.signerToken=h;this.endpoint.setToken(h);if(this.agreed){this.nextButtonLabel="Next"}p=this;return[4,a(this.endpoint,this.envelopeId)];case 3:p.envelope=g.sent();this.sortedRecipients=__spreadArray([],this.envelope.recipients,true);this.sortedRecipients.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}));this.roleNames=this.sortedRecipients.map((function(e){return e.role_name}));if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.recipientIndex=this.roleNames.findIndex((function(e){return e==v.roleId}));if(this.recipientIndex>-1){this.recipient=this.sortedRecipients[this.recipientIndex];this.agreed=this.recipient.agreed;console.log("[SIGN] Found our recipient in the envelope",this.recipientIndex,this.recipient)}else{console.log("[SIGN] Could not find our recipient record",this.roleId,this.sortedRecipients)}this.isDone=["submitted","canceled","declined"].includes(this.recipient.status);this.checkRecipientFields();(n=this.envelopeLoaded)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope});return[3,5];case 4:f=g.sent();console.log("Error with signing session",f);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new S(f.message,(s=f.response)===null||s===void 0?void 0:s.status,(l=f.response)===null||l===void 0?void 0:l.data));return[3,5];case 5:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;h(this.endpoint,this.envelopeId,this.roleId,true).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,r;console.log("Update failure",t);e.submitting=false;(i=e.sdkError)===null||i===void 0?void 0:i.emit(new S(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(r=t.response)===null||r===void 0?void 0:r.data))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,r,s,o,a;return __generator(this,(function(l){switch(l.label){case 0:o=e.detail.id;switch(o){case"later":return[3,1];case"claim":return[3,2];case"decline":return[3,3];case"print":return[3,5];case"download":return[3,6]}return[3,7];case 1:this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});return[3,7];case 2:N("This feature will be available in an upcoming release.");(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});return[3,7];case 3:this.submitting=true;return[4,p(this.endpoint,this.envelopeId,this.roleId)];case 4:a=l.sent();console.log("Decline result",a);(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.isDone=true;return[3,7];case 5:window.print();(r=this.envelopeUpdated)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,7];case 6:w(this.endpoint,this.envelope,this.envelope.envelope_document_id).catch((function(e){console.log("Error downloading PDF",e)}));(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"});return[3,7];case 7:return[2]}}))}))};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e);this.recipient.fields.forEach((function(n){if(n.name===e){n.settings=t.settings;y(n);i.checkRecipientFields()}}))};e.prototype.saveFieldChange=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e);l(this.endpoint,this.envelopeId,e,t).then((function(t){return i.updateRecipientFieldValue(e,t)})).catch((function(e){var t,n,r,s,o,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((r=(n=e.response)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.error)==="jwt expired"){console.log("[SIGN] Signing session expired");i.errorMessage="Signing session expired. Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(s=i.sdkError)===null||s===void 0?void 0:s.emit(new S(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,o,o,a,l,u,h;var p=this;return __generator(this,(function(f){switch(f.label){case 0:i=t.target,n=i.value,r=i.checked;s=e.type;switch(s){case"textbox":return[3,1];case"checkbox_group":return[3,2];case"radio_button_group":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,8];case"date":return[3,11];case"timestamp":return[3,12]}return[3,13];case 1:return[2,this.saveFieldChange(e.name,{prepared:false,value:n})];case 2:{o=e.settings.options.map((function(e){return{id:e.id,checked:t.target.checked}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:o}})]}f.label=3;case 3:{o=e.settings.options.map((function(e){return{id:e.id,selected:t.target.value===e.id}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:o}})]}f.label=4;case 4:return[2,this.saveFieldChange(e.name,{prepared:false,value:t.detail})];case 5:return[4,fetch(t.detail)];case 6:return[4,f.sent().blob()];case 7:a=f.sent();return[2,R(this.endpoint,"initial",a).then((function(t){return __awaiter(p,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,c(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);return[2]}}))}))}))];case 8:return[4,fetch(t.detail)];case 9:return[4,f.sent().blob()];case 10:l=f.sent();return[2,E(this.endpoint,"signature",l).then((function(t){return __awaiter(p,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,d(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);return[2]}}))}))}))];case 11:u=t.target.getAttribute("iso");console.log("Formatting date for save",u);h=D(new Date(u),F);console.log("Formatted",h);return[2,this.saveFieldChange(e.name,{prepared:false,value:h})];case 12:console.log("Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,14];case 13:console.log("Unhandled field update",{value:n,checked:r},e);return[3,14];case 14:return[2]}}))}))};e.prototype.isFieldValid=function(e){var t,i,n,r,s,o,a;var l=e.required,d=l===void 0?false:l;var c=e.settings||{},u=c.result,h=u===void 0?"":u,p=c.value,f=p===void 0?"":p,v=c.base64,x=v===void 0?"":v;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return m(h);case"phone":return g(h);default:return!d||h!==""}case"signature":case"initial":return!d||x!=="";case"timestamp":return true;case"textarea":case"date":case"attachment":return!d||h!=="";case"dropdown":return!d||f!=="";case"checkbox_group":var b=(((n=(i=e.settings)===null||i===void 0?void 0:i.options)===null||n===void 0?void 0:n.filter((function(e){return e.checked})))||[]).length;return!d||b>=(((r=e.settings)===null||r===void 0?void 0:r.minimum_checked)||0)&&b<=(((s=e.settings)===null||s===void 0?void 0:s.maximum_checked)||999);case"radio_button_group":return!d||(((a=(o=e.settings)===null||o===void 0?void 0:o.options)===null||a===void 0?void 0:a.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o,a,l,d;var c=this;return __generator(this,(function(u){switch(u.label){case 0:if(!this.nextSubmits)return[3,5];u.label=1;case 1:u.trys.push([1,3,,4]);this.submitting=true;return[4,f(this.endpoint,this.envelopeId,this.roleId)];case 2:t=u.sent();console.log("[SIGN] Submitted successfully",t);this.recipient.status="submitted";this.showDone=true;this.isDone=true;setTimeout((function(){console.log("[SIGN] Reloading");window.location.reload()}),1e3);return[3,4];case 3:i=u.sent();console.log("[SIGN] Error submitting",i);return[3,4];case 4:this.submitting=false;return[2];case 5:n=this.recipient.fields.filter((function(e){return e.required}));r=n.findIndex((function(e){return e.name===c.focusedField}));s=r+1;if(s>=n.length){s=0}o=n[s];a=0;if(a<n.length&&["signature","initial"].includes(o.type)&&((e=o.settings)===null||e===void 0?void 0:e.result)==="signed"){a++;s++;if(s>=n.length){s=0}o=n[s]}if(a>=n.length){o=null}if(o){l=_(o);d=document.getElementById(l);d===null||d===void 0?void 0:d.focusField();this.focusedField=o.name}return[2]}}))}))};e.prototype.checkRecipientFields=function(){var e=this;var t=this.recipient.fields.filter((function(t){return!e.isFieldValid(t)}));if(t.length<1){this.nextButtonLabel="Finish";this.nextSubmits=true}else{console.log("[SIGN] Remaining invalid fields",t);this.nextButtonLabel="Next";this.nextSubmits=false}};e.prototype.attachFieldAttributes=function(e,t,i,n){var r=this;var s;n.addEventListener("input",(function(e){console.log("[SIGN] onfieldInput",e.detail,e.target.value);if(e.target.name.includes("checkbox_group")||e.target.name.includes("radio_button_group")){console.log("CB",e.target);r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}else{r.checkRecipientFields()}}));n.addEventListener("focusout",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));n.addEventListener("fieldChange",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));n.setAttribute("roleindex",i);n.setAttribute("xScale",e.xScale);n.setAttribute("yScale",e.yScale);n.setAttribute("initials",this.recipient?x(this.recipient.full_name):"");n.setAttribute("name",((s=this.recipient)===null||s===void 0?void 0:s.full_name)||"")};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;var n=I(this.roleNames,this.recipient.role_name);var r=this.recipient.fields.filter((function(e){return e.page===i.pageNumber}));console.log("[SIGN] Page rendered, updating fields",{pageInfo:i,roleIndex:n,recipientFields:r});r.forEach((function(e){var r=k(e,i,n,{disabled:false,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(i,e,n,r)}))}else{t.attachFieldAttributes(i,e,n,r)}}));this.sortedRecipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status===u.INVITED||e.status===u.OPENED||e.status===u.PENDING)})).forEach((function(e){var n=I(t.roleNames,e.role_name);e.fields.forEach((function(e){var r=k(e,i,n,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(i,e,n,r)}))}else{t.attachFieldAttributes(i,e,n,r)}}))}));this.checkRecipientFields()};e.prototype.render=function(){var e=this;if(!this.envelope){return n(r,null,n("verdocs-loader",null))}if(this.isDone){return n(r,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.detail)}}),this.errorMessage&&n("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}return n(r,{class:{agreed:this.agreed}},!this.finishLater&&n("div",{class:"intro"},n("div",{class:"inner"},"Please review and act on these documents.")),n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},!this.agreed?n("div",{class:"agree"},n("verdocs-checkbox",{name:"agree",label:"I agree to use electronic records and signatures.",onInput:function(){return e.handleClickAgree()}})):n(s,null,n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}})),!this.finishLater&&n("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!this.agreed,onClick:function(){return e.handleNext()}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?A:C,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),!this.agreed?n("div",{class:"cover"}):n("div",{style:{display:"none"}}),n("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(this.envelope.documents||[]).map((function(t){var i=b(1,t.page_numbers);return n(s,null,i.map((function(i){return n("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:612,virtualHeight:792,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&n("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){return e.showFinishLater=false}}),this.errorMessage&&n("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))};return e}());G.style=L}}}));