@verdocs/web-sdk 5.3.1 → 5.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. package/dist/cjs/index-Be9PlTB7.js +2 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
  4. package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
  5. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +5 -3
  7. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  8. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
  11. package/dist/cjs/{verdocs-kba-dialog_3.cjs.entry.js → verdocs-delegate-dialog_4.cjs.entry.js} +53 -4
  12. package/dist/cjs/verdocs-delegate-dialog_4.cjs.entry.js.map +1 -0
  13. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
  18. package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
  19. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  20. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  21. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  23. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  26. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-sign.cjs.entry.js +37 -4
  32. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  33. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  34. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  35. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  36. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  37. package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  40. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  43. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  46. package/dist/collection/collection-manifest.json +1 -0
  47. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  48. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  49. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  50. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  51. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
  52. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  53. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  54. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  55. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  56. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  57. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  58. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  59. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  60. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  61. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  62. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  63. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  64. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  65. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  66. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  67. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  68. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  69. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  70. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  71. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  72. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  73. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +177 -0
  74. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +154 -0
  75. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -0
  76. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  77. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  78. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  79. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  80. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  81. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  82. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  83. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  84. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  85. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +3 -0
  86. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -4
  87. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  88. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -1
  89. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +4 -2
  90. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  91. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  92. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -1
  93. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
  94. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  95. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  96. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  97. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  98. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  99. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  100. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  101. package/dist/components/index.js +2 -0
  102. package/dist/components/index.js.map +1 -1
  103. package/dist/components/{p-Bb2F00K4.js → p--hL4T8Ae.js} +11 -11
  104. package/dist/components/{p-Bb2F00K4.js.map → p--hL4T8Ae.js.map} +1 -1
  105. package/dist/components/{p-im6p8eaY.js → p-9HvXJwEq.js} +3 -3
  106. package/dist/components/{p-im6p8eaY.js.map → p-9HvXJwEq.js.map} +1 -1
  107. package/dist/components/{p-IIsukGEV.js → p-B7buybCz.js} +3 -3
  108. package/dist/components/{p-IIsukGEV.js.map → p-B7buybCz.js.map} +1 -1
  109. package/dist/components/{p-DkRVY3iu.js → p-BBJxuJAR.js} +6 -6
  110. package/dist/components/{p-DkRVY3iu.js.map → p-BBJxuJAR.js.map} +1 -1
  111. package/dist/components/{p-C0nK1qtH.js → p-BCfTxJfb.js} +3 -3
  112. package/dist/components/{p-C0nK1qtH.js.map → p-BCfTxJfb.js.map} +1 -1
  113. package/dist/components/{p-BgLJVBaB.js → p-BDDzkCIR.js} +4 -4
  114. package/dist/components/{p-BgLJVBaB.js.map → p-BDDzkCIR.js.map} +1 -1
  115. package/dist/components/{p-CgbZe6eM.js → p-BDmKp20X.js} +7 -7
  116. package/dist/components/{p-CgbZe6eM.js.map → p-BDmKp20X.js.map} +1 -1
  117. package/dist/components/{p-DzDX8A_h.js → p-BHu8qhRh.js} +3 -3
  118. package/dist/components/{p-DzDX8A_h.js.map → p-BHu8qhRh.js.map} +1 -1
  119. package/dist/components/{p-X6ujIO0j.js → p-BMXdvy4u.js} +8 -8
  120. package/dist/components/{p-X6ujIO0j.js.map → p-BMXdvy4u.js.map} +1 -1
  121. package/dist/components/{p-DQh221R1.js → p-BN5wpJih.js} +12 -12
  122. package/dist/components/{p-DQh221R1.js.map → p-BN5wpJih.js.map} +1 -1
  123. package/dist/components/{p-ke4RFlpQ.js → p-BP9TCpZ6.js} +25 -25
  124. package/dist/components/{p-ke4RFlpQ.js.map → p-BP9TCpZ6.js.map} +1 -1
  125. package/dist/components/{p-BHKb3X7a.js → p-BRC3PsLk.js} +9 -9
  126. package/dist/components/{p-BHKb3X7a.js.map → p-BRC3PsLk.js.map} +1 -1
  127. package/dist/components/{p-BPaxQrtW.js → p-BakshEO1.js} +3 -3
  128. package/dist/components/{p-BPaxQrtW.js.map → p-BakshEO1.js.map} +1 -1
  129. package/dist/components/p-BpUKXYCJ.js +83 -0
  130. package/dist/components/p-BpUKXYCJ.js.map +1 -0
  131. package/dist/components/{p-B8nK0hJl.js → p-Bswg8Fe8.js} +11 -11
  132. package/dist/components/{p-B8nK0hJl.js.map → p-Bswg8Fe8.js.map} +1 -1
  133. package/dist/components/{p-dIi8HYZ5.js → p-CEXKKH9Z.js} +9 -9
  134. package/dist/components/{p-dIi8HYZ5.js.map → p-CEXKKH9Z.js.map} +1 -1
  135. package/dist/components/{p-WhDWrMQm.js → p-CFBQG_2F.js} +11 -11
  136. package/dist/components/{p-WhDWrMQm.js.map → p-CFBQG_2F.js.map} +1 -1
  137. package/dist/components/{p-D_x2HuZp.js → p-CJIN0YXw.js} +11 -11
  138. package/dist/components/{p-D_x2HuZp.js.map → p-CJIN0YXw.js.map} +1 -1
  139. package/dist/components/{p-kaKbklxN.js → p-CSFCBy3P.js} +27 -27
  140. package/dist/components/{p-kaKbklxN.js.map → p-CSFCBy3P.js.map} +1 -1
  141. package/dist/components/{p-BcXBFK4l.js → p-CUlK6Rs_.js} +5 -5
  142. package/dist/components/{p-BcXBFK4l.js.map → p-CUlK6Rs_.js.map} +1 -1
  143. package/dist/components/{p-Cn6fa00B.js → p-CVkbflKM.js} +3 -3
  144. package/dist/components/{p-Cn6fa00B.js.map → p-CVkbflKM.js.map} +1 -1
  145. package/dist/components/{p-BV_wbVq4.js → p-Cexe1-Oo.js} +3 -3
  146. package/dist/components/{p-BV_wbVq4.js.map → p-Cexe1-Oo.js.map} +1 -1
  147. package/dist/components/{p-CLHwiJsu.js → p-Cf1Xpjup.js} +3 -3
  148. package/dist/components/{p-CLHwiJsu.js.map → p-Cf1Xpjup.js.map} +1 -1
  149. package/dist/components/{p-D38Lnu3J.js → p-CfqdAcYb.js} +3 -3
  150. package/dist/components/{p-D38Lnu3J.js.map → p-CfqdAcYb.js.map} +1 -1
  151. package/dist/components/{p-Crehnwtj.js → p-Ck25a52V.js} +10 -10
  152. package/dist/components/{p-Crehnwtj.js.map → p-Ck25a52V.js.map} +1 -1
  153. package/dist/components/{p-DDAZR40U.js → p-Cry7waUN.js} +6 -6
  154. package/dist/components/{p-DDAZR40U.js.map → p-Cry7waUN.js.map} +1 -1
  155. package/dist/components/{p-DBr1-dfD.js → p-D0rJh5my.js} +3 -3
  156. package/dist/components/{p-DBr1-dfD.js.map → p-D0rJh5my.js.map} +1 -1
  157. package/dist/components/{p-Bs52WSYR.js → p-D13UCp1m.js} +6 -6
  158. package/dist/components/{p-Bs52WSYR.js.map → p-D13UCp1m.js.map} +1 -1
  159. package/dist/components/{p-CunjhIft.js → p-D8_fPEOD.js} +8 -8
  160. package/dist/components/{p-CunjhIft.js.map → p-D8_fPEOD.js.map} +1 -1
  161. package/dist/components/{p-GUGCYQ6F.js → p-DAGrOW1D.js} +5 -5
  162. package/dist/components/{p-GUGCYQ6F.js.map → p-DAGrOW1D.js.map} +1 -1
  163. package/dist/components/{p-DD5pf8Tj.js → p-DAelmHnU.js} +5 -5
  164. package/dist/components/{p-DD5pf8Tj.js.map → p-DAelmHnU.js.map} +1 -1
  165. package/dist/components/{p-C2Fb8G6A.js → p-DCy6nwED.js} +12 -12
  166. package/dist/components/{p-C2Fb8G6A.js.map → p-DCy6nwED.js.map} +1 -1
  167. package/dist/components/{p-D3n1gA61.js → p-DGdQtEJc.js} +11 -11
  168. package/dist/components/{p-D3n1gA61.js.map → p-DGdQtEJc.js.map} +1 -1
  169. package/dist/components/{p-XHSVTLB0.js → p-DMYs4VZa.js} +3 -3
  170. package/dist/components/{p-XHSVTLB0.js.map → p-DMYs4VZa.js.map} +1 -1
  171. package/dist/components/{p-CPRS8f3I.js → p-DNOYDWfH.js} +13 -13
  172. package/dist/components/{p-CPRS8f3I.js.map → p-DNOYDWfH.js.map} +1 -1
  173. package/dist/components/{p-CDFzZQgR.js → p-DSuGln_n.js} +4 -4
  174. package/dist/components/{p-CDFzZQgR.js.map → p-DSuGln_n.js.map} +1 -1
  175. package/dist/components/{p-B3jMBr0M.js → p-Dq3ca8_9.js} +10 -8
  176. package/dist/components/p-Dq3ca8_9.js.map +1 -0
  177. package/dist/components/{p-D5OLYsa3.js → p-Dsw72vlR.js} +4 -4
  178. package/dist/components/{p-D5OLYsa3.js.map → p-Dsw72vlR.js.map} +1 -1
  179. package/dist/components/{p-CUMKIsSw.js → p-Dt-0j6pv.js} +3 -3
  180. package/dist/components/{p-CUMKIsSw.js.map → p-Dt-0j6pv.js.map} +1 -1
  181. package/dist/components/{p-B86IoqG1.js → p-IhdX5vVL.js} +3 -3
  182. package/dist/components/{p-B86IoqG1.js.map → p-IhdX5vVL.js.map} +1 -1
  183. package/dist/components/{p-C8toWnqC.js → p-K9Q7whri.js} +4 -4
  184. package/dist/components/{p-C8toWnqC.js.map → p-K9Q7whri.js.map} +1 -1
  185. package/dist/components/{p-DGRiUZlM.js → p-LNfVhsoj.js} +26 -26
  186. package/dist/components/{p-DGRiUZlM.js.map → p-LNfVhsoj.js.map} +1 -1
  187. package/dist/components/{p-DxZzj3bW.js → p-_nUQ5iEk.js} +3 -3
  188. package/dist/components/{p-DxZzj3bW.js.map → p-_nUQ5iEk.js.map} +1 -1
  189. package/dist/components/{p-BodfySqq.js → p-b88NoejR.js} +4 -4
  190. package/dist/components/{p-BodfySqq.js.map → p-b88NoejR.js.map} +1 -1
  191. package/dist/components/{p-DmSZqyDY.js → p-dDTMckyL.js} +3 -3
  192. package/dist/components/{p-DmSZqyDY.js.map → p-dDTMckyL.js.map} +1 -1
  193. package/dist/components/{p-B79DYGjE.js → p-gCXTKxs5.js} +3 -3
  194. package/dist/components/{p-B79DYGjE.js.map → p-gCXTKxs5.js.map} +1 -1
  195. package/dist/components/{p-DGiDigbo.js → p-gJ8vsaSU.js} +9 -9
  196. package/dist/components/{p-DGiDigbo.js.map → p-gJ8vsaSU.js.map} +1 -1
  197. package/dist/components/{p-TyROYR6-.js → p-pXqgg9BU.js} +4 -4
  198. package/dist/components/{p-TyROYR6-.js.map → p-pXqgg9BU.js.map} +1 -1
  199. package/dist/components/{p-BwIyL1sF.js → p-r7qm8EsM.js} +11 -11
  200. package/dist/components/{p-BwIyL1sF.js.map → p-r7qm8EsM.js.map} +1 -1
  201. package/dist/components/{p-BGMd4wA7.js → p-uNT6jl98.js} +13 -13
  202. package/dist/components/{p-BGMd4wA7.js.map → p-uNT6jl98.js.map} +1 -1
  203. package/dist/components/{p-DB-CFkUZ.js → p-vZUBjvdn.js} +11 -11
  204. package/dist/components/{p-DB-CFkUZ.js.map → p-vZUBjvdn.js.map} +1 -1
  205. package/dist/components/{p-Blv4Px1q.js → p-xbfIS4ny.js} +4 -4
  206. package/dist/components/{p-Blv4Px1q.js.map → p-xbfIS4ny.js.map} +1 -1
  207. package/dist/components/{p-BQjKN6Ez.js → p-zOGAwuLP.js} +3 -3
  208. package/dist/components/{p-BQjKN6Ez.js.map → p-zOGAwuLP.js.map} +1 -1
  209. package/dist/components/verdocs-auth.js +3 -3
  210. package/dist/components/verdocs-build.js +41 -41
  211. package/dist/components/verdocs-button-panel.js +1 -1
  212. package/dist/components/verdocs-button.js +1 -1
  213. package/dist/components/verdocs-checkbox.js +1 -1
  214. package/dist/components/verdocs-component-error.js +1 -1
  215. package/dist/components/verdocs-contact-picker.js +1 -1
  216. package/dist/components/verdocs-date-input.js +3 -3
  217. package/dist/components/verdocs-delegate-dialog.d.ts +11 -0
  218. package/dist/components/verdocs-delegate-dialog.js +9 -0
  219. package/dist/components/verdocs-delegate-dialog.js.map +1 -0
  220. package/dist/components/verdocs-dialog.js +1 -1
  221. package/dist/components/verdocs-dropdown.js +1 -1
  222. package/dist/components/verdocs-envelope-document-page.js +1 -1
  223. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  224. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  225. package/dist/components/verdocs-envelope-sidebar.js +10 -10
  226. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  227. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  228. package/dist/components/verdocs-envelopes-list.js +16 -16
  229. package/dist/components/verdocs-field-attachment.js +1 -1
  230. package/dist/components/verdocs-field-checkbox.js +1 -1
  231. package/dist/components/verdocs-field-date.js +1 -1
  232. package/dist/components/verdocs-field-dropdown.js +1 -1
  233. package/dist/components/verdocs-field-initial.js +1 -1
  234. package/dist/components/verdocs-field-payment.js +9 -9
  235. package/dist/components/verdocs-field-radio.js +1 -1
  236. package/dist/components/verdocs-field-signature.js +1 -1
  237. package/dist/components/verdocs-field-textarea.js +1 -1
  238. package/dist/components/verdocs-field-textbox.js +1 -1
  239. package/dist/components/verdocs-field-timestamp.js +1 -1
  240. package/dist/components/verdocs-file-chooser.js +1 -1
  241. package/dist/components/verdocs-help-icon.js +1 -1
  242. package/dist/components/verdocs-initial-dialog.js +1 -1
  243. package/dist/components/verdocs-kba-dialog.js +1 -1
  244. package/dist/components/verdocs-loader.js +1 -1
  245. package/dist/components/verdocs-menu-panel.js +1 -1
  246. package/dist/components/verdocs-multiselect.js +2 -2
  247. package/dist/components/verdocs-ok-dialog.js +1 -1
  248. package/dist/components/verdocs-organization-card.js +2 -2
  249. package/dist/components/verdocs-otp-dialog.js +1 -1
  250. package/dist/components/verdocs-pagination.js +1 -1
  251. package/dist/components/verdocs-portal.js +1 -1
  252. package/dist/components/verdocs-preview.js +1 -1
  253. package/dist/components/verdocs-progress-bar.js +1 -1
  254. package/dist/components/verdocs-quick-filter.js +1 -1
  255. package/dist/components/verdocs-quick-functions.js +1 -1
  256. package/dist/components/verdocs-radio-button.js +1 -1
  257. package/dist/components/verdocs-search-box.js +1 -1
  258. package/dist/components/verdocs-search-tabs.js +1 -1
  259. package/dist/components/verdocs-select-input.js +1 -1
  260. package/dist/components/verdocs-send.js +1 -1
  261. package/dist/components/verdocs-sign.js +61 -19
  262. package/dist/components/verdocs-sign.js.map +1 -1
  263. package/dist/components/verdocs-signature-dialog.js +1 -1
  264. package/dist/components/verdocs-spinner.js +1 -1
  265. package/dist/components/verdocs-status-indicator.js +1 -1
  266. package/dist/components/verdocs-switch.js +1 -1
  267. package/dist/components/verdocs-table.js +2 -2
  268. package/dist/components/verdocs-tabs.js +1 -1
  269. package/dist/components/verdocs-template-attachments.js +1 -1
  270. package/dist/components/verdocs-template-build-tabs.js +1 -1
  271. package/dist/components/verdocs-template-card.js +1 -1
  272. package/dist/components/verdocs-template-create.js +4 -4
  273. package/dist/components/verdocs-template-document-page.js +1 -1
  274. package/dist/components/verdocs-template-field-properties.js +1 -1
  275. package/dist/components/verdocs-template-fields.js +1 -1
  276. package/dist/components/verdocs-template-role-properties.js +1 -1
  277. package/dist/components/verdocs-template-roles.js +1 -1
  278. package/dist/components/verdocs-template-settings.js +1 -1
  279. package/dist/components/verdocs-template-star.js +1 -1
  280. package/dist/components/verdocs-template-tags.js +1 -1
  281. package/dist/components/verdocs-templates-list.js +17 -17
  282. package/dist/components/verdocs-text-input.js +1 -1
  283. package/dist/components/verdocs-toggle-button.js +1 -1
  284. package/dist/components/verdocs-toggle.js +1 -1
  285. package/dist/components/verdocs-toolbar-icon.js +1 -1
  286. package/dist/components/verdocs-upload-dialog.js +1 -1
  287. package/dist/components/verdocs-view.js +1 -1
  288. package/dist/custom-elements.json +17 -0
  289. package/dist/esm/index-CF7i8guW.js +2 -2
  290. package/dist/esm/loader.js +1 -1
  291. package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
  292. package/dist/esm/verdocs-button_3.entry.js +6 -6
  293. package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
  294. package/dist/esm/verdocs-contact-picker.entry.js +5 -3
  295. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  296. package/dist/esm/verdocs-date-input.entry.js +2 -2
  297. package/dist/esm/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  298. package/dist/esm/{verdocs-kba-dialog_3.entry.js → verdocs-delegate-dialog_4.entry.js} +54 -6
  299. package/dist/esm/verdocs-delegate-dialog_4.entry.js.map +1 -0
  300. package/dist/esm/verdocs-dialog.entry.js +1 -1
  301. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  302. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  303. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  304. package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
  305. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  306. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  307. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  308. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  309. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  310. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  311. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  312. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  313. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  314. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  315. package/dist/esm/verdocs-search-box.entry.js +1 -1
  316. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  317. package/dist/esm/verdocs-sign.entry.js +38 -5
  318. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  319. package/dist/esm/verdocs-spinner.entry.js +1 -1
  320. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  321. package/dist/esm/verdocs-switch.entry.js +2 -2
  322. package/dist/esm/verdocs-table.entry.js +2 -2
  323. package/dist/esm/verdocs-template-card.entry.js +1 -1
  324. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  325. package/dist/esm/verdocs-template-star.entry.js +1 -1
  326. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  327. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  328. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  329. package/dist/esm/verdocs-toggle.entry.js +1 -1
  330. package/dist/esm/verdocs-web-sdk.js +1 -1
  331. package/dist/esm-es5/index-CF7i8guW.js +1 -1
  332. package/dist/esm-es5/loader.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 +1 -1
  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-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  340. package/dist/esm-es5/verdocs-delegate-dialog_4.entry.js +2 -0
  341. package/dist/{esm/verdocs-kba-dialog_3.entry.js.map → esm-es5/verdocs-delegate-dialog_4.entry.js.map} +1 -1
  342. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  343. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
  347. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  349. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  356. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  357. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  358. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  360. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  361. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  364. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  365. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  373. package/dist/types/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.d.ts +38 -0
  374. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -0
  375. package/dist/types/components.d.ts +65 -0
  376. package/dist/verdocs-web-sdk/{p-f28a1014.entry.js → p-001f340b.entry.js} +2 -2
  377. package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js → p-034eb84e.entry.js} +2 -2
  378. package/dist/verdocs-web-sdk/{p-b720bffc.entry.js → p-0359f32e.entry.js} +2 -2
  379. package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js → p-127c5b10.entry.js} +2 -2
  380. package/dist/verdocs-web-sdk/{p-cb428e80.entry.js → p-1d72e3ab.entry.js} +2 -2
  381. package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js → p-204afc1e.system.entry.js} +2 -2
  382. package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js → p-2514da1e.system.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js → p-2a087f29.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-48299322.entry.js → p-327e38bf.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/p-33691e24.system.entry.js +2 -0
  386. package/dist/verdocs-web-sdk/p-33691e24.system.entry.js.map +1 -0
  387. package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js +2 -0
  388. package/dist/verdocs-web-sdk/p-33ce9472.system.entry.js.map +1 -0
  389. package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js → p-352ab9b7.system.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-32d77c26.entry.js → p-356af98a.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js → p-3a0cc47f.system.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js → p-3ab1625e.system.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js → p-42939fbd.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/{p-484341d0.entry.js → p-43971b64.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js → p-4a0dc414.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js → p-4c5bb9d1.system.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js → p-4d563225.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js → p-4e28a33a.system.entry.js} +2 -2
  399. package/dist/verdocs-web-sdk/{p-df954c57.entry.js → p-4e9d67fe.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js → p-596326ba.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/p-59723c89.entry.js +2 -0
  402. package/dist/verdocs-web-sdk/{p-1718b823.entry.js.map → p-59723c89.entry.js.map} +1 -1
  403. package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js → p-5f8f5f48.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js → p-6013eb3f.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-76215a73.entry.js → p-655c3035.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-aa18533b.entry.js → p-672b6b7b.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js → p-6845c12e.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-fb00149a.entry.js → p-68b11f68.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js → p-6a5c1de9.system.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/p-6f6a0c7a.system.entry.js +2 -0
  411. package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js → p-72c996d0.system.entry.js} +2 -2
  412. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js → p-72e9198d.system.entry.js} +2 -2
  413. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js.map → p-72e9198d.system.entry.js.map} +1 -1
  414. package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js → p-767c93e8.system.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js → p-76a86430.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-9f4c393c.system.entry.js → p-76aed8e2.system.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/p-76aed8e2.system.entry.js.map +1 -0
  418. package/dist/verdocs-web-sdk/{p-49522ebb.entry.js → p-784daaf3.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js → p-7f085b76.system.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-832e4346.entry.js → p-80f0dfbc.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/p-80f0dfbc.entry.js.map +1 -0
  422. package/dist/verdocs-web-sdk/{p-e8713631.entry.js → p-86e18c44.entry.js} +3 -3
  423. package/dist/verdocs-web-sdk/{p-e8713631.entry.js.map → p-86e18c44.entry.js.map} +1 -1
  424. package/dist/verdocs-web-sdk/{p-43326217.entry.js → p-8be6c2b0.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-71793bb2.entry.js → p-92d45701.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js → p-931bf9ec.system.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js → p-963208c6.system.entry.js} +2 -2
  428. package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js → p-99f4f945.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +1 -0
  430. package/dist/verdocs-web-sdk/{p-BQeD2Uzl.system.js.map → p-B8hJTIPP.system.js.map} +1 -1
  431. package/dist/verdocs-web-sdk/{p-CgaVlmPG.system.js.map → p-BDGgiBJR.system.js.map} +1 -1
  432. package/dist/verdocs-web-sdk/{p-Dt57R1T4.system.js.map → p-BK8oE7he.system.js.map} +1 -1
  433. package/dist/verdocs-web-sdk/{p-CzcrfRov.system.js.map → p-BOuTTVR2.system.js.map} +1 -1
  434. package/dist/verdocs-web-sdk/{p-Bf4B0vsS.system.js.map → p-BPt7ZeYN.system.js.map} +1 -1
  435. package/dist/verdocs-web-sdk/p-BQneONkc.system.js.map +1 -0
  436. package/dist/verdocs-web-sdk/{p-DR2NwM3E.system.js.map → p-B_BNAU2R.system.js.map} +1 -1
  437. package/dist/verdocs-web-sdk/{p-Bv035E2W.system.js.map → p-Bbn-DzjB.system.js.map} +1 -1
  438. package/dist/verdocs-web-sdk/p-BfaNlwpr.system.js.map +1 -0
  439. package/dist/verdocs-web-sdk/{p-BH-YVoIR.system.js.map → p-BtN2tR0_.system.js.map} +1 -1
  440. package/dist/verdocs-web-sdk/{p-DnhrroGp.system.js.map → p-C28cwiJN.system.js.map} +1 -1
  441. package/dist/verdocs-web-sdk/{p-Dt0S5N8D.system.js.map → p-C3pXyYu2.system.js.map} +1 -1
  442. package/dist/verdocs-web-sdk/{p-BqV2sLyM.system.js.map → p-C4wFtWGl.system.js.map} +1 -1
  443. package/dist/verdocs-web-sdk/{p-B9makh4c.system.js.map → p-CB78zeGU.system.js.map} +1 -1
  444. package/dist/verdocs-web-sdk/{p-BEa6VFpF.system.js.map → p-CD2Fdeq7.system.js.map} +1 -1
  445. package/dist/verdocs-web-sdk/{p-fih-g25U.system.js.map → p-CHZu9FwY.system.js.map} +1 -1
  446. package/dist/verdocs-web-sdk/{p-DAWcoDTu.system.js.map → p-CflLDny-.system.js.map} +1 -1
  447. package/dist/verdocs-web-sdk/{p-DqMEkp6a.system.js.map → p-CqnaEr0M.system.js.map} +1 -1
  448. package/dist/verdocs-web-sdk/{p-DwPw01KR.system.js.map → p-Ctlx9aRK.system.js.map} +1 -1
  449. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  450. package/dist/verdocs-web-sdk/{p-DtqpEcJn.system.js.map → p-CxebBOfo.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/{p-CMjFvlqO.system.js.map → p-CyniDtbb.system.js.map} +1 -1
  452. package/dist/verdocs-web-sdk/{p-BXdHDPn2.system.js.map → p-D2By4ZeB.system.js.map} +1 -1
  453. package/dist/verdocs-web-sdk/{p-DFOpAjqC.system.js.map → p-DdgLD7ev.system.js.map} +1 -1
  454. package/dist/verdocs-web-sdk/{p--x2D_CxE.system.js.map → p-Dmi3C21y.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/{p-CJHhU-q9.system.js.map → p-DpJ6fOKq.system.js.map} +1 -1
  456. package/dist/verdocs-web-sdk/{p-CqlWk1GQ.system.js.map → p-Ds5wL-Co.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/{p-DHGQrIAb.system.js.map → p-DsSM-GM5.system.js.map} +1 -1
  458. package/dist/verdocs-web-sdk/{p-D3kzqvo2.system.js.map → p-L5sYoH8b.system.js.map} +1 -1
  459. package/dist/verdocs-web-sdk/{p-CNuYIT4Z.system.js.map → p-LIkyGpz6.system.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-C6DpDki6.system.js.map → p-U0rW0Gqv.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-07a175f6.entry.js → p-a1e4b631.entry.js} +2 -2
  462. package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js → p-a279bb92.system.entry.js} +2 -2
  463. package/dist/verdocs-web-sdk/p-a734eed0.entry.js +2 -0
  464. package/dist/verdocs-web-sdk/{p-0613e287.entry.js → p-b980a35c.entry.js} +2 -2
  465. package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js → p-be6db7c0.system.entry.js} +2 -2
  466. package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js → p-bee95303.system.entry.js} +2 -2
  467. package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js → p-c48624a8.system.entry.js} +2 -2
  468. package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js → p-c5b23884.system.entry.js} +2 -2
  469. package/dist/verdocs-web-sdk/{p-BsWaGIkx.system.js.map → p-cI4bagwT.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/{p-720ceced.entry.js → p-cc823255.entry.js} +2 -2
  471. package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js → p-cd56307c.entry.js} +2 -2
  472. package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js → p-cd60348a.system.entry.js} +2 -2
  473. package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js → p-ce2336aa.system.entry.js} +2 -2
  474. package/dist/verdocs-web-sdk/{p-a3354a48.entry.js → p-d1e99a40.entry.js} +2 -2
  475. package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js → p-d2a4aedb.system.entry.js} +2 -2
  476. package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js → p-dbb8413d.system.entry.js} +2 -2
  477. package/dist/verdocs-web-sdk/p-e3414fba.entry.js +2 -0
  478. package/dist/verdocs-web-sdk/p-e3414fba.entry.js.map +1 -0
  479. package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js → p-e8c146fc.system.entry.js} +2 -2
  480. package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js → p-ed194be6.system.entry.js} +2 -2
  481. package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js +2 -0
  482. package/dist/verdocs-web-sdk/p-ee5cc2b0.entry.js.map +1 -0
  483. package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js → p-efc459f7.system.entry.js} +2 -2
  484. package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js → p-fb9bc98b.entry.js} +2 -2
  485. package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js → p-fe22a117.system.entry.js} +2 -2
  486. package/dist/verdocs-web-sdk/{p-C99h0Uet.system.js.map → p-jcVDqxOd.system.js.map} +1 -1
  487. package/dist/verdocs-web-sdk/{p-CtQG0G-c.system.js.map → p-luuB7PWr.system.js.map} +1 -1
  488. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  489. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -0
  490. package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
  491. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  492. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  493. package/package.json +3 -3
  494. package/dist/cjs/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
  495. package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js.map +0 -1
  496. package/dist/components/p-B3jMBr0M.js.map +0 -1
  497. package/dist/esm/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  498. package/dist/esm-es5/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  499. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +0 -2
  500. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js.map +0 -1
  501. package/dist/verdocs-web-sdk/p-1718b823.entry.js +0 -2
  502. package/dist/verdocs-web-sdk/p-1ad8c20c.entry.js +0 -2
  503. package/dist/verdocs-web-sdk/p-33edf6a4.system.entry.js +0 -2
  504. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js +0 -2
  505. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js.map +0 -1
  506. package/dist/verdocs-web-sdk/p-832e4346.entry.js.map +0 -1
  507. package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js.map +0 -1
  508. package/dist/verdocs-web-sdk/p-C2JOLTNG.system.js.map +0 -1
  509. package/dist/verdocs-web-sdk/p-CC3tLap5.system.js.map +0 -1
  510. package/dist/verdocs-web-sdk/p-DM4F2Fmu.system.js.map +0 -1
  511. package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js +0 -2
  512. package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js.map +0 -1
  513. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js +0 -2
  514. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js.map +0 -1
  515. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js +0 -2
  516. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js.map +0 -1
  517. package/dist/verdocs-web-sdk/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
  518. /package/dist/verdocs-web-sdk/{p-f28a1014.entry.js.map → p-001f340b.entry.js.map} +0 -0
  519. /package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js.map → p-034eb84e.entry.js.map} +0 -0
  520. /package/dist/verdocs-web-sdk/{p-b720bffc.entry.js.map → p-0359f32e.entry.js.map} +0 -0
  521. /package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js.map → p-127c5b10.entry.js.map} +0 -0
  522. /package/dist/verdocs-web-sdk/{p-cb428e80.entry.js.map → p-1d72e3ab.entry.js.map} +0 -0
  523. /package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js.map → p-204afc1e.system.entry.js.map} +0 -0
  524. /package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js.map → p-2514da1e.system.entry.js.map} +0 -0
  525. /package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js.map → p-2a087f29.entry.js.map} +0 -0
  526. /package/dist/verdocs-web-sdk/{p-48299322.entry.js.map → p-327e38bf.entry.js.map} +0 -0
  527. /package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js.map → p-352ab9b7.system.entry.js.map} +0 -0
  528. /package/dist/verdocs-web-sdk/{p-32d77c26.entry.js.map → p-356af98a.entry.js.map} +0 -0
  529. /package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js.map → p-3a0cc47f.system.entry.js.map} +0 -0
  530. /package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js.map → p-3ab1625e.system.entry.js.map} +0 -0
  531. /package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js.map → p-42939fbd.entry.js.map} +0 -0
  532. /package/dist/verdocs-web-sdk/{p-484341d0.entry.js.map → p-43971b64.entry.js.map} +0 -0
  533. /package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js.map → p-4a0dc414.entry.js.map} +0 -0
  534. /package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js.map → p-4c5bb9d1.system.entry.js.map} +0 -0
  535. /package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js.map → p-4d563225.entry.js.map} +0 -0
  536. /package/dist/verdocs-web-sdk/{p-d5790af4.system.entry.js.map → p-4e28a33a.system.entry.js.map} +0 -0
  537. /package/dist/verdocs-web-sdk/{p-df954c57.entry.js.map → p-4e9d67fe.entry.js.map} +0 -0
  538. /package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js.map → p-596326ba.system.entry.js.map} +0 -0
  539. /package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js.map → p-5f8f5f48.entry.js.map} +0 -0
  540. /package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js.map → p-6013eb3f.entry.js.map} +0 -0
  541. /package/dist/verdocs-web-sdk/{p-76215a73.entry.js.map → p-655c3035.entry.js.map} +0 -0
  542. /package/dist/verdocs-web-sdk/{p-aa18533b.entry.js.map → p-672b6b7b.entry.js.map} +0 -0
  543. /package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js.map → p-6845c12e.system.entry.js.map} +0 -0
  544. /package/dist/verdocs-web-sdk/{p-fb00149a.entry.js.map → p-68b11f68.entry.js.map} +0 -0
  545. /package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js.map → p-6a5c1de9.system.entry.js.map} +0 -0
  546. /package/dist/verdocs-web-sdk/{p-33edf6a4.system.entry.js.map → p-6f6a0c7a.system.entry.js.map} +0 -0
  547. /package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js.map → p-72c996d0.system.entry.js.map} +0 -0
  548. /package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js.map → p-767c93e8.system.entry.js.map} +0 -0
  549. /package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js.map → p-76a86430.system.entry.js.map} +0 -0
  550. /package/dist/verdocs-web-sdk/{p-49522ebb.entry.js.map → p-784daaf3.entry.js.map} +0 -0
  551. /package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js.map → p-7f085b76.system.entry.js.map} +0 -0
  552. /package/dist/verdocs-web-sdk/{p-43326217.entry.js.map → p-8be6c2b0.entry.js.map} +0 -0
  553. /package/dist/verdocs-web-sdk/{p-71793bb2.entry.js.map → p-92d45701.entry.js.map} +0 -0
  554. /package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js.map → p-931bf9ec.system.entry.js.map} +0 -0
  555. /package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js.map → p-963208c6.system.entry.js.map} +0 -0
  556. /package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js.map → p-99f4f945.entry.js.map} +0 -0
  557. /package/dist/verdocs-web-sdk/{p-07a175f6.entry.js.map → p-a1e4b631.entry.js.map} +0 -0
  558. /package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js.map → p-a279bb92.system.entry.js.map} +0 -0
  559. /package/dist/verdocs-web-sdk/{p-1ad8c20c.entry.js.map → p-a734eed0.entry.js.map} +0 -0
  560. /package/dist/verdocs-web-sdk/{p-0613e287.entry.js.map → p-b980a35c.entry.js.map} +0 -0
  561. /package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js.map → p-be6db7c0.system.entry.js.map} +0 -0
  562. /package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js.map → p-bee95303.system.entry.js.map} +0 -0
  563. /package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js.map → p-c48624a8.system.entry.js.map} +0 -0
  564. /package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js.map → p-c5b23884.system.entry.js.map} +0 -0
  565. /package/dist/verdocs-web-sdk/{p-720ceced.entry.js.map → p-cc823255.entry.js.map} +0 -0
  566. /package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js.map → p-cd56307c.entry.js.map} +0 -0
  567. /package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js.map → p-cd60348a.system.entry.js.map} +0 -0
  568. /package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js.map → p-ce2336aa.system.entry.js.map} +0 -0
  569. /package/dist/verdocs-web-sdk/{p-a3354a48.entry.js.map → p-d1e99a40.entry.js.map} +0 -0
  570. /package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js.map → p-d2a4aedb.system.entry.js.map} +0 -0
  571. /package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js.map → p-dbb8413d.system.entry.js.map} +0 -0
  572. /package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js.map → p-e8c146fc.system.entry.js.map} +0 -0
  573. /package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js.map → p-ed194be6.system.entry.js.map} +0 -0
  574. /package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js.map → p-efc459f7.system.entry.js.map} +0 -0
  575. /package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js.map → p-fb9bc98b.entry.js.map} +0 -0
  576. /package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js.map → p-fe22a117.system.entry.js.map} +0 -0
