@verdocs/web-sdk 5.3.4 → 5.4.1

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 (663) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  2. package/dist/cjs/{index-Be9PlTB7.js → index-B2lA-USD.js} +172 -115
  3. package/dist/cjs/index-B2lA-USD.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +47 -10
  11. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  12. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  13. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -1
  15. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +7 -7
  16. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js.map +1 -1
  17. package/dist/cjs/verdocs-dialog.verdocs-ok-dialog.entry.cjs.js.map +1 -0
  18. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +77 -0
  19. package/dist/cjs/verdocs-dialog_2.cjs.entry.js.map +1 -0
  20. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  26. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +4 -4
  27. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  30. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-sign.cjs.entry.js +41 -27
  39. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  40. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  41. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -3
  43. package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -2
  46. package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  49. package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
  50. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  53. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  54. package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
  55. package/dist/collection/collection-manifest.json +1 -1
  56. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +21 -82
  57. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +2 -3
  58. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -1
  59. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  60. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.css +5 -2
  61. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +19 -4
  62. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js.map +1 -1
  63. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  64. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +23 -37
  65. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +3 -3
  66. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js.map +1 -1
  67. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  68. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  69. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  70. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  71. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  72. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +42 -28
  73. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  74. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +1 -1
  75. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  76. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  77. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  78. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  79. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  80. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  81. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  82. package/dist/components/index.js +1 -1
  83. package/dist/components/{p-BCfTxJfb.js → p-B0-ZXlBg.js} +4 -4
  84. package/dist/components/{p-BCfTxJfb.js.map → p-B0-ZXlBg.js.map} +1 -1
  85. package/dist/components/{p-CGQDpB88.js → p-B5fnyMp7.js} +15 -15
  86. package/dist/components/{p-CGQDpB88.js.map → p-B5fnyMp7.js.map} +1 -1
  87. package/dist/components/{p-Dt1l1CiO.js → p-B85lx7qr.js} +8 -8
  88. package/dist/components/{p-Dt1l1CiO.js.map → p-B85lx7qr.js.map} +1 -1
  89. package/dist/components/{p-BUkor2Zh.js → p-BEs2iroT.js} +6 -6
  90. package/dist/components/{p-BUkor2Zh.js.map → p-BEs2iroT.js.map} +1 -1
  91. package/dist/components/{p-CYuh1ogw.js → p-BGFhQ8wl.js} +5 -5
  92. package/dist/components/{p-CYuh1ogw.js.map → p-BGFhQ8wl.js.map} +1 -1
  93. package/dist/components/{p-IhdX5vVL.js → p-BGZ_owBm.js} +4 -4
  94. package/dist/components/{p-IhdX5vVL.js.map → p-BGZ_owBm.js.map} +1 -1
  95. package/dist/components/{p-_nUQ5iEk.js → p-BNrp2UP2.js} +4 -4
  96. package/dist/components/{p-_nUQ5iEk.js.map → p-BNrp2UP2.js.map} +1 -1
  97. package/dist/components/{p-B_qZwg8S.js → p-BPwf1M9U.js} +38 -32
  98. package/dist/components/p-BPwf1M9U.js.map +1 -0
  99. package/dist/components/{p-CVkbflKM.js → p-BQW1cLII.js} +4 -4
  100. package/dist/components/{p-CVkbflKM.js.map → p-BQW1cLII.js.map} +1 -1
  101. package/dist/components/{p-DmVSUzvg.js → p-BRIaPsiT.js} +12 -12
  102. package/dist/components/{p-DmVSUzvg.js.map → p-BRIaPsiT.js.map} +1 -1
  103. package/dist/components/{p-DjgJTYmV.js → p-BThDnPcG.js} +14 -8
  104. package/dist/components/p-BThDnPcG.js.map +1 -0
  105. package/dist/components/{p-zOGAwuLP.js → p-BV7xEuMw.js} +4 -4
  106. package/dist/components/{p-zOGAwuLP.js.map → p-BV7xEuMw.js.map} +1 -1
  107. package/dist/components/{p-BHu8qhRh.js → p-BdSDDira.js} +4 -4
  108. package/dist/components/{p-BHu8qhRh.js.map → p-BdSDDira.js.map} +1 -1
  109. package/dist/components/{p-vZUBjvdn.js → p-BeSHNILk.js} +13 -13
  110. package/dist/components/{p-vZUBjvdn.js.map → p-BeSHNILk.js.map} +1 -1
  111. package/dist/components/{p-CfqdAcYb.js → p-Bhib7RyH.js} +4 -4
  112. package/dist/components/{p-CfqdAcYb.js.map → p-Bhib7RyH.js.map} +1 -1
  113. package/dist/components/{p-BjJWKf-L.js → p-BjaqsRJ7.js} +37 -31
  114. package/dist/components/p-BjaqsRJ7.js.map +1 -0
  115. package/dist/components/{p-BakshEO1.js → p-Boia1Nbz.js} +4 -4
  116. package/dist/components/{p-BakshEO1.js.map → p-Boia1Nbz.js.map} +1 -1
  117. package/dist/components/{p-Cexe1-Oo.js → p-Bv-L0hsU.js} +4 -4
  118. package/dist/components/{p-Cexe1-Oo.js.map → p-Bv-L0hsU.js.map} +1 -1
  119. package/dist/components/{p-B7buybCz.js → p-C2M87N-a.js} +4 -4
  120. package/dist/components/{p-B7buybCz.js.map → p-C2M87N-a.js.map} +1 -1
  121. package/dist/components/{p-CZ5JrIih.js → p-CCpSKeX1.js} +5 -5
  122. package/dist/components/{p-CZ5JrIih.js.map → p-CCpSKeX1.js.map} +1 -1
  123. package/dist/components/{p-Bswg8Fe8.js → p-CRR4fTl9.js} +13 -13
  124. package/dist/components/{p-Bswg8Fe8.js.map → p-CRR4fTl9.js.map} +1 -1
  125. package/dist/components/{p-DAelmHnU.js → p-CUf9tCwr.js} +7 -7
  126. package/dist/components/{p-DAelmHnU.js.map → p-CUf9tCwr.js.map} +1 -1
  127. package/dist/components/{p-B-sC03p7.js → p-CVTTgVZn.js} +9 -8
  128. package/dist/components/p-CVTTgVZn.js.map +1 -0
  129. package/dist/components/{p-OzwT6cW-.js → p-CXo2jCTk.js} +12 -12
  130. package/dist/components/{p-OzwT6cW-.js.map → p-CXo2jCTk.js.map} +1 -1
  131. package/dist/components/{p-NepfaUbg.js → p-CZTe2XIO.js} +5 -5
  132. package/dist/components/{p-NepfaUbg.js.map → p-CZTe2XIO.js.map} +1 -1
  133. package/dist/components/{p-BDmKp20X.js → p-C_SISdpZ.js} +5 -5
  134. package/dist/components/{p-BDmKp20X.js.map → p-C_SISdpZ.js.map} +1 -1
  135. package/dist/components/{p-CFYTe0HU.js → p-CjER1kvL.js} +8 -8
  136. package/dist/components/{p-CFYTe0HU.js.map → p-CjER1kvL.js.map} +1 -1
  137. package/dist/components/{p-CJIN0YXw.js → p-Clt27_Qj.js} +13 -13
  138. package/dist/components/{p-CJIN0YXw.js.map → p-Clt27_Qj.js.map} +1 -1
  139. package/dist/components/{p-9HvXJwEq.js → p-CqjH6KjT.js} +4 -4
  140. package/dist/components/{p-9HvXJwEq.js.map → p-CqjH6KjT.js.map} +1 -1
  141. package/dist/components/{p-BdW7a50T.js → p-CtdUBMXV.js} +18 -12
  142. package/dist/components/p-CtdUBMXV.js.map +1 -0
  143. package/dist/components/{p-dDTMckyL.js → p-Cy-AXBKH.js} +4 -4
  144. package/dist/components/{p-dDTMckyL.js.map → p-Cy-AXBKH.js.map} +1 -1
  145. package/dist/components/{p-CFBQG_2F.js → p-D-GZw56Q.js} +13 -13
  146. package/dist/components/{p-CFBQG_2F.js.map → p-D-GZw56Q.js.map} +1 -1
  147. package/dist/components/{p-cuwa7Els.js → p-D16h8pzh.js} +154 -105
  148. package/dist/components/p-D16h8pzh.js.map +1 -0
  149. package/dist/components/{p-Cry7waUN.js → p-D646hJvk.js} +8 -8
  150. package/dist/components/{p-Cry7waUN.js.map → p-D646hJvk.js.map} +1 -1
  151. package/dist/components/{p-DAGrOW1D.js → p-DB6zetGN.js} +7 -7
  152. package/dist/components/{p-DAGrOW1D.js.map → p-DB6zetGN.js.map} +1 -1
  153. package/dist/components/{p-pXqgg9BU.js → p-DDTha7DK.js} +5 -5
  154. package/dist/components/{p-pXqgg9BU.js.map → p-DDTha7DK.js.map} +1 -1
  155. package/dist/components/{p--hL4T8Ae.js → p-DF8La-N2.js} +13 -13
  156. package/dist/components/{p--hL4T8Ae.js.map → p-DF8La-N2.js.map} +1 -1
  157. package/dist/components/{p-xbfIS4ny.js → p-DMCUZ4ju.js} +5 -5
  158. package/dist/components/{p-xbfIS4ny.js.map → p-DMCUZ4ju.js.map} +1 -1
  159. package/dist/components/{p-DMYs4VZa.js → p-DNcLDxgP.js} +5 -5
  160. package/dist/components/{p-DMYs4VZa.js.map → p-DNcLDxgP.js.map} +1 -1
  161. package/dist/components/{p-CFK7G7AR.js → p-DfHhHBGb.js} +36 -30
  162. package/dist/components/p-DfHhHBGb.js.map +1 -0
  163. package/dist/components/{p-BRC3PsLk.js → p-DkUmJk0T.js} +11 -11
  164. package/dist/components/{p-BRC3PsLk.js.map → p-DkUmJk0T.js.map} +1 -1
  165. package/dist/components/p-DmgutWwH.js +82 -0
  166. package/dist/components/p-DmgutWwH.js.map +1 -0
  167. package/dist/components/{p-b88NoejR.js → p-DonwyCOM.js} +4 -4
  168. package/dist/components/{p-b88NoejR.js.map → p-DonwyCOM.js.map} +1 -1
  169. package/dist/components/{p-B1oNdOdb.js → p-Dpsw5VfK.js} +14 -14
  170. package/dist/components/{p-B1oNdOdb.js.map → p-Dpsw5VfK.js.map} +1 -1
  171. package/dist/components/{p-Dt-0j6pv.js → p-DsCKNQPC.js} +4 -4
  172. package/dist/components/{p-Dt-0j6pv.js.map → p-DsCKNQPC.js.map} +1 -1
  173. package/dist/components/{p-r7qm8EsM.js → p-MX0H_yx6.js} +13 -13
  174. package/dist/components/{p-r7qm8EsM.js.map → p-MX0H_yx6.js.map} +1 -1
  175. package/dist/components/{p-DQDtYaYV.js → p-TKqTuY1V.js} +14 -14
  176. package/dist/components/{p-DQDtYaYV.js.map → p-TKqTuY1V.js.map} +1 -1
  177. package/dist/components/{p-K9Q7whri.js → p-UsZ2lpxS.js} +4 -4
  178. package/dist/components/{p-K9Q7whri.js.map → p-UsZ2lpxS.js.map} +1 -1
  179. package/dist/components/{p-q-sbO54X.js → p-WvkbfsBD.js} +6 -6
  180. package/dist/components/{p-q-sbO54X.js.map → p-WvkbfsBD.js.map} +1 -1
  181. package/dist/components/{p-BzoreaCJ.js → p-mh1GqHKh.js} +24 -18
  182. package/dist/components/p-mh1GqHKh.js.map +1 -0
  183. package/dist/components/{p-Dq3ca8_9.js → p-pTXj30z_.js} +53 -16
  184. package/dist/components/p-pTXj30z_.js.map +1 -0
  185. package/dist/components/{p-CEXKKH9Z.js → p-vCuIwe1D.js} +11 -11
  186. package/dist/components/{p-CEXKKH9Z.js.map → p-vCuIwe1D.js.map} +1 -1
  187. package/dist/components/p-veD8T-Q9.js +78 -0
  188. package/dist/components/p-veD8T-Q9.js.map +1 -0
  189. package/dist/components/{p-D0rJh5my.js → p-wYGYhfrp.js} +4 -4
  190. package/dist/components/{p-D0rJh5my.js.map → p-wYGYhfrp.js.map} +1 -1
  191. package/dist/components/{p-DGdQtEJc.js → p-xIC5Vhhx.js} +13 -13
  192. package/dist/components/{p-DGdQtEJc.js.map → p-xIC5Vhhx.js.map} +1 -1
  193. package/dist/components/{p-gJ8vsaSU.js → p-xS2v_6o_.js} +11 -11
  194. package/dist/components/{p-gJ8vsaSU.js.map → p-xS2v_6o_.js.map} +1 -1
  195. package/dist/components/verdocs-auth.js +5 -5
  196. package/dist/components/verdocs-build.js +54 -48
  197. package/dist/components/verdocs-build.js.map +1 -1
  198. package/dist/components/verdocs-button-panel.js +1 -1
  199. package/dist/components/verdocs-button.js +1 -1
  200. package/dist/components/verdocs-checkbox.js +1 -1
  201. package/dist/components/verdocs-component-error.js +1 -1
  202. package/dist/components/verdocs-contact-picker.js +1 -1
  203. package/dist/components/verdocs-date-input.js +3 -3
  204. package/dist/components/verdocs-delegate-dialog.js +1 -1
  205. package/dist/components/verdocs-dialog.js +1 -1
  206. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  207. package/dist/components/verdocs-dropdown.js +1 -1
  208. package/dist/components/verdocs-envelope-document-page.js +1 -1
  209. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  210. package/dist/components/verdocs-envelope-recipient-summary.js +3 -3
  211. package/dist/components/verdocs-envelope-sidebar.js +18 -12
  212. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  213. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  214. package/dist/components/verdocs-envelopes-list.js +18 -18
  215. package/dist/components/verdocs-field-attachment.js +1 -1
  216. package/dist/components/verdocs-field-checkbox.js +1 -1
  217. package/dist/components/verdocs-field-date.js +1 -1
  218. package/dist/components/verdocs-field-dropdown.js +1 -1
  219. package/dist/components/verdocs-field-initial.js +1 -1
  220. package/dist/components/verdocs-field-payment.js +11 -11
  221. package/dist/components/verdocs-field-radio.js +1 -1
  222. package/dist/components/verdocs-field-signature.js +1 -1
  223. package/dist/components/verdocs-field-textarea.js +1 -1
  224. package/dist/components/verdocs-field-textbox.js +1 -1
  225. package/dist/components/verdocs-field-timestamp.js +1 -1
  226. package/dist/components/verdocs-file-chooser.js +1 -1
  227. package/dist/components/verdocs-help-icon.js +1 -1
  228. package/dist/components/verdocs-initial-dialog.js +1 -1
  229. package/dist/components/verdocs-kba-dialog.js +1 -1
  230. package/dist/components/verdocs-loader.js +1 -1
  231. package/dist/components/verdocs-menu-panel.js +1 -1
  232. package/dist/components/verdocs-multiselect.js +3 -3
  233. package/dist/components/verdocs-ok-dialog.js +1 -1
  234. package/dist/components/verdocs-organization-card.js +3 -3
  235. package/dist/components/verdocs-otp-dialog.js +1 -1
  236. package/dist/components/verdocs-pagination.js +1 -1
  237. package/dist/components/verdocs-portal.js +1 -1
  238. package/dist/components/verdocs-preview.js +1 -1
  239. package/dist/components/verdocs-progress-bar.js +1 -1
  240. package/dist/components/verdocs-quick-filter.js +1 -1
  241. package/dist/components/verdocs-quick-functions.js +3 -3
  242. package/dist/components/verdocs-radio-button.js +2 -2
  243. package/dist/components/verdocs-search-box.js +2 -2
  244. package/dist/components/verdocs-search-tabs.js +3 -3
  245. package/dist/components/verdocs-select-input.js +1 -1
  246. package/dist/components/verdocs-send.js +1 -1
  247. package/dist/components/verdocs-sign.js +58 -44
  248. package/dist/components/verdocs-sign.js.map +1 -1
  249. package/dist/components/verdocs-signature-dialog.js +1 -1
  250. package/dist/components/verdocs-spinner.js +1 -1
  251. package/dist/components/verdocs-status-indicator.js +1 -1
  252. package/dist/components/verdocs-switch.js +1 -1
  253. package/dist/components/verdocs-table.js +2 -2
  254. package/dist/components/verdocs-tabs.js +1 -1
  255. package/dist/components/verdocs-template-attachments.js +1 -1
  256. package/dist/components/verdocs-template-build-tabs.js +1 -1
  257. package/dist/components/verdocs-template-card.js +3 -3
  258. package/dist/components/verdocs-template-create.js +6 -6
  259. package/dist/components/verdocs-template-document-page.js +1 -1
  260. package/dist/components/verdocs-template-field-properties.js +1 -1
  261. package/dist/components/verdocs-template-fields.js +1 -1
  262. package/dist/components/verdocs-template-role-properties.js +1 -1
  263. package/dist/components/verdocs-template-roles.js +1 -1
  264. package/dist/components/verdocs-template-settings.js +1 -1
  265. package/dist/components/verdocs-template-star.js +1 -1
  266. package/dist/components/verdocs-template-tags.js +3 -3
  267. package/dist/components/verdocs-templates-list.js +14 -14
  268. package/dist/components/verdocs-text-input.js +1 -1
  269. package/dist/components/verdocs-toggle-button.js +2 -2
  270. package/dist/components/verdocs-toggle.js +2 -2
  271. package/dist/components/verdocs-toolbar-icon.js +1 -1
  272. package/dist/components/verdocs-upload-dialog.js +1 -1
  273. package/dist/components/verdocs-view.js +1 -1
  274. package/dist/custom-elements.json +1 -1
  275. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  276. package/dist/esm/{index-CF7i8guW.js → index-6vpKbd31.js} +153 -114
  277. package/dist/esm/index-6vpKbd31.js.map +1 -0
  278. package/dist/esm/loader.js +3 -3
  279. package/dist/esm/verdocs-auth.entry.js +1 -1
  280. package/dist/esm/verdocs-build.entry.js +1 -1
  281. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  282. package/dist/esm/verdocs-button_3.entry.js +1 -1
  283. package/dist/esm/verdocs-checkbox_5.entry.js +1 -1
  284. package/dist/esm/verdocs-contact-picker.entry.js +47 -10
  285. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  286. package/dist/esm/verdocs-date-input.entry.js +1 -1
  287. package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  288. package/dist/esm/verdocs-delegate-dialog_5.entry.js +7 -7
  289. package/dist/esm/verdocs-delegate-dialog_5.entry.js.map +1 -1
  290. package/dist/esm/verdocs-dialog.verdocs-ok-dialog.entry.js.map +1 -0
  291. package/dist/esm/verdocs-dialog_2.entry.js +74 -0
  292. package/dist/esm/verdocs-dialog_2.entry.js.map +1 -0
  293. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  294. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  295. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  296. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
  297. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  298. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  299. package/dist/esm/verdocs-field-attachment_13.entry.js +4 -4
  300. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  301. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  302. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  303. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  304. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  305. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  306. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  307. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  308. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  309. package/dist/esm/verdocs-search-box.entry.js +1 -1
  310. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  311. package/dist/esm/verdocs-sign.entry.js +42 -28
  312. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  313. package/dist/esm/verdocs-spinner.entry.js +1 -1
  314. package/dist/esm/verdocs-status-indicator.entry.js +3 -3
  315. package/dist/esm/verdocs-switch.entry.js +1 -1
  316. package/dist/esm/verdocs-table.entry.js +1 -1
  317. package/dist/esm/verdocs-template-card.entry.js +2 -2
  318. package/dist/esm/verdocs-template-create.entry.js +1 -1
  319. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  320. package/dist/esm/verdocs-template-star.entry.js +2 -2
  321. package/dist/esm/verdocs-template-tags.entry.js +2 -2
  322. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  323. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  324. package/dist/esm/verdocs-toggle.entry.js +1 -1
  325. package/dist/esm/verdocs-web-sdk.js +4 -4
  326. package/dist/esm/verdocs-web-sdk.js.map +1 -1
  327. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +1 -1
  328. package/dist/esm-es5/index-6vpKbd31.js +2 -0
  329. package/dist/esm-es5/index-6vpKbd31.js.map +1 -0
  330. package/dist/esm-es5/loader.js +1 -1
  331. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  332. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  333. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  334. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  336. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  337. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  338. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  339. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  340. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
  341. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
  342. package/dist/esm-es5/verdocs-dialog.verdocs-ok-dialog.entry.js.map +1 -0
  343. package/dist/esm-es5/verdocs-dialog_2.entry.js +2 -0
  344. package/dist/esm-es5/verdocs-dialog_2.entry.js.map +1 -0
  345. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  347. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-preview_7.entry.js +2 -2
  359. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  361. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  365. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-template-create.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  373. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  374. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  375. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  376. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  377. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  378. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  379. package/dist/types/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.d.ts +13 -3
  380. package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +1 -1
  381. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -1
  382. package/dist/types/components.d.ts +706 -7
  383. package/dist/types/stencil-public-runtime.d.ts +32 -6
  384. package/dist/verdocs-web-sdk/{p-0359f32e.entry.js → p-048a7aa1.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-c1c4603e.system.entry.js → p-09739e9c.system.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-6013eb3f.entry.js → p-09b7db37.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/{p-92d45701.entry.js → p-0c12dbce.entry.js} +2 -2
  388. package/dist/verdocs-web-sdk/{p-80f0dfbc.entry.js → p-0db986ba.entry.js} +2 -2
  389. package/dist/verdocs-web-sdk/{p-cc9e6049.system.entry.js → p-0fdf7355.system.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-2dab79c8.entry.js → p-1715ba0b.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-784daaf3.entry.js → p-1776c6ae.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-4a0dc414.entry.js → p-1fac2e17.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-a95c074c.system.entry.js → p-21cccfb7.system.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-e8c146fc.system.entry.js → p-232af16d.system.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-e6fd14d5.entry.js → p-23a1dfd4.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-e63c903a.system.entry.js → p-23cde4a7.system.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/p-2d9b370b.system.entry.js +4 -0
  398. package/dist/verdocs-web-sdk/p-2d9b370b.system.entry.js.map +1 -0
  399. package/dist/verdocs-web-sdk/{p-5f8f5f48.entry.js → p-2e84c527.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-c0ec2636.system.entry.js → p-2f1f78dc.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/{p-c16b24c0.system.entry.js → p-2f550a52.system.entry.js} +2 -2
  402. package/dist/verdocs-web-sdk/{p-efc459f7.system.entry.js → p-3411287e.system.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/{p-4175122c.system.entry.js → p-35d8d17c.system.entry.js} +3 -3
  404. package/dist/verdocs-web-sdk/p-3CxpvGP7.system.js.map +1 -0
  405. package/dist/verdocs-web-sdk/{p-be6db7c0.system.entry.js → p-3a66ab11.system.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-7f085b76.system.entry.js → p-3dd891fe.system.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-d5469309.system.entry.js → p-412eee4d.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-a279bb92.system.entry.js → p-4a96d6f5.system.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-204afc1e.system.entry.js → p-4c2be294.system.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-863df983.system.entry.js → p-4e1ca6a2.system.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/{p-f46b9924.system.entry.js → p-53c7d3fa.system.entry.js} +2 -2
  412. package/dist/verdocs-web-sdk/{p-034eb84e.entry.js → p-54fb32b2.entry.js} +2 -2
  413. package/dist/verdocs-web-sdk/{p-1c4b4425.entry.js → p-55c8f6e1.entry.js} +2 -2
  414. package/dist/verdocs-web-sdk/{p-cd60348a.system.entry.js → p-570a7324.system.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/{p-6a5c1de9.system.entry.js → p-5f7f20bb.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-3ab1625e.system.entry.js → p-60982db3.system.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/{p-767c93e8.system.entry.js → p-62d9a64d.system.entry.js} +2 -2
  418. package/dist/verdocs-web-sdk/{p-2543a4d2.entry.js → p-62edcdde.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/p-6658ff38.system.entry.js +2 -0
  420. package/dist/verdocs-web-sdk/p-6658ff38.system.entry.js.map +1 -0
  421. package/dist/verdocs-web-sdk/{p-cc823255.entry.js → p-6674c680.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/{p-4c5bb9d1.system.entry.js → p-66bb2b87.system.entry.js} +2 -2
  423. package/dist/verdocs-web-sdk/{p-dbb8413d.system.entry.js → p-6940f098.system.entry.js} +2 -2
  424. package/dist/verdocs-web-sdk/{p-f66b18e0.entry.js → p-6c1c7149.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-79f5ee74.entry.js → p-6da12e5e.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-f5677a98.entry.js → p-6de2d1e3.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/p-6vpKbd31.js +3 -0
  428. package/dist/verdocs-web-sdk/p-6vpKbd31.js.map +1 -0
  429. package/dist/verdocs-web-sdk/{p-43971b64.entry.js → p-73d15c2d.entry.js} +2 -2
  430. package/dist/verdocs-web-sdk/{p-c48624a8.system.entry.js → p-73e33466.system.entry.js} +2 -2
  431. package/dist/verdocs-web-sdk/{p-b9d72eab.entry.js → p-746841e0.entry.js} +2 -2
  432. package/dist/verdocs-web-sdk/p-75b145ad.entry.js +2 -0
  433. package/dist/verdocs-web-sdk/p-75b145ad.entry.js.map +1 -0
  434. package/dist/verdocs-web-sdk/{p-ac05c34d.system.entry.js → p-7a0b3a9a.system.entry.js} +2 -2
  435. package/dist/verdocs-web-sdk/p-7d20e56f.system.entry.js +2 -0
  436. package/dist/verdocs-web-sdk/p-7d20e56f.system.entry.js.map +1 -0
  437. package/dist/verdocs-web-sdk/{p-7acbd898.entry.js → p-83387f5b.entry.js} +2 -2
  438. package/dist/verdocs-web-sdk/{p-327e38bf.entry.js → p-86a38bea.entry.js} +2 -2
  439. package/dist/verdocs-web-sdk/{p-e801f4ac.entry.js → p-86e61f1e.entry.js} +2 -2
  440. package/dist/verdocs-web-sdk/{p-cd56307c.entry.js → p-88b73a01.entry.js} +2 -2
  441. package/dist/verdocs-web-sdk/{p-ce2336aa.system.entry.js → p-8cf4eee7.system.entry.js} +2 -2
  442. package/dist/verdocs-web-sdk/{p-ed194be6.system.entry.js → p-8dfd9904.system.entry.js} +2 -2
  443. package/dist/verdocs-web-sdk/p-8e2cca1b.entry.js +2 -0
  444. package/dist/verdocs-web-sdk/p-8e2cca1b.entry.js.map +1 -0
  445. package/dist/verdocs-web-sdk/{p-d0b7bbc5.entry.js → p-92147c8e.entry.js} +3 -3
  446. package/dist/verdocs-web-sdk/{p-59723c89.entry.js → p-9524927b.entry.js} +2 -2
  447. package/dist/verdocs-web-sdk/p-9613e8fc.system.entry.js +2 -0
  448. package/dist/verdocs-web-sdk/p-9613e8fc.system.entry.js.map +1 -0
  449. package/dist/verdocs-web-sdk/{p-7966d40d.system.entry.js → p-993f6f1e.system.entry.js} +2 -2
  450. package/dist/verdocs-web-sdk/{p-ef701763.entry.js → p-9ad04f8d.entry.js} +2 -2
  451. package/dist/verdocs-web-sdk/{p-a734eed0.entry.js → p-9d7b480f.entry.js} +2 -2
  452. package/dist/verdocs-web-sdk/p-B0FmVwBR.system.js +3 -0
  453. package/dist/verdocs-web-sdk/p-B0FmVwBR.system.js.map +1 -0
  454. package/dist/verdocs-web-sdk/{p-DPRVGzF_.system.js.map → p-B2Tj4fuc.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/{p-BOuTTVR2.system.js.map → p-BEywLaeg.system.js.map} +1 -1
  456. package/dist/verdocs-web-sdk/{p-B8hJTIPP.system.js.map → p-BHraMRgX.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/{p-L5sYoH8b.system.js.map → p-BYZ-2MPe.system.js.map} +1 -1
  458. package/dist/verdocs-web-sdk/p-BbPAtVJG.system.js.map +1 -1
  459. package/dist/verdocs-web-sdk/{p-ynZKIneZ.system.js.map → p-Bkf0vzuf.system.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-Ds5wL-Co.system.js.map → p-Bnt7basv.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-C3pXyYu2.system.js.map → p-C0FCkTIp.system.js.map} +1 -1
  462. package/dist/verdocs-web-sdk/{p-CAPHli3W.system.js.map → p-C4Ying50.system.js.map} +1 -1
  463. package/dist/verdocs-web-sdk/p-CAo9BWy4.system.js.map +1 -0
  464. package/dist/verdocs-web-sdk/{p-CYHTkSId.system.js.map → p-CD6sicLf.system.js.map} +1 -1
  465. package/dist/verdocs-web-sdk/{p-luuB7PWr.system.js.map → p-CI9muv3M.system.js.map} +1 -1
  466. package/dist/verdocs-web-sdk/p-CICLOJJr.system.js.map +1 -0
  467. package/dist/verdocs-web-sdk/{p-rPgqdDgT.system.js.map → p-CIFyh5SW.system.js.map} +1 -1
  468. package/dist/verdocs-web-sdk/{p-Bbn-DzjB.system.js.map → p-CLPiPop_.system.js.map} +1 -1
  469. package/dist/verdocs-web-sdk/{p-DOuKoKCI.system.js.map → p-CLc1GNW6.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/{p-BMQPYgf_.system.js.map → p-CQcYKQmp.system.js.map} +1 -1
  471. package/dist/verdocs-web-sdk/{p-Dee_B32v.system.js.map → p-CSllp1iL.system.js.map} +1 -1
  472. package/dist/verdocs-web-sdk/{p-F6cjv9kE.system.js.map → p-CW3sVhBH.system.js.map} +1 -1
  473. package/dist/verdocs-web-sdk/{p-Ctlx9aRK.system.js.map → p-CWb_yOld.system.js.map} +1 -1
  474. package/dist/verdocs-web-sdk/{p-BPt7ZeYN.system.js.map → p-CZ3_KnyZ.system.js.map} +1 -1
  475. package/dist/verdocs-web-sdk/{p-DXKG6_cs.system.js.map → p-Cf3DnWn_.system.js.map} +1 -1
  476. package/dist/verdocs-web-sdk/p-CiKvW9mY.system.js.map +1 -0
  477. package/dist/verdocs-web-sdk/{p-Dmi3C21y.system.js.map → p-CnpV8Obg.system.js.map} +1 -1
  478. package/dist/verdocs-web-sdk/{p-CHZu9FwY.system.js.map → p-CxCkAfDO.system.js.map} +1 -1
  479. package/dist/verdocs-web-sdk/{p-Blg08wne.system.js.map → p-D677Wyq5.system.js.map} +1 -1
  480. package/dist/verdocs-web-sdk/{p-CflLDny-.system.js.map → p-D9LbjoUr.system.js.map} +1 -1
  481. package/dist/verdocs-web-sdk/{p-CxebBOfo.system.js.map → p-DE2U9Rfd.system.js.map} +1 -1
  482. package/dist/verdocs-web-sdk/{p-cI4bagwT.system.js.map → p-DFyhKNRO.system.js.map} +1 -1
  483. package/dist/verdocs-web-sdk/{p-Czs72bg4.system.js.map → p-DGdn9mfe.system.js.map} +1 -1
  484. package/dist/verdocs-web-sdk/{p-C4wFtWGl.system.js.map → p-DPhW-51Y.system.js.map} +1 -1
  485. package/dist/verdocs-web-sdk/p-DQuL1Twl.js.map +1 -1
  486. package/dist/verdocs-web-sdk/{p-DAZ_KnJG.system.js.map → p-DV-Ttvuy.system.js.map} +1 -1
  487. package/dist/verdocs-web-sdk/{p-BYK4X2Cr.system.js.map → p-DcRVYjP6.system.js.map} +1 -1
  488. package/dist/verdocs-web-sdk/{p-U0rW0Gqv.system.js.map → p-DxcILin8.system.js.map} +1 -1
  489. package/dist/verdocs-web-sdk/{p-D2By4ZeB.system.js.map → p-JO58lfgU.system.js.map} +1 -1
  490. package/dist/verdocs-web-sdk/p-RlE9Yh59.system.js +2 -0
  491. package/dist/verdocs-web-sdk/{p-CwXSduhy.system.js.map → p-RlE9Yh59.system.js.map} +1 -1
  492. package/dist/verdocs-web-sdk/{p-51b0c10c.system.entry.js → p-a245ce2a.system.entry.js} +2 -2
  493. package/dist/verdocs-web-sdk/{p-672b6b7b.entry.js → p-a668f61c.entry.js} +2 -2
  494. package/dist/verdocs-web-sdk/{p-791184e5.entry.js → p-a6a6e4ab.entry.js} +2 -2
  495. package/dist/verdocs-web-sdk/{p-0a1dc128.entry.js → p-af4b5497.entry.js} +2 -2
  496. package/dist/verdocs-web-sdk/{p-QrafNGv0.system.js.map → p-af9NAoxw.system.js.map} +1 -1
  497. package/dist/verdocs-web-sdk/{p-759b5749.entry.js → p-bc20c923.entry.js} +2 -2
  498. package/dist/verdocs-web-sdk/{p-6f6a0c7a.system.entry.js → p-bcc07a53.system.entry.js} +2 -2
  499. package/dist/verdocs-web-sdk/{p-76aed8e2.system.entry.js → p-c0192037.system.entry.js} +2 -2
  500. package/dist/verdocs-web-sdk/{p-356af98a.entry.js → p-c1a71296.entry.js} +2 -2
  501. package/dist/verdocs-web-sdk/{p-b7da67bb.system.entry.js → p-c5ae0bf7.system.entry.js} +2 -2
  502. package/dist/verdocs-web-sdk/{p-99f4f945.entry.js → p-c5f64deb.entry.js} +2 -2
  503. package/dist/verdocs-web-sdk/{p-45f59906.entry.js → p-ca8bb8ab.entry.js} +2 -2
  504. package/dist/verdocs-web-sdk/{p-68b11f68.entry.js → p-ceabec49.entry.js} +2 -2
  505. package/dist/verdocs-web-sdk/p-dd51c6cf.entry.js +3 -0
  506. package/dist/verdocs-web-sdk/p-dd51c6cf.entry.js.map +1 -0
  507. package/dist/verdocs-web-sdk/{p-427eaf21.system.entry.js → p-df0d2ecf.system.entry.js} +2 -2
  508. package/dist/verdocs-web-sdk/{p-d1e99a40.entry.js → p-e48adefb.entry.js} +2 -2
  509. package/dist/verdocs-web-sdk/p-e70424c1.entry.js +2 -0
  510. package/dist/verdocs-web-sdk/p-e70424c1.entry.js.map +1 -0
  511. package/dist/verdocs-web-sdk/{p-DyIimYwQ.system.js.map → p-eV_NkDV8.system.js.map} +1 -1
  512. package/dist/verdocs-web-sdk/{p-e15b7c92.entry.js → p-f8d91f6b.entry.js} +2 -2
  513. package/dist/verdocs-web-sdk/{p-596326ba.system.entry.js → p-f9f25d23.system.entry.js} +2 -2
  514. package/dist/verdocs-web-sdk/{p-8c98a765.system.entry.js → p-faab7883.system.entry.js} +2 -2
  515. package/dist/verdocs-web-sdk/{p-bf90e30b.system.entry.js → p-fb3f21c4.system.entry.js} +2 -2
  516. package/dist/verdocs-web-sdk/{p-72c996d0.system.entry.js → p-fb57a316.system.entry.js} +2 -2
  517. package/dist/verdocs-web-sdk/{p-DpJ6fOKq.system.js.map → p-i133pS58.system.js.map} +1 -1
  518. package/dist/verdocs-web-sdk/{p-BAthDv8w.system.js.map → p-i1n3BAWn.system.js.map} +1 -1
  519. package/dist/verdocs-web-sdk/{p-Dx9QGjeG.system.js.map → p-m45VPoeg.system.js.map} +1 -1
  520. package/dist/verdocs-web-sdk/{p-LIkyGpz6.system.js.map → p-zO3xplJW.system.js.map} +1 -1
  521. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  522. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -1
  523. package/dist/verdocs-web-sdk/verdocs-dialog.verdocs-ok-dialog.entry.esm.js.map +1 -0
  524. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  525. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  526. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  527. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  528. package/package.json +12 -14
  529. package/dist/cjs/index-Be9PlTB7.js.map +0 -1
  530. package/dist/cjs/verdocs-dialog.cjs.entry.js +0 -30
  531. package/dist/cjs/verdocs-dialog.cjs.entry.js.map +0 -1
  532. package/dist/cjs/verdocs-dialog.entry.cjs.js.map +0 -1
  533. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +0 -54
  534. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js.map +0 -1
  535. package/dist/cjs/verdocs-ok-dialog.entry.cjs.js.map +0 -1
  536. package/dist/components/p-B-sC03p7.js.map +0 -1
  537. package/dist/components/p-B_qZwg8S.js.map +0 -1
  538. package/dist/components/p-BdW7a50T.js.map +0 -1
  539. package/dist/components/p-BjJWKf-L.js.map +0 -1
  540. package/dist/components/p-BpUKXYCJ.js +0 -83
  541. package/dist/components/p-BpUKXYCJ.js.map +0 -1
  542. package/dist/components/p-BzoreaCJ.js.map +0 -1
  543. package/dist/components/p-CFK7G7AR.js.map +0 -1
  544. package/dist/components/p-DjgJTYmV.js.map +0 -1
  545. package/dist/components/p-Dq3ca8_9.js.map +0 -1
  546. package/dist/components/p-NtCZcfeU.js +0 -78
  547. package/dist/components/p-NtCZcfeU.js.map +0 -1
  548. package/dist/components/p-cuwa7Els.js.map +0 -1
  549. package/dist/esm/index-CF7i8guW.js.map +0 -1
  550. package/dist/esm/verdocs-dialog.entry.js +0 -28
  551. package/dist/esm/verdocs-dialog.entry.js.map +0 -1
  552. package/dist/esm/verdocs-ok-dialog.entry.js +0 -52
  553. package/dist/esm/verdocs-ok-dialog.entry.js.map +0 -1
  554. package/dist/esm-es5/index-CF7i8guW.js +0 -2
  555. package/dist/esm-es5/index-CF7i8guW.js.map +0 -1
  556. package/dist/esm-es5/verdocs-dialog.entry.js +0 -2
  557. package/dist/esm-es5/verdocs-dialog.entry.js.map +0 -1
  558. package/dist/esm-es5/verdocs-ok-dialog.entry.js +0 -2
  559. package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +0 -1
  560. package/dist/verdocs-web-sdk/p-0cde3e63.system.entry.js +0 -2
  561. package/dist/verdocs-web-sdk/p-0cde3e63.system.entry.js.map +0 -1
  562. package/dist/verdocs-web-sdk/p-14467744.entry.js +0 -2
  563. package/dist/verdocs-web-sdk/p-14467744.entry.js.map +0 -1
  564. package/dist/verdocs-web-sdk/p-4704cf14.entry.js +0 -2
  565. package/dist/verdocs-web-sdk/p-4704cf14.entry.js.map +0 -1
  566. package/dist/verdocs-web-sdk/p-48366bb6.system.entry.js +0 -2
  567. package/dist/verdocs-web-sdk/p-48366bb6.system.entry.js.map +0 -1
  568. package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js +0 -2
  569. package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js.map +0 -1
  570. package/dist/verdocs-web-sdk/p-72e9198d.system.entry.js +0 -4
  571. package/dist/verdocs-web-sdk/p-72e9198d.system.entry.js.map +0 -1
  572. package/dist/verdocs-web-sdk/p-86e18c44.entry.js +0 -3
  573. package/dist/verdocs-web-sdk/p-86e18c44.entry.js.map +0 -1
  574. package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +0 -1
  575. package/dist/verdocs-web-sdk/p-Bo8r8IOt.system.js.map +0 -1
  576. package/dist/verdocs-web-sdk/p-CF7i8guW.js +0 -3
  577. package/dist/verdocs-web-sdk/p-CF7i8guW.js.map +0 -1
  578. package/dist/verdocs-web-sdk/p-CZ0N9seS.system.js.map +0 -1
  579. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +0 -2
  580. package/dist/verdocs-web-sdk/p-D6pYq1ZB.system.js.map +0 -1
  581. package/dist/verdocs-web-sdk/p-DTWK43fd.system.js.map +0 -1
  582. package/dist/verdocs-web-sdk/p-a36fb1dd.entry.js +0 -2
  583. package/dist/verdocs-web-sdk/p-a36fb1dd.entry.js.map +0 -1
  584. package/dist/verdocs-web-sdk/p-ba3df500.entry.js +0 -2
  585. package/dist/verdocs-web-sdk/p-ba3df500.entry.js.map +0 -1
  586. package/dist/verdocs-web-sdk/p-d907fa45.system.entry.js +0 -2
  587. package/dist/verdocs-web-sdk/p-d907fa45.system.entry.js.map +0 -1
  588. package/dist/verdocs-web-sdk/p-gAi_FRvp.system.js +0 -3
  589. package/dist/verdocs-web-sdk/p-gAi_FRvp.system.js.map +0 -1
  590. package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +0 -1
  591. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.esm.js.map +0 -1
  592. /package/dist/verdocs-web-sdk/{p-0359f32e.entry.js.map → p-048a7aa1.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-c1c4603e.system.entry.js.map → p-09739e9c.system.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-6013eb3f.entry.js.map → p-09b7db37.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-92d45701.entry.js.map → p-0c12dbce.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-80f0dfbc.entry.js.map → p-0db986ba.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-cc9e6049.system.entry.js.map → p-0fdf7355.system.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-2dab79c8.entry.js.map → p-1715ba0b.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-784daaf3.entry.js.map → p-1776c6ae.entry.js.map} +0 -0
  600. /package/dist/verdocs-web-sdk/{p-4a0dc414.entry.js.map → p-1fac2e17.entry.js.map} +0 -0
  601. /package/dist/verdocs-web-sdk/{p-a95c074c.system.entry.js.map → p-21cccfb7.system.entry.js.map} +0 -0
  602. /package/dist/verdocs-web-sdk/{p-e8c146fc.system.entry.js.map → p-232af16d.system.entry.js.map} +0 -0
  603. /package/dist/verdocs-web-sdk/{p-e6fd14d5.entry.js.map → p-23a1dfd4.entry.js.map} +0 -0
  604. /package/dist/verdocs-web-sdk/{p-e63c903a.system.entry.js.map → p-23cde4a7.system.entry.js.map} +0 -0
  605. /package/dist/verdocs-web-sdk/{p-5f8f5f48.entry.js.map → p-2e84c527.entry.js.map} +0 -0
  606. /package/dist/verdocs-web-sdk/{p-c0ec2636.system.entry.js.map → p-2f1f78dc.system.entry.js.map} +0 -0
  607. /package/dist/verdocs-web-sdk/{p-c16b24c0.system.entry.js.map → p-2f550a52.system.entry.js.map} +0 -0
  608. /package/dist/verdocs-web-sdk/{p-efc459f7.system.entry.js.map → p-3411287e.system.entry.js.map} +0 -0
  609. /package/dist/verdocs-web-sdk/{p-4175122c.system.entry.js.map → p-35d8d17c.system.entry.js.map} +0 -0
  610. /package/dist/verdocs-web-sdk/{p-be6db7c0.system.entry.js.map → p-3a66ab11.system.entry.js.map} +0 -0
  611. /package/dist/verdocs-web-sdk/{p-7f085b76.system.entry.js.map → p-3dd891fe.system.entry.js.map} +0 -0
  612. /package/dist/verdocs-web-sdk/{p-d5469309.system.entry.js.map → p-412eee4d.system.entry.js.map} +0 -0
  613. /package/dist/verdocs-web-sdk/{p-a279bb92.system.entry.js.map → p-4a96d6f5.system.entry.js.map} +0 -0
  614. /package/dist/verdocs-web-sdk/{p-204afc1e.system.entry.js.map → p-4c2be294.system.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-863df983.system.entry.js.map → p-4e1ca6a2.system.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-f46b9924.system.entry.js.map → p-53c7d3fa.system.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-034eb84e.entry.js.map → p-54fb32b2.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-1c4b4425.entry.js.map → p-55c8f6e1.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-cd60348a.system.entry.js.map → p-570a7324.system.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-6a5c1de9.system.entry.js.map → p-5f7f20bb.system.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-3ab1625e.system.entry.js.map → p-60982db3.system.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-767c93e8.system.entry.js.map → p-62d9a64d.system.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-2543a4d2.entry.js.map → p-62edcdde.entry.js.map} +0 -0
  624. /package/dist/verdocs-web-sdk/{p-cc823255.entry.js.map → p-6674c680.entry.js.map} +0 -0
  625. /package/dist/verdocs-web-sdk/{p-4c5bb9d1.system.entry.js.map → p-66bb2b87.system.entry.js.map} +0 -0
  626. /package/dist/verdocs-web-sdk/{p-dbb8413d.system.entry.js.map → p-6940f098.system.entry.js.map} +0 -0
  627. /package/dist/verdocs-web-sdk/{p-f66b18e0.entry.js.map → p-6c1c7149.entry.js.map} +0 -0
  628. /package/dist/verdocs-web-sdk/{p-79f5ee74.entry.js.map → p-6da12e5e.entry.js.map} +0 -0
  629. /package/dist/verdocs-web-sdk/{p-f5677a98.entry.js.map → p-6de2d1e3.entry.js.map} +0 -0
  630. /package/dist/verdocs-web-sdk/{p-43971b64.entry.js.map → p-73d15c2d.entry.js.map} +0 -0
  631. /package/dist/verdocs-web-sdk/{p-c48624a8.system.entry.js.map → p-73e33466.system.entry.js.map} +0 -0
  632. /package/dist/verdocs-web-sdk/{p-b9d72eab.entry.js.map → p-746841e0.entry.js.map} +0 -0
  633. /package/dist/verdocs-web-sdk/{p-ac05c34d.system.entry.js.map → p-7a0b3a9a.system.entry.js.map} +0 -0
  634. /package/dist/verdocs-web-sdk/{p-7acbd898.entry.js.map → p-83387f5b.entry.js.map} +0 -0
  635. /package/dist/verdocs-web-sdk/{p-327e38bf.entry.js.map → p-86a38bea.entry.js.map} +0 -0
  636. /package/dist/verdocs-web-sdk/{p-e801f4ac.entry.js.map → p-86e61f1e.entry.js.map} +0 -0
  637. /package/dist/verdocs-web-sdk/{p-cd56307c.entry.js.map → p-88b73a01.entry.js.map} +0 -0
  638. /package/dist/verdocs-web-sdk/{p-ce2336aa.system.entry.js.map → p-8cf4eee7.system.entry.js.map} +0 -0
  639. /package/dist/verdocs-web-sdk/{p-ed194be6.system.entry.js.map → p-8dfd9904.system.entry.js.map} +0 -0
  640. /package/dist/verdocs-web-sdk/{p-d0b7bbc5.entry.js.map → p-92147c8e.entry.js.map} +0 -0
  641. /package/dist/verdocs-web-sdk/{p-59723c89.entry.js.map → p-9524927b.entry.js.map} +0 -0
  642. /package/dist/verdocs-web-sdk/{p-7966d40d.system.entry.js.map → p-993f6f1e.system.entry.js.map} +0 -0
  643. /package/dist/verdocs-web-sdk/{p-ef701763.entry.js.map → p-9ad04f8d.entry.js.map} +0 -0
  644. /package/dist/verdocs-web-sdk/{p-a734eed0.entry.js.map → p-9d7b480f.entry.js.map} +0 -0
  645. /package/dist/verdocs-web-sdk/{p-51b0c10c.system.entry.js.map → p-a245ce2a.system.entry.js.map} +0 -0
  646. /package/dist/verdocs-web-sdk/{p-672b6b7b.entry.js.map → p-a668f61c.entry.js.map} +0 -0
  647. /package/dist/verdocs-web-sdk/{p-791184e5.entry.js.map → p-a6a6e4ab.entry.js.map} +0 -0
  648. /package/dist/verdocs-web-sdk/{p-0a1dc128.entry.js.map → p-af4b5497.entry.js.map} +0 -0
  649. /package/dist/verdocs-web-sdk/{p-759b5749.entry.js.map → p-bc20c923.entry.js.map} +0 -0
  650. /package/dist/verdocs-web-sdk/{p-6f6a0c7a.system.entry.js.map → p-bcc07a53.system.entry.js.map} +0 -0
  651. /package/dist/verdocs-web-sdk/{p-76aed8e2.system.entry.js.map → p-c0192037.system.entry.js.map} +0 -0
  652. /package/dist/verdocs-web-sdk/{p-356af98a.entry.js.map → p-c1a71296.entry.js.map} +0 -0
  653. /package/dist/verdocs-web-sdk/{p-b7da67bb.system.entry.js.map → p-c5ae0bf7.system.entry.js.map} +0 -0
  654. /package/dist/verdocs-web-sdk/{p-99f4f945.entry.js.map → p-c5f64deb.entry.js.map} +0 -0
  655. /package/dist/verdocs-web-sdk/{p-45f59906.entry.js.map → p-ca8bb8ab.entry.js.map} +0 -0
  656. /package/dist/verdocs-web-sdk/{p-68b11f68.entry.js.map → p-ceabec49.entry.js.map} +0 -0
  657. /package/dist/verdocs-web-sdk/{p-427eaf21.system.entry.js.map → p-df0d2ecf.system.entry.js.map} +0 -0
  658. /package/dist/verdocs-web-sdk/{p-d1e99a40.entry.js.map → p-e48adefb.entry.js.map} +0 -0
  659. /package/dist/verdocs-web-sdk/{p-e15b7c92.entry.js.map → p-f8d91f6b.entry.js.map} +0 -0
  660. /package/dist/verdocs-web-sdk/{p-596326ba.system.entry.js.map → p-f9f25d23.system.entry.js.map} +0 -0
  661. /package/dist/verdocs-web-sdk/{p-8c98a765.system.entry.js.map → p-faab7883.system.entry.js.map} +0 -0
  662. /package/dist/verdocs-web-sdk/{p-bf90e30b.system.entry.js.map → p-fb3f21c4.system.entry.js.map} +0 -0
  663. /package/dist/verdocs-web-sdk/{p-72c996d0.system.entry.js.map → p-fb57a316.system.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(e){"use strict";var r,t,n,o;return{setters:[function(e){r=e.r;t=e.c;n=e.h},function(e){o=e.VerdocsEndpoint}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var c='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var s='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var a=e("verdocs_search_box",function(){function e(e){r(this,e);this.searchClicked=t(this,"searchClicked");this.typeChanged=t(this,"typeChanged");this.queryChanged=t(this,"queryChanged");this.endpoint=o.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return n("form",{key:"71f1e2eeebd6f366f87ec35744c7d84dbc627d9f",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&n("span",{key:"3774a05f5a9da40acebac196c39c3b96116411cd",class:"type"},this.type,"s ",n("button",{key:"18e43f4b82866e0268236816987c7c72fa832dc0",class:"remove",innerHTML:s,onClick:function(){return e.handleClearFilter()}})),n("input",{key:"c5d0b0cf4f21f3d89e7b8f5cf46b38d0b8d842e4",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),n("button",{key:"2cc3258c31064b57250d43f884eb80421e894cef",onClick:function(r){return e.handleSearch(r)},class:"search"},n("span",{key:"c713b662cb372eab8de50d845d8dfc2b3f320931",innerHTML:c}),"Search"))};return e}());a.style=i}}}));
2
- //# sourceMappingURL=p-3ab1625e.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,r,t,n){function o(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,i){function c(e){try{a(n.next(e))}catch(e){i(e)}}function s(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):o(e.value).then(c,s)}a((n=n.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,c;return c={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function s(e){return function(r){return a([e,r])}}function a(s){if(n)throw new TypeError("Generator is already executing.");while(c&&(c=0,s[0]&&(t=0)),t)try{if(n=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;o=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];o=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-B0FmVwBR.system.js","@verdocs/js-sdk"],(function(e){"use strict";var r,t,n,o;return{setters:[function(e){r=e.r;t=e.c;n=e.h},function(e){o=e.VerdocsEndpoint}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var c='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var s='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var a=e("verdocs_search_box",function(){function e(e){r(this,e);this.searchClicked=t(this,"searchClicked");this.typeChanged=t(this,"typeChanged");this.queryChanged=t(this,"queryChanged");this.endpoint=o.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return n("form",{key:"71f1e2eeebd6f366f87ec35744c7d84dbc627d9f",onSubmit:function(r){return e.handleSearch(r)}},this.type!==undefined&&this.type!=="all"&&n("span",{key:"3774a05f5a9da40acebac196c39c3b96116411cd",class:"type"},this.type,"s ",n("button",{key:"18e43f4b82866e0268236816987c7c72fa832dc0",class:"remove",innerHTML:s,onClick:function(){return e.handleClearFilter()}})),n("input",{key:"c5d0b0cf4f21f3d89e7b8f5cf46b38d0b8d842e4",type:"text",value:this.query,placeholder:this.placeholder,onInput:function(r){return e.handleChange(r)},onKeyUp:function(r){return e.handleKeyUp(r)},ref:function(r){return e.inputEl=r}}),n("button",{key:"2cc3258c31064b57250d43f884eb80421e894cef",onClick:function(r){return e.handleSearch(r)},class:"search"},n("span",{key:"c713b662cb372eab8de50d845d8dfc2b3f320931",innerHTML:c}),"Search"))};return e}());a.style=i}}}));
2
+ //# sourceMappingURL=p-60982db3.system.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(o){"use strict";var r,e,n,d,t,a;return{setters:[function(o){r=o.r;e=o.c;n=o.h;d=o.H;t=o.g},function(o){a=o.randomString}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var c=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=e(this,"optionSelected");this.options=[];this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.showPicker=false}o.prototype.handleSelectOption=function(o,r){var e;o.stopPropagation();(e=this.optionSelected)===null||e===void 0?void 0:e.emit(r);this.showPicker=false};o.prototype.toggle=function(){this.showPicker=!this.showPicker};o.prototype.render=function(){var o=this;var r="verdocs-dropdown-".concat(a(8));return n(d,{key:"466a4c33a9d8867a5740fd05b49dfba52ae07334"},n("button",{key:"7e0493bac43d60b5116c604a0012951e69380eb6",class:"arrow",innerHTML:s,"aria-label":"Open Menu",id:r,onClick:function(){return o.showPicker=!o.showPicker}}),this.showPicker&&n("verdocs-portal",{key:"8fcdfbf97c8f3a859dfa523eed4660195f246124",anchor:r,onClickAway:function(){return o.showPicker=false},id:"verdocs-dropdown-menu-items"},this.options.map((function(r){if(!r.label){return n("div",{class:"verdocs-dropdown-menu-separator"})}else{return n("button",{class:"verdocs-dropdown-menu-option",disabled:r.disabled||false,onClick:function(e){return o.handleSelectOption(e,r)}},r.label)}}))))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());c.style=i}}}));
2
- //# sourceMappingURL=p-767c93e8.system.entry.js.map
1
+ System.register(["./p-B0FmVwBR.system.js","@verdocs/js-sdk"],(function(o){"use strict";var r,e,n,d,t,a;return{setters:[function(o){r=o.r;e=o.c;n=o.h;d=o.H;t=o.g},function(o){a=o.randomString}],execute:function(){var i='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var s='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var c=o("verdocs_dropdown",function(){function o(o){r(this,o);this.optionSelected=e(this,"optionSelected");this.options=[];this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.showPicker=false}o.prototype.handleSelectOption=function(o,r){var e;o.stopPropagation();(e=this.optionSelected)===null||e===void 0?void 0:e.emit(r);this.showPicker=false};o.prototype.toggle=function(){this.showPicker=!this.showPicker};o.prototype.render=function(){var o=this;var r="verdocs-dropdown-".concat(a(8));return n(d,{key:"466a4c33a9d8867a5740fd05b49dfba52ae07334"},n("button",{key:"7e0493bac43d60b5116c604a0012951e69380eb6",class:"arrow",innerHTML:s,"aria-label":"Open Menu",id:r,onClick:function(){return o.showPicker=!o.showPicker}}),this.showPicker&&n("verdocs-portal",{key:"8fcdfbf97c8f3a859dfa523eed4660195f246124",anchor:r,onClickAway:function(){return o.showPicker=false},id:"verdocs-dropdown-menu-items"},this.options.map((function(r){if(!r.label){return n("div",{class:"verdocs-dropdown-menu-separator"})}else{return n("button",{class:"verdocs-dropdown-menu-option",disabled:r.disabled||false,onClick:function(e){return o.handleSelectOption(e,r)}},r.label)}}))))};Object.defineProperty(o.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return o}());c.style=i}}}));
2
+ //# sourceMappingURL=p-62d9a64d.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as o,H as r}from"./p-CF7i8guW.js";import{VerdocsEndpoint as a,createTemplate as s}from"@verdocs/js-sdk";import{S as i}from"./p-C1sRVZWv.js";const 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-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create p{color:#33364b;margin-top:20px;font-size:18px;font-weight:500;overflow-wrap:anywhere}verdocs-template-create p.subscript{color:#5c6575;font-size:14px;margin:20px}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}verdocs-template-create .error{margin:20px 0;color:#cc0000}';const c='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';const d=class{constructor(o){e(this,o);this.exit=t(this,"exit");this.next=t(this,"next");this.sdkError=t(this,"sdkError");this.templateCreated=t(this,"templateCreated");this.endpoint=a.getDefault();this.maxSize=20.5*1024*1024;this.creating=false;this.progressLabel="Uploading...";this.progressPercent=0;this.errorMessage=""}componentWillLoad(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()}handleFileChanged(e){var t;this.errorMessage="";this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file);const o=this.file.size;if(o>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}}handleUpload(e){e.stopPropagation();const t=document.getElementById("verdocs-template-create-file");t.click()}handleCancel(e){e.stopPropagation();this.exit.emit()}async handleSubmit(e){var t,o,r,a,l;e.stopPropagation();if(!this.file){return}this.creating=true;this.progressLabel="Uploading...";try{const e=await s(this.endpoint,{name:this.file.name,initial_reminder:0,followup_reminders:0,documents:[this.file]},(e=>{if(e>=99){this.progressLabel="Processing...";this.progressPercent=100}else{this.progressPercent=e}}));console.log("[CREATE] Created template",e);(t=this.templateCreated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e,templateId:e.id});(o=this.next)===null||o===void 0?void 0:o.emit(e);this.creating=false;this.progressLabel="";this.progressPercent=0}catch(e){console.log("[CREATE] Error creating template",e);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new i(e.message,(a=e.response)===null||a===void 0?void 0:a.status,(l=e.response)===null||l===void 0?void 0:l.data));this.creating=false}}render(){if(!this.endpoint.session){return o(r,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return o(r,null,o("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},o("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),this.creating?o("div",{class:"loader-wrapper"},o("verdocs-loader",null),this.progressLabel&&o("div",{class:"progress-wrapper"},o("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):o("div",{class:"upload-box",onDrop:e=>{e.preventDefault();e.target.classList.remove("drag-over");this.file=e.dataTransfer.files[0];if(this.file.size>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}},onDragOver:e=>{e.preventDefault();e.dataTransfer.dropEffect="copy"},onDragEnter:e=>e.target.classList.add("drag-over"),onDragLeave:e=>e.target.classList.remove("drag-over")},o("span",{innerHTML:c,style:{display:"flex",justifyContent:"center"}}),o("p",null,this.file?this.file.name:"Drag and drop your files here"),o("p",{class:"subscript"},"Supported files: PDF, Word"),o("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:e=>this.handleUpload(e)})),!!this.errorMessage&&o("div",{class:"error"},this.errorMessage),o("div",{class:"buttons"},o("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e),disabled:this.creating}),o("verdocs-button",{label:"Next",size:"small",onClick:e=>this.handleSubmit(e),disabled:!this.file||this.creating||!!this.errorMessage}))))}};d.style=l;export{d as verdocs_template_create};
2
- //# sourceMappingURL=p-2543a4d2.entry.js.map
1
+ import{r as e,c as t,h as o,H as r}from"./p-6vpKbd31.js";import{VerdocsEndpoint as a,createTemplate as s}from"@verdocs/js-sdk";import{S as i}from"./p-C1sRVZWv.js";const 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-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create p{color:#33364b;margin-top:20px;font-size:18px;font-weight:500;overflow-wrap:anywhere}verdocs-template-create p.subscript{color:#5c6575;font-size:14px;margin:20px}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}verdocs-template-create .error{margin:20px 0;color:#cc0000}';const c='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';const d=class{constructor(o){e(this,o);this.exit=t(this,"exit");this.next=t(this,"next");this.sdkError=t(this,"sdkError");this.templateCreated=t(this,"templateCreated");this.endpoint=a.getDefault();this.maxSize=20.5*1024*1024;this.creating=false;this.progressLabel="Uploading...";this.progressPercent=0;this.errorMessage=""}componentWillLoad(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()}handleFileChanged(e){var t;this.errorMessage="";this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file);const o=this.file.size;if(o>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}}handleUpload(e){e.stopPropagation();const t=document.getElementById("verdocs-template-create-file");t.click()}handleCancel(e){e.stopPropagation();this.exit.emit()}async handleSubmit(e){var t,o,r,a,l;e.stopPropagation();if(!this.file){return}this.creating=true;this.progressLabel="Uploading...";try{const e=await s(this.endpoint,{name:this.file.name,initial_reminder:0,followup_reminders:0,documents:[this.file]},(e=>{if(e>=99){this.progressLabel="Processing...";this.progressPercent=100}else{this.progressPercent=e}}));console.log("[CREATE] Created template",e);(t=this.templateCreated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e,templateId:e.id});(o=this.next)===null||o===void 0?void 0:o.emit(e);this.creating=false;this.progressLabel="";this.progressPercent=0}catch(e){console.log("[CREATE] Error creating template",e);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new i(e.message,(a=e.response)===null||a===void 0?void 0:a.status,(l=e.response)===null||l===void 0?void 0:l.data));this.creating=false}}render(){if(!this.endpoint.session){return o(r,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return o(r,null,o("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},o("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),this.creating?o("div",{class:"loader-wrapper"},o("verdocs-loader",null),this.progressLabel&&o("div",{class:"progress-wrapper"},o("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):o("div",{class:"upload-box",onDrop:e=>{e.preventDefault();e.target.classList.remove("drag-over");this.file=e.dataTransfer.files[0];if(this.file.size>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}},onDragOver:e=>{e.preventDefault();e.dataTransfer.dropEffect="copy"},onDragEnter:e=>e.target.classList.add("drag-over"),onDragLeave:e=>e.target.classList.remove("drag-over")},o("span",{innerHTML:c,style:{display:"flex",justifyContent:"center"}}),o("p",null,this.file?this.file.name:"Drag and drop your files here"),o("p",{class:"subscript"},"Supported files: PDF, Word"),o("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:e=>this.handleUpload(e)})),!!this.errorMessage&&o("div",{class:"error"},this.errorMessage),o("div",{class:"buttons"},o("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e),disabled:this.creating}),o("verdocs-button",{label:"Next",size:"small",onClick:e=>this.handleSubmit(e),disabled:!this.file||this.creating||!!this.errorMessage}))))}};d.style=l;export{d as verdocs_template_create};
2
+ //# sourceMappingURL=p-62edcdde.entry.js.map
@@ -0,0 +1,2 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):s(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,r;n<s;n++){if(r||!(n in t)){if(!r)r=Array.prototype.slice.call(t,0,n);r[n]=t[n]}}return e.concat(r||Array.prototype.slice.call(t))};System.register(["./p-B0FmVwBR.system.js","@verdocs/js-sdk","./p-CD5uiThi.system.js","./p-C9y1KCYV.system.js","./p-CrzDCQEM.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js","./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","./p-80p0Fzir.system.js"],(function(e){"use strict";var t,i,n,s,r,o,a,l,c,d,u,h,f,p,v,g,x,m,b,y,w,k,S,_,N,I,G,D,P,z,T,E,U;return{setters:[function(e){t=e.r;i=e.c;n=e.h;s=e.H;r=e.F},function(e){o=e.VerdocsEndpoint;a=e.startSigningSession;l=e.envelopeRecipientAgree;c=e.updateEnvelopeField;d=e.createSignature;u=e.updateEnvelopeFieldSignature;h=e.createInitials;f=e.updateEnvelopeFieldInitials;p=e.isValidPhone;v=e.isValidEmail;g=e.sortFields;x=e.envelopeRecipientSubmit;m=e.uploadEnvelopeFieldAttachment;b=e.deleteEnvelopeFieldAttachment;y=e.formatFullName;w=e.fullNameToInitials;k=e.verifySigner;S=e.delegateRecipient;_=e.envelopeRecipientDecline;N=e.integerSequence},function(e){I=e.a;G=e.u;D=e.g;P=e.r},function(e){z=e.D},function(e){T=e.V},function(e){E=e.S},function(e){U=e.S},null,null,null],execute:function(){var A='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-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-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;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-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .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-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-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);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;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)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}';var q='\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href="https://verdocs.com/en/electronic-record-signature-disclosure/" target="_blank">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs\'\n <a href="https://verdocs.com/en/eula" target="_blank">\n End User License Agreement</a>\n and confirm you have read Verdocs\'\n <a href="https://verdocs.com/en/privacy-policy/" target="_blank">\n Privacy Policy</a>.\n </li>\n</ul>';var j=e("verdocs_sign",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError");this.envelopeLoaded=i(this,"envelopeLoaded");this.envelopeUpdated=i(this,"envelopeUpdated");this.endpoint=z;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=q;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.kbaQuestions=null;this.showSpinner=false;this.declining=false;this.delegating=false;this.delegated=false;this.kbaChoices=[];this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){if(!this.endpoint){console.log("[SIGN] Creating signing endpoint");this.endpoint=new o({sessionType:"signing"})}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,s,r,o,l;return __generator(this,(function(c){switch(c.label){case 0:if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new E("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new E("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new E("[SIGN] Missing required inviteCode",500,""));return[2]}c.label=1;case 1:c.trys.push([1,3,,4]);console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,a(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 2:o=c.sent();this.processAuthResponse(o);return[3,4];case 3:l=c.sent();console.log("[SIGN] Error with signing session",l);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new E(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(r=l.response)===null||r===void 0?void 0:r.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}};e.prototype.processAuthResponse=function(e){var t,i,n;var s=e.envelope,r=e.recipient;var o=r.auth_step;this.recipient=r;this.envelope=s;this.disclosures=((i=(t=this.envelope)===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.disclaimer)||q;this.authStep=o;this.delegated=!!r.delegated_to;this.agreed=r.agreed;this.submitted=r.status==="submitted";this.isDone=this.submitted;this.showDone=this.submitted;U.updateEnvelope(this.envelopeId,s);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=r.auth_method_states||{};this.kbaQuestions=r.kba_questions;if(Object.values(this.authMethodStates).includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(r.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(n=this.envelopeLoaded)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);l(this.endpoint,this.envelopeId,this.roleId,this.disclosures).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,s;console.log("[SIGN] Unable to accept disclosures",t);T("Unable to accept disclosures, please try again later",{style:"error"});e.submitting=false;(i=e.sdkError)===null||i===void 0?void 0:i.emit(new E(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(s=t.response)===null||s===void 0?void 0:s.data))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,s;return __generator(this,(function(r){switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":{s=this.envelope.documents.find((function(e){return e.type==="attachment"}));if(s){I(this.endpoint,this.envelope,s.id).catch((function(e){T("Unable to download PDF, please try again later",{style:"error"});console.log("[SIGN] Error downloading PDF",e)}));(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})}}break}return[2]}))}))};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=t.value;n.settings=t.settings;G(n);i.checkRecipientFields()}}))};e.prototype.saveFieldChange=function(e,t){var i=this;console.log("[SIGN] saveFieldChange",e,t);c(this.endpoint,this.envelopeId,e,t).then((function(t){return i.updateRecipientFieldValue(e,t)})).catch((function(e){var t,n,s,r,o,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((s=(n=e.response)===null||n===void 0?void 0:n.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");i.fatalErrorHeader="Signing Session Expired";i.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);T("Unable to save change, please try again later",{style:"error"})}(r=i.sdkError)===null||r===void 0?void 0:r.emit(new E(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return __awaiter(this,void 0,void 0,(function(){var i,n,s,r,o,a,l;var c=this;return __generator(this,(function(p){switch(p.label){case 0:i=t.target,n=i.value,s=i.checked;r=e.type;switch(r){case"textarea":return[3,1];case"textbox":return[3,1];case"checkbox":return[3,2];case"radio":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,8];case"date":return[3,11];case"timestamp":return[3,12]}return[3,13];case 1:return[2,this.saveFieldChange(e.name,{prepared:false,value:n})];case 2:{return[2,this.saveFieldChange(e.name,{prepared:false,value:String(t.target.checked)})]}p.label=3;case 3:{return[2,this.saveFieldChange(e.name,{prepared:false,value:String(t.target.checked)})]}p.label=4;case 4:console.log("Saving dropdown",e.name,t.detail);return[2,this.saveFieldChange(e.name,{prepared:false,value:t.detail})];case 5:if(!t.detail){return[2]}this.showSpinner=true;return[4,fetch(t.detail)];case 6:return[4,p.sent().blob()];case 7:o=p.sent();return[2,h(this.endpoint,"initial",o).then((function(t){return __awaiter(c,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,f(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);T("Unable to save initials, please try again later",{style:"error"});c.showSpinner=false}))];case 8:if(!t.detail){return[2]}this.showSpinner=true;return[4,fetch(t.detail)];case 9:return[4,p.sent().blob()];case 10:a=p.sent();return[2,d(this.endpoint,"signature",a).then((function(t){return __awaiter(c,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",t);return[4,u(this.endpoint,this.envelopeId,e.name,t.id)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);T("Unable to save signature, please try again later",{style:"error"});c.showSpinner=false}))];case 11:l=t.detail.formattedDate;if(l){return[2,this.saveFieldChange(e.name,{prepared:false,value:l})]}return[3,14];case 12:console.log("[SIGN] Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,14];case 13:console.log("[SIGN] Unhandled field update",{value:n,checked:s},e);return[3,14];case 14:return[2]}}))}))};e.prototype.isFieldFilled=function(e){var t=e.value,i=t===void 0?"":t;switch(e.type){case"textarea":case"textbox":switch(e.validator||""){case"email":return v(i);case"phone":return p(i);default:return(i||"").trim()!==""}case"signature":return i==="signed";case"initial":return i==="initialed";case"timestamp":return true;case"date":return!!i;case"attachment":return i==="attached";case"dropdown":return i!=="";case"checkbox":return i==="true";case"radio":if(!!e.group){return this.getRecipientFields().filter((function(t){return t.group===e.group})).some((function(e){return e.value==="true"}))}return e.value==="true";default:return false}};e.prototype.isFieldValid=function(e){return!e.required||this.isFieldFilled(e)};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));g(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,s,r,o,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!this.nextSubmits)return[3,5];u.label=1;case 1:u.trys.push([1,3,,4]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;return[4,x(this.endpoint,this.envelopeId,this.roleId)];case 2:t=u.sent();console.log("[SIGN] Submitted successfully",t);window.location.reload();return[3,4];case 3:i=u.sent();console.log("[SIGN] Error submitting",i);return[3,4];case 4:return[2];case 5:n=this.getSortedFillableFields().filter((function(e){return e.required&&!d.isFieldFilled(e)}));g(n);s=n.findIndex((function(e){return e.name===d.focusedField}));r=s+1;if(r>=n.length){r=0}o=n[r];a=0;if(a<n.length&&["signature","initial"].includes(o.type)&&["initialed","signed"].includes(o.value)){a++;r++;if(r>=n.length){r=0}o=n[r]}if(a>=n.length){o=null}if(o){l=D(o);c=document.getElementById(l);c===null||c===void 0?void 0:c.scrollIntoView({behavior:"smooth"});c===null||c===void 0?void 0:c.focusField();this.focusedField=o.name}return[2]}}))}))};e.prototype.getRecipientFields=function(){var e=this;return this.envelope.fields.filter((function(t){return t.role_name===e.recipient.role_name}))};e.prototype.checkRecipientFields=function(){var e=this;var t=this.getRecipientFields().filter((function(t){return!e.isFieldValid(t)}));if(t.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}};e.prototype.attachFieldAttributes=function(e,t,i){var n=this;if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));i.addEventListener("attached",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,s,r;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,m(this.endpoint,this.envelopeId,t.name,i.detail)];case 2:n=o.sent();this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();s=P("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,s);this.showSpinner=false;return[3,4];case 3:r=o.sent();console.log("Error uploading attachment",r);T("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("deleted",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,s,r;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,b(this.endpoint,this.envelopeId,t.name)];case 2:n=o.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();s=P("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,s);this.showSpinner=false;return[3,4];case 3:r=o.sent();console.log("Error uploading attachment",r);T("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("focusout",(function(e){if(t.type!=="dropdown"&&t.type!=="attachment"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}}));i.addEventListener("fieldChange",(function(e){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}));i.setAttribute("templateid",this.envelope.template_id);i.setAttribute("fieldname",t.name);i.setAttribute("page",e.pageNumber);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);var s=y(this.recipient);i.setAttribute("initials",w(s));i.setAttribute("name",s)};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;var n=this.getSortedFillableFields();console.log("[SIGN] Rendering fields for page",i.pageNumber,n);n.forEach((function(e,n){if(e.page!==i.pageNumber){return}var s=P("envelope",e,i,{disabled:false,editable:false,draggable:false,done:t.isDone},n);if(!s){return}if(Array.isArray(s)){s.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,s)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){t.getRecipientFields().filter((function(e){return e.page===i.pageNumber})).forEach((function(e){var n=P("envelope",e,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,n)}}))}));this.checkRecipientFields()};e.prototype.handleAuthenticateSigner=function(e){var t=this;console.log("[SIGN] Submitting authentication step",e);k(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);t.processAuthResponse(e)})).catch((function(e){var i,n,s,r,o;console.log("[SIGN] Error submitting authentication step",e);if((s=(n=(i=e.response)===null||i===void 0?void 0:i.data)===null||n===void 0?void 0:n.error)===null||s===void 0?void 0:s.includes("failed")){t.fatalErrorHeader="Recipient Verification Failed";t.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";t.isDone=true}else{T(((o=(r=e.response)===null||r===void 0?void 0:r.data)===null||o===void 0?void 0:o.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.render=function(){var e=this;if(this.showLoadError){return n(s,null,n("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:"Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.",buttonLabel:"OK",onNext:function(){window.location.reload()}}))}if(!this.envelope){return n(s,null,n("verdocs-loader",null))}if(this.fatalErrorMessage){return n(s,{class:{agreed:this.agreed}},n("div",{class:"fatal-error"},n("div",{class:"message"},n("div",{class:"header"},this.fatalErrorHeader),n("p",null,this.fatalErrorMessage))))}if(this.delegated){return n(s,{class:{agreed:false}},n("div",{class:"fatal-error"},n("div",{class:"message"},n("div",{class:"header"},"Delegated Signing Request"),n("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return n(s,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.detail)}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(t){t.preventDefault();t.stopPropagation();e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}if(this.delegating){return n(s,{class:"agreed"},n("div",{class:"document",style:{paddingTop:"15px"}},n("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"})),n("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:function(){return e.delegating=false},onNext:function(t){S(e.endpoint,e.envelopeId,e.roleId,t.detail).then((function(t){T("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",t);e.delegated=true;e.delegating=false})).catch((function(e){console.log("[SIGN] Error delegating request",e);T("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return n("verdocs-ok-dialog",{heading:"Decline Signing Request",message:"If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.",buttonLabel:"OK",showCancel:true,onExit:function(){return e.declining=false},onNext:function(){_(e.endpoint,e.envelopeId,e.roleId).then((function(e){console.log("[SIGN] Decline result",e);window.location.reload()})).catch((function(e){console.warn("[SIGN] Error declining signing session",e);T("Unable to decline, please try again later",{style:"error"})}))}})}if(!this.agreed){return n(s,{class:"agreed"},n("div",{class:"document",style:{paddingTop:"15px"}},n("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"})),n("verdocs-disclosure-dialog",{disclosures:this.disclosures,onDelegate:function(){return e.delegating=true},onDecline:function(){return e.declining=true},onAccept:function(){return e.handleClickAgree()}}))}if(this.authStep==="passcode"){return n(s,{class:"kba"},n("div",{id:"verdocs-sign-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))),n("div",{class:"document",style:{paddingTop:"15px"}},n("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"})),n("div",{class:"cover"},n("div",{class:"kba"},n("verdocs-kba-dialog",{mode:"text",step:1,steps:1,placeholder:"Enter your passcode...",helptitle:"Document is protected by a Passcode",helptext:"Please enter your Passcode to proceed. If you do not have one, please contact the sender.",label:"Passcode",onNext:function(t){return e.handleAuthenticateSigner({auth_method:"passcode",code:t.detail})}}))))}if(this.authStep==="email"){return n("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return n(s,{class:"kba"},n("div",{id:"verdocs-sign-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))),n("div",{class:"document",style:{paddingTop:"15px"}},n("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"})),n("div",{class:"cover"},n("div",{class:"kba"},n("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:e.first_name,last_name:e.last_name,address:e.address,city:e.city,state:e.state,zip:e.zip,dob:e.dob});return[2]}))}))}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){var t=this.kbaChoices.length;var i=this.kbaQuestions[t];return n(s,{class:"kba"},n("div",{id:"verdocs-sign-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))),n("div",{class:"document",style:{paddingTop:"15px"}},n("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"})),n("div",{class:"cover"},n("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?n("verdocs-spinner",null):n("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(i===null||i===void 0?void 0:i.prompt)||"Please select one of the options below.",choices:(i===null||i===void 0?void 0:i.answer)||["Skip Question"],step:t+1,steps:this.kbaQuestions.length,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i;var n=this;return __generator(this,(function(s){e=t.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){i=this.kbaQuestions.map((function(e,t){return{type:e.type,answer:n.kbaChoices[t]}}));console.log("Submitting KBA responses",this.kbaChoices,i);this.handleAuthenticateSigner({auth_method:"kba",responses:i})}return[2]}))}))}}))))}var o=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var a=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){o.unshift({id:"delegate",label:"Delegate"})}var l=this.getRecipientFields().filter((function(t){return!e.isFieldValid(t)}));l.length>0?console.log("[SIGN] Invalid fields remaining",l.map((function(e){return e.name}))):console.log("[SIGN] All field valid");return n(s,null,n("div",{id:"verdocs-sign-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),n("div",{style:{flex:"1"}}),!this.finishLater&&n("verdocs-button",{size:"xsmall",label:this.nextButtonLabel,disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?o:a,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),n("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((function(t){var i=N(1,t.pages);return n(r,null,i.map((function(i){var s;var r=((s=t.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return n("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:r.width,virtualHeight:r.height,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&n("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){return e.showFinishLater=false}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),(this.submitting||this.showSpinner)&&n("verdocs-portal",null,n("div",{class:"spinner-overlay"},n("verdocs-spinner",null))))};return e}());j.style=A}}}));
2
+ //# sourceMappingURL=p-6658ff38.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsSignCss","DEFAULT_DISCLOSURES","VerdocsSign","exports","class_1","hostRef","this","endpoint","DefaultEndpoint","envelopeId","roleId","inviteCode","headerTargetId","recipient","hasSignature","nextButtonLabel","nextSubmits","fatalErrorHeader","fatalErrorMessage","focusedField","disclosures","submitting","submitted","isDone","showDone","showLoadError","finishLater","showFinishLater","agreed","documentsSingularPlural","authStep","authMethodStates","kbaQuestions","showSpinner","declining","delegating","delegated","kbaChoices","loading","envelope","prototype","componentWillLoad","console","log","VerdocsEndpoint","sessionType","componentDidLoad","_a","sdkError","emit","SDKError","_b","_c","concat","startSigningSession","response","_g","sent","processAuthResponse","e_1","_d","message","_e","status","_f","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","auth_step","organization","disclaimer","delegated_to","Store","updateEnvelope","documents","length","auth_method_states","kba_questions","Object","values","includes","checkRecipientFields","envelopeLoaded","handleClickAgree","_this","envelopeRecipientAgree","then","envelopeUpdated","event","catch","e","VerdocsToast","style","handleOptionSelected","detail","id","window","print","firstDoc","find","doc","type","saveAttachment","updateRecipientFieldValue","fieldName","updateResult","getRecipientFields","forEach","oldField","name","value","settings","updateDocumentFieldValue","saveFieldChange","fields","updateEnvelopeField","error","handleFieldChange","field","target","checked","_h","prepared","String","fetch","_j","blob","initialsBlob","createInitials","newInitials","__awaiter","updateEnvelopeFieldInitials","signatureBlob","createSignature","newSignature","updateEnvelopeFieldSignature","warn","formattedDate","ts","getAttribute","isFieldFilled","validator","isValidEmail","isValidPhone","trim","group","filter","f","some","isFieldValid","required","getSortedFillableFields","recipientFields","sortFields","handleNext","envelopeRecipientSubmit","result","location","reload","e_2","emptyFields","focusedIndex","findIndex","nextFocusedIndex","nextRequiredField","skips","getFieldId","el","scrollIntoView","behavior","focusField","role_name","invalidFields","attachFieldAttributes","pageInfo","setAttribute","addEventListener","finally","uploadEnvelopeFieldAttachment","newEl","renderDocumentField","disabled","editable","draggable","done","e_3","deleteEnvelopeFieldAttachment","e_4","template_id","pageNumber","xScale","yScale","fullName","formatFullName","fullNameToInitials","handlePageRendered","tabIndex","page","Array","isArray","map","recipients","r","handleAuthenticateSigner","params","verifySigner","render","h","Host","heading","buttonLabel","onNext","class","onSdkError","preventDefault","stopPropagation","paddingTop","src","width","height","boxShadow","marginTop","alt","onExit","delegateRecipient","showCancel","envelopeRecipientDecline","onDelegate","onDecline","onAccept","mode","step","steps","placeholder","helptitle","helptext","label","auth_method","code","method","kba","recipDetails","first_name","last_name","address","city","state","zip","dob","questionNumber","kbaQuestion","prompt","choices","answer","__spreadArray","responses","q","i","inProgressMenuOptions","doneMenuOptions","delegator","unshift","flex","size","onClick","marginLeft","options","onOptionSelected","envelopeDocument","pageNumbers","integerSequence","pages","Fragment","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/embeds/verdocs-sign/verdocs-sign.scss?tag=verdocs-sign","src/components/embeds/verdocs-sign/verdocs-sign.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-sign {\n display: flex;\n overflow: hidden;\n position: relative;\n min-height: 600px;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div {\n display: block;\n box-sizing: border-box;\n }\n\n input {\n vertical-align: top;\n }\n\n //.intro {\n // width: 100%;\n // display: flex;\n // flex: 0 0 60px;\n // color: #111111;\n // font-size: 18px;\n // font-weight: 500;\n // line-height: 28px;\n // flex-direction: row;\n // background: #ffffff;\n //\n // .inner {\n // width: 100%;\n // display: flex;\n // margin: 0 auto;\n // padding: 0 20px;\n // max-width: 1200px;\n // flex-direction: row;\n // align-items: center;\n // }\n //}\n\n > .document {\n flex: 1;\n width: 100%;\n height: 100%;\n align-self: center;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n max-width: 1200px;\n min-height: 200px;\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 .cover {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 5000;\n position: absolute;\n padding-top: 100px;\n align-items: center;\n flex-direction: column;\n background: rgba(0, 0, 0, 0.5);\n }\n\n verdocs-ok-dialog .background-overlay {\n align-items: flex-start;\n padding-top: 100px;\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 .fatal-error {\n position: absolute;\n z-index: 100;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #4a4a4a;\n display: flex;\n align-items: center;\n justify-content: center;\n\n .placeholder {\n position: absolute;\n opacity: 0.1;\n z-index: -1;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 612px;\n height: 792px;\n box-shadow: 0 0 10px 5px #0000000f;\n margin-top: 15px;\n }\n\n .message {\n max-width: 360px;\n width: 50%;\n font-size: 16px;\n background: white;\n box-shadow: 3px 3px 9px -1px #0000003f;\n }\n\n .header {\n color: white;\n font-size: 18px;\n font-weight: 500;\n padding: 5px 10px;\n margin: 0 0 10px 0;\n background: $verdocs-purple-shade;\n }\n\n p {\n margin: 1rem;\n font-size: 14px;\n font-weight: 400;\n padding: 0 10px;\n }\n }\n}\n\n@media print {\n verdocs-sign .header {\n display: none;\n }\n}\n\n#verdocs-sign-header {\n color: #fff;\n width: 100%;\n display: flex;\n z-index: 1000;\n flex: 0 0 46px;\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 .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 12px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\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 padding: 0 10px 0 0;\n text-overflow: ellipsis;\n }\n}\n\n.spinner-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n}\n","import {Event, EventEmitter, Host, Fragment, Component, Prop, State, h} from '@stencil/core';\nimport {integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials} from '@verdocs/js-sdk';\nimport {verifySigner, IEnvelope, IEnvelopeField, IRecipient, TAuthenticateRecipientRequest} from '@verdocs/js-sdk';\nimport {fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, formatFullName} from '@verdocs/js-sdk';\nimport {updateEnvelopeField, sortFields, IKBAQuestion, ISignerTokenResponse, delegateRecipient} from '@verdocs/js-sdk';\nimport {updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, TRecipientAuthMethod} from '@verdocs/js-sdk';\nimport {createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit} from '@verdocs/js-sdk';\nimport {getFieldId, renderDocumentField, saveAttachment, updateDocumentFieldValue} from '../../../utils/utils';\nimport {DefaultEndpoint} from '../../../utils/Environment';\nimport {IDocumentPageInfo} from '../../../utils/Types';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst DEFAULT_DISCLOSURES = `\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>`;\n\n/**\n * Display an envelope signing experience. This will display the envelope's attached\n * documents with signing fields overlaid on each page.\n *\n * The component will attempt to initiate a signing session and load the specified\n * envelope. If successful, the recipient's fields will be enabled and the user will\n * be able to sign the envelope's attached documents. If not, an `sdkError` will be\n * thrown and the component will be blank/empty. To provide the best user experience,\n * applications should capture and handle this error to provide the user with\n * instructions/options for next steps based on the application's design and workflow.\n *\n * Unlike other components, this will always create its own endpoint to manage the\n * session session. This endpoint will be included in event callbacks for the\n * convenience of host applications that may wish to make server calls using the\n * signer's credentials once signing is complete (e.g. to obtain copies of\n * the signed attachments.)\n *\n * ```ts\n * <verdocs-sign\n * envelopeId={ENVELOPE_ID}\n * roleId={ROLE_ID}\n * inviteCode={INVITE_CODE}\n * envelopeUpdated={({ detail }) => console.log('Envelope updated state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-sign',\n styleUrl: 'verdocs-sign.scss',\n shadow: false,\n})\nexport class VerdocsSign {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop({mutable: true}) endpoint: VerdocsEndpoint = DefaultEndpoint;\n\n /**\n * The ID of the envelope to sign.\n */\n @Prop({reflect: true}) envelopeId: string | null = null;\n\n /**\n * The ID of the role that will be signing e.g. 'Recipient 1'\n */\n @Prop({reflect: true}) roleId: string | null = null;\n\n /**\n * The invite code for the signer.\n */\n @Prop({reflect: true}) inviteCode: string | null = null;\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 loaded for the first time.\n */\n @Event({composed: true}) envelopeLoaded: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the envelope is updated in any way.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n // @State() roleNames: string[] = [];\n // @State() sortedRecipients: IRecipient[] = [];\n @State() recipient: IRecipient | null = null;\n @State() hasSignature = false;\n @State() nextButtonLabel = 'Start';\n @State() nextSubmits = false;\n @State() fatalErrorHeader = '';\n @State() fatalErrorMessage = '';\n @State() focusedField = '';\n @State() disclosures = DEFAULT_DISCLOSURES;\n @State() submitting = false;\n @State() submitted = false;\n @State() isDone = false;\n @State() showDone = false;\n @State() showLoadError = false;\n @State() finishLater = false;\n @State() showFinishLater = false;\n @State() agreed = false;\n @State() documentsSingularPlural = 'document';\n @State() authStep: string | null = null;\n @State() authMethodStates: Partial<Record<TRecipientAuthMethod, string>> = {};\n @State() kbaQuestions: IKBAQuestion[] | null = null;\n @State() showSpinner = false;\n @State() declining = false;\n @State() delegating = false;\n @State() delegated = false;\n @State() kbaChoices = [];\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n // recipientIndex: number = -1;\n\n componentWillLoad() {\n if (!this.endpoint) {\n console.log('[SIGN] Creating signing endpoint');\n this.endpoint = new VerdocsEndpoint({sessionType: 'signing'});\n }\n }\n\n async componentDidLoad() {\n if (!this.envelopeId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required envelopId', 500, ''));\n return;\n }\n\n if (!this.roleId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required roleId', 500, ''));\n return;\n }\n\n if (!this.inviteCode) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required inviteCode', 500, ''));\n return;\n }\n\n try {\n console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);\n\n // NOTE: We don't listen to the store here because we are often an independent\n // session and might have a different \"view\" of the envelope.\n const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);\n this.processAuthResponse(response);\n } catch (e) {\n console.log('[SIGN] Error with signing session', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n this.showLoadError = true;\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-sign-header');\n if (headerTarget && headerEl) {\n console.log('[SIGN] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n processAuthResponse(response: ISignerTokenResponse) {\n const {envelope, recipient} = response;\n const {auth_step} = recipient;\n this.recipient = recipient;\n this.envelope = envelope;\n this.disclosures = this.envelope?.organization?.disclaimer || DEFAULT_DISCLOSURES;\n this.authStep = auth_step;\n this.delegated = !!recipient.delegated_to;\n this.agreed = recipient.agreed;\n this.submitted = recipient.status === 'submitted';\n this.isDone = this.submitted;\n this.showDone = this.submitted;\n Store.updateEnvelope(this.envelopeId, envelope);\n\n if (this.envelope.documents.length > 0) {\n this.documentsSingularPlural = 'document(s)';\n }\n\n this.authMethodStates = recipient.auth_method_states || ({} as Record<TRecipientAuthMethod, string>);\n this.kbaQuestions = recipient.kba_questions;\n if (Object.values(this.authMethodStates).includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n }\n\n // TODO: Envelope \"complete\" | \"declined\" | \"canceled\"\n // TODO: Recipient \"canceled\"\n\n if (this.envelope.status === 'canceled') {\n this.fatalErrorHeader = 'Unable to Start Signing Session';\n this.fatalErrorMessage = 'This envelope has been canceled. The sender has been notified.';\n } else if (recipient.status === 'declined') {\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';\n } else if (this.agreed) {\n this.nextButtonLabel = 'Next';\n }\n\n this.checkRecipientFields();\n this.envelopeLoaded?.emit({endpoint: this.endpoint, envelope: this.envelope});\n }\n\n handleClickAgree() {\n this.submitting = true;\n console.log('[SIGN] Accepting disclosures', this.disclosures);\n envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, this.disclosures)\n .then(() => {\n this.nextButtonLabel = 'Next';\n this.recipient.agreed = true;\n this.submitting = false;\n this.agreed = true; // The server returns a recipient object but it's not \"deep\" so we track this locally\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'agreed'});\n })\n .catch(e => {\n console.log('[SIGN] Unable to accept disclosures', e);\n VerdocsToast('Unable to accept disclosures, please try again later', {style: 'error'});\n this.submitting = false;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'later':\n this.finishLater = true;\n this.showFinishLater = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'later'});\n break;\n\n case 'delegate':\n this.delegating = true;\n break;\n\n case 'decline':\n this.declining = true;\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':\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n saveAttachment(this.endpoint, this.envelope, firstDoc.id).catch(e => {\n VerdocsToast('Unable to download PDF, please try again later', {style: 'error'});\n console.log('[SIGN] Error downloading PDF', e);\n });\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n }\n }\n break;\n }\n }\n\n updateRecipientFieldValue(fieldName: string, updateResult: any) {\n console.log('[SIGN] updateRecipientFieldValue', fieldName, updateResult);\n this.getRecipientFields().forEach(oldField => {\n if (oldField.name === fieldName) {\n oldField.value = updateResult.value;\n // TODO: Keeping this while attachments still rely on it\n oldField.settings = updateResult.settings;\n updateDocumentFieldValue(oldField);\n this.checkRecipientFields();\n }\n });\n }\n\n saveFieldChange(fieldName: string, fields: Record<string, any>) {\n console.log('[SIGN] saveFieldChange', fieldName, fields);\n updateEnvelopeField(this.endpoint, this.envelopeId, fieldName, fields) //\n .then(updateResult => this.updateRecipientFieldValue(fieldName, updateResult))\n .catch(e => {\n if (e.response?.status === 401 && e.response?.data?.error === 'jwt expired') {\n console.log('[SIGN] Signing session expired');\n this.fatalErrorHeader = 'Signing Session Expired';\n this.fatalErrorMessage = 'Please reload your browser to continue.';\n } else {\n console.log('[SIGN] Server error', e);\n VerdocsToast('Unable to save change, please try again later', {style: 'error'});\n }\n\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleFieldChange(field: IEnvelopeField, e: any) {\n const {value, checked} = e.target;\n\n switch (field.type as any) {\n // TODO: Remove legacy type when no longer needed\n case 'textarea':\n case 'textbox':\n return this.saveFieldChange(field.name, {prepared: false, value});\n\n case 'checkbox': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'radio': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'dropdown':\n // TODO: Set prepared to false server-side.\n console.log('Saving dropdown', field.name, e.detail);\n return this.saveFieldChange(field.name, {prepared: false, value: e.detail});\n\n case 'initial':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const initialsBlob = await (await fetch(e.detail)).blob();\n return createInitials(this.endpoint, 'initial', initialsBlob) //\n .then(async newInitials => {\n const updateResult = await updateEnvelopeFieldInitials(this.endpoint, this.envelopeId, field.name, newInitials.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.log('Error updating initials', e);\n VerdocsToast('Unable to save initials, please try again later', {style: 'error'});\n this.showSpinner = false;\n });\n\n case 'signature':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const signatureBlob = await (await fetch(e.detail)).blob();\n return createSignature(this.endpoint, 'signature', signatureBlob) //\n .then(async newSignature => {\n console.log('Signature update result', newSignature);\n const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.warn('[SIGN] Error updating signature', e);\n VerdocsToast('Unable to save signature, please try again later', {style: 'error'});\n this.showSpinner = false;\n });\n\n case 'date':\n const {formattedDate} = e.detail;\n if (formattedDate) {\n return this.saveFieldChange(field.name, {prepared: false, value: formattedDate});\n }\n break;\n\n case 'timestamp':\n console.log('[SIGN] Updating timestamp', {value, ts: e.target.getAttribute('timestamp')});\n break;\n\n default:\n console.log('[SIGN] Unhandled field update', {value, checked}, field);\n break;\n }\n }\n\n isFieldFilled(field: IEnvelopeField) {\n const {value = ''} = field;\n switch (field.type as any) {\n case 'textarea':\n case 'textbox':\n switch (field.validator || '') {\n case 'email':\n return isValidEmail(value);\n case 'phone':\n return isValidPhone(value);\n default:\n return (value || '').trim() !== '';\n }\n\n case 'signature':\n return value === 'signed';\n\n case 'initial':\n return value === 'initialed';\n\n // Timestamp fields get automatically filled when the envelope is submitted.\n case 'timestamp':\n return true;\n\n case 'date':\n return !!value;\n\n case 'attachment':\n return value === 'attached';\n\n case 'dropdown':\n return value !== '';\n\n case 'checkbox':\n return value === 'true';\n\n case 'radio':\n if (!!field.group) {\n return this.getRecipientFields()\n .filter(f => f.group === field.group)\n .some(field => field.value === 'true');\n }\n\n return field.value === 'true';\n\n default:\n return false;\n }\n }\n\n isFieldValid(field: IEnvelopeField) {\n return !field.required || this.isFieldFilled(field);\n }\n\n getSortedFillableFields() {\n const recipientFields = this.getRecipientFields().filter(field => field.type !== 'timestamp');\n sortFields(recipientFields);\n return recipientFields;\n }\n\n async handleNext() {\n if (this.nextSubmits) {\n try {\n // Patches the date picker to be forcibly removed if still showing during submission\n document.getElementById('air-datepicker-global-container')?.remove();\n\n this.submitting = true;\n const result = await envelopeRecipientSubmit(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Submitted successfully', result);\n // TODO: The \"proper\" way is generating an error from Stencil\n // NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which\n // the new node is to be inserted is not a child of this node.\n window.location.reload();\n // this.recipient.status = 'submitted';\n // this.showDone = true;\n // console.log('[SIGN] Reloading envelope');\n // getEnvelope(this.endpoint, this.envelopeId)\n // .then(envelope => {\n // this.envelope = envelope;\n // // The show-done dialog does this\n // // this.isDone = true;\n // this.submitting = false;\n // })\n // .catch(e => {\n // // this.isDone = true;\n // console.log('[SIGN] Error reloading envelope', e);\n // VerdocsToast('Unable to save changes, please try again later', {style: 'error'});\n // this.submitting = false;\n // });\n } catch (e) {\n console.log('[SIGN] Error submitting', e);\n }\n\n return;\n }\n\n // Find and focus the next incomplete field (that is fillable)\n const emptyFields = this.getSortedFillableFields().filter(field => field.required && !this.isFieldFilled(field));\n sortFields(emptyFields);\n\n const focusedIndex = emptyFields.findIndex(field => field.name === this.focusedField);\n let nextFocusedIndex = focusedIndex + 1;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n\n let nextRequiredField = emptyFields[nextFocusedIndex];\n // console.log('Next field', nextRequiredField, emptyFields);\n\n // Skip signature and initial fields that are already filled in. We have to count our \"skips\" just in case, to avoid infinite loops.\n let skips = 0;\n if (skips < emptyFields.length && ['signature', 'initial'].includes(nextRequiredField.type) && ['initialed', 'signed'].includes(nextRequiredField.value)) {\n skips++;\n nextFocusedIndex++;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n nextRequiredField = emptyFields[nextFocusedIndex];\n }\n\n if (skips >= emptyFields.length) {\n nextRequiredField = null;\n }\n\n if (nextRequiredField) {\n const id = getFieldId(nextRequiredField);\n const el = document.getElementById(id) as any;\n el?.scrollIntoView({behavior: 'smooth'});\n el?.focusField();\n this.focusedField = nextRequiredField.name;\n }\n }\n\n getRecipientFields() {\n return this.envelope.fields.filter(field => field.role_name === this.recipient.role_name);\n }\n\n // See if everything that \"needs to be\" filled in is, and all \"fillable fields\" are valid\n checkRecipientFields() {\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n if (invalidFields.length < 1) {\n this.nextButtonLabel = 'Finish';\n if (!this.nextSubmits) {\n this.nextSubmits = true;\n }\n } else {\n this.nextButtonLabel = 'Next';\n this.nextSubmits = false;\n }\n }\n\n attachFieldAttributes(pageInfo, field, el) {\n // We can get called multiple times as rendering completes and it's hard to avoid that\n // because it's a ton of work for the callers to know it's been done already. But we\n // don't want to attach multiple event listeners or we get dupe event handling, like\n // calling the server twice on every field update. Since JS has no removeAllEventListeners()\n // option, using removeEventListener() isn't reliable the way Stencil binds local function\n // contexts, and cloneNode messes up the rest of the rendering, we just track it with a flag.\n if (el.getAttribute('attached') === '1') {\n return;\n }\n el.setAttribute('attached', '1');\n\n el.addEventListener('input', (e: any) => {\n // console.log('[SIGN] onfieldInput', e.detail, e.target.value);\n // These field types don't emit fieldChange. Should we standardize on that? We don't tap \"input\" for fields like\n // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.\n if (e.target.type === 'radio' || e.target.type === 'checkbox') {\n // if (e.target.type === 'radio' || e.target.name.includes('date') || e.target.name.includes('checkbox')) {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n } else {\n this.checkRecipientFields();\n }\n });\n el.addEventListener('attached', async (e: any) => {\n console.log('[SIGN] onAttached', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name, e.detail);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('deleted', async (e: any) => {\n console.log('[SIGN] onDeleted', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await deleteEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name);\n console.log('[SIGN] Deleted attachment', updateResult);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('focusout', e => {\n // These field types trigger focusout as they're used, even without a value change\n if (field.type !== 'dropdown' && field.type !== 'attachment') {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n }\n });\n el.addEventListener('fieldChange', e => {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n });\n\n el.setAttribute('templateid', this.envelope.template_id);\n el.setAttribute('fieldname', field.name);\n el.setAttribute('page', pageInfo.pageNumber);\n el.setAttribute('xScale', pageInfo.xScale);\n el.setAttribute('yScale', pageInfo.yScale);\n\n const fullName = formatFullName(this.recipient);\n el.setAttribute('initials', fullNameToInitials(fullName));\n el.setAttribute('name', fullName);\n }\n\n handlePageRendered(e: any) {\n const pageInfo = e.detail as IDocumentPageInfo;\n\n // NOTE: We don't filter on pageNumber here because we need the position in the\n // entire list to set the tabIndex.\n const recipientFields = this.getSortedFillableFields();\n console.log('[SIGN] Rendering fields for page', pageInfo.pageNumber, recipientFields);\n\n // First render the fields for the signer\n recipientFields.forEach((field, tabIndex) => {\n if (field.page !== pageInfo.pageNumber) {\n return;\n }\n\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone}, tabIndex);\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n\n // Now render the fields for other signers who have yet to act\n this.envelope.recipients\n .filter(r => r.role_name !== this.recipient.role_name && (r.status === 'invited' || r.status === 'opened' || r.status === 'pending'))\n .forEach(() => {\n this.getRecipientFields()\n .filter(field => field.page === pageInfo.pageNumber)\n .forEach(field => {\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: true, editable: false, draggable: false, done: this.isDone});\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n });\n\n this.checkRecipientFields();\n }\n\n handleAuthenticateSigner(params: TAuthenticateRecipientRequest) {\n console.log('[SIGN] Submitting authentication step', params);\n verifySigner(this.endpoint, params)\n .then(r => {\n console.log('[SIGN] Verification successful', r);\n this.processAuthResponse(r);\n })\n .catch(e => {\n console.log('[SIGN] Error submitting authentication step', e);\n if (e.response?.data?.error?.includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n } else {\n VerdocsToast(e.response?.data?.error || 'Unable to verify your identity. Please try again.', {style: 'error'});\n }\n });\n }\n\n render() {\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to Start Signing\"\n message={`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`}\n buttonLabel=\"OK\"\n onNext={() => {\n window.location.reload();\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.fatalErrorMessage) {\n return (\n <Host class={{agreed: this.agreed}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">{this.fatalErrorHeader}</div>\n <p>{this.fatalErrorMessage}</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.delegated) {\n return (\n <Host class={{agreed: false}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">Delegated Signing Request</div>\n <p>You have delegated signing to another recipient. You will not be able to sign this request again.</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.isDone) {\n return (\n <Host class={{agreed: this.agreed}}>\n <verdocs-view endpoint={this.endpoint} envelopeId={this.envelopeId} onSdkError={e => this.sdkError?.emit(e.detail)} />\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={(e: any) => {\n e.preventDefault();\n e.stopPropagation();\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n\n if (this.delegating) {\n return (\n <Host class=\"agreed\">\n <div class=\"document\" style={{paddingTop: '15px'}}>\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 </div>\n\n <verdocs-delegate-dialog\n endpoint={this.endpoint}\n envelope={this.envelope}\n onExit={() => (this.delegating = false)}\n onNext={(e: any) => {\n delegateRecipient(this.endpoint, this.envelopeId, this.roleId, e.detail)\n .then(r => {\n VerdocsToast('Delegation request submitted.', {style: 'success'});\n console.log('[SIGN] Delegated successfully', r);\n this.delegated = true;\n this.delegating = false;\n })\n .catch(e => {\n console.log('[SIGN] Error delegating request', e);\n VerdocsToast('Unable to process delegation request. Please try again later.', {style: 'error'});\n });\n }}\n />\n </Host>\n );\n }\n\n if (this.declining) {\n return (\n <verdocs-ok-dialog\n heading=\"Decline Signing Request\"\n message={`If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.`}\n buttonLabel=\"OK\"\n showCancel={true}\n onExit={() => (this.declining = false)}\n onNext={() => {\n envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId)\n .then(r => {\n console.log('[SIGN] Decline result', r);\n window.location.reload();\n })\n .catch(e => {\n console.warn('[SIGN] Error declining signing session', e);\n VerdocsToast('Unable to decline, please try again later', {style: 'error'});\n });\n }}\n />\n );\n }\n\n if (!this.agreed) {\n return (\n <Host class=\"agreed\">\n <div class=\"document\" style={{paddingTop: '15px'}}>\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 </div>\n\n <verdocs-disclosure-dialog\n disclosures={this.disclosures}\n onDelegate={() => (this.delegating = true)}\n onDecline={() => (this.declining = true)}\n onAccept={() => this.handleClickAgree()}\n />\n </Host>\n );\n }\n\n if (this.authStep === 'passcode') {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-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>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\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 </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"text\"\n step={1}\n steps={1}\n placeholder=\"Enter your passcode...\"\n helptitle=\"Document is protected by a Passcode\"\n helptext=\"Please enter your Passcode to proceed. If you do not have one, please contact the sender.\"\n label=\"Passcode\"\n onNext={e => this.handleAuthenticateSigner({auth_method: 'passcode', code: e.detail as string})}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'email') {\n return (\n <verdocs-otp-dialog\n endpoint={this.endpoint}\n method=\"email\"\n onNext={async e => {\n this.processAuthResponse(e.detail.response);\n }}\n />\n );\n }\n\n if (this.authStep === 'kba' && !this.authMethodStates.kba) {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-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>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\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 </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"identity\"\n helptitle=\"Document requires identity verification\"\n helptext=\"Please complete your contact details to proceed.\"\n recipient={this.recipient}\n onNext={async e => {\n const recipDetails = e.detail as IRecipient;\n this.handleAuthenticateSigner({\n auth_method: 'kba',\n first_name: recipDetails.first_name,\n last_name: recipDetails.last_name,\n address: recipDetails.address,\n city: recipDetails.city,\n state: recipDetails.state,\n zip: recipDetails.zip,\n dob: recipDetails.dob,\n });\n }}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'kba' && this.authMethodStates.kba === 'questions') {\n const questionNumber = this.kbaChoices.length;\n const kbaQuestion = this.kbaQuestions[questionNumber];\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-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>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\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 </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n {this.kbaChoices.length >= this.kbaQuestions.length ? (\n <verdocs-spinner />\n ) : (\n <verdocs-kba-dialog\n mode=\"choice\"\n helptitle=\"Your identity requires additional verification\"\n helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}\n choices={kbaQuestion?.answer || ['Skip Question']}\n step={questionNumber + 1}\n steps={this.kbaQuestions.length}\n onNext={async (e: any) => {\n const answer = e.detail as string;\n this.kbaChoices = [...this.kbaChoices, answer];\n if (this.kbaChoices.length >= this.kbaQuestions.length) {\n const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));\n console.log('Submitting KBA responses', this.kbaChoices, responses);\n this.handleAuthenticateSigner({auth_method: 'kba', responses});\n }\n }}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n\n const inProgressMenuOptions = [\n {id: 'later', label: 'Finish Later'}, //\n // {id: 'claim', label: 'Claim the Document', disabled: true},\n {id: 'decline', label: 'Decline to Sign'},\n {id: 'print', label: 'Print Without Signing'},\n {id: 'download', label: 'Download'},\n ];\n\n const doneMenuOptions = [\n {id: 'print', label: 'Print'},\n {id: 'download', label: 'Download'},\n ];\n\n if (this.recipient.delegator) {\n inProgressMenuOptions.unshift({id: 'delegate', label: 'Delegate'});\n }\n\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n invalidFields.length > 0\n ? console.log(\n '[SIGN] Invalid fields remaining',\n invalidFields.map(field => field.name),\n )\n : console.log('[SIGN] All field valid');\n\n return (\n <Host>\n <div id=\"verdocs-sign-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\n {!this.finishLater && <verdocs-button size=\"xsmall\" label={this.nextButtonLabel} disabled={!this.agreed || this.submitting} onClick={() => this.handleNext()} />}\n\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={!this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n {(this.envelope.documents || []).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 // In signing mode we show the original template page with all the recipient fields so we can show source formatting and\n // where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or\n // future signers still need to act. Once we're \"done\" we flip to showing the envelope's documents which have the final\n // field vales (so far) stamped into them.\n // TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure\n // we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.\n // console.log('tp', templatePage, page);\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n type=\"filled\"\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n\n {this.showFinishLater && (\n <verdocs-ok-dialog\n heading=\"You've saved your document to finish later.\"\n message={`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`}\n onNext={() => (this.showFinishLater = false)}\n />\n )}\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={() => {\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {(this.submitting || this.showSpinner) && (\n <verdocs-portal>\n <div class=\"spinner-overlay\">\n <verdocs-spinner />\n </div>\n </verdocs-portal>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"2tFAAA,IAAMA,EAAiB,wtHCcvB,IAAMC,EAAsB,6hB,IAgDfC,EAAWC,EAAA,0BALxB,SAAAC,EAAAC,G,uIASyBC,KAAQC,SAAoBC,EAK5BF,KAAUG,WAAkB,KAK5BH,KAAMI,OAAkB,KAKxBJ,KAAUK,WAAkB,KAW3CL,KAAcM,eAAkB,KAoB/BN,KAASO,UAAsB,KAC/BP,KAAYQ,aAAG,MACfR,KAAeS,gBAAG,QAClBT,KAAWU,YAAG,MACdV,KAAgBW,iBAAG,GACnBX,KAAiBY,kBAAG,GACpBZ,KAAYa,aAAG,GACfb,KAAWc,YAAGnB,EACdK,KAAUe,WAAG,MACbf,KAASgB,UAAG,MACZhB,KAAMiB,OAAG,MACTjB,KAAQkB,SAAG,MACXlB,KAAamB,cAAG,MAChBnB,KAAWoB,YAAG,MACdpB,KAAeqB,gBAAG,MAClBrB,KAAMsB,OAAG,MACTtB,KAAuBuB,wBAAG,WAC1BvB,KAAQwB,SAAkB,KAC1BxB,KAAgByB,iBAAkD,GAClEzB,KAAY0B,aAA0B,KACtC1B,KAAW2B,YAAG,MACd3B,KAAS4B,UAAG,MACZ5B,KAAU6B,WAAG,MACb7B,KAAS8B,UAAG,MACZ9B,KAAU+B,WAAG,GAEb/B,KAAOgC,QAAG,KACVhC,KAAQiC,SAAqB,IAu8BvC,CAn8BCnC,EAAAoC,UAAAC,kBAAA,WACE,IAAKnC,KAAKC,SAA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AAiBG,OAExD,OACEhE,EAACiE,EACE,KAAAH,EAAYrE,KAAI,SAAAX,G,MACf,IAAMoF,IAAWvO,EAAAkO,EAAiBM,cAAU,MAAAxO,SAAA,SAAAA,EAAGmJ,KAAe,CAAC6B,MAAO,IAAKC,OAAQ,KASnF,OACEZ,EACE,kCAAA3M,WAAYgF,EAAKhF,WACjB+Q,WAAYP,EAAiB7K,GAC7B7F,SAAUkF,EAAKlF,SACfkR,aAAcH,EAASvD,MACvB2D,cAAeJ,EAAStD,OACxB9B,WAAYA,EACZyF,eAAgB,SAAA5L,GAAK,OAAAN,EAAK+G,mBAAmBzG,EAAxB,EACrBW,KAAK,SACLkL,OAAQ,CACN,CAAC1K,KAAM,OAAQR,KAAM,UACrB,CAACQ,KAAM,WAAYR,KAAM,S,IAOvC,KAGDpG,KAAKqB,iBACJyL,EACE,qBAAAE,QAAQ,8CACRzJ,QAAS,mBAAAR,OAAmB/C,KAAKuB,wBAAuB,qGACxD2L,OAAQ,kBAAO/H,EAAK9D,gBAAkB,KAA9B,IAIXrB,KAAKkB,UACJ4L,EAAA,qBACEE,QAAQ,eACRzJ,QAAS,sBAAAR,OAAsB/C,KAAKuB,wBAAuB,gNAC3D2L,OAAQ,WACN/H,EAAKjE,SAAW,MAChBiE,EAAKlE,OAAS,IAChB,KAIFjB,KAAKe,YAAcf,KAAK2B,cACxBmL,EAAA,sBACEA,EAAK,OAAAK,MAAM,mBACTL,EAAA,0B,WA7gCU,I","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as s,H as n}from"./p-CF7i8guW.js";import{d as i}from"./p-dzBXqXlK.js";import{VerdocsEndpoint as l,getTemplates as a,deleteTemplate as d,integerSequence as c,canPerformTemplateAction as r}from"@verdocs/js-sdk";import{S as o}from"./p-C1sRVZWv.js";const h='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';const p=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>`;const v=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>`;const m=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>`;const f=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>`;const u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>`;const x=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>`;const g=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>`;const b=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];const w=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];const k=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];const y=class{constructor(s){e(this,s);this.sdkError=t(this,"sdkError");this.viewTemplate=t(this,"viewTemplate");this.signNow=t(this,"signNow");this.submittedData=t(this,"submittedData");this.editTemplate=t(this,"editTemplate");this.templateDeleted=t(this,"templateDeleted");this.changeSort=t(this,"changeSort");this.changeVisibility=t(this,"changeVisibility");this.changeStarred=t(this,"changeStarred");this.changeName=t(this,"changeName");this.endpoint=l.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter="";this.handleOptionSelected=(e,t)=>{var s,n,i,l;if(e==="send"){(s=this.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,template:t})}else if(e==="signnow"){(n=this.signNow)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,template:t})}else if(e==="submitted"){(i=this.submittedData)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,template:t})}else if(e==="edit"){(l=this.editTemplate)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,template:t})}else if(e==="delete"){this.confirmDelete=t}}}handleSharingUpdated(){return this.queryTemplates()}handleStarredUpdated(){return this.queryTemplates()}handleSortUpdated(){return this.queryTemplates()}handleNameUpdated(){return this.queryTemplates()}handlePageUpdated(){return this.queryTemplates()}componentWillLoad(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}}async componentDidLoad(){await this.queryTemplates();this.initiallyLoaded=true}async queryTemplates(){var e,t,s;console.log("[TEMPLATES] Querying templates");this.loading=true;try{let e={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){e.q=this.name.trim()}const t=await a(this.endpoint,e);this.templates=t.templates;this.count=t.count;this.loading=false}catch(n){this.loading=false;console.log("[TEMPLATES] Error listing templates",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new o(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(s=n.response)===null||s===void 0?void 0:s.data))}}deleteTemplate(e){this.confirmDelete=null;d(this.endpoint,e.id).then((()=>{var t;console.log("[TEMPLATES] Deleted template",e);(t=this.templateDeleted)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e});return this.queryTemplates()})).catch((t=>{var s,n,i;console.log("[TEMPLATES] Error deleting template",e);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new o(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(i=t.response)===null||i===void 0?void 0:i.data))}))}render(){const e=!this.localNameFilter?this.templates:this.templates.filter((e=>e.name.toLowerCase().includes(this.localNameFilter.toLowerCase())));return s(n,{key:"413e89687da4869f59f79773dc094ba3b257837c"},s("div",{key:"92cd27b85f2c8829f86628a87c48f00e1fb1cdb0",class:"header"},s("div",{key:"e6455d3c2b0ab61197911eed67ad13b19cf8aac6",class:"filter"},s("verdocs-text-input",{key:"e22da80be6a401da2bb444674f464652d4c96e87",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:e=>this.localNameFilter=e.target.value.trim(),onFocusout:e=>{var t;this.name=e.target.value.trim();this.localNameFilter=e.target.value.trim();(t=this.changeName)===null||t===void 0?void 0:t.emit(this.name)}})),s("verdocs-quick-filter",{key:"af8740dc5f1db25dd5bb45d008abbefedb7ec3df",label:"Visibility",value:this.visibility,options:b,onOptionSelected:e=>{var t;this.visibility=e.detail.value;(t=this.changeVisibility)===null||t===void 0?void 0:t.emit(this.visibility)}}),s("verdocs-quick-filter",{key:"a2f0809f07eda91cae7d9c7d7fbded09f878c1fb",label:"Starred",value:this.starred,options:w,onOptionSelected:e=>{var t;this.starred=e.detail.value;(t=this.changeStarred)===null||t===void 0?void 0:t.emit(this.starred)}}),s("verdocs-quick-filter",{key:"faf2c2d42d2e75c0fc277a4f01d2c745cef771c0",label:"Sort By",value:this.sort,options:k,onOptionSelected:e=>{var t;this.sort=e.detail.value;(t=this.changeSort)===null||t===void 0?void 0:t.emit(this.sort)}}),this.loading&&s("verdocs-spinner",{key:"b4a0a5ffb052490dcad6e1cc30fa19483b7e5f68",mode:"dark",size:24}),s("div",{key:"8c4b7a71c95d67658d7c9f3c35a21c4cec410fff",style:{display:"flex",flex:"1"}})),e.map((e=>{const t=this.sort==="created_at"?"created_at":this.sort==="updated_at"?"updated_at":"last_used_at";const n=e[t];const l=[];const a=[];if(this.allowedActions.includes("send")){l.push({label:"Preview / Send",id:"send",disabled:!r(this.endpoint.profile,"read",e)})}if(this.allowedActions.includes("signnow")){l.push({label:"Sign Now",id:"signnow",disabled:true})}if(this.allowedActions.includes("submitted")){l.push({label:""});l.push({label:"Submissions",id:"submitted",disabled:!r(this.endpoint.profile,"read",e)})}if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:""});if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:"Edit",id:"edit",disabled:!a.includes("write")})}if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:"Delete",id:"delete",disabled:!a.includes("delete")})}}return s("div",{class:"template",onClick:()=>{var t;(t=this.viewTemplate)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e})}},s("div",{class:"inner"},s("verdocs-template-star",{template:e,endpoint:this.endpoint}),s("div",{class:"spacer icon-spacer"}),s("div",{class:"name"},e.name),s("div",{class:"spacer usage-spacer"}),s("div",{class:"usage"},s("span",{innerHTML:f,title:"Usage Counter"}),e.counter||"--"),s("div",{class:"spacer last-used-spacer"}),s("div",{class:"last-used"},t==="created_at"&&s("span",{innerHTML:u,title:"Created"}),t==="updated_at"&&s("span",{innerHTML:g,title:"Last Updated"}),t==="last_used_at"&&s("span",{innerHTML:x,title:"Last Used"}),n?i.format(new Date(n),"P"):"Never"),s("div",{class:"spacer ownership-spacer"}),e.is_public&&s("div",{class:"ownership"},s("span",{innerHTML:p})," Public"),!e.is_public&&!e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:v})," Private"),!e.is_public&&e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:m})," Shared"),s("verdocs-dropdown",{options:l,onOptionSelected:t=>this.handleOptionSelected(t.detail.id,e)})))})),!this.initiallyLoaded&&s("div",{key:"3fc32fc73c74bd4eddb7442364116bc4d40d4f3b"},c(0,this.rowsPerPage).map((()=>s("div",{class:"template-placeholder"})))),this.initiallyLoaded&&!this.templates.length&&s("div",{key:"16e2f578e56b65e45b172205b2c59364c2a40613",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?s("div",{style:{marginTop:"20px"}},s("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):s("div",null),this.confirmDelete&&s("verdocs-ok-dialog",{key:"d06aaa74a605b6b27c1382fba0d899ff6d9b61f5",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:()=>this.deleteTemplate(this.confirmDelete),onExit:()=>this.confirmDelete=null,showCancel:true}))}static get watchers(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}}};y.style=h;export{y as verdocs_templates_list};
2
- //# sourceMappingURL=p-cc823255.entry.js.map
1
+ import{r as e,c as t,h as s,H as n}from"./p-6vpKbd31.js";import{d as i}from"./p-dzBXqXlK.js";import{VerdocsEndpoint as l,getTemplates as a,deleteTemplate as d,integerSequence as c,canPerformTemplateAction as r}from"@verdocs/js-sdk";import{S as o}from"./p-C1sRVZWv.js";const h='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';const p=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>`;const v=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>`;const m=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>`;const f=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>`;const u=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>`;const x=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>`;const g=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>`;const b=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];const w=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];const k=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];const y=class{constructor(s){e(this,s);this.sdkError=t(this,"sdkError");this.viewTemplate=t(this,"viewTemplate");this.signNow=t(this,"signNow");this.submittedData=t(this,"submittedData");this.editTemplate=t(this,"editTemplate");this.templateDeleted=t(this,"templateDeleted");this.changeSort=t(this,"changeSort");this.changeVisibility=t(this,"changeVisibility");this.changeStarred=t(this,"changeStarred");this.changeName=t(this,"changeName");this.endpoint=l.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter="";this.handleOptionSelected=(e,t)=>{var s,n,i,l;if(e==="send"){(s=this.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,template:t})}else if(e==="signnow"){(n=this.signNow)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,template:t})}else if(e==="submitted"){(i=this.submittedData)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,template:t})}else if(e==="edit"){(l=this.editTemplate)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,template:t})}else if(e==="delete"){this.confirmDelete=t}}}handleSharingUpdated(){return this.queryTemplates()}handleStarredUpdated(){return this.queryTemplates()}handleSortUpdated(){return this.queryTemplates()}handleNameUpdated(){return this.queryTemplates()}handlePageUpdated(){return this.queryTemplates()}componentWillLoad(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}}async componentDidLoad(){await this.queryTemplates();this.initiallyLoaded=true}async queryTemplates(){var e,t,s;console.log("[TEMPLATES] Querying templates");this.loading=true;try{let e={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){e.q=this.name.trim()}const t=await a(this.endpoint,e);this.templates=t.templates;this.count=t.count;this.loading=false}catch(n){this.loading=false;console.log("[TEMPLATES] Error listing templates",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new o(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(s=n.response)===null||s===void 0?void 0:s.data))}}deleteTemplate(e){this.confirmDelete=null;d(this.endpoint,e.id).then((()=>{var t;console.log("[TEMPLATES] Deleted template",e);(t=this.templateDeleted)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e});return this.queryTemplates()})).catch((t=>{var s,n,i;console.log("[TEMPLATES] Error deleting template",e);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new o(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(i=t.response)===null||i===void 0?void 0:i.data))}))}render(){const e=!this.localNameFilter?this.templates:this.templates.filter((e=>e.name.toLowerCase().includes(this.localNameFilter.toLowerCase())));return s(n,{key:"413e89687da4869f59f79773dc094ba3b257837c"},s("div",{key:"92cd27b85f2c8829f86628a87c48f00e1fb1cdb0",class:"header"},s("div",{key:"e6455d3c2b0ab61197911eed67ad13b19cf8aac6",class:"filter"},s("verdocs-text-input",{key:"e22da80be6a401da2bb444674f464652d4c96e87",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:e=>this.localNameFilter=e.target.value.trim(),onFocusout:e=>{var t;this.name=e.target.value.trim();this.localNameFilter=e.target.value.trim();(t=this.changeName)===null||t===void 0?void 0:t.emit(this.name)}})),s("verdocs-quick-filter",{key:"af8740dc5f1db25dd5bb45d008abbefedb7ec3df",label:"Visibility",value:this.visibility,options:b,onOptionSelected:e=>{var t;this.visibility=e.detail.value;(t=this.changeVisibility)===null||t===void 0?void 0:t.emit(this.visibility)}}),s("verdocs-quick-filter",{key:"a2f0809f07eda91cae7d9c7d7fbded09f878c1fb",label:"Starred",value:this.starred,options:w,onOptionSelected:e=>{var t;this.starred=e.detail.value;(t=this.changeStarred)===null||t===void 0?void 0:t.emit(this.starred)}}),s("verdocs-quick-filter",{key:"faf2c2d42d2e75c0fc277a4f01d2c745cef771c0",label:"Sort By",value:this.sort,options:k,onOptionSelected:e=>{var t;this.sort=e.detail.value;(t=this.changeSort)===null||t===void 0?void 0:t.emit(this.sort)}}),this.loading&&s("verdocs-spinner",{key:"b4a0a5ffb052490dcad6e1cc30fa19483b7e5f68",mode:"dark",size:24}),s("div",{key:"8c4b7a71c95d67658d7c9f3c35a21c4cec410fff",style:{display:"flex",flex:"1"}})),e.map((e=>{const t=this.sort==="created_at"?"created_at":this.sort==="updated_at"?"updated_at":"last_used_at";const n=e[t];const l=[];const a=[];if(this.allowedActions.includes("send")){l.push({label:"Preview / Send",id:"send",disabled:!r(this.endpoint.profile,"read",e)})}if(this.allowedActions.includes("signnow")){l.push({label:"Sign Now",id:"signnow",disabled:true})}if(this.allowedActions.includes("submitted")){l.push({label:""});l.push({label:"Submissions",id:"submitted",disabled:!r(this.endpoint.profile,"read",e)})}if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:""});if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:"Edit",id:"edit",disabled:!a.includes("write")})}if(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete")){l.push({label:"Delete",id:"delete",disabled:!a.includes("delete")})}}return s("div",{class:"template",onClick:()=>{var t;(t=this.viewTemplate)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:e})}},s("div",{class:"inner"},s("verdocs-template-star",{template:e,endpoint:this.endpoint}),s("div",{class:"spacer icon-spacer"}),s("div",{class:"name"},e.name),s("div",{class:"spacer usage-spacer"}),s("div",{class:"usage"},s("span",{innerHTML:f,title:"Usage Counter"}),e.counter||"--"),s("div",{class:"spacer last-used-spacer"}),s("div",{class:"last-used"},t==="created_at"&&s("span",{innerHTML:u,title:"Created"}),t==="updated_at"&&s("span",{innerHTML:g,title:"Last Updated"}),t==="last_used_at"&&s("span",{innerHTML:x,title:"Last Used"}),n?i.format(new Date(n),"P"):"Never"),s("div",{class:"spacer ownership-spacer"}),e.is_public&&s("div",{class:"ownership"},s("span",{innerHTML:p})," Public"),!e.is_public&&!e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:v})," Private"),!e.is_public&&e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:m})," Shared"),s("verdocs-dropdown",{options:l,onOptionSelected:t=>this.handleOptionSelected(t.detail.id,e)})))})),!this.initiallyLoaded&&s("div",{key:"3fc32fc73c74bd4eddb7442364116bc4d40d4f3b"},c(0,this.rowsPerPage).map((()=>s("div",{class:"template-placeholder"})))),this.initiallyLoaded&&!this.templates.length&&s("div",{key:"16e2f578e56b65e45b172205b2c59364c2a40613",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?s("div",{style:{marginTop:"20px"}},s("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):s("div",null),this.confirmDelete&&s("verdocs-ok-dialog",{key:"d06aaa74a605b6b27c1382fba0d899ff6d9b61f5",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:()=>this.deleteTemplate(this.confirmDelete),onExit:()=>this.confirmDelete=null,showCancel:true}))}static get watchers(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}}};y.style=h;export{y as verdocs_templates_list};
2
+ //# sourceMappingURL=p-6674c680.entry.js.map
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,n){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function i(t){try{s(n.next(t))}catch(t){a(t)}}function c(t){try{s(n["throw"](t))}catch(t){a(t)}}function s(t){t.done?o(t.value):r(t.value).then(i,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return s([t,e])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(o=0)),o)try{if(n=1,r&&(a=c[0]&2?r["return"]:c[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;if(r=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(a=o.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1];a=c;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(c);break}if(a[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-gAi_FRvp.system.js","./p-DzZgjFK8.system.js"],(function(t){"use strict";var e,o,n,r,a;return{setters:[function(t){e=t.r;o=t.h;n=t.H;r=t.c},function(t){a=t.c}],execute:function(){var i='@-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-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}';var c=t("verdocs_button_panel",function(){function t(t){e(this,t);this.icon="";this.showing=false}t.prototype.componentDidRender=function(){document.body.appendChild(this.panelEl);if(this.popperInstance){this.popperInstance.destroy()}this.popperInstance=a(this.iconEl,this.panelEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}if(this.panelEl){this.panelEl.remove()}};t.prototype.showPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var o=this;return __generator(this,(function(n){(t=this.panelEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}));this.showing=true;this.hiderEl=document.createElement("div");this.hiderEl.id="verdocs-button-panel-hider";this.hiderEl.style.zIndex="100";this.hiderEl.style.position="absolute";this.hiderEl.style.top="0px";this.hiderEl.style.left="0px";this.hiderEl.style.right="0px";this.hiderEl.style.bottom="0px";this.hiderEl.onclick=function(t){t.stopPropagation();o.toggle()};document.body.appendChild(this.hiderEl);return[2]}))}))};t.prototype.hidePanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){Array.from(document.getElementsByClassName("verdocs-button-panel-content")).forEach((function(t){t.removeAttribute("data-show")}));(t=document.getElementById("verdocs-button-panel-hider"))===null||t===void 0?void 0:t.remove();this.showing=false;return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.showing)return[3,2];return[4,this.hidePanel()];case 1:t.sent();return[3,4];case 2:return[4,this.showPanel()];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.render=function(){var t=this;return o(n,{key:"c4a19a142c4e228213a78988847a66b9d952ee27"},o("div",{key:"d01b744c644e6ae143aa8654c25a15780189cd98",class:"icon",innerHTML:this.icon,onClick:function(e){e.stopPropagation();return t.toggle()},ref:function(e){return t.iconEl=e}}),o("div",{key:"5bc6a60df0c2e15b7fa4da356130618c540e2ec7",role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:function(e){return t.panelEl=e}},o("div",{key:"024f7c9713c9c57dc04d9cceaa93c7a40cb8eaba","data-popper-arrow":"true",class:"arrow"}),o("slot",{key:"544361c54c163063f4013cc52ea4a12c6baff24b"})))};return t}());c.style=i;var s='@-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-tabs{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-tabs .tab{display:-ms-flexbox;display:flex;color:#111111;cursor:pointer;font-size:14px;font-weight:400;padding:5px 10px;-ms-flex-align:center;align-items:center;text-transform:none;-ms-flex-pack:center;justify-content:center;border-bottom:4px solid transparent}verdocs-tabs .tab:focus{border:none;outline:none}verdocs-tabs .tab.active{color:#000000;font-weight:500;border-bottom:4px solid #654dcb}verdocs-tabs .tab.disabled{color:#aaaaaa;cursor:default}';var d=t("verdocs_tabs",function(){function t(t){e(this,t);this.selectTab=r(this,"selectTab");this.tabs=[];this.selectedTab=0}t.prototype.handleSelectTab=function(t){var e;(e=this.selectTab)===null||e===void 0?void 0:e.emit({tab:this.tabs[t],index:t})};t.prototype.render=function(){var t=this;return o(n,{key:"6de4c126c0d4efe31e925569090af9dd032fae0c"},this.tabs.map((function(e,n){return o("div",{class:"tab ".concat(n===t.selectedTab?"active":""," ").concat(e.disabled?"disabled":""),onClick:e.disabled?function(){}:function(){return t.handleSelectTab(n)}},e.label)})),o("div",{key:"a3aba39b6b1a758ea4ed7a87860108bbe9367565",class:"flex flex-1"}),o("slot",{key:"0bda7a4123dcab3d4aef3e65cadad14bcdba6312"},o("div",{key:"7033a1cb8eefd67ae7c621bcd6a5c3b348d1b3fe"})))};return t}());d.style=s}}}));
2
- //# sourceMappingURL=p-4c5bb9d1.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,n){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function i(t){try{s(n.next(t))}catch(t){a(t)}}function c(t){try{s(n["throw"](t))}catch(t){a(t)}}function s(t){t.done?o(t.value):r(t.value).then(i,c)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,i;return i={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return s([t,e])}}function s(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(o=0)),o)try{if(n=1,r&&(a=c[0]&2?r["return"]:c[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,c[1])).done)return a;if(r=0,a)c=[c[0]&2,a.value];switch(c[0]){case 0:case 1:a=c;break;case 4:o.label++;return{value:c[1],done:false};case 5:o.label++;r=c[1];c=[0];continue;case 7:c=o.ops.pop();o.trys.pop();continue;default:if(!(a=o.trys,a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){o.label=c[1];break}if(c[0]===6&&o.label<a[1]){o.label=a[1];a=c;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(c);break}if(a[2])o.ops.pop();o.trys.pop();continue}c=e.call(t,o)}catch(t){c=[6,t];r=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-B0FmVwBR.system.js","./p-DzZgjFK8.system.js"],(function(t){"use strict";var e,o,n,r,a;return{setters:[function(t){e=t.r;o=t.h;n=t.H;r=t.c},function(t){a=t.c}],execute:function(){var i='@-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-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}';var c=t("verdocs_button_panel",function(){function t(t){e(this,t);this.icon="";this.showing=false}t.prototype.componentDidRender=function(){document.body.appendChild(this.panelEl);if(this.popperInstance){this.popperInstance.destroy()}this.popperInstance=a(this.iconEl,this.panelEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}if(this.panelEl){this.panelEl.remove()}};t.prototype.showPanel=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;var o=this;return __generator(this,(function(n){(t=this.panelEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(e=this.popperInstance)===null||e===void 0?void 0:e.update().catch((function(){}));this.showing=true;this.hiderEl=document.createElement("div");this.hiderEl.id="verdocs-button-panel-hider";this.hiderEl.style.zIndex="100";this.hiderEl.style.position="absolute";this.hiderEl.style.top="0px";this.hiderEl.style.left="0px";this.hiderEl.style.right="0px";this.hiderEl.style.bottom="0px";this.hiderEl.onclick=function(t){t.stopPropagation();o.toggle()};document.body.appendChild(this.hiderEl);return[2]}))}))};t.prototype.hidePanel=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){Array.from(document.getElementsByClassName("verdocs-button-panel-content")).forEach((function(t){t.removeAttribute("data-show")}));(t=document.getElementById("verdocs-button-panel-hider"))===null||t===void 0?void 0:t.remove();this.showing=false;return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.showing)return[3,2];return[4,this.hidePanel()];case 1:t.sent();return[3,4];case 2:return[4,this.showPanel()];case 3:t.sent();t.label=4;case 4:return[2]}}))}))};t.prototype.render=function(){var t=this;return o(n,{key:"c4a19a142c4e228213a78988847a66b9d952ee27"},o("div",{key:"d01b744c644e6ae143aa8654c25a15780189cd98",class:"icon",innerHTML:this.icon,onClick:function(e){e.stopPropagation();return t.toggle()},ref:function(e){return t.iconEl=e}}),o("div",{key:"5bc6a60df0c2e15b7fa4da356130618c540e2ec7",role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:function(e){return t.panelEl=e}},o("div",{key:"024f7c9713c9c57dc04d9cceaa93c7a40cb8eaba","data-popper-arrow":"true",class:"arrow"}),o("slot",{key:"544361c54c163063f4013cc52ea4a12c6baff24b"})))};return t}());c.style=i;var s='@-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-tabs{gap:10px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-tabs .tab{display:-ms-flexbox;display:flex;color:#111111;cursor:pointer;font-size:14px;font-weight:400;padding:5px 10px;-ms-flex-align:center;align-items:center;text-transform:none;-ms-flex-pack:center;justify-content:center;border-bottom:4px solid transparent}verdocs-tabs .tab:focus{border:none;outline:none}verdocs-tabs .tab.active{color:#000000;font-weight:500;border-bottom:4px solid #654dcb}verdocs-tabs .tab.disabled{color:#aaaaaa;cursor:default}';var d=t("verdocs_tabs",function(){function t(t){e(this,t);this.selectTab=r(this,"selectTab");this.tabs=[];this.selectedTab=0}t.prototype.handleSelectTab=function(t){var e;(e=this.selectTab)===null||e===void 0?void 0:e.emit({tab:this.tabs[t],index:t})};t.prototype.render=function(){var t=this;return o(n,{key:"6de4c126c0d4efe31e925569090af9dd032fae0c"},this.tabs.map((function(e,n){return o("div",{class:"tab ".concat(n===t.selectedTab?"active":""," ").concat(e.disabled?"disabled":""),onClick:e.disabled?function(){}:function(){return t.handleSelectTab(n)}},e.label)})),o("div",{key:"a3aba39b6b1a758ea4ed7a87860108bbe9367565",class:"flex flex-1"}),o("slot",{key:"0bda7a4123dcab3d4aef3e65cadad14bcdba6312"},o("div",{key:"7033a1cb8eefd67ae7c621bcd6a5c3b348d1b3fe"})))};return t}());d.style=s}}}));
2
+ //# sourceMappingURL=p-66bb2b87.system.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js"],(function(t){"use strict";var o,n,e,r;return{setters:[function(t){o=t.r;n=t.c;e=t.h;r=t.H}],execute:function(){var i='@-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-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';var c=t("verdocs_toggle_button",function(){function t(t){o(this,t);this.toggle=n(this,"toggle");this.active=false;this.icon=null;this.label=null;this.size="normal";this._active=false}t.prototype.componentWillLoad=function(){this._active=this.active};t.prototype.handleToggle=function(t){var o;t.stopPropagation();var n=!this._active;this._active=n;(o=this.toggle)===null||o===void 0?void 0:o.emit({active:n})};t.prototype.render=function(){var t=this;return e(r,{key:"5831ff9f0dccbc367958a7c0746c63c7cca8af1f",class:"size-".concat(this.size)},this.icon?e("button",{innerHTML:this.icon,class:{active:this._active},onClick:function(o){return t.handleToggle(o)}}):e("button",{class:{active:this._active},onClick:function(o){return t.handleToggle(o)}},this.label))};return t}());c.style=i}}}));
2
- //# sourceMappingURL=p-dbb8413d.system.entry.js.map
1
+ System.register(["./p-B0FmVwBR.system.js"],(function(t){"use strict";var o,n,e,r;return{setters:[function(t){o=t.r;n=t.c;e=t.h;r=t.H}],execute:function(){var i='@-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-toggle-button{font-family:"Inter", "Barlow", sans-serif}verdocs-toggle-button button{border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#cccccc;color:#33364b}verdocs-toggle-button button svg{max-width:100%;max-height:100%;fill:#33364b}verdocs-toggle-button button.active{background:#55bc81;color:#f5f5fa}verdocs-toggle-button button.active svg{fill:#f5f5fa}verdocs-toggle-button button:focus{border:none;outline:none}verdocs-toggle-button.size-normal button{width:40px;height:40px;padding:6px;border-radius:4px}verdocs-toggle-button.size-small button{width:34px;height:34px;padding:4px;border-radius:2px}';var c=t("verdocs_toggle_button",function(){function t(t){o(this,t);this.toggle=n(this,"toggle");this.active=false;this.icon=null;this.label=null;this.size="normal";this._active=false}t.prototype.componentWillLoad=function(){this._active=this.active};t.prototype.handleToggle=function(t){var o;t.stopPropagation();var n=!this._active;this._active=n;(o=this.toggle)===null||o===void 0?void 0:o.emit({active:n})};t.prototype.render=function(){var t=this;return e(r,{key:"5831ff9f0dccbc367958a7c0746c63c7cca8af1f",class:"size-".concat(this.size)},this.icon?e("button",{innerHTML:this.icon,class:{active:this._active},onClick:function(o){return t.handleToggle(o)}}):e("button",{class:{active:this._active},onClick:function(o){return t.handleToggle(o)}},this.label))};return t}());c.style=i}}}));
2
+ //# sourceMappingURL=p-6940f098.system.entry.js.map