@verdocs/web-sdk 5.0.44 → 5.0.45

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 (427) hide show
  1. package/dist/cjs/en-9bc0a0b3.js +35 -0
  2. package/dist/cjs/en-9bc0a0b3.js.map +1 -0
  3. package/dist/cjs/index-01ae8e85.js +4 -0
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/verdocs-button_2.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-checkbox_6.cjs.entry.js +6 -6
  7. package/dist/cjs/verdocs-date-input.cjs.entry.js +85 -0
  8. package/dist/cjs/verdocs-date-input.cjs.entry.js.map +1 -0
  9. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  12. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +8 -34
  13. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
  14. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +25 -4
  16. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js.map +1 -1
  17. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  18. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  20. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  22. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -2
  25. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  26. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  28. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  29. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  35. package/dist/collection/collection-manifest.json +1 -0
  36. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.css +98 -0
  37. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +242 -0
  38. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js.map +1 -0
  39. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  40. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  41. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  42. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  43. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  44. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  45. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  46. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  47. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  48. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  49. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  50. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  51. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  52. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  53. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  54. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  55. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  56. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +8 -0
  57. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +26 -4
  58. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -1
  59. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  60. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  61. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  62. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  63. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  64. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +1 -2
  65. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  66. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  67. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  68. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  69. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +1 -0
  70. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js.map +1 -1
  71. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  72. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  73. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  74. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  75. package/dist/components/index.js +2 -0
  76. package/dist/components/index.js.map +1 -1
  77. package/dist/components/{p-444a3bdf.js → p-008472ce.js} +11 -11
  78. package/dist/components/{p-444a3bdf.js.map → p-008472ce.js.map} +1 -1
  79. package/dist/components/{p-bebd9b19.js → p-02f67734.js} +2 -2
  80. package/dist/components/{p-bebd9b19.js.map → p-02f67734.js.map} +1 -1
  81. package/dist/components/{p-81979fe6.js → p-06bacd3b.js} +2 -2
  82. package/dist/components/{p-81979fe6.js.map → p-06bacd3b.js.map} +1 -1
  83. package/dist/components/{p-4a04090c.js → p-0a14020a.js} +22 -22
  84. package/dist/components/{p-4a04090c.js.map → p-0a14020a.js.map} +1 -1
  85. package/dist/components/{p-d20bbc7d.js → p-0d7860de.js} +4 -4
  86. package/dist/components/{p-d20bbc7d.js.map → p-0d7860de.js.map} +1 -1
  87. package/dist/components/{p-d990000f.js → p-1354c984.js} +2 -2
  88. package/dist/components/{p-d990000f.js.map → p-1354c984.js.map} +1 -1
  89. package/dist/components/{p-710ca15d.js → p-18086502.js} +2 -2
  90. package/dist/components/{p-710ca15d.js.map → p-18086502.js.map} +1 -1
  91. package/dist/components/{p-44e14cb9.js → p-2985ae11.js} +2 -2
  92. package/dist/components/{p-44e14cb9.js.map → p-2985ae11.js.map} +1 -1
  93. package/dist/components/{p-51c8b927.js → p-2b0d2fbd.js} +4 -4
  94. package/dist/components/{p-51c8b927.js.map → p-2b0d2fbd.js.map} +1 -1
  95. package/dist/components/{p-6a8c32a6.js → p-3077aff3.js} +8 -8
  96. package/dist/components/{p-6a8c32a6.js.map → p-3077aff3.js.map} +1 -1
  97. package/dist/components/{p-92cce3dc.js → p-3ceeb122.js} +2 -210
  98. package/dist/components/p-3ceeb122.js.map +1 -0
  99. package/dist/components/{p-8af753b4.js → p-497ceba2.js} +2 -2
  100. package/dist/components/{p-8af753b4.js.map → p-497ceba2.js.map} +1 -1
  101. package/dist/components/{p-df227cfc.js → p-4a4de8d8.js} +7 -7
  102. package/dist/components/{p-df227cfc.js.map → p-4a4de8d8.js.map} +1 -1
  103. package/dist/components/{p-5faeacf0.js → p-4bcb364c.js} +2 -2
  104. package/dist/components/{p-5faeacf0.js.map → p-4bcb364c.js.map} +1 -1
  105. package/dist/components/{p-e85acbfb.js → p-4fff9f15.js} +7 -7
  106. package/dist/components/{p-e85acbfb.js.map → p-4fff9f15.js.map} +1 -1
  107. package/dist/components/{p-5d578b83.js → p-515f8afb.js} +7 -7
  108. package/dist/components/{p-5d578b83.js.map → p-515f8afb.js.map} +1 -1
  109. package/dist/components/{p-43b8738f.js → p-6507fba9.js} +5 -5
  110. package/dist/components/{p-43b8738f.js.map → p-6507fba9.js.map} +1 -1
  111. package/dist/components/{p-eb4bd2d6.js → p-71b30a91.js} +9 -9
  112. package/dist/components/{p-eb4bd2d6.js.map → p-71b30a91.js.map} +1 -1
  113. package/dist/components/{p-d89157e9.js → p-728ec158.js} +2 -2
  114. package/dist/components/{p-d89157e9.js.map → p-728ec158.js.map} +1 -1
  115. package/dist/components/{p-641e2cc0.js → p-73629a90.js} +3 -3
  116. package/dist/components/{p-641e2cc0.js.map → p-73629a90.js.map} +1 -1
  117. package/dist/components/{p-f7dc9e74.js → p-7f6c97d5.js} +2 -2
  118. package/dist/components/{p-f7dc9e74.js.map → p-7f6c97d5.js.map} +1 -1
  119. package/dist/components/{p-9a24561a.js → p-81e52989.js} +7 -7
  120. package/dist/components/{p-9a24561a.js.map → p-81e52989.js.map} +1 -1
  121. package/dist/components/{p-0a102a9c.js → p-83ecee53.js} +2 -2
  122. package/dist/components/{p-0a102a9c.js.map → p-83ecee53.js.map} +1 -1
  123. package/dist/components/{p-f776eeae.js → p-8e44cb14.js} +3 -3
  124. package/dist/components/{p-f776eeae.js.map → p-8e44cb14.js.map} +1 -1
  125. package/dist/components/{p-4ab3413a.js → p-9c650a78.js} +7 -7
  126. package/dist/components/{p-4ab3413a.js.map → p-9c650a78.js.map} +1 -1
  127. package/dist/components/{p-08ddf0b4.js → p-a5c69199.js} +6 -6
  128. package/dist/components/{p-08ddf0b4.js.map → p-a5c69199.js.map} +1 -1
  129. package/dist/components/{p-4a4bf38c.js → p-a808fcb1.js} +6 -6
  130. package/dist/components/{p-4a4bf38c.js.map → p-a808fcb1.js.map} +1 -1
  131. package/dist/components/{p-1a83e46c.js → p-a8f59e9d.js} +7 -7
  132. package/dist/components/{p-1a83e46c.js.map → p-a8f59e9d.js.map} +1 -1
  133. package/dist/components/{p-ca16a8ac.js → p-acb41a2e.js} +2 -2
  134. package/dist/components/{p-ca16a8ac.js.map → p-acb41a2e.js.map} +1 -1
  135. package/dist/components/{p-321e2d4e.js → p-b4eee1ed.js} +28 -6
  136. package/dist/components/p-b4eee1ed.js.map +1 -0
  137. package/dist/components/{p-91eae04c.js → p-b9ec1278.js} +23 -23
  138. package/dist/components/{p-91eae04c.js.map → p-b9ec1278.js.map} +1 -1
  139. package/dist/components/{p-f66d6a07.js → p-bcbe0f6b.js} +8 -8
  140. package/dist/components/{p-f66d6a07.js.map → p-bcbe0f6b.js.map} +1 -1
  141. package/dist/components/{p-b474c324.js → p-bfa07825.js} +21 -21
  142. package/dist/components/{p-b474c324.js.map → p-bfa07825.js.map} +1 -1
  143. package/dist/components/{p-4dbb9783.js → p-c696e5d7.js} +5 -5
  144. package/dist/components/{p-4dbb9783.js.map → p-c696e5d7.js.map} +1 -1
  145. package/dist/components/{p-61a2c23a.js → p-cb2e0f23.js} +2 -2
  146. package/dist/components/{p-61a2c23a.js.map → p-cb2e0f23.js.map} +1 -1
  147. package/dist/components/{p-73a39d5a.js → p-ccbd93c3.js} +3 -3
  148. package/dist/components/{p-73a39d5a.js.map → p-ccbd93c3.js.map} +1 -1
  149. package/dist/components/{p-0e454650.js → p-cf95858b.js} +7 -7
  150. package/dist/components/{p-0e454650.js.map → p-cf95858b.js.map} +1 -1
  151. package/dist/components/p-d47ac4f2.js +214 -0
  152. package/dist/components/p-d47ac4f2.js.map +1 -0
  153. package/dist/components/{p-54e4bcee.js → p-d5eae4db.js} +2 -2
  154. package/dist/components/{p-54e4bcee.js.map → p-d5eae4db.js.map} +1 -1
  155. package/dist/components/{p-581128fe.js → p-e098ba1d.js} +6 -6
  156. package/dist/components/{p-581128fe.js.map → p-e098ba1d.js.map} +1 -1
  157. package/dist/components/{p-57db7635.js → p-ec06fbd7.js} +2 -2
  158. package/dist/components/{p-57db7635.js.map → p-ec06fbd7.js.map} +1 -1
  159. package/dist/components/{p-081465e0.js → p-ed777fb7.js} +2 -2
  160. package/dist/components/{p-081465e0.js.map → p-ed777fb7.js.map} +1 -1
  161. package/dist/components/{p-e1b7ca10.js → p-ef2df3fa.js} +3 -3
  162. package/dist/components/{p-e1b7ca10.js.map → p-ef2df3fa.js.map} +1 -1
  163. package/dist/components/{p-a50f7982.js → p-f303f8bf.js} +2 -2
  164. package/dist/components/{p-a50f7982.js.map → p-f303f8bf.js.map} +1 -1
  165. package/dist/components/{p-55edf913.js → p-fcfbb327.js} +6 -6
  166. package/dist/components/{p-55edf913.js.map → p-fcfbb327.js.map} +1 -1
  167. package/dist/components/verdocs-auth.js +2 -2
  168. package/dist/components/verdocs-build.js +37 -37
  169. package/dist/components/verdocs-contact-picker.js +1 -1
  170. package/dist/components/verdocs-date-input.d.ts +11 -0
  171. package/dist/components/verdocs-date-input.js +114 -0
  172. package/dist/components/verdocs-date-input.js.map +1 -0
  173. package/dist/components/verdocs-dialog.js +1 -1
  174. package/dist/components/verdocs-dropdown.js +1 -1
  175. package/dist/components/verdocs-envelope-document-page.js +1 -1
  176. package/dist/components/verdocs-envelope-sidebar.js +6 -6
  177. package/dist/components/verdocs-envelopes-list.js +13 -13
  178. package/dist/components/verdocs-field-attachment.js +1 -1
  179. package/dist/components/verdocs-field-checkbox.js +1 -1
  180. package/dist/components/verdocs-field-date.js +1 -1
  181. package/dist/components/verdocs-field-dropdown.js +1 -1
  182. package/dist/components/verdocs-field-initial.js +1 -1
  183. package/dist/components/verdocs-field-payment.js +6 -6
  184. package/dist/components/verdocs-field-radio.js +1 -1
  185. package/dist/components/verdocs-field-signature.js +1 -1
  186. package/dist/components/verdocs-field-textarea.js +1 -1
  187. package/dist/components/verdocs-field-textbox.js +1 -1
  188. package/dist/components/verdocs-field-timestamp.js +1 -1
  189. package/dist/components/verdocs-file-chooser.js +1 -1
  190. package/dist/components/verdocs-help-icon.js +1 -1
  191. package/dist/components/verdocs-initial-dialog.js +1 -1
  192. package/dist/components/verdocs-kba-dialog.js +1 -1
  193. package/dist/components/verdocs-loader.js +1 -1
  194. package/dist/components/verdocs-menu-panel.js +1 -1
  195. package/dist/components/verdocs-multiselect.js +1 -1
  196. package/dist/components/verdocs-ok-dialog.js +1 -1
  197. package/dist/components/verdocs-organization-card.js +2 -2
  198. package/dist/components/verdocs-pagination.js +1 -1
  199. package/dist/components/verdocs-portal.js +1 -1
  200. package/dist/components/verdocs-preview.js +1 -1
  201. package/dist/components/verdocs-progress-bar.js +1 -1
  202. package/dist/components/verdocs-quick-functions.js +1 -1
  203. package/dist/components/verdocs-radio-button.js +1 -1
  204. package/dist/components/verdocs-search-tabs.js +1 -1
  205. package/dist/components/verdocs-select-input.js +1 -1
  206. package/dist/components/verdocs-send.js +1 -1
  207. package/dist/components/verdocs-sign.js +9 -10
  208. package/dist/components/verdocs-sign.js.map +1 -1
  209. package/dist/components/verdocs-signature-dialog.js +1 -1
  210. package/dist/components/verdocs-spinner.js +1 -1
  211. package/dist/components/verdocs-status-indicator.js +1 -1
  212. package/dist/components/verdocs-switch.js +1 -1
  213. package/dist/components/verdocs-template-attachments.js +1 -1
  214. package/dist/components/verdocs-template-build-tabs.js +1 -1
  215. package/dist/components/verdocs-template-card.js +1 -1
  216. package/dist/components/verdocs-template-create.js +2 -2
  217. package/dist/components/verdocs-template-document-page.js +1 -1
  218. package/dist/components/verdocs-template-field-properties.js +1 -1
  219. package/dist/components/verdocs-template-fields.js +1 -1
  220. package/dist/components/verdocs-template-role-properties.js +1 -1
  221. package/dist/components/verdocs-template-roles.js +1 -1
  222. package/dist/components/verdocs-template-settings.js +1 -1
  223. package/dist/components/verdocs-template-star.js +1 -1
  224. package/dist/components/verdocs-template-tags.js +1 -1
  225. package/dist/components/verdocs-templates-list.js +8 -8
  226. package/dist/components/verdocs-text-input.js +1 -1
  227. package/dist/components/verdocs-toggle-button.js +1 -1
  228. package/dist/components/verdocs-toolbar-icon.js +1 -1
  229. package/dist/components/verdocs-upload-dialog.js +1 -1
  230. package/dist/components/verdocs-view.js +1 -1
  231. package/dist/custom-elements.json +2231 -0
  232. package/dist/esm/en-03eb67b8.js +33 -0
  233. package/dist/esm/en-03eb67b8.js.map +1 -0
  234. package/dist/esm/index-2cd5f887.js +4 -0
  235. package/dist/esm/loader.js +1 -1
  236. package/dist/esm/verdocs-button_2.entry.js +1 -1
  237. package/dist/esm/verdocs-checkbox_6.entry.js +6 -6
  238. package/dist/esm/verdocs-date-input.entry.js +81 -0
  239. package/dist/esm/verdocs-date-input.entry.js.map +1 -0
  240. package/dist/esm/verdocs-dialog.entry.js +1 -1
  241. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  242. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  243. package/dist/esm/verdocs-field-attachment_13.entry.js +6 -32
  244. package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
  245. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  246. package/dist/esm/verdocs-kba-dialog_2.entry.js +25 -4
  247. package/dist/esm/verdocs-kba-dialog_2.entry.js.map +1 -1
  248. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  249. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  250. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  251. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  252. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  253. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  254. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  255. package/dist/esm/verdocs-sign.entry.js +1 -2
  256. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  257. package/dist/esm/verdocs-spinner.entry.js +1 -1
  258. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  259. package/dist/esm/verdocs-switch.entry.js +2 -2
  260. package/dist/esm/verdocs-template-card.entry.js +1 -1
  261. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  262. package/dist/esm/verdocs-template-star.entry.js +1 -1
  263. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  264. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  265. package/dist/esm/verdocs-web-sdk.js +1 -1
  266. package/dist/esm-es5/en-03eb67b8.js +2 -0
  267. package/dist/esm-es5/en-03eb67b8.js.map +1 -0
  268. package/dist/esm-es5/index-2cd5f887.js +1 -1
  269. package/dist/esm-es5/index-2cd5f887.js.map +1 -1
  270. package/dist/esm-es5/loader.js +1 -1
  271. package/dist/esm-es5/loader.js.map +1 -1
  272. package/dist/esm-es5/verdocs-button_2.entry.js +1 -1
  273. package/dist/esm-es5/verdocs-checkbox_6.entry.js +1 -1
  274. package/dist/esm-es5/verdocs-date-input.entry.js +2 -0
  275. package/dist/esm-es5/verdocs-date-input.entry.js.map +1 -0
  276. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  277. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  278. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  279. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  280. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  281. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  282. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  283. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js.map +1 -1
  284. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  285. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  286. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  287. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  288. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  289. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  290. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  291. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  292. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  293. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  294. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  295. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  296. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  297. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  298. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  299. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  300. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  301. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  302. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  303. package/dist/types/components/controls/verdocs-date-input/verdocs-date-input.d.ts +43 -0
  304. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +3 -1
  305. package/dist/types/components.d.ts +86 -0
  306. package/dist/verdocs-web-sdk/p-0758647e.system.js +2 -0
  307. package/dist/verdocs-web-sdk/p-0758647e.system.js.map +1 -0
  308. package/dist/verdocs-web-sdk/{p-0e485d1a.system.entry.js → p-0974b1cf.system.entry.js} +2 -2
  309. package/dist/verdocs-web-sdk/p-0c1898f6.system.js +1 -1
  310. package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +1 -1
  311. package/dist/verdocs-web-sdk/{p-96ca1ce2.entry.js → p-11a30de3.entry.js} +2 -2
  312. package/dist/verdocs-web-sdk/p-158808e1.entry.js +2 -0
  313. package/dist/verdocs-web-sdk/{p-b0606620.entry.js.map → p-158808e1.entry.js.map} +1 -1
  314. package/dist/verdocs-web-sdk/{p-644444fe.system.entry.js → p-19ee9379.system.entry.js} +2 -2
  315. package/dist/verdocs-web-sdk/p-1f8bd27c.system.entry.js +2 -0
  316. package/dist/verdocs-web-sdk/p-1f8bd27c.system.entry.js.map +1 -0
  317. package/dist/verdocs-web-sdk/{p-5a639d78.system.entry.js → p-248ffe5c.system.entry.js} +2 -2
  318. package/dist/verdocs-web-sdk/{p-e5719bcf.system.entry.js → p-2d0e964b.system.entry.js} +2 -2
  319. package/dist/verdocs-web-sdk/{p-a508388a.system.entry.js → p-2d2c8ad7.system.entry.js} +2 -2
  320. package/dist/verdocs-web-sdk/{p-06394c15.system.entry.js → p-2d35f678.system.entry.js} +2 -2
  321. package/dist/verdocs-web-sdk/{p-923cc826.entry.js → p-2edf05fe.entry.js} +2 -2
  322. package/dist/verdocs-web-sdk/{p-d8e59850.entry.js → p-344ff0ba.entry.js} +2 -2
  323. package/dist/verdocs-web-sdk/{p-af9cc642.entry.js → p-35fc5f53.entry.js} +2 -2
  324. package/dist/verdocs-web-sdk/{p-1f42a7c2.entry.js → p-3a2bd43c.entry.js} +2 -2
  325. package/dist/verdocs-web-sdk/{p-82c88c0f.entry.js → p-3cc309a8.entry.js} +2 -2
  326. package/dist/verdocs-web-sdk/p-3ceeb122.js +2 -0
  327. package/dist/verdocs-web-sdk/p-3ceeb122.js.map +1 -0
  328. package/dist/verdocs-web-sdk/p-3fc80e05.entry.js +2 -0
  329. package/dist/verdocs-web-sdk/p-3fc80e05.entry.js.map +1 -0
  330. package/dist/verdocs-web-sdk/{p-ba7f0fce.system.entry.js → p-45dd5527.system.entry.js} +2 -2
  331. package/dist/verdocs-web-sdk/{p-f9aaeb81.system.entry.js → p-50e49464.system.entry.js} +2 -2
  332. package/dist/verdocs-web-sdk/p-66ca774d.entry.js +2 -0
  333. package/dist/verdocs-web-sdk/p-66ca774d.entry.js.map +1 -0
  334. package/dist/verdocs-web-sdk/{p-00b95f75.system.entry.js → p-6ddcf3fe.system.entry.js} +2 -2
  335. package/dist/verdocs-web-sdk/{p-517a9262.entry.js → p-7b0281af.entry.js} +2 -2
  336. package/dist/verdocs-web-sdk/{p-df70c2ea.entry.js → p-7e0fa3ae.entry.js} +2 -2
  337. package/dist/verdocs-web-sdk/{p-ab23e446.entry.js → p-7f1edca3.entry.js} +2 -2
  338. package/dist/verdocs-web-sdk/{p-9f2cb0de.entry.js → p-840b6fbe.entry.js} +2 -2
  339. package/dist/verdocs-web-sdk/p-88f4ee7b.system.entry.js +2 -0
  340. package/dist/verdocs-web-sdk/p-88f4ee7b.system.entry.js.map +1 -0
  341. package/dist/verdocs-web-sdk/{p-2df97f4e.entry.js → p-8ec57eff.entry.js} +2 -2
  342. package/dist/verdocs-web-sdk/{p-fb577d62.system.entry.js → p-9363cc19.system.entry.js} +2 -2
  343. package/dist/verdocs-web-sdk/{p-f9d56a3c.entry.js → p-9a19e851.entry.js} +2 -2
  344. package/dist/verdocs-web-sdk/{p-36a10b78.system.entry.js → p-9ccbbb22.system.entry.js} +2 -2
  345. package/dist/verdocs-web-sdk/p-9f684d65.entry.js +2 -0
  346. package/dist/verdocs-web-sdk/p-9f684d65.entry.js.map +1 -0
  347. package/dist/verdocs-web-sdk/{p-a1f9578c.system.entry.js → p-a75f7e9e.system.entry.js} +2 -2
  348. package/dist/verdocs-web-sdk/{p-d2a9d5cf.system.entry.js → p-ad9dd116.system.entry.js} +2 -2
  349. package/dist/verdocs-web-sdk/{p-ac10a0b5.system.entry.js → p-b0220f11.system.entry.js} +2 -2
  350. package/dist/verdocs-web-sdk/{p-9a955b58.system.entry.js → p-b43ede8b.system.entry.js} +2 -2
  351. package/dist/verdocs-web-sdk/{p-ad04e403.system.entry.js → p-bd7b3d7b.system.entry.js} +2 -2
  352. package/dist/verdocs-web-sdk/{p-330c1f00.entry.js → p-c3e2d722.entry.js} +2 -2
  353. package/dist/verdocs-web-sdk/{p-2ce5fef0.system.entry.js → p-c7f2bac2.system.entry.js} +2 -2
  354. package/dist/verdocs-web-sdk/p-c7f2bac2.system.entry.js.map +1 -0
  355. package/dist/verdocs-web-sdk/{p-c397c96b.system.entry.js → p-c9ec99df.system.entry.js} +2 -2
  356. package/dist/verdocs-web-sdk/{p-79a1bf39.entry.js → p-cb0b6e3e.entry.js} +2 -2
  357. package/dist/verdocs-web-sdk/p-cb0b6e3e.entry.js.map +1 -0
  358. package/dist/verdocs-web-sdk/{p-b32c8a43.entry.js → p-cf413e96.entry.js} +2 -2
  359. package/dist/verdocs-web-sdk/{p-5fd67b04.system.entry.js → p-d67c3a58.system.entry.js} +2 -2
  360. package/dist/verdocs-web-sdk/{p-2c9254a9.entry.js → p-d7cafbfe.entry.js} +2 -2
  361. package/dist/verdocs-web-sdk/{p-2415315d.entry.js → p-dea4b888.entry.js} +2 -2
  362. package/dist/verdocs-web-sdk/{p-866d2139.entry.js → p-e388f2eb.entry.js} +2 -2
  363. package/dist/verdocs-web-sdk/{p-195cd4f4.system.entry.js → p-e8184f76.system.entry.js} +2 -2
  364. package/dist/verdocs-web-sdk/{p-ca45c312.entry.js → p-e8c4cb36.entry.js} +2 -2
  365. package/dist/verdocs-web-sdk/{p-66438012.system.entry.js → p-ebec3bc1.system.entry.js} +2 -2
  366. package/dist/verdocs-web-sdk/{p-af41b404.entry.js → p-ed106cc9.entry.js} +2 -2
  367. package/dist/verdocs-web-sdk/{p-dac155a6.system.entry.js → p-f3d09408.system.entry.js} +2 -2
  368. package/dist/verdocs-web-sdk/p-f6bf7e6a.system.entry.js +2 -0
  369. package/dist/verdocs-web-sdk/p-f6bf7e6a.system.entry.js.map +1 -0
  370. package/dist/verdocs-web-sdk/{p-e43a184d.entry.js → p-fc79bf91.entry.js} +2 -2
  371. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  372. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  373. package/package.json +1 -1
  374. package/dist/components/p-321e2d4e.js.map +0 -1
  375. package/dist/components/p-92cce3dc.js.map +0 -1
  376. package/dist/verdocs-web-sdk/p-2ce5fef0.system.entry.js.map +0 -1
  377. package/dist/verdocs-web-sdk/p-6cfb51e3.system.entry.js +0 -2
  378. package/dist/verdocs-web-sdk/p-6cfb51e3.system.entry.js.map +0 -1
  379. package/dist/verdocs-web-sdk/p-78d9fa52.system.entry.js +0 -2
  380. package/dist/verdocs-web-sdk/p-78d9fa52.system.entry.js.map +0 -1
  381. package/dist/verdocs-web-sdk/p-79a1bf39.entry.js.map +0 -1
  382. package/dist/verdocs-web-sdk/p-b0606620.entry.js +0 -2
  383. package/dist/verdocs-web-sdk/p-dac04f8e.entry.js +0 -2
  384. package/dist/verdocs-web-sdk/p-dac04f8e.entry.js.map +0 -1
  385. package/dist/verdocs-web-sdk/p-e7ca4f15.entry.js +0 -2
  386. package/dist/verdocs-web-sdk/p-e7ca4f15.entry.js.map +0 -1
  387. /package/dist/verdocs-web-sdk/{p-0e485d1a.system.entry.js.map → p-0974b1cf.system.entry.js.map} +0 -0
  388. /package/dist/verdocs-web-sdk/{p-96ca1ce2.entry.js.map → p-11a30de3.entry.js.map} +0 -0
  389. /package/dist/verdocs-web-sdk/{p-644444fe.system.entry.js.map → p-19ee9379.system.entry.js.map} +0 -0
  390. /package/dist/verdocs-web-sdk/{p-5a639d78.system.entry.js.map → p-248ffe5c.system.entry.js.map} +0 -0
  391. /package/dist/verdocs-web-sdk/{p-e5719bcf.system.entry.js.map → p-2d0e964b.system.entry.js.map} +0 -0
  392. /package/dist/verdocs-web-sdk/{p-a508388a.system.entry.js.map → p-2d2c8ad7.system.entry.js.map} +0 -0
  393. /package/dist/verdocs-web-sdk/{p-06394c15.system.entry.js.map → p-2d35f678.system.entry.js.map} +0 -0
  394. /package/dist/verdocs-web-sdk/{p-923cc826.entry.js.map → p-2edf05fe.entry.js.map} +0 -0
  395. /package/dist/verdocs-web-sdk/{p-d8e59850.entry.js.map → p-344ff0ba.entry.js.map} +0 -0
  396. /package/dist/verdocs-web-sdk/{p-af9cc642.entry.js.map → p-35fc5f53.entry.js.map} +0 -0
  397. /package/dist/verdocs-web-sdk/{p-1f42a7c2.entry.js.map → p-3a2bd43c.entry.js.map} +0 -0
  398. /package/dist/verdocs-web-sdk/{p-82c88c0f.entry.js.map → p-3cc309a8.entry.js.map} +0 -0
  399. /package/dist/verdocs-web-sdk/{p-ba7f0fce.system.entry.js.map → p-45dd5527.system.entry.js.map} +0 -0
  400. /package/dist/verdocs-web-sdk/{p-f9aaeb81.system.entry.js.map → p-50e49464.system.entry.js.map} +0 -0
  401. /package/dist/verdocs-web-sdk/{p-00b95f75.system.entry.js.map → p-6ddcf3fe.system.entry.js.map} +0 -0
  402. /package/dist/verdocs-web-sdk/{p-517a9262.entry.js.map → p-7b0281af.entry.js.map} +0 -0
  403. /package/dist/verdocs-web-sdk/{p-df70c2ea.entry.js.map → p-7e0fa3ae.entry.js.map} +0 -0
  404. /package/dist/verdocs-web-sdk/{p-ab23e446.entry.js.map → p-7f1edca3.entry.js.map} +0 -0
  405. /package/dist/verdocs-web-sdk/{p-9f2cb0de.entry.js.map → p-840b6fbe.entry.js.map} +0 -0
  406. /package/dist/verdocs-web-sdk/{p-2df97f4e.entry.js.map → p-8ec57eff.entry.js.map} +0 -0
  407. /package/dist/verdocs-web-sdk/{p-fb577d62.system.entry.js.map → p-9363cc19.system.entry.js.map} +0 -0
  408. /package/dist/verdocs-web-sdk/{p-f9d56a3c.entry.js.map → p-9a19e851.entry.js.map} +0 -0
  409. /package/dist/verdocs-web-sdk/{p-36a10b78.system.entry.js.map → p-9ccbbb22.system.entry.js.map} +0 -0
  410. /package/dist/verdocs-web-sdk/{p-a1f9578c.system.entry.js.map → p-a75f7e9e.system.entry.js.map} +0 -0
  411. /package/dist/verdocs-web-sdk/{p-d2a9d5cf.system.entry.js.map → p-ad9dd116.system.entry.js.map} +0 -0
  412. /package/dist/verdocs-web-sdk/{p-ac10a0b5.system.entry.js.map → p-b0220f11.system.entry.js.map} +0 -0
  413. /package/dist/verdocs-web-sdk/{p-9a955b58.system.entry.js.map → p-b43ede8b.system.entry.js.map} +0 -0
  414. /package/dist/verdocs-web-sdk/{p-ad04e403.system.entry.js.map → p-bd7b3d7b.system.entry.js.map} +0 -0
  415. /package/dist/verdocs-web-sdk/{p-330c1f00.entry.js.map → p-c3e2d722.entry.js.map} +0 -0
  416. /package/dist/verdocs-web-sdk/{p-c397c96b.system.entry.js.map → p-c9ec99df.system.entry.js.map} +0 -0
  417. /package/dist/verdocs-web-sdk/{p-b32c8a43.entry.js.map → p-cf413e96.entry.js.map} +0 -0
  418. /package/dist/verdocs-web-sdk/{p-5fd67b04.system.entry.js.map → p-d67c3a58.system.entry.js.map} +0 -0
  419. /package/dist/verdocs-web-sdk/{p-2c9254a9.entry.js.map → p-d7cafbfe.entry.js.map} +0 -0
  420. /package/dist/verdocs-web-sdk/{p-2415315d.entry.js.map → p-dea4b888.entry.js.map} +0 -0
  421. /package/dist/verdocs-web-sdk/{p-866d2139.entry.js.map → p-e388f2eb.entry.js.map} +0 -0
  422. /package/dist/verdocs-web-sdk/{p-195cd4f4.system.entry.js.map → p-e8184f76.system.entry.js.map} +0 -0
  423. /package/dist/verdocs-web-sdk/{p-ca45c312.entry.js.map → p-e8c4cb36.entry.js.map} +0 -0
  424. /package/dist/verdocs-web-sdk/{p-66438012.system.entry.js.map → p-ebec3bc1.system.entry.js.map} +0 -0
  425. /package/dist/verdocs-web-sdk/{p-af41b404.entry.js.map → p-ed106cc9.entry.js.map} +0 -0
  426. /package/dist/verdocs-web-sdk/{p-dac155a6.system.entry.js.map → p-f3d09408.system.entry.js.map} +0 -0
  427. /package/dist/verdocs-web-sdk/{p-e43a184d.entry.js.map → p-fc79bf91.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as s,F as t,H as o,g as l}from"./p-ddadabfb.js";import{VerdocsEndpoint as d,getEnvelope as a,getDocumentDownloadLink as n,cancelEnvelope as r,userCanCancelEnvelope as c,integerSequence as h}from"@verdocs/js-sdk";import{s as p}from"./p-0c45b79c.js";import{S as v}from"./p-fd97809c.js";import{S as x}from"./p-33300e3a.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const b='@-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;gap:10px;-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;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{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}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;font-size:14px;padding:0 5px;-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}';const u=b;const f=`<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>`;const g=class{constructor(s){e(this,s);this.exit=i(this,"exit",7);this.pinEntered=i(this,"pinEntered",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.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidLoad(){}handleCancel(){this.exit.emit()}handleDismiss(e){if(e.target.class==="background-overlay"){e.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){this.next.emit(this.updatedRecipient)}render(){var e,i,l,d,a,n,r,c,h,p,v,x;if(this.mode==="choice"){return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(t,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((e=>s("div",{class:`choice ${e===this.response?"selected":""}`,onClick:()=>{console.log("Selected",e);this.response=e}},e)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){console.log("ur",this.updatedRecipient);return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},"Identity verification is required"),s("div",{class:"help-text"},"NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly."))),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.first_name,onInput:e=>this.updatedRecipient={...this.updatedRecipient,first_name:e.target.value}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:e=>this.updatedRecipient={...this.updatedRecipient,last_name:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.address,onInput:e=>this.updatedRecipient={...this.updatedRecipient,address:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(d=this.updatedRecipient)===null||d===void 0?void 0:d.city,onInput:e=>this.updatedRecipient={...this.updatedRecipient,city:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("input",{type:"text",id:"verdocs-kba-state",name:"verdocs-kba-state",placeholder:"State...",value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:e=>this.updatedRecipient={...this.updatedRecipient,state:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.zip,onInput:e=>this.updatedRecipient={...this.updatedRecipient,zip:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("input",{type:"text",value:((r=this.updatedRecipient)===null||r===void 0?void 0:r.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:e=>this.updatedRecipient={...this.updatedRecipient,dob:e.target.value}})),s("div",{class:"buttons"},s("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!((c=this.updatedRecipient)===null||c===void 0?void 0:c.first_name)||!((h=this.updatedRecipient)===null||h===void 0?void 0:h.last_name)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.address)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.zip)||!((x=this.updatedRecipient)===null||x===void 0?void 0:x.dob)})))))}return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(t,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:e=>this.response=e.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};g.style=u;const m='@-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-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const w=m;const k=class{constructor(s){e(this,s);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.another=i(this,"another",7);this.view=i(this,"view",7);this.next=i(this,"next",7);this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var e,i,s;if(!this.endpoint){this.endpoint=d.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await a(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(t){this.showLoadError=true;(e=this.sdkError)===null||e===void 0?void 0:e.emit(new v(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(e&&i){console.log("[VIEW] Moving header");i.remove();e.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();x.subscribe("envelopes",this.envelopeId,(()=>a(this.endpoint,this.envelopeId)),true,(e=>{this.envelope=e;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){x.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(e){}async handleOptionSelected(e){var i,s;switch(e.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;r(this.endpoint,this.envelopeId).then((e=>{this.canceling=false;console.log("[VIEW] Envelope canceled",e);return a(this.endpoint,this.envelopeId)})).then((e=>{console.log("[VIEW] Loaded new envelope details",e);this.envelope=e})).catch((e=>{var i,s,t;this.canceling=false;console.log("[VIEW] Error canceling envelope",e);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new v(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(t=e.response)===null||t===void 0?void 0:t.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){const i=await n(this.endpoint,this.envelopeId,e.id);window.open(i,"_blank")}}break;case"download-certificate":{const e=this.envelope.documents.find((e=>e.type==="certificate"));if(e){const i=await n(this.endpoint,this.envelopeId,e.id);window.open(i,"_blank")}}break;case"download-all":p(this.endpoint,[this.envelope]).then((()=>{var e;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((e=>{console.log("Error downloading Zip",e)}));break}}render(){var e;if(this.loading){return s(o,null,s("verdocs-loader",null))}if(this.showLoadError){return s(o,null,s("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return s(o,null,s("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}const i=[{id:"print",label:"Print"}];if(c(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const l=this.envelope.documents.length>0;const d=this.envelope.documents.filter((e=>e.type==="attachment")).length;const a=this.envelope.documents.find((e=>e.type==="certificate"))!==undefined;if(l||a){i.push({label:""});if(l){i.push({id:"download-attachments",label:d>1?"Download Documents":"Download Document"})}if(a){i.push({id:"download-certificate",label:"Download Certificate"})}if(l&&a){i.push({id:"download-all",label:"Download All Files"})}}return s(o,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:e=>this.handleOptionSelected(e)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((e=this.envelope)===null||e===void 0?void 0:e.documents)||[]).filter((e=>e.type!=="certificate")).map((e=>{const i=h(1,e.pages);return s(t,null,i.map((i=>{var t;const o=((t=e.page_sizes)===null||t===void 0?void 0:t[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,type:"filled",virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return l(this)}};k.style=w;export{g as verdocs_kba_dialog,k as verdocs_view};
