@verdocs/web-sdk 1.11.2 → 1.11.3

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/{Roles-927719de.js → Roles-9b593b95.js} +1 -1
  2. package/dist/cjs/TemplateDocuments-6b395b32.js +78 -0
  3. package/dist/cjs/{Templates-2f2ea153.js → Templates-16615cb0.js} +1 -1
  4. package/dist/cjs/{VerdocsEndpoint-25056c73.js → VerdocsEndpoint-26bb7607.js} +8 -4
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{templateStore-81ad25a7.js → templateStore-198752d5.js} +1 -0
  7. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-build.cjs.entry.js +3 -3
  9. package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +3 -3
  10. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-document-page_2.cjs.entry.js +74 -5
  12. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
  20. package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
  24. package/dist/cjs/{verdocs-floating-menu_2.cjs.entry.js → verdocs-floating-menu_3.cjs.entry.js} +97 -0
  25. package/dist/cjs/verdocs-loader.cjs.entry.js +19 -0
  26. package/dist/cjs/verdocs-preview.cjs.entry.js +4 -7
  27. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-send.cjs.entry.js +3 -3
  30. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-template-attachments.cjs.entry.js +3 -3
  32. package/dist/cjs/verdocs-template-create_2.cjs.entry.js +7 -35
  33. package/dist/cjs/verdocs-template-name.cjs.entry.js +3 -3
  34. package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-template-recipients.cjs.entry.js +21 -14
  36. package/dist/cjs/verdocs-template-reminders.cjs.entry.js +3 -3
  37. package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +4 -4
  38. package/dist/cjs/verdocs-template-visibility.cjs.entry.js +3 -3
  39. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  41. package/dist/collection/collection-manifest.json +1 -0
  42. package/dist/collection/components/elements/verdocs-template-document-page/verdocs-template-document-page.css +15 -0
  43. package/dist/collection/components/elements/verdocs-template-document-page/verdocs-template-document-page.js +275 -0
  44. package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +1 -4
  45. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.css +1 -1
  46. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +1 -1
  47. package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +17 -10
  48. package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +1 -1
  49. package/dist/collection/utils/templateStore.js +1 -0
  50. package/dist/components/TemplateDocuments.js +75 -0
  51. package/dist/components/VerdocsEndpoint.js +8 -4
  52. package/dist/components/index.d.ts +1 -0
  53. package/dist/components/index.js +1 -0
  54. package/dist/components/templateStore.js +1 -0
  55. package/dist/components/verdocs-build.js +9 -9
  56. package/dist/components/verdocs-preview.js +6 -9
  57. package/dist/components/verdocs-template-create2.js +2 -30
  58. package/dist/components/verdocs-template-document-page.d.ts +11 -0
  59. package/dist/components/verdocs-template-document-page.js +6 -0
  60. package/dist/components/verdocs-template-document-page2.js +126 -0
  61. package/dist/components/verdocs-template-fields2.js +8 -8
  62. package/dist/components/verdocs-template-recipients.js +31 -18
  63. package/dist/components/verdocs-template-role-properties2.js +1 -1
  64. package/dist/custom-elements.json +1390 -0
  65. package/dist/docs.json +168 -14
  66. package/dist/esm/{Roles-2488d047.js → Roles-6eb459df.js} +1 -1
  67. package/dist/esm/TemplateDocuments-1214b04d.js +75 -0
  68. package/dist/esm/{Templates-a7530314.js → Templates-2528dad5.js} +1 -1
  69. package/dist/esm/{VerdocsEndpoint-7f17b088.js → VerdocsEndpoint-d50a8d28.js} +8 -4
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/{templateStore-fd4beaae.js → templateStore-a7a5149a.js} +1 -0
  72. package/dist/esm/verdocs-auth.entry.js +1 -1
  73. package/dist/esm/verdocs-build.entry.js +3 -3
  74. package/dist/esm/verdocs-button-panel_3.entry.js +3 -3
  75. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  76. package/dist/esm/verdocs-document-page_2.entry.js +74 -5
  77. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  78. package/dist/esm/verdocs-field-attachment.entry.js +1 -1
  79. package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
  80. package/dist/esm/verdocs-field-date.entry.js +1 -1
  81. package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
  82. package/dist/esm/verdocs-field-initial.entry.js +1 -1
  83. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  84. package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
  85. package/dist/esm/verdocs-field-signature.entry.js +1 -1
  86. package/dist/esm/verdocs-field-textarea.entry.js +1 -1
  87. package/dist/esm/verdocs-field-textbox.entry.js +1 -1
  88. package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
  89. package/dist/esm/{verdocs-floating-menu_2.entry.js → verdocs-floating-menu_3.entry.js} +97 -1
  90. package/dist/esm/verdocs-loader.entry.js +15 -0
  91. package/dist/esm/verdocs-preview.entry.js +4 -7
  92. package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
  93. package/dist/esm/verdocs-search.entry.js +1 -1
  94. package/dist/esm/verdocs-send.entry.js +3 -3
  95. package/dist/esm/verdocs-sign.entry.js +1 -1
  96. package/dist/esm/verdocs-template-attachments.entry.js +3 -3
  97. package/dist/esm/verdocs-template-create_2.entry.js +6 -34
  98. package/dist/esm/verdocs-template-name.entry.js +3 -3
  99. package/dist/esm/verdocs-template-properties.entry.js +2 -2
  100. package/dist/esm/verdocs-template-recipients.entry.js +21 -14
  101. package/dist/esm/verdocs-template-reminders.entry.js +3 -3
  102. package/dist/esm/verdocs-template-role-properties_2.entry.js +4 -4
  103. package/dist/esm/verdocs-template-visibility.entry.js +3 -3
  104. package/dist/esm/verdocs-view.entry.js +1 -1
  105. package/dist/esm/verdocs-web-sdk.js +1 -1
  106. package/dist/esm-es5/Roles-6eb459df.js +1 -0
  107. package/dist/esm-es5/TemplateDocuments-1214b04d.js +1 -0
  108. package/dist/esm-es5/{Templates-a7530314.js → Templates-2528dad5.js} +1 -1
  109. package/dist/esm-es5/VerdocsEndpoint-d50a8d28.js +1 -0
  110. package/dist/esm-es5/loader.js +1 -1
  111. package/dist/esm-es5/templateStore-a7a5149a.js +1 -0
  112. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-document-page_2.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  118. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  119. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  120. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  121. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  122. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  123. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  125. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  126. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-floating-menu_3.entry.js +1 -0
  130. package/dist/esm-es5/verdocs-loader.entry.js +1 -0
  131. package/dist/esm-es5/verdocs-preview.entry.js +1 -1
  132. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
  133. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-send.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -1
  138. package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -1
  143. package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
  144. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  145. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  146. package/dist/types/components/elements/verdocs-template-document-page/verdocs-template-document-page.d.ts +68 -0
  147. package/dist/types/components/embeds/verdocs-preview/verdocs-preview.d.ts +0 -2
  148. package/dist/types/components.d.ts +77 -0
  149. package/dist/verdocs-web-sdk/{p-ec913a97.entry.js → p-0049ecc7.entry.js} +1 -1
  150. package/dist/verdocs-web-sdk/p-0522edd2.system.js +1 -0
  151. package/dist/verdocs-web-sdk/{p-127a569c.system.entry.js → p-05f3c7bb.system.entry.js} +1 -1
  152. package/dist/verdocs-web-sdk/{p-5a4b4373.entry.js → p-06512901.entry.js} +1 -1
  153. package/dist/verdocs-web-sdk/{p-1e710eb7.system.entry.js → p-0aaa85ed.system.entry.js} +1 -1
  154. package/dist/verdocs-web-sdk/p-0ef66c28.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/{p-ccaa35ac.system.entry.js → p-11967343.system.entry.js} +1 -1
  156. package/dist/verdocs-web-sdk/{p-6c231fe6.system.entry.js → p-1654be9f.system.entry.js} +1 -1
  157. package/dist/verdocs-web-sdk/{p-85336769.system.entry.js → p-18bb4152.system.entry.js} +1 -1
  158. package/dist/verdocs-web-sdk/p-1c02faba.js +1 -0
  159. package/dist/verdocs-web-sdk/{p-37a493a6.entry.js → p-1d787be7.entry.js} +1 -1
  160. package/dist/verdocs-web-sdk/{p-0fc8ae0a.entry.js → p-27396fa8.entry.js} +1 -1
  161. package/dist/verdocs-web-sdk/{p-68eb0ad8.entry.js → p-2c3aecb8.entry.js} +1 -1
  162. package/dist/verdocs-web-sdk/{p-bde3d383.system.entry.js → p-3019014e.system.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/{p-8e5065af.entry.js → p-3379e220.entry.js} +1 -1
  164. package/dist/verdocs-web-sdk/p-36fe1557.system.entry.js +1 -0
  165. package/dist/verdocs-web-sdk/{p-41122f38.system.entry.js → p-37e93857.system.entry.js} +1 -1
  166. package/dist/verdocs-web-sdk/p-3d4b187a.js +1 -0
  167. package/dist/verdocs-web-sdk/{p-cd70bb21.system.entry.js → p-3f01debd.system.entry.js} +1 -1
  168. package/dist/verdocs-web-sdk/p-4a17efd7.entry.js +1 -0
  169. package/dist/verdocs-web-sdk/{p-83adc0f7.system.entry.js → p-4c7a531c.system.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/p-4e49fb12.js +1 -0
  171. package/dist/verdocs-web-sdk/p-4e9b66b1.system.entry.js +1 -0
  172. package/dist/verdocs-web-sdk/p-4f63fae0.system.js +1 -0
  173. package/dist/verdocs-web-sdk/{p-5dc58d34.entry.js → p-4fc181bd.entry.js} +1 -1
  174. package/dist/verdocs-web-sdk/{p-e079768b.entry.js → p-53261332.entry.js} +1 -1
  175. package/dist/verdocs-web-sdk/{p-5fda1fe8.system.entry.js → p-58dda3d1.system.entry.js} +1 -1
  176. package/dist/verdocs-web-sdk/{p-f4f44d6f.system.entry.js → p-5a63da92.system.entry.js} +1 -1
  177. package/dist/verdocs-web-sdk/{p-b537b400.entry.js → p-5d6c8737.entry.js} +1 -1
  178. package/dist/verdocs-web-sdk/{p-e53a7969.entry.js → p-64a6448f.entry.js} +1 -1
  179. package/dist/verdocs-web-sdk/{p-d5836d39.entry.js → p-66bf5e70.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-ad6cc9f4.js → p-671036fb.js} +1 -1
  181. package/dist/verdocs-web-sdk/{p-c317702e.system.entry.js → p-673304f6.system.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-ac3a9c3c.entry.js → p-686608f0.entry.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-4086a15a.entry.js → p-6a736c6a.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-45a4da16.system.js → p-6e3daf5a.system.js} +1 -1
  185. package/dist/verdocs-web-sdk/{p-0d7db907.system.entry.js → p-72bc8464.system.entry.js} +1 -1
  186. package/dist/verdocs-web-sdk/{p-085d66a2.entry.js → p-741a34fc.entry.js} +1 -1
  187. package/dist/verdocs-web-sdk/{p-cf27d3ce.system.entry.js → p-760262f3.system.entry.js} +1 -1
  188. package/dist/verdocs-web-sdk/{p-0e5274d0.system.entry.js → p-7c2ce3ba.system.entry.js} +1 -1
  189. package/dist/verdocs-web-sdk/p-8027431e.js +1 -0
  190. package/dist/verdocs-web-sdk/{p-8b20b903.system.entry.js → p-817e6569.system.entry.js} +1 -1
  191. package/dist/verdocs-web-sdk/p-8229e6df.system.js +1 -0
  192. package/dist/verdocs-web-sdk/{p-b225dcfb.entry.js → p-823bf074.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-e91b174d.system.entry.js → p-82452c9b.system.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/{p-70ad917b.entry.js → p-84b3f146.entry.js} +1 -1
  195. package/dist/verdocs-web-sdk/{p-79514d21.system.entry.js → p-87e67bc6.system.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/{p-285eaf3c.system.entry.js → p-8b3cf06c.system.entry.js} +1 -1
  197. package/dist/verdocs-web-sdk/p-91df3bb9.entry.js +1 -0
  198. package/dist/verdocs-web-sdk/{p-19d13aca.system.entry.js → p-93e8443f.system.entry.js} +1 -1
  199. package/dist/verdocs-web-sdk/{p-7d8de5d6.system.entry.js → p-93f0d41c.system.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/p-95ed895f.entry.js +1 -0
  201. package/dist/verdocs-web-sdk/{p-0c393c2b.system.entry.js → p-9b7d218c.system.entry.js} +1 -1
  202. package/dist/verdocs-web-sdk/{p-9576a08f.system.entry.js → p-9b9ecf94.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-8644dd0f.system.entry.js → p-9ccdb9a9.system.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/{p-93b857b6.system.entry.js → p-9f6e7b4a.system.entry.js} +1 -1
  205. package/dist/verdocs-web-sdk/{p-011eedf8.entry.js → p-a4b4ce45.entry.js} +1 -1
  206. package/dist/verdocs-web-sdk/{p-e65ec569.system.entry.js → p-bac9ba46.system.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
  208. package/dist/verdocs-web-sdk/p-c30fa791.entry.js +1 -0
  209. package/dist/verdocs-web-sdk/{p-cf8522b5.entry.js → p-c37913b6.entry.js} +1 -1
  210. package/dist/verdocs-web-sdk/p-c3922dbb.system.entry.js +1 -0
  211. package/dist/verdocs-web-sdk/{p-d27a02b5.entry.js → p-c6e0cc16.entry.js} +1 -1
  212. package/dist/verdocs-web-sdk/p-ca0a2a00.entry.js +1 -0
  213. package/dist/verdocs-web-sdk/{p-d78594bb.entry.js → p-cb4d8942.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/{p-8ff15619.entry.js → p-d1cb1151.entry.js} +1 -1
  215. package/dist/verdocs-web-sdk/{p-34db97b7.entry.js → p-dcd59898.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/{p-fc208e71.entry.js → p-deed17c8.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/{p-08270eb7.system.entry.js → p-e29f375d.system.entry.js} +1 -1
  218. package/dist/verdocs-web-sdk/{p-63c55bc3.entry.js → p-e79aabb3.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/p-e7b7bd2b.entry.js +1 -0
  220. package/dist/verdocs-web-sdk/{p-af657dd3.entry.js → p-edcd7d44.entry.js} +1 -1
  221. package/dist/verdocs-web-sdk/{p-433a7bb3.entry.js → p-f0022cf0.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-42a82518.entry.js → p-f5c1ceb0.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-c08b737c.system.entry.js → p-f6aa16f3.system.entry.js} +1 -1
  224. package/dist/verdocs-web-sdk/{p-5b62f239.system.js → p-f9f0d3b4.system.js} +1 -1
  225. package/dist/verdocs-web-sdk/{p-1fe9560f.system.entry.js → p-ffdcc57f.system.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  227. package/package.json +3 -3
  228. package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -88
  229. package/dist/esm/verdocs-dropdown.entry.js +0 -84
  230. package/dist/esm-es5/Roles-2488d047.js +0 -1
  231. package/dist/esm-es5/VerdocsEndpoint-7f17b088.js +0 -1
  232. package/dist/esm-es5/templateStore-fd4beaae.js +0 -1
  233. package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
  234. package/dist/esm-es5/verdocs-floating-menu_2.entry.js +0 -1
  235. package/dist/verdocs-web-sdk/p-1be43032.system.entry.js +0 -1
  236. package/dist/verdocs-web-sdk/p-261dcea1.system.js +0 -1
  237. package/dist/verdocs-web-sdk/p-2d4712ea.js +0 -1
  238. package/dist/verdocs-web-sdk/p-3cb8a7f4.js +0 -1
  239. package/dist/verdocs-web-sdk/p-56196fad.entry.js +0 -1
  240. package/dist/verdocs-web-sdk/p-6c4d28a2.entry.js +0 -1
  241. package/dist/verdocs-web-sdk/p-6e15a51e.system.entry.js +0 -1
  242. package/dist/verdocs-web-sdk/p-76bdb162.entry.js +0 -1
  243. package/dist/verdocs-web-sdk/p-80d98971.entry.js +0 -1
  244. package/dist/verdocs-web-sdk/p-b7740fe7.system.entry.js +0 -1
  245. package/dist/verdocs-web-sdk/p-c95c8e1f.system.entry.js +0 -1
  246. package/dist/verdocs-web-sdk/p-d3e25ad3.entry.js +0 -1
  247. package/dist/verdocs-web-sdk/p-d946b1b6.entry.js +0 -1
  248. package/dist/verdocs-web-sdk/p-fbc81799.system.js +0 -1
  249. package/dist/verdocs-web-sdk/p-ffe60abd.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i,H as s}from"./p-ff1278ed.js";import{c as a,g as o}from"./p-b28ef4bb.js";import{V as l}from"./p-2d4712ea.js";import{S as r}from"./p-7a1b2643.js";import{i as n}from"./p-a892d5b4.js";import{u as d,c as h}from"./p-feb442b1.js";import{a as p,r as c,e as m,f as g,h as v}from"./p-25fa36d7.js";import{s as x}from"./p-3cb8a7f4.js";import{l as u}from"./p-ad6cc9f4.js";import"./p-21603661.js";import"./p-388b771c.js";import"./p-aa124212.js";import"./p-ab01f71e.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const f=class{constructor(i){e(this,i),this.cancel=t(this,"cancel",7),this.next=t(this,"next",7),this.sdkError=t(this,"sdkError",7),this.endpoint=l.getDefault(),this.file=void 0,this.creating=!1}componentWillLoad(){this.endpoint.setTimeout(3e4),this.endpoint.loadSession()}handleFileChanged(e){var t;this.file=(null===(t=e.target.files)||void 0===t?void 0:t[0])||null,console.log("[CREATE] Selected file",this.file)}handleUpload(e){e.stopPropagation(),document.getElementById("verdocs-template-create-file").click()}handleCancel(e){var t;e.stopPropagation(),null===(t=this.cancel)||void 0===t||t.emit()}async handleSubmit(e){var t,i,s,l;if(e.stopPropagation(),this.file){this.creating=!0;try{const e=await a(this.endpoint,{name:this.file.name});console.log("[CREATE] Created template",e);const i=await(n=this.endpoint,d=e.id,h=this.file,p=new FormData,p.append("document",h,h.name),n.api.post("/templates/".concat(d,"/documents"),p,{timeout:6e4,onUploadProgress:function(){}}).then((function(e){return e.data})));console.log("[CREATE] Created document",i);const s=await o(this.endpoint,e.id);console.log("[CREATE] Retrieved new template",s),null===(t=this.next)||void 0===t||t.emit(s),this.creating=!1}catch(e){console.log("[CREATE] Error creating template",e),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),this.creating=!1}var n,d,h,p}}render(){return this.endpoint.session?i("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},i("input",{type:"file",id:"verdocs-template-create-file",multiple:!0,accept:"application/pdf",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),this.creating?i("div",{class:"loader-wrapper"},i("verdocs-loader",null),i("div",{class:"loading-text"},"Uploading, please wait...")):i("div",{class:"upload-box"},i("div",null,i("span",{innerHTML:'<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>'})),i("div",{style:{marginTop:"20px",fontSize:"20px",fontWeight:"bold"}},this.file?this.file.name:"Drag a file here"),i("div",{style:{marginTop:"20px",marginBottom:"20px",fontSize:"16px",height:"20px"}},this.file?" ":"Or, if you prefer..."),i("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:e=>this.handleUpload(e)})),i("div",{class:"buttons"},i("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e),disabled:this.creating}),i("verdocs-button",{label:"Next",size:"small",onClick:e=>this.handleSubmit(e),disabled:!this.file||this.creating}))):i(s,null,i("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};f.style='verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end;padding:0 0 30px 0}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}';const w=[{id:"checkbox",tooltip:"Check Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>'},{id:"date",tooltip:"Date",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>'},{id:"dropdown",tooltip:"Dropdown",icon:"O"},{id:"initial",tooltip:"Initials",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>'},{id:"radio",tooltip:"Radio Button",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>'},{id:"signature",tooltip:"Signature",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>'},{id:"textarea",tooltip:"Text Area",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>'},{id:"textbox",tooltip:"Text Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>'},{id:"timestamp",tooltip:"Timestamp",icon:"X"}],b=class{constructor(i){e(this,i),this.next=t(this,"next",7),this.cancel=t(this,"cancel",7),this.sdkError=t(this,"sdkError",7),this.templateUpdated=t(this,"templateUpdated",7),this.pageHeights={},this.cachedPageInfo={},this.endpoint=l.getDefault(),this.templateId=null,this.placing=null,this.selectedRoleName="",this.rerender=1}async componentWillLoad(){var e,t,i,s,a,o;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[FIELDS] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[BUILD] Unable to start builder session, must be authenticated");try{console.log(`[FIELDS] Loading template ${this.templateId}`,this.endpoint.session),await u(this.endpoint,this.templateId,!0),this.selectedRoleName=x.roleNames[0],console.log("Starting with role",this.selectedRoleName)}catch(s){console.log("[FIELDS] Error loading template",s),null===(e=this.sdkError)||void 0===e||e.emit(new r(s.message,null===(t=s.response)||void 0===t?void 0:t.status,null===(i=s.response)||void 0===i?void 0:i.data))}}catch(e){console.log("[FIELDS] Error with preview session",e),null===(s=this.sdkError)||void 0===s||s.emit(new r(e.message,null===(a=e.response)||void 0===a?void 0:a.status,null===(o=e.response)||void 0===o?void 0:o.data))}}componentDidRender(){n.dynamicDrop(!0)}async handleFieldChange(e,t,i){console.log("[FIELDS] handleFieldChange",e,t,i),this.rerender++}attachFieldAttributes(e,t,i,s){s.addEventListener("input",(e=>this.handleFieldChange(t,e))),s.addEventListener("settingsChanged",(()=>{var e;console.log("settings changed",this,t),s.setAttribute("roleindex",p(x.roleNames,t.role_name)),this.rerender++,null===(e=this.templateUpdated)||void 0===e||e.emit({endpoint:this.endpoint,template:x.template,event:"updated-field"})})),s.setAttribute("roleindex",i),s.setAttribute("pageNumber",e.pageNumber),s.setAttribute("xScale",e.xScale),s.setAttribute("yScale",e.yScale),s.setAttribute("name",t.name)}handlePageRendered(e){const t=e.detail;console.log("[FIELDS] Page rendered",t),this.cachedPageInfo[t.pageNumber]=t,this.pageHeights[t.pageNumber]=t.naturalHeight;const i=x.fields.filter((e=>e.page_sequence===t.pageNumber));console.log("[FIELDS] Fields on page",i),i.forEach((e=>{const i=p(x.roleNames,e.role_name),s=c(e,t,i,{disabled:!0,editable:!0,draggable:!0});s&&(Array.isArray(s)?s.map((s=>this.attachFieldAttributes(t,e,i,s))):this.attachFieldAttributes(t,e,i,s),n(s).draggable({listeners:{start(e){console.log("[FIELDS] Drag started",e.type,e.target)},move(e){const t=+(e.target.getAttribute("posX")||0),i=+(e.target.getAttribute("posY")||0),s=+(e.target.getAttribute("xScale")||1),a=+(e.target.getAttribute("yScale")||1),o=e.dx/s+t,l=e.dy/a+i;e.target.setAttribute("posX",o),e.target.setAttribute("posy",l),m(e.target,"translate",`${o}px, ${l}px`)},end:this.handleMoveField.bind(this)}}))}))}async handleMoveField(e){const t=e.target.getAttribute("pageNumber"),{naturalWidth:i=612,naturalHeight:s=792,renderedHeight:a=792}=this.cachedPageInfo[t];console.log("[FIELDS] Drag ended",t,e.target);const o=e.target.getBoundingClientRect(),l=e.target.parentElement.getBoundingClientRect(),r=Math.max(o.left-l.left,0),n=Math.max(a-(l.bottom-o.bottom),0),{x:h,y:p}=this.viewCoordinatesToPageCoordinates(r,n,t,i-e.rect.width,s-e.rect.height),c=e.target.getAttribute("name"),m=x.fields.find((e=>e.name===c));m&&(m.setting.x=h,m.setting.y=p,await d(this.endpoint,this.templateId,c,m),this.handlePageRendered({detail:this.cachedPageInfo[t]}))}generateFieldName(e,t){var i;const s=null===(i=x.template.pages)||void 0===i?void 0:i[t-1];return`${e}P${t}-${((null==s?void 0:s.fields)||[]).length}`}viewCoordinatesToPageCoordinates(e,t,i,s,a){const{xScale:o=1,yScale:l=1,renderedHeight:r=792}=this.cachedPageInfo[i];return{x:Math.floor(Math.min(e/o,s)),y:Math.floor(Math.min(Math.max(r-t,0)/l,a))}}async handleClickPage(e,t){var i;if(this.placing){const s=t.sequence,a=e.offsetX,o=e.offsetY,l=g(this.placing),r=v(this.placing),{naturalWidth:n=612,naturalHeight:d=792}=this.cachedPageInfo[s],{x:p,y:c}=this.viewCoordinatesToPageCoordinates(a,o,s,n-l,d-r),m={name:this.generateFieldName(this.placing,s),role_name:this.selectedRoleName,template_id:this.templateId,type:this.placing,required:!0,page_sequence:s,validator:null,setting:{x:p,y:c}};switch(m.type){case"attachment":case"payment":m.setting={x:p,y:c};break;case"initial":case"signature":m.setting={x:p,y:c,result:""};break;case"checkbox_group":m.setting={x:p,y:c,minimum_checked:0,maximum_checked:1e3};break;case"date":m.setting={x:p,y:c,width:l,height:r,result:""};break;case"dropdown":m.setting={x:p,y:c,width:l,height:r,value:"",placeholder:"Select a value"};break;case"radio_button_group":m.setting={x:p,y:c};break;case"textbox":m.setting={x:p,y:c,width:l,height:r,result:"",leading:0,alignment:0,upperCase:!1};break;case"timestamp":m.setting={x:p,y:c,width:l,height:r}}const u=await h(this.endpoint,this.templateId,m);console.log("Saved field",u),x.fields.push(u),this.placing=null,null===(i=this.templateUpdated)||void 0===i||i.emit({endpoint:this.endpoint,template:x.template,event:"added-field"}),this.handlePageRendered({detail:this.cachedPageInfo[s]})}}render(){if(!this.endpoint.session)return i(s,null,i("verdocs-component-error",{message:"You must be authenticated to use this module."}));if(x.loading||!x.template)return i(s,null,i("verdocs-loader",null));const e=[...x.template.pages];return e.sort(((e,t)=>e.sequence-t.sequence)),i(s,{class:this.placing?{[`placing-${this.placing}`]:!0}:{},"data-r":this.rerender,onSubmit:()=>{console.log("onSubmit")}},i("div",{class:"pages"},e.map((e=>i("verdocs-document-page",{pageImageUri:e.display_uri,virtualWidth:612,virtualHeight:792,onClick:t=>this.handleClickPage(t,e),pageNumber:e.sequence,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})))),i("verdocs-floating-menu",{options:w,onOptionSelected:e=>{this.placing=e.detail.id}}))}};b.style="verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}";export{f as verdocs_template_create,b as verdocs_template_fields}
@@ -1 +0,0 @@
1
- System.register(["./p-97329951.system.js","./p-38d00c38.system.js","./p-e764098e.system.js","./p-af2c2f79.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js"],(function(e){"use strict";var m,a,r,t,b,g;return{setters:[function(e){m=e.r;a=e.c;r=e.h;t=e.H;b=e.a},function(e){g=e.t},function(){},function(){},function(){},function(){}],execute:function(){var i="verdocs-document-page{width:100%;position:relative}verdocs-document-page .verdocs-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-document-page .verdocs-document-page-layer.img{width:100%}";var o=e("verdocs_document_page",function(){function e(e){m(this,e);this.pageRendered=a(this,"pageRendered",7);this.pageImageUri="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true}e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(g((function(m){for(var a=0,r=m;a<r.length;a++){var t=r[a];var b=t.contentRect.width;e.renderedWidth=b;e.renderedHeight=e.virtualHeight*(b/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var m="".concat(this.renderedHeight,"px");return r(t,{id:"".concat(this.containerId),style:{height:m}},this.layers.map((function(a){return a.type==="div"?r("div",{class:"verdocs-document-page-layer",id:"".concat(e.containerId,"-").concat(a.name),style:{height:m}}):r("img",{class:"verdocs-document-page-layer img",id:"".concat(e.containerId,"-").concat(a.name),src:e.pageImageUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,onLoad:function(m){e.naturalWidth=m.target.naturalWidth;e.naturalHeight=m.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio}})})))};Object.defineProperty(e.prototype,"container",{get:function(){return b(this)},enumerable:false,configurable:true});return e}());o.style=i;var s="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";var n=e("verdocs_loader",function(){function e(e){m(this,e)}e.prototype.render=function(){return r(t,null)};return e}());n.style=s}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,a){function n(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a["throw"](e))}catch(e){o(e)}}function l(e){e.done?i(e.value):n(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,n,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(r){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,n&&(o=r[0]&2?n["return"]:r[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;if(n=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;n=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){i.label=r[1];break}if(r[0]===6&&i.label<o[1]){i.label=o[1];o=r;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(r);break}if(o[2])i.ops.pop();i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e];n=0}finally{a=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var a=0,n=t.length,o;a<n;a++){if(o||!(a in t)){if(!o)o=Array.prototype.slice.call(t,0,a);o[a]=t[a]}}return e.concat(o||Array.prototype.slice.call(t))};System.register(["./p-97329951.system.js","./p-69912cbf.system.js","./p-261dcea1.system.js","./p-187b20b7.system.js","./p-80fe8ac3.system.js","./p-b1288daf.system.js","./p-38d00c38.system.js","./p-5b62f239.system.js","./p-45a4da16.system.js","./p-af2c2f79.system.js","./p-e764098e.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js"],(function(e){"use strict";var t,i,a,n,o,r,s,l,d,c,p,h,u,g,m,v,f,x;return{setters:[function(e){t=e.r;i=e.c;a=e.h;n=e.H},function(e){o=e.c;r=e.g},function(e){s=e.V},function(e){l=e.S},function(e){d=e.i},function(e){c=e.u;p=e.c},function(e){h=e.a;u=e.r;g=e.e;m=e.f;v=e.h},function(e){f=e.s},function(e){x=e.l},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var b=function(e,t,i,a){var n=new FormData;n.append("document",i,i.name);return e.api.post("/templates/".concat(t,"/documents"),n,{timeout:6e4,onUploadProgress:function(e){var t=e.total||1;var i=e.loaded||0;a===null||a===void 0?void 0:a(Math.floor(i*100/(t||1)),i,t||1)}}).then((function(e){return e.data}))};var w='verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end;padding:0 0 30px 0}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}';var y=" ";var q='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';var Z=e("verdocs_template_create",function(){function e(e){t(this,e);this.cancel=i(this,"cancel",7);this.next=i(this,"next",7);this.sdkError=i(this,"sdkError",7);this.endpoint=s.getDefault();this.file=undefined;this.creating=false}e.prototype.componentWillLoad=function(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()};e.prototype.handleFileChanged=function(e){var t;this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file)};e.prototype.handleUpload=function(e){e.stopPropagation();var t=document.getElementById("verdocs-template-create-file");t.click()};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.cancel)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,a,n,s,d,c,p;return __generator(this,(function(h){switch(h.label){case 0:e.stopPropagation();if(!this.file){return[2]}this.creating=true;h.label=1;case 1:h.trys.push([1,5,,6]);return[4,o(this.endpoint,{name:this.file.name})];case 2:s=h.sent();console.log("[CREATE] Created template",s);return[4,b(this.endpoint,s.id,this.file)];case 3:d=h.sent();console.log("[CREATE] Created document",d);return[4,r(this.endpoint,s.id)];case 4:c=h.sent();console.log("[CREATE] Retrieved new template",c);(t=this.next)===null||t===void 0?void 0:t.emit(c);this.creating=false;return[3,6];case 5:p=h.sent();console.log("[CREATE] Error creating template",p);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new l(p.message,(a=p.response)===null||a===void 0?void 0:a.status,(n=p.response)===null||n===void 0?void 0:n.data));this.creating=false;return[3,6];case 6:return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return a(n,null,a("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return a("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},a("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:"application/pdf",style:{display:"none"},onChange:function(t){return e.handleFileChanged(t)}}),this.creating?a("div",{class:"loader-wrapper"},a("verdocs-loader",null),a("div",{class:"loading-text"},"Uploading, please wait...")):a("div",{class:"upload-box"},a("div",null,a("span",{innerHTML:q})),a("div",{style:{marginTop:"20px",fontSize:"20px",fontWeight:"bold"}},this.file?this.file.name:"Drag a file here"),a("div",{style:{marginTop:"20px",marginBottom:"20px",fontSize:"16px",height:"20px"}},this.file?y:"Or, if you prefer..."),a("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:function(t){return e.handleUpload(t)}})),a("div",{class:"buttons"},a("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)},disabled:this.creating}),a("verdocs-button",{label:"Next",size:"small",onClick:function(t){return e.handleSubmit(t)},disabled:!this.file||this.creating})))};return e}());Z.style=w;var E="verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}";var C='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>';var _='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>';var k='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>';var V='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>';var S='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>';var L='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>';var I='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>';var H=[{id:"checkbox",tooltip:"Check Box",icon:k},{id:"date",tooltip:"Date",icon:S},{id:"dropdown",tooltip:"Dropdown",icon:"O"},{id:"initial",tooltip:"Initials",icon:I},{id:"radio",tooltip:"Radio Button",icon:V},{id:"signature",tooltip:"Signature",icon:L},{id:"textarea",tooltip:"Text Area",icon:_},{id:"textbox",tooltip:"Text Box",icon:C},{id:"timestamp",tooltip:"Timestamp",icon:"X"}];var A=e("verdocs_template_fields",function(){function e(e){t(this,e);this.next=i(this,"next",7);this.cancel=i(this,"cancel",7);this.sdkError=i(this,"sdkError",7);this.templateUpdated=i(this,"templateUpdated",7);this.pageHeights={};this.cachedPageInfo={};this.endpoint=s.getDefault();this.templateId=null;this.placing=null;this.selectedRoleName="";this.rerender=1}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,a,n,o,r,s;return __generator(this,(function(d){switch(d.label){case 0:d.trys.push([0,5,,6]);this.endpoint.loadSession();if(!this.templateId){console.log("[FIELDS] Missing required template ID ".concat(this.templateId));return[2]}if(!this.endpoint.session){console.log("[BUILD] Unable to start builder session, must be authenticated");return[2]}d.label=1;case 1:d.trys.push([1,3,,4]);console.log("[FIELDS] Loading template ".concat(this.templateId),this.endpoint.session);return[4,x(this.endpoint,this.templateId,true)];case 2:d.sent();this.selectedRoleName=f.roleNames[0];console.log("Starting with role",this.selectedRoleName);return[3,4];case 3:r=d.sent();console.log("[FIELDS] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new l(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(i=r.response)===null||i===void 0?void 0:i.data));return[3,4];case 4:return[3,6];case 5:s=d.sent();console.log("[FIELDS] Error with preview session",s);(a=this.sdkError)===null||a===void 0?void 0:a.emit(new l(s.message,(n=s.response)===null||n===void 0?void 0:n.status,(o=s.response)===null||o===void 0?void 0:o.data));return[3,6];case 6:return[2]}}))}))};e.prototype.componentDidRender=function(){d.dynamicDrop(true)};e.prototype.handleFieldChange=function(e,t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){console.log("[FIELDS] handleFieldChange",e,t,i);this.rerender++;return[2]}))}))};e.prototype.attachFieldAttributes=function(e,t,i,a){var n=this;a.addEventListener("input",(function(e){return n.handleFieldChange(t,e)}));a.addEventListener("settingsChanged",(function(){var e;console.log("settings changed",n,t);a.setAttribute("roleindex",h(f.roleNames,t.role_name));n.rerender++;(e=n.templateUpdated)===null||e===void 0?void 0:e.emit({endpoint:n.endpoint,template:f.template,event:"updated-field"})}));a.setAttribute("roleindex",i);a.setAttribute("pageNumber",e.pageNumber);a.setAttribute("xScale",e.xScale);a.setAttribute("yScale",e.yScale);a.setAttribute("name",t.name)};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;console.log("[FIELDS] Page rendered",i);this.cachedPageInfo[i.pageNumber]=i;this.pageHeights[i.pageNumber]=i.naturalHeight;var a=f.fields.filter((function(e){return e.page_sequence===i.pageNumber}));console.log("[FIELDS] Fields on page",a);a.forEach((function(e){var a=h(f.roleNames,e.role_name);var n=u(e,i,a,{disabled:true,editable:true,draggable:true});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,a,n)}))}else{t.attachFieldAttributes(i,e,a,n)}d(n).draggable({listeners:{start:function(e){console.log("[FIELDS] Drag started",e.type,e.target)},move:function(e){var t=+(e.target.getAttribute("posX")||0);var i=+(e.target.getAttribute("posY")||0);var a=+(e.target.getAttribute("xScale")||1);var n=+(e.target.getAttribute("yScale")||1);var o=e.dx/a+t;var r=e.dy/n+i;e.target.setAttribute("posX",o);e.target.setAttribute("posy",r);g(e.target,"translate","".concat(o,"px, ").concat(r,"px"))},end:t.handleMoveField.bind(t)}})}))};e.prototype.handleMoveField=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,a,n,o,r,s,l,d,p,h,u,g,m,v,x,b,w;return __generator(this,(function(y){switch(y.label){case 0:t=e.target.getAttribute("pageNumber");i=this.cachedPageInfo[t],a=i.naturalWidth,n=a===void 0?612:a,o=i.naturalHeight,r=o===void 0?792:o,s=i.renderedHeight,l=s===void 0?792:s;console.log("[FIELDS] Drag ended",t,e.target);d=e.target.getBoundingClientRect();p=e.target.parentElement;h=p.getBoundingClientRect();u=Math.max(d.left-h.left,0);g=Math.max(l-(h.bottom-d.bottom),0);m=this.viewCoordinatesToPageCoordinates(u,g,t,n-e.rect.width,r-e.rect.height),v=m.x,x=m.y;b=e.target.getAttribute("name");w=f.fields.find((function(e){return e.name===b}));if(!w)return[3,2];w.setting.x=v;w.setting.y=x;return[4,c(this.endpoint,this.templateId,b,w)];case 1:y.sent();this.handlePageRendered({detail:this.cachedPageInfo[t]});y.label=2;case 2:return[2]}}))}))};e.prototype.generateFieldName=function(e,t){var i;var a=(i=f.template.pages)===null||i===void 0?void 0:i[t-1];var n=(a===null||a===void 0?void 0:a.fields)||[];return"".concat(e,"P").concat(t,"-").concat(n.length)};e.prototype.viewCoordinatesToPageCoordinates=function(e,t,i,a,n){var o=this.cachedPageInfo[i],r=o.xScale,s=r===void 0?1:r,l=o.yScale,d=l===void 0?1:l,c=o.renderedHeight,p=c===void 0?792:c;var h=Math.floor(Math.min(e/s,a));var u=Math.floor(Math.min(Math.max(p-t,0)/d,n));return{x:h,y:u}};e.prototype.handleClickPage=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,a,n,o,r,s,l,d,c,h,u,g,x,b,w,y;return __generator(this,(function(q){switch(q.label){case 0:if(!this.placing)return[3,2];a=t.sequence;n=e.offsetX;o=e.offsetY;r=m(this.placing);s=v(this.placing);l=this.cachedPageInfo[a],d=l.naturalWidth,c=d===void 0?612:d,h=l.naturalHeight,u=h===void 0?792:h;g=this.viewCoordinatesToPageCoordinates(n,o,a,c-r,u-s),x=g.x,b=g.y;w={name:this.generateFieldName(this.placing,a),role_name:this.selectedRoleName,template_id:this.templateId,type:this.placing,required:true,page_sequence:a,validator:null,setting:{x:x,y:b}};switch(w.type){case"attachment":case"payment":w.setting={x:x,y:b};break;case"initial":case"signature":w.setting={x:x,y:b,result:""};break;case"checkbox_group":w.setting={x:x,y:b,minimum_checked:0,maximum_checked:1e3};break;case"date":w.setting={x:x,y:b,width:r,height:s,result:""};break;case"dropdown":w.setting={x:x,y:b,width:r,height:s,value:"",placeholder:"Select a value"};break;case"radio_button_group":w.setting={x:x,y:b};break;case"textbox":w.setting={x:x,y:b,width:r,height:s,result:"",leading:0,alignment:0,upperCase:false};break;case"timestamp":w.setting={x:x,y:b,width:r,height:s};break}return[4,p(this.endpoint,this.templateId,w)];case 1:y=q.sent();console.log("Saved field",y);f.fields.push(y);this.placing=null;(i=this.templateUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,template:f.template,event:"added-field"});this.handlePageRendered({detail:this.cachedPageInfo[a]});q.label=2;case 2:return[2]}}))}))};e.prototype.render=function(){var e;var t=this;if(!this.endpoint.session){return a(n,null,a("verdocs-component-error",{message:"You must be authenticated to use this module."}))}if(f.loading||!f.template){return a(n,null,a("verdocs-loader",null))}var i=__spreadArray([],f.template.pages,true);i.sort((function(e,t){return e.sequence-t.sequence}));return a(n,{class:this.placing?(e={},e["placing-".concat(this.placing)]=true,e):{},"data-r":this.rerender,onSubmit:function(){console.log("onSubmit")}},a("div",{class:"pages"},i.map((function(e){return a("verdocs-document-page",{pageImageUri:e.display_uri,virtualWidth:612,virtualHeight:792,onClick:function(i){return t.handleClickPage(i,e)},pageNumber:e.sequence,onPageRendered:function(e){return t.handlePageRendered(e)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})}))),a("verdocs-floating-menu",{options:H,onOptionSelected:function(e){t.placing=e.detail.id}}))};return e}());A.style=E}}}));
@@ -1 +0,0 @@
1
- import{r as o,c as i,h as s,H as r,a as e}from"./p-ff1278ed.js";import{c as t}from"./p-ec26fc38.js";const d=class{constructor(s){o(this,s),this.optionSelected=i(this,"optionSelected",7),this.clickListenerSymbol=new AbortController,this.options=[],this.open=void 0}componentDidLoad(){this.popper=t(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,6]}}]}),window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})}disconnectedCallback(){this.clickListenerSymbol.abort()}clickListener(o){o.target!=this.el&&!this.el.contains(o.target)&&this.hide()}handleSelectOption(o,i){o.stopPropagation(),this.optionSelected.emit(i),this.hide()}showDropdown(){var o,i;this.open=!0,this.dropdownMenu.setAttribute("data-show",""),this.dropdownMenu.removeAttribute("aria-hidden"),null===(o=this.popper)||void 0===o||o.setOptions((o=>({...o,modifiers:[...o.modifiers,{name:"eventListeners",enabled:!0}]}))).catch((()=>{})),null===(i=this.popper)||void 0===i||i.update().catch((()=>{}))}handleHideDropdown(o){var i,s;"button"===(null===(i=null==o?void 0:o.target)||void 0===i?void 0:i.localName)&&"arrow"===(null===(s=null==o?void 0:o.target)||void 0===s?void 0:s.className)||this.hide()}toggleDropdown(o){o.stopPropagation(),this.open?this.hide():this.showDropdown()}hide(){var o;this.open=!1,this.dropdownMenu.removeAttribute("data-show"),this.dropdownMenu.setAttribute("aria-hidden","true"),null===(o=this.popper)||void 0===o||o.setOptions((o=>({...o,modifiers:[...o.modifiers,{name:"eventListeners",enabled:!1}]}))).catch((()=>{}))}render(){var o;return s(r,{class:{open:!!this.open}},s("button",{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.toggleDropdown(o),onBlur:o=>this.handleHideDropdown(o),ref:o=>this.dropdownButton=o}),s("div",{class:"items","aria-hidden":!this.open,ref:o=>this.dropdownMenu=o},null===(o=this.options)||void 0===o?void 0:o.map((o=>o.label?s("button",{onClick:i=>this.handleSelectOption(i,o),class:"option",disabled:o.disabled},o.label):s("div",{class:"separator"})))))}get el(){return e(this)}};d.style='verdocs-dropdown{font-family:"Barlow", sans-serif;display:block}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 .items{width:200px;display:none;z-index:10000;border-radius:5px;background:#33354c;border:1px solid #654dcb}verdocs-dropdown .items[data-show]{display:block}verdocs-dropdown .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}verdocs-dropdown .option:hover{cursor:pointer;background:#55bc81}verdocs-dropdown .option[disabled]{color:#aaaaaa}verdocs-dropdown .option[disabled]:hover{color:#aaaaaa;cursor:inherit;background:transparent}verdocs-dropdown .separator{border-top:1px solid #ffffff5f;height:1px;padding-top:5px;margin-top:5px}verdocs-dropdown.open .items{display:block}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}';export{d as verdocs_dropdown}
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as e,a as i,H as s}from"./p-ff1278ed.js";import{c as r}from"./p-ec26fc38.js";const n=class{constructor(e){o(this,e),this.optionSelected=t(this,"optionSelected",7),this.menuContainer=null,this.scrollParent=null,this.scrollParentParent=null,this.options=[]}componentDidLoad(){this.menuContainer=document.createElement("div"),this.menuContainer.id="verdocs-floating-menu";let o=document.createElement("div");o.className="trigger",o.innerText="+",this.menuContainer.append(o),o=document.createElement("div"),o.className="options",this.menuContainer.append(o);const t=this.handleSelect.bind(this);this.options.forEach((e=>{const i=document.createElement("div");i.className="option",i.addEventListener("click",(()=>t(e))),o.append(i);const s=document.createElement("verdocs-toolbar-icon");s.setAttribute("icon",e.icon),s.setAttribute("text",e.tooltip),s.setAttribute("placement","left"),i.append(s)})),document.body.append(this.menuContainer),this.scrollParent=(o=>{const t=/(auto|scroll)/,e=(o,t)=>null===o.parentNode?t:e(o.parentNode,t.concat([o])),i=(o,t)=>getComputedStyle(o,null).getPropertyValue(t),s=o=>t.test((o=>i(o,"overflow")+i(o,"overflow-y")+i(o,"overflow-x"))(o));return(o=>{if(!(o instanceof HTMLElement||o instanceof SVGElement))return;const t=e(o.parentNode,[]);for(let o=0;o<t.length;o+=1)if(s(t[o]))return t[o];return document.scrollingElement||document.documentElement})(o)})(this.el),this.scrollParent&&(this.scrollParentParent=this.scrollParent.parentElement,this.repositionTrigger(this.scrollParent))}disconnectedCallback(){var o;null===(o=this.menuContainer)||void 0===o||o.remove()}handleSelect(o){var t;null===(t=this.optionSelected)||void 0===t||t.emit(o);const e=document.getElementById("verdocs-floating-menu");e&&(e.className="force-closed",setTimeout((()=>{e.className=""}),100))}repositionTrigger(o){const t=o.parentElement;if(t){const o=t.getBoundingClientRect(),e=document.getElementById("verdocs-floating-menu");e&&(e.style.bottom=document.documentElement.clientHeight-(document.documentElement.scrollTop+o.bottom)+10+"px",e.style.left=o.right-80+"px")}}render(){return e(s,null)}get el(){return i(this)}};n.style="verdocs-floating-menu{display:none}#verdocs-floating-menu{position:absolute;width:56px;height:56px;display:-ms-flexbox;display:flex;-ms-flex:0 0 fit-content;flex:0 0 fit-content}#verdocs-floating-menu:not(.force-closed):hover{height:500px}#verdocs-floating-menu:not(.force-closed):hover .trigger{-webkit-box-shadow:0 10px 25px #4c56cb;box-shadow:0 10px 25px #4c56cb;-webkit-transform:translatey(2px);transform:translatey(2px);-webkit-transition:all 0.3s;transition:all 0.3s}#verdocs-floating-menu:not(.force-closed):hover .options{display:-ms-flexbox;display:flex}#verdocs-floating-menu:not(.force-closed):hover .options .option{-webkit-animation:vfm-appear 0.1s forwards 0.2s;animation:vfm-appear 0.1s forwards 0.2s}#verdocs-floating-menu .trigger{position:absolute;width:56px;height:56px;background:#654dcb;bottom:0;border-radius:50%;left:0;right:0;margin:auto;color:white;line-height:52px;text-align:center;font-size:44px;z-index:100;-webkit-box-shadow:0 10px 25px -5px #4c56cb;box-shadow:0 10px 25px -5px #4c56cb;cursor:pointer;-webkit-transition:all 0.3s;transition:all 0.3s}#verdocs-floating-menu .options{width:56px;-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 fit-content;flex:0 0 fit-content;position:absolute;bottom:70px;display:none}#verdocs-floating-menu .option{background:#654dcb;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:50%;width:36px;height:36px;margin:5px auto;color:white;font-weight:500;text-align:center;line-height:36px;opacity:0}#verdocs-floating-menu verdocs-toolbar-icon .icon{display:-ms-flexbox;display:flex}#verdocs-floating-menu verdocs-toolbar-icon .icon svg{fill:#ffffff}@-webkit-keyframes vfm-appear{0%{opacity:0}30%{-webkit-transform:scale(0.4);transform:scale(0.4);opacity:0.3}70%{-webkit-transform:scale(1.2);transform:scale(1.2);opacity:0.6}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}@keyframes vfm-appear{0%{opacity:0}30%{-webkit-transform:scale(0.4);transform:scale(0.4);opacity:0.3}70%{-webkit-transform:scale(1.2);transform:scale(1.2);opacity:0.6}100%{-webkit-transform:scale(1);transform:scale(1);opacity:1}}";const a=class{constructor(t){o(this,t),this.text="",this.icon="",this.placement="bottom",this.containerId=`verdocs-toolbar-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=r(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 o,t;null===(o=this.tooltip)||void 0===o||o.setAttribute("data-show",""),null===(t=this.popperInstance)||void 0===t||t.update().catch((()=>{}))}hide(){var o;null===(o=this.tooltip)||void 0===o||o.removeAttribute("data-show")}render(){return e(s,{class:{}},e("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:o=>this.iconEl=o}),e("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:o=>this.tooltip=o},this.text,e("div",{"data-popper-arrow":"true",class:"arrow"})))}};a.style='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{n as verdocs_floating_menu,a as verdocs_toolbar_icon}
@@ -1 +0,0 @@
1
- System.register([],(function(t){"use strict";return{execute:function(){var n=t("c",(function(t,n,e){return t.api.post("/templates/".concat(n,"/roles/"),e).then((function(t){return t.data}))}));var e=t("u",(function(t,n,e,r){return t.api.put("/templates/".concat(n,"/roles/").concat(e),r).then((function(t){return t.data}))}));var r=t("d",(function(t,n,e){return t.api.delete("/templates/".concat(n,"/roles/").concat(e)).then((function(t){return t.data}))}))}}}));
@@ -1 +0,0 @@
1
- var t=function(t,n,r){return t.api.post("/templates/".concat(n,"/roles/"),r).then((function(t){return t.data}))},n=function(t,n,r,e){return t.api.put("/templates/".concat(n,"/roles/").concat(r),e).then((function(t){return t.data}))},r=function(t,n,r){return t.api.delete("/templates/".concat(n,"/roles/").concat(r)).then((function(t){return t.data}))};export{t as c,r as d,n as u}