@@ -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:"09f26fe2ca274c54c4a445b6fbd2b5b0e0b4e587"},s("div",{key:"419453dcda9b282dbb221e21c59c3b9ab805ccb3",class:"header"},s("div",{key:"0874a0b65a716901f2a974c6d9a687f94598bb7f",class:"filter"},s("verdocs-text-input",{key:"3f333fd5a1c0b450af04d8ea48922ced96f23e2b",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:"89ef45476a685f220aa9511556b7f60ad8ff5cf3",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:"434e0caca9b04f840b841359b7ef94856676f957",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:"34b7ad87857dd9de3bfab997239c7e616716c8c0",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:"5d237a87ce4be276951b27e18c9597ee551f7ce3",mode:"dark",size:24}),s("div",{key:"91b04bd0fb46e2b9d712f3fdf9d162ed77f8af63",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:"02c8a2c032d7d5d9367640dc8af9207cac1191d3"},c(0,this.rowsPerPage).map((()=>s("div",{class:"template-placeholder"})))),this.initiallyLoaded&&!this.templates.length&&s("div",{key:"0fa668155a34667926145cce15f06ff8b9174049",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:"2d5c0920ed5a25c1cee436ef49eed765b7f1c787",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-720ceced.entry.js.map
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,2 +1,2 @@
1
- import{r as e,c as o,h as r,H as s}from"./p-CF7i8guW.js";import{VerdocsEndpoint as l}from"@verdocs/js-sdk";import{u as a}from"./p-7LXbcjVz.js";const c='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';const i=class{constructor(r){e(this,r);this.fileSelected=o(this,"fileSelected");this.endpoint=l.getDefault()}handleFileChanged(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)}handleSelectFile(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()}render(){const e=this.file?"Select a different file":"Select a file from your computer";return r(s,{key:"2f3b44d27df1f14697939673b9706f2b8cef2b1c"},r("input",{key:"3c55f234ad08dc6741505f8314361eee94014829",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),r("div",{key:"bda957db5c55a91f240a501f714671973fe493e7",class:"upload-box"},r("div",{key:"c772d366c2d0cf10930bd04c6fe2cf9639ae187d",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),r("div",{key:"1d4ab1025dcd4685be52f0440d0910d5e78e6a8e",class:"or-prefer"},this.file?a:"Or, if you prefer..."),r("verdocs-button",{key:"a2385786f50aa9e298eea13dfadb3072fb2fad34",label:e,size:"small",onClick:e=>this.handleSelectFile(e)})))}};i.style=c;const d='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';const f=class{constructor(o){e(this,o);this.label="";this.showPercent=false;this.percent=0}render(){const e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return r(s,{key:"4fb4646e5feebaf8265fc8042af66d3dcf2426b6"},r("div",{key:"d2febb9e8a3b1e89d067324b40aa674287d0fef0",class:"labels"},this.label&&r("div",{key:"e32eacce952b2ba7bd10819a535b6438c6ba52b4",class:"label"},this.label),this.showPercent&&r("div",{key:"485503902199bcb6752997bef3afcf333c5ce6aa",class:"label"},this.percent,"%")),r("div",{key:"ebdfa5c9362f136d7f3690ffeadae2be46a47bc1",class:"bar"},r("div",{key:"a72e9c81d14d8e7cc6c37cfcd6a9cb6a27d50a2e",class:"slider",style:{width:`${e}%`}})))}};f.style=d;export{i as verdocs_file_chooser,f as verdocs_progress_bar};
2
- //# sourceMappingURL=p-e50ba55a.entry.js.map
1
+ import{r as e,c as o,h as r,H as s}from"./p-CF7i8guW.js";import{VerdocsEndpoint as c}from"@verdocs/js-sdk";import{u as l}from"./p-7LXbcjVz.js";const d='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-file-chooser{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-file-chooser .upload-box{text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:40px 15px;color:rgba(0, 0, 0, 0.54)}verdocs-file-chooser .upload-box svg{width:64px;height:64px;fill:#5c6575}verdocs-file-chooser .selected-filename{font-size:20px;font-weight:bold;overflow-wrap:anywhere}verdocs-file-chooser .or-prefer{height:20px;margin:20px 0;font-size:16px}';const i=class{constructor(r){e(this,r);this.fileSelected=o(this,"fileSelected");this.endpoint=c.getDefault()}handleFileChanged(e){var o,r;this.file=((o=e.target.files)===null||o===void 0?void 0:o[0])||null;(r=this.fileSelected)===null||r===void 0?void 0:r.emit({file:this.file});console.debug("[CHOOSER] Selected file",this.file)}handleSelectFile(e){var o,r;e.stopPropagation();this.file=null;(o=this.fileSelected)===null||o===void 0?void 0:o.emit({file:null});(r=document.getElementById("verdocs-file-chooser"))===null||r===void 0?void 0:r.click()}render(){const e=this.file?"Select a different file":"Select a file from your computer";return r(s,{key:"d2388c9f8fa3aa1de54d359698fd8b9b7a2dd39a"},r("input",{key:"d848ef1b6f60d6e57d7c4939dc44c8ed320e97b3",type:"file",multiple:true,id:"verdocs-file-chooser",accept:"application/pdf,.pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:e=>this.handleFileChanged(e)}),r("div",{key:"d94e8fbc7b94f460fdbc51cf055a17fce83a2673",class:"upload-box"},r("div",{key:"02dcf9d0f6c6f687eee3598c06e44b31de34b5c7",class:"selected-filename"},this.file?this.file.name:"Drag a file here"),r("div",{key:"d8c20dddc52d531c6d05078f7c76d2a6924d78e0",class:"or-prefer"},this.file?l:"Or, if you prefer..."),r("verdocs-button",{key:"5d65da28787d44f563ce72685e5458bb1322973d",label:e,size:"small",onClick:e=>this.handleSelectFile(e)})))}};i.style=d;const 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-progress-bar{font-family:"Inter", "Barlow", sans-serif;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-progress-bar .labels{display:-ms-flexbox;display:flex;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}verdocs-progress-bar .labels .label{display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin-right:8px;color:#33364b}verdocs-progress-bar .bar{display:-ms-flexbox;display:flex;-ms-flex:0 0 10px;flex:0 0 10px;border-radius:5px;background-color:#cccccc}verdocs-progress-bar .bar .slider{display:-ms-flexbox;display:flex;border-radius:5px;background-color:#55bc81}';const t=class{constructor(o){e(this,o);this.label="";this.showPercent=false;this.percent=0}render(){const e=Math.ceil(100*Math.min(this.percent,100)/100);console.log("Rendering progress bar",{widthPercent:e,label:this.label,showPercent:this.showPercent,percent:this.percent});return r(s,{key:"cfccbd59016954d10782723bae6eb451ac8e3e30"},r("div",{key:"a0981e9257e56f6c1e207cda99c637bbff85227f",class:"labels"},this.label&&r("div",{key:"5d692917d2a9b0baf1802573e783fdae4efcc35b",class:"label"},this.label),this.showPercent&&r("div",{key:"14a507c2bc3a7474f1d9933fd87b52b8695a52a4",class:"label"},this.percent,"%")),r("div",{key:"187e0efa73554e681d71bb1d26283e3ab226ca59",class:"bar"},r("div",{key:"1ec5e3c55c52b0d88cc5da1cec57a24918d8e735",class:"slider",style:{width:`${e}%`}})))}};t.style=a;export{i as verdocs_file_chooser,t as verdocs_progress_bar};
2
+ //# sourceMappingURL=p-cd56307c.entry.js.map
@@ -1,2 +1,2 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,i,o){if(o||arguments.length===2)for(var r=0,t=i.length,s;r<t;r++){if(s||!(r in i)){if(!s)s=Array.prototype.slice.call(i,0,r);s[r]=i[r]}}return e.concat(s||Array.prototype.slice.call(i))};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(e){"use strict";var i,o,r,t,s;return{setters:[function(e){i=e.r;o=e.c;r=e.h;t=e.H},function(e){s=e.randomString}],execute:function(){var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif;position:relative}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}verdocs-multiselect .verdocs-multiselect-dropdown{left:0;top:30px;width:210px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}verdocs-multiselect .verdocs-multiselect-dropdown .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-multiselect .verdocs-multiselect-dropdown label{font-size:13px}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';var a='<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="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>';var n='<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="m4.5 15.75 7.5-7.5 7.5 7.5" /></svg>';var c=e("verdocs_multiselect",function(){function e(e){i(this,e);this.selectionChanged=o(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}e.prototype.handleToggleOption=function(e,i){var o;if(e.target.checked){this.selectedOptions=__spreadArray(__spreadArray([],this.selectedOptions,true),[i.value],false)}else{this.selectedOptions=this.selectedOptions.filter((function(e){return e!==i.value}))}(o=this.selectionChanged)===null||o===void 0?void 0:o.emit({selectedOptions:this.selectedOptions})};e.prototype.render=function(){var e=this;var i="verdocs-dropdown-".concat(s(8));return r(t,{key:"eafa54e1dae78058303d3b80391745f85cd3eae1",class:this.showPicker?"open":"closed"},r("label",{key:"a584b5df194714f0ac33cba4c249f5360ba61985"},this.label?r("div",{class:"input-label"},this.label+":"):r("div",null),r("div",{key:"ba8d22afa9a3b561906fc5866c7644ef8c6c9054",class:"input-wrapper"},r("button",{key:"517b669dc1a5a95cae442f316678068862e287b2",id:i,class:"trigger",value:"",onClick:function(){return e.showPicker=!e.showPicker}},this.selectedOptions.length===0?r("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((function(i){var o;return r("span",{class:"selected-option"},((o=e.options.find((function(e){return e.value===i})))===null||o===void 0?void 0:o.label)||"Unknown")}))),r("div",{key:"aee9c3f227a6637e4589cfb858e9219548c57661",class:"icon",innerHTML:this.showPicker?n:a}),this.showPicker&&r("div",{key:"6bd6ffc79bf6b09b31c7de4b367704fc1988e87d",class:"verdocs-multiselect-dropdown"},this.options.map((function(i,o){return r("div",{class:"option",onClick:function(){return e.showPicker=false}},r("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(o),value:i.value,checked:e.selectedOptions.includes(i.value),onInput:function(o){return e.handleToggleOption(o,i)}}),r("label",{htmlFor:"verdocs-multi-select-option-".concat(o)},i.label))}))))))};return e}());c.style=l}}}));
2
- //# sourceMappingURL=p-193b964f.system.entry.js.map
1
+ var __spreadArray=this&&this.__spreadArray||function(e,i,o){if(o||arguments.length===2)for(var r=0,t=i.length,s;r<t;r++){if(s||!(r in i)){if(!s)s=Array.prototype.slice.call(i,0,r);s[r]=i[r]}}return e.concat(s||Array.prototype.slice.call(i))};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk"],(function(e){"use strict";var i,o,r,t,s;return{setters:[function(e){i=e.r;o=e.c;r=e.h;t=e.H},function(e){s=e.randomString}],execute:function(){var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif;position:relative}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}verdocs-multiselect .verdocs-multiselect-dropdown{left:0;top:30px;width:210px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}verdocs-multiselect .verdocs-multiselect-dropdown .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-multiselect .verdocs-multiselect-dropdown label{font-size:13px}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';var a='<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="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>';var n='<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="m4.5 15.75 7.5-7.5 7.5 7.5" /></svg>';var c=e("verdocs_multiselect",function(){function e(e){i(this,e);this.selectionChanged=o(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}e.prototype.handleToggleOption=function(e,i){var o;if(e.target.checked){this.selectedOptions=__spreadArray(__spreadArray([],this.selectedOptions,true),[i.value],false)}else{this.selectedOptions=this.selectedOptions.filter((function(e){return e!==i.value}))}(o=this.selectionChanged)===null||o===void 0?void 0:o.emit({selectedOptions:this.selectedOptions})};e.prototype.render=function(){var e=this;var i="verdocs-dropdown-".concat(s(8));return r(t,{key:"ac5b224bc0d5f402b63b84dea01ee4a8f79afa17",class:this.showPicker?"open":"closed"},r("label",{key:"9c3f4a162b5b68769e3bb7d811c24d7019d5c5da"},this.label?r("div",{class:"input-label"},this.label+":"):r("div",null),r("div",{key:"9c719736987f035e57add5b4e2de29dfc7206b06",class:"input-wrapper"},r("button",{key:"c7f0790945fa6a2eb5f94beb64dcf45a88efcc49",id:i,class:"trigger",value:"",onClick:function(){return e.showPicker=!e.showPicker}},this.selectedOptions.length===0?r("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((function(i){var o;return r("span",{class:"selected-option"},((o=e.options.find((function(e){return e.value===i})))===null||o===void 0?void 0:o.label)||"Unknown")}))),r("div",{key:"d4703b256d8e9c8359433dbdf64c86f9fec3c706",class:"icon",innerHTML:this.showPicker?n:a}),this.showPicker&&r("div",{key:"c53ef02457953288741486d9565f9d7fe8b0a064",class:"verdocs-multiselect-dropdown"},this.options.map((function(i,o){return r("div",{class:"option",onClick:function(){return e.showPicker=false}},r("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(o),value:i.value,checked:e.selectedOptions.includes(i.value),onInput:function(o){return e.handleToggleOption(o,i)}}),r("label",{htmlFor:"verdocs-multi-select-option-".concat(o)},i.label))}))))))};return e}());c.style=l}}}));
2
+ //# sourceMappingURL=p-cd60348a.system.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js","./p-DzZgjFK8.system.js","./p-CrzDCQEM.system.js"],(function(t){"use strict";var o,e,n,i,r,a;return{setters:[function(t){o=t.r;e=t.h;n=t.H;i=t.g},function(t){r=t.c},function(t){a=t.V}],execute:function(){var c='@-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 button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.xsmall{height:26px;font-size:12px}verdocs-button button.xsmall .icon{margin:0 3px}verdocs-button button.xsmall .icon svg{margin:2px 0 0 0;height:18px}verdocs-button button.xsmall .button-label{padding:0 4px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var s=t("verdocs_button",function(){function t(t){o(this,t);this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return e("button",{key:"f4f06c9658a8d3dc63380bdc973bdfa96c60cca3",disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?e("span",{class:"icon start",innerHTML:this.startIcon}):null,e("span",{key:"6a46cd55ec51dec6efa13171a067d6fa15925af3",class:"button-label"},this.label),this.endIcon?e("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());s.style=c;var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:500;position:absolute;padding:5px 10px;font-size:12px;border-radius:4px;z-index:10005}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var d='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var u=t("verdocs_help_icon",function(){function t(t){o(this,t);this.text="";this.icon=d;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=r(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return e(n,{key:"7485e6e1c7ab3599fea27bced3b5823ec3e7ea60",class:{}},e("div",{key:"a3e61ca5b064a8c3771265d25dd4936b316e14db","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.iconEl=o}}),e("div",{key:"e0d8d0804f5bbe00dc8e42a4cfb0792c5a199fac",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},e("span",{key:"3cea984dcde9dd2147b3c39aa2f370b27cef9e70",innerHTML:this.text}),e("div",{key:"450dfa4f2e21aa84eb03f46cb356ad67edab2b87","data-popper-arrow":"true",class:"arrow"})))};return t}());u.style=l;var p='@-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-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-text-input .input-element:disabled{cursor:not-allowed;background:#aeb4bf;border:1px solid #33364b}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var h='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>';var 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="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /></svg>';var 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="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88" /></svg>';var g=t("verdocs_text_input",function(){function t(t){o(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.copyable=false;this.type="text";this.disabled=false;this.required=false;this.showingPw=false}t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return a("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return e(n,{key:"ee763adb876647c827c2b14d9cbd38f0ce572863",class:"input-field ".concat(this.clearable?"clearable":""," ").concat(this.copyable?"copyable":"")},e("label",{key:"a99576f4d9b70e5bfa828b8a7d644a283bae649f"},this.label&&e("div",{key:"58a9cf77e5f90b2d464ad536aa39aac587a187ca",class:"input-label"},this.label+":",this.required&&e("span",{key:"dfcc8adfc0a3d03b405b672ace6be96ad1843d71",class:"required"},"*")),e("div",{key:"0ea91268274cddcccba835138236827729606cd4",class:"input-container"},e("input",{key:"41d7f45f825e81e8d3c7a8d6c17ee1e770246abc",type:this.type==="password"&&this.showingPw?"text":this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(o){return t.inputEl=o},onInput:function(o){return t.value=o.target.value}}),this.clearable&&this.value&&e("span",{key:"96ce074a6277ee5b7bb3c444c8a03c213221c8e3",innerHTML:b,class:"clear",onClick:function(){setTimeout((function(){var o;t.value="";(o=t.inputEl)===null||o===void 0?void 0:o.setAttribute("value","");setTimeout((function(){var o,e;(o=t.inputEl)===null||o===void 0?void 0:o.dispatchEvent(new window.Event("focusout"));(e=t.inputEl)===null||e===void 0?void 0:e.blur()}),50)}),50)}}),this.type==="password"&&e("span",{key:"11367904c1e1de0ee31600ecfc0103c75df9e980",innerHTML:this.showingPw?v:f,class:"toggle-pw",onClick:function(){t.showingPw=!t.showingPw}}),!this.clearable&&this.copyable&&this.value&&e("span",{key:"5efb4dae407e58647d913a455fb41426c1bba154",innerHTML:h,class:"copy",onClick:function(){return t.copyToClipboard()}})),this.helpText&&e("verdocs-help-icon",{key:"ea873a050337d77f81942b351a70a0aaa49c3cf8",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());g.style=p}}}));
2
- //# sourceMappingURL=p-50c4a3da.system.entry.js.map
1
+ System.register(["./p-gAi_FRvp.system.js","./p-DzZgjFK8.system.js","./p-CrzDCQEM.system.js"],(function(t){"use strict";var o,e,n,i,r,a;return{setters:[function(t){o=t.r;e=t.h;n=t.H;i=t.g},function(t){r=t.c},function(t){a=t.V}],execute:function(){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-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.xsmall{height:26px;font-size:12px}verdocs-button button.xsmall .icon{margin:0 3px}verdocs-button button.xsmall .icon svg{margin:2px 0 0 0;height:18px}verdocs-button button.xsmall .button-label{padding:0 4px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var c=t("verdocs_button",function(){function t(t){o(this,t);this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return e("button",{key:"a9fda6c84686607ca0490df06a75818c3f884e75",disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?e("span",{class:"icon start",innerHTML:this.startIcon}):null,e("span",{key:"cec4cceb49668cc2c38bcd9cda08b5611e8962fd",class:"button-label"},this.label),this.endIcon?e("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());c.style=s;var l='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:500;position:absolute;padding:5px 10px;font-size:12px;border-radius:4px;z-index:10005}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var d='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var u=t("verdocs_help_icon",function(){function t(t){o(this,t);this.text="";this.icon=d;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=r(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return e(n,{key:"0b905cfd95b07050b34bf1587736871a66637210",class:{}},e("div",{key:"92a0c44d55c69d683c72b90ec8c309becde3a139","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.iconEl=o}}),e("div",{key:"f4de7382924d142eb17c4182ae62664840899b98",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},e("span",{key:"a234a362f265a9cf1bb5e80f2b2153bc0330bb84",innerHTML:this.text}),e("div",{key:"cdb2986f346829a29dca06a63ae6c27b47361e9e","data-popper-arrow":"true",class:"arrow"})))};return t}());u.style=l;var p='@-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-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:34px;padding:0 9px;outline:none}verdocs-text-input .input-element:disabled{cursor:not-allowed;background:#aeb4bf;border:1px solid #33364b}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';var b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var h='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>';var 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="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /></svg>';var 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="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88" /></svg>';var g=t("verdocs_text_input",function(){function t(t){o(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.copyable=false;this.type="text";this.disabled=false;this.required=false;this.showingPw=false}t.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return a("Copied!")})).catch((function(t){return console.log("Error copying to clipboard",t)}))};t.prototype.render=function(){var t=this;return e(n,{key:"f22cf456e27a0199331d6ea8eeeda4856a1b71be",class:"input-field ".concat(this.clearable?"clearable":""," ").concat(this.copyable?"copyable":"")},e("label",{key:"4c59d29f8cb68e4ed8431490792e7e8e8d3d3a69"},this.label&&e("div",{key:"26409f21e216aba69e7fbaf8bc610c467381e2b8",class:"input-label"},this.label+":",this.required&&e("span",{key:"9d22b7a8ea5adddb78d29e3e949beb7ff11aa2ce",class:"required"},"*")),e("div",{key:"771e0be5291a0390065f49445615c6f446013346",class:"input-container"},e("input",{key:"f956100127dd6df5f61425f3b549fc27eeafc5da",type:this.type==="password"&&this.showingPw?"text":this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(o){return t.inputEl=o},onInput:function(o){return t.value=o.target.value}}),this.clearable&&this.value&&e("span",{key:"521d5f77bb57a80a444dd82a79a29a49348f420b",innerHTML:b,class:"clear",onClick:function(){setTimeout((function(){var o;t.value="";(o=t.inputEl)===null||o===void 0?void 0:o.setAttribute("value","");setTimeout((function(){var o,e;(o=t.inputEl)===null||o===void 0?void 0:o.dispatchEvent(new window.Event("focusout"));(e=t.inputEl)===null||e===void 0?void 0:e.blur()}),50)}),50)}}),this.type==="password"&&e("span",{key:"c670578c14e4483712d54e166a34ff90eb703cb4",innerHTML:this.showingPw?f:v,class:"toggle-pw",onClick:function(){t.showingPw=!t.showingPw}}),!this.clearable&&this.copyable&&this.value&&e("span",{key:"f6d2762ff285d49360d2f9ad2da66e551380fcd7",innerHTML:h,class:"copy",onClick:function(){return t.copyToClipboard()}})),this.helpText&&e("verdocs-help-icon",{key:"4a83f453e23089a49abff49aa3b5d197c3189dc3",text:this.helpText})))};Object.defineProperty(t.prototype,"hostEl",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());g.style=p}}}));
2
+ //# sourceMappingURL=p-ce2336aa.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,h as t,H as r}from"./p-CF7i8guW.js";const i="verdocs-spinner{display:inline-block;border-radius:50%;-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";const s={border:"3px solid rgba(255, 255, 255, 0.3)",borderTopColor:"#fff"};const o={border:"3px solid rgba(0, 0, 0, 0.3)",borderTopColor:"#333"};const n=class{constructor(t){e(this,t);this.size=32;this.mode="light"}render(){return t(r,{key:"3e3b086572b13db42ff06eeae44e525bd7228c7e",style:{width:`${this.size}px`,height:`${this.size}px`,flex:`0 0 ${this.size}px`,...this.mode==="light"?s:o}})}};n.style=i;export{n as verdocs_spinner};
2
- //# sourceMappingURL=p-a3354a48.entry.js.map
1
+ import{r as t,h as e,H as r}from"./p-CF7i8guW.js";const i="verdocs-spinner{display:inline-block;border-radius:50%;-webkit-animation:spin 1s ease-in-out infinite;animation:spin 1s ease-in-out infinite}@keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}";const s={border:"3px solid rgba(255, 255, 255, 0.3)",borderTopColor:"#fff"};const o={border:"3px solid rgba(0, 0, 0, 0.3)",borderTopColor:"#333"};const n=class{constructor(e){t(this,e);this.size=32;this.mode="light"}render(){return e(r,{key:"335641f6984681e976a14e02f973413eabb612c9",style:{width:`${this.size}px`,height:`${this.size}px`,flex:`0 0 ${this.size}px`,...this.mode==="light"?s:o}})}};n.style=i;export{n as verdocs_spinner};
2
+ //# sourceMappingURL=p-d1e99a40.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js"],(function(r){"use strict";var o,e,a;return{setters:[function(r){o=r.r;e=r.h;a=r.H}],execute:function(){var n='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var t=r("verdocs_template_tags",function(){function r(r){o(this,r)}r.prototype.render=function(){var r;return e(a,{key:"e754a66c64713a7b01c072b1becd919d9768ac66"},(r=this.tags)===null||r===void 0?void 0:r.map((function(r){return e("span",null,r)})))};return r}());t.style=n}}}));
2
- //# sourceMappingURL=p-56c75804.system.entry.js.map
1
+ System.register(["./p-gAi_FRvp.system.js"],(function(r){"use strict";var o,e,n;return{setters:[function(r){o=r.r;e=r.h;n=r.H}],execute:function(){var t='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var a=r("verdocs_template_tags",function(){function r(r){o(this,r)}r.prototype.render=function(){var r;return e(n,{key:"2a01399c4c49e7b2c8046d9e4f7dd30067732040"},(r=this.tags)===null||r===void 0?void 0:r.map((function(r){return e("span",null,r)})))};return r}());a.style=t}}}));
2
+ //# sourceMappingURL=p-d2a4aedb.system.entry.js.map
@@ -1,2 +1,2 @@
1
- System.register(["./p-gAi_FRvp.system.js"],(function(t){"use strict";var o,e,n,r;return{setters:[function(t){o=t.r;e=t.c;n=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 s=t("verdocs_toggle_button",function(){function t(t){o(this,t);this.toggle=e(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 e=!this._active;this._active=e;(o=this.toggle)===null||o===void 0?void 0:o.emit({active:e})};t.prototype.render=function(){var t=this;return n(r,{key:"366717b66ead7de50d95723e47dffd38e9676301",class:"size-".concat(this.size)},this.icon?n("button",{innerHTML:this.icon,class:{active:this._active},onClick:function(o){return t.handleToggle(o)}}):n("button",{class:{active:this._active},onClick:function(o){return t.handleToggle(o)}},this.label))};return t}());s.style=i}}}));
2
- //# sourceMappingURL=p-a4320fdc.system.entry.js.map
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
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as t,H as s,F as o}from"./p-CF7i8guW.js";import{VerdocsEndpoint as n,startSigningSession as a,envelopeRecipientAgree as l,envelopeRecipientDecline as r,updateEnvelopeField as d,createSignature as c,updateEnvelopeFieldSignature as h,createInitials as p,updateEnvelopeFieldInitials as u,isValidPhone as g,isValidEmail as v,sortFields as f,envelopeRecipientSubmit as m,getEnvelope as x,uploadEnvelopeFieldAttachment as b,deleteEnvelopeFieldAttachment as y,formatFullName as w,fullNameToInitials as k,verifySigner as S,delegateRecipient as N,integerSequence as I}from"@verdocs/js-sdk";import{a as G,u as D,g as F,r as P}from"./p-fL0BKEnm.js";import{D as z}from"./p-C_Xku1v2.js";import{V as T}from"./p-CyvDgtoV.js";import{S as E}from"./p-C1sRVZWv.js";import{S as R}from"./p-DmsV595e.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";const V='@-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 .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}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}verdocs-sign .disclosure-buttons verdocs-button{margin:0 12px 0 0}@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}';const 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>`;const A=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const C=[{id:"print",label:"Print"},{id:"download",label:"Download"}];const L=class{constructor(t){e(this,t);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.disclosure=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}componentWillLoad(){if(!this.endpoint){console.log("[SIGN] Creating signing endpoint");this.endpoint=new n({sessionType:"signing"})}}async componentDidLoad(){var e,i,t,s,o,n;if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new E("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new E("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new E("[SIGN] Missing required inviteCode",500,""));return}try{console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const e=await a(this.endpoint,this.envelopeId,this.roleId,this.inviteCode);console.log("[SIGN] Authentication successful",e);this.processAuthResponse(e)}catch(e){console.log("[SIGN] Error with signing session",e);(s=this.sdkError)===null||s===void 0?void 0:s.emit(new E(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(n=e.response)===null||n===void 0?void 0:n.data));this.showLoadError=true}}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-sign-header");if(e&&i){console.log("[SIGN] Moving header");i.remove();e.append(i)}}processAuthResponse(e){var i,t,s;const{envelope:o,recipient:n}=e;const{auth_step:a}=n;this.recipient=n;this.envelope=o;this.disclosure=((t=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||t===void 0?void 0:t.disclaimer)||q;this.authStep=a;this.delegated=!!n.delegated_to;this.agreed=n.agreed;this.submitted=n.status==="submitted";this.isDone=this.submitted;this.showDone=this.submitted;R.updateEnvelope(this.envelopeId,o);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=n.auth_method_states||{};this.kbaQuestions=n.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(n.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();(s=this.envelopeLoaded)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope})}handleClickAgree(){this.submitting=true;l(this.endpoint,this.envelopeId,this.roleId,true,this.disclosure).then((()=>{var e;this.nextButtonLabel="Next";this.recipient.agreed=true;this.submitting=false;this.agreed=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var i,t,s;console.log("[SIGN] Update failure",e);this.submitting=false;(i=this.sdkError)===null||i===void 0?void 0:i.emit(new E(e.message,(t=e.response)===null||t===void 0?void 0:t.status,(s=e.response)===null||s===void 0?void 0:s.data))}))}async handleOptionSelected(e){var i,t,s,o,n;switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"claim":T("This feature will be available in an upcoming release.");(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});break;case"decline":{this.submitting=true;const e=await r(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Decline result",e);(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}break;case"print":window.print();(o=this.envelopeUpdated)===null||o===void 0?void 0:o.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){G(this.endpoint,this.envelope,e.id).catch((e=>{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}}updateRecipientFieldValue(e,i){console.log("[SIGN] updateRecipientFieldValue",e,i);this.getRecipientFields().forEach((t=>{if(t.name===e){t.value=i.value;t.settings=i.settings;D(t);this.checkRecipientFields()}}))}saveFieldChange(e,i){console.log("[SIGN] saveFieldChange",e,i);d(this.endpoint,this.envelopeId,e,i).then((i=>this.updateRecipientFieldValue(e,i))).catch((e=>{var i,t,s,o,n,a;if(((i=e.response)===null||i===void 0?void 0:i.status)===401&&((s=(t=e.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");this.fatalErrorHeader="Signing Session Expired";this.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new E(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(a=e.response)===null||a===void 0?void 0:a.data))}))}async handleFieldChange(e,i){const{value:t,checked:s}=i.target;switch(e.type){case"textarea":case"textbox":return this.saveFieldChange(e.name,{prepared:false,value:t});case"checkbox":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"radio":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"dropdown":console.log("Saving dropdown",e.name,i.detail);return this.saveFieldChange(e.name,{prepared:false,value:i.detail});case"initial":if(!i.detail){return}this.showSpinner=true;const o=await(await fetch(i.detail)).blob();return p(this.endpoint,"initial",o).then((async i=>{const t=await u(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);this.showSpinner=false}));case"signature":if(!i.detail){return}this.showSpinner=true;const n=await(await fetch(i.detail)).blob();return c(this.endpoint,"signature",n).then((async i=>{console.log("Signature update result",i);const t=await h(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.warn("[SIGN] Error updating signature",e);this.showSpinner=false}));case"date":const{formattedDate:a}=i.detail;if(a){return this.saveFieldChange(e.name,{prepared:false,value:a})}break;case"timestamp":console.log("[SIGN] Updating timestamp",{value:t,ts:i.target.getAttribute("timestamp")});break;default:console.log("[SIGN] Unhandled field update",{value:t,checked:s},e);break}}isFieldFilled(e){const{value:i=""}=e;switch(e.type){case"textarea":case"textbox":switch(e.validator||""){case"email":return v(i);case"phone":return g(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((i=>i.group===e.group)).some((e=>e.value==="true"))}return e.value==="true";default:return false}}isFieldValid(e){return!e.required||this.isFieldFilled(e)}getSortedFillableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"));f(e);return e}async handleNext(){var e;if(this.nextSubmits){try{(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;const i=await m(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Submitted successfully",i);this.recipient.status="submitted";this.showDone=true;console.log("[SIGN] Reloading envelope");x(this.endpoint,this.envelopeId).then((e=>{this.envelope=e;this.submitting=false})).catch((e=>{console.log("[SIGN] Error reloading envelope",e);this.submitting=false}))}catch(e){console.log("[SIGN] Error submitting",e)}return}const i=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldFilled(e)));f(i);const t=i.findIndex((e=>e.name===this.focusedField));let s=t+1;if(s>=i.length){s=0}let o=i[s];let n=0;if(n<i.length&&["signature","initial"].includes(o.type)&&["initialed","signed"].includes(o.value)){n++;s++;if(s>=i.length){s=0}o=i[s]}if(n>=i.length){o=null}if(o){const e=F(o);const i=document.getElementById(e);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth"});i===null||i===void 0?void 0:i.focusField();this.focusedField=o.name}}getRecipientFields(){return this.envelope.fields.filter((e=>e.role_name===this.recipient.role_name))}checkRecipientFields(){const e=this.getRecipientFields().filter((e=>!this.isFieldValid(e)));if(e.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{console.log("[SIGN] Invalid fields remaining",e.map((e=>e.name)));this.nextButtonLabel="Next";this.nextSubmits=false}}attachFieldAttributes(e,i,t){if(t.getAttribute("attached")==="1"){return}t.setAttribute("attached","1");t.addEventListener("input",(e=>{if(e.target.type==="radio"||e.target.type==="checkbox"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}else{this.checkRecipientFields()}}));t.addEventListener("attached",(async t=>{console.log("[SIGN] onAttached",t.detail,t.target.value);this.showSpinner=true;try{const s=await b(this.endpoint,this.envelopeId,i.name,t.detail);this.updateRecipientFieldValue(i.name,s);this.checkRecipientFields();const o=P("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,o);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);T("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("deleted",(async t=>{console.log("[SIGN] onDeleted",t.detail,t.target.value);this.showSpinner=true;try{const t=await y(this.endpoint,this.envelopeId,i.name);console.log("[SIGN] Deleted attachment",t);this.updateRecipientFieldValue(i.name,t);this.checkRecipientFields();const s=P("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,s);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);T("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("focusout",(e=>{if(i.type!=="dropdown"&&i.type!=="attachment"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}}));t.addEventListener("fieldChange",(e=>{this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}));t.setAttribute("templateid",this.envelope.template_id);t.setAttribute("fieldname",i.name);t.setAttribute("page",e.pageNumber);t.setAttribute("xScale",e.xScale);t.setAttribute("yScale",e.yScale);const s=w(this.recipient);t.setAttribute("initials",k(s));t.setAttribute("name",s)}handlePageRendered(e){const i=e.detail;const t=this.getSortedFillableFields();console.log("[SIGN] Rendering fields for page",i.pageNumber,t);t.forEach(((e,t)=>{if(e.page!==i.pageNumber){return}const s=P("envelope",e,i,{disabled:false,editable:false,draggable:false,done:this.isDone},t);if(!s){return}if(Array.isArray(s)){s.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,s)}}));this.envelope.recipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending"))).forEach((()=>{this.getRecipientFields().filter((e=>e.page===i.pageNumber)).forEach((e=>{const t=P("envelope",e,i,{disabled:true,editable:false,draggable:false,done:this.isDone});if(!t){return}if(Array.isArray(t)){t.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,t)}}))}));this.checkRecipientFields()}handleAuthenticateSigner(e){console.log("[SIGN] Submitting authentication step",e);S(this.endpoint,e).then((e=>{console.log("[SIGN] Verification successful",e);this.processAuthResponse(e)})).catch((e=>{var i,t,s,o,n;console.log("[SIGN] Error submitting authentication step",e);if((s=(t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)===null||s===void 0?void 0:s.includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{T(((n=(o=e.response)===null||o===void 0?void 0:o.data)===null||n===void 0?void 0:n.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))}render(){var e;console.log("[SIGN] Rendering",{authStep:this.authStep});if(this.showLoadError){return t(s,null,t("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:()=>{window.location.reload()}}))}if(!this.envelope){return t(s,null,t("verdocs-loader",null))}if(this.fatalErrorMessage){return t(s,{class:{agreed:this.agreed}},t("div",{class:"fatal-error"},t("div",{class:"message"},t("div",{class:"header"},this.fatalErrorHeader),t("p",null,this.fatalErrorMessage))))}if(this.delegated){return t(s,{class:{agreed:false}},t("div",{class:"fatal-error"},t("div",{class:"message"},t("div",{class:"header"},"Delegated Signing Request"),t("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return t(s,{class:{agreed:this.agreed}},t("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var i;return(i=this.sdkError)===null||i===void 0?void 0:i.emit(e.detail)}}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",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.`,onNext:e=>{e.preventDefault();e.stopPropagation();this.showDone=false;this.isDone=true}}),this.submitting&&t("div",{class:"loading-indicator"},t("verdocs-loader",null)))}if(this.delegating){return t("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:()=>this.delegating=false,onNext:e=>{N(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{T("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",e);this.delegated=true;this.delegating=false})).catch((e=>{console.log("[SIGN] Error delegating request",e);T("Unable to process delegation request. Please try again later.",{style:"error"})}))}})}if(this.declining){return t("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:()=>this.declining=false,onNext:()=>{r(this.endpoint,this.envelopeId,this.roleId).then((e=>{console.log("[SIGN] Decline result",e);window.location.reload()})).catch((e=>console.warn("[SIGN] Error declining signing session",e)))}})}if(!this.agreed){return t(s,{class:"agreed"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("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"})),t("div",{class:"cover"},t("div",{class:"agree"},t("verdocs-checkbox",{name:"agree",label:"By checking this box, you:",onInput:()=>this.handleClickAgree()}),t("div",{innerHTML:this.disclosure}),t("div",{class:"disclosure-buttons"},t("h5",null,"Other Options:"),t("verdocs-button",{variant:"outline",label:"Decline",onClick:()=>this.declining=true}),((e=this.recipient)===null||e===void 0?void 0:e.delegator)&&t("verdocs-button",{variant:"outline",label:"Delegate",onClick:()=>this.delegating=true})))))}if(this.authStep==="passcode"){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("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"})),t("div",{class:"cover"},t("div",{class:"kba"},t("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:e=>this.handleAuthenticateSigner({auth_method:"passcode",code:e.detail})}))))}if(this.authStep==="email"){return t("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:async e=>{this.processAuthResponse(e.detail.response)}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("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"})),t("div",{class:"cover"},t("div",{class:"kba"},t("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:async e=>{const i=e.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:i.first_name,last_name:i.last_name,address:i.address,city:i.city,state:i.state,zip:i.zip,dob:i.dob})}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){const e=this.kbaChoices.length;const i=this.kbaQuestions[e];return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("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"})),t("div",{class:"cover"},t("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?t("verdocs-spinner",null):t("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:e+1,steps:this.kbaQuestions.length,onNext:async e=>{const i=e.detail;this.kbaChoices=[...this.kbaChoices,i];if(this.kbaChoices.length>=this.kbaQuestions.length){const e=this.kbaQuestions.map(((e,i)=>({type:e.type,answer:this.kbaChoices[i]})));console.log("Submitting KBA responses",this.kbaChoices,e);this.handleAuthenticateSigner({auth_method:"kba",responses:e})}}}))))}return t(s,null,t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name),t("div",{style:{flex:"1"}}),!this.finishLater&&t("verdocs-button",{size:"xsmall",label:this.nextButtonLabel,disabled:!this.agreed||this.submitting,onClick:()=>this.handleNext()}),t("div",{style:{marginLeft:"10px"}}),t("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?A:C,onOptionSelected:e=>this.handleOptionSelected(e)}))),t("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((e=>{const i=I(1,e.pages);return t(o,null,i.map((i=>{var s;const o=((s=e.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return t("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&t("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>this.showFinishLater=false}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",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.`,onNext:()=>{this.showDone=false;this.isDone=true}}),this.submitting||this.showSpinner&&t("verdocs-portal",null,t("div",{class:"spinner-overlay"},t("verdocs-spinner",null))))}};L.style=V;export{L as verdocs_sign};
2
+ //# sourceMappingURL=p-e3414fba.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsSignCss","DEFAULT_DISCLOSURE","inProgressMenuOptions","id","label","doneMenuOptions","VerdocsSign","constructor","hostRef","this","endpoint","DefaultEndpoint","envelopeId","roleId","inviteCode","headerTargetId","recipient","hasSignature","nextButtonLabel","nextSubmits","fatalErrorHeader","fatalErrorMessage","focusedField","disclosure","submitting","submitted","isDone","showDone","showLoadError","finishLater","showFinishLater","agreed","documentsSingularPlural","authStep","authMethodStates","kbaQuestions","showSpinner","declining","delegating","delegated","kbaChoices","loading","envelope","componentWillLoad","console","log","VerdocsEndpoint","sessionType","componentDidLoad","_a","sdkError","emit","SDKError","_b","_c","response","startSigningSession","processAuthResponse","e","_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","envelopeRecipientAgree","then","envelopeUpdated","event","catch","handleOptionSelected","detail","VerdocsToast","declineResult","envelopeRecipientDecline","window","print","firstDoc","find","doc","type","saveAttachment","updateRecipientFieldValue","fieldName","updateResult","getRecipientFields","forEach","oldField","name","value","settings","updateDocumentFieldValue","saveFieldChange","fields","updateEnvelopeField","error","handleFieldChange","field","checked","target","prepared","String","initialsBlob","fetch","blob","createInitials","async","newInitials","updateEnvelopeFieldInitials","signatureBlob","createSignature","newSignature","updateEnvelopeFieldSignature","warn","formattedDate","ts","getAttribute","isFieldFilled","validator","isValidEmail","isValidPhone","trim","group","filter","f","some","isFieldValid","required","getSortedFillableFields","recipientFields","sortFields","handleNext","result","envelopeRecipientSubmit","getEnvelope","emptyFields","focusedIndex","findIndex","nextFocusedIndex","nextRequiredField","skips","getFieldId","el","scrollIntoView","behavior","focusField","role_name","invalidFields","map","attachFieldAttributes","pageInfo","setAttribute","addEventListener","finally","uploadEnvelopeFieldAttachment","newEl","renderDocumentField","disabled","editable","draggable","done","style","deleteEnvelopeFieldAttachment","template_id","pageNumber","xScale","yScale","fullName","formatFullName","fullNameToInitials","handlePageRendered","tabIndex","page","Array","isArray","recipients","r","handleAuthenticateSigner","params","verifySigner","render","h","Host","heading","buttonLabel","onNext","location","reload","class","onSdkError","preventDefault","stopPropagation","onExit","delegateRecipient","showCancel","src","alt","paddingTop","width","height","boxShadow","marginTop","onInput","innerHTML","variant","onClick","delegator","mode","step","steps","placeholder","helptitle","helptext","auth_method","code","method","kba","recipDetails","first_name","last_name","address","city","state","zip","dob","questionNumber","kbaQuestion","prompt","choices","answer","responses","q","i","flex","size","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 .agree {\n flex: 0;\n width: 600px;\n display: flex;\n max-width: 90%;\n padding: 30px 15px;\n flex-direction: column;\n background-color: #ffffff;\n\n .header {\n flex: 0 0 56px;\n }\n\n li {\n margin: 0.5em 0;\n }\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 .disclosure-buttons {\n verdocs-button {\n margin: 0 12px 0 0;\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 {updateEnvelopeField, sortFields, IKBAQuestion, ISignerTokenResponse, delegateRecipient} from '@verdocs/js-sdk';\nimport {Event, EventEmitter, Host, Fragment, Component, Prop, State, h} from '@stencil/core';\nimport {verifySigner, IEnvelope, IEnvelopeField, IRecipient, TAuthenticateRecipientRequest} from '@verdocs/js-sdk';\nimport {getEnvelope, integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials} from '@verdocs/js-sdk';\nimport {fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, formatFullName} 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_DISCLOSURE = `\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\nconst 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\nconst doneMenuOptions = [\n {id: 'print', label: 'Print'},\n {id: 'download', label: 'Download'},\n];\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() disclosure = DEFAULT_DISCLOSURE;\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 console.log('[SIGN] Authentication successful', response);\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.disclosure = this.envelope?.organization?.disclaimer || DEFAULT_DISCLOSURE;\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 envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, true, this.disclosure)\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] Update failure', e);\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 'claim':\n VerdocsToast('This feature will be available in an upcoming release.');\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'claimed'});\n break;\n\n case 'decline':\n {\n this.submitting = true;\n const declineResult = await envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Decline result', declineResult);\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'declined'});\n this.submitting = false;\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download':\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 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 }\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 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 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 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 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 console.log(\n '[SIGN] Invalid fields remaining',\n invalidFields.map(field => field.name),\n );\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 console.log('[SIGN] Rendering', {authStep: this.authStep});\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 <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 );\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 => console.warn('[SIGN] Error declining signing session', e));\n }}\n />\n );\n }\n\n if (!this.agreed) {\n return (\n <Host class=\"agreed\">\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=\"agree\">\n <verdocs-checkbox name=\"agree\" label=\"By checking this box, you:\" onInput={() => this.handleClickAgree()} />\n <div innerHTML={this.disclosure} />\n\n <div class=\"disclosure-buttons\">\n <h5>Other Options:</h5>\n <verdocs-button variant=\"outline\" label=\"Decline\" onClick={() => (this.declining = true)} />\n {this.recipient?.delegator && <verdocs-button variant=\"outline\" label=\"Delegate\" onClick={() => (this.delegating = true)} />}\n </div>\n </div>\n </div>\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 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 ||\n (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":"62BAAA,MAAMA,EAAiB,wjICcvB,MAAMC,EAAqB,2hBAgB3B,MAAMC,EAAwB,CAC5B,CAACC,GAAI,QAASC,MAAO,gBAErB,CAACD,GAAI,UAAWC,MAAO,mBACvB,CAACD,GAAI,QAASC,MAAO,yBACrB,CAACD,GAAI,WAAYC,MAAO,aAG1B,MAAMC,EAAkB,CACtB,CAACF,GAAI,QAASC,MAAO,SACrB,CAACD,GAAI,WAAYC,MAAO,a,MAmCbE,EAAW,MALxB,WAAAC,CAAAC,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,GAC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