2
+ //# sourceMappingURL=p-66ca774d.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsKbaDialogCss","VerdocsKbaDialogStyle0","QuestionIcon","VerdocsKbaDialog","constructor","hostRef","this","step","steps","helptitle","helptext","mode","label","placeholder","recipient","choices","response","updatedRecipient","dobContainerId","Math","random","toString","substring","componentWillLoad","componentDidLoad","handleCancel","exit","emit","handleDismiss","e","target","class","preventDefault","handleDone","next","handleConfirmID","render","h","Host","onClick","Fragment","innerHTML","map","choice","console","log","variant","disabled","htmlFor","required","type","id","name","value","_a","first_name","onInput","_b","last_name","_c","address","_d","city","_e","state","_f","zip","_g","dob","_h","_j","_k","_l","_m","verdocsViewCss","VerdocsViewStyle0","VerdocsView","envelopeListenerId","endpoint","envelopeId","headerTargetId","canceling","showCancelDone","showLoadError","loading","envelope","VerdocsEndpoint","getDefault","loadSession","error","listenToEnvelope","getEnvelope","sdkError","SDKError","message","status","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","disconnectedCallback","unlistenToEnvelope","Store","subscribe","store","delListener","handlePageRendered","handleOptionSelected","detail","confirm","cancelEnvelope","then","r","env","catch","envelopeUpdated","event","window","print","firstDoc","documents","find","doc","url","getDocumentDownloadLink","open","firstCert","saveEnvelopesAsZip","heading","buttonLabel","onNext","src","style","width","height","boxShadow","marginTop","alt","menuOptions","userCanCancelEnvelope","profile","push","hasAttachments","length","normalDocCount","filter","hasCertificate","undefined","flex","marginLeft","options","onOptionSelected","paddingTop","envelopeDocument","pageNumbers","integerSequence","pages","pageNumber","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.scss?tag=verdocs-kba-dialog","src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.tsx","src/components/embeds/verdocs-view/verdocs-view.scss?tag=verdocs-view","src/components/embeds/verdocs-view/verdocs-view.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-kba-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n div {\n box-sizing: border-box;\n }\n\n .background-overlay {\n position: fixed;\n z-index: 10000;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #0000007f;\n }\n\n .dialog {\n width: 440px;\n display: flex;\n flex-direction: column;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n padding: 16px;\n gap: 10px;\n box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);\n }\n\n .heading {\n display: flex;\n flex-direction: row;\n font-size: 20px;\n font-weight: 500;\n }\n\n .step {\n margin-left: 6px;\n color: #666;\n }\n\n .help-box {\n background-color: $border-color;\n display: flex;\n flex-direction: row;\n padding: 14px;\n align-items: center;\n color: white;\n }\n\n .help-details {\n display: flex;\n flex-direction: column;\n margin-left: 15px;\n font-size: 14px;\n }\n\n .help-icon {\n width: 40px;\n height: 40px;\n }\n\n .help-title {\n font-weight: 600;\n margin-bottom: 4px;\n }\n\n .help-text {\n font-weight: 400;\n }\n\n .input {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n margin: 16px 0 32px;\n\n label {\n flex: 0;\n line-height: 10px;\n font-weight: 500;\n white-space: nowrap;\n }\n\n input {\n flex: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .field {\n gap: 10px;\n margin: 0;\n display: flex;\n align-items: center;\n flex-direction: row;\n max-width: 100%;\n\n .required {\n color: red;\n position: relative;\n top: -0.5em;\n font-size: 80%;\n }\n\n label {\n flex: 0 0 120px;\n font-weight: 500;\n line-height: 10px;\n text-align: right;\n white-space: nowrap;\n }\n\n verdocs-date-input {\n width: 40%;\n flex-grow: 1;\n\n input {\n width: 100%;\n box-sizing: border-box;\n }\n }\n\n input {\n width: 40%;\n flex-grow: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .choices {\n display: grid;\n gap: 15px;\n grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));\n margin: 0 0 15px 0;\n }\n\n .choice {\n border: 1px solid $border-color;\n border-radius: 5px;\n display: flex;\n height: 60px;\n font-size: 14px;\n padding: 0 5px;\n justify-content: center;\n align-items: center;\n text-align: center;\n color: $choice-available-color;\n cursor: pointer;\n\n &.selected {\n background-color: $border-color;\n color: $verdocs-grey-4;\n }\n }\n\n .buttons {\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: flex-end;\n\n verdocs-button {\n margin-left: 16px;\n }\n }\n}\n","import {Component, Prop, h, Event, EventEmitter, Fragment, Host, State} from '@stencil/core';\nimport {IRecipient} from '@verdocs/js-sdk';\n// import AirDatepicker from 'air-datepicker';\n// import localeEn from 'air-datepicker/locale/en';\n\nconst QuestionIcon = `<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>`;\n\n/**\n * Prompt the user to confirm their identity with a PIN or a series of questions.\n */\n@Component({\n tag: 'verdocs-kba-dialog',\n styleUrl: 'verdocs-kba-dialog.scss',\n})\nexport class VerdocsKbaDialog {\n // private picker: AirDatepicker<HTMLElement> | null = null;\n\n /**\n * Which step this confirmation is for, in a multi-step process. Ignored if `steps` is < 2.\n */\n @Prop() step: number = 1;\n\n /**\n * How many steps exist in a multi-step process. Set to 1 for a single-step process (hides the indicator).\n */\n @Prop() steps: number = 3;\n\n /**\n * If set, a help/instructions box will be displayed with this title\n */\n @Prop() helptitle: string = 'Previous Addresses';\n\n /**\n * If set, a help/instructions box will be displayed with this text\n */\n @Prop() helptext: string = 'Please select the address below that you have most recently lived at.';\n\n /**\n * The type of dialog to display. Three modes are supported.\n */\n @Prop() mode: 'text' | 'choice' | 'identity' = 'choice';\n\n /**\n * For text input challenges, the label to display next to the input field.\n */\n @Prop() label: string = 'PIN';\n\n /**\n * For text input challenges, the placeholder to display inside the input field.\n */\n @Prop() placeholder: string = 'Enter your PIN...';\n\n /**\n * For identity confirmation, the current recipient details.\n */\n @Prop() recipient: IRecipient | null = null;\n\n /**\n * For choice challenges, a set of choices to choose from. 6 choices is recommended to fit most screen sizes.\n */\n @Prop() choices: string[] = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) pinEntered: EventEmitter<string | IRecipient>;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) next: EventEmitter<string | IRecipient | string[]>;\n\n @State() response = '';\n @State() updatedRecipient: IRecipient = null;\n @State() dobContainerId = `verdocs-date-input-${Math.random().toString(36).substring(2, 11)}`;\n\n componentWillLoad() {\n this.updatedRecipient = {...(this.recipient || {})} as IRecipient;\n }\n\n componentDidLoad() {\n // this.picker = new AirDatepicker<HTMLElement>(`#${this.dobContainerId}`, {\n // locale: localeEn,\n // isMobile: true,\n // autoClose: true,\n // onSelect: ({date, formattedDate}) => {\n // console.log('onselect', date, formattedDate);\n // // const event = new CustomEvent('input', {detail: {date, formattedDate}});\n // // this.hostEl.dispatchEvent(event);\n // },\n // });\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n if (e.target.class === 'background-overlay') {\n e.preventDefault();\n this.handleCancel();\n }\n }\n\n handleDone() {\n this.next.emit(this.response);\n this.response = '';\n }\n\n handleConfirmID() {\n this.next.emit(this.updatedRecipient);\n }\n\n render() {\n if (this.mode === 'choice') {\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"choices\">\n {this.choices.map(choice => (\n <div\n class={`choice ${choice === this.response ? 'selected' : ''}`}\n onClick={() => {\n console.log('Selected', choice);\n this.response = choice;\n }}\n >\n {choice}\n </div>\n ))}\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label={this.step < this.steps ? 'Next' : 'Submit'} onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.mode === 'identity') {\n console.log('ur', this.updatedRecipient);\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">Confirm Your Identity</div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">Identity verification is required</div>\n <div class=\"help-text\">NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly.</div>\n </div>\n </div>\n )}\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-first\">\n Your Name:<span class=\"required\">*</span>\n </label>\n <input\n required\n type=\"text\"\n id=\"verdocs-kba-first\"\n name=\"verdocs-kba-first\"\n placeholder=\"First name...\"\n value={this.updatedRecipient?.first_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, first_name: e.target.value})}\n />\n\n <input\n type=\"text\"\n id=\"verdocs-kba-last\"\n name=\"verdocs-kba-last\"\n placeholder=\"Last name...\"\n required\n value={this.updatedRecipient?.last_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, last_name: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-address\">\n Address:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-address\"\n name=\"verdocs-kba-address\"\n placeholder=\"Address...\"\n value={this.updatedRecipient?.address}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, address: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-city\">City:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-city\"\n name=\"verdocs-kba-city\"\n placeholder=\"City...\"\n value={this.updatedRecipient?.city}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, city: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-state\">State:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-state\"\n name=\"verdocs-kba-state\"\n placeholder=\"State...\"\n value={this.updatedRecipient?.state}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, state: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-zip\">\n Zip Code:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-zip\"\n name=\"verdocs-kba-zip\"\n placeholder=\"Zip Code...\"\n required\n value={this.updatedRecipient?.zip}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, zip: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n {/* TODO: Also allow typed entry */}\n <label htmlFor={this.dobContainerId}>\n Date of Birth:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n value={this.updatedRecipient?.dob || ''}\n id={this.dobContainerId}\n placeholder=\"DOB...\"\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, dob: e.target.value})}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button\n label=\"Submit\"\n onClick={() => this.handleConfirmID()}\n disabled={\n !this.updatedRecipient?.first_name ||\n !this.updatedRecipient?.last_name ||\n !this.updatedRecipient?.address ||\n !this.updatedRecipient?.zip ||\n !this.updatedRecipient?.dob\n }\n />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Please Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"input\">\n <label htmlFor=\"verdocs-kba-input\">{this.label}</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-input\"\n name=\"verdocs-kba-input\"\n placeholder={this.placeholder}\n value={this.response}\n onInput={(e: any) => (this.response = e.target.value)}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label=\"Submit\" onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-view {\n display: flex;\n overflow: hidden;\n min-height: 600px;\n position: relative;\n align-items: center;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div,\n canvas {\n box-sizing: border-box;\n }\n\n .document {\n flex: 1;\n width: 100%;\n height: 100%;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n min-height: 200px;\n max-width: 1200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n}\n\n// Styled separately because the header is often re-parented\n#verdocs-view-header {\n width: 100%;\n color: #fff;\n display: flex;\n z-index: 1000;\n flex: 0 0 56px;\n padding: 0 20px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 20px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n","import {cancelEnvelope, getDocumentDownloadLink, getEnvelope, IEnvelope, integerSequence, userCanCancelEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Element, Event, Host, Prop, EventEmitter, Fragment, State} from '@stencil/core';\nimport {saveEnvelopesAsZip} from '../../../utils/utils';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Render the documents attached to an envelope in read-only (view) mode. All documents are\n * displayed in order.\n *\n * ```ts\n * <verdocs-view\n * envelopeId={envelopeId}\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-view',\n styleUrl: 'verdocs-view.scss',\n shadow: false,\n})\nexport class VerdocsView {\n private envelopeListenerId = null;\n\n @Element() component: HTMLElement;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint | null = null;\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) another: EventEmitter;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) view: EventEmitter;\n\n /**\n * Event fired when the user clicks Done to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) next: EventEmitter;\n @State() canceling = false;\n @State() showCancelDone = false;\n @State() showLoadError = false;\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n if (!this.endpoint) {\n this.endpoint = VerdocsEndpoint.getDefault();\n this.endpoint.loadSession();\n }\n\n if (!this.envelopeId) {\n console.error(`[VIEW] Missing required envelopeId`);\n return;\n }\n\n this.listenToEnvelope();\n if (!this.envelope) {\n try {\n console.log('[VIEW] Loading envelope...');\n this.envelope = await getEnvelope(this.endpoint, this.envelopeId);\n console.log('[VIEW] Loaded envelope', this.envelope);\n } catch (e) {\n this.showLoadError = true;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-view-header');\n if (headerTarget && headerEl) {\n console.log('[VIEW] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[SIDEBAR] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n true,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n handlePageRendered(_e: any) {\n // const pageInfo = e.detail as IDocumentPageInfo;\n // console.log('[VIEW] Page rendered', pageInfo);\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'cancel':\n // TODO: Better option for inline-flow confirmation and alert dialogs.\n if (confirm('Are you sure you wish to cancel this envelope? This action cannot be undone.')) {\n this.canceling = true;\n cancelEnvelope(this.endpoint, this.envelopeId)\n .then(r => {\n this.canceling = false;\n console.log('[VIEW] Envelope canceled', r);\n return getEnvelope(this.endpoint, this.envelopeId);\n })\n .then(env => {\n console.log('[VIEW] Loaded new envelope details', env);\n this.envelope = env;\n })\n .catch(e => {\n this.canceling = false;\n console.log('[VIEW] Error canceling envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n this.showCancelDone = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'canceled'});\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download-attachments':\n // TODO: Multiple document support\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstDoc.id);\n window.open(url, '_blank');\n }\n }\n break;\n\n case 'download-certificate':\n // TODO: Multiple certificate support\n {\n const firstCert = this.envelope.documents.find(doc => doc.type === 'certificate');\n if (firstCert) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstCert.id);\n window.open(url, '_blank');\n }\n }\n // saveCertificate(this.endpoint, this.envelope, this.envelope.certificate_document_id)\n // .then(() => {\n // this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n // })\n // .catch(e => {\n // console.log('Error downloading PDF', e);\n // });\n break;\n\n case 'download-all':\n saveEnvelopesAsZip(this.endpoint, [this.envelope])\n .then(() => {\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n })\n .catch(e => {\n console.log('Error downloading Zip', e);\n });\n break;\n }\n }\n\n render() {\n if (this.loading) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to View Envelope\"\n message={`Sorry, that envelope is not valid.`}\n buttonLabel=\"OK\"\n onNext={() => {\n this.showLoadError = false;\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </Host>\n );\n }\n\n const menuOptions: any[] = [{id: 'print', label: 'Print'}];\n\n if (userCanCancelEnvelope(this.endpoint.profile, this.envelope)) {\n menuOptions.push({id: 'cancel', label: 'Cancel'});\n }\n\n // Add download options to the menu\n const hasAttachments = this.envelope.documents.length > 0;\n const normalDocCount = this.envelope.documents.filter(doc => doc.type === 'attachment').length;\n const hasCertificate = this.envelope.documents.find(doc => doc.type === 'certificate') !== undefined;\n if (hasAttachments || hasCertificate) {\n menuOptions.push({label: ''});\n if (hasAttachments) {\n menuOptions.push({id: 'download-attachments', label: normalDocCount > 1 ? 'Download Documents' : 'Download Document'});\n }\n if (hasCertificate) {\n menuOptions.push({id: 'download-certificate', label: 'Download Certificate'});\n }\n if (hasAttachments && hasCertificate) {\n menuOptions.push({id: 'download-all', label: 'Download All Files'});\n }\n }\n\n return (\n <Host>\n <div id=\"verdocs-view-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={menuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: this.headerTargetId ? '70px' : '15px'}}>\n {(this.envelope?.documents || [])\n .filter(document => document.type !== 'certificate')\n .map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n type=\"filled\"\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n {this.showCancelDone && (\n <verdocs-ok-dialog\n heading=\"Cancelled\"\n message={`This envelope has been cancelled successfully.`}\n onNext={() => {\n this.showCancelDone = false;\n }}\n />\n )}\n {this.canceling && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"+ZAAA,MAAMA,EAAsB,mgHAC5B,MAAAC,EAAeD,ECIf,MAAME,EAAe,+lC,MASRC,EAAgB,MAJ7B,WAAAC,CAAAC,G,uGAUUC,KAAAC,KAAe,EAKfD,KAAAE,MAAgB,EAKhBF,KAAAG,UAAoB,qBAKpBH,KAAAI,SAAmB,wEAKnB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,a;return{setters:[function(e){o=e.r;r=e.c;s=e.h;c=e.H},function(e){i=e.VerdocsEndpoint},function(e){a=e.u}],execute:function(){var l='@-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-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';var d=l;var f=e("verdocs_file_chooser",function(){function e(e){o(this,e);this.fileSelected=r(this,"fileSelected",7);this.endpoint=i.getDefault()}e.prototype.handleFileChanged=function(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return s(c,{key:"8fc35845fc90db5ea86a900353a707136e1688f4"},s("input",{key:"08696432f96839fa186d24a094f1bad719a1e019",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(o){return e.handleFileChanged(o)}}),s("div",{key:"d52c04ad541fffc0981de9738bf8a4cd181324a7",class:"upload-box"},s("div",{key:"145b2fcf28eb8973703c1ec02eb39a08fd8f67ce",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),s("div",{key:"f4f74ef29fe3415ecbb8f667a2fa33707ace3e09",class:"or-prefer"},this.file?a:"Or, if you prefer..."),s("verdocs-button",{key:"40b2d48aa5a9ba4d67e2a2512e8f0d9daf2584fe",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());f.style=d;var t='@-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-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';var n=t;var b=e("verdocs_progress_bar",function(){function e(e){o(this,e);this.label="";this.showPercent=false;this.percent=0}e.prototype.render=function(){var e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return s(c,{key:"c57b566587b7fe5f95f7082964dc7d27c46008cb"},s("div",{key:"b44243b4c65cdd5ddb7a47028db07e47e1c9373b",class:"labels"},this.label&&s("div",{key:"58715d2cd0a47260618472ed06d3eeda095ea852",class:"label"},this.label),this.showPercent&&s("div",{key:"38b9fa2f2180eee29cdc6aff0562475c9d6cc943",class:"label"},this.percent,"%")),s("div",{key:"1258f3696cb5852865e7d1af59bf2acb7acfda50",class:"bar"},s("div",{key:"eb1346d2b9f7ccce786c358ef247fd3ec62de67f",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());b.style=n}}}));
2
- //# sourceMappingURL=p-00b95f75.system.entry.js.map
1
+ System.register(["./p-60387e15.system.js","@verdocs/js-sdk","./p-cd546dbe.system.js"],(function(e){"use strict";var o,r,s,c,i,a;return{setters:[function(e){o=e.r;r=e.c;s=e.h;c=e.H},function(e){i=e.VerdocsEndpoint},function(e){a=e.u}],execute:function(){var l='@-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-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';var d=l;var f=e("verdocs_file_chooser",function(){function e(e){o(this,e);this.fileSelected=r(this,"fileSelected",7);this.endpoint=i.getDefault()}e.prototype.handleFileChanged=function(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)};e.prototype.handleSelectFile=function(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()};e.prototype.render=function(){var e=this;var o=this.file?"Select a different file":"Select a file from your computer";return s(c,{key:"2f3b44d27df1f14697939673b9706f2b8cef2b1c"},s("input",{key:"3c55f234ad08dc6741505f8314361eee94014829",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(o){return e.handleFileChanged(o)}}),s("div",{key:"bda957db5c55a91f240a501f714671973fe493e7",class:"upload-box"},s("div",{key:"c772d366c2d0cf10930bd04c6fe2cf9639ae187d",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),s("div",{key:"1d4ab1025dcd4685be52f0440d0910d5e78e6a8e",class:"or-prefer"},this.file?a:"Or, if you prefer..."),s("verdocs-button",{key:"a2385786f50aa9e298eea13dfadb3072fb2fad34",label:o,size:"small",onClick:function(o){return e.handleSelectFile(o)}})))};return e}());f.style=d;var t='@-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-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';var n=t;var b=e("verdocs_progress_bar",function(){function e(e){o(this,e);this.label="";this.showPercent=false;this.percent=0}e.prototype.render=function(){var e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return s(c,{key:"4fb4646e5feebaf8265fc8042af66d3dcf2426b6"},s("div",{key:"d2febb9e8a3b1e89d067324b40aa674287d0fef0",class:"labels"},this.label&&s("div",{key:"e32eacce952b2ba7bd10819a535b6438c6ba52b4",class:"label"},this.label),this.showPercent&&s("div",{key:"485503902199bcb6752997bef3afcf333c5ce6aa",class:"label"},this.percent,"%")),s("div",{key:"ebdfa5c9362f136d7f3690ffeadae2be46a47bc1",class:"bar"},s("div",{key:"a72e9c81d14d8e7cc6c37cfcd6a9cb6a27d50a2e",class:"slider",style:{width:"".concat(e,"%")}})))};return e}());b.style=n}}}));
2
+ //# sourceMappingURL=p-6ddcf3fe.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as e,h as s,H as i,g as o}from"./p-ddadabfb.js";import{VerdocsEndpoint as h,getEnvelopeDocumentPageDisplayUri as a}from"@verdocs/js-sdk";import{t as r}from"./p-0c45b79c.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const d="@-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-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";const n=d;const c=class{constructor(s){t(this,s);this.pageRendered=e(this,"pageRendered",7);this.endpoint=h.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId=`verdocs-envelope-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}async componentWillLoad(){this.pageDisplayUri=await a(this.endpoint,this.documentId,this.pageNumber,this.type)}componentDidLoad(){this.resizeObserver=new ResizeObserver(r((t=>{for(const e of t){const t=e.contentRect.width;this.renderedWidth=t;this.renderedHeight=this.virtualHeight*(t/this.virtualWidth)}this.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const t=`${this.renderedHeight}px`;return s(i,{key:"219a7af5090d897342b5013084a0ee40d2336d83",id:`${this.containerId}`,style:{height:t,flex:`0 0 ${t}`}},this.layers.map((e=>e.type==="div"?s("div",{class:"verdocs-envelope-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}):this.pageDisplayUri?s("img",{class:"verdocs-envelope-document-page-layer img",id:`${this.containerId}-${e.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":true,loading:"lazy",onLoad:t=>{this.naturalWidth=t.target.naturalWidth;this.naturalHeight=t.target.naturalHeight;this.aspectRatio=this.naturalWidth/this.naturalHeight;this.virtualHeight=this.virtualWidth/this.aspectRatio;this.renderedHeight=t.target.offsetWidth/this.aspectRatio}}):s("div",null))))}get container(){return o(this)}};c.style=n;export{c as verdocs_envelope_document_page};
2
- //# sourceMappingURL=p-517a9262.entry.js.map
1
+ import{r as t,c as e,h as s,H as i,g as o}from"./p-ddadabfb.js";import{VerdocsEndpoint as h,getEnvelopeDocumentPageDisplayUri as a}from"@verdocs/js-sdk";import{t as r}from"./p-0c45b79c.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const d="@-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-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";const c=d;const n=class{constructor(s){t(this,s);this.pageRendered=e(this,"pageRendered",7);this.endpoint=h.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId=`verdocs-envelope-document-page-${Math.random().toString(36).substring(2,11)}`;this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}async componentWillLoad(){this.pageDisplayUri=await a(this.endpoint,this.documentId,this.pageNumber,this.type)}componentDidLoad(){this.resizeObserver=new ResizeObserver(r((t=>{for(const e of t){const t=e.contentRect.width;this.renderedWidth=t;this.renderedHeight=this.virtualHeight*(t/this.virtualWidth)}this.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)}disconnectedCallback(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()}notifyRenderedSize(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const t=`${this.renderedHeight}px`;return s(i,{key:"cca4f6b0c00556a1662ee175292d59b249b17604",id:`${this.containerId}`,style:{height:t,flex:`0 0 ${t}`}},this.layers.map((e=>e.type==="div"?s("div",{class:"verdocs-envelope-document-page-layer",id:`${this.containerId}-${e.name}`,style:{height:t}}):this.pageDisplayUri?s("img",{class:"verdocs-envelope-document-page-layer img",id:`${this.containerId}-${e.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":true,loading:"lazy",onLoad:t=>{this.naturalWidth=t.target.naturalWidth;this.naturalHeight=t.target.naturalHeight;this.aspectRatio=this.naturalWidth/this.naturalHeight;this.virtualHeight=this.virtualWidth/this.aspectRatio;this.renderedHeight=t.target.offsetWidth/this.aspectRatio}}):s("div",null))))}get container(){return o(this)}};n.style=c;export{n as verdocs_envelope_document_page};
2
+ //# sourceMappingURL=p-7b0281af.entry.js.map