@verdocs/web-sdk 4.1.3 → 4.1.4

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 (249) hide show
  1. package/dist/cjs/verdocs-auth.cjs.entry.js +4 -4
  2. package/dist/cjs/verdocs-button-panel.cjs.entry.js +2 -2
  3. package/dist/cjs/verdocs-button_3.cjs.entry.js +4 -4
  4. package/dist/cjs/verdocs-checkbox_3.cjs.entry.js +2 -2
  5. package/dist/cjs/verdocs-component-error.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +9 -11
  7. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +3 -3
  8. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  11. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  12. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  13. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +9 -9
  20. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  24. package/dist/cjs/verdocs-tabs.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  30. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  31. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  32. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  33. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  34. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  35. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  36. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  37. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  38. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  39. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  40. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  41. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  42. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  43. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  44. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  45. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  46. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  47. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  48. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  49. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +2 -2
  50. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  51. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  52. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  53. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  54. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  55. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
  56. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  57. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  58. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  59. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  60. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  61. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  62. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +5 -5
  63. package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
  64. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +8 -10
  65. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  66. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  67. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  68. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  69. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  70. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  71. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  72. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  73. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  74. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  75. package/dist/components/verdocs-auth.js +5 -5
  76. package/dist/components/verdocs-button-panel2.js +2 -2
  77. package/dist/components/verdocs-button2.js +1 -1
  78. package/dist/components/verdocs-checkbox2.js +1 -1
  79. package/dist/components/verdocs-component-error2.js +1 -1
  80. package/dist/components/verdocs-contact-picker2.js +8 -10
  81. package/dist/components/verdocs-dialog2.js +1 -1
  82. package/dist/components/verdocs-dropdown2.js +1 -1
  83. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  84. package/dist/components/verdocs-envelopes-list.js +6 -6
  85. package/dist/components/verdocs-file-chooser2.js +1 -1
  86. package/dist/components/verdocs-help-icon2.js +1 -1
  87. package/dist/components/verdocs-initial-dialog2.js +1 -1
  88. package/dist/components/verdocs-kba-dialog.js +2 -2
  89. package/dist/components/verdocs-loader2.js +1 -1
  90. package/dist/components/verdocs-ok-dialog2.js +1 -1
  91. package/dist/components/verdocs-organization-card.js +1 -1
  92. package/dist/components/verdocs-pagination2.js +1 -1
  93. package/dist/components/verdocs-portal2.js +1 -1
  94. package/dist/components/verdocs-progress-bar2.js +1 -1
  95. package/dist/components/verdocs-quick-filter2.js +1 -1
  96. package/dist/components/verdocs-quick-functions2.js +1 -1
  97. package/dist/components/verdocs-radio-button2.js +1 -1
  98. package/dist/components/verdocs-search-box2.js +1 -1
  99. package/dist/components/verdocs-search-tabs.js +1 -1
  100. package/dist/components/verdocs-search.js +1 -1
  101. package/dist/components/verdocs-select-input2.js +1 -1
  102. package/dist/components/verdocs-signature-dialog2.js +1 -1
  103. package/dist/components/verdocs-spinner2.js +1 -1
  104. package/dist/components/verdocs-status-indicator2.js +2 -2
  105. package/dist/components/verdocs-table2.js +2 -2
  106. package/dist/components/verdocs-tabs2.js +1 -1
  107. package/dist/components/verdocs-template-card.js +1 -1
  108. package/dist/components/verdocs-template-document-page2.js +1 -1
  109. package/dist/components/verdocs-template-role-properties2.js +7 -7
  110. package/dist/components/verdocs-template-sender2.js +1 -1
  111. package/dist/components/verdocs-template-star2.js +1 -1
  112. package/dist/components/verdocs-template-tags.js +1 -1
  113. package/dist/components/verdocs-templates-list.js +7 -7
  114. package/dist/components/verdocs-text-input2.js +2 -2
  115. package/dist/components/verdocs-toggle-button2.js +1 -1
  116. package/dist/components/verdocs-toggle.js +1 -1
  117. package/dist/components/verdocs-toolbar-icon2.js +1 -1
  118. package/dist/components/verdocs-upload-dialog2.js +1 -1
  119. package/dist/esm/verdocs-auth.entry.js +5 -5
  120. package/dist/esm/verdocs-button-panel.entry.js +2 -2
  121. package/dist/esm/verdocs-button_3.entry.js +4 -4
  122. package/dist/esm/verdocs-checkbox_3.entry.js +2 -2
  123. package/dist/esm/verdocs-component-error.entry.js +1 -1
  124. package/dist/esm/verdocs-contact-picker_2.entry.js +9 -11
  125. package/dist/esm/verdocs-dialog_2.entry.js +3 -3
  126. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  127. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  128. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  129. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  130. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  131. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  132. package/dist/esm/verdocs-loader.entry.js +1 -1
  133. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  134. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  135. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  136. package/dist/esm/verdocs-quick-functions_2.entry.js +2 -2
  137. package/dist/esm/verdocs-radio-button_3.entry.js +9 -9
  138. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  139. package/dist/esm/verdocs-search.entry.js +1 -1
  140. package/dist/esm/verdocs-spinner.entry.js +1 -1
  141. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  142. package/dist/esm/verdocs-tabs.entry.js +1 -1
  143. package/dist/esm/verdocs-template-card.entry.js +1 -1
  144. package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
  145. package/dist/esm/verdocs-template-star.entry.js +1 -1
  146. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  147. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  148. package/dist/esm/verdocs-toggle.entry.js +1 -1
  149. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-button-panel.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-component-error.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  155. package/dist/esm-es5/verdocs-dialog_2.entry.js +1 -1
  156. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  157. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  158. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  159. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  160. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  161. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  166. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-tabs.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  179. package/dist/verdocs-web-sdk/{p-e6992b79.system.entry.js → p-03aedbe9.system.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-a5c6eac3.entry.js → p-03f8d33f.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/{p-67c3b3d1.entry.js → p-0713ab8d.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-bb0ed696.system.entry.js → p-08210588.system.entry.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-ba675574.system.entry.js → p-0e022e75.system.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-bb1dc544.system.entry.js → p-1030a0b7.system.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/{p-eaf4de2f.entry.js → p-10947d22.entry.js} +1 -1
  186. package/dist/verdocs-web-sdk/{p-e7b29b46.system.entry.js → p-1175926f.system.entry.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-597bd8aa.system.entry.js → p-12c26b19.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-ccdb7d88.system.entry.js → p-141a992e.system.entry.js} +1 -1
  189. package/dist/verdocs-web-sdk/{p-d4331e4f.system.entry.js → p-17050bcd.system.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/{p-ad2814b4.entry.js → p-1b6664c9.entry.js} +1 -1
  191. package/dist/verdocs-web-sdk/{p-0a0ac65f.entry.js → p-1f7d5165.entry.js} +1 -1
  192. package/dist/verdocs-web-sdk/{p-0ff14c4d.entry.js → p-20593762.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-42ec5f5b.entry.js → p-316b550f.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
  195. package/dist/verdocs-web-sdk/p-340d2dfb.entry.js +1 -0
  196. package/dist/verdocs-web-sdk/{p-973a8142.entry.js → p-3dcdaf36.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/{p-7e6fa885.entry.js → p-3f246894.entry.js} +1 -1
  198. package/dist/verdocs-web-sdk/{p-3093ede7.entry.js → p-3f9b5a02.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-d61235cf.entry.js → p-4bb08486.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-f91f3248.entry.js → p-50439d9f.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/p-50aa20d5.system.entry.js +1 -0
  202. package/dist/verdocs-web-sdk/{p-7b8ae86c.entry.js → p-5961ce51.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/p-5982a19f.system.entry.js +1 -0
  204. package/dist/verdocs-web-sdk/{p-748ed4ef.entry.js → p-65df6ef0.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-1dd1d686.entry.js → p-67e9f8a5.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-a908ebeb.system.entry.js → p-6bbea733.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/{p-43962d76.system.entry.js → p-6fa08e21.system.entry.js} +1 -1
  208. package/dist/verdocs-web-sdk/{p-f54b4cc0.system.entry.js → p-6fc92b73.system.entry.js} +1 -1
  209. package/dist/verdocs-web-sdk/{p-84caf3e1.system.entry.js → p-708b5430.system.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-7b222135.system.entry.js → p-71efd549.system.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-71f53fd6.entry.js +1 -0
  212. package/dist/verdocs-web-sdk/{p-b0df559c.entry.js → p-753d0e16.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/{p-72c7e548.entry.js → p-77ec3348.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-4291db9f.entry.js → p-7a4930b1.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/p-7c61d3ea.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/{p-5be462d9.system.entry.js → p-8a820b88.system.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/{p-3a8b2213.system.entry.js → p-8ca0c8c2.system.entry.js} +1 -1
  218. package/dist/verdocs-web-sdk/{p-1fec2d1e.system.entry.js → p-8ee31f33.system.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/{p-bf8e7b5a.system.entry.js → p-9452b95d.system.entry.js} +1 -1
  220. package/dist/verdocs-web-sdk/{p-314321b8.system.entry.js → p-9ce9d353.system.entry.js} +1 -1
  221. package/dist/verdocs-web-sdk/{p-05c9b6c9.system.entry.js → p-a11d459d.system.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/p-a1289b75.system.entry.js +1 -0
  223. package/dist/verdocs-web-sdk/{p-b3eab86c.entry.js → p-aa6fbe00.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-99510d53.system.entry.js → p-aed8139a.system.entry.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-5070ad92.system.entry.js → p-c293ad2e.system.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/p-c777f6c0.entry.js +1 -0
  227. package/dist/verdocs-web-sdk/{p-7ed27280.entry.js → p-d6592bda.entry.js} +1 -1
  228. package/dist/verdocs-web-sdk/{p-c598ea74.system.entry.js → p-daf07a17.system.entry.js} +1 -1
  229. package/dist/verdocs-web-sdk/{p-84781ec3.system.entry.js → p-dcbad099.system.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/{p-cf06ba29.system.entry.js → p-e1679e5b.system.entry.js} +1 -1
  231. package/dist/verdocs-web-sdk/{p-2b6566eb.entry.js → p-e42587b7.entry.js} +1 -1
  232. package/dist/verdocs-web-sdk/{p-62728531.entry.js → p-efc547dc.entry.js} +1 -1
  233. package/dist/verdocs-web-sdk/{p-76297fa0.system.entry.js → p-f2884b26.system.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/{p-9c05218b.entry.js → p-f44b9bd0.entry.js} +1 -1
  235. package/dist/verdocs-web-sdk/{p-6c5aee88.entry.js → p-f80e65ce.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-13450dcd.system.entry.js → p-fbfdfcd4.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/{p-f2f6c646.system.entry.js → p-fdb77c22.system.entry.js} +1 -1
  238. package/dist/verdocs-web-sdk/{p-000b8414.entry.js → p-fe0c473d.entry.js} +1 -1
  239. package/dist/verdocs-web-sdk/{p-bbae0a6c.entry.js → p-ff6a4383.entry.js} +1 -1
  240. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  241. package/package.json +2 -2
  242. package/dist/custom-elements.json +0 -2126
  243. package/dist/verdocs-web-sdk/p-4542fd4b.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-62af2ee6.system.entry.js +0 -1
  245. package/dist/verdocs-web-sdk/p-73042665.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-7c3b1e47.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-96352ec7.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-ac7d07de.system.entry.js +0 -1
  249. package/dist/verdocs-web-sdk/p-b699eeef.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as a,H as o}from"./p-73a6f972.js";const c=class{constructor(a){e(this,a),this.template=void 0}render(){var e,c,t,s;return a(o,{key:"92db1527b29db1accce1236ad170c1d071bd9af9"},a("span",{key:"6df84f4e3f47f2a3bde4de1aaeb55cfdaaf24cec",class:"name"},this.template.name),a("span",{key:"6be1cd61a1496fa579f25ff06fcd5295149aada1",class:"org-name"},(null===(e=this.template.organization)||void 0===e?void 0:e.name)||"Public"),a("hr",{key:"8f95b065445cf18ec71b2976c5c75d7335857f1a"}),a("div",{key:"cce4e78b58f924de6b68bcf947af20dbed74ae15",class:"controls"},a("div",{key:"124cf87ac1ab5f25d505004ebba55c0ad00d3b34",class:"control"},a("span",{key:"b39885d89f97c7f29077f5a0e8e943c2fd74e8a0",class:"icon",innerHTML:'<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>'}),a("span",{key:"7fa8e32525ed221d9907e658ca6f982fed16dba6",class:"value"},this.template.star_counter)),a("div",{key:"37fb74c5e9302e8c310e2052b725183bac587c3d",class:"control secondary"},a("span",{key:"bef0ebc42c5f9062bf67d86a097dd0d4a8e03e11",class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>'}),a("span",{key:"3763e7ec4ac4e73ce712c460101223d6f8663b2a",class:"value"},(null===(s=null===(t=null===(c=this.template)||void 0===c?void 0:c.documents)||void 0===t?void 0:t[0])||void 0===s?void 0:s.pages)||1)),a("div",{key:"e4f9d35db361036a46297e82ecf1528058e214bc",class:"control secondary"},a("span",{key:"985da1d76dfeecb4e57e440fbf788c18453696a1",class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>'}),a("span",{key:"f098866929e19bf47e30a660aba05a3e508561ed",class:"value"},this.template.counter)),a("span",{key:"c742e5c6e1087a9b0f1a8b037476759274838c42",class:"additional-controls",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>'})))}};c.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';export{c as verdocs_template_card}
1
+ import{r as e,h as a,H as c}from"./p-73a6f972.js";const o=class{constructor(a){e(this,a),this.template=void 0}render(){var e,o,t,s;return a(c,{key:"b5bcce45639a644e66e263a09329e8f345bb51e4"},a("span",{key:"db094c3a8e429af167b56da7df97cdb0d35f5ff7",class:"name"},this.template.name),a("span",{key:"153ce6c4aab0beb2cd5f012bbe58b8d4fc700b1f",class:"org-name"},(null===(e=this.template.organization)||void 0===e?void 0:e.name)||"Public"),a("hr",{key:"709fbc0c993eb1b54ff6568fc4c639aea696d6f6"}),a("div",{key:"d7d1bda1d9e6ac5aab6cae62503fe5dfa2e040ca",class:"controls"},a("div",{key:"5dddc88cea131c3bee2d4fa9a3e2f1522fe3593a",class:"control"},a("span",{key:"e114a05a3cdf3176aa453ca845f7dc2ff1f2b7bb",class:"icon",innerHTML:'<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>'}),a("span",{key:"3a2ccb4728c0129fb182efc3e763075e8a923768",class:"value"},this.template.star_counter)),a("div",{key:"a9bfe80a726cfeb90338d0add15f99acd5ca2cae",class:"control secondary"},a("span",{key:"67b8a3b64f5d40a79e35cc2ca229123c90dad701",class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>'}),a("span",{key:"3459e3e3dac0596876ec2905b6668813d986aee9",class:"value"},(null===(s=null===(t=null===(o=this.template)||void 0===o?void 0:o.documents)||void 0===t?void 0:t[0])||void 0===s?void 0:s.pages)||1)),a("div",{key:"f3a2d438d3b748061cfcf16028e352ca6337eb04",class:"control secondary"},a("span",{key:"17d0a3ad7050436ccda2da74120c2348fcfa4fd7",class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>'}),a("span",{key:"6737878e795f633feb30ae0d28fc4b0c90f122eb",class:"value"},this.template.counter)),a("span",{key:"cbfde7c6ac4860d9b0720b458bf210194c25ebe0",class:"additional-controls",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>'})))}};o.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';export{o as verdocs_template_card}
@@ -1 +1 @@
1
- import{r as e,c as i,h as o,F as a,H as l}from"./p-73a6f972.js";const s=class{constructor(o){e(this,o),this.exit=i(this,"exit",7),this.next=i(this,"next",7),this.step=1,this.steps=3,this.helptitle="Previous Addresses",this.helptext="Please select the address below that you have most recently lived at.",this.mode="choice",this.label="PIN",this.placeholder="Enter your PIN...",this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"],this.response=""}handleCancel(){this.exit.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.next.emit(this.response)}render(){return o(l,{key:"c82a5d8b5257732255861a67a51ed6a0b2675b77"},o("div",{key:"c102ab713567ed43cef7c344df8a0936274b6f6e",class:"background-overlay",onClick:e=>this.handleDismiss(e)},o("div",{key:"e932de4a3ca2402a965744ab02f9d6c3b8f86645",class:"dialog"},o("div",{key:"569f5420ada83b65ecc93147aed387086f659b34",class:"heading"},"Confirm Your Identity",this.steps>1?o("span",{class:"step"},"(",this.step,"/",this.steps,")"):o(a,null)),o("div",{key:"2ffd440933f4e7c44a72eab3fdfd36f8e8a630c8",class:"help-box"},o("div",{key:"79b7cba2e72d7fd7e576b1f965014e67759727e5",class:"help-icon",innerHTML:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>'}),o("div",{key:"5ccf156e49de25f88804641ab4b67536838f2876",class:"help-details"},o("div",{key:"857feb344fd1ba7fdabda6c090e64b03ea1150bb",class:"help-title"},this.helptitle),o("div",{key:"b0f0bde18492545dcb767a6a73b70fbebb497ecb",class:"help-text"},this.helptext))),"choice"===this.mode?o("div",{class:"choices"},this.choices.map((e=>o("div",{class:"choice "+(e===this.response?"selected":""),onClick:()=>{this.response=e}},e)))):o("div",{class:"input"},o("label",{htmlFor:"verdocs-kba-input"},this.label),o("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),o("div",{key:"b76320da31947aa982e3d93c766e395b4133d15f",class:"buttons"},o("verdocs-button",{key:"bc7c181fc05366341cc4c4e2e2f00749b5ac377e",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),o("verdocs-button",{key:"dbd938075496f58916586ae1ab89290ab73d129a",label:"Done",onClick:()=>this.handleDone(),disabled:!this.response})))))}};s.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{line-height:10px;font-weight:500}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';export{s as verdocs_kba_dialog}
1
+ import{r as e,c as i,h as a,F as o,H as l}from"./p-73a6f972.js";const s=class{constructor(a){e(this,a),this.exit=i(this,"exit",7),this.next=i(this,"next",7),this.step=1,this.steps=3,this.helptitle="Previous Addresses",this.helptext="Please select the address below that you have most recently lived at.",this.mode="choice",this.label="PIN",this.placeholder="Enter your PIN...",this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"],this.response=""}handleCancel(){this.exit.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.next.emit(this.response)}render(){return a(l,{key:"fe1da0f339b8b52e5dabd6100c7e88af2a40aaa5"},a("div",{key:"a91b16903154b73086a2b05e855a14fb54e9daeb",class:"background-overlay",onClick:e=>this.handleDismiss(e)},a("div",{key:"a187924ae061a868fa324b7778ced4ab95059f20",class:"dialog"},a("div",{key:"5b2eb7ad87874b0949bfa4833f0b34618e8debab",class:"heading"},"Confirm Your Identity",this.steps>1?a("span",{class:"step"},"(",this.step,"/",this.steps,")"):a(o,null)),a("div",{key:"e91d0ddb2ba76d9fd905bc45c5e08b6067f1510d",class:"help-box"},a("div",{key:"fd401dfde6c84732158b09dc40e66c084854cc91",class:"help-icon",innerHTML:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>'}),a("div",{key:"bc76bb5cab3c4ce22b0fb6d0b78922faa4840d79",class:"help-details"},a("div",{key:"350e0c2eabc1a8d7a6b00e16f6ebe64c13992af8",class:"help-title"},this.helptitle),a("div",{key:"709eaa3289dd1d6dd47cc0069c3962bc84ac54ab",class:"help-text"},this.helptext))),"choice"===this.mode?a("div",{class:"choices"},this.choices.map((e=>a("div",{class:"choice "+(e===this.response?"selected":""),onClick:()=>{this.response=e}},e)))):a("div",{class:"input"},a("label",{htmlFor:"verdocs-kba-input"},this.label),a("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),a("div",{key:"043617294d39adf7d57d3c9f7b35945d77846992",class:"buttons"},a("verdocs-button",{key:"1f290335efe194ccf702e7982c24ef05057f8c65",label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),a("verdocs-button",{key:"32ffcbce091afa81e42e689fb6fa9a5e2b6e55a0",label:"Done",onClick:()=>this.handleDone(),disabled:!this.response})))))}};s.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{line-height:10px;font-weight:500}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';export{s as verdocs_kba_dialog}
@@ -1 +1 @@
1
- import{r as o,c as r,h as e,H as d,g as n}from"./p-73a6f972.js";const t="verdocs-dropdown-menu-items",i=class{constructor(e){o(this,e),this.optionSelected=r(this,"optionSelected",7),this.options=[]}handleResize(){this.repositionDropdown.bind(this)}handleSelectOption(o,r){var e;o.stopPropagation(),null===(e=this.optionSelected)||void 0===e||e.emit(r),this.hide()}repositionDropdown(){var o,r;const e=document.getElementById(t);if(e){const d=document.body.scrollWidth,n=null===(o=this.dropdownButton)||void 0===o?void 0:o.getBoundingClientRect(),t=(null===(r=this.dropdownButton)||void 0===r?void 0:r.offsetWidth)||28;console.log("Repositioning dropdown",{bodyWidth:d,buttonRect:n,triggerHeight:t},e),e.style.top=`${((null==n?void 0:n.top)||0)+t}px`,e.style.right=`${Math.max(0,d-((null==n?void 0:n.right)||0))}px`}}showDropdown(){this.hide();const o=document.createElement("div");o.id=t,this.options.forEach((r=>{if(r.label){const e=document.createElement("button");e.className="verdocs-dropdown-menu-option",e.disabled=r.disabled||!1,e.innerHTML=r.label,e.addEventListener("click",(o=>this.handleSelectOption(o,r))),o.appendChild(e)}else{const r=document.createElement("div");r.className="verdocs-dropdown-menu-separator",o.appendChild(r)}})),document.body.appendChild(o),setTimeout(this.repositionDropdown.bind(this),50)}toggle(o){o.stopPropagation(),document.getElementById(t)?this.hide():this.showDropdown()}hide(){var o;null===(o=document.getElementById(t))||void 0===o||o.remove()}render(){return e(d,{key:"747b2358b38f0f0290936973c4aaf2ec08a1a846"},e("button",{key:"733cdd06681a5324c4598d2a11e93b78e7ade53b",class:"arrow",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>',"aria-label":"Open Menu",onClick:o=>this.toggle(o),ref:o=>this.dropdownButton=o}))}get el(){return n(this)}};i.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';export{i as verdocs_dropdown}
1
+ import{r as o,c as e,h as r,H as d,g as n}from"./p-73a6f972.js";const t="verdocs-dropdown-menu-items",i=class{constructor(r){o(this,r),this.optionSelected=e(this,"optionSelected",7),this.options=[]}handleResize(){this.repositionDropdown.bind(this)}handleSelectOption(o,e){var r;o.stopPropagation(),null===(r=this.optionSelected)||void 0===r||r.emit(e),this.hide()}repositionDropdown(){var o,e;const r=document.getElementById(t);if(r){const d=document.body.scrollWidth,n=null===(o=this.dropdownButton)||void 0===o?void 0:o.getBoundingClientRect(),t=(null===(e=this.dropdownButton)||void 0===e?void 0:e.offsetWidth)||28;console.log("Repositioning dropdown",{bodyWidth:d,buttonRect:n,triggerHeight:t},r),r.style.top=`${((null==n?void 0:n.top)||0)+t}px`,r.style.right=`${Math.max(0,d-((null==n?void 0:n.right)||0))}px`}}showDropdown(){this.hide();const o=document.createElement("div");o.id=t,this.options.forEach((e=>{if(e.label){const r=document.createElement("button");r.className="verdocs-dropdown-menu-option",r.disabled=e.disabled||!1,r.innerHTML=e.label,r.addEventListener("click",(o=>this.handleSelectOption(o,e))),o.appendChild(r)}else{const e=document.createElement("div");e.className="verdocs-dropdown-menu-separator",o.appendChild(e)}})),document.body.appendChild(o),setTimeout(this.repositionDropdown.bind(this),50)}toggle(o){o.stopPropagation(),document.getElementById(t)?this.hide():this.showDropdown()}hide(){var o;null===(o=document.getElementById(t))||void 0===o||o.remove()}render(){return r(d,{key:"3a0ecbe96fffea8c916de9a657afd891dc95fa01"},r("button",{key:"bf194fdde69ec6a4e9edfa897eefe57daaa847d2",class:"arrow",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>',"aria-label":"Open Menu",onClick:o=>this.toggle(o),ref:o=>this.dropdownButton=o}))}get el(){return n(this)}};i.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';export{i as verdocs_dropdown}
@@ -0,0 +1 @@
1
+ System.register(["./p-e748b2d2.system.js","@verdocs/js-sdk"],(function(e){"use strict";var c,r,s;return{setters:[function(e){c=e.r;r=e.h},function(e){s=e.VerdocsEndpoint}],execute:function(){var a='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';var o=a;var i=e("verdocs_search",function(){function e(e){c(this,e);this.endpoint=s.getDefault()}e.prototype.render=function(){return r("div",{key:"5494b903b38da3f8695866720032ae5664885e5a",class:"container"},r("verdocs-search-box",{key:"2985fc2bbe16dfe08f400cabb2299f5732ef2967",endpoint:this.endpoint}),r("div",{key:"564828ab1a9fa57b3e2555441862cd4fcd80fbf0",class:"boxes"},r("verdocs-search-activity",{key:"f7c560b1e8c9cfc394133e317b894c8d5e3b7f8b",type:"recent",endpoint:this.endpoint}),r("verdocs-search-activity",{key:"1faf9b5b1ff51c9654678738448bf4be85b1d58c",type:"saved",endpoint:this.endpoint}),r("verdocs-search-activity",{key:"7763f2600598f258ba21003e89b3b709f07448c6",type:"starred",endpoint:this.endpoint}),r("verdocs-quick-functions",{key:"4ef3c0faaee2cb381cef414b558c8b69b7f32a75",endpoint:this.endpoint})))};return e}());i.style=o}}}));
@@ -1 +1 @@
1
- import{r as e,h as t,H as o,c as i}from"./p-73a6f972.js";import{VerdocsEndpoint as a,updateTemplateRole as s,deleteTemplateRole as r,updateTemplate as d}from"@verdocs/js-sdk";import{g as l,u as n,d as c}from"./p-316fc185.js";import{g as p}from"./p-f69d8d39.js";import{g as b}from"./p-9ec464df.js";import{S as f}from"./p-fd97809c.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h=class{constructor(t){e(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(o,{key:"75bec4ec1ed0b9f7683a6b3c43c987c5f8c01539",class:{disabled:this.disabled}},t("input",{key:"7493bdafdaef15d48696a51c4d1e9a7c162bdf8f",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{key:"c0d1aa6861cb76ec86f5995a047e9d923e9a951e",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};h.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const m=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.delete=i(this,"delete",7),this.sdkError=i(this,"sdkError",7),this.templateStore=null,this.fieldStore=null,this.roleStore=null,this.endpoint=a.getDefault(),this.templateId="",this.roleName="",this.sender="everyone",this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.full_name="",this.email="",this.phone="",this.delegator=!1}async componentWillLoad(){var e,t,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLE_PROPERTIES] Unable to start builder session, must be authenticated");this.templateStore=await b(this.endpoint,this.templateId,!1),this.fieldStore=p(this.templateId),this.roleStore=l(this.templateId);const e=this.roleStore.state.roles.find((e=>e.name===this.roleName));e&&(this.name=e.name,this.type=e.type,this.full_name=e.full_name,this.email=e.email,this.phone=e.phone,this.delegator=e.delegator,console.log("[ROLE_PROPERTIES] Editing role",e))}catch(i){console.log("[ROLE_PROPERTIES Error with preview session",i),null===(e=this.sdkError)||void 0===e||e.emit(new f(i.message,null===(t=i.response)||void 0===t?void 0:t.status,null===(o=i.response)||void 0===o?void 0:o.data))}}handleCancel(e){var t;e.stopPropagation();const o=this.roleStore.state.roles.find((e=>e.name===this.roleName));o&&(this.name=o.name,this.type=o.type,this.full_name=o.full_name,this.email=o.email,this.phone=o.phone,this.delegator=o.delegator),this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,s(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.full_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLE_PROPERTIES] Update result",e),this.saving=!1,this.dirty=!1,n(this.roleStore,this.roleName,e),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("[ROLE_PROPERTIES Update error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&r(this.endpoint,this.templateId,this.roleName).then((()=>{var e;c(this.roleStore,this.roleName),null===(e=this.delete)||void 0===e||e.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("[ROLE_PROPERTIES Deletion error",e)}))}render(){const e=this.fieldStore.get("fields").some((e=>e.role_name===this.roleName));return t(o,{key:"c2728e2fb47306d99d3eebaaa38130322d37ad64"},t("div",{key:"a329fa189219f99c747e915ee2f0a41de978474f",class:"background-overlay",onClick:e=>this.handleCancel(e)},t("div",{key:"a0325d8949c173d73ba2a48af5924d015e746266",class:"dialog"},t("form",{key:"378e17dc270ae28779557793f6669143c86a41a3",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("verdocs-text-input",{key:"20f8de0856c8e5c847b7e1852edc437a8c6427fb",id:"verdocs-role-name",label:"Role Name",value:this.name,autocomplete:"off",disabled:e,helpText:e?"This role has fields assigned and can no longer be renamed.":"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Role Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),t("div",{key:"35310c43c72be59031d74995d5e4e08fd74b34bd",class:"row"},t("div",{key:"4b47e8595ad1119d4027049b56acd43443a4b09a",class:"input-label"},"Type:"),t("verdocs-select-input",{key:"97f18bfb8052d6f0690bf2d570a42a0a604556b9",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),t("verdocs-help-icon",{key:"3f4059c1a1232aa08449e4518ccd9473066430df",text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),t("verdocs-text-input",{key:"df9c1439da6894608dad4ef81dddf21e2591115f",id:"verdocs-recipient-email",label:"Full Name",value:this.full_name,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.full_name=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"af0ac9644670cb4b3e5607eb75e6c0aa9746ed76",id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"f7055746726c2d199beac4206847bc1534de5601",id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),t("div",{key:"12903a2f12f8f750cecaf0332a69099f67b4d530",class:"row"},t("div",{key:"9959973a48e154155cc6b5892ae81a5105d62d33",class:"input-label"},"May Delegate:"),t("div",{key:"0dd8af27a2fd4cf6c8a641a39ea3332887b1f71a",class:"checkbox-wrapper"},t("verdocs-checkbox",{key:"8a145a05207fc1cae42d5c3e4596c2d673ecc097",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked,this.dirty=!0}})),t("verdocs-help-icon",{key:"d725f8446967e2c145e0e5ecad8416ee7e368bc8",text:"If enabled, this recipient may delegate their actions to another individual."})),t("div",{key:"eae241c53cc8213d5c14bb213b41923620e17be3",class:"buttons"},t("button",{key:"5eb5792ff0f79aab12bcfbb20ffdf58d431f4103",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),t("div",{key:"bca3f871c37e1a346d98620ee0fd1dd0dfce9917",style:{flex:"1"}}),t("verdocs-button",{key:"b40fb1ff70cb3cce19b793f940fc0038d12490ea",size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{key:"51270815757b0fd6803d527ac3388f1e2af16b25",size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};m.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const u=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.sdkError=i(this,"sdkError",7),this.store=null,this.endpoint=a.getDefault(),this.templateId="",this.sender="everyone",this.saving=!1}async componentWillLoad(){var e,t,o,i,a;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[SENDER] Unable to start builder session, must be authenticated");this.store=await b(this.endpoint,this.templateId,!1),this.sender=null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.sender}catch(e){console.log("[SENDER] Error with preview session",e),null===(o=this.sdkError)||void 0===o||o.emit(new f(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(a=e.response)||void 0===a?void 0:a.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,d(this.endpoint,this.templateId,{sender:e}).then((t=>{var o;console.log("Update result",t),(null===(o=this.store)||void 0===o?void 0:o.state)&&(this.store.state.sender=e),this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return t(o,{key:"f8d8cca0bfceaf4770487a2013d8b4719236ddf4"},t("div",{key:"2f3adaefa9ee3dcbac271ee02d76fa46bbe58e10",class:"background-overlay",onClick:e=>this.handleDismiss(e)},t("div",{key:"659f51292068e189d9c995db643fae5c2acb15b3",class:"dialog"},t("div",{key:"3015a1be71fe71983fce44357433b5e2186c4946",class:"options"},t("div",{key:"ce818b1d25630a8f487fbaff0c5db38119a6f824",class:"option"},t("verdocs-radio-button",{key:"8a4d98f6553248a88a024c1d024d3a4145a202ed",name:"template-sender",value:"everyone",checked:"everyone"===this.sender,onInput:()=>this.handleSelectSetting("everyone")}),t("div",{key:"e2924ad4589dfcdca2ad342852f517f919e99914",class:"description"},t("div",{key:"6bf123474dc857917dd84c971bb3e634eecc8868",class:"name"},"Anyone on the Web"),t("verdocs-help-icon",{key:"53129fa609dcb99cf6f1ddc76867c09a90359973",text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),t("div",{key:"4b566084de0d35ade13b0d82354ddfab42fb4be2",class:"option"},t("verdocs-radio-button",{key:"3704512d6d38faf3f275fb039a1c97cf2464b0e2",name:"template-sender",value:"everyone_as_creator",checked:"everyone_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("everyone_as_creator")}),t("div",{key:"8dd4ffbcc1727fb28bec4e404dcc1a4a7cec9431",class:"description"},t("div",{key:"2c4093c5ecff6192c6ec94ffa0a32ae516a4d13d",class:"name"},"Anyone on the Web as me"),t("verdocs-help-icon",{key:"73b99113cd11ac40ef3784fe23b523e54f2a8d5a",text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),t("div",{key:"528f64ff348386c14b0cea7d4983bccd664a0645",class:"option"},t("verdocs-radio-button",{key:"f1538d9c86ad7f2dc337a42f53f49f86faa3a469",name:"template-sender",value:"organization_member",checked:"organization_member"===this.sender,onInput:()=>this.handleSelectSetting("organization_member")}),t("div",{key:"ddd5129726d3b2a0786341c2df2f8012e783d643",class:"description"},t("div",{key:"449c1a5eb124b7006f319f96ff617d6480cab3a9",class:"name"},"Anyone in my organization"),t("verdocs-help-icon",{key:"8d01e0fba4bfb8b5d12390b5c138b19d6362a055",text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),t("div",{key:"76f686a2976749ffa02be5b95d9d61ded315714c",class:"option"},t("verdocs-radio-button",{key:"00c5b5d78a7c380665abc3157403f597cbcaabc9",name:"template-sender",value:"organization_member_as_creator",checked:"organization_member_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("organization_member_as_creator")}),t("div",{key:"7eaf1cce0528f17359b19320ba0e10311ec34821",class:"description"},t("div",{key:"4bd0b1b35504afa1c67566ac8cd589041958de41",class:"name"},"Anyone in my organization as me"),t("verdocs-help-icon",{key:"cfe825b414ef5a0c4ddd33e3de621629cc92149e",text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),t("div",{key:"f86771d023449f505a45f07b73e505a7c481bdf0",class:"option"},t("verdocs-radio-button",{key:"039f5bb7b444f942fb609ad1ef5fda0d5f160083",name:"template-sender",value:"creator",checked:"creator"===this.sender,onInput:()=>this.handleSelectSetting("creator")}),t("div",{key:"b7ecd4a8e68ac17e9ba116a6f8f2dcf84ff92c56",class:"description"},t("div",{key:"ca006222ed947daf96a22425fe7dbc1dd809aef5",class:"name"},"Me"),t("verdocs-help-icon",{key:"fec5c4aeb7285eaa3a22d238208e2072b17a14b0",text:"Only I can use this template."})))),t("div",{key:"1344c8e35ee75f17f5a035ba93e770958b1fcba0",class:"buttons"},t("verdocs-button",{key:"6d2e2796fd3464440662e8dd5dba2ae273aab02e",label:"Close",onClick:()=>this.handleClose()})))))}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-sender{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_radio_button,m as verdocs_template_role_properties,u as verdocs_template_sender}
1
+ import{r as e,h as t,H as o,c as i}from"./p-73a6f972.js";import{VerdocsEndpoint as s,updateTemplateRole as a,deleteTemplateRole as r,updateTemplate as d}from"@verdocs/js-sdk";import{g as l,u as n,d as c}from"./p-316fc185.js";import{g as b}from"./p-f69d8d39.js";import{g as p}from"./p-9ec464df.js";import{S as f}from"./p-fd97809c.js";import"./p-00b37c9a.js";import"./p-f3b47dfc.js";const h=class{constructor(t){e(this,t),this.checked=!1,this.name="",this.value="",this.disabled=!1}render(){return t(o,{key:"635ebb3b00a1ba9596addcc8722c0897c67ccefc",class:{disabled:this.disabled}},t("input",{key:"c3ec421823ccb3e8f587b535ba8e23f7069f4a61",type:"radio",value:this.value,name:this.name,id:`verdocs-radio-button-${this.name}-${this.value}`,checked:this.checked,disabled:this.disabled}),t("label",{key:"80b453e62ed979c5f7ee73303d5dc43464b21289",htmlFor:`verdocs-radio-button-${this.name}-${this.value}`}))}};h.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-radio-button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:20px;height:20px;display:block;font-size:11px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:100%}verdocs-radio-button.disabled{opacity:0.5}verdocs-radio-button input[type=radio]{position:absolute;opacity:0}verdocs-radio-button input[type=radio]+label:before{content:"";background:#f5f5fa;border-radius:100%;border:1px solid rgba(0, 0, 0, 0.6);display:inline-block;width:16px;height:16px;position:absolute;left:1px;top:1px;cursor:pointer;text-align:center;-webkit-transition:all 250ms ease;transition:all 250ms ease}verdocs-radio-button input[type=radio]:checked+label:before{background-color:#55bc81;-webkit-box-shadow:inset 0 0 0 2px #f5f5fa;box-shadow:inset 0 0 0 2px #f5f5fa}verdocs-radio-button input[type=radio]:focus+label:before{outline:none;border-color:#55bc81}verdocs-radio-button input[type=radio]:disabled+label:before{-webkit-box-shadow:inset 0 0 0 4px #f5f5fa;box-shadow:inset 0 0 0 4px #f5f5fa;border-color:#a0a0d0;background:#a0a0d0}verdocs-radio-button input[type=radio]+label:empty:before{margin-right:0}verdocs-radio-button.required input[type=radio]+label:before{border:1px solid #cc0000}verdocs-radio-button.hide{display:none}verdocs-radio-button.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const m=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.delete=i(this,"delete",7),this.sdkError=i(this,"sdkError",7),this.templateStore=null,this.fieldStore=null,this.roleStore=null,this.endpoint=s.getDefault(),this.templateId="",this.roleName="",this.sender="everyone",this.dirty=!1,this.saving=!1,this.name="",this.type="signer",this.full_name="",this.email="",this.phone="",this.delegator=!1}async componentWillLoad(){var e,t,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[ROLE_PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[ROLE_PROPERTIES] Unable to start builder session, must be authenticated");this.templateStore=await p(this.endpoint,this.templateId,!1),this.fieldStore=b(this.templateId),this.roleStore=l(this.templateId);const e=this.roleStore.state.roles.find((e=>e.name===this.roleName));e&&(this.name=e.name,this.type=e.type,this.full_name=e.full_name,this.email=e.email,this.phone=e.phone,this.delegator=e.delegator,console.log("[ROLE_PROPERTIES] Editing role",e))}catch(i){console.log("[ROLE_PROPERTIES Error with preview session",i),null===(e=this.sdkError)||void 0===e||e.emit(new f(i.message,null===(t=i.response)||void 0===t?void 0:t.status,null===(o=i.response)||void 0===o?void 0:o.data))}}handleCancel(e){var t;e.stopPropagation();const o=this.roleStore.state.roles.find((e=>e.name===this.roleName));o&&(this.name=o.name,this.type=o.type,this.full_name=o.full_name,this.email=o.email,this.phone=o.phone,this.delegator=o.delegator),this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){e.stopPropagation(),this.saving=!0,a(this.endpoint,this.templateId,this.roleName,{name:this.name,type:this.type,full_name:this.full_name,email:this.email,phone:this.phone,delegator:this.delegator}).then((async e=>{var t;console.log("[ROLE_PROPERTIES] Update result",e),this.saving=!1,this.dirty=!1,n(this.roleStore,this.roleName,e),null===(t=this.close)||void 0===t||t.emit()})).catch((e=>{console.log("[ROLE_PROPERTIES Update error",e),this.saving=!1}))}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this role? All associated fields will be removed as well. This action cannot be undone.")&&r(this.endpoint,this.templateId,this.roleName).then((()=>{var e;c(this.roleStore,this.roleName),null===(e=this.delete)||void 0===e||e.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("[ROLE_PROPERTIES Deletion error",e)}))}render(){const e=this.fieldStore.get("fields").some((e=>e.role_name===this.roleName));return t(o,{key:"d3988edb91247f2dd580645350c7c5641d21c61a"},t("div",{key:"912555974fc01f6b5dbd37173217a17e1e6cc756",class:"background-overlay",onClick:e=>this.handleCancel(e)},t("div",{key:"e6d8172451f3fe78fd4b932039b15615f4b4c843",class:"dialog"},t("form",{key:"0d0519144c0de4813a664a2345a85a7da15606c9",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("verdocs-text-input",{key:"9169dd76bf19c5f809b78bdef9a20511d21cbdcc",id:"verdocs-role-name",label:"Role Name",value:this.name,autocomplete:"off",disabled:e,helpText:e?"This role has fields assigned and can no longer be renamed.":"A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.",placeholder:"Role Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}}),t("div",{key:"fba0622ed18d69ae13c2dc6dbc4f3c2230fb72d5",class:"row"},t("div",{key:"db653736e1e1b32a58ea8df1d5f9f58928ca7047",class:"input-label"},"Type:"),t("verdocs-select-input",{key:"7199410b3a1598e9fc74b6bcd42b58458e7c0ad7",value:this.type,options:[{label:"Signer",value:"signer"},{label:"CC",value:"cc"},{label:"Approver",value:"approver"}],onInput:e=>{this.type=e.target.value,this.dirty=!0}}),t("verdocs-help-icon",{key:"8e553f8d63d8d57022d449b9db08d8ab0bbdd48c",text:"Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review."})),t("verdocs-text-input",{key:"da8fae069e9a65a8fbe41c926a4aabc2af0816f2",id:"verdocs-recipient-email",label:"Full Name",value:this.full_name,autocomplete:"off",helpText:"The recipient's full name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Full Name...",onInput:e=>{this.full_name=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"5c2818a8b37c6fdef9dfd4a9a64bbb2c66216ca9",id:"verdocs-recipient-email",label:"Email",value:this.email,autocomplete:"off",helpText:"The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Email Address...",onInput:e=>{this.email=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{key:"4230659800aac4470c96d411436434511a208015",id:"verdocs-recipient-phone",label:"Phone",value:this.phone,autocomplete:"off",helpText:"The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.",placeholder:"Phone Number...",onInput:e=>{this.phone=e.target.value,this.dirty=!0}}),t("div",{key:"2a675d0120b3cbeff8af790260578126d3cf46ce",class:"row"},t("div",{key:"66c007c4d9ea713f5a399186e144d7445797765a",class:"input-label"},"May Delegate:"),t("div",{key:"ab88572b986a7c5def40a9c1e084fe3c62a766bf",class:"checkbox-wrapper"},t("verdocs-checkbox",{key:"b1ca8f96ffd71843beecdc349d86bf3d8cc35708",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked,this.dirty=!0}})),t("verdocs-help-icon",{key:"de1d5f121299c133edcc8001a9b6a6b63ff9b739",text:"If enabled, this recipient may delegate their actions to another individual."})),t("div",{key:"79869b6fb38187967ca3550284e4d25f63884fd0",class:"buttons"},t("button",{key:"e58733c07c6793e2c454e5f68c5ffc8907cec1f1",class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>'}),t("div",{key:"55f4478946d4675a17055be652e19eb377ae5437",style:{flex:"1"}}),t("verdocs-button",{key:"f67fa328ee71a14f0bd1ba049ffddf228841eb67",size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{key:"690bc539949328f6130e4d8da5db97ed1b355992",size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))))))}};m.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-role-properties{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-role-properties .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-role-properties .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-role-properties .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-role-properties .buttons verdocs-button{margin-left:16px}verdocs-template-role-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-role-properties verdocs-text-input{margin:0 0 10px 0}verdocs-template-role-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-role-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-role-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties verdocs-text-input verdocs-text-input{margin:0}verdocs-template-role-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-role-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;padding:0 6px;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-role-properties .delete-button svg{width:24px;height:24px}verdocs-template-role-properties .delete-button:active{background:#f3f3f3}';const u=class{constructor(t){e(this,t),this.close=i(this,"close",7),this.sdkError=i(this,"sdkError",7),this.store=null,this.endpoint=s.getDefault(),this.templateId="",this.sender="everyone",this.saving=!1}async componentWillLoad(){var e,t,o,i,s;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[SENDER] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[SENDER] Unable to start builder session, must be authenticated");this.store=await p(this.endpoint,this.templateId,!1),this.sender=null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.sender}catch(e){console.log("[SENDER] Error with preview session",e),null===(o=this.sdkError)||void 0===o||o.emit(new f(e.message,null===(i=e.response)||void 0===i?void 0:i.status,null===(s=e.response)||void 0===s?void 0:s.data))}}handleClose(){this.close.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleClose())}async handleSelectSetting(e){this.saving=!0,d(this.endpoint,this.templateId,{sender:e}).then((t=>{var o;console.log("Update result",t),(null===(o=this.store)||void 0===o?void 0:o.state)&&(this.store.state.sender=e),this.saving=!1,this.sender=e})).catch((e=>{console.log("Error saving",e),this.saving=!1}))}render(){return t(o,{key:"092c9e3593fffb0559c72fab66510070e73d7c05"},t("div",{key:"666b71a674030a3541138d6dd07a04ec2f352e20",class:"background-overlay",onClick:e=>this.handleDismiss(e)},t("div",{key:"fcabfd99d07d0f72a874fd2ff32a7f72cda51d86",class:"dialog"},t("div",{key:"1098b307a0f787d282ae423f273f02231524598a",class:"options"},t("div",{key:"bb2bd6a5c6f338a955d0e38ddd72be127a908ea7",class:"option"},t("verdocs-radio-button",{key:"47ef7fa0ea436b284f76f8507ecf66ff098a3021",name:"template-sender",value:"everyone",checked:"everyone"===this.sender,onInput:()=>this.handleSelectSetting("everyone")}),t("div",{key:"8dcc183312a85bf6bb0145a55933842951c859c4",class:"description"},t("div",{key:"c3e41eff5d8353846d5fe62e9739864743936d5d",class:"name"},"Anyone on the Web"),t("verdocs-help-icon",{key:"b3b965183887842c7f3434afc9602ca8d67de419",text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),t("div",{key:"4fa78b48a79fc3932a02553e9360fb656c735493",class:"option"},t("verdocs-radio-button",{key:"40429f3fbaa48e0515d4f1e860d0a256df551fb4",name:"template-sender",value:"everyone_as_creator",checked:"everyone_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("everyone_as_creator")}),t("div",{key:"5add2c44aac55f11094780c82ff6006b4b48ca8e",class:"description"},t("div",{key:"ac8e1c67ab3614b8e5dd3a255c0d71c1820ba83b",class:"name"},"Anyone on the Web as me"),t("verdocs-help-icon",{key:"4d2172b0dcef9cd3e46095e8337aa3c1b8e06523",text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),t("div",{key:"36970f9e7c4be312447a36c4a63b470ea85cddf8",class:"option"},t("verdocs-radio-button",{key:"b2fd0896b2bee7243450d6a50cc65fe96e98ab20",name:"template-sender",value:"organization_member",checked:"organization_member"===this.sender,onInput:()=>this.handleSelectSetting("organization_member")}),t("div",{key:"0bbfeeaf609aa3106df12bf34ef778891e83d0df",class:"description"},t("div",{key:"bb62d9eece8db82b8ef071c0c24127086a89dccc",class:"name"},"Anyone in my organization"),t("verdocs-help-icon",{key:"73d7fa4b6f4b4896d778f3fbc165de2d7b6b2c87",text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),t("div",{key:"e1eca6d0234cf0d01ee8d30690248eec07912d3c",class:"option"},t("verdocs-radio-button",{key:"f31029edc86697d113fc37f55c0a94bcc4a35f68",name:"template-sender",value:"organization_member_as_creator",checked:"organization_member_as_creator"===this.sender,onInput:()=>this.handleSelectSetting("organization_member_as_creator")}),t("div",{key:"5a0f46208920de20dd725f4e16c5de556260d7cb",class:"description"},t("div",{key:"9bfd1c74d34afe93d4a0e11b0877ff7dadf19f83",class:"name"},"Anyone in my organization as me"),t("verdocs-help-icon",{key:"d72a7899414895b1637186c4f731be73cc786eb9",text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),t("div",{key:"5e55d764e9040fb7b87e0456c2809286835b89e3",class:"option"},t("verdocs-radio-button",{key:"2309a84ec1b4487619f932e8a2316f51c331a13d",name:"template-sender",value:"creator",checked:"creator"===this.sender,onInput:()=>this.handleSelectSetting("creator")}),t("div",{key:"f3bd9236d0b692415c5a39687c35ba71cf245703",class:"description"},t("div",{key:"8aa05e4b9f42d4febf3c3b28f53dec9de2e0c64d",class:"name"},"Me"),t("verdocs-help-icon",{key:"e79cb02b13641acd64983b91e8de6eb6284a8ee7",text:"Only I can use this template."})))),t("div",{key:"d4b7c6ee528df1ee7f7ec952e80826a20c29ff6c",class:"buttons"},t("verdocs-button",{key:"024ba9b87fc9131db993ecafd76105be0959df47",label:"Close",onClick:()=>this.handleClose()})))))}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-sender{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-template-sender .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender .buttons verdocs-button{margin-left:16px}verdocs-template-sender .options{row-gap:10px}verdocs-template-sender .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender .options .option .description{margin-left:10px}verdocs-template-sender .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{h as verdocs_radio_button,m as verdocs_template_role_properties,u as verdocs_template_sender}
@@ -0,0 +1 @@
1
+ System.register(["./p-e748b2d2.system.js","@verdocs/js-sdk","./p-7ce23c90.system.js","./p-c8a15cb7.system.js"],(function(e){"use strict";var t,i,n,o,l,s,a,r,u,c,d;return{setters:[function(e){t=e.r;i=e.c;n=e.h},function(e){o=e.VerdocsEndpoint;l=e.createAccount;s=e.authenticate;a=e.decodeAccessTokenBody;r=e.resendVerification;u=e.resetPassword},function(e){c=e.V},function(e){d=e.S}],execute:function(){var h='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';var f=h;var v=5e3;var p=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}];var b=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}];var m=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}];var g=e("verdocs_auth",function(){function e(e){t(this,e);this.authenticated=i(this,"authenticated",7);this.sdkError=i(this,"sdkError",7);this.recheckTimer=null;this.resendDisabledTimer=null;this.accessTokenForVerification=null;this.endpoint=o.getDefault();this.visible=true;this.logo="https://app.verdocs.com/assets/blue-logo.svg";this.isAuthenticated=false;this.displayMode="login";this.orgname="";this.first="";this.last="";this.username="";this.phone="";this.password="";this.submitting=false;this.activeSession=null;this.accountType="org";this.howHear="";this.industry="";this.companySize="";this.reason="";this.signupStep=1;this.resendDisabled=false;this.checkingOrg=false}e.prototype.componentWillLoad=function(){var e,t;this.endpoint.loadSession();if(this.endpoint.session){console.log("[AUTH] Authenticated");this.isAuthenticated=true;this.activeSession=this.endpoint.session;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:true,session:this.endpoint.session})}else{console.log("[AUTH] Anonymous");(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,session:null})}};e.prototype.disconnectedCallback=function(){this.cancelRecheckTimer()};e.prototype.cancelRecheckTimer=function(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}};e.prototype.handleSignup=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname}).then((function(t){console.log("Result",t);console.log("[AUTH] Created profile",t.profile);console.log("[AUTH] Created organization",t.organization);e.loginAndCheckVerification()})).catch((function(t){var i,n,o,l,s,a;console.log("[AUTH] Signup error",t.response);e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new d(t.message,(o=t.response)===null||o===void 0?void 0:o.status,(l=t.response)===null||l===void 0?void 0:l.data));c("Signup failed: "+((a=(s=t.response)===null||s===void 0?void 0:s.data)===null||a===void 0?void 0:a.message)||"Unknown Error",{style:"error"})}))};e.prototype.loginAndCheckVerification=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;s(this.endpoint,{username:this.username,password:this.password,grant_type:"password"}).then((function(t){var i;e.cancelRecheckTimer();e.submitting=false;var n=a(t.access_token);console.log("[AUTH] Got access token body",n);if(n===null||n===void 0?void 0:n.email_verified){console.log("[AUTH] Email address is verified, completing login");e.displayMode="login";e.accessTokenForVerification=null;e.endpoint.setToken(t.access_token);e.activeSession=e.endpoint.session;e.isAuthenticated=true;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:true,session:e.endpoint.session})}else{console.log("[AUTH] Logged in, pending email address verification");e.displayMode="verify";e.accessTokenForVerification=t.access_token;e.recheckTimer=setTimeout((function(){return e.loginAndCheckVerification()}),v)}})).catch((function(t){var i,n,o,l;e.cancelRecheckTimer();console.log("[AUTH] Authentication error",t.response,JSON.stringify(t));e.displayMode="login";e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new d(t.message,(o=t.response)===null||o===void 0?void 0:o.status,(l=t.response)===null||l===void 0?void 0:l.data));c("Login failed. Please check your username and password and try again.",{style:"error"})}))};e.prototype.handleLogout=function(){var e;this.endpoint.clearSession();this.isAuthenticated=false;this.accessTokenForVerification=null;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:false,session:null})};e.prototype.handleResend=function(){var e=this;this.resendDisabled=true;this.resendDisabledTimer=setTimeout((function(){e.resendDisabled=false;e.resendDisabledTimer=null}),3e4);r(this.endpoint,this.accessTokenForVerification).then((function(e){console.log("[AUTH] Verification request resent",e);c("Please check your email for a message with verification instructions.",{style:"info"})})).catch((function(e){console.log("[AUTH] Unable to resend verification",e)}))};e.prototype.handleReset=function(){var e=this;this.submitting=true;u(this.endpoint,{email:this.username}).then((function(t){console.log("[AUTH] Reset sent",t);e.submitting=false;e.displayMode="login";c("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((function(t){console.log("[AUTH] Unable to reset password",t);e.submitting=false}))};e.prototype.render=function(){var e=this;if(!this.visible){return n("div",{style:{display:"none"}},"Authenticated")}if(this.isAuthenticated){return n("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:function(){return e.handleLogout()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})}if(this.displayMode==="signup"){var t=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname;return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Sign up for a trial account"),n("h4",null,"Already have an account?",n("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return e.displayMode="login"},disabled:this.submitting})),this.signupStep===1&&n("form",{onSubmit:function(){return e.handleSignup()}},n("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},n("verdocs-text-input",{label:"First Name",autocomplete:"first",required:true,value:this.first,onInput:function(t){return e.first=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:true,value:this.last,onInput:function(t){return e.last=t.target.value},disabled:this.submitting})),n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:function(t){return e.phone=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:true,value:this.orgname,onInput:function(t){return e.orgname=t.target.value},disabled:this.submitting,style:{flex:"1"}}),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Next",disabled:t,onClick:function(){return e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===2&&n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:function(t){return e.howHear=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Your Industry",options:p,value:this.industry,onInput:function(t){return e.industry=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Company Size",options:m,value:this.companySize,onInput:function(t){return e.companySize=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Purpose",options:b,value:this.reason,onInput:function(t){return e.reason=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===3&&n("form",{onSubmit:function(){return e.handleSignup()}},n("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),n("p",null,n("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",n("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),n("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},n("verdocs-button",{label:"Back",disabled:this.submitting,onClick:function(){e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),n("verdocs-button",{label:"Go to Dashboard",disabled:true,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}if(this.displayMode==="forgot"){return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Forgot your password?"),n("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:function(){return e.displayMode="login"}}),n("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:function(){return e.handleReset()}}))))}if(this.displayMode==="verify"){return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Please Verify your Email Address"),n("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("div",{class:"buttons"},n("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:function(){e.username="";e.password="";e.cancelRecheckTimer();e.displayMode="login"}}),n("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:function(){return e.handleResend()}})))}return n("div",{class:"form"},n("a",{href:"https://verdocs.com/en/"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),n("h3",null,"Log in to your account"),n("h4",null,"Don't have an account?",n("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){e.displayMode="signup";e.signupStep=1},disabled:this.submitting})),n("form",{onSubmit:function(){return e.loginAndCheckVerification()}},n("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return e.displayMode="forgot"},disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),n("verdocs-button",{label:"Login",disabled:this.submitting,onClick:function(){return e.loginAndCheckVerification()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))};return e}());g.style=f}}}));
@@ -1 +1 @@
1
- import{r as e,c as t,h as i,F as o,H as a,g as s}from"./p-73a6f972.js";import{VerdocsEndpoint as r,getTemplateDocumentPageDisplayUri as d}from"@verdocs/js-sdk";import{g as l}from"./p-f69d8d39.js";import{t as c,k as n,g as p,d as h}from"./p-cc32d84f.js";import{c as b}from"./p-68a5aaff.js";import"./p-00b37c9a.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const m=class{constructor(i){e(this,i),this.pageRendered=t(this,"pageRendered",7),this.fieldStore=null,this.endpoint=r.getDefault(),this.editable=!1,this.disabled=!1,this.done=!1,this.templateId="",this.documentId="",this.pageNumber=1,this.virtualWidth=612,this.virtualHeight=792,this.layers=[{name:"page",type:"canvas"}],this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`,this.renderedWidth=this.virtualWidth,this.renderedHeight=this.virtualHeight,this.naturalWidth=this.virtualWidth,this.naturalHeight=this.virtualHeight,this.aspectRatio=this.virtualWidth/this.virtualHeight,this.skipFirstNotification=!0,this.pageDisplayUri="",this.xScale=1,this.yScale=1}async componentWillLoad(){this.pageDisplayUri=await d(this.endpoint,this.templateId,this.documentId,this.pageNumber),this.fieldStore=l(this.templateId)}componentDidLoad(){this.resizeObserver=new ResizeObserver(c((e=>{for(const t of e){const e=t.contentRect.width;this.renderedWidth=e,this.renderedHeight=this.virtualHeight*(e/this.virtualWidth)}this.notifyRenderedSize()}),100)),this.resizeObserver.observe(this.container)}componentDidUpdate(){this.notifyRenderedSize()}disconnectedCallback(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification)return void(this.skipFirstNotification=!1);const e=this.renderedWidth/this.virtualWidth;this.xScale!==e&&(this.xScale=e);const t=this.renderedHeight/this.virtualHeight;this.yScale!==t&&(this.yScale=t),this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:e,yScale:t})}render(){const e=`${this.renderedHeight}px`;return i(a,{key:"6fabe54a0840385228e13a0e61f7748d41fbcf17",id:`${this.containerId}`,style:{height:e,flex:`0 0 ${e}`}},this.layers.map((t=>"div"===t.type?i("div",{class:"verdocs-template-document-page-layer",id:`${this.containerId}-${t.name}`,style:{height:e}},"controls"===t.name&&this.fieldStore.get("fields").filter((e=>e&&e.page===this.pageNumber)).map((e=>{var t,a;const s=p(e);let{name:r,type:d}=e;const{xScale:l,yScale:c,templateId:b,editable:m,disabled:f,done:u,pageNumber:g}=this;switch(((null===(t=e.setting)||void 0===t?void 0:t.leading)>0||(null===(a=e.settings)||void 0===a?void 0:a.leading)>0)&&(d="textarea"),d){case"textbox":return i("verdocs-field-textbox",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"textarea":return i("verdocs-field-textarea",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"date":return i("verdocs-field-date",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"attachment":return i("verdocs-field-attachment",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"dropdown":return i("verdocs-field-dropdown",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"initial":return i("verdocs-field-initial",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"signature":return i("verdocs-field-signature",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,this.xScale,this.yScale,0)});case"timestamp":return i("verdocs-field-timestamp",{id:s,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"checkbox_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-checkbox",{id:a,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));case"radio_button_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-radio-button",{id:a,fieldname:r,templateid:b,editable:m,disabled:f,done:u,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));default:return i(o,null,r)}}))):this.pageDisplayUri?i("img",{class:"verdocs-template-document-page-layer img",id:`${this.containerId}-${t.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":!0,loading:"lazy",onLoad:e=>{this.naturalWidth=e.target.naturalWidth,this.naturalHeight=e.target.naturalHeight,this.aspectRatio=this.naturalWidth/this.naturalHeight,this.virtualHeight=this.virtualWidth/this.aspectRatio,this.renderedHeight=e.target.offsetWidth/this.aspectRatio}}):i("div",null))))}get container(){return s(this)}};m.style="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";const f=class{constructor(t){e(this,t),this.text="",this.icon="",this.placement="bottom",this.containerId=`verdocs-toolbar-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=b(this.iconEl,this.tooltip,{placement:this.placement,modifiers:"left"===this.placement?[{name:"offset",options:{offset:[0,20]}}]:[]})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var e,t;null===(e=this.tooltip)||void 0===e||e.setAttribute("data-show",""),null===(t=this.popperInstance)||void 0===t||t.update().catch((()=>{}))}hide(){var e;null===(e=this.tooltip)||void 0===e||e.removeAttribute("data-show")}render(){return i(a,{key:"81bef5d6b23987730bbeafe741a7fbc52c2d854c",class:{}},i("div",{key:"87a7fab6e8cb787079f37332bdf8fb188f52157a","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:e=>this.iconEl=e}),i("div",{key:"f6593f4c1d6b435a80b0a09d6356c383ec78a5c7",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:e=>this.tooltip=e},this.text,i("div",{key:"b13a8c43aa098db8ee6f2e05a53c02f0f3de9358","data-popper-arrow":"true",class:"arrow"})))}};f.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';export{m as verdocs_template_document_page,f as verdocs_toolbar_icon}
1
+ import{r as e,c as t,h as i,F as o,H as a,g as s}from"./p-73a6f972.js";import{VerdocsEndpoint as d,getTemplateDocumentPageDisplayUri as r}from"@verdocs/js-sdk";import{g as l}from"./p-f69d8d39.js";import{t as c,k as n,g as p,d as h}from"./p-cc32d84f.js";import{c as b}from"./p-68a5aaff.js";import"./p-00b37c9a.js";import"./p-251c4106.js";import"./p-edaec1b6.js";const m=class{constructor(i){e(this,i),this.pageRendered=t(this,"pageRendered",7),this.fieldStore=null,this.endpoint=d.getDefault(),this.editable=!1,this.disabled=!1,this.done=!1,this.templateId="",this.documentId="",this.pageNumber=1,this.virtualWidth=612,this.virtualHeight=792,this.layers=[{name:"page",type:"canvas"}],this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`,this.renderedWidth=this.virtualWidth,this.renderedHeight=this.virtualHeight,this.naturalWidth=this.virtualWidth,this.naturalHeight=this.virtualHeight,this.aspectRatio=this.virtualWidth/this.virtualHeight,this.skipFirstNotification=!0,this.pageDisplayUri="",this.xScale=1,this.yScale=1}async componentWillLoad(){this.pageDisplayUri=await r(this.endpoint,this.templateId,this.documentId,this.pageNumber),this.fieldStore=l(this.templateId)}componentDidLoad(){this.resizeObserver=new ResizeObserver(c((e=>{for(const t of e){const e=t.contentRect.width;this.renderedWidth=e,this.renderedHeight=this.virtualHeight*(e/this.virtualWidth)}this.notifyRenderedSize()}),100)),this.resizeObserver.observe(this.container)}componentDidUpdate(){this.notifyRenderedSize()}disconnectedCallback(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification)return void(this.skipFirstNotification=!1);const e=this.renderedWidth/this.virtualWidth;this.xScale!==e&&(this.xScale=e);const t=this.renderedHeight/this.virtualHeight;this.yScale!==t&&(this.yScale=t),this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:e,yScale:t})}render(){const e=`${this.renderedHeight}px`;return i(a,{key:"a332323d7adc14d79884131c20d41dfddcb03ac5",id:`${this.containerId}`,style:{height:e,flex:`0 0 ${e}`}},this.layers.map((t=>"div"===t.type?i("div",{class:"verdocs-template-document-page-layer",id:`${this.containerId}-${t.name}`,style:{height:e}},"controls"===t.name&&this.fieldStore.get("fields").filter((e=>e&&e.page===this.pageNumber)).map((e=>{var t,a;const s=p(e);let{name:d,type:r}=e;const{xScale:l,yScale:c,templateId:b,editable:m,disabled:u,done:f,pageNumber:g}=this;switch(((null===(t=e.setting)||void 0===t?void 0:t.leading)>0||(null===(a=e.settings)||void 0===a?void 0:a.leading)>0)&&(r="textarea"),r){case"textbox":return i("verdocs-field-textbox",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"textarea":return i("verdocs-field-textarea",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"date":return i("verdocs-field-date",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"attachment":return i("verdocs-field-attachment",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"dropdown":return i("verdocs-field-dropdown",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"initial":return i("verdocs-field-initial",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"signature":return i("verdocs-field-signature",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,this.xScale,this.yScale,0)});case"timestamp":return i("verdocs-field-timestamp",{id:s,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,style:n(e,l,c,0)});case"checkbox_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-checkbox",{id:a,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));case"radio_button_group":return(e.settings||e.setting||{}).options.map(((t,o)=>{const a=h(e,o);return i("verdocs-field-radio-button",{id:a,fieldname:d,templateid:b,editable:m,disabled:u,done:f,xscale:l,yscale:c,pagenumber:g,option:o,style:n(e,l,c,o)})}));default:return i(o,null,d)}}))):this.pageDisplayUri?i("img",{class:"verdocs-template-document-page-layer img",id:`${this.containerId}-${t.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":!0,loading:"lazy",onLoad:e=>{this.naturalWidth=e.target.naturalWidth,this.naturalHeight=e.target.naturalHeight,this.aspectRatio=this.naturalWidth/this.naturalHeight,this.virtualHeight=this.virtualWidth/this.aspectRatio,this.renderedHeight=e.target.offsetWidth/this.aspectRatio}}):i("div",null))))}get container(){return s(this)}};m.style="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";const u=class{constructor(t){e(this,t),this.text="",this.icon="",this.placement="bottom",this.containerId=`verdocs-toolbar-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=b(this.iconEl,this.tooltip,{placement:this.placement,modifiers:"left"===this.placement?[{name:"offset",options:{offset:[0,20]}}]:[]})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var e,t;null===(e=this.tooltip)||void 0===e||e.setAttribute("data-show",""),null===(t=this.popperInstance)||void 0===t||t.update().catch((()=>{}))}hide(){var e;null===(e=this.tooltip)||void 0===e||e.removeAttribute("data-show")}render(){return i(a,{key:"ec176e549d8259f0f511113319fe2b7e62ff6e0a",class:{}},i("div",{key:"61402e769d66bb7ecf0d7b7e24467b20baa2d4d3","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:e=>this.iconEl=e}),i("div",{key:"3cf9f801cd53af645929a6c8067baf5f62835e15",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:e=>this.tooltip=e},this.text,i("div",{key:"bd7660b0a728b1a6720907caaaede964564ee189","data-popper-arrow":"true",class:"arrow"})))}};u.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';export{m as verdocs_template_document_page,u as verdocs_toolbar_icon}
@@ -1 +1 @@
1
- import{r,h as o,H as a}from"./p-73a6f972.js";const e=class{constructor(o){r(this,o),this.tags=void 0}render(){var r;return o(a,{key:"e754a66c64713a7b01c072b1becd919d9768ac66"},null===(r=this.tags)||void 0===r?void 0:r.map((r=>o("span",null,r))))}};e.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';export{e as verdocs_template_tags}
1
+ import{r,h as o,H as e}from"./p-73a6f972.js";const a=class{constructor(o){r(this,o),this.tags=void 0}render(){var r;return o(e,{key:"537d0786deea45df3bc938eabb4db09b3532d5cb"},null===(r=this.tags)||void 0===r?void 0:r.map((r=>o("span",null,r))))}};a.style='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';export{a as verdocs_template_tags}