@verdocs/web-sdk 2.2.25 → 2.2.26

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 (361) hide show
  1. package/dist/cjs/{EnvelopeStore-74bc60d0.js → EnvelopeStore-ac58a485.js} +2 -2
  2. package/dist/cjs/{Envelopes-49db8324.js → Envelopes-a06cab96.js} +11 -0
  3. package/dist/cjs/{TemplateStore-a5fa2b0c.js → TemplateStore-9026139c.js} +3 -4
  4. package/dist/cjs/{VerdocsEndpoint-45deeb6a.js → VerdocsEndpoint-a15d322b.js} +203 -35
  5. package/dist/cjs/{index-5463795e.js → index-39554143.js} +3 -0
  6. package/dist/cjs/{index-f712049c.js → index-7d1c0557.js} +1 -1
  7. package/dist/cjs/ipc-test.cjs.entry.js +4 -5
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{utils-010a1697.js → utils-c5675274.js} +1 -1
  10. package/dist/cjs/verdocs-activity-box.cjs.entry.js +3 -3
  11. package/dist/cjs/verdocs-auth.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-build.cjs.entry.js +4 -5
  13. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +4 -5
  14. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-checkbox_3.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +4 -4
  17. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +4 -4
  20. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +5 -5
  21. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -5
  22. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +4 -4
  23. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +3 -3
  24. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -3
  25. package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -3
  26. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -3
  27. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -3
  28. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -3
  29. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -3
  31. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +4 -4
  32. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +4 -4
  33. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -3
  34. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-floating-menu.cjs.entry.js +2 -2
  36. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
  38. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +3 -3
  42. package/dist/cjs/verdocs-preview_8.cjs.entry.js +9 -10
  43. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +3 -4
  44. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
  47. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +4 -4
  48. package/dist/cjs/verdocs-settings.cjs.entry.js +2 -2
  49. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -4
  50. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-tabs.cjs.entry.js +1 -1
  53. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  54. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +4 -4
  55. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +7 -8
  56. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  57. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  58. package/dist/cjs/verdocs-templates-list.cjs.entry.js +4 -5
  59. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  60. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
  61. package/dist/cjs/verdocs-view.cjs.entry.js +6 -4
  62. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  63. package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +3 -1
  64. package/dist/components/EnvelopeStore.js +1 -1
  65. package/dist/components/Envelopes.js +11 -1
  66. package/dist/components/TemplateStore.js +1 -2
  67. package/dist/components/VerdocsEndpoint.js +198 -36
  68. package/dist/components/utils.js +1 -1
  69. package/dist/components/verdocs-search-activity2.js +1 -2
  70. package/dist/components/verdocs-template-create2.js +1 -2
  71. package/dist/components/verdocs-template-name2.js +1 -2
  72. package/dist/components/verdocs-template-sender2.js +1 -2
  73. package/dist/components/verdocs-template-visibility2.js +1 -2
  74. package/dist/components/verdocs-templates-list.js +1 -2
  75. package/dist/components/verdocs-view2.js +3 -1
  76. package/dist/custom-elements.json +2059 -0
  77. package/dist/docs.json +1 -1
  78. package/dist/esm/{EnvelopeStore-3ede5a1d.js → EnvelopeStore-6476418d.js} +2 -2
  79. package/dist/esm/{Envelopes-9dcb88d1.js → Envelopes-2d89a065.js} +11 -1
  80. package/dist/esm/{TemplateStore-e8cf5a15.js → TemplateStore-4918792b.js} +2 -3
  81. package/dist/esm/{VerdocsEndpoint-d58d5544.js → VerdocsEndpoint-750b24e4.js} +198 -36
  82. package/dist/esm/{index-4439b0d1.js → index-1ce2872b.js} +1 -1
  83. package/dist/esm/{index-172625c5.js → index-d5ba09f3.js} +3 -1
  84. package/dist/esm/ipc-test.entry.js +4 -5
  85. package/dist/esm/loader.js +1 -1
  86. package/dist/esm/{utils-1a753ca5.js → utils-a0bb69d7.js} +1 -1
  87. package/dist/esm/verdocs-activity-box.entry.js +3 -3
  88. package/dist/esm/verdocs-auth.entry.js +2 -2
  89. package/dist/esm/verdocs-build.entry.js +4 -5
  90. package/dist/esm/verdocs-button-panel_2.entry.js +4 -5
  91. package/dist/esm/verdocs-button_3.entry.js +1 -1
  92. package/dist/esm/verdocs-checkbox_3.entry.js +1 -1
  93. package/dist/esm/verdocs-contact-picker_2.entry.js +4 -4
  94. package/dist/esm/verdocs-dialog_2.entry.js +1 -1
  95. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  96. package/dist/esm/verdocs-envelope-document-page.entry.js +4 -4
  97. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +5 -5
  98. package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -5
  99. package/dist/esm/verdocs-envelopes-list.entry.js +4 -4
  100. package/dist/esm/verdocs-field-attachment.entry.js +3 -3
  101. package/dist/esm/verdocs-field-checkbox.entry.js +3 -3
  102. package/dist/esm/verdocs-field-date.entry.js +3 -3
  103. package/dist/esm/verdocs-field-dropdown.entry.js +3 -3
  104. package/dist/esm/verdocs-field-initial.entry.js +3 -3
  105. package/dist/esm/verdocs-field-payment.entry.js +3 -3
  106. package/dist/esm/verdocs-field-radio-button.entry.js +3 -3
  107. package/dist/esm/verdocs-field-signature.entry.js +3 -3
  108. package/dist/esm/verdocs-field-textarea.entry.js +4 -4
  109. package/dist/esm/verdocs-field-textbox.entry.js +4 -4
  110. package/dist/esm/verdocs-field-timestamp.entry.js +3 -3
  111. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  112. package/dist/esm/verdocs-floating-menu.entry.js +2 -2
  113. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  114. package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
  115. package/dist/esm/verdocs-loader.entry.js +1 -1
  116. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  117. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  118. package/dist/esm/verdocs-pagination_3.entry.js +3 -3
  119. package/dist/esm/verdocs-preview_8.entry.js +6 -7
  120. package/dist/esm/verdocs-quick-functions_3.entry.js +2 -3
  121. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  122. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  123. package/dist/esm/verdocs-search.entry.js +2 -2
  124. package/dist/esm/verdocs-settings-api-keys_4.entry.js +4 -4
  125. package/dist/esm/verdocs-settings.entry.js +2 -2
  126. package/dist/esm/verdocs-sign.entry.js +4 -4
  127. package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
  128. package/dist/esm/verdocs-status-indicator.entry.js +1 -1
  129. package/dist/esm/verdocs-tabs.entry.js +1 -1
  130. package/dist/esm/verdocs-template-card.entry.js +1 -1
  131. package/dist/esm/verdocs-template-document-page_2.entry.js +4 -4
  132. package/dist/esm/verdocs-template-fields_4.entry.js +6 -7
  133. package/dist/esm/verdocs-template-star.entry.js +2 -2
  134. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  135. package/dist/esm/verdocs-templates-list.entry.js +2 -3
  136. package/dist/esm/verdocs-toggle.entry.js +1 -1
  137. package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
  138. package/dist/esm/verdocs-view.entry.js +6 -4
  139. package/dist/esm/verdocs-web-sdk.js +1 -1
  140. package/dist/esm-es5/{EnvelopeStore-3ede5a1d.js → EnvelopeStore-6476418d.js} +1 -1
  141. package/dist/esm-es5/Envelopes-2d89a065.js +1 -0
  142. package/dist/esm-es5/TemplateStore-4918792b.js +1 -0
  143. package/dist/esm-es5/VerdocsEndpoint-750b24e4.js +1 -0
  144. package/dist/esm-es5/{index-4439b0d1.js → index-1ce2872b.js} +1 -1
  145. package/dist/esm-es5/index-d5ba09f3.js +2 -0
  146. package/dist/esm-es5/ipc-test.entry.js +1 -1
  147. package/dist/esm-es5/loader.js +1 -1
  148. package/dist/esm-es5/{utils-1a753ca5.js → utils-a0bb69d7.js} +1 -1
  149. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-floating-menu.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  180. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  186. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  190. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  191. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  192. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  193. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  194. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  195. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  196. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  197. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  198. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  199. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  200. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  201. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  202. package/dist/verdocs-web-sdk/{p-402c3762.js → p-044d38be.js} +1 -1
  203. package/dist/verdocs-web-sdk/p-047b4bd1.js +1 -0
  204. package/dist/verdocs-web-sdk/{p-af3a01d5.system.entry.js → p-0733c3e1.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-99694a88.entry.js → p-09b05f65.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-43231ac2.system.entry.js → p-0d6462e0.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/p-0de7f044.js +1 -0
  208. package/dist/verdocs-web-sdk/{p-38aa6656.entry.js → p-10f9133d.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/p-1184e653.entry.js +1 -0
  210. package/dist/verdocs-web-sdk/{p-7c7c56da.system.entry.js → p-16242585.system.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-1921f008.system.entry.js +1 -0
  212. package/dist/verdocs-web-sdk/p-19c3bb25.system.entry.js +1 -0
  213. package/dist/verdocs-web-sdk/{p-d9318890.entry.js → p-1b1f4fd2.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-ba87f33c.system.entry.js → p-1fbd8615.system.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/{p-9569539d.system.entry.js → p-216bbc4c.system.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/p-2174e539.js +1 -0
  217. package/dist/verdocs-web-sdk/p-218a42f0.entry.js +1 -0
  218. package/dist/verdocs-web-sdk/p-22a86241.js +1 -0
  219. package/dist/verdocs-web-sdk/p-240d814a.system.js +1 -0
  220. package/dist/verdocs-web-sdk/{p-64d4ada6.system.entry.js → p-247325a5.system.entry.js} +1 -1
  221. package/dist/verdocs-web-sdk/p-24f0c391.system.js +1 -0
  222. package/dist/verdocs-web-sdk/{p-a5e3c8ee.entry.js → p-2568de0e.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-ae971bb4.system.entry.js → p-2b8644a1.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/p-2cc908f8.system.entry.js +1 -0
  225. package/dist/verdocs-web-sdk/{p-7d5e91f5.entry.js → p-2d631b6f.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-2d71c20a.system.entry.js} +1 -1
  227. package/dist/verdocs-web-sdk/{p-77ecee31.entry.js → p-2f3eacbb.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/p-330f7d43.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/{p-20986706.entry.js → p-36458469.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-143fc189.entry.js → p-390b7f97.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-e092b25d.entry.js → p-39145cce.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/p-39e8600d.system.js +1 -0
  233. package/dist/verdocs-web-sdk/{p-7bab7252.entry.js → p-40db9709.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-e2fe0aa5.system.entry.js → p-4157d80b.system.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-24de06b4.system.entry.js → p-44209a2a.system.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-ab889005.system.entry.js → p-4720767e.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/p-52f4ddf3.entry.js +1 -0
  238. package/dist/verdocs-web-sdk/{p-64411279.entry.js → p-56270b66.entry.js} +1 -1
  239. package/dist/verdocs-web-sdk/{p-eae47487.entry.js → p-584928fe.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/{p-a5f450a1.system.entry.js → p-58a4d8ad.system.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/{p-0edfbbb9.entry.js → p-5a0d4098.entry.js} +1 -1
  242. package/dist/verdocs-web-sdk/{p-2a0ed0ab.entry.js → p-5b789032.entry.js} +1 -1
  243. package/dist/verdocs-web-sdk/{p-a6048cc9.system.entry.js → p-5d16cfed.system.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-f04bf956.system.js → p-5e203333.system.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-9bbf0bc5.system.entry.js → p-5f0afd02.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/{p-0b2102df.entry.js → p-636c6fdd.entry.js} +1 -1
  247. package/dist/verdocs-web-sdk/{p-bbbbddab.entry.js → p-665fd61c.entry.js} +1 -1
  248. package/dist/verdocs-web-sdk/{p-71eefe0e.entry.js → p-672fad08.entry.js} +1 -1
  249. package/dist/verdocs-web-sdk/{p-a28c7836.entry.js → p-6c75ea76.entry.js} +1 -1
  250. package/dist/verdocs-web-sdk/p-6d4d4760.system.entry.js +1 -0
  251. package/dist/verdocs-web-sdk/{p-4f8a7884.system.entry.js → p-6f70e215.system.entry.js} +1 -1
  252. package/dist/verdocs-web-sdk/{p-cb9f22d7.entry.js → p-734c32bc.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/{p-45bee3f6.system.entry.js → p-740d5a16.system.entry.js} +1 -1
  254. package/dist/verdocs-web-sdk/{p-7efaf5de.system.entry.js → p-741b2436.system.entry.js} +1 -1
  255. package/dist/verdocs-web-sdk/{p-b68d2dba.entry.js → p-741c0a94.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/{p-6896477a.system.entry.js → p-789c8c91.system.entry.js} +1 -1
  257. package/dist/verdocs-web-sdk/{p-5079bd15.system.entry.js → p-7b0874c1.system.entry.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-521a3fec.entry.js → p-7e5ee08a.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/{p-6ff8759f.entry.js → p-7fbcd534.entry.js} +1 -1
  260. package/dist/verdocs-web-sdk/{p-66d45c89.system.js → p-802bd493.system.js} +1 -1
  261. package/dist/verdocs-web-sdk/p-821c78c4.system.js +1 -0
  262. package/dist/verdocs-web-sdk/{p-5c01f483.system.entry.js → p-83c052a3.system.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-2f3263a3.system.entry.js → p-853489f8.system.entry.js} +1 -1
  264. package/dist/verdocs-web-sdk/{p-7648c449.js → p-85d0e79d.js} +1 -1
  265. package/dist/verdocs-web-sdk/{p-14b44491.js → p-876d3ff3.js} +2 -2
  266. package/dist/verdocs-web-sdk/{p-ab917e6a.entry.js → p-88000f71.entry.js} +1 -1
  267. package/dist/verdocs-web-sdk/{p-4583338b.system.entry.js → p-897ccc19.system.entry.js} +1 -1
  268. package/dist/verdocs-web-sdk/{p-506754d5.system.entry.js → p-8b4633ae.system.entry.js} +1 -1
  269. package/dist/verdocs-web-sdk/{p-c230e3d1.entry.js → p-8c92254d.entry.js} +1 -1
  270. package/dist/verdocs-web-sdk/{p-1d0342e6.system.entry.js → p-8df64e0a.system.entry.js} +1 -1
  271. package/dist/verdocs-web-sdk/{p-49042f24.system.entry.js → p-8f7aca9f.system.entry.js} +1 -1
  272. package/dist/verdocs-web-sdk/p-930f2b08.entry.js +1 -0
  273. package/dist/verdocs-web-sdk/{p-c82b9978.entry.js → p-94ea5e96.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-3c798272.entry.js → p-96f0ba19.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/{p-3ce7e733.system.entry.js → p-96f3cfd3.system.entry.js} +1 -1
  276. package/dist/verdocs-web-sdk/{p-272933c6.system.entry.js → p-972004c2.system.entry.js} +1 -1
  277. package/dist/verdocs-web-sdk/{p-d4857f9e.system.entry.js → p-9a5904a9.system.entry.js} +1 -1
  278. package/dist/verdocs-web-sdk/{p-f0f27520.entry.js → p-9cb5d470.entry.js} +1 -1
  279. package/dist/verdocs-web-sdk/{p-79b0c643.entry.js → p-9dec146d.entry.js} +1 -1
  280. package/dist/verdocs-web-sdk/p-9f4f2ad3.system.entry.js +1 -0
  281. package/dist/verdocs-web-sdk/{p-36ed1c79.entry.js → p-a051e533.entry.js} +1 -1
  282. package/dist/verdocs-web-sdk/p-a13a4ae6.system.entry.js +1 -0
  283. package/dist/verdocs-web-sdk/{p-e27ec758.entry.js → p-a57c46bd.entry.js} +1 -1
  284. package/dist/verdocs-web-sdk/{p-f9e89b56.system.entry.js → p-aa51dac9.system.entry.js} +1 -1
  285. package/dist/verdocs-web-sdk/{p-4f914da5.system.entry.js → p-aa8d725f.system.entry.js} +1 -1
  286. package/dist/verdocs-web-sdk/{p-248bbf52.entry.js → p-aab15290.entry.js} +1 -1
  287. package/dist/verdocs-web-sdk/{p-450a3908.entry.js → p-abf16c2b.entry.js} +1 -1
  288. package/dist/verdocs-web-sdk/{p-2b8493be.entry.js → p-aded66bf.entry.js} +1 -1
  289. package/dist/verdocs-web-sdk/{p-04580be0.entry.js → p-b136d75e.entry.js} +1 -1
  290. package/dist/verdocs-web-sdk/{p-48f74a4f.system.entry.js → p-b1ba251d.system.entry.js} +1 -1
  291. package/dist/verdocs-web-sdk/{p-27a3d731.entry.js → p-b2631a37.entry.js} +1 -1
  292. package/dist/verdocs-web-sdk/{p-5cb5d39c.system.entry.js → p-b3d43687.system.entry.js} +1 -1
  293. package/dist/verdocs-web-sdk/{p-c41a65a9.entry.js → p-b58505d4.entry.js} +1 -1
  294. package/dist/verdocs-web-sdk/{p-b2c72f5a.entry.js → p-b7789921.entry.js} +1 -1
  295. package/dist/verdocs-web-sdk/{p-6e62913f.entry.js → p-b7c4f1d8.entry.js} +1 -1
  296. package/dist/verdocs-web-sdk/{p-38891eeb.system.entry.js → p-ba610846.system.entry.js} +1 -1
  297. package/dist/verdocs-web-sdk/{p-e16816bf.entry.js → p-ba9e472b.entry.js} +1 -1
  298. package/dist/verdocs-web-sdk/{p-9ea2f211.system.entry.js → p-baf0f5b0.system.entry.js} +1 -1
  299. package/dist/verdocs-web-sdk/{p-37e647a4.system.entry.js → p-bf90e11b.system.entry.js} +1 -1
  300. package/dist/verdocs-web-sdk/{p-c3ff8afd.system.js → p-c027e0e1.system.js} +1 -1
  301. package/dist/verdocs-web-sdk/p-c2690e79.entry.js +1 -0
  302. package/dist/verdocs-web-sdk/{p-ceceebec.entry.js → p-c2a628e8.entry.js} +1 -1
  303. package/dist/verdocs-web-sdk/p-c2ae8a0b.system.entry.js +1 -0
  304. package/dist/verdocs-web-sdk/{p-7cb3209d.system.entry.js → p-c73ba4ca.system.entry.js} +1 -1
  305. package/dist/verdocs-web-sdk/{p-70685224.entry.js → p-c7b34331.entry.js} +1 -1
  306. package/dist/verdocs-web-sdk/p-c808a3de.entry.js +1 -0
  307. package/dist/verdocs-web-sdk/p-cb8b910c.system.entry.js +1 -0
  308. package/dist/verdocs-web-sdk/{p-fbb8023f.system.js → p-cd61fea7.system.js} +2 -2
  309. package/dist/verdocs-web-sdk/{p-6ba66b2c.system.entry.js → p-ce7c4eb0.system.entry.js} +1 -1
  310. package/dist/verdocs-web-sdk/{p-2284d430.system.entry.js → p-cfe6b8c9.system.entry.js} +1 -1
  311. package/dist/verdocs-web-sdk/{p-9009e136.entry.js → p-d3c4d7da.entry.js} +1 -1
  312. package/dist/verdocs-web-sdk/p-d5941fd4.entry.js +1 -0
  313. package/dist/verdocs-web-sdk/{p-3bf6619b.entry.js → p-dac44c07.entry.js} +1 -1
  314. package/dist/verdocs-web-sdk/{p-7516bd57.system.entry.js → p-dffa796e.system.entry.js} +1 -1
  315. package/dist/verdocs-web-sdk/{p-aad7ef50.system.entry.js → p-e2b6a8ae.system.entry.js} +1 -1
  316. package/dist/verdocs-web-sdk/{p-f5829c68.system.entry.js → p-e3bd1b4c.system.entry.js} +1 -1
  317. package/dist/verdocs-web-sdk/p-e8cf4ad9.system.entry.js +1 -0
  318. package/dist/verdocs-web-sdk/{p-84b2c661.entry.js → p-f61573a3.entry.js} +1 -1
  319. package/dist/verdocs-web-sdk/{p-45343cef.system.entry.js → p-f9f2b4c6.system.entry.js} +1 -1
  320. package/dist/verdocs-web-sdk/{p-ecfa94fb.system.entry.js → p-fb35b11f.system.entry.js} +1 -1
  321. package/dist/verdocs-web-sdk/{p-41cd34db.system.entry.js → p-fb65a186.system.entry.js} +1 -1
  322. package/dist/verdocs-web-sdk/p-fd174087.entry.js +1 -0
  323. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  324. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  325. package/package.json +2 -2
  326. package/dist/cjs/Templates-f6e75719.js +0 -134
  327. package/dist/components/Templates.js +0 -127
  328. package/dist/esm/Templates-f90883f7.js +0 -127
  329. package/dist/esm-es5/Envelopes-9dcb88d1.js +0 -1
  330. package/dist/esm-es5/TemplateStore-e8cf5a15.js +0 -1
  331. package/dist/esm-es5/Templates-f90883f7.js +0 -1
  332. package/dist/esm-es5/VerdocsEndpoint-d58d5544.js +0 -1
  333. package/dist/esm-es5/index-172625c5.js +0 -2
  334. package/dist/verdocs-web-sdk/p-07f1748c.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/p-15df3998.system.entry.js +0 -1
  336. package/dist/verdocs-web-sdk/p-1753f57b.system.js +0 -1
  337. package/dist/verdocs-web-sdk/p-1dda2d09.entry.js +0 -1
  338. package/dist/verdocs-web-sdk/p-2fdb7348.system.js +0 -1
  339. package/dist/verdocs-web-sdk/p-3af6b910.system.js +0 -1
  340. package/dist/verdocs-web-sdk/p-4017b53a.system.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/p-41388344.system.entry.js +0 -1
  342. package/dist/verdocs-web-sdk/p-4422958b.system.js +0 -1
  343. package/dist/verdocs-web-sdk/p-4a500a3f.system.entry.js +0 -1
  344. package/dist/verdocs-web-sdk/p-51979353.entry.js +0 -1
  345. package/dist/verdocs-web-sdk/p-5ab837bf.entry.js +0 -1
  346. package/dist/verdocs-web-sdk/p-65c99d51.system.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/p-79f99e83.system.entry.js +0 -1
  348. package/dist/verdocs-web-sdk/p-7b6c0cc5.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/p-976ec9e8.js +0 -1
  350. package/dist/verdocs-web-sdk/p-9caf7709.system.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/p-a881fe6b.js +0 -1
  352. package/dist/verdocs-web-sdk/p-a894761f.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/p-af048fad.js +0 -1
  354. package/dist/verdocs-web-sdk/p-ba04698a.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/p-be3e42bf.entry.js +0 -1
  356. package/dist/verdocs-web-sdk/p-ccb2c794.js +0 -1
  357. package/dist/verdocs-web-sdk/p-cd64b223.system.entry.js +0 -1
  358. package/dist/verdocs-web-sdk/p-d4d8858f.js +0 -1
  359. package/dist/verdocs-web-sdk/p-daebb9e6.system.js +0 -1
  360. package/dist/verdocs-web-sdk/p-f2deae25.entry.js +0 -1
  361. package/dist/verdocs-web-sdk/p-f520ee27.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{d as t}from"./p-05788c2b.js";var e,n;!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.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",t.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",t.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",t.TEMPLATE_CREATOR_DELETE="template:creator:delete",t.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",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"}(n||(n={}));var r,o,i,s,u,c,a,l=function(t,e){return t.api.post("/templates",{params:e}).then((function(t){return t.data}))},f=function(t,e){return t.api.post("/templates/list",e,{baseURL:t.getBaseURLv2()}).then((function(t){return t.data}))},h=function(t,e){return t.api.get("/templates/".concat(e)).then((function(t){return t.data}))},d=["name","is_personal","is_public","sender","description","roles","fields"],m=function(t,e,n){var r={timeout:12e4,onUploadProgress:function(t){var e=t.total||1,r=t.loaded||0;null==n||n(Math.floor(100*r/(e||1)),r,e||1)}};if(e.documents&&e.documents[0]instanceof File){if(e.documents.length>10)throw new Error("createTemplate() has a maximum of 10 documents that can be attached.");var o=new FormData;return d.forEach((function(t){void 0!==e[t]&&o.append(t,e[t])})),e.documents.forEach((function(t){o.append("documents",t,t.name)})),t.api.post("/templates",o,r).then((function(t){return t.data}))}return t.api.post("/templates",e,r).then((function(t){return t.data}))},p=function(t,e,n){return t.api.put("/templates/".concat(e),n).then((function(t){return t.data}))},b=function(t,e){return t.api.delete("/templates/".concat(e)).then((function(t){return t.data}))};!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.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={})),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"}(u||(u={})),function(t){t.ENV_ESSENTIAL="env:essential",t.ORG_STANDARD="org:standard"}(c||(c={})),function(t){t.OWNER="owner",t.BASIC_USER="basic_user",t.MEMBER="member"}(a||(a={}));const E=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 _(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 w(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){_(i,r,o,s,u,"next",t)}function u(t){_(i,r,o,s,u,"throw",t)}s(void 0)}))}}function y(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 R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return!t.response&&Boolean(t.code)&&"ECONNABORTED"!==t.code&&(t=>!E.has(t&&t.code))(t)}var g=["get","head","options"],T=g.concat(["put","delete"]);function S(t){return"ECONNABORTED"!==t.code&&(!t.response||t.response.status>=500&&t.response.status<=599)}function A(t){return!!t.config&&S(t)&&-1!==T.indexOf(t.config.method)}function N(t){return v(t)||A(t)}function j(){return 0}function C(t){var e=t["axios-retry"]||{};return e.retryCount=e.retryCount||0,t["axios-retry"]=e,e}function D(){return(D=w((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 L(t,e){t.interceptors.request.use((t=>(C(t).lastRequestTime=Date.now(),t))),t.interceptors.response.use(null,function(){var n=w((function*(n){var{config:r}=n;if(!r)return Promise.reject(n);var{retries:o=3,retryCondition:i=N,retryDelay:s=j,shouldResetTimeout:u=!1,onRetry:c=(()=>{})}=function(t,e){return R(R({},e),t["axios-retry"])}(r,e),a=C(r);if(yield function(t,e,n,r){return D.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 f=Date.now()-a.lastRequestTime,h=r.timeout-f-l;if(h<=0)return Promise.reject(n);r.timeout=h}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 U(t,e){return function(){return t.apply(e,arguments)}}L.isNetworkError=v,L.isSafeRequestError=function(t){return!!t.config&&S(t)&&-1!==g.indexOf(t.config.method)},L.isIdempotentRequestError=A,L.isNetworkOrIdempotentRequestError=N,L.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},L.isRetryableError=S;const{toString:P}=Object.prototype,{getPrototypeOf:F}=Object,I=(B=Object.create(null),t=>{const e=P.call(t);return B[e]||(B[e]=e.slice(8,-1).toLowerCase())});var B;const x=t=>(t=t.toLowerCase(),e=>I(e)===t),M=t=>e=>typeof e===t,{isArray:q}=Array,H=M("undefined"),k=x("ArrayBuffer"),z=M("string"),G=M("function"),J=M("number"),K=t=>null!==t&&"object"==typeof t,V=t=>{if("object"!==I(t))return!1;const e=F(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},$=x("Date"),X=x("File"),Y=x("Blob"),W=x("FileList"),Z=x("URLSearchParams");function Q(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),q(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 tt(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 et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,nt=t=>!H(t)&&t!==et,rt=(ot="undefined"!=typeof Uint8Array&&F(Uint8Array),t=>ot&&t instanceof ot);var ot;const it=x("HTMLFormElement"),st=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ut=x("RegExp"),ct=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Q(n,((n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)})),Object.defineProperties(t,r)},at="abcdefghijklmnopqrstuvwxyz",lt={DIGIT:"0123456789",ALPHA:at,ALPHA_DIGIT:at+at.toUpperCase()+"0123456789"},ft=x("AsyncFunction"),ht={isArray:q,isArrayBuffer:k,isBuffer:function(t){return null!==t&&!H(t)&&null!==t.constructor&&!H(t.constructor)&&G(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||G(t.append)&&("formdata"===(e=I(t))||"object"===e&&G(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&k(t.buffer),e},isString:z,isNumber:J,isBoolean:t=>!0===t||!1===t,isObject:K,isPlainObject:V,isUndefined:H,isDate:$,isFile:X,isBlob:Y,isRegExp:ut,isFunction:G,isStream:t=>K(t)&&G(t.pipe),isURLSearchParams:Z,isTypedArray:rt,isFileList:W,forEach:Q,merge:function t(){const{caseless:e}=nt(this)&&this||{},n={},r=(r,o)=>{const i=e&&tt(n,o)||o;n[i]=V(n[i])&&V(r)?t(n[i],r):V(r)?t({},r):q(r)?r.slice():r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&Q(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:r}={})=>(Q(e,((e,r)=>{t[r]=n&&G(e)?U(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&&F(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:I,kindOfTest:x,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(q(t))return t;let e=t.length;if(!J(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:it,hasOwnProperty:st,hasOwnProp:st,reduceDescriptors:ct,freezeMethods:t=>{ct(t,((e,n)=>{if(G(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;G(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 q(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:tt,global:et,isContextDefined:nt,ALPHABET:lt,generateString:(t=16,e=lt.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&G(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(K(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=q(t)?[]:{};return Q(t,((t,e)=>{const i=n(t,r+1);!H(i)&&(o[e]=i)})),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:ft,isThenable:t=>t&&(K(t)||G(t))&&G(t.then)&&G(t.catch)};function dt(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)}ht.inherits(dt,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:ht.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const mt=dt.prototype,pt={};function bt(t){return ht.isPlainObject(t)||ht.isArray(t)}function Et(t){return ht.endsWith(t,"[]")?t.slice(0,-2):t}function _t(t,e,n){return t?t.concat(e).map((function(t,e){return t=Et(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=>{pt[t]={value:t}})),Object.defineProperties(dt,pt),Object.defineProperty(mt,"isAxiosError",{value:!0}),dt.from=(t,e,n,r,o,i)=>{const s=Object.create(mt);return ht.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),dt.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const wt=ht.toFlatObject(ht,{},null,(function(t){return/^is[A-Z]/.test(t)}));function yt(t,e,n){if(!ht.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=ht.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!ht.isUndefined(e[t])}))).metaTokens,o=n.visitor||a,i=n.dots,s=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ht.isSpecCompliantForm(e);if(!ht.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(ht.isDate(t))return t.toISOString();if(!u&&ht.isBlob(t))throw new dt("Blob is not supported. Use a Buffer instead.");return ht.isArrayBuffer(t)||ht.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(ht.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(ht.isArray(t)&&function(t){return ht.isArray(t)&&!t.some(bt)}(t)||(ht.isFileList(t)||ht.endsWith(n,"[]"))&&(u=ht.toArray(t)))return n=Et(n),u.forEach((function(t,r){!ht.isUndefined(t)&&null!==t&&e.append(!0===s?_t([n],r,i):null===s?n:n+"[]",c(t))})),!1;return!!bt(t)||(e.append(_t(o,n,i),c(t)),!1)}const l=[],f=Object.assign(wt,{defaultVisitor:a,convertValue:c,isVisitable:bt});if(!ht.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!ht.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),ht.forEach(n,(function(n,i){!0===(!(ht.isUndefined(n)||null===n)&&o.call(e,n,ht.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])})),l.pop()}}(t),e}function Rt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function Ot(t,e){this._pairs=[],t&&yt(t,this,e)}const vt=Ot.prototype;function gt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tt(t,e,n){if(!e)return t;const r=n&&n.encode||gt,o=n&&n.serialize;let i;if(i=o?o(e,n):ht.isURLSearchParams(e)?e.toString():new Ot(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}vt.append=function(t,e){this._pairs.push([t,e])},vt.toString=function(t){const e=t?function(e){return t.call(this,e,Rt)}:Rt;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};class St{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){ht.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}const At={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ot,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 jt(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i),u=o>=t.length;return i=!i&&ht.isArray(r)?r.length:i,u?(r[i]=ht.hasOwnProp(r,i)?[r[i],n]:n,!s):(r[i]&&ht.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&ht.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(ht.isFormData(t)&&ht.isFunction(t.entries)){const n={};return ht.forEachEntry(t,((t,r)=>{e(function(t){return ht.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,n,0)})),n}return null}const Ct={transitional:At,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=ht.isObject(t);if(o&&ht.isHTMLForm(t)&&(t=new FormData(t)),ht.isFormData(t))return r&&r?JSON.stringify(jt(t)):t;if(ht.isArrayBuffer(t)||ht.isBuffer(t)||ht.isStream(t)||ht.isFile(t)||ht.isBlob(t))return t;if(ht.isArrayBufferView(t))return t.buffer;if(ht.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 yt(t,new Nt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=ht.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return yt(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t){if(ht.isString(t))try{return(0,JSON.parse)(t),ht.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Ct.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&ht.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 dt.from(t,dt.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:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ht.forEach(["delete","get","head","post","put","patch"],(t=>{Ct.headers[t]={}}));const Dt=ht.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"]),Lt=Symbol("internals");function Ut(t){return t&&String(t).trim().toLowerCase()}function Pt(t){return!1===t||null==t?t:ht.isArray(t)?t.map(Pt):String(t)}function Ft(t,e,n,r,o){return ht.isFunction(r)?r.call(this,e,n):(o&&(e=n),ht.isString(e)?ht.isString(r)?-1!==e.indexOf(r):ht.isRegExp(r)?r.test(e):void 0:void 0)}class It{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Ut(e);if(!o)throw new Error("header name must be a non-empty string");const i=ht.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=Pt(t))}const i=(t,e)=>ht.forEach(t,((t,n)=>o(t,n,e)));return ht.isPlainObject(t)||t instanceof this.constructor?i(t,e):ht.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]&&Dt[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=Ut(t)){const n=ht.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(ht.isFunction(e))return e.call(this,t,n);if(ht.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Ut(t)){const n=ht.findKey(this,t);return!(!n||void 0===this[n]||e&&!Ft(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=Ut(t)){const o=ht.findKey(n,t);!o||e&&!Ft(0,n[o],o,e)||(delete n[o],r=!0)}}return ht.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&&!Ft(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return ht.forEach(this,((r,o)=>{const i=ht.findKey(n,o);if(i)return e[i]=Pt(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]=Pt(r),n[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return ht.forEach(this,((n,r)=>{null!=n&&!1!==n&&(e[r]=t&&ht.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[Lt]=this[Lt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=Ut(t);e[r]||(function(t,e){const n=ht.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 ht.isArray(t)?t.forEach(r):r(t),this}}function Bt(t,e){const n=this||Ct,r=e||n,o=It.from(r.headers);let i=r.data;return ht.forEach(t,(function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function xt(t){return!(!t||!t.__CANCEL__)}function Mt(t,e,n){dt.call(this,null==t?"canceled":t,dt.ERR_CANCELED,e,n),this.name="CanceledError"}It.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ht.reduceDescriptors(It.prototype,(({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}})),ht.freezeMethods(It),ht.inherits(Mt,dt,{__CANCEL__:!0});const qt=Nt.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(e)),ht.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ht.isString(r)&&s.push("path="+r),ht.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 Ht(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 kt=Nt.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=ht.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function zt(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 Gt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const o=It.from(t.headers).normalize(),i=t.responseType;let s,u;function c(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}ht.isFormData(r)&&(Nt.isStandardBrowserEnv||Nt.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?ht.isString(u=o.getContentType())&&o.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let a=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 l=Ht(t.baseURL,t.url);function f(){if(!a)return;const r=It.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new dt("Request failed with status code "+n.status,[dt.ERR_BAD_REQUEST,dt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),c()}),(function(t){n(t),c()}),{data:i&&"text"!==i&&"json"!==i?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:r,config:t,request:a}),a=null}if(a.open(t.method.toUpperCase(),Tt(l,t.params,t.paramsSerializer),!0),a.timeout=t.timeout,"onloadend"in a?a.onloadend=f:a.onreadystatechange=function(){a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))&&setTimeout(f)},a.onabort=function(){a&&(n(new dt("Request aborted",dt.ECONNABORTED,t,a)),a=null)},a.onerror=function(){n(new dt("Network Error",dt.ERR_NETWORK,t,a)),a=null},a.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new dt(e,(t.transitional||At).clarifyTimeoutError?dt.ETIMEDOUT:dt.ECONNABORTED,t,a)),a=null},Nt.isStandardBrowserEnv){const e=(t.withCredentials||kt(l))&&t.xsrfCookieName&&qt.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===r&&o.setContentType(null),"setRequestHeader"in a&&ht.forEach(o.toJSON(),(function(t,e){a.setRequestHeader(e,t)})),ht.isUndefined(t.withCredentials)||(a.withCredentials=!!t.withCredentials),i&&"json"!==i&&(a.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&a.addEventListener("progress",zt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",zt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=e=>{a&&(n(!e||e.type?new Mt(null,t,a):e),a.abort(),a=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(l);h&&-1===Nt.protocols.indexOf(h)?n(new dt("Unsupported protocol "+h+":",dt.ERR_BAD_REQUEST,t)):a.send(r||null)}))}};ht.forEach(Gt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Jt=t=>`- ${t}`,Kt=t=>ht.isFunction(t)||null===t||!1===t,Vt=t=>{t=ht.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){let e;if(n=t[i],r=n,!Kt(n)&&(r=Gt[(e=String(n)).toLowerCase()],void 0===r))throw new dt(`Unknown adapter '${e}'`);if(r)break;o[e||"#"+i]=r}if(!r){const t=Object.entries(o).map((([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build")));throw new dt("There is no suitable adapter to dispatch the request "+(e?t.length>1?"since :\n"+t.map(Jt).join("\n"):" "+Jt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function $t(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Mt(null,t)}function Xt(t){return $t(t),t.headers=It.from(t.headers),t.data=Bt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vt(t.adapter||Ct.adapter)(t).then((function(e){return $t(t),e.data=Bt.call(t,t.transformResponse,e),e.headers=It.from(e.headers),e}),(function(e){return xt(e)||($t(t),e&&e.response&&(e.response.data=Bt.call(t,t.transformResponse,e.response),e.response.headers=It.from(e.response.headers))),Promise.reject(e)}))}const Yt=t=>t instanceof It?t.toJSON():t;function Wt(t,e){e=e||{};const n={};function r(t,e,n){return ht.isPlainObject(t)&&ht.isPlainObject(e)?ht.merge.call({caseless:n},t,e):ht.isPlainObject(e)?ht.merge({},e):ht.isArray(e)?e.slice():e}function o(t,e,n){return ht.isUndefined(e)?ht.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function i(t,e){if(!ht.isUndefined(e))return r(void 0,e)}function s(t,e){return ht.isUndefined(e)?ht.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(Yt(t),Yt(e),!0)};return ht.forEach(Object.keys(Object.assign({},t,e)),(function(r){const i=c[r]||o,s=i(t[r],e[r],r);ht.isUndefined(s)&&i!==u||(n[r]=s)})),n}const Zt={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Zt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));const Qt={};Zt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.5.1] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new dt(r(o," has been removed"+(e?" in "+e:"")),dt.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 te={assertOptions:function(t,e,n){if("object"!=typeof t)throw new dt("options must be an object",dt.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 dt("option "+i+" must be "+n,dt.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new dt("Unknown option "+i,dt.ERR_BAD_OPTION)}},validators:Zt},ee=te.validators;class ne{constructor(t){this.defaults=t,this.interceptors={request:new St,response:new St}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Wt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&te.assertOptions(n,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),null!=r&&(ht.isFunction(r)?e.paramsSerializer={serialize:r}:te.assertOptions(r,{encode:ee.function,serialize:ee.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&ht.merge(o.common,o[e.method]);o&&ht.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=It.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=[Xt.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=Xt.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 Tt(Ht((t=Wt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}ht.forEach(["delete","get","head","options"],(function(t){ne.prototype[t]=function(e,n){return this.request(Wt(n||{},{method:t,url:e,data:(n||{}).data}))}})),ht.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,o){return this.request(Wt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ne.prototype[t]=e(),ne.prototype[t+"Form"]=e(!0)}));class re{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 Mt(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 re((function(e){t=e})),cancel:t}}}const oe={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(oe).forEach((([t,e])=>{oe[e]=t}));const ie=function t(e){const n=new ne(e),r=U(ne.prototype.request,n);return ht.extend(r,ne.prototype,n,{allOwnKeys:!0}),ht.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(Wt(e,n))},r}(Ct);ie.Axios=ne,ie.CanceledError=Mt,ie.CancelToken=re,ie.isCancel=xt,ie.VERSION="1.5.1",ie.toFormData=yt,ie.AxiosError=dt,ie.Cancel=ie.CanceledError,ie.all=function(t){return Promise.all(t)},ie.spread=function(t){return function(e){return t.apply(null,e)}},ie.isAxiosError=function(t){return ht.isObject(t)&&!0===t.isAxiosError},ie.mergeConfig=Wt,ie.AxiosHeaders=It,ie.formToJSON=t=>jt(ht.isHTMLForm(t)?new FormData(t):t),ie.getAdapter=Vt,ie.HttpStatusCode=oe,ie.default=ie;var se=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},ue=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 se()}try{return __global__||se()}finally{delete Object.prototype.__global__}}(),ce=Symbol.for("verdocs-default-endpoint"),ae=function(t){return console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):""),t},le=function(){function e(t){this.environment="verdocs",this.sessionType="user",this.baseURL="https://api.verdocs.com",this.baseURLv2="https://api-v2.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.baseURLv2=(null==t?void 0:t.baseURLv2)||"https://api-v2.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=ie.create({baseURL:this.baseURL,timeout:this.timeout}),L(this.api,{retries:0,retryDelay:L.exponentialDelay,onRetry:function(t,e,n){window.console.debug("[JS_SDK] Retrying request (".concat(t,")"),e.message,n.url)}})}return e.prototype.setDefault=function(){ue[ce]=this},e.getDefault=function(){return ue[ce]||(ue[ce]=new e,window.console.debug("[JS_SDK] Created default endpoint",ue[ce])),ue[ce]},e.prototype.getEnvironment=function(){return this.environment},e.prototype.getSessionType=function(){return this.sessionType},e.prototype.getBaseURL=function(){return this.baseURL},e.prototype.getBaseURLv2=function(){return this.baseURLv2},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.baseURL=t,this.api.defaults.baseURL=t,this},e.prototype.setBaseURLv2=function(t){return this.baseURLv2=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(ae):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,le as V,i as a,l as b,m as c,b as d,h as g,f as l,p as u}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,H as e}from"./p-876d3ff3.js";import"./p-05788c2b.js";import{V as l}from"./p-2174e539.js";import{g as i}from"./p-047b4bd1.js";import"./p-85d0e79d.js";const o=class{constructor(s){t(this,s),this.store=null,this.endpoint=l.getDefault(),this.templateId="e997b94c-9d1b-4c85-8552-dedd24e35550"}async componentWillLoad(){try{this.endpoint.loadSession(),this.store=await i(this.endpoint,this.templateId,!1)}catch(t){console.log("[TEMPLATE VISIBILITY] Error loading template",t)}}render(){return console.log("[IPC] Rendering"),s(e,null,s("div",null,s("pre",null,s("code",null,JSON.stringify(this.store.state,null,2)))),s("verdocs-template-roles",{templateId:this.templateId}),s("verdocs-template-fields",{templateId:this.templateId}))}};o.style="ipc-test{max-width:800px;display:block}";export{o as ipc_test}
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-85d0e79d.js";import{a as o}from"./p-0de7f044.js";const t={},i=async(i,n,d=!1)=>{let r=!1;t[n]||(console.debug("[ENVELOPES] No envelope store found for ID, creating",n),t[n]=(o=>{const t=(new Date).toISOString();return e({isLoading:!0,isLoaded:!1,isError:!1,error:null,updateCount:0,roleNames:[],id:o,template_id:"",name:"",status:"pending",profile_id:"",organization_id:"",no_contact:!1,created_at:t,updated_at:t,canceled_at:null,reminder_id:null,envelope_document_id:"",certificate_document_id:null,visibility:"private",histories:[],recipients:[],profile:void 0,certificate:void 0,document:void 0,documents:void 0,fields:void 0})})(n),r=!0);const s=t[n];if(s.use({reset:()=>console.debug("[ENVELOPES] Store got reset"),dispose:()=>console.debug("[ENVELOPES] Store got disposed")}),r||d){console.debug("[ENVELOPES] Reloading envelope",{envelopeId:n,created:r,forceReload:d}),s.state.isLoading=!0,s.state.isLoaded=!1,s.state.isError=!1,s.state.error=void 0;try{const e=await o(i,n);console.debug("[ENVELOPES] Got envelope",e),Object.assign(s.state,e),s.state.isLoaded=!0,s.state.isError=!1,s.state.error=void 0}catch(e){throw console.error("[ENVELOPES] Error loading envelope",e),s.state.isLoaded=!1,s.state.isError=!0,s.state.error=e,e}s.state.isLoading=!1,s.state.updateCount++}return s};export{i as g}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function i(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):a(e.value).then(s,i)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-39e8600d.system.js","./p-24f0c391.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.c},function(e){r=e.g;n=e.T}],execute:function(){var a=this;var o=function(e){var r=(new Date).toISOString();return t({isLoading:true,isLoaded:false,isError:false,error:null,updateCount:0,roleNames:[],id:e,name:"",description:"",sender:n.CREATOR,profile_id:"",organization_id:"",counter:0,star_counter:0,is_sendable:false,is_personal:true,is_public:false,created_at:r,updated_at:r,last_used_at:r,token:"",reminder_id:"",reminder:undefined,processed:false,organization:undefined,roles:[],pages:[],template_document:undefined,template_documents:[]})};var s={};var i=e("g",(function(e,t,n){if(n===void 0){n=false}return __awaiter(a,void 0,void 0,(function(){var a,i,u,l;return __generator(this,(function(c){switch(c.label){case 0:a=false;if(!s[t]){console.debug("[TEMPLATES] No template store found for ID, creating",t);s[t]=o(t);a=true}i=s[t];i.use({reset:function(){return console.debug("[TEMPLATES] Store got reset")},dispose:function(){return console.debug("[TEMPLATES] Store got disposed")}});if(!(a||n))return[3,5];console.debug("[TEMPLATES] Reloading template",{templateId:t,created:a,forceReload:n});i.state.isLoading=true;i.state.isLoaded=false;i.state.isError=false;i.state.error=undefined;c.label=1;case 1:c.trys.push([1,3,,4]);return[4,r(e,t)];case 2:u=c.sent();console.debug("[TEMPLATES] Got template",u);Object.assign(i.state,u);i.state.isLoaded=true;i.state.isError=false;i.state.error=undefined;return[3,4];case 3:l=c.sent();console.error("[TEMPLATES] Error loading template",l);i.state.isLoaded=false;i.state.isError=true;i.state.error=l;throw l;case 4:i.state.isLoading=false;i.state.updateCount++;c.label=5;case 5:return[2,i]}}))}))}));var u=e("a",(function(e){var t;return(((t=e===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.roles)||[]).map((function(e){return e.name}))}))}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?i(t.value):r(t.value).then(o,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=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(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-fbb8023f.system.js","./p-daebb9e6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-66d45c89.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(t){"use strict";var e,i,n,r,a,o,s,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;a=t.a},function(t){o=t.k},function(){},function(t){s=t.V},function(t){c=t.t},function(){},function(){},function(){},function(){}],execute:function(){var h="verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var u=t("verdocs_envelope_document_page",function(){function t(t){e(this,t);this.pageRendered=i(this,"pageRendered",7);this.endpoint=s.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,o(this.endpoint,this.envelopeId,this.documentId,this.pageNumber,this.type)];case 1:t.pageDisplayUri=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var i=0,n=e;i<n.length;i++){var r=n[i];var a=r.contentRect.width;t.renderedWidth=a;t.renderedHeight=t.virtualHeight*(a/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return n(r,{id:"".concat(this.containerId),style:{height:e,flex:"0 0 ".concat(e)}},this.layers.map((function(i){return i.type==="div"?n("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(t.containerId,"-").concat(i.name),style:{height:e}}):t.pageDisplayUri?n("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(t.containerId,"-").concat(i.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio;t.renderedHeight=e.target.offsetWidth/t.aspectRatio}}):n("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());u.style=h}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function o(t){try{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?i(t.value):r(t.value).then(o,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=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(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];r=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-cd61fea7.system.js","./p-821c78c4.system.js","./p-54498887.system.js","./p-24f0c391.system.js","./p-802bd493.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(t){"use strict";var e,i,n,r,a,o,s,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;a=t.a},function(t){o=t.m},function(){},function(t){s=t.V},function(t){c=t.t},function(){},function(){},function(){},function(){}],execute:function(){var h="verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var u=t("verdocs_envelope_document_page",function(){function t(t){e(this,t);this.pageRendered=i(this,"pageRendered",7);this.endpoint=s.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,o(this.endpoint,this.envelopeId,this.documentId,this.pageNumber,this.type)];case 1:t.pageDisplayUri=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var i=0,n=e;i<n.length;i++){var r=n[i];var a=r.contentRect.width;t.renderedWidth=a;t.renderedHeight=t.virtualHeight*(a/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return n(r,{id:"".concat(this.containerId),style:{height:e,flex:"0 0 ".concat(e)}},this.layers.map((function(i){return i.type==="div"?n("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(t.containerId,"-").concat(i.name),style:{height:e}}):t.pageDisplayUri?n("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(t.containerId,"-").concat(i.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio;t.renderedHeight=e.target.offsetWidth/t.aspectRatio}}):n("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());u.style=h}}}));
@@ -0,0 +1 @@
1
+ var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=t.call(e,r)}catch(e){a=[6,e];i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-54498887.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.d}],execute:function(){e({T:void 0,a:void 0});var r;(function(e){e["CREATOR"]="creator";e["ORGANIZATION_MEMBER"]="organization_member";e["ORGANIZATION_MEMBER_AS_CREATOR"]="organization_member_as_creator";e["EVERYONE"]="everyone";e["EVERYONE_AS_CREATOR"]="everyone_as_creator"})(r||(r={}));var n;(function(e){e["TEMPLATE_CREATOR_CREATE_PUBLIC"]="template:creator:create:public";e["TEMPLATE_CREATOR_CREATE_ORG"]="template:creator:create:org";e["TEMPLATE_CREATOR_CREATE_PERSONAL"]="template:creator:create:personal";e["TEMPLATE_CREATOR_DELETE"]="template:creator:delete";e["TEMPLATE_CREATOR_VISIBILITY"]="template:creator:visibility";e["TEMPLATE_MEMBER_READ"]="template:member:read";e["TEMPLATE_MEMBER_WRITE"]="template:member:write";e["TEMPLATE_MEMBER_DELETE"]="template:member:delete";e["TEMPLATE_MEMBER_VISIBILITY"]="template:member:visibility"})(n||(n={}));var i=e("b",(function(e,t){return e.api.post("/templates",{params:t}).then((function(e){return e.data}))}));var o=e("l",(function(e,t){return e.api.post("/templates/list",t,{baseURL:e.getBaseURLv2()}).then((function(e){return e.data}))}));var a=e("g",(function(e,t){return e.api.get("/templates/".concat(t)).then((function(e){return e.data}))}));var s=["name","is_personal","is_public","sender","description","roles","fields"];var u=e("c",(function(e,t,r){var n={timeout:12e4,onUploadProgress:function(e){var t=e.total||1;var n=e.loaded||0;r===null||r===void 0?void 0:r(Math.floor(n*100/(t||1)),n,t||1)}};if(t.documents&&t.documents[0]instanceof File){if(t.documents.length>10){throw new Error("createTemplate() has a maximum of 10 documents that can be attached.")}var i=new FormData;s.forEach((function(e){if(t[e]!==undefined){i.append(e,t[e])}}));t.documents.forEach((function(e){i.append("documents",e,e.name)}));return e.api.post("/templates",i,n).then((function(e){return e.data}))}else{return e.api.post("/templates",t,n).then((function(e){return e.data}))}}));var c=e("u",(function(e,t,r){return e.api.put("/templates/".concat(t),r).then((function(e){return e.data}))}));var f=e("d",(function(e,t){return e.api.delete("/templates/".concat(t)).then((function(e){return e.data}))}));var l;(function(e){e["CREATED_AT"]="created_at";e["UPDATED_AT"]="updated_at";e["NAME"]="name";e["LAST_USED_AT"]="last_used_at";e["COUNTER"]="counter";e["STAR_COUNTER"]="star_counter"})(l||(l={}));var p;(function(e){e["CREATOR"]="creator";e["ORGANIZATION_MEMBER"]="organization_member";e["ORGANIZATION_MEMBER_AS_CREATOR"]="organization_member_as_creator";e["EVERYONE"]="everyone";e["EVERYONE_AS_CREATOR"]="everyone_as_creator"})(p||(p=e("T",{})));var d;(function(e){e["CREATE_PERSONAL"]="create_personal";e["CREATE_ORG"]="create_org";e["CREATE_PUBLIC"]="create_public";e["READ"]="read";e["WRITE"]="write";e["DELETE"]="delete";e["CHANGE_VISIBILITY_PERSONAL"]="change_visibility_personal";e["CHANGE_VISIBILITY_ORG"]="change_visibility_org";e["CHANGE_VISIBILITY_PUBLIC"]="change_visibility_public"})(d||(d=e("a",{})));var h;(function(e){e["CREATED_AT"]="created_at";e["UPDATED_AT"]="updated_at";e["NAME"]="name";e["LAST_USED_AT"]="last_used_at";e["COUNTER"]="counter";e["STAR_COUNTER"]="star_counter"})(h||(h={}));var v;(function(e){e["RCOMMON"]="rcommon:access";e["RFORM_ACCESS"]="rform:access";e["ORG_CREATE"]="org:create";e["ORG_VIEW"]="org:view";e["ORG_UPDATE"]="org:update";e["ORG_DELETE"]="org:delete";e["ORG_TRANSFER"]="org:transfer";e["ORG_LIST"]="org:list";e["OWNER_ADD"]="owner:add";e["OWNER_REMOVE"]="owner:remove";e["ADMIN_ADD"]="admin:add";e["ADMIN_REMOVE"]="admin:remove";e["MEMBER_VIEW"]="member:view";e["MEMBER_ADD"]="member:add";e["MEMBER_REMOVE"]="member:remove";e["TEMPLATE_CREATOR_DELETE"]="template:creator:delete";e["TEMPLATE_CREATOR_VISIBILITY"]="template:creator:visibility";e["TEMPLATE_CREATOR_CREATE_ORG"]="template:creator:create:org";e["TEMPLATE_CREATOR_CREATE_PUBLIC"]="template:creator:create:public";e["TEMPLATE_CREATOR_CREATE_PERSONAL"]="template:creator:create:personal";e["TEMPLATE_MEMBER_READ"]="template:member:read";e["TEMPLATE_MEMBER_WRITE"]="template:member:write";e["TEMPLATE_MEMBER_DELETE"]="template:member:delete";e["TEMPLATE_MEMBER_VISIBILITY"]="template:member:visibility"})(v||(v={}));var E;(function(e){e["ENV_ESSENTIAL"]="env:essential";e["ORG_STANDARD"]="org:standard"})(E||(E={}));var m;(function(e){e["OWNER"]="owner";e["BASIC_USER"]="basic_user";e["MEMBER"]="member"})(m||(m={}));var y=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"]);var R=function(e){return!y.has(e&&e.code)};function g(e,t,r,n,i,o,a){try{var s=e[o](a);var u=s.value}catch(e){r(e);return}if(s.done){t(u)}else{Promise.resolve(u).then(n,i)}}function _(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){g(o,n,i,a,s,"next",e)}function s(e){g(o,n,i,a,s,"throw",e)}a(undefined)}))}}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);if(t){n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};if(t%2){b(Object(r),true).forEach((function(t){O(e,t,r[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(r))}else{b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}}return e}function O(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}var A="axios-retry";function w(e){return!e.response&&Boolean(e.code)&&e.code!=="ECONNABORTED"&&R(e)}var S=["get","head","options"];var C=S.concat(["put","delete"]);function L(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status>=500&&e.response.status<=599)}function N(e){if(!e.config){return false}return L(e)&&S.indexOf(e.config.method)!==-1}function D(e){if(!e.config){return false}return L(e)&&C.indexOf(e.config.method)!==-1}function I(e){return w(e)||D(e)}function P(){return 0}function U(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var t=Math.pow(2,e)*100;var r=t*.2*Math.random();return t+r}function j(e){var t=e[A]||{};t.retryCount=t.retryCount||0;e[A]=t;return t}function B(e,t){return T(T({},t),e[A])}function x(e,t){if(e.defaults.agent===t.agent){delete t.agent}if(e.defaults.httpAgent===t.httpAgent){delete t.httpAgent}if(e.defaults.httpsAgent===t.httpsAgent){delete t.httpsAgent}}function M(e,t,r,n){return F.apply(this,arguments)}function F(){F=_((function(e,t,r,n){var i,o,a;return __generator(this,(function(s){switch(s.label){case 0:i=r.retryCount<e&&t(n);if(!(typeof i==="object"))return[3,4];s.label=1;case 1:s.trys.push([1,3,,4]);return[4,i];case 2:o=s.sent();return[2,o!==false];case 3:a=s.sent();return[2,false];case 4:return[2,i]}}))}));return F.apply(this,arguments)}function k(e,t){e.interceptors.request.use((function(e){var t=j(e);t.lastRequestTime=Date.now();return e}));e.interceptors.response.use(null,function(){var r=_((function(r){var n,i,o,a,s,u,c,f,l,p,d,h,v,E,m,y;return __generator(this,(function(R){switch(R.label){case 0:n=r.config;if(!n){return[2,Promise.reject(r)]}i=B(n,t),o=i.retries,a=o===void 0?3:o,s=i.retryCondition,u=s===void 0?I:s,c=i.retryDelay,f=c===void 0?P:c,l=i.shouldResetTimeout,p=l===void 0?false:l,d=i.onRetry,h=d===void 0?function(){}:d;v=j(n);return[4,M(a,u,v,r)];case 1:if(R.sent()){v.retryCount+=1;E=f(v.retryCount,r);x(e,n);if(!p&&n.timeout&&v.lastRequestTime){m=Date.now()-v.lastRequestTime;y=n.timeout-m-E;if(y<=0){return[2,Promise.reject(r)]}n.timeout=y}n.transformRequest=[function(e){return e}];h(v.retryCount,r,n);return[2,new Promise((function(t){return setTimeout((function(){return t(e(n))}),E)}))]}return[2,Promise.reject(r)]}}))}));return function(e){return r.apply(this,arguments)}}())}k.isNetworkError=w;k.isSafeRequestError=N;k.isIdempotentRequestError=D;k.isNetworkOrIdempotentRequestError=I;k.exponentialDelay=U;k.isRetryableError=L;function q(e,t){return function r(){return e.apply(t,arguments)}}var G=Object.prototype.toString;var V=Object.getPrototypeOf;var H=function(e){return function(t){var r=G.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));var z=function(e){e=e.toLowerCase();return function(t){return H(t)===e}};var J=function(e){return function(t){return typeof t===e}};var K=Array.isArray;var W=J("undefined");function Y(e){return e!==null&&!W(e)&&e.constructor!==null&&!W(e.constructor)&&Q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var X=z("ArrayBuffer");function Z(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&X(e.buffer)}return t}var $=J("string");var Q=J("function");var ee=J("number");var te=function(e){return e!==null&&typeof e==="object"};var re=function(e){return e===true||e===false};var ne=function(e){if(H(e)!=="object"){return false}var t=V(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var ie=z("Date");var oe=z("File");var ae=z("Blob");var se=z("FileList");var ue=function(e){return te(e)&&Q(e.pipe)};var ce=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||Q(e.append)&&((t=H(e))==="formdata"||t==="object"&&Q(e.toString)&&e.toString()==="[object FormData]"))};var fe=z("URLSearchParams");var le=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function pe(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var s;if(typeof e!=="object"){e=[e]}if(K(e)){for(a=0,s=e.length;a<s;a++){t.call(null,e[a],a,e)}}else{var u=o?Object.getOwnPropertyNames(e):Object.keys(e);var c=u.length;var f=void 0;for(a=0;a<c;a++){f=u[a];t.call(null,e[f],f,e)}}}function de(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var he=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global}();var ve=function(e){return!W(e)&&e!==he};function Ee(){var e=(ve(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&de(t,n)||n;if(ne(t[i])&&ne(r)){t[i]=Ee(t[i],r)}else if(ne(r)){t[i]=Ee({},r)}else if(K(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&pe(arguments[n],r)}return t}var me=function(e,t,r,n){var i=n===void 0?{}:n,o=i.allOwnKeys;pe(t,(function(t,n){if(r&&Q(t)){e[n]=q(t,r)}else{e[n]=t}}),{allOwnKeys:o});return e};var ye=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var Re=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var ge=function(e,t,r,n){var i;var o;var a;var s={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);o=i.length;while(o-- >0){a=i[o];if((!n||n(a,e,t))&&!s[a]){t[a]=e[a];s[a]=true}}e=r!==false&&V(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var _e=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var be=function(e){if(!e)return null;if(K(e))return e;var t=e.length;if(!ee(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var Te=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&V(Uint8Array));var Oe=function(e,t){var r=e&&e[Symbol.iterator];var n=r.call(e);var i;while((i=n.next())&&!i.done){var o=i.value;t.call(e,o[0],o[1])}};var Ae=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var we=z("HTMLFormElement");var Se=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var Ce=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var Le=z("RegExp");var Ne=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};pe(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var De=function(e){Ne(e,(function(t,r){if(Q(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!Q(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var Ie=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};K(e)?n(e):n(String(e).split(t));return r};var Pe=function(){};var Ue=function(e,t){e=+e;return Number.isFinite(e)?e:t};var je="abcdefghijklmnopqrstuvwxyz";var Be="0123456789";var xe={DIGIT:Be,ALPHA:je,ALPHA_DIGIT:je+je.toUpperCase()+Be};var Me=function(e,t){if(e===void 0){e=16}if(t===void 0){t=xe.ALPHA_DIGIT}var r="";var n=t.length;while(e--){r+=t[Math.random()*n|0]}return r};function Fe(e){return!!(e&&Q(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var ke=function(e){var t=new Array(10);var r=function(e,n){if(te(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=K(e)?[]:{};pe(e,(function(e,t){var o=r(e,n+1);!W(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var qe=z("AsyncFunction");var Ge=function(e){return e&&(te(e)||Q(e))&&Q(e.then)&&Q(e.catch)};var Ve={isArray:K,isArrayBuffer:X,isBuffer:Y,isFormData:ce,isArrayBufferView:Z,isString:$,isNumber:ee,isBoolean:re,isObject:te,isPlainObject:ne,isUndefined:W,isDate:ie,isFile:oe,isBlob:ae,isRegExp:Le,isFunction:Q,isStream:ue,isURLSearchParams:fe,isTypedArray:Te,isFileList:se,forEach:pe,merge:Ee,extend:me,trim:le,stripBOM:ye,inherits:Re,toFlatObject:ge,kindOf:H,kindOfTest:z,endsWith:_e,toArray:be,forEachEntry:Oe,matchAll:Ae,isHTMLForm:we,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:Ne,freezeMethods:De,toObjectSet:Ie,toCamelCase:Se,noop:Pe,toFiniteNumber:Ue,findKey:de,global:he,isContextDefined:ve,ALPHABET:xe,generateString:Me,isSpecCompliantForm:Fe,toJSONObject:ke,isAsyncFn:qe,isThenable:Ge};function He(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);i&&(this.response=i)}Ve.inherits(He,Error,{toJSON:function e(){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:Ve.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ze=He.prototype;var Je={};["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((function(e){Je[e]={value:e}}));Object.defineProperties(He,Je);Object.defineProperty(ze,"isAxiosError",{value:true});He.from=function(e,t,r,n,i,o){var a=Object.create(ze);Ve.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));He.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var Ke=null;function We(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function Ye(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function Xe(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Ye(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function Ze(e){return Ve.isArray(e)&&!e.some(We)}var $e=Ve.toFlatObject(Ve,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Qe(e,t,r){if(!Ve.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=Ve.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!Ve.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var s=r.Blob||typeof Blob!=="undefined"&&Blob;var u=s&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(Ve.isDate(e)){return e.toISOString()}if(!u&&Ve.isBlob(e)){throw new He("Blob is not supported. Use a Buffer instead.")}if(Ve.isArrayBuffer(e)||Ve.isTypedArray(e)){return u&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var s=e;if(e&&!i&&typeof e==="object"){if(Ve.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(Ve.isArray(e)&&Ze(e)||(Ve.isFileList(e)||Ve.endsWith(r,"[]"))&&(s=Ve.toArray(e))){r=Ye(r);s.forEach((function e(n,i){!(Ve.isUndefined(n)||n===null)&&t.append(a===true?Xe([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(We(e)){return true}t.append(Xe(i,r,o),c(e));return false}var l=[];var p=Object.assign($e,{defaultVisitor:f,convertValue:c,isVisitable:We});function d(e,r){if(Ve.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);Ve.forEach(e,(function e(n,o){var a=!(Ve.isUndefined(n)||n===null)&&i.call(t,n,Ve.isString(o)?o.trim():o,r,p);if(a===true){d(n,r?r.concat(o):[o])}}));l.pop()}if(!Ve.isObject(e)){throw new TypeError("data must be an object")}d(e);return t}function et(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function tt(e,t){this._pairs=[];e&&Qe(e,this,t)}var rt=tt.prototype;rt.append=function e(t,r){this._pairs.push([t,r])};rt.toString=function e(t){var r=t?function(e){return t.call(this,e,et)}:et;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function nt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function it(e,t,r){if(!t){return e}var n=r&&r.encode||nt;var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=Ve.isURLSearchParams(t)?t.toString():new tt(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var ot=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){Ve.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var at={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var st=typeof URLSearchParams!=="undefined"?URLSearchParams:tt;var ut=typeof FormData!=="undefined"?FormData:null;var ct=typeof Blob!=="undefined"?Blob:null;var ft=function(){var e;if(typeof navigator!=="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}();var lt=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var pt={isBrowser:true,classes:{URLSearchParams:st,FormData:ut,Blob:ct},isStandardBrowserEnv:ft,isStandardBrowserWebWorkerEnv:lt,protocols:["http","https","file","blob","url","data"]};function dt(e,t){return Qe(e,new pt.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return n.defaultVisitor.apply(this,arguments)}},t))}function ht(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function vt(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function Et(e){function t(e,r,n,i){var o=e[i++];var a=Number.isFinite(+o);var s=i>=e.length;o=!o&&Ve.isArray(n)?n.length:o;if(s){if(Ve.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!Ve.isObject(n[o])){n[o]=[]}var u=t(e,r,n[o],i);if(u&&Ve.isArray(n[o])){n[o]=vt(n[o])}return!a}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){var r={};Ve.forEachEntry(e,(function(e,n){t(ht(e),n,r,0)}));return r}return null}function mt(e,t,r){if(Ve.isString(e)){try{(t||JSON.parse)(e);return Ve.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var yt={transitional:at,adapter:["xhr","http"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=Ve.isObject(t);if(o&&Ve.isHTMLForm(t)){t=new FormData(t)}var a=Ve.isFormData(t);if(a){if(!i){return t}return i?JSON.stringify(Et(t)):t}if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)){return t}if(Ve.isArrayBufferView(t)){return t.buffer}if(Ve.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return dt(t,this.formSerializer).toString()}if((s=Ve.isFileList(t))||n.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return Qe(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return mt(t)}return t}],transformResponse:[function e(t){var r=this.transitional||yt.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(t&&Ve.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw He.from(e,He.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pt.classes.FormData,Blob:pt.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};Ve.forEach(["delete","get","head","post","put","patch"],(function(e){yt.headers[e]={}}));var Rt=Ve.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"]);var gt=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&Rt[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var _t=Symbol("internals");function bt(e){return e&&String(e).trim().toLowerCase()}function Tt(e){if(e===false||e==null){return e}return Ve.isArray(e)?e.map(Tt):String(e)}function Ot(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var At=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function wt(e,t,r,n,i){if(Ve.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!Ve.isString(t))return;if(Ve.isString(n)){return t.indexOf(n)!==-1}if(Ve.isRegExp(n)){return n.test(t)}}function St(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function Ct(e,t){var r=Ve.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var Lt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=bt(t);if(!i){throw new Error("header name must be a non-empty string")}var o=Ve.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=Tt(e)}}var o=function(e,t){return Ve.forEach(e,(function(e,r){return i(e,r,t)}))};if(Ve.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(Ve.isString(e)&&(e=e.trim())&&!At(e)){o(gt(e),t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=bt(e);if(e){var r=Ve.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ot(n)}if(Ve.isFunction(t)){return t.call(this,n,r)}if(Ve.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=bt(e);if(e){var r=Ve.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||wt(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=bt(e);if(e){var i=Ve.findKey(r,e);if(i&&(!t||wt(r,r[i],i,t))){delete r[i];n=true}}}if(Ve.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||wt(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};Ve.forEach(this,(function(n,i){var o=Ve.findKey(r,i);if(o){t[o]=Tt(n);delete t[i];return}var a=e?St(i):String(i).trim();if(a!==i){delete t[i]}t[a]=Tt(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);Ve.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&Ve.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[_t]=this[_t]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=bt(e);if(!r[t]){Ct(n,e);r[t]=true}}Ve.isArray(e)?e.forEach(i):i(e);return this};return e}();Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ve.reduceDescriptors(Lt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));Ve.freezeMethods(Lt);function Nt(e,t){var r=this||yt;var n=t||r;var i=Lt.from(n.headers);var o=n.data;Ve.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function Dt(e){return!!(e&&e.__CANCEL__)}function It(e,t,r){He.call(this,e==null?"canceled":e,He.ERR_CANCELED,t,r);this.name="CanceledError"}Ve.inherits(It,He,{__CANCEL__:true});function Pt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new He("Request failed with status code "+r.status,[He.ERR_BAD_REQUEST,He.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}var Ut=pt.isStandardBrowserEnv?function e(){return{write:function e(t,r,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(r));if(Ve.isNumber(n)){s.push("expires="+new Date(n).toGMTString())}if(Ve.isString(i)){s.push("path="+i)}if(Ve.isString(o)){s.push("domain="+o)}if(a===true){s.push("secure")}document.cookie=s.join("; ")},read:function e(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function e(t){this.write(t,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();function jt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Bt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function xt(e,t){if(e&&!jt(t)){return Bt(e,t)}return t}var Mt=pt.isStandardBrowserEnv?function e(){var t=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function i(e){var n=e;if(t){r.setAttribute("href",n);n=r.href}r.setAttribute("href",n);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=i(window.location.href);return function e(t){var r=Ve.isString(t)?i(t):t;return r.protocol===n.protocol&&r.host===n.host}}():function e(){return function e(){return true}}();function Ft(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function s(u){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=u;n[i]=c;var l=o;var p=0;while(l!==i){p+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var d=f&&c-f;return d?Math.round(p*1e3/d):undefined}}function qt(e,t){var r=0;var n=kt(50,250);return function(i){var o=i.loaded;var a=i.lengthComputable?i.total:undefined;var s=o-r;var u=n(s);var c=o<=a;r=o;var f={loaded:o,total:a,progress:a?o/a:undefined,bytes:s,rate:u?u:undefined,estimated:u&&a&&c?(a-o)/u:undefined,event:i};f[t?"download":"upload"]=true;e(f)}}var Gt=typeof XMLHttpRequest!=="undefined";var Vt=Gt&&function(e){return new Promise((function t(r,n){var i=e.data;var o=Lt.from(e.headers).normalize();var a=e.responseType;var s;function u(){if(e.cancelToken){e.cancelToken.unsubscribe(s)}if(e.signal){e.signal.removeEventListener("abort",s)}}var c;if(Ve.isFormData(i)){if(pt.isStandardBrowserEnv||pt.isStandardBrowserWebWorkerEnv){o.setContentType(false)}else if(!o.getContentType(/^\s*multipart\/form-data/)){o.setContentType("multipart/form-data")}else if(Ve.isString(c=o.getContentType())){o.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1"))}}var f=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"";var p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(l+":"+p))}var d=xt(e.baseURL,e.url);f.open(e.method.toUpperCase(),it(d,e.params,e.paramsSerializer),true);f.timeout=e.timeout;function h(){if(!f){return}var t=Lt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());var i=!a||a==="text"||a==="json"?f.responseText:f.response;var o={data:i,status:f.status,statusText:f.statusText,headers:t,config:e,request:f};Pt((function e(t){r(t);u()}),(function e(t){n(t);u()}),o);f=null}if("onloadend"in f){f.onloadend=h}else{f.onreadystatechange=function e(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(h)}}f.onabort=function t(){if(!f){return}n(new He("Request aborted",He.ECONNABORTED,e,f));f=null};f.onerror=function t(){n(new He("Network Error",He.ERR_NETWORK,e,f));f=null};f.ontimeout=function t(){var r=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";var i=e.transitional||at;if(e.timeoutErrorMessage){r=e.timeoutErrorMessage}n(new He(r,i.clarifyTimeoutError?He.ETIMEDOUT:He.ECONNABORTED,e,f));f=null};if(pt.isStandardBrowserEnv){var v=(e.withCredentials||Mt(d))&&e.xsrfCookieName&&Ut.read(e.xsrfCookieName);if(v){o.set(e.xsrfHeaderName,v)}}i===undefined&&o.setContentType(null);if("setRequestHeader"in f){Ve.forEach(o.toJSON(),(function e(t,r){f.setRequestHeader(r,t)}))}if(!Ve.isUndefined(e.withCredentials)){f.withCredentials=!!e.withCredentials}if(a&&a!=="json"){f.responseType=e.responseType}if(typeof e.onDownloadProgress==="function"){f.addEventListener("progress",qt(e.onDownloadProgress,true))}if(typeof e.onUploadProgress==="function"&&f.upload){f.upload.addEventListener("progress",qt(e.onUploadProgress))}if(e.cancelToken||e.signal){s=function(t){if(!f){return}n(!t||t.type?new It(null,e,f):t);f.abort();f=null};e.cancelToken&&e.cancelToken.subscribe(s);if(e.signal){e.signal.aborted?s():e.signal.addEventListener("abort",s)}}var E=Ft(d);if(E&&pt.protocols.indexOf(E)===-1){n(new He("Unsupported protocol "+E+":",He.ERR_BAD_REQUEST,e));return}f.send(i||null)}))};var Ht={http:Ke,xhr:Vt};Ve.forEach(Ht,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var zt=function(e){return"- ".concat(e)};var Jt=function(e){return Ve.isFunction(e)||e===null||e===false};var Kt={getAdapter:function(e){e=Ve.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!Jt(r)){n=Ht[(a=String(r)).toLowerCase()];if(n===undefined){throw new He("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var s=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var u=t?s.length>1?"since :\n"+s.map(zt).join("\n"):" "+zt(s[0]):"as no adapter specified";throw new He("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:Ht};function Wt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new It(null,e)}}function Yt(e){Wt(e);e.headers=Lt.from(e.headers);e.data=Nt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Kt.getAdapter(e.adapter||yt.adapter);return t(e).then((function t(r){Wt(e);r.data=Nt.call(e,e.transformResponse,r);r.headers=Lt.from(r.headers);return r}),(function t(r){if(!Dt(r)){Wt(e);if(r&&r.response){r.response.data=Nt.call(e,e.transformResponse,r.response);r.response.headers=Lt.from(r.response.headers)}}return Promise.reject(r)}))}var Xt=function(e){return e instanceof Lt?e.toJSON():e};function Zt(e,t){t=t||{};var r={};function n(e,t,r){if(Ve.isPlainObject(e)&&Ve.isPlainObject(t)){return Ve.merge.call({caseless:r},e,t)}else if(Ve.isPlainObject(t)){return Ve.merge({},t)}else if(Ve.isArray(t)){return t.slice()}return t}function i(e,t,r){if(!Ve.isUndefined(t)){return n(e,t,r)}else if(!Ve.isUndefined(e)){return n(undefined,e,r)}}function o(e,t){if(!Ve.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!Ve.isUndefined(t)){return n(undefined,t)}else if(!Ve.isUndefined(e)){return n(undefined,e)}}function s(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return i(Xt(e),Xt(t),true)}};Ve.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=u[o]||i;var c=a(e[o],t[o],o);Ve.isUndefined(c)&&a!==s||(r[o]=c)}));return r}var $t="1.5.1";var Qt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Qt[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var er={};Qt.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+$t+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new He(i(n," has been removed"+(r?" in "+r:"")),He.ERR_DEPRECATED)}if(r&&!er[n]){er[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};function tr(e,t,r){if(typeof e!=="object"){throw new He("options must be an object",He.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new He("option "+o+" must be "+u,He.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new He("Unknown option "+o,He.ERR_BAD_OPTION)}}}var rr={assertOptions:tr,validators:Qt};var nr=rr.validators;var ir=function(){function e(e){this.defaults=e;this.interceptors={request:new ot,response:new ot}}e.prototype.request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Zt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){rr.assertOptions(r,{silentJSONParsing:nr.transitional(nr.boolean),forcedJSONParsing:nr.transitional(nr.boolean),clarifyTimeoutError:nr.transitional(nr.boolean)},false)}if(n!=null){if(Ve.isFunction(n)){t.paramsSerializer={serialize:n}}else{rr.assertOptions(n,{encode:nr.function,serialize:nr.function},true)}}t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&Ve.merge(i.common,i[t.method]);i&&Ve.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=Lt.concat(o,i);var a=[];var s=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}s=s&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var u=[];this.interceptors.response.forEach((function e(t){u.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!s){var p=[Yt.bind(this),undefined];p.unshift.apply(p,a);p.push.apply(p,u);l=p.length;c=Promise.resolve(t);while(f<l){c=c.then(p[f++],p[f++])}return c}l=a.length;var d=t;f=0;while(f<l){var h=a[f++];var v=a[f++];try{d=h(d)}catch(e){v.call(this,e);break}}try{c=Yt.call(this,d)}catch(e){return Promise.reject(e)}f=0;l=u.length;while(f<l){c=c.then(u[f++],u[f++])}return c};e.prototype.getUri=function(e){e=Zt(this.defaults,e);var t=xt(e.baseURL,e.url);return it(t,e.params,e.paramsSerializer)};return e}();Ve.forEach(["delete","get","head","options"],(function e(t){ir.prototype[t]=function(e,r){return this.request(Zt(r||{},{method:t,url:e,data:(r||{}).data}))}}));Ve.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(Zt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ir.prototype[t]=r();ir.prototype[t+"Form"]=r(true)}));var or=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new It(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();function ar(e){return function t(r){return e.apply(null,r)}}function sr(e){return Ve.isObject(e)&&e.isAxiosError===true}var ur={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(ur).forEach((function(e){var t=e[0],r=e[1];ur[r]=t}));function cr(e){var t=new ir(e);var r=q(ir.prototype.request,t);Ve.extend(r,ir.prototype,t,{allOwnKeys:true});Ve.extend(r,t,null,{allOwnKeys:true});r.create=function t(r){return cr(Zt(e,r))};return r}var fr=cr(yt);fr.Axios=ir;fr.CanceledError=It;fr.CancelToken=or;fr.isCancel=Dt;fr.VERSION=$t;fr.toFormData=Qe;fr.AxiosError=He;fr.Cancel=fr.CanceledError;fr.all=function e(t){return Promise.all(t)};fr.spread=ar;fr.isAxiosError=sr;fr.mergeConfig=Zt;fr.AxiosHeaders=Lt;fr.formToJSON=function(e){return Et(Ve.isHTMLForm(e)?new FormData(e):e)};fr.getAdapter=Kt.getAdapter;fr.HttpStatusCode=ur;fr.default=fr;var lr=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var pr=function(){if(this)return this;if(typeof globalThis==="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:true})}catch(e){return lr()}try{if(!__global__)return lr();return __global__}finally{delete Object.prototype.__global__}}();var dr=Symbol.for("verdocs-default-endpoint");var hr=function(e){console.debug("[JS-SDK] ".concat(e.method.toUpperCase()," ").concat(e.baseURL).concat(e.url),e.data?JSON.stringify(e.data):"");return e};var vr=e("V",function(){function e(e){this.environment="verdocs";this.sessionType="user";this.baseURL="https://api.verdocs.com";this.baseURLv2="https://api-v2.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=(e===null||e===void 0?void 0:e.baseURL)||"https://api.verdocs.com";this.baseURLv2=(e===null||e===void 0?void 0:e.baseURLv2)||"https://api-v2.verdocs.com";this.timeout=(e===null||e===void 0?void 0:e.timeout)||6e4;this.environment=(e===null||e===void 0?void 0:e.environment)||"verdocs";this.sessionType=(e===null||e===void 0?void 0:e.sessionType)||"user";this.clientID=(e===null||e===void 0?void 0:e.clientID)||"not-set";this.api=fr.create({baseURL:this.baseURL,timeout:this.timeout});k(this.api,{retries:0,retryDelay:k.exponentialDelay,onRetry:function(e,t,r){window.console.debug("[JS_SDK] Retrying request (".concat(e,")"),t.message,r.url)}})}e.prototype.setDefault=function(){pr[dr]=this};e.getDefault=function(){if(!pr[dr]){pr[dr]=new e;window.console.debug("[JS_SDK] Created default endpoint",pr[dr])}return pr[dr]};e.prototype.getEnvironment=function(){return this.environment};e.prototype.getSessionType=function(){return this.sessionType};e.prototype.getBaseURL=function(){return this.baseURL};e.prototype.getBaseURLv2=function(){return this.baseURLv2};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(e){this.environment=e;return this};e.prototype.setSessionType=function(e){this.sessionType=e;return this};e.prototype.setBaseURL=function(e){this.baseURL=e;this.api.defaults.baseURL=e;return this};e.prototype.setBaseURLv2=function(e){this.baseURLv2=e;return this};e.prototype.setClientID=function(e){this.clientID=e;this.api.defaults.headers.common["X-Client-ID"]=e;return this};e.prototype.setTimeout=function(e){this.timeout=e;this.api.defaults.timeout=e;return this};e.prototype.logRequests=function(e){if(e&&this.requestLoggerId===null){this.requestLoggerId=this.api.interceptors.request.use(hr)}else if(!e&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};e.prototype.setToken=function(e){if(!e){return this.clearSession()}var r=t(e);if(r===null||r.exp&&r.exp*1e3<(new Date).getTime()){window.console.warn("[JS_SDK] Ignoring attempt to use expired session token");return this.clearSession()}this.token=e;this.session=r;if(this.sessionType==="user"){this.api.defaults.headers.common.Authorization="Bearer ".concat(e)}else{this.api.defaults.headers.common.signer="Bearer ".concat(e)}localStorage.setItem(this.sessionStorageKey(),e);this.notifySessionListeners();return 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(){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();return this};e.prototype.clearSignerSession=function(){localStorage.removeItem(this.sessionStorageKey());delete this.api.defaults.headers.common.Authorization;this.session=null;this.token=null;this.notifySessionListeners();return this};e.prototype.notifySessionListeners=function(){var e=this;this.sessionListeners.forEach((function(t){try{t(e,e.session)}catch(e){}}))};e.prototype.onSessionChanged=function(e){var t=this;this.nextListenerId++;var r=Symbol.for(""+this.nextListenerId);this.sessionListeners.set(r,e);return function(){t.sessionListeners.delete(r)}};e.prototype.loadSession=function(){var e=localStorage.getItem(this.sessionStorageKey());if(!e){return this.clearSession()}return this.setToken(e)};return e}())}}}));
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as i}from"./p-14b44491.js";import{g as o}from"./p-6de76553.js";import{g as n}from"./p-402c3762.js";import"./p-eab67c09.js";import"./p-ccb2c794.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const r=class{constructor(s){t(this,s),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.attached=e(this,"attached",7),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.handleShow()}handleShow(){this.dialog=document.createElement("verdocs-upload-dialog"),this.dialog.open=!0,this.dialog.addEventListener("exit",(()=>{var t;return null===(t=this.dialog)||void 0===t?void 0:t.remove()})),document.addEventListener("next",(t=>{var e,s;console.log("Attachment next",t),null===(e=this.attached)||void 0===e||e.emit(t.detail[0]),null===(s=this.dialog)||void 0===s||s.remove()})),document.body.append(this.dialog)}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()}render(){var t,e;const r=n(this.field);let c=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:r.disabled)&&void 0!==e&&e;const l=this.field.rgba||o(this.roleindex),{url:a}=r;return console.log("Attachment settings",a,r),s(i,{class:{required:r.required,disabled:c},style:{backgroundColor:l}},s("span",{innerHTML:a?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 104.69 122.88"><g><path d="M31.54,86.95c-1.74,0-3.16-1.43-3.16-3.19c0-1.76,1.41-3.19,3.16-3.19h20.5c1.74,0,3.16,1.43,3.16,3.19 c0,1.76-1.41,3.19-3.16,3.19H31.54L31.54,86.95z M31.54,42.27c-1.74,0-3.15-1.41-3.15-3.15c0-1.74,1.41-3.15,3.15-3.15h41.61 c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,42.27z M66.57,108.66c-1.36-1.08-1.59-3.06-0.5-4.42 c1.08-1.36,3.06-1.59,4.42-0.5l9.57,7.59l18.21-22.27c1.1-1.35,3.09-1.54,4.43-0.44c1.35,1.1,1.54,3.09,0.44,4.43l-20.17,24.67l0,0 c-1.09,1.33-3.04,1.54-4.39,0.47L66.57,108.66L66.57,108.66z M56.85,116.58c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15 H7.33c-2.02,0-3.85-0.82-5.18-2.15C0.82,119.4,0,117.57,0,115.55V7.33c0-2.02,0.82-3.85,2.15-5.18C3.48,0.82,5.31,0,7.33,0h90.02 c2.02,0,3.85,0.82,5.18,2.15c1.33,1.33,2.15,3.16,2.15,5.18V72.6c0,1.74-1.41,3.15-3.15,3.15c-1.74,0-3.15-1.41-3.15-3.15V7.33 c0-0.28-0.12-0.54-0.3-0.73c-0.19-0.19-0.45-0.3-0.73-0.3H7.33c-0.28,0-0.54,0.12-0.73,0.3C6.42,6.8,6.3,7.05,6.3,7.33v108.21 c0,0.28,0.12,0.54,0.3,0.73c0.19,0.19,0.45,0.3,0.73,0.3H56.85L56.85,116.58z M31.54,64.59c-1.74,0-3.15-1.41-3.15-3.15 c0-1.74,1.41-3.15,3.15-3.15h41.61c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,64.59z"/></g></svg>':'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" /></svg>',onClick:()=>!c&&this.handleShow()}),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 t;return null===(t=this.deleted)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return console.log("here"),null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()},helpText:'Attachment fields allow files to be uploaded during signing. Files will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must attach a file before proceeding.'})))}};r.style='verdocs-field-attachment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:24px;height:24px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-attachment.disabled{opacity:0.5}verdocs-field-attachment.disabled span{cursor:inherit}verdocs-field-attachment span{cursor:inherit;width:20px}verdocs-field-attachment.required span{border:1px solid #cc0000}verdocs-field-attachment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-attachment verdocs-button-panel{top:1px;left:-19px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-attachment verdocs-button-panel[data-active],verdocs-field-attachment verdocs-button-panel:hover{opacity:1}verdocs-field-attachment verdocs-button-panel .icon svg{fill:#333333}verdocs-field-attachment verdocs-button-panel .icon:hover svg{fill:#000000}';export{r as verdocs_field_attachment}
1
+ import{r as t,c as e,h as s,H as i}from"./p-876d3ff3.js";import{g as o}from"./p-6de76553.js";import{g as n}from"./p-044d38be.js";import"./p-eab67c09.js";import"./p-0de7f044.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const r=class{constructor(s){t(this,s),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.attached=e(this,"attached",7),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.handleShow()}handleShow(){this.dialog=document.createElement("verdocs-upload-dialog"),this.dialog.open=!0,this.dialog.addEventListener("exit",(()=>{var t;return null===(t=this.dialog)||void 0===t?void 0:t.remove()})),document.addEventListener("next",(t=>{var e,s;console.log("Attachment next",t),null===(e=this.attached)||void 0===e||e.emit(t.detail[0]),null===(s=this.dialog)||void 0===s||s.remove()})),document.body.append(this.dialog)}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()}render(){var t,e;const r=n(this.field);let l=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:r.disabled)&&void 0!==e&&e;const a=this.field.rgba||o(this.roleindex),{url:c}=r;return console.log("Attachment settings",c,r),s(i,{class:{required:r.required,disabled:l},style:{backgroundColor:a}},s("span",{innerHTML:c?'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 104.69 122.88"><g><path d="M31.54,86.95c-1.74,0-3.16-1.43-3.16-3.19c0-1.76,1.41-3.19,3.16-3.19h20.5c1.74,0,3.16,1.43,3.16,3.19 c0,1.76-1.41,3.19-3.16,3.19H31.54L31.54,86.95z M31.54,42.27c-1.74,0-3.15-1.41-3.15-3.15c0-1.74,1.41-3.15,3.15-3.15h41.61 c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,42.27z M66.57,108.66c-1.36-1.08-1.59-3.06-0.5-4.42 c1.08-1.36,3.06-1.59,4.42-0.5l9.57,7.59l18.21-22.27c1.1-1.35,3.09-1.54,4.43-0.44c1.35,1.1,1.54,3.09,0.44,4.43l-20.17,24.67l0,0 c-1.09,1.33-3.04,1.54-4.39,0.47L66.57,108.66L66.57,108.66z M56.85,116.58c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15 H7.33c-2.02,0-3.85-0.82-5.18-2.15C0.82,119.4,0,117.57,0,115.55V7.33c0-2.02,0.82-3.85,2.15-5.18C3.48,0.82,5.31,0,7.33,0h90.02 c2.02,0,3.85,0.82,5.18,2.15c1.33,1.33,2.15,3.16,2.15,5.18V72.6c0,1.74-1.41,3.15-3.15,3.15c-1.74,0-3.15-1.41-3.15-3.15V7.33 c0-0.28-0.12-0.54-0.3-0.73c-0.19-0.19-0.45-0.3-0.73-0.3H7.33c-0.28,0-0.54,0.12-0.73,0.3C6.42,6.8,6.3,7.05,6.3,7.33v108.21 c0,0.28,0.12,0.54,0.3,0.73c0.19,0.19,0.45,0.3,0.73,0.3H56.85L56.85,116.58z M31.54,64.59c-1.74,0-3.15-1.41-3.15-3.15 c0-1.74,1.41-3.15,3.15-3.15h41.61c1.74,0,3.15,1.41,3.15,3.15c0,1.74-1.41,3.15-3.15,3.15H31.54L31.54,64.59z"/></g></svg>':'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" /></svg>',onClick:()=>!l&&this.handleShow()}),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 t;return null===(t=this.deleted)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return console.log("here"),null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()},helpText:'Attachment fields allow files to be uploaded during signing. Files will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must attach a file before proceeding.'})))}};r.style='verdocs-field-attachment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:24px;height:24px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-attachment.disabled{opacity:0.5}verdocs-field-attachment.disabled span{cursor:inherit}verdocs-field-attachment span{cursor:inherit;width:20px}verdocs-field-attachment.required span{border:1px solid #cc0000}verdocs-field-attachment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-attachment verdocs-button-panel{top:1px;left:-19px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-attachment verdocs-button-panel[data-active],verdocs-field-attachment verdocs-button-panel:hover{opacity:1}verdocs-field-attachment verdocs-button-panel .icon svg{fill:#333333}verdocs-field-attachment verdocs-button-panel .icon:hover svg{fill:#000000}';export{r as verdocs_field_attachment}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-fbb8023f.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-1753f57b.system.js","./p-3af6b910.system.js","./p-2fdb7348.system.js"],(function(t){"use strict";var e,n,r,i,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(){},function(t){i=t.V},function(t){o=t.g},function(){},function(){}],execute:function(){var s="ipc-test{max-width:800px;display:block}";var a=t("ipc_test",function(){function t(t){e(this,t);this.store=null;this.endpoint=i.getDefault();this.templateId="e997b94c-9d1b-4c85-8552-dedd24e35550"}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);this.endpoint.loadSession();t=this;return[4,o(this.endpoint,this.templateId,false)];case 1:t.store=n.sent();return[3,3];case 2:e=n.sent();console.log("[TEMPLATE VISIBILITY] Error loading template",e);return[3,3];case 3:return[2]}}))}))};t.prototype.render=function(){console.log("[IPC] Rendering");return n(r,null,n("div",null,n("pre",null,n("code",null,JSON.stringify(this.store.state,null,2)))),n("verdocs-template-roles",{templateId:this.templateId}),n("verdocs-template-fields",{templateId:this.templateId}))};return t}());a.style=s}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function s(t){try{l(r.next(t))}catch(t){o(t)}}function a(t){try{l(r["throw"](t))}catch(t){o(t)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-cd61fea7.system.js","./p-54498887.system.js","./p-24f0c391.system.js","./p-240d814a.system.js","./p-39e8600d.system.js"],(function(t){"use strict";var e,n,r,i,o;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(){},function(t){i=t.V},function(t){o=t.g},function(){}],execute:function(){var s="ipc-test{max-width:800px;display:block}";var a=t("ipc_test",function(){function t(t){e(this,t);this.store=null;this.endpoint=i.getDefault();this.templateId="e997b94c-9d1b-4c85-8552-dedd24e35550"}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);this.endpoint.loadSession();t=this;return[4,o(this.endpoint,this.templateId,false)];case 1:t.store=n.sent();return[3,3];case 2:e=n.sent();console.log("[TEMPLATE VISIBILITY] Error loading template",e);return[3,3];case 3:return[2]}}))}))};t.prototype.render=function(){console.log("[IPC] Rendering");return n(r,null,n("div",null,n("pre",null,n("code",null,JSON.stringify(this.store.state,null,2)))),n("verdocs-template-roles",{templateId:this.templateId}),n("verdocs-template-fields",{templateId:this.templateId}))};return t}());a.style=s}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-cd61fea7.system.js"],(function(e){"use strict";var t,s,n,r;return{setters:[function(e){t=e.r;s=e.c;n=e.h;r=e.H}],execute:function(){var a='verdocs-tabs{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-tabs .tab{display:-ms-flexbox;display:flex;color:#111111;cursor:pointer;font-size:14px;font-weight:400;padding:5px 10px;-ms-flex-align:center;align-items:center;text-transform:none;-ms-flex-pack:center;justify-content:center;border-bottom:4px solid transparent}verdocs-tabs .tab:focus{border:none;outline:none}verdocs-tabs .tab.active{color:#000000;font-weight:500;border-bottom:4px solid #654dcb}verdocs-tabs .tab.disabled{color:#666666;cursor:default}';var o=e("verdocs_tabs",function(){function e(e){t(this,e);this.selectTab=s(this,"selectTab",7);this.tabs=[];this.selectedTab=0}e.prototype.handleSelectTab=function(e){var t;(t=this.selectTab)===null||t===void 0?void 0:t.emit({tab:this.tabs[e],index:e})};e.prototype.render=function(){var e=this;return n(r,null,this.tabs.map((function(t,s){return n("div",{class:"tab ".concat(s===e.selectedTab?"active":""," ").concat(t.disabled?"disabled":""),onClick:t.disabled?function(){}:function(){return e.handleSelectTab(s)}},t.label)})),n("div",{class:"flex flex-1"}),n("slot",null,n("div",null)))};return e}());o.style=a}}}));
@@ -1 +1 @@
1
- import{r as t,h as o,H as s}from"./p-14b44491.js";const l=class{constructor(o){t(this,o),this.template=void 0}render(){var t,l,e,i,a;return o(s,null,o("img",{src:(null===(l=null===(t=this.template)||void 0===t?void 0:t.template_document)||void 0===l?void 0:l.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),o("span",{class:"name"},this.template.name),o("span",{class:"org-name"},(null===(e=this.template.organization)||void 0===e?void 0:e.name)||"Public"),o("hr",null),o("div",{class:"controls"},o("div",{class:"control"},o("span",{class:"icon",innerHTML:'<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>'}),o("span",{class:"value"},this.template.star_counter)),o("div",{class:"control secondary"},o("span",{class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>'}),o("span",{class:"value"},(null===(a=null===(i=this.template)||void 0===i?void 0:i.template_document)||void 0===a?void 0:a.page_numbers)||1)),o("div",{class:"control secondary"},o("span",{class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>'}),o("span",{class:"value"},this.template.counter)),o("span",{class:"additional-controls",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>'})))}};l.style='verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';export{l as verdocs_template_card}
1
+ import{r as t,h as o,H as s}from"./p-876d3ff3.js";const l=class{constructor(o){t(this,o),this.template=void 0}render(){var t,l,e,i,a;return o(s,null,o("img",{src:(null===(l=null===(t=this.template)||void 0===t?void 0:t.template_document)||void 0===l?void 0:l.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),o("span",{class:"name"},this.template.name),o("span",{class:"org-name"},(null===(e=this.template.organization)||void 0===e?void 0:e.name)||"Public"),o("hr",null),o("div",{class:"controls"},o("div",{class:"control"},o("span",{class:"icon",innerHTML:'<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>'}),o("span",{class:"value"},this.template.star_counter)),o("div",{class:"control secondary"},o("span",{class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>'}),o("span",{class:"value"},(null===(a=null===(i=this.template)||void 0===i?void 0:i.template_document)||void 0===a?void 0:a.page_numbers)||1)),o("div",{class:"control secondary"},o("span",{class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>'}),o("span",{class:"value"},this.template.counter)),o("span",{class:"additional-controls",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>'})))}};l.style='verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';export{l as verdocs_template_card}
@@ -1 +1 @@
1
- System.register(["./p-fbb8023f.system.js"],(function(e){"use strict";var o,i,t,s;return{setters:[function(e){o=e.r;i=e.c;t=e.h;s=e.H}],execute:function(){var n='verdocs-ok-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog.closed{display:none}verdocs-ok-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;padding:8px 16px;font-weight:bold;color:#ffffff;background:#46497d}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:30px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var l=e("verdocs_ok_dialog",function(){function e(e){o(this,e);this.next=i(this,"next",7);this.exit=i(this,"exit",7);this.heading="";this.message="";this.showCancel=false;this.closed=false}e.prototype.handleOk=function(){this.next.emit()};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return t(s,{class:this.closed?"closed":""},t("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},t("div",{class:"dialog"},t("div",{class:"heading"},this.heading),t("div",{class:"content"},t("div",{class:"message",innerHTML:this.message}),t("div",{class:"buttons"},this.showCancel?t("verdocs-button",{label:"CANCEL",variant:"outline",onClick:function(){return e.handleCancel()}}):t("div",{style:{display:"none"}}),t("verdocs-button",{label:"OK",onClick:function(){return e.handleOk()}}))))))};return e}());l.style=n}}}));
1
+ System.register(["./p-cd61fea7.system.js"],(function(e){"use strict";var o,i,t,s;return{setters:[function(e){o=e.r;i=e.c;t=e.h;s=e.H}],execute:function(){var n='verdocs-ok-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog.closed{display:none}verdocs-ok-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;padding:8px 16px;font-weight:bold;color:#ffffff;background:#46497d}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:30px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var l=e("verdocs_ok_dialog",function(){function e(e){o(this,e);this.next=i(this,"next",7);this.exit=i(this,"exit",7);this.heading="";this.message="";this.showCancel=false;this.closed=false}e.prototype.handleOk=function(){this.next.emit()};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return t(s,{class:this.closed?"closed":""},t("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},t("div",{class:"dialog"},t("div",{class:"heading"},this.heading),t("div",{class:"content"},t("div",{class:"message",innerHTML:this.message}),t("div",{class:"buttons"},this.showCancel?t("verdocs-button",{label:"CANCEL",variant:"outline",onClick:function(){return e.handleCancel()}}):t("div",{style:{display:"none"}}),t("verdocs-button",{label:"OK",onClick:function(){return e.handleOk()}}))))))};return e}());l.style=n}}}));
@@ -1 +1 @@
1
- import{r as e,c as t,h as i}from"./p-14b44491.js";import{d as s}from"./p-05788c2b.js";import{c as l,i as o}from"./p-983da2f6.js";import{V as a}from"./p-af048fad.js";import{V as n}from"./p-ed416acf.js";import{S as r}from"./p-7a1b2643.js";const u=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}],h=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}],d=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}],c=class{constructor(i){e(this,i),this.authenticated=t(this,"authenticated",7),this.sdkError=t(this,"sdkError",7),this.recheckTimer=null,this.resendDisabledTimer=null,this.accessTokenForVerification=null,this.endpoint=a.getDefault(),this.visible=!0,this.logo="https://app.verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.orgname="",this.orgAvailable="UNKNOWN",this.first="",this.last="",this.username="",this.phone="",this.password="",this.submitting=!1,this.activeSession=null,this.accountType="org",this.howHear="",this.industry="",this.companySize="",this.reason="",this.signupStep=1,this.resendDisabled=!1,this.checkingOrg=!1}componentWillLoad(){var e,t;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}))}disconnectedCallback(){this.cancelRecheckTimer()}cancelRecheckTimer(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}}handleSignup(){this.submitting=!0,this.accessTokenForVerification=null,l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname,industry:this.industry,size:this.companySize,reason:this.reason,hearabout:this.howHear}).then((e=>{console.log("Result",e),console.log("[AUTH] Created profile",e.profile),console.log("[AUTH] Created organization",e.organization),this.loginAndCheckVerification()})).catch((e=>{var t,i,s,l,o;console.log("[AUTH] Signup error",e.response,JSON.stringify(e)),this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Signup failed: "+(null===(o=e.response)||void 0===o?void 0:o.data),{style:"error"})}))}loginAndCheckVerification(){var e,t;this.submitting=!0,this.accessTokenForVerification=null,(e=this.endpoint,t={username:this.username,password:this.password},e.api.post("/authentication/login",t).then((function(e){return e.data}))).then((e=>{var t;this.cancelRecheckTimer(),this.submitting=!1;const i=s(e.accessToken);console.log("[AUTH] Got access token body",i),(null==i?void 0:i.email_verified)?(console.log("[AUTH] Email address is verified, completing login"),this.displayMode="login",this.accessTokenForVerification=null,this.endpoint.setToken(e.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Logged in, pending email address verification"),this.displayMode="verify",this.accessTokenForVerification=e.accessToken,this.recheckTimer=setTimeout((()=>this.loginAndCheckVerification()),5e3))})).catch((e=>{var t,i,s,l;this.cancelRecheckTimer(),console.log("[AUTH] Authentication error",e.response,JSON.stringify(e)),this.displayMode="login",this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Login failed. Please check your username and password and try again.",{style:"error"})}))}handleLogout(){var e;this.endpoint.clearSession(),this.isAuthenticated=!1,this.accessTokenForVerification=null,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!1,session:null})}handleResend(){var e,t;this.resendDisabled=!0,this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=!1,this.resendDisabledTimer=null}),3e4),(e=this.endpoint,t=this.accessTokenForVerification,e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Verification request resent",e),n("Please check your email for a message with verification instructions.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e)}))}handleReset(){var e,t;this.submitting=!0,(e=this.endpoint,t={email:this.username},e.api.post("/user/reset_password",t).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Reset sent",e),this.submitting=!1,this.displayMode="login",n("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to reset password",e),this.submitting=!1}))}async checkAvailability(e){this.checkingOrg=!0;try{this.orgname=e;const t=await o(this.endpoint,e);this.orgAvailable=t.result,console.log("response",this.orgAvailable)}catch(e){this.orgAvailable="UNKNOWN"}this.checkingOrg=!1}render(){if(!this.visible)return i("div",{style:{display:"none"}},"Authenticated");if(this.isAuthenticated)return i("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}});if("signup"===this.displayMode){const e=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname||"AVAILABLE"!==this.orgAvailable;return i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for a trial account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),1===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},i("verdocs-text-input",{label:"First Name",autocomplete:"first",required:!0,value:this.first,onInput:e=>this.first=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:!0,value:this.last,onInput:e=>this.last=e.target.value,disabled:this.submitting})),i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",required:!0,autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},i("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:!0,value:this.orgname,onInput:e=>this.checkAvailability(e.target.value),disabled:this.submitting,style:{flex:"1"},onBlur:()=>{console.log("blur")}}),!this.checkingOrg&&"AVAILABLE"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.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>',text:"Organization name is available."}),!this.checkingOrg&&"TAKEN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization already registered."}),!this.checkingOrg&&"UNKNOWN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization name must be unique."}),this.checkingOrg&&i("verdocs-spinner",{mode:"dark",size:24})),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Next",disabled:e,onClick:()=>this.signupStep=2,style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),2===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:e=>this.howHear=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Your Industry",options:u,value:this.industry,onInput:e=>this.industry=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Company Size",options:d,value:this.companySize,onInput:e=>this.companySize=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Purpose",options:h,value:this.reason,onInput:e=>this.reason=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),3===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),i("p",null,i("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",i("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),i("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},i("verdocs-button",{label:"Back",disabled:this.submitting,onClick:()=>{this.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),i("verdocs-button",{label:"Go to Dashboard",disabled:!0,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}return"forgot"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Forgot your password?"),i("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),i("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleReset()})))):"verify"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Please Verify your Email Address"),i("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("div",{class:"buttons"},i("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>{this.username="",this.password="",this.cancelRecheckTimer(),this.displayMode="login"}}),i("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:()=>this.handleResend()}))):i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>{this.displayMode="signup",this.signupStep=1},disabled:this.submitting})),i("form",{onSubmit:()=>this.loginAndCheckVerification()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};c.style='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';export{c as verdocs_auth}
1
+ import{r as e,c as t,h as i}from"./p-876d3ff3.js";import{d as s}from"./p-05788c2b.js";import{c as l,i as o}from"./p-983da2f6.js";import{V as a}from"./p-2174e539.js";import{V as n}from"./p-ed416acf.js";import{S as r}from"./p-7a1b2643.js";const u=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}],h=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}],d=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}],c=class{constructor(i){e(this,i),this.authenticated=t(this,"authenticated",7),this.sdkError=t(this,"sdkError",7),this.recheckTimer=null,this.resendDisabledTimer=null,this.accessTokenForVerification=null,this.endpoint=a.getDefault(),this.visible=!0,this.logo="https://app.verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.orgname="",this.orgAvailable="UNKNOWN",this.first="",this.last="",this.username="",this.phone="",this.password="",this.submitting=!1,this.activeSession=null,this.accountType="org",this.howHear="",this.industry="",this.companySize="",this.reason="",this.signupStep=1,this.resendDisabled=!1,this.checkingOrg=!1}componentWillLoad(){var e,t;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}))}disconnectedCallback(){this.cancelRecheckTimer()}cancelRecheckTimer(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}}handleSignup(){this.submitting=!0,this.accessTokenForVerification=null,l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname,industry:this.industry,size:this.companySize,reason:this.reason,hearabout:this.howHear}).then((e=>{console.log("Result",e),console.log("[AUTH] Created profile",e.profile),console.log("[AUTH] Created organization",e.organization),this.loginAndCheckVerification()})).catch((e=>{var t,i,s,l,o;console.log("[AUTH] Signup error",e.response,JSON.stringify(e)),this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Signup failed: "+(null===(o=e.response)||void 0===o?void 0:o.data),{style:"error"})}))}loginAndCheckVerification(){var e,t;this.submitting=!0,this.accessTokenForVerification=null,(e=this.endpoint,t={username:this.username,password:this.password},e.api.post("/authentication/login",t).then((function(e){return e.data}))).then((e=>{var t;this.cancelRecheckTimer(),this.submitting=!1;const i=s(e.accessToken);console.log("[AUTH] Got access token body",i),(null==i?void 0:i.email_verified)?(console.log("[AUTH] Email address is verified, completing login"),this.displayMode="login",this.accessTokenForVerification=null,this.endpoint.setToken(e.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Logged in, pending email address verification"),this.displayMode="verify",this.accessTokenForVerification=e.accessToken,this.recheckTimer=setTimeout((()=>this.loginAndCheckVerification()),5e3))})).catch((e=>{var t,i,s,l;this.cancelRecheckTimer(),console.log("[AUTH] Authentication error",e.response,JSON.stringify(e)),this.displayMode="login",this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Login failed. Please check your username and password and try again.",{style:"error"})}))}handleLogout(){var e;this.endpoint.clearSession(),this.isAuthenticated=!1,this.accessTokenForVerification=null,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!1,session:null})}handleResend(){var e,t;this.resendDisabled=!0,this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=!1,this.resendDisabledTimer=null}),3e4),(e=this.endpoint,t=this.accessTokenForVerification,e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Verification request resent",e),n("Please check your email for a message with verification instructions.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e)}))}handleReset(){var e,t;this.submitting=!0,(e=this.endpoint,t={email:this.username},e.api.post("/user/reset_password",t).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Reset sent",e),this.submitting=!1,this.displayMode="login",n("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to reset password",e),this.submitting=!1}))}async checkAvailability(e){this.checkingOrg=!0;try{this.orgname=e;const t=await o(this.endpoint,e);this.orgAvailable=t.result,console.log("response",this.orgAvailable)}catch(e){this.orgAvailable="UNKNOWN"}this.checkingOrg=!1}render(){if(!this.visible)return i("div",{style:{display:"none"}},"Authenticated");if(this.isAuthenticated)return i("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}});if("signup"===this.displayMode){const e=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname||"AVAILABLE"!==this.orgAvailable;return i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for a trial account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),1===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},i("verdocs-text-input",{label:"First Name",autocomplete:"first",required:!0,value:this.first,onInput:e=>this.first=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:!0,value:this.last,onInput:e=>this.last=e.target.value,disabled:this.submitting})),i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",required:!0,autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},i("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:!0,value:this.orgname,onInput:e=>this.checkAvailability(e.target.value),disabled:this.submitting,style:{flex:"1"},onBlur:()=>{console.log("blur")}}),!this.checkingOrg&&"AVAILABLE"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.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>',text:"Organization name is available."}),!this.checkingOrg&&"TAKEN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization already registered."}),!this.checkingOrg&&"UNKNOWN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization name must be unique."}),this.checkingOrg&&i("verdocs-spinner",{mode:"dark",size:24})),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Next",disabled:e,onClick:()=>this.signupStep=2,style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),2===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:e=>this.howHear=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Your Industry",options:u,value:this.industry,onInput:e=>this.industry=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Company Size",options:d,value:this.companySize,onInput:e=>this.companySize=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Purpose",options:h,value:this.reason,onInput:e=>this.reason=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),3===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),i("p",null,i("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",i("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),i("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},i("verdocs-button",{label:"Back",disabled:this.submitting,onClick:()=>{this.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),i("verdocs-button",{label:"Go to Dashboard",disabled:!0,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}return"forgot"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Forgot your password?"),i("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),i("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleReset()})))):"verify"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Please Verify your Email Address"),i("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("div",{class:"buttons"},i("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>{this.username="",this.password="",this.cancelRecheckTimer(),this.displayMode="login"}}),i("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:()=>this.handleResend()}))):i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>{this.displayMode="signup",this.signupStep=1},disabled:this.submitting})),i("form",{onSubmit:()=>this.loginAndCheckVerification()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};c.style='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';export{c as verdocs_auth}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-876d3ff3.js";import"./p-05788c2b.js";import{V as s,b as o}from"./p-2174e539.js";var r=function(e){return t=void 0,i=void 0,o=function(){return function(e,t){var i,s,o,r,n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(c){return function(a){return function(c){if(i)throw new TypeError("Generator is already executing.");for(;r&&(r=0,c[0]&&(n=0)),n;)try{if(i=1,s&&(o=2&c[0]?s.return:c[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,c[1])).done)return o;switch(s=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,s=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(!((o=(o=n.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){n=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(6===c[0]&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(e){c=[6,e],s=0}finally{i=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}(this,(function(){return[2,e.api.get("/search/history").then((function(e){return e.data}))]}))},new((s=void 0)||(s=Promise))((function(e,r){function n(e){try{a(o.next(e))}catch(e){r(e)}}function c(e){try{a(o.throw(e))}catch(e){r(e)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof s?i:new s((function(e){e(i)}))).then(n,c)}a((o=o.apply(t,i||[])).next())}));var t,i,s,o};const n=class{constructor(i){e(this,i),this.createTemplate=t(this,"createTemplate",7),this.createDocument=t(this,"createDocument",7),this.endpoint=s.getDefault()}handleCreateTemplate(){this.createTemplate.emit()}handleCreateDocument(){this.createDocument.emit()}render(){return i("div",{class:"container"},i("p",{class:"title"},"Quick Create"),i("button",{onClick:()=>this.handleCreateTemplate(),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>'},"Template"),i("button",{onClick:()=>this.handleCreateDocument(),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>'},"Document"))}};n.style='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}';const c='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>',a=class{constructor(i){e(this,i),this.entrySelected=t(this,"entrySelected",7),this.endpoint=s.getDefault(),this.type="recent",this.options=void 0,this.emptyMessage="You do not have any starred searches.",this.authFailure=!1,this.title="Recent Searches",this.recent=[],this.saved=[],this.starred=[]}componentWillLoad(){this.endpoint.loadSession();const e=e=>{var t;console.warn("[Verdocs/search-activity] Error getting search data",e),401===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&(this.authFailure=!0)};switch(this.type){case"recent":this.title="Recent Searches",this.emptyMessage="You do not have any recent searches.",r(this.endpoint).then((e=>this.recent=e.recent)).catch(e);break;case"saved":this.title="Saved Searches",this.emptyMessage="You do not have any saved searches.",r(this.endpoint).then((e=>this.saved=e.saved)).catch(e);break;case"starred":this.title="My Starred items",this.emptyMessage="You do not have any starred templates.",o(this.endpoint,{is_starred:!0}).then((e=>this.starred=e)).catch(e)}}handleSelectEntry(e){this.entrySelected.emit(e)}computePagesText(e){return e<2?`${e} Page`:`${e} Pages`}computeRecipientsText(e){return"object"==typeof e?e.join(", "):e>1?`${e} Recipients`:`${e} Recipient`}render(){const e=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return i("div",{class:"container"},i("p",{class:"title"},this.title),i("div",{class:"items"},this.recent.map((e=>i("button",{class:"item",onClick:()=>this.handleSelectEntry(e)},i("div",{class:"icon",innerHTML:c}),i("div",{class:"details"},i("div",{class:"item-title"},e.params.q),i("div",{class:"info"},"Test"))))),this.saved.map((e=>i("button",{class:"item",onClick:()=>this.handleSelectEntry(e)},i("div",{class:"icon",innerHTML:c}),i("div",{class:"details"},i("div",{class:"item-title"},e.params.q),i("div",{class:"info"}))))),e&&i("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))}};a.style='verdocs-search-activity{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:#1e2031}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#cccccc}';const l=class{constructor(i){e(this,i),this.searchClicked=t(this,"searchClicked",7),this.typeChanged=t(this,"typeChanged",7),this.queryChanged=t(this,"queryChanged",7),this.endpoint=s.getDefault(),this.placeholder="Search envelopes, templates, organizations...",this.type="all",this.query="",this.grabsFocus=!1}async focusField(){this.inputEl.focus()}componentDidRender(){this.grabsFocus&&this.inputEl.focus()}handleSearch(e){return this.searchClicked.emit({type:this.type,query:this.query}),e.preventDefault(),!1}handleChange(e){this.queryChanged.emit(e.target.value)}handleClearFilter(){this.typeChanged.emit("all")}handleKeyUp(e){"Enter"===e.key&&this.searchClicked.emit({type:this.type,query:this.query})}render(){return i("form",{onSubmit:e=>this.handleSearch(e)},void 0!==this.type&&"all"!==this.type&&i("span",{class:"type"},this.type,"s ",i("button",{class:"remove",innerHTML:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>',onClick:()=>this.handleClearFilter()})),i("input",{type:"text",value:this.query,placeholder:this.placeholder,onInput:e=>this.handleChange(e),onKeyUp:e=>this.handleKeyUp(e),ref:e=>this.inputEl=e}),i("button",{onClick:e=>this.handleSearch(e),class:"search"},i("span",{innerHTML:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>'}),"Search"))}};l.style='verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';export{n as verdocs_quick_functions,a as verdocs_search_activity,l as verdocs_search_box}
@@ -1 +1 @@
1
- import{r as i,c as e,h as t,H as s}from"./p-14b44491.js";const o=class{constructor(t){i(this,t),this.next=e(this,"next",7),this.exit=e(this,"exit",7),this.name="",this.fontLoaded=!1,this.enteredName="",this.mode="type"}componentWillLoad(){this.enteredName=this.name,new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)").load().then((i=>{document.fonts.add(i),this.fontLoaded=!0}))}componentDidLoad(){this.redrawSignature()}componentDidUpdate(){this.redrawSignature()}redrawSignature(){if(!this.canvasElement)return;const i=this.canvasElement.width,e=this.canvasElement.getContext("2d");e.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);let t=100;do{t-=2,e.font=`${t}px Dancing Script`}while(e.measureText(this.enteredName).width>i-32);e.textAlign="center",e.textBaseline="middle",e.font=`${t}px Dancing Script`,e.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)}handleNameChange(i){this.enteredName=i.target.value}handleCancel(i){i.stopPropagation(),i.preventDefault(),this.exit.emit()}handleAdopt(i){i.stopPropagation(),i.preventDefault();const e=this.canvasElement.toDataURL("image/png");this.next.emit(e)}render(){return t(s,{onClick:i=>this.handleCancel(i)},t("div",{class:"dialog"},t("div",{class:"heading"},"Create Your Signature"),t("div",{class:"content"},t("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onInput:i=>this.handleNameChange(i),onClick:i=>i.stopPropagation()}),t("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),this.fontLoaded?t("canvas",{ref:i=>this.canvasElement=i}):t("div",{style:{display:"none"}}),t("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),t("div",{class:"buttons"},t("verdocs-button",{label:"CANCEL",size:"normal",variant:"outline",onClick:i=>this.handleCancel(i)}),t("verdocs-button",{label:"Adopt & Sign",size:"normal",onClick:i=>this.handleAdopt(i)})))))}};o.style='verdocs-signature-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#ffffff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-signature-dialog .tabs .tab:hover{color:#55bc81}';export{o as verdocs_signature_dialog}
1
+ import{r as i,c as e,h as t,H as s}from"./p-876d3ff3.js";const o=class{constructor(t){i(this,t),this.next=e(this,"next",7),this.exit=e(this,"exit",7),this.name="",this.fontLoaded=!1,this.enteredName="",this.mode="type"}componentWillLoad(){this.enteredName=this.name,new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)").load().then((i=>{document.fonts.add(i),this.fontLoaded=!0}))}componentDidLoad(){this.redrawSignature()}componentDidUpdate(){this.redrawSignature()}redrawSignature(){if(!this.canvasElement)return;const i=this.canvasElement.width,e=this.canvasElement.getContext("2d");e.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);let t=100;do{t-=2,e.font=`${t}px Dancing Script`}while(e.measureText(this.enteredName).width>i-32);e.textAlign="center",e.textBaseline="middle",e.font=`${t}px Dancing Script`,e.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)}handleNameChange(i){this.enteredName=i.target.value}handleCancel(i){i.stopPropagation(),i.preventDefault(),this.exit.emit()}handleAdopt(i){i.stopPropagation(),i.preventDefault();const e=this.canvasElement.toDataURL("image/png");this.next.emit(e)}render(){return t(s,{onClick:i=>this.handleCancel(i)},t("div",{class:"dialog"},t("div",{class:"heading"},"Create Your Signature"),t("div",{class:"content"},t("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onInput:i=>this.handleNameChange(i),onClick:i=>i.stopPropagation()}),t("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),this.fontLoaded?t("canvas",{ref:i=>this.canvasElement=i}):t("div",{style:{display:"none"}}),t("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),t("div",{class:"buttons"},t("verdocs-button",{label:"CANCEL",size:"normal",variant:"outline",onClick:i=>this.handleCancel(i)}),t("verdocs-button",{label:"Adopt & Sign",size:"normal",onClick:i=>this.handleAdopt(i)})))))}};o.style='verdocs-signature-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#ffffff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-signature-dialog .tabs .tab:hover{color:#55bc81}';export{o as verdocs_signature_dialog}