@verdocs/web-sdk 1.15.1 → 1.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/cjs/{TemplateStore-fe148e97.js → TemplateStore-a7745f0a.js} +1 -1
  2. package/dist/cjs/{Templates-1a86703d.js → Templates-6fb62dcd.js} +15 -0
  3. package/dist/cjs/{index-7c19ba1d.js → index-961181ce.js} +37 -602
  4. package/dist/cjs/index-db620f37.js +575 -0
  5. package/dist/cjs/ipc-test.cjs.entry.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{utils-2c6835c6.js → utils-67dac0c3.js} +1 -1
  8. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  9. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -2
  11. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -1
  12. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -6
  13. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +3 -2
  14. package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -2
  15. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +3 -2
  16. package/dist/cjs/verdocs-field-initial.cjs.entry.js +3 -2
  17. package/dist/cjs/verdocs-field-payment.cjs.entry.js +3 -2
  18. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +3 -2
  19. package/dist/cjs/verdocs-field-signature.cjs.entry.js +3 -2
  20. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -2
  21. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -2
  22. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +3 -2
  23. package/dist/cjs/verdocs-organization-card.cjs.entry.js +2 -1
  24. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +169 -0
  25. package/dist/cjs/verdocs-preview.cjs.entry.js +5 -4
  26. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-send.cjs.entry.js +5 -4
  28. package/dist/cjs/verdocs-sign.cjs.entry.js +3 -2
  29. package/dist/cjs/{verdocs-pagination_4.cjs.entry.js → verdocs-status-indicator.cjs.entry.js} +0 -161
  30. package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +2 -2
  31. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -2
  32. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +5 -4
  33. package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
  34. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-template-star.cjs.entry.js +67 -0
  36. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
  37. package/dist/cjs/verdocs-templates-list.cjs.entry.js +595 -111
  38. package/dist/cjs/verdocs-view.cjs.entry.js +3 -2
  39. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  40. package/dist/collection/collection-manifest.json +1 -0
  41. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +38 -43
  42. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.css +31 -0
  43. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +144 -0
  44. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.stories.js +27 -0
  45. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +98 -17
  46. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +175 -221
  47. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.stories.js +8 -6
  48. package/dist/components/Templates.js +15 -1
  49. package/dist/components/index.d.ts +1 -0
  50. package/dist/components/index.js +1 -0
  51. package/dist/components/index2.js +1 -1
  52. package/dist/components/verdocs-envelopes-list.js +4 -7
  53. package/dist/components/verdocs-template-star.d.ts +11 -0
  54. package/dist/components/verdocs-template-star.js +6 -0
  55. package/dist/components/verdocs-template-star2.js +82 -0
  56. package/dist/components/verdocs-templates-list.js +634 -123
  57. package/dist/docs.json +223 -61
  58. package/dist/esm/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
  59. package/dist/esm/{Templates-3760f311.js → Templates-1893bda7.js} +15 -1
  60. package/dist/esm/{index-914ed6f7.js → index-2685d184.js} +1 -566
  61. package/dist/esm/index-8dc8fdc4.js +568 -0
  62. package/dist/esm/ipc-test.entry.js +2 -2
  63. package/dist/esm/loader.js +1 -1
  64. package/dist/esm/{utils-a8284581.js → utils-ef800713.js} +2 -2
  65. package/dist/esm/verdocs-build.entry.js +2 -2
  66. package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
  67. package/dist/esm/verdocs-envelope-document-page.entry.js +3 -2
  68. package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -1
  69. package/dist/esm/verdocs-envelopes-list.entry.js +5 -6
  70. package/dist/esm/verdocs-field-checkbox.entry.js +3 -2
  71. package/dist/esm/verdocs-field-date.entry.js +3 -2
  72. package/dist/esm/verdocs-field-dropdown.entry.js +3 -2
  73. package/dist/esm/verdocs-field-initial.entry.js +3 -2
  74. package/dist/esm/verdocs-field-payment.entry.js +3 -2
  75. package/dist/esm/verdocs-field-radio-button.entry.js +3 -2
  76. package/dist/esm/verdocs-field-signature.entry.js +3 -2
  77. package/dist/esm/verdocs-field-textarea.entry.js +3 -2
  78. package/dist/esm/verdocs-field-textbox.entry.js +3 -2
  79. package/dist/esm/verdocs-field-timestamp.entry.js +3 -2
  80. package/dist/esm/verdocs-organization-card.entry.js +2 -1
  81. package/dist/esm/verdocs-pagination_3.entry.js +163 -0
  82. package/dist/esm/verdocs-preview.entry.js +5 -4
  83. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  84. package/dist/esm/verdocs-send.entry.js +5 -4
  85. package/dist/esm/verdocs-sign.entry.js +3 -2
  86. package/dist/esm/{verdocs-pagination_4.entry.js → verdocs-status-indicator.entry.js} +2 -160
  87. package/dist/esm/verdocs-template-attachments_2.entry.js +2 -2
  88. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -2
  89. package/dist/esm/verdocs-template-fields_4.entry.js +5 -4
  90. package/dist/esm/verdocs-template-name.entry.js +2 -2
  91. package/dist/esm/verdocs-template-reminders.entry.js +2 -2
  92. package/dist/esm/verdocs-template-star.entry.js +63 -0
  93. package/dist/esm/verdocs-template-visibility.entry.js +2 -2
  94. package/dist/esm/verdocs-templates-list.entry.js +592 -108
  95. package/dist/esm/verdocs-view.entry.js +3 -2
  96. package/dist/esm/verdocs-web-sdk.js +1 -1
  97. package/dist/esm-es5/{TemplateStore-c15956ae.js → TemplateStore-ad36abff.js} +1 -1
  98. package/dist/esm-es5/{Templates-3760f311.js → Templates-1893bda7.js} +1 -1
  99. package/dist/esm-es5/index-2685d184.js +1 -0
  100. package/dist/esm-es5/index-8dc8fdc4.js +1 -0
  101. package/dist/esm-es5/ipc-test.entry.js +1 -1
  102. package/dist/esm-es5/loader.js +1 -1
  103. package/dist/esm-es5/{utils-a8284581.js → utils-ef800713.js} +2 -2
  104. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  106. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  107. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -0
  121. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  125. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -0
  126. package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-template-star.entry.js +1 -0
  132. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  133. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  136. package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +8 -16
  137. package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.d.ts +35 -0
  138. package/dist/types/components/templates/verdocs-template-star/verdocs-template-star.stories.d.ts +6 -0
  139. package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +24 -29
  140. package/dist/types/components.d.ts +89 -27
  141. package/dist/verdocs-web-sdk/p-067b43ba.system.entry.js +1 -0
  142. package/dist/verdocs-web-sdk/p-09ee5e46.entry.js +1 -0
  143. package/dist/verdocs-web-sdk/p-0ae14e45.system.entry.js +1 -0
  144. package/dist/verdocs-web-sdk/{p-831e2651.system.entry.js → p-0b369a3e.system.entry.js} +1 -1
  145. package/dist/verdocs-web-sdk/{p-b2a0cef4.entry.js → p-0e1c0da5.entry.js} +1 -1
  146. package/dist/verdocs-web-sdk/p-11942b39.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/p-11de0d75.system.js +1 -0
  148. package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
  149. package/dist/verdocs-web-sdk/p-1d010a79.system.js +1 -0
  150. package/dist/verdocs-web-sdk/{p-46013b8a.entry.js → p-20fcfef9.entry.js} +1 -1
  151. package/dist/verdocs-web-sdk/p-2118b452.system.entry.js +1 -0
  152. package/dist/verdocs-web-sdk/p-21629ed8.entry.js +1 -0
  153. package/dist/verdocs-web-sdk/p-253b6f06.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/p-2961d1a8.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/p-2a4566ab.system.entry.js +1 -0
  156. package/dist/verdocs-web-sdk/p-35841b7c.js +1 -0
  157. package/dist/verdocs-web-sdk/p-38d7c3f2.system.entry.js +1 -0
  158. package/dist/verdocs-web-sdk/p-3ed5dc5c.entry.js +1 -0
  159. package/dist/verdocs-web-sdk/p-3fe6dc00.system.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/p-42f1012f.system.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/p-45b1c6cd.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/{p-e34783b1.entry.js → p-4615a245.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/p-4a7dcb1b.system.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/{p-3399a2a2.system.entry.js → p-4eb69794.system.entry.js} +1 -1
  165. package/dist/verdocs-web-sdk/p-4fe4e161.js +1 -0
  166. package/dist/verdocs-web-sdk/{p-dee333ac.system.entry.js → p-52f9cfba.system.entry.js} +1 -1
  167. package/dist/verdocs-web-sdk/p-5612d642.entry.js +1 -0
  168. package/dist/verdocs-web-sdk/p-56943696.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/p-5abf9fab.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-5c5a5baf.system.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/{p-3cac4136.system.js → p-5ef54155.system.js} +2 -2
  172. package/dist/verdocs-web-sdk/p-62f70c53.system.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-63f9586c.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/p-6570268f.js +1 -0
  175. package/dist/verdocs-web-sdk/p-67df4e57.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-68dc38f8.entry.js +1 -0
  177. package/dist/verdocs-web-sdk/p-6cc3de8d.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/{p-c02c16e1.js → p-6f4149c4.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-90f5c0fa.system.entry.js → p-7028e5fd.system.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-eac4674e.system.entry.js → p-715c5b9d.system.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/p-73371d7a.system.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/{p-fb3d4091.system.js → p-75455b2d.system.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-4cdc37f8.entry.js → p-78c38cec.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-63abfff5.system.entry.js → p-79cf7768.system.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/p-7bc3f0ae.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-7d992b01.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/p-823225c2.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-82f6faac.system.entry.js +1 -0
  189. package/dist/verdocs-web-sdk/p-8603a0d0.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-8c4abfcc.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-90371251.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-951d9c70.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-9dde58a8.system.js +1 -0
  194. package/dist/verdocs-web-sdk/p-a3ac0082.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/{p-cb17023f.entry.js → p-a3b3cdf5.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-3a10e87d.entry.js → p-a6a8d20f.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/p-ac18bc08.system.entry.js +1 -0
  198. package/dist/verdocs-web-sdk/p-b2c5baae.system.entry.js +1 -0
  199. package/dist/verdocs-web-sdk/p-b3401d8e.entry.js +1 -0
  200. package/dist/verdocs-web-sdk/p-b6dba09e.system.entry.js +1 -0
  201. package/dist/verdocs-web-sdk/p-b995ebab.entry.js +1 -0
  202. package/dist/verdocs-web-sdk/p-bd077b3e.system.entry.js +1 -0
  203. package/dist/verdocs-web-sdk/{p-aefbafc3.system.entry.js → p-bf8cf9ff.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/p-c6c2b890.entry.js +1 -0
  205. package/dist/verdocs-web-sdk/{p-a6ecbbd5.js → p-c8b879d1.js} +2 -2
  206. package/dist/verdocs-web-sdk/p-cb283760.system.entry.js +1 -0
  207. package/dist/verdocs-web-sdk/p-ce097fdf.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/{p-783d4ad4.system.entry.js → p-ce626e5b.system.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/p-d2d18696.system.entry.js +1 -0
  210. package/dist/verdocs-web-sdk/p-d4765b46.system.entry.js +1 -0
  211. package/dist/verdocs-web-sdk/p-db67fbd1.entry.js +1 -0
  212. package/dist/verdocs-web-sdk/{p-efcde7ca.entry.js → p-dda7674c.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/p-e32ec792.entry.js +1 -0
  214. package/dist/verdocs-web-sdk/{p-4e02f533.entry.js → p-f88d1bb0.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/p-fc8bba36.system.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  217. package/package.json +2 -2
  218. package/dist/esm-es5/index-914ed6f7.js +0 -1
  219. package/dist/esm-es5/verdocs-pagination_4.entry.js +0 -1
  220. package/dist/verdocs-web-sdk/p-01de4163.system.entry.js +0 -1
  221. package/dist/verdocs-web-sdk/p-134aad4b.system.entry.js +0 -1
  222. package/dist/verdocs-web-sdk/p-14638f0c.system.entry.js +0 -1
  223. package/dist/verdocs-web-sdk/p-1a0cccea.system.entry.js +0 -1
  224. package/dist/verdocs-web-sdk/p-23686c43.entry.js +0 -1
  225. package/dist/verdocs-web-sdk/p-2730089c.system.entry.js +0 -1
  226. package/dist/verdocs-web-sdk/p-2dbe3de7.system.entry.js +0 -1
  227. package/dist/verdocs-web-sdk/p-2e164979.system.entry.js +0 -1
  228. package/dist/verdocs-web-sdk/p-2ff7c8c3.entry.js +0 -1
  229. package/dist/verdocs-web-sdk/p-38434761.system.entry.js +0 -1
  230. package/dist/verdocs-web-sdk/p-3eccbc81.system.entry.js +0 -1
  231. package/dist/verdocs-web-sdk/p-3fadef3d.entry.js +0 -1
  232. package/dist/verdocs-web-sdk/p-40f3a175.js +0 -1
  233. package/dist/verdocs-web-sdk/p-42acf76c.entry.js +0 -1
  234. package/dist/verdocs-web-sdk/p-4bbc74d9.entry.js +0 -1
  235. package/dist/verdocs-web-sdk/p-5ba13ab8.system.entry.js +0 -1
  236. package/dist/verdocs-web-sdk/p-5c2d7886.entry.js +0 -1
  237. package/dist/verdocs-web-sdk/p-634a5760.system.entry.js +0 -1
  238. package/dist/verdocs-web-sdk/p-6c267fdd.entry.js +0 -1
  239. package/dist/verdocs-web-sdk/p-871f33f9.system.entry.js +0 -1
  240. package/dist/verdocs-web-sdk/p-8d32aca4.system.entry.js +0 -1
  241. package/dist/verdocs-web-sdk/p-90f5a645.entry.js +0 -1
  242. package/dist/verdocs-web-sdk/p-92917e74.system.entry.js +0 -1
  243. package/dist/verdocs-web-sdk/p-92b2d9e4.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-92ca2aef.system.js +0 -1
  245. package/dist/verdocs-web-sdk/p-9416d327.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-95332ec8.system.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-9f76bbe1.system.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-a4391c14.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-a7eef6e9.entry.js +0 -1
  250. package/dist/verdocs-web-sdk/p-a824c9a6.system.entry.js +0 -1
  251. package/dist/verdocs-web-sdk/p-c0d8f0db.entry.js +0 -1
  252. package/dist/verdocs-web-sdk/p-c220af42.js +0 -1
  253. package/dist/verdocs-web-sdk/p-c53aefe5.entry.js +0 -1
  254. package/dist/verdocs-web-sdk/p-cd0eb575.entry.js +0 -1
  255. package/dist/verdocs-web-sdk/p-d497b3c1.system.entry.js +0 -1
  256. package/dist/verdocs-web-sdk/p-dc9c4361.system.js +0 -1
  257. package/dist/verdocs-web-sdk/p-e2e972fc.system.entry.js +0 -1
  258. package/dist/verdocs-web-sdk/p-e646e8ef.system.entry.js +0 -1
  259. package/dist/verdocs-web-sdk/p-e6512cc3.entry.js +0 -1
  260. package/dist/verdocs-web-sdk/p-e72c075e.entry.js +0 -1
  261. package/dist/verdocs-web-sdk/p-e971511e.entry.js +0 -1
  262. package/dist/verdocs-web-sdk/p-e989b3ce.entry.js +0 -1
  263. package/dist/verdocs-web-sdk/p-f623b887.entry.js +0 -1
  264. package/dist/verdocs-web-sdk/p-f6594380.system.entry.js +0 -1
  265. package/dist/verdocs-web-sdk/p-f7ea7b36.entry.js +0 -1
  266. package/dist/verdocs-web-sdk/p-fbd3e8df.system.entry.js +0 -1
  267. package/dist/verdocs-web-sdk/p-ff3e5717.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as n,a as e}from"./p-9cf1a627.js";import{i as r}from"./p-7291906c.js";import{d as h}from"./p-a6ecbbd5.js";import{c as o}from"./p-9d707f6e.js";import"./p-eab67c09.js";import"./p-c16d1ce1.js";import"./p-05788c2b.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const u=({page:t,selected:i,onClick:n})=>{let e;return e="first"===t?'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5" /></svg>':"last"===t?'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 4.5l7.5 7.5-7.5 7.5m-6-15l7.5 7.5-7.5 7.5" /></svg>':String(t+1),s("div",{class:"page-button "+(t===i?"selected":""),onClick:()=>n(t),innerHTML:e})},l=class{constructor(s){t(this,s),this.selectPage=i(this,"selectPage",7),this.selectedPage=0,this.itemCount=1,this.perPage=10}handleSelectPage(t){var i;this.selectedPage=t,null===(i=this.selectPage)||void 0===i||i.emit({selectedPage:t})}render(){const t=this.itemCount>0?Math.ceil(this.itemCount/this.perPage):0,i=Math.max(0,this.selectedPage-2),e=Math.min(t,5);return s(n,null,this.selectedPage>0&&s(u,{page:"first",selected:this.selectedPage,onClick:()=>this.handleSelectPage(0)}),i>0&&s("div",{class:"ellipsis"},"..."),r(i,e-i).map((t=>s(u,{page:t,selected:this.selectedPage,onClick:t=>this.handleSelectPage(+t)}))),e<t&&s("div",{class:"ellipsis"},"..."),this.selectedPage<t-1&&s(u,{page:"last",selected:this.selectedPage,onClick:()=>this.handleSelectPage(t-1)}))}get el(){return e(this)}};l.style='verdocs-pagination{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-pagination .page-button{height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;cursor:pointer;font-weight:600;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#33364b;border:1px solid #654dcb}verdocs-pagination .page-button svg{width:18px;height:18px}verdocs-pagination .page-button.selected{cursor:default;color:#ffffff;background:#654dcb}verdocs-pagination .ellipsis{width:38px;height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;line-height:32px;-ms-flex-pack:center;justify-content:center;color:#33364b}';const c=class{constructor(s){t(this,s),this.optionSelected=i(this,"optionSelected",7),this.clickListenerSymbol=new AbortController,this.options=[],this.label="Filter",this.value="",this.placeholder="Select...",this.open=void 0}componentDidLoad(){this.popper=o(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-1,14]}}]}),window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})}disconnectedCallback(){this.clickListenerSymbol.abort()}clickListener(t){t.target!=this.el&&!this.el.contains(t.target)&&this.hide()}handleSelectOption(t,i){t.stopPropagation(),this.optionSelected.emit(i),this.value=i.value,this.hide()}showDropdown(){var t,i;this.open=!0,this.dropdownMenu.setAttribute("data-show",""),this.dropdownMenu.removeAttribute("aria-hidden"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))).catch((()=>{})),null===(i=this.popper)||void 0===i||i.update().catch((()=>{}))}handleHideDropdown(t){var i,s;"button"===(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.className)||this.hide()}toggleDropdown(t){t.stopPropagation(),this.open?this.hide():this.showDropdown()}hide(){var t;this.open=!1,this.dropdownMenu.removeAttribute("data-show"),this.dropdownMenu.setAttribute("aria-hidden","true"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))).catch((()=>{}))}render(){var t,i,e;const r=null===(t=this.options)||void 0===t?void 0:t.find((t=>t.value===this.value)),o=null===(i=this.options)||void 0===i?void 0:i.reduce(((t,i)=>t.label.length>i.label.length?t:i)),u=`${h((null==o?void 0:o.label)||"FILLER","14px Inter, Barlow, sans-serif")+h(this.label,"14px Inter, Barlow, sans-serif")+40}px`;return s(n,{class:{open:!!this.open},style:{minWidth:u,display:"inline-block"}},s("div",{class:"control",onClick:t=>this.toggleDropdown(t),onBlur:t=>this.handleHideDropdown(t)},s("div",{class:"title",ref:t=>this.dropdownButton=t},s("span",{class:"prefix"},this.label,":"),r?r.label:this.placeholder),s("div",{style:{flex:"1"}}),s("div",{class:"separator"}),s("div",{class:"arrow",innerHTML:'<svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" class="css-8mmkcg"><path d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>',"aria-label":"Open Menu"})),s("div",{class:"items","aria-hidden":!this.open,ref:t=>this.dropdownMenu=t,style:{minWidth:u}},null===(e=this.options)||void 0===e?void 0:e.map((t=>t.label?s("button",{onClick:i=>this.handleSelectOption(i,t),class:"option "+(t.value===this.value?"selected":""),disabled:t.disabled},t.label):s("div",{class:"separator"})))))}get el(){return e(this)}};c.style='verdocs-quick-filter{position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-quick-filter .control{outline:0;height:34px;display:-ms-flexbox;display:flex;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;-webkit-transition:all 100ms ease 0s;transition:all 100ms ease 0s;border:1px solid #cccccc}verdocs-quick-filter .title{padding:0 8px;font-size:14px;max-width:100%;overflow:hidden;color:#33364b;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis}verdocs-quick-filter .title .prefix{display:inline;font-weight:700;margin:0 7px 0 0;color:#4c56cb}verdocs-quick-filter .arrow{width:32px;height:32px;border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#ffffff;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s}verdocs-quick-filter .arrow svg{-webkit-transition:0.3s;transition:0.3s;fill:#cccccc}verdocs-quick-filter .separator{width:1px;display:block;margin-top:8px;margin-bottom:8px;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#cccccc}verdocs-quick-filter .items{display:none;z-index:10000;position:absolute;border-radius:4px;background:#ffffff;-webkit-box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px;box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px}verdocs-quick-filter .items[data-show]{display:block}verdocs-quick-filter .option{width:100%;border:none;display:block;font-size:14px;text-align:left;background:none;padding:10px 20px;color:#1e2031}verdocs-quick-filter .option:hover{cursor:pointer;background:#4c56cb3f}verdocs-quick-filter .option[disabled]{color:#aaaaaa}verdocs-quick-filter .option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}verdocs-quick-filter.open .items{display:block}verdocs-quick-filter.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1)}';const a={border:"3px solid rgba(255, 255, 255, 0.3)",borderTopColor:"#fff"},f={border:"3px solid rgba(0, 0, 0, 0.3)",borderTopColor:"#333"},d=class{constructor(i){t(this,i),this.size=32,this.mode="light"}render(){return s(n,{style:{width:`${this.size}px`,height:`${this.size}px`,flex:`0 0 ${this.size}px`,..."light"===this.mode?a:f}})}};d.style="verdocs-spinner{display:inline-block;border-radius:50%;-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";const p={},w=[];function C(t,i){if(Array.isArray(t))for(const s of t)C(s,i);else if("object"!=typeof t)m(Object.getOwnPropertyNames(i)),p[t]=Object.assign(p[t]||{},i);else for(const i in t)C(i,t[i])}function g(t){return p[t]||{}}function m(t){w.push(...t)}function x(t,i){let s;const n=t.length,e=[];for(s=0;s<n;s++)e.push(i(t[s]));return e}function y(t,i){let s;const n=t.length,e=[];for(s=0;s<n;s++)i(t[s])&&e.push(t[s]);return e}function v(t){return t%360*Math.PI/180}function b(t){return t.toLowerCase().replace(/-(.)/g,(function(t,i){return i.toUpperCase()}))}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}function M(t,i,s,n){return null!=i&&null!=s||(n=n||t.bbox(),null==i?i=n.width/n.height*s:null==s&&(s=n.height/n.width*i)),{width:i,height:s}}function _(t,i){const s=t.origin;let n=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",e=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=s&&([n,e]=Array.isArray(s)?s:"object"==typeof s?[s.x,s.y]:[s,s]);const r="string"==typeof n,h="string"==typeof e;if(r||h){const{height:t,width:s,x:o,y:u}=i.bbox();r&&(n=n.includes("left")?o:n.includes("right")?o+s:o+s/2),h&&(e=e.includes("top")?u:e.includes("bottom")?u+t:u+t/2)}return[n,e]}const j="http://www.w3.org/2000/svg",L="http://www.w3.org/2000/xmlns/",A="http://www.w3.org/1999/xlink",O={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class B{}const E={},z="___SYMBOL___ROOT___";function S(t,i=j){return O.document.createElementNS(i,t)}function T(t,i=!1){if(t instanceof B)return t;if("object"==typeof t)return D(t);if(null==t)return new E[z];if("string"==typeof t&&"<"!==t.charAt(0))return D(O.document.querySelector(t));const s=i?O.document.createElement("div"):S("svg");return s.innerHTML=t,t=D(s.firstChild),s.removeChild(s.firstChild),t}function H(t,i){return i&&i.ownerDocument&&i instanceof i.ownerDocument.defaultView.Node?i:S(t)}function V(t){if(!t)return null;if(t.instance instanceof B)return t.instance;if("#document-fragment"===t.nodeName)return new E.Fragment(t);let i=k(t.nodeName||"Dom");return"LinearGradient"===i||"RadialGradient"===i?i="Gradient":E[i]||(i="Dom"),new E[i](t)}let D=V;function F(t,i=t.name,s=!1){return E[i]=t,s&&(E[z]=t),m(Object.getOwnPropertyNames(t.prototype)),t}let Z=1e3;function $(t){return"Svgjs"+k(t)+Z++}function N(t){for(let i=t.children.length-1;i>=0;i--)N(t.children[i]);return t.id?(t.id=$(t.nodeName),t):t}function P(t,i){let s,n;for(n=(t=Array.isArray(t)?t:[t]).length-1;n>=0;n--)for(s in i)t[n].prototype[s]=i[s]}function I(t){return function(...i){const s=i[i.length-1];return!s||s.constructor!==Object||s instanceof Array?t.apply(this,i):t.apply(this,i.slice(0,-1)).attr(s)}}C("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=T(t)).remove();const i=this.position();return this.parent().add(t,i),this},after:function(t){(t=T(t)).remove();const i=this.position();return this.parent().add(t,i+1),this},insertBefore:function(t){return(t=T(t)).before(this),this},insertAfter:function(t){return(t=T(t)).after(this),this}});const q=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,R=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Y=/rgb\((\d+),(\d+),(\d+)\)/,G=/(#[a-z_][a-z0-9\-_]*)/i,X=/\)\s*,?\s*/,Q=/\s/g,U=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,W=/^rgb\(/,J=/^(\s+)?$/,K=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,tt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,it=/[\s,]+/,st=/[MLHVCSQTAZ]/i;function nt(t){const i=Math.round(t),s=Math.max(0,Math.min(255,i)).toString(16);return 1===s.length?"0"+s:s}function et(t,i){for(let s=i.length;s--;)if(null==t[i[s]])return!1;return!0}function rt(t,i,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(i-t)*s:s<.5?i:s<2/3?t+(i-t)*(2/3-s)*6:t}C("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(it)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const i=this.classes();i.push(t),this.attr("class",i.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(i){return i!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),C("Dom",{css:function(t,i){const s={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const i=t.split(/\s*:\s*/);s[i[0]]=i[1]})),s;if(arguments.length<2){if(Array.isArray(t)){for(const i of t){const t=b(i);s[i]=this.node.style[t]}return s}if("string"==typeof t)return this.node.style[b(t)];if("object"==typeof t)for(const i in t)this.node.style[b(i)]=null==t[i]||J.test(t[i])?"":t[i]}return 2===arguments.length&&(this.node.style[b(t)]=null==i||J.test(i)?"":i),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),C("Dom",{data:function(t,i,s){if(null==t)return this.data(x(y(this.node.attributes,(t=>0===t.nodeName.indexOf("data-"))),(t=>t.nodeName.slice(5))));if(t instanceof Array){const i={};for(const s of t)i[s]=this.data(s);return i}if("object"==typeof t)for(i in t)this.data(i,t[i]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(i){return this.attr("data-"+t)}else this.attr("data-"+t,null===i?null:!0===s||"string"==typeof i||"number"==typeof i?i:JSON.stringify(i));return this}}),C("Dom",{remember:function(t,i){if("object"==typeof arguments[0])for(const i in t)this.remember(i,t[i]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=i}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ht{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ht||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",i,s){const{random:n,round:e,sin:r,PI:h}=Math;if("vibrant"===t){const t=24*n()+57,i=38*n()+45,s=360*n();return new ht(t,i,s,"lch")}if("sine"===t){const t=e(80*r(2*h*(i=null==i?n():i)/.5+.01)+150),s=e(50*r(2*h*i/.5+4.6)+200),o=e(100*r(2*h*i/.5+2.3)+150);return new ht(t,s,o)}if("pastel"===t){const t=8*n()+86,i=17*n()+9,s=360*n();return new ht(t,i,s,"lch")}if("dark"===t){const t=10+10*n(),i=50*n()+86,s=360*n();return new ht(t,i,s,"lch")}if("rgb"===t){const t=255*n(),i=255*n(),s=255*n();return new ht(t,i,s)}if("lab"===t){const t=100*n(),i=256*n()-128,s=256*n()-128;return new ht(t,i,s,"lab")}if("grey"===t){const t=255*n();return new ht(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(U.test(t)||W.test(t))}cmyk(){const{_a:t,_b:i,_c:s}=this.rgb(),[n,e,r]=[t,i,s].map((t=>t/255)),h=Math.min(1-n,1-e,1-r);return 1===h?new ht(0,0,0,1,"cmyk"):new ht((1-n-h)/(1-h),(1-e-h)/(1-h),(1-r-h)/(1-h),h,"cmyk")}hsl(){const{_a:t,_b:i,_c:s}=this.rgb(),[n,e,r]=[t,i,s].map((t=>t/255)),h=Math.max(n,e,r),o=Math.min(n,e,r),u=(h+o)/2,l=h===o,c=h-o;return new ht(360*(l?0:h===n?((e-r)/c+(e<r?6:0))/6:h===e?((r-n)/c+2)/6:h===r?((n-e)/c+4)/6:0),100*(l?0:u>.5?c/(2-h-o):c/(h+o)),100*u,"hsl")}init(t=0,i=0,s=0,n=0,e="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)e="string"==typeof n?n:e,n="string"==typeof n?0:n,Object.assign(this,{_a:t,_b:i,_c:s,_d:n,space:e});else if(t instanceof Array)this.space=i||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const s=function(t,i){const s=et(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:et(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:et(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:et(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:et(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:et(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return s.space=i||s.space,s}(t,i);Object.assign(this,s)}else if("string"==typeof t)if(W.test(t)){const i=t.replace(Q,""),[s,n,e]=Y.exec(i).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:s,_b:n,_c:e,_d:0,space:"rgb"})}else{if(!U.test(t))throw Error("Unsupported string format, can't construct Color");{const i=t=>parseInt(t,16),[,s,n,e]=R.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(i);Object.assign(this,{_a:s,_b:n,_c:e,_d:0,space:"rgb"})}}const{_a:r,_b:h,_c:o,_d:u}=this;Object.assign(this,"rgb"===this.space?{r,g:h,b:o}:"xyz"===this.space?{x:r,y:h,z:o}:"hsl"===this.space?{h:r,s:h,l:o}:"lab"===this.space?{l:r,a:h,b:o}:"lch"===this.space?{l:r,c:h,h:o}:"cmyk"===this.space?{c:r,m:h,y:o,k:u}:{})}lab(){const{x:t,y:i,z:s}=this.xyz();return new ht(116*i-16,500*(t-i),200*(i-s),"lab")}lch(){const{l:t,a:i,b:s}=this.lab(),n=Math.sqrt(i**2+s**2);let e=180*Math.atan2(s,i)/Math.PI;return e<0&&(e*=-1,e=360-e),new ht(t,n,e,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:i,z:s}=this;if("lab"===this.space||"lch"===this.space){let{l:n,a:e,b:r}=this;if("lch"===this.space){const{c:t,h:i}=this,s=Math.PI/180;e=t*Math.cos(s*i),r=t*Math.sin(s*i)}const h=(n+16)/116,o=e/500+h,u=h-r/200,l=16/116,c=.008856,a=7.787;t=.95047*(o**3>c?o**3:(o-l)/a),i=1*(h**3>c?h**3:(h-l)/a),s=1.08883*(u**3>c?u**3:(u-l)/a)}const n=3.2406*t+-1.5372*i+-.4986*s,e=-.9689*t+1.8758*i+.0415*s,r=.0557*t+-.204*i+1.057*s,h=Math.pow,o=.0031308,u=n>o?1.055*h(n,1/2.4)-.055:12.92*n,l=e>o?1.055*h(e,1/2.4)-.055:12.92*e,c=r>o?1.055*h(r,1/2.4)-.055:12.92*r;return new ht(255*u,255*l,255*c)}if("hsl"===this.space){let{h:t,s:i,l:s}=this;if(t/=360,i/=100,s/=100,0===i)return s*=255,new ht(s,s,s);const n=s<.5?s*(1+i):s+i-s*i,e=2*s-n,r=255*rt(e,n,t+1/3),h=255*rt(e,n,t),o=255*rt(e,n,t-1/3);return new ht(r,h,o)}if("cmyk"===this.space){const{c:t,m:i,y:s,k:n}=this,e=255*(1-Math.min(1,t*(1-n)+n)),r=255*(1-Math.min(1,i*(1-n)+n)),h=255*(1-Math.min(1,s*(1-n)+n));return new ht(e,r,h)}return this;var t}toArray(){const{_a:t,_b:i,_c:s,_d:n,space:e}=this;return[t,i,s,n,e]}toHex(){const[t,i,s]=this._clamped().map(nt);return`#${t}${i}${s}`}toRgb(){const[t,i,s]=this._clamped();return`rgb(${t},${i},${s})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:i,_c:s}=this.rgb(),[n,e,r]=[t,i,s].map((t=>t/255)),h=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,o=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,u=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,l=(.4124*h+.3576*o+.1805*u)/.95047,c=(.2126*h+.7152*o+.0722*u)/1,a=(.0193*h+.1192*o+.9505*u)/1.08883,f=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=c>.008856?Math.pow(c,1/3):7.787*c+16/116,p=a>.008856?Math.pow(a,1/3):7.787*a+16/116;return new ht(f,d,p,"xyz")}_clamped(){const{_a:t,_b:i,_c:s}=this.rgb(),{max:n,min:e,round:r}=Math;return[t,i,s].map((t=>n(0,e(r(t),255))))}}class ot{constructor(...t){this.init(...t)}clone(){return new ot(this)}init(t,i){const s=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:i};return this.x=null==s.x?0:s.x,this.y=null==s.y?0:s.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){lt.isMatrixLike(t)||(t=new lt(t));const{x:i,y:s}=this;return this.x=t.a*i+t.c*s+t.e,this.y=t.b*i+t.d*s+t.f,this}}function ut(t,i,s){return Math.abs(i-t)<(s||1e-6)}class lt{constructor(...t){this.init(...t)}static formatTransforms(t){const i="both"===t.flip||!0===t.flip,s=t.flip&&(i||"x"===t.flip)?-1:1,n=t.flip&&(i||"y"===t.flip)?-1:1,e=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,r=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,h=t.scale&&t.scale.length?t.scale[0]*s:isFinite(t.scale)?t.scale*s:isFinite(t.scaleX)?t.scaleX*s:s,o=t.scale&&t.scale.length?t.scale[1]*n:isFinite(t.scale)?t.scale*n:isFinite(t.scaleY)?t.scaleY*n:n,u=t.shear||0,l=t.rotate||t.theta||0,c=new ot(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),a=c.x,f=c.y,d=new ot(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,w=d.y,C=new ot(t.translate||t.tx||t.translateX,t.ty||t.translateY),g=C.x,m=C.y,x=new ot(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:h,scaleY:o,skewX:e,skewY:r,shear:u,theta:l,rx:x.x,ry:x.y,tx:g,ty:m,ox:a,oy:f,px:p,py:w}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,i,s){const n=t.b*i.a+t.d*i.b,e=t.a*i.c+t.c*i.d,r=t.b*i.c+t.d*i.d,h=t.e+t.a*i.e+t.c*i.f,o=t.f+t.b*i.e+t.d*i.f;return s.a=t.a*i.a+t.c*i.b,s.b=n,s.c=e,s.d=r,s.e=h,s.f=o,s}around(t,i,s){return this.clone().aroundO(t,i,s)}aroundO(t,i,s){const n=t||0,e=i||0;return this.translateO(-n,-e).lmultiplyO(s).translateO(n,e)}clone(){return new lt(this)}decompose(t=0,i=0){const s=this.a,n=this.b,e=this.c,r=this.d,h=this.e,o=this.f,u=s*r-n*e,l=u>0?1:-1,c=l*Math.sqrt(s*s+n*n),a=Math.atan2(l*n,l*s),f=180/Math.PI*a,d=Math.cos(a),p=Math.sin(a),w=(s*e+n*r)/u,C=e*c/(w*s-n)||r*c/(w*n+s);return{scaleX:c,scaleY:C,shear:w,rotate:f,translateX:h-t+t*d*c+i*(w*d*c-p*C),translateY:o-i+t*p*c+i*(w*p*c+d*C),originX:t,originY:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const i=new lt(t);return ut(this.a,i.a)&&ut(this.b,i.b)&&ut(this.c,i.c)&&ut(this.d,i.d)&&ut(this.e,i.e)&&ut(this.f,i.f)}flip(t,i){return this.clone().flipO(t,i)}flipO(t,i){return"x"===t?this.scaleO(-1,1,i,0):"y"===t?this.scaleO(1,-1,0,i):this.scaleO(-1,-1,t,i||t)}init(t){const i=lt.fromArray([1,0,0,1,0,0]);return t=t instanceof Bt?t.matrixify():"string"==typeof t?lt.fromArray(t.split(it).map(parseFloat)):Array.isArray(t)?lt.fromArray(t):"object"==typeof t&&lt.isMatrixLike(t)?t:"object"==typeof t?(new lt).transform(t):6===arguments.length?lt.fromArray([].slice.call(arguments)):i,this.a=null!=t.a?t.a:i.a,this.b=null!=t.b?t.b:i.b,this.c=null!=t.c?t.c:i.c,this.d=null!=t.d?t.d:i.d,this.e=null!=t.e?t.e:i.e,this.f=null!=t.f?t.f:i.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,i=this.b,s=this.c,n=this.d,e=this.e,r=this.f,h=t*n-i*s;if(!h)throw new Error("Cannot invert "+this);const o=n/h,u=-i/h,l=-s/h,c=t/h,a=-(o*e+l*r),f=-(u*e+c*r);return this.a=o,this.b=u,this.c=l,this.d=c,this.e=a,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const i=t instanceof lt?t:new lt(t);return lt.matrixMultiply(i,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const i=t instanceof lt?t:new lt(t);return lt.matrixMultiply(this,i,this)}rotate(t,i,s){return this.clone().rotateO(t,i,s)}rotateO(t,i=0,s=0){t=v(t);const n=Math.cos(t),e=Math.sin(t),{a:r,b:h,c:o,d:u,e:l,f:c}=this;return this.a=r*n-h*e,this.b=h*n+r*e,this.c=o*n-u*e,this.d=u*n+o*e,this.e=l*n-c*e+s*e-i*n+i,this.f=c*n+l*e-i*e-s*n+s,this}scale(t,i,s,n){return this.clone().scaleO(...arguments)}scaleO(t,i=t,s=0,n=0){3===arguments.length&&(n=s,s=i,i=t);const{a:e,b:r,c:h,d:o,e:u,f:l}=this;return this.a=e*t,this.b=r*i,this.c=h*t,this.d=o*i,this.e=u*t-s*t+s,this.f=l*i-n*i+n,this}shear(t,i,s){return this.clone().shearO(t,i,s)}shearO(t,i=0,s=0){const{a:n,b:e,c:r,d:h,e:o,f:u}=this;return this.a=n+e*t,this.c=r+h*t,this.e=o+u*t-s*t,this}skew(t,i,s,n){return this.clone().skewO(...arguments)}skewO(t,i=t,s=0,n=0){3===arguments.length&&(n=s,s=i,i=t),t=v(t),i=v(i);const e=Math.tan(t),r=Math.tan(i),{a:h,b:o,c:u,d:l,e:c,f:a}=this;return this.a=h+o*e,this.b=o+h*r,this.c=u+l*e,this.d=l+u*r,this.e=c+a*e-n*e,this.f=a+c*r-s*r,this}skewX(t,i,s){return this.skew(t,0,i,s)}skewY(t,i,s){return this.skew(0,t,i,s)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(lt.isMatrixLike(t))return new lt(t).multiplyO(this);const i=lt.formatTransforms(t),{x:s,y:n}=new ot(i.ox,i.oy).transform(this),e=(new lt).translateO(i.rx,i.ry).lmultiplyO(this).translateO(-s,-n).scaleO(i.scaleX,i.scaleY).skewO(i.skewX,i.skewY).shearO(i.shear).rotateO(i.theta).translateO(s,n);if(isFinite(i.px)||isFinite(i.py)){const t=new ot(s,n).transform(e),r=isFinite(i.px)?i.px-t.x:0,h=isFinite(i.py)?i.py-t.y:0;e.translateO(r,h)}return e.translateO(i.tx,i.ty),e}translate(t,i){return this.clone().translateO(t,i)}translateO(t,i){return this.e+=t||0,this.f+=i||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function ct(){if(!ct.nodes){const t=T().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const i=t.path().node;ct.nodes={svg:t,path:i}}return ct.nodes.svg.node.parentNode||ct.nodes.svg.addTo(O.document.body||O.document.documentElement),ct.nodes}function at(t){return!(t.width||t.height||t.x||t.y)}F(lt,"Matrix");class ft{constructor(...t){this.init(...t)}addOffset(){return this.x+=O.window.pageXOffset,this.y+=O.window.pageYOffset,new ft(this)}init(t){return t="string"==typeof t?t.split(it).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return at(this)}merge(t){const i=Math.min(this.x,t.x),s=Math.min(this.y,t.y),n=Math.max(this.x+this.width,t.x+t.width)-i,e=Math.max(this.y+this.height,t.y+t.height)-s;return new ft(i,s,n,e)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof lt||(t=new lt(t));let i=1/0,s=-1/0,n=1/0,e=-1/0;return[new ot(this.x,this.y),new ot(this.x2,this.y),new ot(this.x,this.y2),new ot(this.x2,this.y2)].forEach((function(r){r=r.transform(t),i=Math.min(i,r.x),s=Math.max(s,r.x),n=Math.min(n,r.y),e=Math.max(e,r.y)})),new ft(i,n,s-i,e-n)}}function dt(t,i,s){let n;try{if(n=i(t.node),at(n)&&(e=t.node)!==O.document&&!(O.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===O.document}).call(O.document.documentElement,e))throw new Error("Element not in the dom")}catch(i){n=s(t)}var e;return n}C({viewbox:{viewbox(t,i,s,n){return null==t?new ft(this.attr("viewBox")):this.attr("viewBox",new ft(t,i,s,n))},zoom(t,i){let{width:s,height:n}=this.attr(["width","height"]);if((s||n)&&"string"!=typeof s&&"string"!=typeof n||(s=this.node.clientWidth,n=this.node.clientHeight),!s||!n)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const e=this.viewbox(),r=s/e.width,h=n/e.height,o=Math.min(r,h);if(null==t)return o;let u=o/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),i=i||new ot(s/2/r+e.x,n/2/h+e.y);const l=new ft(e).transform(new lt({scale:u,origin:i}));return this.viewbox(l)}}}),F(ft,"Box");class pt extends Array{constructor(t=[],...i){if(super(t,...i),"number"==typeof t)return this;this.length=0,this.push(...t)}}P([pt],{each(t,...i){return this.map("function"==typeof t?(i,s,n)=>t.call(i,i,s,n):s=>s[t](...i))},toArray(){return Array.prototype.concat.apply([],this)}});const wt=["toArray","constructor","each"];function Ct(t,i){return new pt(x((i||O.document).querySelectorAll(t),(function(t){return V(t)})))}pt.extend=function(t){t=t.reduce(((t,i)=>(wt.includes(i)||"_"===i[0]||(t[i]=function(...t){return this.each(i,...t)}),t)),{}),P([pt],t)};let gt=0;const mt={};function xt(t){let i=t.getEventHolder();return i===O.window&&(i=mt),i.events||(i.events={}),i.events}function yt(t){return t.getEventTarget()}function vt(t,i,s,n,e){const r=s.bind(n||t),h=T(t),o=xt(h),u=yt(h);i=Array.isArray(i)?i:i.split(it),s._svgjsListenerId||(s._svgjsListenerId=++gt),i.forEach((function(t){const i=t.split(".")[0],n=t.split(".")[1]||"*";o[i]=o[i]||{},o[i][n]=o[i][n]||{},o[i][n][s._svgjsListenerId]=r,u.addEventListener(i,r,e||!1)}))}function bt(t,i,s,n){const e=T(t),r=xt(e),h=yt(e);("function"!=typeof s||(s=s._svgjsListenerId))&&(i=Array.isArray(i)?i:(i||"").split(it)).forEach((function(t){const i=t&&t.split(".")[0],o=t&&t.split(".")[1];let u,l;if(s)r[i]&&r[i][o||"*"]&&(h.removeEventListener(i,r[i][o||"*"][s],n||!1),delete r[i][o||"*"][s]);else if(i&&o){if(r[i]&&r[i][o]){for(l in r[i][o])bt(h,[i,o].join("."),l);delete r[i][o]}}else if(o)for(t in r)for(u in r[t])o===u&&bt(h,[t,o].join("."));else if(i){if(r[i]){for(u in r[i])bt(h,[i,u].join("."));delete r[i]}}else{for(t in r)bt(h,t);!function(t){let i=t.getEventHolder();i===O.window&&(i=mt),i.events&&(i.events={})}(e)}}))}class kt extends B{addEventListener(){}dispatch(t,i,s){return function(t,i,s,n){const e=yt(t);return i instanceof O.window.Event||(i=new O.window.CustomEvent(i,{detail:s,cancelable:!0,...n})),e.dispatchEvent(i),i}(this,t,i,s)}dispatchEvent(t){const i=this.getEventHolder().events;if(!i)return!0;const s=i[t.type];for(const i in s)for(const n in s[i])s[i][n](t);return!t.defaultPrevented}fire(t,i,s){return this.dispatch(t,i,s),this}getEventHolder(){return this}getEventTarget(){return this}off(t,i,s){return bt(this,t,i,s),this}on(t,i,s,n){return vt(this,t,i,s,n),this}removeEventListener(){}}function Mt(){}F(kt,"EventTarget");const _t={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class jt extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(it).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Lt{constructor(...t){this.init(...t)}convert(t){return new Lt(this.value,t)}divide(t){return t=new Lt(t),new Lt(this/t,this.unit||t.unit)}init(t,i){return i=Array.isArray(t)?t[1]:i,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=i||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(i=t.match(q))&&(this.value=parseFloat(i[1]),"%"===i[5]?this.value/=100:"s"===i[5]&&(this.value*=1e3),this.unit=i[5]):t instanceof Lt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Lt(t),new Lt(this-t,this.unit||t.unit)}plus(t){return t=new Lt(t),new Lt(this+t,this.unit||t.unit)}times(t){return t=new Lt(t),new Lt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const At=[];class Ot extends kt{constructor(t,i){super(),this.node=t,this.type=t.nodeName,i&&t!==i&&this.attr(i)}add(t,i){return(t=T(t)).removeNamespace&&this.node instanceof O.window.SVGElement&&t.removeNamespace(),null==i?this.node.appendChild(t.node):t.node!==this.node.childNodes[i]&&this.node.insertBefore(t.node,this.node.childNodes[i]),this}addTo(t,i){return T(t).put(this,i)}children(){return new pt(x(this.node.children,(function(t){return V(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0){return this.writeDataToDom(),new this.constructor(N(this.node.cloneNode(t)))}each(t,i){const s=this.children();let n,e;for(n=0,e=s.length;n<e;n++)t.apply(s[n],[n,s]),i&&s[n].each(t,i);return this}element(t,i){return this.put(new Ot(S(t),i))}first(){return V(this.node.firstChild)}get(t){return V(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,i){return this.xml(t,i,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=$(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return V(this.node.lastChild)}matches(t){const i=this.node,s=i.matches||i.matchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.webkitMatchesSelector||i.oMatchesSelector||null;return s&&s.call(i,t)}parent(t){let i=this;if(!i.node.parentNode)return null;if(i=V(i.node.parentNode),!t)return i;do{if("string"==typeof t?i.matches(t):i instanceof t)return i}while(i=V(i.node.parentNode));return i}put(t,i){return t=T(t),this.add(t,i),t}putIn(t,i){return T(t).add(this,i)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=T(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,i=null){const s=10**t,n=this.attr(i);for(const t in n)"number"==typeof n[t]&&(n[t]=Math.round(n[t]*s)/s);return this.attr(n),this}svg(t,i){return this.xml(t,i,j)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const i=this.parent();if(!i)return this.addTo(t);const s=i.index(this);return i.put(t,s).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,i,s){if("boolean"==typeof t&&(s=i,i=t,t=null),null==t||"function"==typeof t){i=null==i||i,this.writeDataToDom();let s=this;if(null!=t){if(s=V(s.node.cloneNode(!0)),i){const i=t(s);if(s=i||s,!1===i)return""}s.each((function(){const i=t(this),s=i||this;!1===i?this.remove():i&&this!==s&&this.replace(s)}),!0)}return i?s.node.outerHTML:s.node.innerHTML}i=null!=i&&i;const n=S("wrapper",s),e=O.document.createDocumentFragment();n.innerHTML=t;for(let t=n.children.length;t--;)e.appendChild(n.firstElementChild);const r=this.parent();return i?this.replace(e)&&r:this.add(e)}}P(Ot,{attr:function(t,i,s){if(null==t){t={},i=this.node.attributes;for(const s of i)t[s.nodeName]=K.test(s.nodeValue)?parseFloat(s.nodeValue):s.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,i)=>(t[i]=this.attr(i),t)),{});if("object"==typeof t&&t.constructor===Object)for(i in t)this.attr(i,t[i]);else if(null===i)this.node.removeAttribute(t);else{if(null==i)return null==(i=this.node.getAttribute(t))?_t[t]:K.test(i)?parseFloat(i):i;"number"==typeof(i=At.reduce(((i,s)=>s(t,i,this)),i))?i=new Lt(i):ht.isColor(i)?i=new ht(i):i.constructor===Array&&(i=new jt(i)),"leading"===t?this.leading&&this.leading(i):"string"==typeof s?this.node.setAttributeNS(s,t,i.toString()):this.node.setAttribute(t,i.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return Ct(t,this.node)},findOne:function(t){return V(this.node.querySelector(t))}}),F(Ot,"Dom");class Bt extends Ot{constructor(t,i){super(t,i),this.dom={},this.node.instance=this,t.hasAttribute("svgjs:data")&&this.setData(JSON.parse(t.getAttribute("svgjs:data"))||{})}center(t,i){return this.cx(t).cy(i)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,i){return this.dx(t).dy(i)}dx(t=0){return this.x(new Lt(t).plus(this.x()))}dy(t=0){return this.y(new Lt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,i){return this.x(t).y(i)}parents(t=this.root()){const i="string"==typeof t;i||(t=T(t));const s=new pt;let n=this;for(;(n=n.parent())&&n.node!==O.document&&"#document-fragment"!==n.nodeName&&(s.push(n),i||n.node!==t.node)&&(!i||!n.matches(t));)if(n.node===this.root().node)return null;return s}reference(t){if(!(t=this.attr(t)))return null;const i=(t+"").match(G);return i?T(i[1]):null}root(){const t=this.parent(E[z]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,i){const s=M(this,t,i);return this.width(new Lt(s.width)).height(new Lt(s.height))}width(t){return this.attr("width",t)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}P(Bt,{bbox:function(){const t=dt(this,(t=>t.getBBox()),(t=>{try{const i=t.clone().addTo(ct().svg).show(),s=i.node.getBBox();return i.remove(),s}catch(i){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${i.toString()}`)}}));return new ft(t)},rbox:function(t){const i=dt(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),s=new ft(i);return t?s.transform(t.screenCTM().inverseO()):s.addOffset()},inside:function(t,i){const s=this.bbox();return t>s.x&&i>s.y&&t<s.x+s.width&&i<s.y+s.height},point:function(t,i){return new ot(t,i).transform(this.screenCTM().inverse())},ctm:function(){return new lt(this.node.getCTM())},screenCTM:function(){if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),i=t.node.getScreenCTM();return t.remove(),new lt(i)}return new lt(this.node.getScreenCTM())}}),F(Bt,"Element");const Et={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,i){return"color"===i?t:t+"-"+i}};["fill","stroke"].forEach((function(t){const i={};let s;i[t]=function(i){if(void 0===i)return this.attr(t);if("string"==typeof i||i instanceof ht||ht.isRgb(i)||i instanceof Bt)this.attr(t,i);else for(s=Et[t].length-1;s>=0;s--)null!=i[Et[t][s]]&&this.attr(Et.prefix(t,Et[t][s]),i[Et[t][s]]);return this},C(["Element","Runner"],i)})),C(["Element","Runner"],{matrix:function(t,i,s,n,e,r){return null==t?new lt(this):this.attr("transform",new lt(t,i,s,n,e,r))},rotate:function(t,i,s){return this.transform({rotate:t,ox:i,oy:s},!0)},skew:function(t,i,s,n){return this.transform(1===arguments.length||3===arguments.length?{skew:t,ox:i,oy:s}:{skew:[t,i],ox:s,oy:n},!0)},shear:function(t,i,s){return this.transform({shear:t,ox:i,oy:s},!0)},scale:function(t,i,s,n){return this.transform(1===arguments.length||3===arguments.length?{scale:t,ox:i,oy:s}:{scale:[t,i],ox:s,oy:n},!0)},translate:function(t,i){return this.transform({translate:[t,i]},!0)},relative:function(t,i){return this.transform({relative:[t,i]},!0)},flip:function(t="both",i="center"){return-1==="xybothtrue".indexOf(t)&&(i=t,t="both"),this.transform({flip:t,origin:i},!0)},opacity:function(t){return this.attr("opacity",t)}}),C("radius",{radius:function(t,i=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Lt(t)):this.rx(t).ry(i)}}),C("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new ot(this.node.getPointAtLength(t))}}),C(["Element","Runner"],{font:function(t,i){if("object"==typeof t){for(i in t)this.font(i,t[i]);return this}return"leading"===t?this.leading(i):this.attr("anchor"===t?"text-anchor":"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?"font-"+t:t,i)}}),C("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(t,i){return t[i]=function(t){return null===t?this.off(i):this.on(i,t),this},t}),{})),C("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(X).slice(0,-1).map((function(t){const i=t.trim().split("(");return[i[0],i[1].split(it).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,i){return"matrix"===i[0]?t.lmultiply(lt.fromArray(i[1])):t[i[0]].apply(t,i[1])}),new lt)},toParent:function(t,i){if(this===t)return this;const s=this.screenCTM(),n=t.screenCTM().inverse();return this.addTo(t,i).untransform().transform(n.multiply(s)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,i){if(null==t||"string"==typeof t){const i=new lt(this).decompose();return null==t?i:i[t]}lt.isMatrixLike(t)||(t={...t,origin:_(t,this)});const s=new lt(!0===i?this:i||!1).transform(t);return this.attr("transform",s)}});class zt extends Bt{flatten(t=this,i){return this.each((function(){if(this instanceof zt)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),i=t.index(this)){return i=-1===i?t.children().length:i,this.each((function(s,n){return n[n.length-s-1].toParent(t,i)})),this.remove()}}F(zt,"Container");class St extends zt{constructor(t,i=t){super(H("defs",t),i)}flatten(){return this}ungroup(){return this}}F(St,"Defs");class Tt extends Bt{}function Ht(t){return this.attr("rx",t)}function Vt(t){return this.attr("ry",t)}function Dt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Ft(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Zt(t){return this.attr("cx",t)}function $t(t){return this.attr("cy",t)}function Nt(t){return null==t?2*this.rx():this.rx(new Lt(t).divide(2))}function Pt(t){return null==t?2*this.ry():this.ry(new Lt(t).divide(2))}F(Tt,"Shape");var It={__proto__:null,rx:Ht,ry:Vt,x:Dt,y:Ft,cx:Zt,cy:$t,width:Nt,height:Pt};class qt extends Tt{constructor(t,i=t){super(H("ellipse",t),i)}size(t,i){const s=M(this,t,i);return this.rx(new Lt(s.width).divide(2)).ry(new Lt(s.height).divide(2))}}P(qt,It),C("Container",{ellipse:I((function(t=0,i=t){return this.put(new qt).size(t,i).move(0,0)}))}),F(qt,"Ellipse");class Rt extends Ot{constructor(t=O.document.createDocumentFragment()){super(t)}xml(t,i,s){if("boolean"==typeof t&&(s=i,i=t,t=null),null==t||"function"==typeof t){const t=new Ot(S("wrapper",s));return t.add(this.node.cloneNode(!0)),t.xml(!1,s)}return super.xml(t,!1,s)}}function Yt(t,i){return this.attr("radialGradient"===(this._element||this).type?{fx:new Lt(t),fy:new Lt(i)}:{x1:new Lt(t),y1:new Lt(i)})}function Gt(t,i){return this.attr("radialGradient"===(this._element||this).type?{cx:new Lt(t),cy:new Lt(i)}:{x2:new Lt(t),y2:new Lt(i)})}F(Rt,"Fragment");var Xt={__proto__:null,from:Yt,to:Gt};class Qt extends zt{constructor(t,i){super(H(t+"Gradient","string"==typeof t?null:t),i)}attr(t,i,s){return"transform"===t&&(t="gradientTransform"),super.attr(t,i,s)}bbox(){return new ft}targets(){return Ct('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return'url("#'+this.id()+'")'}}P(Qt,Xt),C({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:I((function(t,i){return this.put(new Qt(t)).update(i)}))}}),F(Qt,"Gradient");class Ut extends zt{constructor(t,i=t){super(H("pattern",t),i)}attr(t,i,s){return"transform"===t&&(t="patternTransform"),super.attr(t,i,s)}bbox(){return new ft}targets(){return Ct('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return'url("#'+this.id()+'")'}}C({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:I((function(t,i,s){return this.put(new Ut).update(s).attr({x:0,y:0,width:t,height:i,patternUnits:"userSpaceOnUse"})}))}}),F(Ut,"Pattern");class Wt extends Tt{constructor(t,i=t){super(H("image",t),i)}load(t,i){if(!t)return this;const s=new O.window.Image;return vt(s,"load",(function(t){const n=this.parent(Ut);0===this.width()&&0===this.height()&&this.size(s.width,s.height),n instanceof Ut&&0===n.width()&&0===n.height()&&n.size(this.width(),this.height()),"function"==typeof i&&i.call(this,t)}),this),vt(s,"load error",(function(){bt(s)})),this.attr("href",s.src=t,A)}}At.push((function(t,i,s){return"fill"!==t&&"stroke"!==t||tt.test(i)&&(i=s.root().defs().image(i)),i instanceof Wt&&(i=s.root().defs().pattern(0,0,(t=>{t.add(i)}))),i})),C({Container:{image:I((function(t,i){return this.put(new Wt).size(0,0).load(t,i)}))}}),F(Wt,"Image");class Jt extends jt{bbox(){let t=-1/0,i=-1/0,s=1/0,n=1/0;return this.forEach((function(e){t=Math.max(e[0],t),i=Math.max(e[1],i),s=Math.min(e[0],s),n=Math.min(e[1],n)})),new ft(s,n,t-s,i-n)}move(t,i){const s=this.bbox();if(t-=s.x,i-=s.y,!isNaN(t)&&!isNaN(i))for(let s=this.length-1;s>=0;s--)this[s]=[this[s][0]+t,this[s][1]+i];return this}parse(t=[0,0]){const i=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(it).map(parseFloat)).length%2!=0&&t.pop();for(let s=0,n=t.length;s<n;s+=2)i.push([t[s],t[s+1]]);return i}size(t,i){let s;const n=this.bbox();for(s=this.length-1;s>=0;s--)n.width&&(this[s][0]=(this[s][0]-n.x)*t/n.width+n.x),n.height&&(this[s][1]=(this[s][1]-n.y)*i/n.height+n.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let i=0,s=this.length;i<s;i++)t.push(this[i].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){lt.isMatrixLike(t)||(t=new lt(t));for(let i=this.length;i--;){const[s,n]=this[i];this[i][0]=t.a*s+t.c*n+t.e,this[i][1]=t.b*s+t.d*n+t.f}return this}}var Kt={__proto__:null,MorphArray:Jt,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){const i=this.bbox();return null==t?i.width:this.size(t,i.height)},height:function(t){const i=this.bbox();return null==t?i.height:this.size(i.width,t)}};class ti extends Tt{constructor(t,i=t){super(H("line",t),i)}array(){return new Jt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,i){return this.attr(this.array().move(t,i).toLine())}plot(t,i,s,n){return null==t?this.array():(t=void 0!==i?{x1:t,y1:i,x2:s,y2:n}:new Jt(t).toLine(),this.attr(t))}size(t,i){const s=M(this,t,i);return this.attr(this.array().size(s.width,s.height).toLine())}}P(ti,Kt),C({Container:{line:I((function(...t){return ti.prototype.plot.apply(this.put(new ti),null!=t[0]?t:[0,0,0,0])}))}}),F(ti,"Line");class ii extends zt{constructor(t,i=t){super(H("marker",t),i)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,i){return this.attr("refX",t).attr("refY",i)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function si(t,i){return function(s){return null==s?this[t]:(this[t]=s,i&&i.call(this),this)}}C({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:I((function(t,i,s){return this.put(new ii).size(t,i).ref(t/2,i/2).viewbox(0,0,t,i).attr("orient","auto").update(s)}))},marker:{marker(t,i,s,n){let e=["marker"];return"all"!==t&&e.push(t),e=e.join("-"),t=arguments[1]instanceof ii?arguments[1]:this.defs().marker(i,s,n),this.attr(e,t)}}}),F(ii,"Marker");const ni={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,i,s,n){return function(e){return e<0?t>0?i/t*e:s>0?n/s*e:0:e>1?s<1?(1-n)/(1-s)*e+(n-s)/(1-s):t<1?(1-i)/(1-t)*e+(i-t)/(1-t):1:3*e*(1-e)**2*i+3*e**2*(1-e)*n+e**3}},steps:function(t,i="end"){i=i.split("-").reverse()[0];let s=t;return"none"===i?--s:"both"===i&&++s,(n,e=!1)=>{let r=Math.floor(n*t);const h=n*r%1==0;return"start"!==i&&"both"!==i||++r,e&&h&&--r,n>=0&&r<0&&(r=0),n<=1&&r>s&&(r=s),r/s}}};class ei{done(){return!1}}class ri extends ei{constructor(t=">"){super(),this.ease=ni[t]||t}step(t,i,s){return"number"!=typeof t?s<1?t:i:t+(i-t)*this.ease(s)}}class hi extends ei{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,i,s,n){return this.stepper(t,i,s,n)}}function oi(){const t=(this._duration||500)/1e3,i=Math.PI,s=Math.log((this._overshoot||0)/100+1e-10),n=-s/Math.sqrt(i*i+s*s),e=3.9/(n*t);this.d=2*n*e,this.k=e*e}P(class extends hi{constructor(t=500,i=0){super(),this.duration(t).overshoot(i)}step(t,i,s,n){if("string"==typeof t)return t;if(n.done=s===1/0,s===1/0)return i;if(0===s)return t;s>100&&(s=16);const e=n.velocity||0,r=-this.d*e-this.k*(t-i),h=t+e*(s/=1e3)+r*s*s/2;return n.velocity=e+r*s,n.done=Math.abs(i-h)+Math.abs(e)<.002,n.done?i:h}},{duration:si("_duration",oi),overshoot:si("_overshoot",oi)}),P(class extends hi{constructor(t=.1,i=.01,s=0,n=1e3){super(),this.p(t).i(i).d(s).windup(n)}step(t,i,s,n){if("string"==typeof t)return t;if(n.done=s===1/0,s===1/0)return i;if(0===s)return t;const e=i-t;let r=(n.integral||0)+e*s;const h=(e-(n.error||0))/s,o=this._windup;return!1!==o&&(r=Math.max(-o,Math.min(r,o))),n.error=e,n.integral=r,n.done=Math.abs(e)<.001,n.done?i:t+(this.P*e+this.I*r+this.D*h)}},{windup:si("_windup"),p:si("P"),i:si("I"),d:si("D")});const ui={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},li={M:function(t,i,s){return i.x=s.x=t[0],i.y=s.y=t[1],["M",i.x,i.y]},L:function(t,i){return i.x=t[0],i.y=t[1],["L",t[0],t[1]]},H:function(t,i){return i.x=t[0],["H",t[0]]},V:function(t,i){return i.y=t[0],["V",t[0]]},C:function(t,i){return i.x=t[4],i.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,i){return i.x=t[2],i.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,i){return i.x=t[2],i.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,i){return i.x=t[0],i.y=t[1],["T",t[0],t[1]]},Z:function(t,i,s){return i.x=s.x,i.y=s.y,["Z"]},A:function(t,i){return i.x=t[5],i.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},ci="mlhvqtcsaz".split("");for(let t=0,i=ci.length;t<i;++t)li[ci[t]]=function(t){return function(i,s,n){if("H"===t)i[0]=i[0]+s.x;else if("V"===t)i[0]=i[0]+s.y;else if("A"===t)i[5]=i[5]+s.x,i[6]=i[6]+s.y;else for(let t=0,n=i.length;t<n;++t)i[t]=i[t]+(t%2?s.y:s.x);return li[t](i,s,n)}}(ci[t].toUpperCase());function ai(t){return t.segment.length&&t.segment.length-1===ui[t.segment[0].toUpperCase()]}function fi(t,i){t.inNumber&&di(t,!1);const s=st.test(i);if(s)t.segment=[i];else{const i=t.lastCommand,s=i.toLowerCase(),n=i===s;t.segment=["m"===s?n?"l":"L":i]}return t.inSegment=!0,t.lastCommand=t.segment[0],s}function di(t,i){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=i,t.number="",t.pointSeen=!1,t.hasExponent=!1,ai(t)&&pi(t)}function pi(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){return li[t.segment[0]](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function wi(t){if(!t.segment.length)return!1;const i="A"===t.segment[0].toUpperCase(),s=t.segment.length;return i&&(4===s||5===s)}function Ci(t){return"E"===t.lastToken.toUpperCase()}class gi extends jt{bbox(){return ct().path.setAttribute("d",this.toString()),new ft(ct.nodes.path.getBBox())}move(t,i){const s=this.bbox();if(t-=s.x,i-=s.y,!isNaN(t)&&!isNaN(i))for(let s,n=this.length-1;n>=0;n--)s=this[n][0],"M"===s||"L"===s||"T"===s?(this[n][1]+=t,this[n][2]+=i):"H"===s?this[n][1]+=t:"V"===s?this[n][1]+=i:"C"===s||"S"===s||"Q"===s?(this[n][1]+=t,this[n][2]+=i,this[n][3]+=t,this[n][4]+=i,"C"===s&&(this[n][5]+=t,this[n][6]+=i)):"A"===s&&(this[n][6]+=t,this[n][7]+=i);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,i=!0){let s=0,n="";const e={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:i,p0:new ot,p:new ot};for(;e.lastToken=n,n=t.charAt(s++);)if(e.inSegment||!fi(e,n))if("."!==n)if(isNaN(parseInt(n)))if(" "!==n&&","!==n)if("-"!==n)if("E"!==n.toUpperCase()){if(st.test(n)){if(e.inNumber)di(e,!1);else{if(!ai(e))throw new Error("parser Error");pi(e)}--s}}else e.number+=n,e.hasExponent=!0;else{if(e.inNumber&&!Ci(e)){di(e,!1),--s;continue}e.number+=n,e.inNumber=!0}else e.inNumber&&di(e,!1);else{if("0"===e.number||wi(e)){e.inNumber=!0,e.number=n,di(e,!0);continue}e.inNumber=!0,e.number+=n}else{if(e.pointSeen||e.hasExponent){di(e,!1),--s;continue}e.inNumber=!0,e.pointSeen=!0,e.number+=n}return e.inNumber&&di(e,!1),e.inSegment&&ai(e)&&pi(e),e.segments}(t)}size(t,i){const s=this.bbox();let n,e;for(s.width=0===s.width?1:s.width,s.height=0===s.height?1:s.height,n=this.length-1;n>=0;n--)e=this[n][0],"M"===e||"L"===e||"T"===e?(this[n][1]=(this[n][1]-s.x)*t/s.width+s.x,this[n][2]=(this[n][2]-s.y)*i/s.height+s.y):"H"===e?this[n][1]=(this[n][1]-s.x)*t/s.width+s.x:"V"===e?this[n][1]=(this[n][1]-s.y)*i/s.height+s.y:"C"===e||"S"===e||"Q"===e?(this[n][1]=(this[n][1]-s.x)*t/s.width+s.x,this[n][2]=(this[n][2]-s.y)*i/s.height+s.y,this[n][3]=(this[n][3]-s.x)*t/s.width+s.x,this[n][4]=(this[n][4]-s.y)*i/s.height+s.y,"C"===e&&(this[n][5]=(this[n][5]-s.x)*t/s.width+s.x,this[n][6]=(this[n][6]-s.y)*i/s.height+s.y)):"A"===e&&(this[n][1]=this[n][1]*t/s.width,this[n][2]=this[n][2]*i/s.height,this[n][6]=(this[n][6]-s.x)*t/s.width+s.x,this[n][7]=(this[n][7]-s.y)*i/s.height+s.y);return this}toString(){return function(t){let i="";for(let s=0,n=t.length;s<n;s++)i+=t[s][0],null!=t[s][1]&&(i+=t[s][1],null!=t[s][2]&&(i+=" ",i+=t[s][2],null!=t[s][3]&&(i+=" ",i+=t[s][3],i+=" ",i+=t[s][4],null!=t[s][5]&&(i+=" ",i+=t[s][5],i+=" ",i+=t[s][6],null!=t[s][7]&&(i+=" ",i+=t[s][7])))));return i+" "}(this)}}const mi=t=>{const i=typeof t;return"number"===i?Lt:"string"===i?ht.isColor(t)?ht:it.test(t)?st.test(t)?gi:jt:q.test(t)?Lt:yi:Mi.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?jt:"object"===i?ki:yi};class xi{constructor(t){this._stepper=t||new ri("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,i){return t&&i}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(mi(t));let i=new this._type(t);return this._type===ht&&(i=this._to?i[this._to[4]]():this._from?i[this._from[4]]():i),this._type===ki&&(i=this._to?i.align(this._to):this._from?i.align(this._from):i),i=i.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(i.length)).map(Object).map((function(t){return t.done=!0,t})),i}}class yi{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class vi{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,vi.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}vi.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const bi=(t,i)=>t[0]<i[0]?-1:t[0]>i[0]?1:0;class ki{constructor(...t){this.init(...t)}align(t){const i=this.values;for(let s=0,n=i.length;s<n;++s){if(i[s+1]===t[s+1]){if(i[s+1]===ht&&t[s+7]!==i[s+7]){const i=t[s+7],n=new ht(this.values.splice(s+3,5))[i]().toArray();this.values.splice(s+3,0,...n)}s+=i[s+2]+2;continue}if(!t[s+1])return this;const n=(new t[s+1]).toArray();i.splice(s,i[s+2]+3,t[s],t[s+1],t[s+2],...n),s+=i[s+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const i=[];for(const s in t){const n=mi(t[s]),e=new n(t[s]).toArray();i.push([s,n,e.length,...e])}return i.sort(bi),this.values=i.reduce(((t,i)=>t.concat(i)),[]),this}toArray(){return this.values}valueOf(){const t={},i=this.values;for(;i.length;){const s=i.shift(),n=i.shift(),e=i.shift(),r=i.splice(0,e);t[s]=new n(r)}return t}}const Mi=[yi,vi,ki];class _i extends Tt{constructor(t,i=t){super(H("path",t),i)}array(){return this._array||(this._array=new gi(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,i){return this.attr("d",this.array().move(t,i))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new gi(t))}size(t,i){const s=M(this,t,i);return this.attr("d",this.array().size(s.width,s.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}_i.prototype.MorphArray=gi,C({Container:{path:I((function(t){return this.put(new _i).plot(t||new gi)}))}}),F(_i,"Path");var ji={__proto__:null,array:function(){return this._array||(this._array=new Jt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,i){return this.attr("points",this.array().move(t,i))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Jt(t))},size:function(t,i){const s=M(this,t,i);return this.attr("points",this.array().size(s.width,s.height))}};class Li extends Tt{constructor(t,i=t){super(H("polygon",t),i)}}C({Container:{polygon:I((function(t){return this.put(new Li).plot(t||new Jt)}))}}),P(Li,Kt),P(Li,ji),F(Li,"Polygon");class Ai extends Tt{constructor(t,i=t){super(H("polyline",t),i)}}C({Container:{polyline:I((function(t){return this.put(new Ai).plot(t||new Jt)}))}}),P(Ai,Kt),P(Ai,ji),F(Ai,"Polyline");class Oi extends Tt{constructor(t,i=t){super(H("rect",t),i)}}P(Oi,{rx:Ht,ry:Vt}),C({Container:{rect:I((function(t,i){return this.put(new Oi).size(t,i)}))}}),F(Oi,"Rect");class Bi{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const i=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(i.prev=this._last,this._last.next=i,this._last=i):(this._last=i,this._first=i),i}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Ei={nextDraw:null,frames:new Bi,timeouts:new Bi,immediates:new Bi,timer:()=>O.window.performance||O.window.Date,transforms:[],frame(t){const i=Ei.frames.push({run:t});return null===Ei.nextDraw&&(Ei.nextDraw=O.window.requestAnimationFrame(Ei._draw)),i},timeout(t,i){i=i||0;const s=Ei.timer().now()+i,n=Ei.timeouts.push({run:t,time:s});return null===Ei.nextDraw&&(Ei.nextDraw=O.window.requestAnimationFrame(Ei._draw)),n},immediate(t){const i=Ei.immediates.push(t);return null===Ei.nextDraw&&(Ei.nextDraw=O.window.requestAnimationFrame(Ei._draw)),i},cancelFrame(t){null!=t&&Ei.frames.remove(t)},clearTimeout(t){null!=t&&Ei.timeouts.remove(t)},cancelImmediate(t){null!=t&&Ei.immediates.remove(t)},_draw(t){let i=null;const s=Ei.timeouts.last();for(;(i=Ei.timeouts.shift())&&(t>=i.time?i.run():Ei.timeouts.push(i),i!==s););let n=null;const e=Ei.frames.last();for(;n!==e&&(n=Ei.frames.shift());)n.run(t);let r=null;for(;r=Ei.immediates.shift();)r();Ei.nextDraw=Ei.timeouts.first()||Ei.frames.first()?O.window.requestAnimationFrame(Ei._draw):null}},zi=function(t){const i=t.start,s=t.runner.duration();return{start:i,duration:s,end:i+s,runner:t.runner}},Si=function(){const t=O.window;return(t.performance||t.Date).now()};class Ti extends kt{constructor(t=Si){super(),this._timeSource=t,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),i=t?t.runner.duration():0;return(t?t.start:this._time)+i}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const i=this.speed();if(null==t)return this.speed(-i);const s=Math.abs(i);return this.speed(t?-s:s)}schedule(t,i,s){if(null==t)return this._runners.map(zi);let n=0;const e=this.getEndTime();if(i=i||0,null==s||"last"===s||"after"===s)n=e;else if("absolute"===s||"start"===s)n=i,i=0;else if("now"===s)n=this._time;else if("relative"===s){const s=this.getRunnerInfoById(t.id);s&&(n=s.start+i,i=0)}else{if("with-last"!==s)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();n=t?t.start:this._time}}t.unschedule(),t.timeline(this);const r=t.persist(),h={persist:null===r?this._persist:r,start:n+i,runner:t};return this._lastRunnerId=t.id,this._runners.push(h),this._runners.sort(((t,i)=>t.start-i.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const i=this._runnerIds.indexOf(t.id);return i<0||(this._runners.splice(i,1),this._runnerIds.splice(i,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return Ei.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Ei.frame(this._step)),this)}_stepFn(t=!1){const i=this._timeSource();let s=i-this._lastSourceTime;t&&(s=0);const n=this._speed*s+(this._time-this._lastStepTime);this._lastSourceTime=i,t||(this._time+=n,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const i=this._runners[t],s=i.runner;this._time-i.start<=0&&s.reset()}let e=!1;for(let t=0,i=this._runners.length;t<i;t++){const s=this._runners[t],r=s.runner;let h=n;const o=this._time-s.start;o<=0?e=!0:(o<h&&(h=o),r.active()&&(r.step(h).done?!0!==s.persist&&r.duration()-r.time()+this._time+s.persist<this._time&&(r.unschedule(),--t,--i):e=!0))}return e&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}}C({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Ti,this._timeline):(this._timeline=t,this)}}});class Hi extends kt{constructor(t){super(),this.id=Hi.id++,t="function"==typeof(t=null==t?400:t)?new hi(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof hi,this._stepper=this._isDeclarative?t:new ri,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new lt,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,i,s){let n=1,e=!1,r=0;return i=i||0,s=s||"last","object"!=typeof(t=t||400)||t instanceof ei||(i=t.delay||i,s=t.when||s,e=t.swing||e,n=t.times||n,r=t.wait||r,t=t.duration||400),{duration:t,delay:i,swing:e,times:n,wait:r,when:s}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t,i){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,i,s){const n=Hi.sanitise(t,i,s),e=new Hi(n.duration);return this._timeline&&e.timeline(this._timeline),this._element&&e.element(this._element),e.loop(n).schedule(n.delay,n.when)}clearTransform(){return this.transforms=new lt,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new ri(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,i,s){return"object"==typeof t&&(i=t.swing,s=t.wait,t=t.times),this._times=t||1/0,this._swing=i||!1,this._wait=s||0,!0===this._times&&(this._times=1/0),this}loops(t){const i=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/i);return Math.min(t+(this._time-t*i)/this._duration,this._times)}const s=Math.floor(t);return this.time(i*s+this._duration*(t%1))}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const i=this._time,s=this._duration,n=this._wait,e=this._swing,r=this._reverse;let h;if(null==t){const t=function(t){const i=e*Math.floor(t%(2*(n+s))/(n+s)),h=i&&!r||!i&&r,o=Math.pow(-1,h)*(t%(n+s))/s+h;return Math.max(Math.min(o,1),0)},o=this._times*(n+s)-n;return h=i<=0?Math.round(t(1e-5)):i<o?t(i):Math.round(t(o-1e-5)),h}const o=Math.floor(this.loops()),u=e&&o%2==0;return h=o+(u&&!r||r&&u?t:1-t),this.loops(h)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,i,s,n){return this._queue.push({initialiser:t||Mt,runner:i||Mt,retarget:s,isTransform:n,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,i,s){if(t instanceof Ti||(s=i,i=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,i,s),this}step(t){if(!this.enabled)return this;this._time+=t=null==t?16:t;const i=this.position(),s=this._lastPosition!==i&&this._time>=0;this._lastPosition=i;const n=this.duration(),e=this._lastTime<=0&&this._time>0,r=this._lastTime<n&&this._time>=n;this._lastTime=this._time,e&&this.fire("start",this);const h=this._isDeclarative;this.done=!h&&!r&&this._time>=n,this._reseted=!1;let o=!1;return(s||h)&&(this._initialise(s),this.transforms=new lt,o=this._run(h?t:i),this.fire("step",this)),this.done=this.done||o&&h,r&&this.fire("finished",this),this}time(t){return null==t?this._time:(this.step(t-this._time),this)}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let i=0,s=this._queue.length;i<s;++i){const s=this._queue[i],n=this._isDeclarative||!s.initialised&&t;t=!s.finished,n&&t&&(s.initialiser.call(this),s.initialised=!0)}}_rememberMorpher(t,i){if(this._history[t]={morpher:i,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let i=!0;for(let s=0,n=this._queue.length;s<n;++s){const n=this._queue[s],e=n.runner.call(this,t);n.finished=n.finished||!0===e,i=i&&n.finished}return i}_tryRetarget(t,i,s){if(this._history[t]){if(!this._history[t].caller.initialised){const i=this._queue.indexOf(this._history[t].caller);return this._queue.splice(i,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,i,s):this._history[t].morpher.to(i),this._history[t].caller.finished=!1;const n=this.timeline();return n&&n.play(),!0}return!1}}Hi.id=0;class Vi{constructor(t=new lt,i=-1,s=!0){this.transforms=t,this.id=i,this.done=s}clearTransformsFromQueue(){}}P([Hi,Vi],{mergeWith(t){return new Vi(t.transforms.lmultiply(this.transforms),t.id)}});const Di=(t,i)=>t.lmultiplyO(i),Fi=t=>t.transforms;function Zi(){const t=this._transformationRunners.runners.map(Fi).reduce(Di,new lt);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $i{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const i=t.id+1;return this.runners.push(t),this.ids.push(i),this}clearBefore(t){const i=this.ids.indexOf(t+1)||1;return this.ids.splice(0,i,0),this.runners.splice(0,i,new Vi).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,i){const s=this.ids.indexOf(t+1);return this.ids.splice(s,1,t+1),this.runners.splice(s,1,i),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let i=0;i<this.runners.length;++i){const s=this.runners[i];if(!(t&&s.done&&t.done)||s._timeline&&s._timeline._runnerIds.includes(s.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=s;else{this.remove(s.id);const n=s.mergeWith(t);this.edit(t.id,n),t=n,--i}}return this}remove(t){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1),this.runners.splice(i,1),this}}C({Element:{animate(t,i,s){const n=Hi.sanitise(t,i,s),e=this.timeline();return new Hi(n.duration).loop(n).element(this).timeline(e.play()).schedule(n.delay,n.when)},delay(t,i){return this.animate(0,t,i)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((i=>i.id<=t.id)).map(Fi).reduce(Di,new lt)},_addRunner(t){this._transformationRunners.add(t),Ei.cancelImmediate(this._frameId),this._frameId=Ei.immediate(Zi.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $i).add(new Vi(new lt(this))))}}}),P(Hi,{attr(t,i){return this.styleAttr("attr",t,i)},css(t,i){return this.styleAttr("css",t,i)},styleAttr(t,i,s){if("string"==typeof i)return this.styleAttr(t,{[i]:s});let n=i;if(this._tryRetarget(t,n))return this;let e=new xi(this._stepper).to(n),r=Object.keys(n);return this.queue((function(){e=e.from(this.element()[t](r))}),(function(i){return this.element()[t](e.at(i).valueOf()),e.done()}),(function(i){const s=Object.keys(i),h=(o=r,s.filter((t=>!o.includes(t))));var o;if(h.length){const i=this.element()[t](h),s=new ki(e.from()).valueOf();Object.assign(s,i),e.from(s)}const u=new ki(e.to()).valueOf();Object.assign(u,i),e.to(u),r=s,n=i})),this._rememberMorpher(t,e),this},zoom(t,i){if(this._tryRetarget("zoom",t,i))return this;let s=new xi(this._stepper).to(new Lt(t));return this.queue((function(){s=s.from(this.element().zoom())}),(function(t){return this.element().zoom(s.at(t),i),s.done()}),(function(t,n){i=n,s.to(t)})),this._rememberMorpher("zoom",s),this},transform(t,i,s){if(i=t.relative||i,this._isDeclarative&&!i&&this._tryRetarget("transform",t))return this;const n=lt.isMatrixLike(t);s=null!=t.affine?t.affine:null!=s?s:!n;const e=new xi(this._stepper).type(s?vi:lt);let r,h,o,u,l;return this.queue((function(){h=h||this.element(),r=r||_(t,h),l=new lt(i?void 0:h),h._addRunner(this),i||h._clearTransformRunnersBefore(this)}),(function(c){i||this.clearTransform();const{x:a,y:f}=new ot(r).transform(h._currentTransform(this));let d=new lt({...t,origin:[a,f]}),p=this._isDeclarative&&o?o:l;if(s){d=d.decompose(a,f),p=p.decompose(a,f);const t=d.rotate,i=p.rotate,s=[t-360,t,t+360],n=s.map((t=>Math.abs(t-i))),e=Math.min(...n),r=n.indexOf(e);d.rotate=s[r]}i&&(n||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),e.from(p),e.to(d);const w=e.at(c);return u=w.rotate,o=new lt(w),this.addTransform(o),h._addRunner(this),e.done()}),(function(i){(i.origin||"center").toString()!==(t.origin||"center").toString()&&(r=_(i,h)),t={...i,origin:r}}),!0),this._isDeclarative&&this._rememberMorpher("transform",e),this},x(t,i){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,i){return this.dx(t).dy(i)},_queueNumberDelta(t,i){if(i=new Lt(i),this._tryRetarget(t,i))return this;const s=new xi(this._stepper).to(i);let n=null;return this.queue((function(){n=this.element()[t](),s.from(n),s.to(n+i)}),(function(i){return this.element()[t](s.at(i)),s.done()}),(function(t){s.to(n+new Lt(t))})),this._rememberMorpher(t,s),this},_queueObject(t,i){if(this._tryRetarget(t,i))return this;const s=new xi(this._stepper).to(i);return this.queue((function(){s.from(this.element()[t]())}),(function(i){return this.element()[t](s.at(i)),s.done()})),this._rememberMorpher(t,s),this},_queueNumber(t,i){return this._queueObject(t,new Lt(i))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,i){return this.x(t).y(i)},center(t,i){return this.cx(t).cy(i)},size(t,i){let s;return t&&i||(s=this._element.bbox()),t||(t=s.width/s.height*i),i||(i=s.height/s.width*t),this.width(t).height(i)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,i,s,n){if(4===arguments.length)return this.plot([t,i,s,n]);if(this._tryRetarget("plot",t))return this;const e=new xi(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){e.from(this._element.array())}),(function(t){return this._element.plot(e.at(t)),e.done()})),this._rememberMorpher("plot",e),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,i,s,n){return this._queueObject("viewbox",new ft(t,i,s,n))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),P(Hi,{rx:Ht,ry:Vt,from:Yt,to:Gt}),F(Hi,"Runner");class Ni extends zt{constructor(t,i=t){super(H("svg",t),i),this.namespace()}defs(){return this.isRoot()?V(this.node.querySelector("defs"))||this.put(new St):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof O.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:j,version:"1.1"}).attr("xmlns:xlink",A,L).attr("xmlns:svgjs","http://svgjs.dev/svgjs",L):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,L).attr("xmlns:svgjs",null,L)}root(){return this.isRoot()?this:super.root()}}C({Container:{nested:I((function(){return this.put(new Ni)}))}}),F(Ni,"Svg",!0);class Pi extends zt{constructor(t,i=t){super(H("symbol",t),i)}}C({Container:{symbol:I((function(){return this.put(new Pi)}))}}),F(Pi,"Symbol");var Ii={__proto__:null,plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(O.document.createTextNode(t)),this},length:function(){return this.node.getComputedTextLength()},x:function(t,i=this.bbox()){return null==t?i.x:this.attr("x",this.attr("x")+t-i.x)},y:function(t,i=this.bbox()){return null==t?i.y:this.attr("y",this.attr("y")+t-i.y)},move:function(t,i,s=this.bbox()){return this.x(t,s).y(i,s)},cx:function(t,i=this.bbox()){return null==t?i.cx:this.attr("x",this.attr("x")+t-i.cx)},cy:function(t,i=this.bbox()){return null==t?i.cy:this.attr("y",this.attr("y")+t-i.cy)},center:function(t,i,s=this.bbox()){return this.cx(t,s).cy(i,s)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},amove:function(t,i){return this.ax(t).ay(i)},build:function(t){return this._build=!!t,this}};class qi extends Tt{constructor(t,i=t){super(H("text",t),i),this.dom.leading=new Lt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Lt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let i=0;const s=this.dom.leading;this.each((function(n){const e=O.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=s*new Lt(e);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?i+=r:(this.attr("dy",n?r+i:0),i=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Lt(t.leading||1.3),this}text(t){if(void 0===t){const i=this.node.childNodes;let s=0;t="";for(let n=0,e=i.length;n<e;++n)"textPath"!==i[n].nodeName?(n!==s&&3!==i[n].nodeType&&!0===V(i[n]).dom.newLined&&(t+="\n"),t+=i[n].textContent):0===n&&(s=1);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let i=0,s=(t=(t+"").split("\n")).length;i<s;i++)this.newLine(t[i]);return this.build(!1).rebuild()}}P(qi,Ii),C({Container:{text:I((function(t=""){return this.put(new qi).text(t)})),plain:I((function(t=""){return this.put(new qi).plain(t)}))}}),F(qi,"Text");class Ri extends Tt{constructor(t,i=t){super(H("tspan",t),i),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof qi))return this;const i=t.index(this),s=O.window.getComputedStyle(this.node).getPropertyValue("font-size"),n=t.dom.leading*new Lt(s);return this.dy(i?n:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}P(Ri,Ii),C({Tspan:{tspan:I((function(t=""){const i=new Ri;return this._build||this.clear(),this.put(i).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),F(Ri,"Tspan");class Yi extends Tt{constructor(t,i=t){super(H("circle",t),i)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Lt(t).divide(2))}}P(Yi,{x:Dt,y:Ft,cx:Zt,cy:$t,width:Nt,height:Pt}),C({Container:{circle:I((function(t=0){return this.put(new Yi).size(t).move(0,0)}))}}),F(Yi,"Circle");class Gi extends zt{constructor(t,i=t){super(H("clipPath",t),i)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return Ct('svg [clip-path*="'+this.id()+'"]')}}C({Container:{clip:I((function(){return this.defs().put(new Gi)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const i=t instanceof Gi?t:this.parent().clip().add(t);return this.attr("clip-path",'url("#'+i.id()+'")')},unclip(){return this.attr("clip-path",null)}}}),F(Gi,"ClipPath");class Xi extends Bt{constructor(t,i=t){super(H("foreignObject",t),i)}}C({Container:{foreignObject:I((function(t,i){return this.put(new Xi).size(t,i)}))}}),F(Xi,"ForeignObject");var Qi={__proto__:null,dmove:function(t,i){return this.children().forEach((s=>{let n;try{n=s.bbox()}catch(t){return}const e=new lt(s),r=e.translate(t,i).transform(e.inverse()),h=new ot(n.x,n.y).transform(r);s.move(h.x,h.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,i=this.bbox()){return null==t?i.height:this.size(i.width,t,i)},move:function(t=0,i=0,s=this.bbox()){return this.dmove(t-s.x,i-s.y)},size:function(t,i,s=this.bbox()){const n=M(this,t,i,s),e=n.width/s.width,r=n.height/s.height;return this.children().forEach((t=>{const i=new ot(s).transform(new lt(t).inverse());t.scale(e,r,i.x,i.y)})),this},width:function(t,i=this.bbox()){return null==t?i.width:this.size(t,i.height,i)},x:function(t,i=this.bbox()){return null==t?i.x:this.move(t,i.y,i)},y:function(t,i=this.bbox()){return null==t?i.y:this.move(i.x,t,i)}};class Ui extends zt{constructor(t,i=t){super(H("g",t),i)}}P(Ui,Qi),C({Container:{group:I((function(){return this.put(new Ui)}))}}),F(Ui,"G");class Wi extends zt{constructor(t,i=t){super(H("a",t),i)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,A)}}P(Wi,Qi),C({Container:{link:I((function(t){return this.put(new Wi).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const i=t.parent();if(!i)return this.remove();const s=i.index(t);return i.add(this,s),t.remove(),this},linkTo(t){let i=this.linker();return i||(i=new Wi,this.wrap(i)),"function"==typeof t?t.call(i,i):i.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),F(Wi,"A");class Ji extends zt{constructor(t,i=t){super(H("mask",t),i)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return Ct('svg [mask*="'+this.id()+'"]')}}C({Container:{mask:I((function(){return this.defs().put(new Ji)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const i=t instanceof Ji?t:this.parent().mask().add(t);return this.attr("mask",'url("#'+i.id()+'")')},unmask(){return this.attr("mask",null)}}}),F(Ji,"Mask");class Ki extends Bt{constructor(t,i=t){super(H("stop",t),i)}update(t){return("number"==typeof t||t instanceof Lt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Lt(t.offset)),this}}C({Gradient:{stop:function(t,i,s){return this.put(new Ki).update(t,i,s)}}}),F(Ki,"Stop");class ts extends Bt{constructor(t,i=t){super(H("style",t),i)}addText(t=""){return this.node.textContent+=t,this}font(t,i,s={}){return this.rule("@font-face",{fontFamily:t,src:i,...s})}rule(t,i){return this.addText(function(t,i){if(!t)return"";if(!i)return t;let s=t+"{";for(const t in i)s+=t.replace(/([A-Z])/g,(function(t,i){return"-"+i.toLowerCase()}))+":"+i[t]+";";return s+="}",s}(t,i))}}C("Dom",{style(t,i){return this.put(new ts).rule(t,i)},fontface(t,i,s){return this.put(new ts).font(t,i,s)}}),F(ts,"Style");class is extends qi{constructor(t,i=t){super(H("textPath",t),i)}array(){const t=this.track();return t?t.array():null}plot(t){const i=this.track();let s=null;return i&&(s=i.plot(t)),null==t?s:this}track(){return this.reference("href")}}C({Container:{textPath:I((function(t,i){return t instanceof qi||(t=this.text(t)),t.path(i)}))},Text:{path:I((function(t,i=!0){const s=new is;let n;if(t instanceof _i||(t=this.defs().path(t)),s.attr("href","#"+t,A),i)for(;n=this.node.firstChild;)s.node.appendChild(n);return this.put(s)})),textPath(){return this.findOne("textPath")}},Path:{text:I((function(t){return t instanceof qi||(t=(new qi).addTo(this.parent()).text(t)),t.path(this)})),targets(){return Ct("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),is.prototype.MorphArray=gi,F(is,"TextPath");class ss extends Tt{constructor(t,i=t){super(H("use",t),i)}use(t,i){return this.attr("href",(i||"")+"#"+t,A)}}C({Container:{use:I((function(t,i){return this.put(new ss).use(t,i)}))}}),F(ss,"Use");const ns=T;function es(){let t,i={entities:[]},s=[];function n(t){switch(t){case"top":return 0;case"bottom":return 2;default:return 3}}function e(t,i){const s=t.entity.attr("width"),n=t.entity.attr("x");switch(i){case"top":case"bottom":return n+s/2;default:return n-s/2}}function r(t,i){const s=t.entity.attr("height"),n=t.entity.attr("y");switch(i){case"top":return n;case"bottom":return n+s;default:return n}}function h(){t.entities.forEach((t=>t.remove())),t.entities=[],s=[],i.labels||(i.labels=[]),i.labels=i.labels.map((t=>({id:t.id,value:t.value?t.value:"",x:t.x?t.x:0,y:t.y?t.y:0,color:t.color?t.color:"black"}))),i.entities.map((t=>{t.type=t.type?t.type:"entity","operation"===t.type&&(t.height=t.width)})),i.labels&&i.labels.length>0&&i.labels.forEach((i=>{t.labels.text(i.value).x(i.x).y(i.y)})),i.entities.forEach((i=>function(t,i){const s=t.group().attr({id:i.id});t.entities.push(s),i.background_color=i.background_color?i.background_color:"#f06",i.color=i.color?i.color:"#ffffff",i.radius=i.radius?i.radius:0,s.entity=s.rect(i.width,i.height).cx(i.width/2).cy(i.height/2).attr({fill:"#ffffff",stroke:i.color,"stroke-width":2}).radius(i.radius),i.class&&s.entity.attr("class",i.class),s.plain(i.text).cx(14).cy(i.height/2+6).attr({fill:i.color}),s.move(i.x,i.y)}(t,i))),s=i.lines,function(t,i){i.forEach((i=>function(t,i){let s="";const h=i.color||"#4c56cb",o=t.findOne("#"+i.from.element),u=t.findOne("#"+i.to.element),l=function(t,i,s){const h=[],o=r(i,t.from.point),u=r(s,t.to.point),l=e(i,t.from.point),c=e(s,t.to.point),a=n(t.from.point)-n(t.to.point);return 0===a&&("top"===t.from.point?o<=u?(h.push({x:l,y:o-20}),h.push({x:c,y:o-20})):(h.push({x:l,y:u-20}),h.push({x:c,y:u-20})):"bottom"===t.from.point?o<=u?(h.push({x:l,y:u+20}),h.push({x:c,y:u+20})):(h.push({x:l,y:o+20}),h.push({x:c,y:o+20})):l<=c?(h.push({x:c+20,y:o}),h.push({x:c+20,y:u})):(h.push({x:l+20,y:o}),h.push({x:l+20,y:u}))),2!==a&&-2!==a||l!==c&&(h.push({x:l,y:u+(o-u)/2}),h.push({x:c,y:u+(o-u)/2})),1!==a&&-1!==a&&3!==a&&-3!==a||("top"===t.from.point&&(o<u+20?(h.push({x:l,y:o-20}),h.push({x:c+20,y:o-20}),h.push({x:c+20,y:u})):h.push({x:l,y:u})),"bottom"===t.from.point&&(o>u-20?(h.push({x:l,y:o+20}),h.push({x:c+20,y:o+20}),h.push({x:c+20,y:u})):h.push({x:l,y:u}))),h}(i,o,u);s+=e(o,i.from.point)+","+r(o,i.from.point)+" ",l.forEach((t=>s+=t.x+","+t.y+" ")),s+=e(u,i.to.point)+","+r(u,i.to.point)+" ",i.polyline?i.polyline.plot(s):i.polyline=t.lines.polyline(s).fill("none").stroke({color:h,width:2,linecap:"round",linejoin:"round"}).attr("id",i.id)}(t,i)))}(t,s)}return{initalize:function(i,s,n){t=ns().addTo(i).size(s,n),t.entities=[],t.lines=t.group(),t.labels=t.group()},update:function(t){i=t,h()}}}P([Ni,Pi,Wt,Ut,ii],g("viewbox")),P([ti,Ai,Li,_i],g("marker")),P(qi,g("Text")),P(_i,g("Path")),P(St,g("Defs")),P([qi,Ri],g("Tspan")),P([Oi,qt,Qt,Hi],g("radius")),P(kt,g("EventTarget")),P(Ot,g("Dom")),P(Bt,g("Element")),P(Tt,g("Shape")),P([zt,Rt],g("Container")),P(Qt,g("Gradient")),P(Hi,g("Runner")),pt.extend([...new Set(w)]),function(t=[]){Mi.push(...[].concat(t))}([Lt,ht,ft,lt,jt,Jt,gi,ot]),P(Mi,{to(t){return(new xi).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,i,s,n,e){return this.fromArray(t.map((function(t,r){return n.step(t,i[r],s,e[r],e)})))}});const rs='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',hs='<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.7917 9.625L18.6667 13.5M18.6667 13.5L14.7917 17.375M18.6667 13.5H8.33333M25.125 13.5C25.125 15.0266 24.8243 16.5383 24.2401 17.9487C23.6559 19.3591 22.7996 20.6406 21.7201 21.7201C20.6406 22.7996 19.3591 23.6559 17.9487 24.2401C16.5383 24.8243 15.0266 25.125 13.5 25.125C11.9734 25.125 10.4617 24.8243 9.0513 24.2401C7.64089 23.6559 6.35936 22.7996 5.27988 21.7201C4.2004 20.6406 3.34411 19.3591 2.7599 17.9487C2.17569 16.5383 1.875 15.0266 1.875 13.5C1.875 10.4169 3.09977 7.45999 5.27988 5.27988C7.45999 3.09977 10.4169 1.875 13.5 1.875C16.5831 1.875 19.54 3.09977 21.7201 5.27988C23.9002 7.45999 25.125 10.4169 25.125 13.5Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',os=class{constructor(i){t(this,i),this.recipientStatusIcons=[],this.size="normal",this.theme="light",this.status=void 0,this.envelope=void 0,this.isOpen=void 0,this.containerId=`verdocs-status-indicator-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){var t;if(this.popper=o(this.summaryComponent,this.detailPanel,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]}),null===(t=this.envelope)||void 0===t?void 0:t.recipients){const t=[];this.envelope.recipients.forEach((i=>{const s=i.sequence-1;t[s]||(t[s]=[]);const n=`r-${s}-${t[s].length}`;t[s].push({...i,id:n})}));const i=Object.keys(t).length,s=40*i+40*(i+1);let n=0;Object.values(t).forEach((t=>{let i=140*t.length+40*(t.length+1);i>n&&(n=i)}));const e=[],r=[],h=[];let o=40;Object.entries(t).forEach((([i,s])=>{const u=20+(n-180*s.length)/2;s.forEach(((s,n)=>{var l;const[c,a]=(s.full_name||"Unknown").toUpperCase().split(" "),f=`${c} ${null==a?void 0:a.substring(0,1)}`,d={id:s.id,text:f,icon:this.getStatusIcon(s.status),x:180*n+u,y:o,width:140,height:40,color:this.getStatusColor(s.status),radius:8};e.push(d),h.push({icon:this.getStatusIcon(s.status),x:180*n+u+108,y:o+20-13}),null===(l=t[+i-1])||void 0===l||l.forEach((t=>{const i={id:`line-${t.id}-${d.id}`,from:{element:t.id,point:"bottom"},to:{element:d.id,point:"top"},color:this.getStatusColor(s.status)};r.push(i)}))})),o+=80})),this.recipientStatusIcons=h;const u=es();u.initalize(`#${this.containerId}`,n,s),u.update({entities:e,lines:r})}}showDropdown(){var t,i;this.isOpen=!0,this.detailPanel.setAttribute("data-show",""),this.detailPanel.removeAttribute("aria-hidden"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),null===(i=this.popper)||void 0===i||i.update()}handleHideDropdown(t){var i,s;"button"===(null===(i=null==t?void 0:t.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(s=null==t?void 0:t.target)||void 0===s?void 0:s.className)||this.hide()}toggleDropdown(){this.isOpen?this.hide():this.showDropdown()}hide(){var t;this.isOpen=!1,this.detailPanel.removeAttribute("data-show"),this.detailPanel.setAttribute("aria-hidden","true"),null===(t=this.popper)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]})))}getStatusColor(t){switch(t){case"invited":case"opened":case"accepted":case"signed":return"#654dcb";case"some-signed":case"submitted":case"complete":return"#55bc81";case"declined":return"#ff0000";case"canceled":case"in progress":case"pending":default:return"#999999"}}getStatusIcon(t){switch(t){case"accepted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.728 15.968C11.7067 15.9893 11.7013 16.0107 11.712 16.032C11.7227 16.0533 11.744 16.064 11.776 16.064H16.112C16.1653 16.064 16.208 16.0853 16.24 16.128C16.2827 16.16 16.304 16.2027 16.304 16.256V17.808C16.304 17.8613 16.2827 17.9093 16.24 17.952C16.208 17.984 16.1653 18 16.112 18H8.912C8.85867 18 8.81067 17.984 8.768 17.952C8.736 17.9093 8.72 17.8613 8.72 17.808V16.336C8.72 16.24 8.752 16.16 8.816 16.096C9.33867 15.584 9.872 15.0293 10.416 14.432C10.96 13.824 11.3013 13.4453 11.44 13.296C11.7387 12.944 12.0427 12.608 12.352 12.288C13.3227 11.2107 13.808 10.4107 13.808 9.888C13.808 9.51467 13.6747 9.21067 13.408 8.976C13.1413 8.73067 12.7947 8.608 12.368 8.608C11.9413 8.608 11.5947 8.73067 11.328 8.976C11.0613 9.21067 10.928 9.52533 10.928 9.92V10.32C10.928 10.3733 10.9067 10.4213 10.864 10.464C10.832 10.496 10.7893 10.512 10.736 10.512H8.848C8.79467 10.512 8.74667 10.496 8.704 10.464C8.672 10.4213 8.656 10.3733 8.656 10.32V9.568C8.688 8.992 8.86933 8.48533 9.2 8.048C9.53067 7.6 9.968 7.25867 10.512 7.024C11.0667 6.78933 11.6853 6.672 12.368 6.672C13.1253 6.672 13.7813 6.816 14.336 7.104C14.9013 7.38133 15.3333 7.76 15.632 8.24C15.9413 8.72 16.096 9.25333 16.096 9.84C16.096 10.288 15.984 10.7467 15.76 11.216C15.536 11.6853 15.2 12.192 14.752 12.736C14.4213 13.152 14.064 13.5627 13.68 13.968C13.296 14.3733 12.7253 14.96 11.968 15.728L11.728 15.968Z" fill="white"/></svg>';case"complete":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';case"in progress":return"light"===this.theme?hs:rs;case"canceled":return'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24V24ZM9 7.5C8.60218 7.5 8.22064 7.65804 7.93934 7.93934C7.65804 8.22064 7.5 8.60218 7.5 9V15C7.5 15.3978 7.65804 15.7794 7.93934 16.0607C8.22064 16.342 8.60218 16.5 9 16.5H15C15.3978 16.5 15.7794 16.342 16.0607 16.0607C16.342 15.7794 16.5 15.3978 16.5 15V9C16.5 8.60218 16.342 8.22064 16.0607 7.93934C15.7794 7.65804 15.3978 7.5 15 7.5H9Z" fill="#9095B3"/></svg>';case"declined":return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#FF0000"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12V12ZM13.5 18C13.5 18.3978 13.342 18.7794 13.0607 19.0607C12.7794 19.342 12.3978 19.5 12 19.5C11.6022 19.5 11.2206 19.342 10.9393 19.0607C10.658 18.7794 10.5 18.3978 10.5 18C10.5 17.6022 10.658 17.2206 10.9393 16.9393C11.2206 16.658 11.6022 16.5 12 16.5C12.3978 16.5 12.7794 16.658 13.0607 16.9393C13.342 17.2206 13.5 17.6022 13.5 18V18ZM12 4.5C11.6022 4.5 11.2206 4.65804 10.9393 4.93934C10.658 5.22064 10.5 5.60218 10.5 6V12C10.5 12.3978 10.658 12.7794 10.9393 13.0607C11.2206 13.342 11.6022 13.5 12 13.5C12.3978 13.5 12.7794 13.342 13.0607 13.0607C13.342 12.7794 13.5 12.3978 13.5 12V6C13.5 5.60218 13.342 5.22064 13.0607 4.93934C12.7794 4.65804 12.3978 4.5 12 4.5Z" fill="#F95353"/></svg>';case"invited":return"light"===this.theme?hs:rs;case"opened":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M11.4 6.848C11.4533 6.816 11.5333 6.8 11.64 6.8H13.576C13.6293 6.8 13.672 6.82133 13.704 6.864C13.7467 6.896 13.768 6.93867 13.768 6.992V17.808C13.768 17.8613 13.7467 17.9093 13.704 17.952C13.672 17.984 13.6293 18 13.576 18H11.704C11.6507 18 11.6027 17.984 11.56 17.952C11.528 17.9093 11.512 17.8613 11.512 17.808V9.04C11.512 9.01867 11.5013 8.99733 11.48 8.976C11.4587 8.95467 11.4373 8.94933 11.416 8.96L9.832 9.392L9.768 9.408C9.672 9.408 9.624 9.34933 9.624 9.232L9.576 7.856C9.576 7.74933 9.624 7.67467 9.72 7.632L11.4 6.848Z" fill="white"/></svg>';case"signed":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="#654DCB" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="#654DCB"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12.5" cy="12.5" r="11.5" stroke="white" stroke-width="2"/><path d="M15.632 12.656C15.8453 13.1467 15.952 13.712 15.952 14.352C15.952 14.928 15.856 15.4613 15.664 15.952C15.408 16.6347 14.976 17.168 14.368 17.552C13.7707 17.936 13.0613 18.128 12.24 18.128C11.4293 18.128 10.7147 17.9253 10.096 17.52C9.488 17.1147 9.05067 16.5653 8.784 15.872C8.63467 15.456 8.54933 15.008 8.528 14.528C8.528 14.4 8.592 14.336 8.72 14.336H10.608C10.736 14.336 10.8 14.4 10.8 14.528C10.8427 14.88 10.9013 15.1413 10.976 15.312C11.072 15.5893 11.2267 15.808 11.44 15.968C11.664 16.1173 11.9253 16.192 12.224 16.192C12.8213 16.192 13.232 15.9307 13.456 15.408C13.6053 15.088 13.68 14.7147 13.68 14.288C13.68 13.7867 13.6 13.376 13.44 13.056C13.1947 12.5547 12.784 12.304 12.208 12.304C12.0907 12.304 11.968 12.3413 11.84 12.416C11.712 12.48 11.5573 12.576 11.376 12.704C11.3333 12.736 11.2907 12.752 11.248 12.752C11.184 12.752 11.136 12.72 11.104 12.656L10.16 11.328C10.1387 11.296 10.128 11.2587 10.128 11.216C10.128 11.152 10.1493 11.0987 10.192 11.056L12.736 8.832C12.7573 8.81067 12.7627 8.78933 12.752 8.768C12.752 8.74667 12.736 8.736 12.704 8.736H8.944C8.89067 8.736 8.84267 8.72 8.8 8.688C8.768 8.64533 8.752 8.59733 8.752 8.544V6.992C8.752 6.93867 8.768 6.896 8.8 6.864C8.84267 6.82133 8.89067 6.8 8.944 6.8H15.616C15.6693 6.8 15.712 6.82133 15.744 6.864C15.7867 6.896 15.808 6.93867 15.808 6.992V8.752C15.808 8.83733 15.7707 8.91733 15.696 8.992L13.6 10.912C13.5787 10.9333 13.568 10.9547 13.568 10.976C13.5787 10.9973 13.6053 11.008 13.648 11.008C14.576 11.1893 15.2373 11.7387 15.632 12.656Z" fill="white"/></svg>';case"submitted":return"light"===this.theme?'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#50BE80"/></svg>':'<svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.7152 2.35464C7.71225 2.27504 8.65876 1.88287 9.41995 1.23399C10.2797 0.501758 11.3721 0.0996094 12.5013 0.0996094C13.6306 0.0996094 14.723 0.501758 15.5827 1.23399C16.3439 1.88287 17.2904 2.27504 18.2875 2.35464C19.4135 2.44463 20.4706 2.93273 21.2693 3.73145C22.068 4.53017 22.5561 5.58727 22.6461 6.71324C22.7251 7.70989 23.1173 8.65694 23.7667 9.41799C24.499 10.2777 24.9011 11.3701 24.9011 12.4994C24.9011 13.6287 24.499 14.7211 23.7667 15.5808C23.1179 16.342 22.7257 17.2885 22.6461 18.2855C22.5561 19.4115 22.068 20.4686 21.2693 21.2673C20.4706 22.0661 19.4135 22.5542 18.2875 22.6441C17.2904 22.7237 16.3439 23.1159 15.5827 23.7648C14.723 24.497 13.6306 24.8992 12.5013 24.8992C11.3721 24.8992 10.2797 24.497 9.41995 23.7648C8.65876 23.1159 7.71225 22.7237 6.7152 22.6441C5.58923 22.5542 4.53213 22.0661 3.73341 21.2673C2.93469 20.4686 2.44658 19.4115 2.35659 18.2855C2.27699 17.2885 1.88482 16.342 1.23595 15.5808C0.503711 14.7211 0.101562 13.6287 0.101562 12.4994C0.101562 11.3701 0.503711 10.2777 1.23595 9.41799C1.88482 8.65681 2.27699 7.71029 2.35659 6.71324C2.44658 5.58727 2.93469 4.53017 3.73341 3.73145C4.53213 2.93273 5.58923 2.44463 6.7152 2.35464V2.35464ZM18.2472 10.4952C18.5295 10.2029 18.6858 9.81138 18.6822 9.40497C18.6787 8.99857 18.5157 8.60981 18.2283 8.32242C17.9409 8.03504 17.5522 7.87203 17.1458 7.8685C16.7394 7.86497 16.3478 8.0212 16.0555 8.30354L10.9513 13.4077L8.9472 11.4035C8.65486 11.1212 8.26333 10.965 7.85692 10.9685C7.45052 10.972 7.06176 11.135 6.77438 11.4224C6.48699 11.7098 6.32398 12.0986 6.32045 12.505C6.31692 12.9114 6.47315 13.3029 6.7555 13.5952L9.8555 16.6952C10.1462 16.9858 10.5403 17.1491 10.9513 17.1491C11.3624 17.1491 11.7565 16.9858 12.0472 16.6952L18.2472 10.4952V10.4952Z" fill="#63C58E"/></svg>';case"some-signed":return"light"===this.theme?'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#654DCB" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.62395 13.5009L12.2073 16.0842L17.374 10.9176M8.11916 4.06786C9.04568 3.99392 9.92527 3.6296 10.6327 3.02678C11.4322 2.34513 12.4484 1.9707 13.499 1.9707C14.5495 1.9707 15.5657 2.34513 16.3652 3.02678C17.0726 3.6296 17.9522 3.99392 18.8787 4.06786C19.926 4.15118 20.9092 4.60497 21.6521 5.34781C22.3949 6.09064 22.8487 7.07389 22.932 8.12111C23.0059 9.04764 23.3703 9.92723 23.9731 10.6347C24.6547 11.4341 25.0292 12.4503 25.0292 13.5009C25.0292 14.5515 24.6547 15.5677 23.9731 16.3671C23.3703 17.0746 23.0059 17.9542 22.932 18.8807C22.8487 19.9279 22.3949 20.9112 21.6521 21.654C20.9092 22.3968 19.926 22.8506 18.8787 22.9339C17.9522 23.0079 17.0726 23.3722 16.3652 23.975C15.5657 24.6567 14.5495 25.0311 13.499 25.0311C12.4484 25.0311 11.4322 24.6567 10.6327 23.975C9.92527 23.3722 9.04568 23.0079 8.11916 22.9339C7.07194 22.8506 6.08869 22.3968 5.34585 21.654C4.60302 20.9112 4.14923 19.9279 4.06591 18.8807C3.99196 17.9542 3.62765 17.0746 3.02483 16.3671C2.34318 15.5677 1.96875 14.5515 1.96875 13.5009C1.96875 12.4503 2.34318 11.4341 3.02483 10.6347C3.62765 9.92723 3.99196 9.04764 4.06591 8.12111C4.14923 7.07389 4.60302 6.09064 5.34585 5.34781C6.08869 4.60497 7.07194 4.15118 8.11916 4.06786V4.06786Z" stroke="#63C58E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>';default:case"pending":return"light"===this.theme?'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#999999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>':'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.33333 12H7.345M12 12H12.0117M16.6667 12H16.6783M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.70791 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 9.21523 2.60625 6.54451 4.57538 4.57538C6.54451 2.60625 9.21523 1.5 12 1.5C14.7848 1.5 17.4555 2.60625 19.4246 4.57538C21.3938 6.54451 22.5 9.21523 22.5 12Z" stroke="#cccccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'}}getStatusMessage(t){switch(t){case"accepted":return"Accepted";case"complete":return"Completed";case"in progress":return"In Progress";case"canceled":return"Cancelled";case"declined":return"Declined";case"invited":return"Invited";case"opened":return"Opened";case"signed":return"Signed";case"submitted":return"Submitted";case"some-signed":return"Partly Signed";case"pending":return"Pending";default:return t}}render(){var t,i;let e=this.status||(null===(t=this.envelope)||void 0===t?void 0:t.status)||"pending";if(!this.status&&(null===(i=this.envelope)||void 0===i?void 0:i.recipients)){const t=this.envelope.recipients.filter((t=>"submitted"===t.status));t.length>0&&t.length!==this.envelope.recipients.length&&(e="some-signed")}const r=this.getStatusIcon(e),h=this.getStatusMessage(e);return s(n,{ref:t=>this.summaryComponent=t,class:`${this.theme} ${this.size} ${this.envelope?"has-document":""}`,"aria-label":"Click to View Details",onClick:t=>{t.stopPropagation(),t.preventDefault(),this.envelope&&this.toggleDropdown()},onBlur:t=>this.envelope&&this.handleHideDropdown(t)},s("span",{class:"icon",innerHTML:r}),s("span",{class:"content"},h),s("div",{class:"detail-panel",ref:t=>this.detailPanel=t},s("div",{id:`${this.containerId}`}),this.recipientStatusIcons.map((t=>s("span",{innerHTML:t.icon,style:{position:"absolute",top:`${t.y}px`,left:`${t.x}px`}})))))}};os.style='verdocs-status-indicator{display:-ms-flexbox;display:flex;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-status-indicator.has-document:hover{cursor:pointer;background:rgba(0, 0, 0, 0.1)}verdocs-status-indicator .icon{width:25px;height:25px;margin:0 10px 0 0}verdocs-status-indicator.dark{color:#ffffff}verdocs-status-indicator.small{font-size:16px}verdocs-status-indicator.small .icon{width:20px;height:20px;margin:0 8px 0 0}verdocs-status-indicator .detail-panel{display:none;background:#ffffff;border:1px solid #1e2031;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;border-radius:10px;font-weight:500}verdocs-status-indicator .detail-panel h1{font-size:44px;color:#092c4c}verdocs-status-indicator .detail-panel[data-show]{display:-ms-flexbox;display:flex}';export{l as verdocs_pagination,c as verdocs_quick_filter,d as verdocs_spinner,os as verdocs_status_indicator}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):o(e.value).then(s,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,o,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,o&&(r=s[0]&2?o["return"]:s[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;if(o=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;o=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];o=0}finally{n=r=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-05eb4fed.system.js","./p-3cac4136.system.js","./p-bbee73c8.system.js","./p-18a67b44.system.js","./p-54498887.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,i,n,o,r,s;return{setters:[function(e){t=e.r;i=e.c;n=e.h;o=e.H},function(e){r=e.g},function(e){s=e.g},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var a='verdocs-field-signature{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:83px;height:36px;display:block;font-size:11px;position:relative;letter-spacing:0.3px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-signature.disabled{opacity:0.5}verdocs-field-signature.done{border:none;opacity:1}verdocs-field-signature img{display:block;max-width:100%;max-height:100%}verdocs-field-signature button{-webkit-box-sizing:border-box;box-sizing:border-box;border:none;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-signature button.hide{display:none}verdocs-field-signature.required{border:1px solid #cc0000}verdocs-field-signature.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-signature verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-signature verdocs-button-panel[data-active],verdocs-field-signature verdocs-button-panel:hover{opacity:1}verdocs-field-signature verdocs-button-panel .icon svg{fill:#333333}verdocs-field-signature verdocs-button-panel .icon:hover svg{fill:#000000}';var l='<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>';var d=e("verdocs_field_signature",function(){function e(e){t(this,e);this.fieldChange=i(this,"fieldChange",7);this.settingsPress=i(this,"settingsPress",7);this.settingsChanged=i(this,"settingsChanged",7);this.deleted=i(this,"deleted",7);this.templateid="";this.field=null;this.name="";this.disabled=false;this.editable=false;this.moveable=false;this.done=false;this.roleindex=0;this.rerender=0;this.tempSignature=""}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleShow();console.log("focused",this);return[2]}))}))};e.prototype.hideDialog=function(){var e;(e=this.dialog)===null||e===void 0?void 0:e.remove();this.dialog=null};e.prototype.handleAdopt=function(e){var t;console.log("[SIGNATURE] Adopted signature");this.tempSignature=e.detail;(t=this.fieldChange)===null||t===void 0?void 0:t.emit(this.tempSignature);this.hideDialog()};e.prototype.handleShow=function(){var e=this;this.dialog=document.createElement("verdocs-signature-dialog");this.dialog.setAttribute("name",this.name);this.dialog.setAttribute("roleindex",this.roleindex);this.dialog.addEventListener("exit",(function(){return e.hideDialog()}));this.dialog.addEventListener("next",(function(t){return e.handleAdopt(t)}));document.body.append(this.dialog)};e.prototype.showSettingsPanel=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=document.getElementById("verdocs-settings-panel-".concat(this.field.name));if(e&&e.showPanel){e.showPanel()}return[2]}))}))};e.prototype.hideSettingsPanel=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=document.getElementById("verdocs-settings-panel-".concat(this.field.name));if(e&&e.hidePanel){e.hidePanel()}return[2]}))}))};e.prototype.render=function(){var e=this;var t,i,a;var d=s(this.field);var u=d.base64||this.tempSignature;var c=(i=(t=this.disabled)!==null&&t!==void 0?t:d.disabled)!==null&&i!==void 0?i:false;var h=this.field["rgba"]||r(this.roleindex);if(this.done){return n(o,{class:{done:this.done}},u&&n("img",{src:u,alt:"Signature"}))}return n(o,{class:{required:(a=this.field)===null||a===void 0?void 0:a.required,disabled:c},style:{backgroundColor:h}},u?n("img",{src:u,alt:"Signature"}):n("button",{onClick:function(){return!c&&e.handleShow()}},"Signature"),this.editable&&n("verdocs-button-panel",{icon:l,id:"verdocs-settings-panel-".concat(this.field.name)},n("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:function(){return e.hideSettingsPanel()},onDelete:function(){var t;(t=e.deleted)===null||t===void 0?void 0:t.emit({fieldName:e.field.name});return e.hideSettingsPanel()},onSettingsChanged:function(t){var i;(i=e.settingsChanged)===null||i===void 0?void 0:i.emit(t.detail);return e.hideSettingsPanel()}})))};return e}());d.style=a}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function r(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?i(e.value):s(e.value).then(a,r)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,a;return a={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-18a67b44.system.js","./p-2f0cd03d.system.js","./p-eaf0b189.system.js","./p-54498887.system.js","./p-cd40a5eb.system.js","./p-138fd801.system.js","./p-7fd7152d.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-dc9c4361.system.js","./p-b4d11d90.system.js"],(function(e){"use strict";var t,i,n,s,o,a,r,l,c,d,v,p,u,h;return{setters:[function(e){t=e.r;i=e.c;n=e.h;s=e.H},function(e){o=e.c},function(e){a=e.u},function(e){r=e.g;l=e.r},function(){},function(e){c=e.V},function(e){d=e.g},function(e){v=e.F},function(e){p=e.V},function(e){u=e.S},function(e){h=e.f},function(){}],execute:function(){var f='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';var g='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var b='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var w={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'};var x=e("verdocs_envelope_sidebar",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.toggle=i(this,"toggle",7);this.another=i(this,"another",7);this.store=null;this.endpoint=c.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showManageDialog=false;this.showCancelDialog=false;this.loading=true}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,s;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=o.sent();this.sortEnvelopeRecipients();this.loading=false;return[3,3];case 2:s=o.sent();console.log("[SIDEBAR] Error loading envelope",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new u(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(i=s.response)===null||i===void 0?void 0:i.data));return[3,3];case 3:return[2]}}))}))};e.prototype.sortEnvelopeRecipients=function(){var e,t;(t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.recipients.sort((function(e,t){return e.sequence===t.sequence?e.order-t.order:e.sequence-t.sequence}))};e.prototype.setTab=function(e){var t;this.panelOpen=e!==this.activeTab||!this.panelOpen;(t=this.toggle)===null||t===void 0?void 0:t.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var t,i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.canModifyRecipient=function(e){var t,i;return!e.claimed&&!["declined","signed","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,t){var i,n;console.log("[SIDEBAR] Recipient action",t,e);switch(t){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((function(){p("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);p("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":r(this.endpoint,e.envelope_id,e.role_name).then((function(e){var t=e.link;return navigator.clipboard.writeText(t)})).then((function(){return p("Link copied to clipboard.",{style:"success",duration:2e3})})).catch((function(e){console.log("[RECIPIENTS] Error getting link",e);p("Unable to get link: "+e.message,{style:"error"})}));break;case"modify":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":p("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:(n=this.store)===null||n===void 0?void 0:n.state,event:t})};e.prototype.cancelEnvelope=function(){var e=this;o(this.endpoint,this.envelopeId).then((function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(s){switch(s.label){case 0:console.log("[SIDEBAR] Envelope canceled",t);p("Envelope canceled",{style:"success"});n=this;return[4,d(this.endpoint,this.envelopeId,true)];case 1:n.store=s.sent();this.sortEnvelopeRecipients();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:(i=this.store)===null||i===void 0?void 0:i.state,event:"canceled"});return[2]}}))}))})).catch((function(e){console.log("[SIDEBAR] Error canceling envelope",e);p("Error canceling envelope: "+e.message,{style:"error"})}))};e.prototype.prepareHistoryEntries=function(){var e=this;var t,i,n,s,o,a,r,l,c,d,v,p;var u=[];var h=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.histories)||[];u.push({icon:"pencil",message:"Envelope created.",date:new Date((s=(n=this.store)===null||n===void 0?void 0:n.state)===null||s===void 0?void 0:s.created_at)});if(((a=(o=this.store)===null||o===void 0?void 0:o.state)===null||a===void 0?void 0:a.status)==="complete"){u.push({icon:"pencil",message:"Envelope completed.",date:new Date((l=(r=this.store)===null||r===void 0?void 0:r.state)===null||l===void 0?void 0:l.updated_at)})}var f=h.some((function(e){return e.event==="owner:canceled"}));if(((d=(c=this.store)===null||c===void 0?void 0:c.state)===null||d===void 0?void 0:d.status)==="canceled"&&!f){u.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date((p=(v=this.store)===null||v===void 0?void 0:v.state)===null||p===void 0?void 0:p.canceled_at)})}h.forEach((function(t){var i;var n=(i=e.store.state)===null||i===void 0?void 0:i.recipients.find((function(e){return e.role_name===t.role_name}));var s=(n===null||n===void 0?void 0:n.full_name)||"";switch(t.event.toLowerCase()){case"recipient:signed":u.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:declined":u.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:opened":switch(t.event_detail){case"email":case"mail":u.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(t.created_at)});break;case"sms":u.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(t.created_at)});break;case"in_person_link":u.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(t.created_at)});break;case"in_app":u.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(t.created_at)});break;default:u.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(t.created_at)})}break;case"recipient:submitted":switch(t.event_detail){case"approver":u.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(t.created_at)});break;default:u.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(t.created_at)});break}break;case"recipient:prepared":u.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:claimed":if(t.event_detail==="guest"){u.push({icon:"account_circle",message:"".concat(s," claimed the Verdoc as a guest."),date:new Date(t.created_at)})}else if(t.event_detail==="profile"){u.push({icon:"verified_user",message:"".concat(s," claimed the Verdoc as a verified user."),date:new Date(t.created_at)})}break;case"recipient:agreed":u.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(t.created_at)});break;case"recipient:invited":if(t.event_detail==="sms"){u.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(t.created_at)})}else{u.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(t.created_at)})}break;case"invitation:resent":u.push({icon:"mail",message:"Invitation was resent to ".concat(s," ").concat(t.event_detail==="reminder"?" by reminder":"","."),date:new Date(t.created_at)});break;case"envelope:cc":u.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(t.created_at)});break;case"recipient:delegated":u.push({icon:"people",message:t.event_detail,date:new Date(t.created_at)});break;case"recipient:updated_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"owner:updated_recipient_info":u.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"created":u.push({icon:"create",message:"Envelope was created.",date:new Date(t.created_at)});break;case"completed":u.push({icon:"done_all",message:"Envelope was completed.",date:new Date(t.created_at)});break;case"canceled":case"owner:canceled":u.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(t.created_at)});break;case"owner:get_in_person_link":u.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(t.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",t);break}}));u.sort((function(e,t){return t.date.getTime()-e.date.getTime()}));return u};e.prototype.canModify=function(e){var t,i;var n=["declined","signed","submitted","canceled"];var s=["complete","declined","canceled"];return e.claimed!==true&&n.indexOf(e.status)===-1&&s.indexOf((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)===-1};e.prototype.render=function(){var e=this;var t,i,o,r,l,c,d,p,u,f,x,y,_,k,z,D,M,E,S,V,B,I,L,H,T;if(!this.store.state){return n(s,null)}var R=this.endpoint.getSession();var C=a(R,this.store.state);var O=this.prepareHistoryEntries();var A=((i=(t=this.store)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.status)!=="pending"&&((r=(o=this.store)===null||o===void 0?void 0:o.state)===null||r===void 0?void 0:r.status)!=="in progress";return n(s,{class:this.panelOpen?"open":""},n("div",{class:"side-buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:g}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:m}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:b})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},(c=(l=this.store)===null||l===void 0?void 0:l.state)===null||c===void 0?void 0:c.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},h(new Date((p=(d=this.store)===null||d===void 0?void 0:d.state)===null||p===void 0?void 0:p.created_at),v)),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},h(new Date((f=(u=this.store)===null||u===void 0?void 0:u.state)===null||f===void 0?void 0:f.updated_at),v)),n("div",{class:"label"},"Status"),n("div",{class:"value"},(y=(x=this.store)===null||x===void 0?void 0:x.state)===null||y===void 0?void 0:y.status),n("div",{class:"label"},"Verdoc Owner ID"),n("div",{class:"value"},(k=(_=this.store)===null||_===void 0?void 0:_.state)===null||k===void 0?void 0:k.profile_id),n("div",{class:"label"},"Verdoc Owner Name"),n("div",{class:"value"},(M=(D=(z=this.store)===null||z===void 0?void 0:z.state)===null||D===void 0?void 0:D.profile)===null||M===void 0?void 0:M.first_name," ",(V=(S=(E=this.store)===null||E===void 0?void 0:E.state)===null||S===void 0?void 0:S.profile)===null||V===void 0?void 0:V.last_name),n("div",{class:"label"},"Verdoc Owner Email"),n("div",{class:"value"},(L=(I=(B=this.store)===null||B===void 0?void 0:B.state)===null||I===void 0?void 0:I.profile)===null||L===void 0?void 0:L.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),(T=(H=this.store)===null||H===void 0?void 0:H.state)===null||T===void 0?void 0:T.recipients.map((function(t,i){var s;var o=!e.canModify(t)||t.status!=="invited"&&t.status!=="opened";var a=e.canResendRecipient(t);return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},i+1),n("div",{class:"recipient-type"},t.role_name),n("div",{class:(s={"recipient-status":true},s[t.status]=true,s)},t.status),C&&!A&&n("verdocs-dropdown",{onOptionSelected:function(i){return e.handleRecipientAction(t,i.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!a},{id:"inperson",label:"Get In-Person Link",disabled:!o}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},t.full_name),n("div",{class:"recipient-name"},t.email),n("div",{class:"recipient-name"},t.phone)))})),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Turn On Reminders",onClick:function(){return e.showManageDialog=!A},disabled:A}),C&&n("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:function(){return e.showCancelDialog=!A},disabled:A})),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),O.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:w[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},h(e.date,v))))}))),this.showManageDialog&&n("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:false,onAnother:function(){var t;e.showManageDialog=false;(t=e.another)===null||t===void 0?void 0:t.emit({envelope:e.store.state})},onNext:function(){e.showManageDialog=false}}),this.showCancelDialog&&n("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.cancelEnvelope()}}))};return e}());x.style=f}}}));
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as s,a as o}from"./p-9cf1a627.js";import{i as r}from"./p-0d28cf05.js";import"./p-05788c2b.js";import{V as l}from"./p-f7948e0d.js";import{u as n}from"./p-feb442b1.js";import{g as a}from"./p-6de76553.js";import{g as d}from"./p-a6ecbbd5.js";import"./p-eab67c09.js";import"./p-c16d1ce1.js";import"./p-aa124212.js";import"./p-de60d3a8.js";import"./p-c220af42.js";const h=class{constructor(i){t(this,i),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.endpoint=l.getDefault(),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.xscale=1,this.yscale=1,this.rerender=0}async focusField(){this.inputEl.focus()}async showSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.showPanel&&t.showPanel()}async hideSettingsPanel(){const t=document.getElementById(`verdocs-settings-panel-${this.field.name}`);t&&t.hidePanel&&t.hidePanel()}componentDidRender(){r.dynamicDrop(!0),this.editable&&r(this.el).resizable({edges:{top:!1,bottom:!1,left:!0,right:!0},listeners:{start:this.handleResizeStart.bind(this),move:this.handleResize.bind(this),end:this.handleResizeEnd.bind(this)}})}handleResizeStart(t){t.preventDefault(),t.stopPropagation()}handleResize(t){let{x:e=0,y:i=0,h:s=0}=t.target.dataset,{width:o,height:r}=t.rect;e=(parseFloat(e)||0)+t.deltaRect.left,i=(parseFloat(i)||0)+t.deltaRect.top,s=(parseFloat(s)||0)+t.deltaRect.height,Object.assign(t.target.style,{width:`${o}px`,height:`${r}px`,transform:`translate(${e}px, ${i+s}px)`}),Object.assign(t.target.dataset,{x:e,y:i,h:s})}handleResizeEnd(t){const e={...d(this.field)},[i,s]=t.target.style.transform.split("(")[1].split(")")[0].split(",").map(parseFloat);e.width=Math.round(parseFloat(t.target.style.width)/this.xscale),e.height=Math.round(parseFloat(t.target.style.height)/this.yscale),e.x=Math.round(e.x+i/this.xscale),e.y=Math.round(e.y-s/this.yscale),n(this.endpoint,this.templateid,this.field.name,{setting:e}).then((()=>{var i;null===(i=this.settingsChanged)||void 0===i||i.emit({fieldName:this.field.name,settings:e}),Object.assign(t.target.dataset,{x:0,y:0,h:0})})).catch((t=>console.log("Field update failed",t)))}render(){var t,e,o,r;const l=d(this.field);let n=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:l.disabled)&&void 0!==e&&e;const h=this.field.rgba||a(this.roleindex),p=(null==l?void 0:l.result)||"",c=(l.width||150)/5;return this.done?i(s,{class:{done:this.done}},p):i(s,{class:{required:null===(o=this.field)||void 0===o?void 0:o.required,disabled:n,done:this.done},style:{backgroundColor:h}},i("input",{type:"text",name:this.field.name,placeholder:null==l?void 0:l.placeholder,tabIndex:null==l?void 0:l.order,value:p,disabled:n,required:null===(r=this.field)||void 0===r?void 0:r.required,ref:t=>this.inputEl=t,maxlength:c}),this.editable&&i("verdocs-button-panel",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20"><path d="m7.5 18.5-.312-2.667q-.188-.125-.396-.25-.209-.125-.396-.229l-2.479 1.063-2.521-4.334 2.125-1.625q.021-.104.021-.229v-.458q0-.125-.021-.229L1.396 7.917l2.521-4.313 2.5 1.042q.166-.104.375-.229.208-.125.396-.229L7.5 1.5h5l.312 2.688q.188.104.396.229.209.125.396.229l2.479-1.042 2.521 4.313-2.125 1.625v.916l2.125 1.625-2.521 4.334-2.5-1.063q-.166.104-.375.229-.208.125-.396.25L12.5 18.5Zm2.479-5.521q1.229 0 2.104-.875T12.958 10q0-1.229-.875-2.104t-2.104-.875q-1.208 0-2.094.875Q7 8.771 7 10t.885 2.104q.886.875 2.094.875Zm0-1.75q-.5 0-.864-.364Q8.75 10.5 8.75 10t.365-.865q.364-.364.864-.364t.865.364q.364.365.364.865t-.364.865q-.365.364-.865.364ZM10.021 10Zm-.792 6.521h1.542l.25-2.146q.625-.167 1.198-.51.573-.344 1.031-.823l2.021.854.771-1.271-1.771-1.354q.104-.292.156-.615.052-.323.052-.656 0-.292-.052-.604-.052-.313-.135-.646l1.77-1.375-.77-1.271-2.021.875q-.479-.5-1.042-.833-.562-.334-1.187-.5l-.271-2.167H9.208l-.25 2.167q-.625.166-1.187.5-.563.333-1.042.812l-2-.854-.771 1.271 1.73 1.354q-.084.333-.136.656Q5.5 9.708 5.5 10t.052.604q.052.313.136.667l-1.73 1.354.771 1.271 2-.834q.479.459 1.042.792.562.334 1.187.5Z"/></svg>',id:`verdocs-settings-panel-${this.field.name}`},i("verdocs-template-field-properties",{templateId:this.templateid,fieldName:this.field.name,onClose:()=>this.hideSettingsPanel(),onDelete:()=>{var t;return null===(t=this.deleted)||void 0===t||t.emit({fieldName:this.field.name}),this.hideSettingsPanel()},onSettingsChanged:t=>{var e;return null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()},helpText:'Text boxes may be used to capture simple text input. Participant-entered values will be stored for later retrieval via the "name" field.<br /><br />If marked required, the participant must complete the field before proceeding.'})))}get el(){return o(this)}};h.style='verdocs-field-textbox{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;width:150px;height:15px;display:block;font-size:11px;position:relative;letter-spacing:-0.2px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-textbox.disabled{opacity:0.5}verdocs-field-textbox input{width:100%;height:100%;border:none;outline:none;padding:0 3px;font-size:11px;background:none;font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87)}verdocs-field-textbox input.hide{display:none}verdocs-field-textbox.required{border:1px solid #cc0000}verdocs-field-textbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-textbox verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-textbox verdocs-button-panel[data-active],verdocs-field-textbox verdocs-button-panel:hover{opacity:1}verdocs-field-textbox verdocs-button-panel .icon svg{fill:#333333}verdocs-field-textbox verdocs-button-panel .icon:hover svg{fill:#000000}verdocs-field-textbox [data-lastpass-icon-root]{display:none !important}';export{h as verdocs_field_textbox}
@@ -1 +0,0 @@
1
- var n=function(n,t){return n.api.post("/templates",{params:t}).then((function(n){return n.data}))},t=function(n,t){return n.api.get("/templates/".concat(t)).then((function(n){return n.data}))},e=["name","is_personal","is_public","sender","description","roles","fields"],r=function(n,t,r){var o={timeout:12e4,onUploadProgress:function(n){var t=n.total||1,e=n.loaded||0;null==r||r(Math.floor(100*e/(t||1)),e,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 u=new FormData;return e.forEach((function(n){void 0!==t[n]&&u.append(n,t[n])})),t.documents.forEach((function(n){u.append("documents",n,n.name)})),n.api.post("/templates",u,o).then((function(n){return n.data}))}return n.api.post("/templates",t,o).then((function(n){return n.data}))},o=function(n,t,e){return n.api.put("/templates/".concat(t),e).then((function(n){return n.data}))},u=function(n,t){return void 0===t&&(t={}),e=void 0,r=void 0,u=function(){return function(n,t){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(i=0)),i;)try{if(e=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(n,i)}catch(n){a=[6,n],r=0}finally{e=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}(this,(function(){return[2,n.api.post("/templates/summary",t).then((function(n){return n.data}))]}))},new((o=void 0)||(o=Promise))((function(n,t){function i(n){try{c(u.next(n))}catch(n){t(n)}}function a(n){try{c(u.throw(n))}catch(n){t(n)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof o?e:new o((function(n){n(e)}))).then(i,a)}c((u=u.apply(e,r||[])).next())}));var e,r,o,u};export{u as a,n as b,r as c,t as g,o as u}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i,H as s}from"./p-9cf1a627.js";import"./p-05788c2b.js";import{P as l,V as a,c as r}from"./p-f7948e0d.js";import{a as o}from"./p-40f3a175.js";import{V as n}from"./p-ed416acf.js";import{S as d}from"./p-7a1b2643.js";var c=function(e,t){return t.every((function(t){return((null==e?void 0:e.permissions)||[]).includes(t)}))};const p=class{constructor(i){e(this,i),this.sdkError=t(this,"sdkError",7),this.viewEnvelope=t(this,"viewEnvelope",7),this.finishLater=t(this,"finishLater",7),this.viewAll=t(this,"viewAll",7),this.handleOptionSelected=(e,t)=>{console.log("option selected",e,t),"createdoc"===e||"createlink"===e&&n("Link creation is coming soon!")},this.endpoint=a.getDefault(),this.items=5,this.view=void 0,this.page=0,this.count=0,this.loading=!0,this.name="",this.containing="",this.sharing="all",this.starred="all",this.sort="updated_at",this.selectedTemplates=[],this.templates=[]}async componentWillLoad(){var e,t,i;try{if(this.endpoint.loadSession(),!this.endpoint.session)return void console.log("[ENVELOPES] Must be authenticated");let e={page:this.page,ascending:"name"===this.sort||"star_counter"===this.sort,sort_by:this.sort};"all"!==this.sharing&&(e.is_personal="personal"===this.sharing,e.is_public="public"===this.sharing),"all"!==this.starred&&(e.is_starred="starred"===this.starred),""!==this.name.trim()&&(e.name=this.name.trim());const t=await o(this.endpoint,e);console.log("[TEMPLATES] Got envelopes",t),this.templates=t.result,this.count=t.total,this.loading=!1}catch(s){console.log("[ENVELOPES] Error with preview session",s),null===(e=this.sdkError)||void 0===e||e.emit(new d(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}}canCreate(){return function(e){return c(e,[l.TEMPLATE_CREATOR_CREATE_PERSONAL])}(e=this.endpoint.session)||function(e){return c(e,[l.TEMPLATE_CREATOR_CREATE_ORG])}(e)||function(e){return c(e,[l.TEMPLATE_CREATOR_CREATE_PUBLIC])}(e);var e}canDelete(e){return r(this.endpoint.session,"delete",e)}canEdit(e){return r(this.endpoint.session,"write",e)}canPreview(e){return r(this.endpoint.session,"read",e)}render(){return this.loading?i(s,{style:{minHeight:"300px"}},i("verdocs-loader",null)):i(s,null,i("div",{class:"header"},i("div",{class:"filter"},i("verdocs-text-input",{id:"verdocs-filter-name",value:this.name,autocomplete:"off",placeholder:"Filter by Name...",onInput:e=>{this.name=e.target.value}})),i("div",{class:"flex flex-row gap-3 items-center"},i("div",{class:"filter"},i("verdocs-text-input",{id:"verdocs-filter-containing",value:this.containing,autocomplete:"off",placeholder:"Fields Containing...",onInput:e=>{this.containing=e.target.value}}))),i("div",{class:"flex flex-1"})),this.templates.slice(0,this.items||100).map((e=>{const t=[{label:"Preview / Send",id:"createdoc",disabled:!this.canPreview(e)},{label:"Create Link",id:"createlink",disabled:!0},{label:"Sign Now",id:"signnow",disabled:!0},{label:""},{label:"Submissions",id:"submitted"},{label:""},{label:"Get Preview Link",id:"link",disabled:!this.canPreview(e)},{label:"Edit",id:"edit",disabled:!this.canEdit(e)},{label:"Delete",id:"delete",disabled:!this.canDelete(e)}];return i("div",{class:"template",onClick:()=>{}},i("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></svg>'}),i("div",{class:"name"},e.name),i("div",{class:"spacer"}),i("div",{style:{marginTop:"12px"}},i("verdocs-dropdown",{options:t,onOptionSelected:t=>this.handleOptionSelected(t.detail.id,e)})))})),this.templates.length?i("div",null):i("div",{class:"mt-4 border-2 px-20 py-20 text-center"},"No matching templates found. Please adjust your filters and try again."))}};p.style='verdocs-templates-list{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-templates-list .template{display:-ms-flexbox;display:flex;margin:3px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border:1px solid #eee;background:#fff;padding:8px 20px}verdocs-templates-list .template svg{width:32px;height:32px}@media screen and (max-width: 1300px){verdocs-templates-list .template svg{width:24px;height:24px}}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:18px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;height:50px;margin:0 12px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}';export{p as verdocs_templates_list}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as s,H as i}from"./p-9cf1a627.js";import{g as o}from"./p-6de76553.js";import{g as r}from"./p-a6ecbbd5.js";import{F as n}from"./p-de60d3a8.js";import{f as l}from"./p-c220af42.js";import"./p-eab67c09.js";import"./p-c16d1ce1.js";import"./p-05788c2b.js";import"./p-aa124212.js";const a=class{constructor(s){t(this,s),this.settingsChanged=e(this,"settingsChanged",7),this.deleted=e(this,"deleted",7),this.templateid="",this.field=null,this.disabled=!1,this.editable=!1,this.moveable=!1,this.done=!1,this.roleindex=0,this.rerender=0}async focusField(){this.el.focus()}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,a;const d=r(this.field),p=null!==(e=null!==(t=this.disabled)&&void 0!==t?t:d.disabled)&&void 0!==e&&e,c=this.field.rgba||o(this.roleindex),m=d.value||(new Date).toISOString(),h=new Date(m),v=l(h,n);return this.done?s(i,{class:{done:this.done}},v):s(i,{class:{required:null===(a=this.field)||void 0===a?void 0:a.required,disabled:p},style:{backgroundColor:c}},s("input",{type:"text",placeholder:null==d?void 0:d.placeholder,tabIndex:null==d?void 0:d.order,value:v,disabled:!0,ref:t=>this.el=t}),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 null===(e=this.settingsChanged)||void 0===e||e.emit(t.detail),this.hideSettingsPanel()}})))}};a.style='verdocs-field-timestamp{width:160px;height:15px;opacity:0.5;display:block;font-size:9px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-field-timestamp.done{opacity:1}verdocs-field-timestamp input{width:100%;height:100%;font-size:9px;background:none;font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-box-sizing:border-box;box-sizing:border-box;color:rgba(0, 0, 0, 0.87);border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-timestamp input.hide{display:none}verdocs-field-timestamp.required{border:1px solid #cc0000}verdocs-field-timestamp.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}verdocs-field-timestamp verdocs-button-panel{top:-3px;left:-2px;opacity:0.5;z-index:1000;cursor:pointer;position:absolute;-webkit-transform:scale(0.6);transform:scale(0.6)}verdocs-field-timestamp verdocs-button-panel[data-active],verdocs-field-timestamp verdocs-button-panel:hover{opacity:1}verdocs-field-timestamp verdocs-button-panel .icon svg{fill:#333333}verdocs-field-timestamp verdocs-button-panel .icon:hover svg{fill:#000000}';export{a as verdocs_field_timestamp}
@@ -1 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function l(e){try{a(i.next(e))}catch(e){s(e)}}function r(e){try{a(i["throw"](e))}catch(e){s(e)}}function a(e){e.done?n(e.value):o(e.value).then(l,r)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,l;return l={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return a([e,t])}}function a(l){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(s=l[0]&2?o["return"]:l[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;if(o=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;o=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){n.label=l[1];break}if(l[0]===6&&n.label<s[1]){n.label=s[1];s=l;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(l);break}if(s[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];o=0}finally{i=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-54498887.system.js","./p-cd40a5eb.system.js","./p-7efdefa3.system.js","./p-05eb4fed.system.js","./p-fb3d4091.system.js","./p-3cac4136.system.js","./p-187b20b7.system.js","./p-b4d11d90.system.js","./p-92ca2aef.system.js","./p-bbee73c8.system.js","./p-18a67b44.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,n,i,o,s,l,r,a,d,c,p;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H},function(){},function(e){s=e.V},function(e){l=e.i;r=e.a},function(e){a=e.g},function(e){d=e.g},function(e){c=e.a},function(e){p=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var u='verdocs-send{padding:10px;position:relative;background:#ffffff;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:none}verdocs-send.sendable{display:-ms-flexbox;display:flex}verdocs-send .recipients{position:relative}verdocs-send .left-line{top:32px;left:20px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-send .level{display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;margin-left:50px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:8px 0 4px 0;border-bottom:1px solid #97979744}verdocs-send .level .level-icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-send .level .level-icon svg{fill:#00000089}verdocs-send .level .recipient{height:30px;display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px;color:#000000;cursor:pointer;font-size:14px;-ms-flex-align:center;align-items:center;border-radius:30px;-ms-flex-direction:row;flex-direction:row;background:#dddddd;white-space:nowrap;border:2px solid #dddddd;padding:2px 10px 2px 14px}verdocs-send .level .recipient .icon{width:22px;height:22px;-ms-flex:0 0 22px;flex:0 0 22px;margin:0 0 0 10px}verdocs-send .level .recipient .icon svg{width:22px;height:22px;fill:#333333;outline:none}verdocs-send .level .complete{-ms-flex:1;flex:1;height:30px;display:-ms-flexbox;display:flex;color:#000000;font-size:14px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:3px 10px 3px 2px}verdocs-send .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-direction:row;flex-direction:row}verdocs-send verdocs-contact-picker{left:0;top:41px;z-index:10;position:absolute;border:1px solid #dddddd;-webkit-box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1);box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1)}';var f='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></svg>';var v='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"></path></svg>';var h='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>';var m='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="m18 7-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41 6 19l1.41-1.41L1.83 12 .41 13.41z"></path></svg>';var x=e("verdocs_send",function(){function e(e){t(this,e);this.send=n(this,"send",7);this.exit=n(this,"exit",7);this.sdkError=n(this,"sdkError",7);this.searchContacts=n(this,"searchContacts",7);this.levels=[];this.store=null;this.endpoint=s.getDefault();this.templateId=null;this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.rolesAtLevel={};this.showPickerForId="";this.sessionContacts=[];this.rolesCompleted={}}e.prototype.reset=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.rolesCompleted={};return[2]}))}))};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,o,s,l,r,a,c,u,f,v,h;return __generator(this,(function(m){switch(m.label){case 0:m.trys.push([0,2,,3]);u=this.endpoint.loadSession();if(!this.templateId){console.log("[SEND] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[SEND] Unable to start builder session, must be authenticated");return[2]}f=this;return[4,d(this.endpoint,this.templateId,true)];case 1:f.store=m.sent();if(!((t=(e=this.store)===null||e===void 0?void 0:e.state)===null||t===void 0?void 0:t.is_sendable)){console.warn("[SEND] Template is not sendable",this.templateId)}if((i=(n=this.store)===null||n===void 0?void 0:n.state)===null||i===void 0?void 0:i.roles){v={};this.rolesCompleted={};(s=(o=this.store)===null||o===void 0?void 0:o.state)===null||s===void 0?void 0:s.roles.forEach((function(e){var t=e.sequence-1;v[t]||(v[t]=[]);var n="r-".concat(t,"-").concat(v[t].length);v[t].push(__assign(__assign({},e),{id:n}))}));this.rolesAtLevel=v;this.levels=Object.keys(v).map((function(e){return+e}));this.levels.sort((function(e,t){return e-t}))}if((l=u===null||u===void 0?void 0:u.session)===null||l===void 0?void 0:l.profile){this.sessionContacts.push({id:u.session.profile.id,name:"".concat(u.session.profile.first_name," ").concat(u.session.profile.last_name),email:u.session.profile.email,phone:u.session.profile.phone})}return[3,3];case 2:h=m.sent();console.log("[SEND] Error with preview session",h);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new p(h.message,(a=h.response)===null||a===void 0?void 0:a.status,(c=h.response)===null||c===void 0?void 0:c.data));return[3,3];case 3:return[2]}}))}))};e.prototype.getLevelIcon=function(e){if(e<0){return i("div",{class:"level-icon",innerHTML:v})}else if(e>=this.levels.length){return i("div",{class:"level-icon",innerHTML:m})}else{return i("div",{class:"level-icon",innerHTML:h})}};e.prototype.handleSelectContact=function(e,t){e.preventDefault();this.rolesCompleted[t.id]=__assign(__assign({},t),e.detail);this.showPickerForId=""};e.prototype.handleClickRole=function(e,t){e.stopPropagation();this.showPickerForId=t.id};e.prototype.handleSend=function(e){var t,n,i;e.stopPropagation();(t=this.send)===null||t===void 0?void 0:t.emit({roles:Object.values(this.rolesCompleted),name:(i=(n=this.store)===null||n===void 0?void 0:n.state)===null||i===void 0?void 0:i.name,template_id:this.templateId})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.render=function(){var e=this;var t,n,s,d;var p=(((n=(t=this.store)===null||t===void 0?void 0:t.state)===null||n===void 0?void 0:n.roles)||[]).map((function(e){return e.name}))||[];var u=Object.values(this.rolesCompleted).filter((function(e){return l(e.email)||r(e.phone)}));var v=u.length>=p.length;return i(o,{class:{sendable:(d=(s=this.store)===null||s===void 0?void 0:s.state)===null||d===void 0?void 0:d.is_sendable}},i("div",{class:"recipients"},i("div",{class:"left-line"}),i("div",{class:"level level-start"},this.getLevelIcon(-1),i("div",{class:"complete"},"Send Envelope")),this.levels.map((function(t){return i("div",{class:"level level-".concat(t)},e.getLevelIcon(t),e.rolesAtLevel[t].map((function(t){var n,o,s,l,r,d;var u=!t.email;return u?i("div",{class:"recipient",style:{backgroundColor:a(c(p,t.name))},onClick:function(n){return e.handleClickRole(n,t)}},(o=(n=e.rolesCompleted[t.id])===null||n===void 0?void 0:n.full_name)!==null&&o!==void 0?o:t.name,i("div",{class:"icon",innerHTML:f}),e.showPickerForId===t.id&&i("verdocs-contact-picker",{onExit:function(){return e.showPickerForId=""},onNext:function(n){return e.handleSelectContact(n,t)},contactSuggestions:e.sessionContacts,templateRole:(s=e.rolesCompleted[t.id])!==null&&s!==void 0?s:t,onSearchContacts:function(t){var n;return(n=e.searchContacts)===null||n===void 0?void 0:n.emit(t.detail)}})):i("div",{class:"recipient",style:{borderColor:a(c(p,t.name))},onClick:function(n){return e.handleClickRole(n,t)}},(r=(l=e.rolesCompleted[t.id])===null||l===void 0?void 0:l.full_name)!==null&&r!==void 0?r:t.full_name,i("div",{class:"icon",innerHTML:f}),e.showPickerForId===t.id&&i("verdocs-contact-picker",{onExit:function(){return e.showPickerForId=""},onNext:function(n){return e.handleSelectContact(n,t)},contactSuggestions:e.sessionContacts,templateRole:(d=e.rolesCompleted[t.id])!==null&&d!==void 0?d:t,onSearchContacts:function(t){var n;return(n=e.searchContacts)===null||n===void 0?void 0:n.emit(t.detail)}}))})))})),i("div",{class:"level level-done"},this.getLevelIcon(this.levels.length),i("div",{class:"complete"},"Signing Complete"))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",size:"small",variant:"outline",onClick:function(t){return e.handleCancel(t)}}),i("verdocs-button",{label:"Send",size:"small",disabled:!v,onClick:function(t){return e.handleSend(t)}})))};return e}());x.style=u}}}));