@verdocs/web-sdk 5.3.5 → 5.4.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 (658) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +1 -1
  2. package/dist/cjs/{index-Be9PlTB7.js → index-B2lA-USD.js} +172 -115
  3. package/dist/cjs/index-B2lA-USD.js.map +1 -0
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  6. package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +47 -10
  11. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  12. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  13. package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -1
  15. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +7 -3
  16. package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js.map +1 -1
  17. package/dist/cjs/verdocs-dialog.verdocs-ok-dialog.entry.cjs.js.map +1 -0
  18. package/dist/cjs/verdocs-dialog_2.cjs.entry.js +77 -0
  19. package/dist/cjs/verdocs-dialog_2.cjs.entry.js.map +1 -0
  20. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
  26. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +4 -4
  27. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  29. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  30. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  35. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  36. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-sign.cjs.entry.js +38 -23
  39. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  40. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  41. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -3
  43. package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -2
  46. package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  48. package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
  49. package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
  50. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  51. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  52. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  53. package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
  54. package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
  55. package/dist/collection/collection-manifest.json +1 -1
  56. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +1 -1
  57. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +26 -2
  58. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js.map +1 -1
  59. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  60. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +23 -37
  61. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +3 -3
  62. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js.map +1 -1
  63. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  64. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  65. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  66. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  67. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  68. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +39 -24
  69. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  70. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +1 -1
  71. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  72. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  73. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  74. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  75. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  76. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  77. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  78. package/dist/components/index.js +1 -1
  79. package/dist/components/{p-CZcjG946.js → p-AQsHwZ27.js} +36 -30
  80. package/dist/components/p-AQsHwZ27.js.map +1 -0
  81. package/dist/components/{p-BCfTxJfb.js → p-B0-ZXlBg.js} +4 -4
  82. package/dist/components/{p-BCfTxJfb.js.map → p-B0-ZXlBg.js.map} +1 -1
  83. package/dist/components/{p-IhdX5vVL.js → p-BGZ_owBm.js} +4 -4
  84. package/dist/components/{p-IhdX5vVL.js.map → p-BGZ_owBm.js.map} +1 -1
  85. package/dist/components/{p-_nUQ5iEk.js → p-BNrp2UP2.js} +4 -4
  86. package/dist/components/{p-_nUQ5iEk.js.map → p-BNrp2UP2.js.map} +1 -1
  87. package/dist/components/{p-CVkbflKM.js → p-BQW1cLII.js} +4 -4
  88. package/dist/components/{p-CVkbflKM.js.map → p-BQW1cLII.js.map} +1 -1
  89. package/dist/components/{p-DHl4c1oa.js → p-BR7qeKJV.js} +18 -12
  90. package/dist/components/p-BR7qeKJV.js.map +1 -0
  91. package/dist/components/{p-zOGAwuLP.js → p-BV7xEuMw.js} +4 -4
  92. package/dist/components/{p-zOGAwuLP.js.map → p-BV7xEuMw.js.map} +1 -1
  93. package/dist/components/{p-BHu8qhRh.js → p-BdSDDira.js} +4 -4
  94. package/dist/components/{p-BHu8qhRh.js.map → p-BdSDDira.js.map} +1 -1
  95. package/dist/components/{p-vZUBjvdn.js → p-BeSHNILk.js} +13 -13
  96. package/dist/components/{p-vZUBjvdn.js.map → p-BeSHNILk.js.map} +1 -1
  97. package/dist/components/{p-CfqdAcYb.js → p-Bhib7RyH.js} +4 -4
  98. package/dist/components/{p-CfqdAcYb.js.map → p-Bhib7RyH.js.map} +1 -1
  99. package/dist/components/{p-DBxWj2lt.js → p-Bn-A1NMA.js} +12 -7
  100. package/dist/components/p-Bn-A1NMA.js.map +1 -0
  101. package/dist/components/{p-BakshEO1.js → p-Boia1Nbz.js} +4 -4
  102. package/dist/components/{p-BakshEO1.js.map → p-Boia1Nbz.js.map} +1 -1
  103. package/dist/components/{p-Cexe1-Oo.js → p-Bv-L0hsU.js} +4 -4
  104. package/dist/components/{p-Cexe1-Oo.js.map → p-Bv-L0hsU.js.map} +1 -1
  105. package/dist/components/{p-DbwkPoha.js → p-C1nftqjj.js} +8 -8
  106. package/dist/components/{p-DbwkPoha.js.map → p-C1nftqjj.js.map} +1 -1
  107. package/dist/components/{p-B7buybCz.js → p-C2M87N-a.js} +4 -4
  108. package/dist/components/{p-B7buybCz.js.map → p-C2M87N-a.js.map} +1 -1
  109. package/dist/components/p-CQ-UXlBO.js +78 -0
  110. package/dist/components/p-CQ-UXlBO.js.map +1 -0
  111. package/dist/components/{p-Bswg8Fe8.js → p-CRR4fTl9.js} +13 -13
  112. package/dist/components/{p-Bswg8Fe8.js.map → p-CRR4fTl9.js.map} +1 -1
  113. package/dist/components/{p-Cswo_Apj.js → p-CTzrE2_W.js} +24 -18
  114. package/dist/components/p-CTzrE2_W.js.map +1 -0
  115. package/dist/components/{p-DAelmHnU.js → p-CUf9tCwr.js} +7 -7
  116. package/dist/components/{p-DAelmHnU.js.map → p-CUf9tCwr.js.map} +1 -1
  117. package/dist/components/{p-DN1cBTs0.js → p-CZTe2XIO.js} +4 -4
  118. package/dist/components/{p-DN1cBTs0.js.map → p-CZTe2XIO.js.map} +1 -1
  119. package/dist/components/{p-BDmKp20X.js → p-C_SISdpZ.js} +5 -5
  120. package/dist/components/{p-BDmKp20X.js.map → p-C_SISdpZ.js.map} +1 -1
  121. package/dist/components/{p-DZ3TxFzS.js → p-CcglHGeY.js} +14 -8
  122. package/dist/components/p-CcglHGeY.js.map +1 -0
  123. package/dist/components/{p-CJIN0YXw.js → p-Clt27_Qj.js} +13 -13
  124. package/dist/components/{p-CJIN0YXw.js.map → p-Clt27_Qj.js.map} +1 -1
  125. package/dist/components/{p-I_twwI6N.js → p-Cmm_Efcd.js} +38 -32
  126. package/dist/components/p-Cmm_Efcd.js.map +1 -0
  127. package/dist/components/{p-2WUcCzQq.js → p-CozA58e8.js} +6 -6
  128. package/dist/components/{p-2WUcCzQq.js.map → p-CozA58e8.js.map} +1 -1
  129. package/dist/components/{p-9HvXJwEq.js → p-CqjH6KjT.js} +4 -4
  130. package/dist/components/{p-9HvXJwEq.js.map → p-CqjH6KjT.js.map} +1 -1
  131. package/dist/components/{p-dDTMckyL.js → p-Cy-AXBKH.js} +4 -4
  132. package/dist/components/{p-dDTMckyL.js.map → p-Cy-AXBKH.js.map} +1 -1
  133. package/dist/components/{p-CFBQG_2F.js → p-D-GZw56Q.js} +13 -13
  134. package/dist/components/{p-CFBQG_2F.js.map → p-D-GZw56Q.js.map} +1 -1
  135. package/dist/components/{p-cuwa7Els.js → p-D16h8pzh.js} +154 -105
  136. package/dist/components/p-D16h8pzh.js.map +1 -0
  137. package/dist/components/{p-Cry7waUN.js → p-D646hJvk.js} +8 -8
  138. package/dist/components/{p-Cry7waUN.js.map → p-D646hJvk.js.map} +1 -1
  139. package/dist/components/{p-IPJtUL3R.js → p-D9UxTdE4.js} +12 -12
  140. package/dist/components/{p-IPJtUL3R.js.map → p-D9UxTdE4.js.map} +1 -1
  141. package/dist/components/{p-DAGrOW1D.js → p-DB6zetGN.js} +7 -7
  142. package/dist/components/{p-DAGrOW1D.js.map → p-DB6zetGN.js.map} +1 -1
  143. package/dist/components/{p-6dn6bTF-.js → p-DCaVuows.js} +37 -31
  144. package/dist/components/p-DCaVuows.js.map +1 -0
  145. package/dist/components/{p-pXqgg9BU.js → p-DDTha7DK.js} +5 -5
  146. package/dist/components/{p-pXqgg9BU.js.map → p-DDTha7DK.js.map} +1 -1
  147. package/dist/components/{p--hL4T8Ae.js → p-DF8La-N2.js} +13 -13
  148. package/dist/components/{p--hL4T8Ae.js.map → p-DF8La-N2.js.map} +1 -1
  149. package/dist/components/{p-xbfIS4ny.js → p-DMCUZ4ju.js} +5 -5
  150. package/dist/components/{p-xbfIS4ny.js.map → p-DMCUZ4ju.js.map} +1 -1
  151. package/dist/components/{p-DMYs4VZa.js → p-DNcLDxgP.js} +5 -5
  152. package/dist/components/{p-DMYs4VZa.js.map → p-DNcLDxgP.js.map} +1 -1
  153. package/dist/components/{p-Cbg7a3HQ.js → p-DepyvOoM.js} +14 -14
  154. package/dist/components/{p-Cbg7a3HQ.js.map → p-DepyvOoM.js.map} +1 -1
  155. package/dist/components/{p-BRC3PsLk.js → p-DkUmJk0T.js} +11 -11
  156. package/dist/components/{p-BRC3PsLk.js.map → p-DkUmJk0T.js.map} +1 -1
  157. package/dist/components/{p-BnMAPkKT.js → p-DmgutWwH.js} +5 -5
  158. package/dist/components/p-DmgutWwH.js.map +1 -0
  159. package/dist/components/{p-8M6wbefU.js → p-DnAJsr7Q.js} +5 -5
  160. package/dist/components/{p-8M6wbefU.js.map → p-DnAJsr7Q.js.map} +1 -1
  161. package/dist/components/{p-ChSgKUKi.js → p-DoO2XAMG.js} +8 -8
  162. package/dist/components/{p-ChSgKUKi.js.map → p-DoO2XAMG.js.map} +1 -1
  163. package/dist/components/{p-b88NoejR.js → p-DonwyCOM.js} +4 -4
  164. package/dist/components/{p-b88NoejR.js.map → p-DonwyCOM.js.map} +1 -1
  165. package/dist/components/{p-Dt-0j6pv.js → p-DsCKNQPC.js} +4 -4
  166. package/dist/components/{p-Dt-0j6pv.js.map → p-DsCKNQPC.js.map} +1 -1
  167. package/dist/components/{p-C1sOQyoW.js → p-Dt5I6d_s.js} +6 -6
  168. package/dist/components/{p-C1sOQyoW.js.map → p-Dt5I6d_s.js.map} +1 -1
  169. package/dist/components/{p-r7qm8EsM.js → p-MX0H_yx6.js} +13 -13
  170. package/dist/components/{p-r7qm8EsM.js.map → p-MX0H_yx6.js.map} +1 -1
  171. package/dist/components/{p-BsAgsmZb.js → p-OV-ZpJVv.js} +12 -12
  172. package/dist/components/{p-BsAgsmZb.js.map → p-OV-ZpJVv.js.map} +1 -1
  173. package/dist/components/{p-nazpDdZn.js → p-Sk_71M_-.js} +14 -14
  174. package/dist/components/{p-nazpDdZn.js.map → p-Sk_71M_-.js.map} +1 -1
  175. package/dist/components/{p-K9Q7whri.js → p-UsZ2lpxS.js} +4 -4
  176. package/dist/components/{p-K9Q7whri.js.map → p-UsZ2lpxS.js.map} +1 -1
  177. package/dist/components/{p-Dq3ca8_9.js → p-pTXj30z_.js} +53 -16
  178. package/dist/components/p-pTXj30z_.js.map +1 -0
  179. package/dist/components/{p-CEXKKH9Z.js → p-vCuIwe1D.js} +11 -11
  180. package/dist/components/{p-CEXKKH9Z.js.map → p-vCuIwe1D.js.map} +1 -1
  181. package/dist/components/{p-BDAu6Qdg.js → p-w7SkLcPj.js} +5 -5
  182. package/dist/components/{p-BDAu6Qdg.js.map → p-w7SkLcPj.js.map} +1 -1
  183. package/dist/components/{p-D0rJh5my.js → p-wYGYhfrp.js} +4 -4
  184. package/dist/components/{p-D0rJh5my.js.map → p-wYGYhfrp.js.map} +1 -1
  185. package/dist/components/{p-DGdQtEJc.js → p-xIC5Vhhx.js} +13 -13
  186. package/dist/components/{p-DGdQtEJc.js.map → p-xIC5Vhhx.js.map} +1 -1
  187. package/dist/components/{p-gJ8vsaSU.js → p-xS2v_6o_.js} +11 -11
  188. package/dist/components/{p-gJ8vsaSU.js.map → p-xS2v_6o_.js.map} +1 -1
  189. package/dist/components/{p-CcCYvQR-.js → p-zcZJDJyB.js} +15 -15
  190. package/dist/components/{p-CcCYvQR-.js.map → p-zcZJDJyB.js.map} +1 -1
  191. package/dist/components/verdocs-auth.js +5 -5
  192. package/dist/components/verdocs-build.js +54 -48
  193. package/dist/components/verdocs-build.js.map +1 -1
  194. package/dist/components/verdocs-button-panel.js +1 -1
  195. package/dist/components/verdocs-button.js +1 -1
  196. package/dist/components/verdocs-checkbox.js +1 -1
  197. package/dist/components/verdocs-component-error.js +1 -1
  198. package/dist/components/verdocs-contact-picker.js +1 -1
  199. package/dist/components/verdocs-date-input.js +3 -3
  200. package/dist/components/verdocs-delegate-dialog.js +1 -1
  201. package/dist/components/verdocs-dialog.js +1 -1
  202. package/dist/components/verdocs-disclosure-dialog.js +1 -1
  203. package/dist/components/verdocs-dropdown.js +1 -1
  204. package/dist/components/verdocs-envelope-document-page.js +1 -1
  205. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  206. package/dist/components/verdocs-envelope-recipient-summary.js +3 -3
  207. package/dist/components/verdocs-envelope-sidebar.js +18 -12
  208. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  209. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  210. package/dist/components/verdocs-envelopes-list.js +18 -18
  211. package/dist/components/verdocs-field-attachment.js +1 -1
  212. package/dist/components/verdocs-field-checkbox.js +1 -1
  213. package/dist/components/verdocs-field-date.js +1 -1
  214. package/dist/components/verdocs-field-dropdown.js +1 -1
  215. package/dist/components/verdocs-field-initial.js +1 -1
  216. package/dist/components/verdocs-field-payment.js +11 -11
  217. package/dist/components/verdocs-field-radio.js +1 -1
  218. package/dist/components/verdocs-field-signature.js +1 -1
  219. package/dist/components/verdocs-field-textarea.js +1 -1
  220. package/dist/components/verdocs-field-textbox.js +1 -1
  221. package/dist/components/verdocs-field-timestamp.js +1 -1
  222. package/dist/components/verdocs-file-chooser.js +1 -1
  223. package/dist/components/verdocs-help-icon.js +1 -1
  224. package/dist/components/verdocs-initial-dialog.js +1 -1
  225. package/dist/components/verdocs-kba-dialog.js +1 -1
  226. package/dist/components/verdocs-loader.js +1 -1
  227. package/dist/components/verdocs-menu-panel.js +1 -1
  228. package/dist/components/verdocs-multiselect.js +3 -3
  229. package/dist/components/verdocs-ok-dialog.js +1 -1
  230. package/dist/components/verdocs-organization-card.js +3 -3
  231. package/dist/components/verdocs-otp-dialog.js +1 -1
  232. package/dist/components/verdocs-pagination.js +1 -1
  233. package/dist/components/verdocs-portal.js +1 -1
  234. package/dist/components/verdocs-preview.js +1 -1
  235. package/dist/components/verdocs-progress-bar.js +1 -1
  236. package/dist/components/verdocs-quick-filter.js +1 -1
  237. package/dist/components/verdocs-quick-functions.js +3 -3
  238. package/dist/components/verdocs-radio-button.js +2 -2
  239. package/dist/components/verdocs-search-box.js +2 -2
  240. package/dist/components/verdocs-search-tabs.js +3 -3
  241. package/dist/components/verdocs-select-input.js +1 -1
  242. package/dist/components/verdocs-send.js +1 -1
  243. package/dist/components/verdocs-sign.js +55 -40
  244. package/dist/components/verdocs-sign.js.map +1 -1
  245. package/dist/components/verdocs-signature-dialog.js +1 -1
  246. package/dist/components/verdocs-spinner.js +1 -1
  247. package/dist/components/verdocs-status-indicator.js +1 -1
  248. package/dist/components/verdocs-switch.js +1 -1
  249. package/dist/components/verdocs-table.js +2 -2
  250. package/dist/components/verdocs-tabs.js +1 -1
  251. package/dist/components/verdocs-template-attachments.js +1 -1
  252. package/dist/components/verdocs-template-build-tabs.js +1 -1
  253. package/dist/components/verdocs-template-card.js +3 -3
  254. package/dist/components/verdocs-template-create.js +6 -6
  255. package/dist/components/verdocs-template-document-page.js +1 -1
  256. package/dist/components/verdocs-template-field-properties.js +1 -1
  257. package/dist/components/verdocs-template-fields.js +1 -1
  258. package/dist/components/verdocs-template-role-properties.js +1 -1
  259. package/dist/components/verdocs-template-roles.js +1 -1
  260. package/dist/components/verdocs-template-settings.js +1 -1
  261. package/dist/components/verdocs-template-star.js +1 -1
  262. package/dist/components/verdocs-template-tags.js +3 -3
  263. package/dist/components/verdocs-templates-list.js +14 -14
  264. package/dist/components/verdocs-text-input.js +1 -1
  265. package/dist/components/verdocs-toggle-button.js +2 -2
  266. package/dist/components/verdocs-toggle.js +2 -2
  267. package/dist/components/verdocs-toolbar-icon.js +1 -1
  268. package/dist/components/verdocs-upload-dialog.js +1 -1
  269. package/dist/components/verdocs-view.js +1 -1
  270. package/dist/custom-elements.json +4 -0
  271. package/dist/esm/app-globals-DQuL1Twl.js.map +1 -1
  272. package/dist/esm/{index-CF7i8guW.js → index-6vpKbd31.js} +153 -114
  273. package/dist/esm/index-6vpKbd31.js.map +1 -0
  274. package/dist/esm/loader.js +3 -3
  275. package/dist/esm/verdocs-auth.entry.js +1 -1
  276. package/dist/esm/verdocs-build.entry.js +1 -1
  277. package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
  278. package/dist/esm/verdocs-button_3.entry.js +1 -1
  279. package/dist/esm/verdocs-checkbox_5.entry.js +1 -1
  280. package/dist/esm/verdocs-contact-picker.entry.js +47 -10
  281. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  282. package/dist/esm/verdocs-date-input.entry.js +1 -1
  283. package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  284. package/dist/esm/verdocs-delegate-dialog_5.entry.js +7 -3
  285. package/dist/esm/verdocs-delegate-dialog_5.entry.js.map +1 -1
  286. package/dist/esm/verdocs-dialog.verdocs-ok-dialog.entry.js.map +1 -0
  287. package/dist/esm/verdocs-dialog_2.entry.js +74 -0
  288. package/dist/esm/verdocs-dialog_2.entry.js.map +1 -0
  289. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  290. package/dist/esm/verdocs-envelope-document-page.entry.js +2 -2
  291. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
  292. package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
  293. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  294. package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
  295. package/dist/esm/verdocs-field-attachment_13.entry.js +4 -4
  296. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  297. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  298. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  299. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  300. package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
  301. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  302. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  303. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  304. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  305. package/dist/esm/verdocs-search-box.entry.js +1 -1
  306. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  307. package/dist/esm/verdocs-sign.entry.js +39 -24
  308. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  309. package/dist/esm/verdocs-spinner.entry.js +1 -1
  310. package/dist/esm/verdocs-status-indicator.entry.js +3 -3
  311. package/dist/esm/verdocs-switch.entry.js +1 -1
  312. package/dist/esm/verdocs-table.entry.js +1 -1
  313. package/dist/esm/verdocs-template-card.entry.js +2 -2
  314. package/dist/esm/verdocs-template-create.entry.js +1 -1
  315. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  316. package/dist/esm/verdocs-template-star.entry.js +2 -2
  317. package/dist/esm/verdocs-template-tags.entry.js +2 -2
  318. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  319. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  320. package/dist/esm/verdocs-toggle.entry.js +1 -1
  321. package/dist/esm/verdocs-web-sdk.js +4 -4
  322. package/dist/esm/verdocs-web-sdk.js.map +1 -1
  323. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +1 -1
  324. package/dist/esm-es5/index-6vpKbd31.js +2 -0
  325. package/dist/esm-es5/index-6vpKbd31.js.map +1 -0
  326. package/dist/esm-es5/loader.js +1 -1
  327. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  328. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  329. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  330. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  331. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  332. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  333. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  334. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  335. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
  336. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
  337. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
  338. package/dist/esm-es5/verdocs-dialog.verdocs-ok-dialog.entry.js.map +1 -0
  339. package/dist/esm-es5/verdocs-dialog_2.entry.js +2 -0
  340. package/dist/esm-es5/verdocs-dialog_2.entry.js.map +1 -0
  341. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  342. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  343. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  344. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
  345. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  346. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  347. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  348. package/dist/esm-es5/verdocs-field-payment.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-organization-card_2.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  354. package/dist/esm-es5/verdocs-preview_7.entry.js +2 -2
  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-create.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  373. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  374. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  375. package/dist/types/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.d.ts +4 -0
  376. package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +1 -1
  377. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -1
  378. package/dist/types/components.d.ts +705 -1
  379. package/dist/types/stencil-public-runtime.d.ts +32 -6
  380. package/dist/verdocs-web-sdk/{p-c9ffef4b.system.entry.js → p-00806fd6.system.entry.js} +2 -2
  381. package/dist/verdocs-web-sdk/{p-0359f32e.entry.js → p-048a7aa1.entry.js} +2 -2
  382. package/dist/verdocs-web-sdk/{p-6013eb3f.entry.js → p-09b7db37.entry.js} +2 -2
  383. package/dist/verdocs-web-sdk/{p-e4a44f27.entry.js → p-0ba21663.entry.js} +2 -2
  384. package/dist/verdocs-web-sdk/{p-92d45701.entry.js → p-0c12dbce.entry.js} +2 -2
  385. package/dist/verdocs-web-sdk/{p-80f0dfbc.entry.js → p-0db986ba.entry.js} +2 -2
  386. package/dist/verdocs-web-sdk/{p-784daaf3.entry.js → p-1776c6ae.entry.js} +2 -2
  387. package/dist/verdocs-web-sdk/p-1a6f8e15.system.entry.js +2 -0
  388. package/dist/verdocs-web-sdk/p-1a6f8e15.system.entry.js.map +1 -0
  389. package/dist/verdocs-web-sdk/{p-cc89f8e4.entry.js → p-1da2979c.entry.js} +2 -2
  390. package/dist/verdocs-web-sdk/{p-4a0dc414.entry.js → p-1fac2e17.entry.js} +2 -2
  391. package/dist/verdocs-web-sdk/{p-e8c146fc.system.entry.js → p-232af16d.system.entry.js} +2 -2
  392. package/dist/verdocs-web-sdk/{p-e63c903a.system.entry.js → p-23cde4a7.system.entry.js} +2 -2
  393. package/dist/verdocs-web-sdk/{p-b8d56777.system.entry.js → p-23d2bebc.system.entry.js} +2 -2
  394. package/dist/verdocs-web-sdk/p-2d9b370b.system.entry.js +4 -0
  395. package/dist/verdocs-web-sdk/p-2d9b370b.system.entry.js.map +1 -0
  396. package/dist/verdocs-web-sdk/{p-5f8f5f48.entry.js → p-2e84c527.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/{p-c16b24c0.system.entry.js → p-2f550a52.system.entry.js} +2 -2
  398. package/dist/verdocs-web-sdk/{p-b30ca40c.entry.js → p-31821b7f.entry.js} +2 -2
  399. package/dist/verdocs-web-sdk/{p-efc459f7.system.entry.js → p-3411287e.system.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-4175122c.system.entry.js → p-35d8d17c.system.entry.js} +3 -3
  401. package/dist/verdocs-web-sdk/{p-be6db7c0.system.entry.js → p-3a66ab11.system.entry.js} +2 -2
  402. package/dist/verdocs-web-sdk/{p-7f085b76.system.entry.js → p-3dd891fe.system.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/{p-b2a5b79a.system.entry.js → p-3f6a17d4.system.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-d5469309.system.entry.js → p-412eee4d.system.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-bb1e1ca1.system.entry.js → p-41bfb3b1.system.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-8a931007.entry.js → p-4761e4b9.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/{p-bf7c7011.system.entry.js → p-497b5c5d.system.entry.js} +2 -2
  408. package/dist/verdocs-web-sdk/{p-a279bb92.system.entry.js → p-4a96d6f5.system.entry.js} +2 -2
  409. package/dist/verdocs-web-sdk/{p-204afc1e.system.entry.js → p-4c2be294.system.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-034eb84e.entry.js → p-54fb32b2.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/p-551e08c1.entry.js +2 -0
  412. package/dist/verdocs-web-sdk/p-551e08c1.entry.js.map +1 -0
  413. package/dist/verdocs-web-sdk/{p-cd60348a.system.entry.js → p-570a7324.system.entry.js} +2 -2
  414. package/dist/verdocs-web-sdk/{p-6a5c1de9.system.entry.js → p-5f7f20bb.system.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/{p-3ab1625e.system.entry.js → p-60982db3.system.entry.js} +2 -2
  416. package/dist/verdocs-web-sdk/{p-767c93e8.system.entry.js → p-62d9a64d.system.entry.js} +2 -2
  417. package/dist/verdocs-web-sdk/{p-2543a4d2.entry.js → p-62edcdde.entry.js} +2 -2
  418. package/dist/verdocs-web-sdk/{p-cc823255.entry.js → p-6674c680.entry.js} +2 -2
  419. package/dist/verdocs-web-sdk/{p-4c5bb9d1.system.entry.js → p-66bb2b87.system.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-dbb8413d.system.entry.js → p-6940f098.system.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/{p-e7540c7b.system.entry.js → p-6c4a8b93.system.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/p-6vpKbd31.js +3 -0
  423. package/dist/verdocs-web-sdk/p-6vpKbd31.js.map +1 -0
  424. package/dist/verdocs-web-sdk/{p-43971b64.entry.js → p-73d15c2d.entry.js} +2 -2
  425. package/dist/verdocs-web-sdk/{p-c48624a8.system.entry.js → p-73e33466.system.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-8c6b9758.entry.js → p-751beab0.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-ac05c34d.system.entry.js → p-7a0b3a9a.system.entry.js} +2 -2
  428. package/dist/verdocs-web-sdk/{p-30c6df44.system.entry.js → p-864f6c7e.system.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/{p-327e38bf.entry.js → p-86a38bea.entry.js} +2 -2
  430. package/dist/verdocs-web-sdk/{p-452fb893.system.entry.js → p-8835c006.system.entry.js} +2 -2
  431. package/dist/verdocs-web-sdk/{p-cd56307c.entry.js → p-88b73a01.entry.js} +2 -2
  432. package/dist/verdocs-web-sdk/{p-ce2336aa.system.entry.js → p-8cf4eee7.system.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/{p-ed194be6.system.entry.js → p-8dfd9904.system.entry.js} +2 -2
  434. package/dist/verdocs-web-sdk/{p-d0b7bbc5.entry.js → p-92147c8e.entry.js} +3 -3
  435. package/dist/verdocs-web-sdk/{p-59723c89.entry.js → p-9524927b.entry.js} +2 -2
  436. package/dist/verdocs-web-sdk/{p-ef701763.entry.js → p-9ad04f8d.entry.js} +2 -2
  437. package/dist/verdocs-web-sdk/{p-a734eed0.entry.js → p-9d7b480f.entry.js} +2 -2
  438. package/dist/verdocs-web-sdk/p-B0FmVwBR.system.js +3 -0
  439. package/dist/verdocs-web-sdk/p-B0FmVwBR.system.js.map +1 -0
  440. package/dist/verdocs-web-sdk/p-B4iEf9n4.system.js.map +1 -0
  441. package/dist/verdocs-web-sdk/{p-BOuTTVR2.system.js.map → p-BEywLaeg.system.js.map} +1 -1
  442. package/dist/verdocs-web-sdk/{p-B8hJTIPP.system.js.map → p-BHraMRgX.system.js.map} +1 -1
  443. package/dist/verdocs-web-sdk/{p-ClClPWj-.system.js.map → p-BVutGFrl.system.js.map} +1 -1
  444. package/dist/verdocs-web-sdk/{p-L5sYoH8b.system.js.map → p-BYZ-2MPe.system.js.map} +1 -1
  445. package/dist/verdocs-web-sdk/p-BbPAtVJG.system.js.map +1 -1
  446. package/dist/verdocs-web-sdk/{p-Ds5wL-Co.system.js.map → p-Bnt7basv.system.js.map} +1 -1
  447. package/dist/verdocs-web-sdk/{p-CiSQubo3.system.js.map → p-BscsgV4o.system.js.map} +1 -1
  448. package/dist/verdocs-web-sdk/{p-C2U1AIgQ.system.js.map → p-Bu5xpJsB.system.js.map} +1 -1
  449. package/dist/verdocs-web-sdk/{p-C3pXyYu2.system.js.map → p-C0FCkTIp.system.js.map} +1 -1
  450. package/dist/verdocs-web-sdk/{p-CYHTkSId.system.js.map → p-CD6sicLf.system.js.map} +1 -1
  451. package/dist/verdocs-web-sdk/{p-luuB7PWr.system.js.map → p-CI9muv3M.system.js.map} +1 -1
  452. package/dist/verdocs-web-sdk/p-CICLOJJr.system.js.map +1 -0
  453. package/dist/verdocs-web-sdk/{p-Bbn-DzjB.system.js.map → p-CLPiPop_.system.js.map} +1 -1
  454. package/dist/verdocs-web-sdk/{p-DOuKoKCI.system.js.map → p-CLc1GNW6.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/{p-Dee_B32v.system.js.map → p-CSllp1iL.system.js.map} +1 -1
  456. package/dist/verdocs-web-sdk/{p-Ctlx9aRK.system.js.map → p-CWb_yOld.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/{p-BPt7ZeYN.system.js.map → p-CZ3_KnyZ.system.js.map} +1 -1
  458. package/dist/verdocs-web-sdk/{p-DT5SgITS.system.js.map → p-CcZnCyhK.system.js.map} +1 -1
  459. package/dist/verdocs-web-sdk/{p-Dmi3C21y.system.js.map → p-CnpV8Obg.system.js.map} +1 -1
  460. package/dist/verdocs-web-sdk/{p-DANgXHoV.system.js.map → p-Cts9LOkJ.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-CHZu9FwY.system.js.map → p-CxCkAfDO.system.js.map} +1 -1
  462. package/dist/verdocs-web-sdk/{p-Blg08wne.system.js.map → p-D677Wyq5.system.js.map} +1 -1
  463. package/dist/verdocs-web-sdk/{p-Dchsv9SZ.system.js.map → p-D7IFi8me.system.js.map} +1 -1
  464. package/dist/verdocs-web-sdk/{p-CflLDny-.system.js.map → p-D9LbjoUr.system.js.map} +1 -1
  465. package/dist/verdocs-web-sdk/{p-CxebBOfo.system.js.map → p-DE2U9Rfd.system.js.map} +1 -1
  466. package/dist/verdocs-web-sdk/{p-cI4bagwT.system.js.map → p-DFyhKNRO.system.js.map} +1 -1
  467. package/dist/verdocs-web-sdk/{p-Czs72bg4.system.js.map → p-DGdn9mfe.system.js.map} +1 -1
  468. package/dist/verdocs-web-sdk/{p-CXF7FJKi.system.js.map → p-DNjMP8Na.system.js.map} +1 -1
  469. package/dist/verdocs-web-sdk/{p-C4wFtWGl.system.js.map → p-DPhW-51Y.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/p-DQuL1Twl.js.map +1 -1
  471. package/dist/verdocs-web-sdk/{p-BIcMEuoc.system.js.map → p-DY0HrduN.system.js.map} +1 -1
  472. package/dist/verdocs-web-sdk/p-DcCGkiJ-.system.js.map +1 -0
  473. package/dist/verdocs-web-sdk/{p-bjoD8Mtb.system.js.map → p-DcKTmwEW.system.js.map} +1 -1
  474. package/dist/verdocs-web-sdk/{p-BYK4X2Cr.system.js.map → p-DcRVYjP6.system.js.map} +1 -1
  475. package/dist/verdocs-web-sdk/{p-U0rW0Gqv.system.js.map → p-DxcILin8.system.js.map} +1 -1
  476. package/dist/verdocs-web-sdk/{p-D2By4ZeB.system.js.map → p-JO58lfgU.system.js.map} +1 -1
  477. package/dist/verdocs-web-sdk/p-RlE9Yh59.system.js +2 -0
  478. package/dist/verdocs-web-sdk/{p-CwXSduhy.system.js.map → p-RlE9Yh59.system.js.map} +1 -1
  479. package/dist/verdocs-web-sdk/{p-51b0c10c.system.entry.js → p-a245ce2a.system.entry.js} +2 -2
  480. package/dist/verdocs-web-sdk/{p-672b6b7b.entry.js → p-a668f61c.entry.js} +2 -2
  481. package/dist/verdocs-web-sdk/{p-791184e5.entry.js → p-a6a6e4ab.entry.js} +2 -2
  482. package/dist/verdocs-web-sdk/{p-4827f3af.entry.js → p-a94a6d45.entry.js} +2 -2
  483. package/dist/verdocs-web-sdk/{p-QrafNGv0.system.js.map → p-af9NAoxw.system.js.map} +1 -1
  484. package/dist/verdocs-web-sdk/{p-aa84e0ae.entry.js → p-b4bfad4d.entry.js} +2 -2
  485. package/dist/verdocs-web-sdk/{p-637da951.system.entry.js → p-b72d1a5f.system.entry.js} +2 -2
  486. package/dist/verdocs-web-sdk/{p-48ea586f.entry.js → p-b77076ae.entry.js} +2 -2
  487. package/dist/verdocs-web-sdk/{p-5631b76d.entry.js → p-baaa811b.entry.js} +2 -2
  488. package/dist/verdocs-web-sdk/{p-759b5749.entry.js → p-bc20c923.entry.js} +2 -2
  489. package/dist/verdocs-web-sdk/{p-6f6a0c7a.system.entry.js → p-bcc07a53.system.entry.js} +2 -2
  490. package/dist/verdocs-web-sdk/{p-BMTuIIDz.system.js.map → p-c-HO8wJy.system.js.map} +1 -1
  491. package/dist/verdocs-web-sdk/{p-76aed8e2.system.entry.js → p-c0192037.system.entry.js} +2 -2
  492. package/dist/verdocs-web-sdk/{p-356af98a.entry.js → p-c1a71296.entry.js} +2 -2
  493. package/dist/verdocs-web-sdk/{p-99f4f945.entry.js → p-c5f64deb.entry.js} +2 -2
  494. package/dist/verdocs-web-sdk/{p-45f59906.entry.js → p-ca8bb8ab.entry.js} +2 -2
  495. package/dist/verdocs-web-sdk/{p-68b11f68.entry.js → p-ceabec49.entry.js} +2 -2
  496. package/dist/verdocs-web-sdk/p-d5f1bffb.entry.js +2 -0
  497. package/dist/verdocs-web-sdk/p-d5f1bffb.entry.js.map +1 -0
  498. package/dist/verdocs-web-sdk/p-dd51c6cf.entry.js +3 -0
  499. package/dist/verdocs-web-sdk/p-dd51c6cf.entry.js.map +1 -0
  500. package/dist/verdocs-web-sdk/{p-d1e99a40.entry.js → p-e48adefb.entry.js} +2 -2
  501. package/dist/verdocs-web-sdk/p-e755e978.system.entry.js +2 -0
  502. package/dist/verdocs-web-sdk/p-e755e978.system.entry.js.map +1 -0
  503. package/dist/verdocs-web-sdk/{p-DyIimYwQ.system.js.map → p-eV_NkDV8.system.js.map} +1 -1
  504. package/dist/verdocs-web-sdk/p-f05f021e.entry.js +2 -0
  505. package/dist/verdocs-web-sdk/p-f05f021e.entry.js.map +1 -0
  506. package/dist/verdocs-web-sdk/{p-ece1678b.system.entry.js → p-f6598c9b.system.entry.js} +2 -2
  507. package/dist/verdocs-web-sdk/{p-e15b7c92.entry.js → p-f8d91f6b.entry.js} +2 -2
  508. package/dist/verdocs-web-sdk/{p-596326ba.system.entry.js → p-f9f25d23.system.entry.js} +2 -2
  509. package/dist/verdocs-web-sdk/{p-8c98a765.system.entry.js → p-faab7883.system.entry.js} +2 -2
  510. package/dist/verdocs-web-sdk/{p-72c996d0.system.entry.js → p-fb57a316.system.entry.js} +2 -2
  511. package/dist/verdocs-web-sdk/p-fc5c2c45.system.entry.js +2 -0
  512. package/dist/verdocs-web-sdk/p-fc5c2c45.system.entry.js.map +1 -0
  513. package/dist/verdocs-web-sdk/{p-e26ff4f2.entry.js → p-fd1f2414.entry.js} +2 -2
  514. package/dist/verdocs-web-sdk/{p-DpJ6fOKq.system.js.map → p-i133pS58.system.js.map} +1 -1
  515. package/dist/verdocs-web-sdk/p-nr83qKQ0.system.js.map +1 -0
  516. package/dist/verdocs-web-sdk/{p-LIkyGpz6.system.js.map → p-zO3xplJW.system.js.map} +1 -1
  517. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  518. package/dist/verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +1 -1
  519. package/dist/verdocs-web-sdk/verdocs-dialog.verdocs-ok-dialog.entry.esm.js.map +1 -0
  520. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  521. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  522. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  523. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  524. package/package.json +12 -14
  525. package/dist/cjs/index-Be9PlTB7.js.map +0 -1
  526. package/dist/cjs/verdocs-dialog.cjs.entry.js +0 -30
  527. package/dist/cjs/verdocs-dialog.cjs.entry.js.map +0 -1
  528. package/dist/cjs/verdocs-dialog.entry.cjs.js.map +0 -1
  529. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +0 -54
  530. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js.map +0 -1
  531. package/dist/cjs/verdocs-ok-dialog.entry.cjs.js.map +0 -1
  532. package/dist/components/p-6dn6bTF-.js.map +0 -1
  533. package/dist/components/p-BnMAPkKT.js.map +0 -1
  534. package/dist/components/p-CZcjG946.js.map +0 -1
  535. package/dist/components/p-Cswo_Apj.js.map +0 -1
  536. package/dist/components/p-DBxWj2lt.js.map +0 -1
  537. package/dist/components/p-DHl4c1oa.js.map +0 -1
  538. package/dist/components/p-DZ3TxFzS.js.map +0 -1
  539. package/dist/components/p-Dp0dNizc.js +0 -78
  540. package/dist/components/p-Dp0dNizc.js.map +0 -1
  541. package/dist/components/p-Dq3ca8_9.js.map +0 -1
  542. package/dist/components/p-I_twwI6N.js.map +0 -1
  543. package/dist/components/p-cuwa7Els.js.map +0 -1
  544. package/dist/esm/index-CF7i8guW.js.map +0 -1
  545. package/dist/esm/verdocs-dialog.entry.js +0 -28
  546. package/dist/esm/verdocs-dialog.entry.js.map +0 -1
  547. package/dist/esm/verdocs-ok-dialog.entry.js +0 -52
  548. package/dist/esm/verdocs-ok-dialog.entry.js.map +0 -1
  549. package/dist/esm-es5/index-CF7i8guW.js +0 -2
  550. package/dist/esm-es5/index-CF7i8guW.js.map +0 -1
  551. package/dist/esm-es5/verdocs-dialog.entry.js +0 -2
  552. package/dist/esm-es5/verdocs-dialog.entry.js.map +0 -1
  553. package/dist/esm-es5/verdocs-ok-dialog.entry.js +0 -2
  554. package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +0 -1
  555. package/dist/verdocs-web-sdk/p-27965f3b.system.entry.js +0 -2
  556. package/dist/verdocs-web-sdk/p-27965f3b.system.entry.js.map +0 -1
  557. package/dist/verdocs-web-sdk/p-5e92e1ed.entry.js +0 -2
  558. package/dist/verdocs-web-sdk/p-5e92e1ed.entry.js.map +0 -1
  559. package/dist/verdocs-web-sdk/p-6f06bc8e.system.entry.js +0 -2
  560. package/dist/verdocs-web-sdk/p-6f06bc8e.system.entry.js.map +0 -1
  561. package/dist/verdocs-web-sdk/p-72e9198d.system.entry.js +0 -4
  562. package/dist/verdocs-web-sdk/p-72e9198d.system.entry.js.map +0 -1
  563. package/dist/verdocs-web-sdk/p-7e909e4d.system.entry.js +0 -2
  564. package/dist/verdocs-web-sdk/p-7e909e4d.system.entry.js.map +0 -1
  565. package/dist/verdocs-web-sdk/p-86e18c44.entry.js +0 -3
  566. package/dist/verdocs-web-sdk/p-86e18c44.entry.js.map +0 -1
  567. package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +0 -1
  568. package/dist/verdocs-web-sdk/p-CBcFsA_E.system.js.map +0 -1
  569. package/dist/verdocs-web-sdk/p-CF7i8guW.js +0 -3
  570. package/dist/verdocs-web-sdk/p-CF7i8guW.js.map +0 -1
  571. package/dist/verdocs-web-sdk/p-CWdALVSJ.system.js.map +0 -1
  572. package/dist/verdocs-web-sdk/p-CvTJQ0Hb.system.js.map +0 -1
  573. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +0 -2
  574. package/dist/verdocs-web-sdk/p-ZoT3tV_N.system.js.map +0 -1
  575. package/dist/verdocs-web-sdk/p-a0f35935.system.entry.js +0 -2
  576. package/dist/verdocs-web-sdk/p-a0f35935.system.entry.js.map +0 -1
  577. package/dist/verdocs-web-sdk/p-bcdf5197.entry.js +0 -2
  578. package/dist/verdocs-web-sdk/p-bcdf5197.entry.js.map +0 -1
  579. package/dist/verdocs-web-sdk/p-c4f79857.entry.js +0 -2
  580. package/dist/verdocs-web-sdk/p-c4f79857.entry.js.map +0 -1
  581. package/dist/verdocs-web-sdk/p-d7109021.entry.js +0 -2
  582. package/dist/verdocs-web-sdk/p-d7109021.entry.js.map +0 -1
  583. package/dist/verdocs-web-sdk/p-gAi_FRvp.system.js +0 -3
  584. package/dist/verdocs-web-sdk/p-gAi_FRvp.system.js.map +0 -1
  585. package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +0 -1
  586. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.esm.js.map +0 -1
  587. /package/dist/verdocs-web-sdk/{p-c9ffef4b.system.entry.js.map → p-00806fd6.system.entry.js.map} +0 -0
  588. /package/dist/verdocs-web-sdk/{p-0359f32e.entry.js.map → p-048a7aa1.entry.js.map} +0 -0
  589. /package/dist/verdocs-web-sdk/{p-6013eb3f.entry.js.map → p-09b7db37.entry.js.map} +0 -0
  590. /package/dist/verdocs-web-sdk/{p-e4a44f27.entry.js.map → p-0ba21663.entry.js.map} +0 -0
  591. /package/dist/verdocs-web-sdk/{p-92d45701.entry.js.map → p-0c12dbce.entry.js.map} +0 -0
  592. /package/dist/verdocs-web-sdk/{p-80f0dfbc.entry.js.map → p-0db986ba.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-784daaf3.entry.js.map → p-1776c6ae.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-cc89f8e4.entry.js.map → p-1da2979c.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-4a0dc414.entry.js.map → p-1fac2e17.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-e8c146fc.system.entry.js.map → p-232af16d.system.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-e63c903a.system.entry.js.map → p-23cde4a7.system.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-b8d56777.system.entry.js.map → p-23d2bebc.system.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-5f8f5f48.entry.js.map → p-2e84c527.entry.js.map} +0 -0
  600. /package/dist/verdocs-web-sdk/{p-c16b24c0.system.entry.js.map → p-2f550a52.system.entry.js.map} +0 -0
  601. /package/dist/verdocs-web-sdk/{p-b30ca40c.entry.js.map → p-31821b7f.entry.js.map} +0 -0
  602. /package/dist/verdocs-web-sdk/{p-efc459f7.system.entry.js.map → p-3411287e.system.entry.js.map} +0 -0
  603. /package/dist/verdocs-web-sdk/{p-4175122c.system.entry.js.map → p-35d8d17c.system.entry.js.map} +0 -0
  604. /package/dist/verdocs-web-sdk/{p-be6db7c0.system.entry.js.map → p-3a66ab11.system.entry.js.map} +0 -0
  605. /package/dist/verdocs-web-sdk/{p-7f085b76.system.entry.js.map → p-3dd891fe.system.entry.js.map} +0 -0
  606. /package/dist/verdocs-web-sdk/{p-b2a5b79a.system.entry.js.map → p-3f6a17d4.system.entry.js.map} +0 -0
  607. /package/dist/verdocs-web-sdk/{p-d5469309.system.entry.js.map → p-412eee4d.system.entry.js.map} +0 -0
  608. /package/dist/verdocs-web-sdk/{p-bb1e1ca1.system.entry.js.map → p-41bfb3b1.system.entry.js.map} +0 -0
  609. /package/dist/verdocs-web-sdk/{p-8a931007.entry.js.map → p-4761e4b9.entry.js.map} +0 -0
  610. /package/dist/verdocs-web-sdk/{p-bf7c7011.system.entry.js.map → p-497b5c5d.system.entry.js.map} +0 -0
  611. /package/dist/verdocs-web-sdk/{p-a279bb92.system.entry.js.map → p-4a96d6f5.system.entry.js.map} +0 -0
  612. /package/dist/verdocs-web-sdk/{p-204afc1e.system.entry.js.map → p-4c2be294.system.entry.js.map} +0 -0
  613. /package/dist/verdocs-web-sdk/{p-034eb84e.entry.js.map → p-54fb32b2.entry.js.map} +0 -0
  614. /package/dist/verdocs-web-sdk/{p-cd60348a.system.entry.js.map → p-570a7324.system.entry.js.map} +0 -0
  615. /package/dist/verdocs-web-sdk/{p-6a5c1de9.system.entry.js.map → p-5f7f20bb.system.entry.js.map} +0 -0
  616. /package/dist/verdocs-web-sdk/{p-3ab1625e.system.entry.js.map → p-60982db3.system.entry.js.map} +0 -0
  617. /package/dist/verdocs-web-sdk/{p-767c93e8.system.entry.js.map → p-62d9a64d.system.entry.js.map} +0 -0
  618. /package/dist/verdocs-web-sdk/{p-2543a4d2.entry.js.map → p-62edcdde.entry.js.map} +0 -0
  619. /package/dist/verdocs-web-sdk/{p-cc823255.entry.js.map → p-6674c680.entry.js.map} +0 -0
  620. /package/dist/verdocs-web-sdk/{p-4c5bb9d1.system.entry.js.map → p-66bb2b87.system.entry.js.map} +0 -0
  621. /package/dist/verdocs-web-sdk/{p-dbb8413d.system.entry.js.map → p-6940f098.system.entry.js.map} +0 -0
  622. /package/dist/verdocs-web-sdk/{p-e7540c7b.system.entry.js.map → p-6c4a8b93.system.entry.js.map} +0 -0
  623. /package/dist/verdocs-web-sdk/{p-43971b64.entry.js.map → p-73d15c2d.entry.js.map} +0 -0
  624. /package/dist/verdocs-web-sdk/{p-c48624a8.system.entry.js.map → p-73e33466.system.entry.js.map} +0 -0
  625. /package/dist/verdocs-web-sdk/{p-8c6b9758.entry.js.map → p-751beab0.entry.js.map} +0 -0
  626. /package/dist/verdocs-web-sdk/{p-ac05c34d.system.entry.js.map → p-7a0b3a9a.system.entry.js.map} +0 -0
  627. /package/dist/verdocs-web-sdk/{p-30c6df44.system.entry.js.map → p-864f6c7e.system.entry.js.map} +0 -0
  628. /package/dist/verdocs-web-sdk/{p-327e38bf.entry.js.map → p-86a38bea.entry.js.map} +0 -0
  629. /package/dist/verdocs-web-sdk/{p-452fb893.system.entry.js.map → p-8835c006.system.entry.js.map} +0 -0
  630. /package/dist/verdocs-web-sdk/{p-cd56307c.entry.js.map → p-88b73a01.entry.js.map} +0 -0
  631. /package/dist/verdocs-web-sdk/{p-ce2336aa.system.entry.js.map → p-8cf4eee7.system.entry.js.map} +0 -0
  632. /package/dist/verdocs-web-sdk/{p-ed194be6.system.entry.js.map → p-8dfd9904.system.entry.js.map} +0 -0
  633. /package/dist/verdocs-web-sdk/{p-d0b7bbc5.entry.js.map → p-92147c8e.entry.js.map} +0 -0
  634. /package/dist/verdocs-web-sdk/{p-59723c89.entry.js.map → p-9524927b.entry.js.map} +0 -0
  635. /package/dist/verdocs-web-sdk/{p-ef701763.entry.js.map → p-9ad04f8d.entry.js.map} +0 -0
  636. /package/dist/verdocs-web-sdk/{p-a734eed0.entry.js.map → p-9d7b480f.entry.js.map} +0 -0
  637. /package/dist/verdocs-web-sdk/{p-51b0c10c.system.entry.js.map → p-a245ce2a.system.entry.js.map} +0 -0
  638. /package/dist/verdocs-web-sdk/{p-672b6b7b.entry.js.map → p-a668f61c.entry.js.map} +0 -0
  639. /package/dist/verdocs-web-sdk/{p-791184e5.entry.js.map → p-a6a6e4ab.entry.js.map} +0 -0
  640. /package/dist/verdocs-web-sdk/{p-4827f3af.entry.js.map → p-a94a6d45.entry.js.map} +0 -0
  641. /package/dist/verdocs-web-sdk/{p-aa84e0ae.entry.js.map → p-b4bfad4d.entry.js.map} +0 -0
  642. /package/dist/verdocs-web-sdk/{p-637da951.system.entry.js.map → p-b72d1a5f.system.entry.js.map} +0 -0
  643. /package/dist/verdocs-web-sdk/{p-48ea586f.entry.js.map → p-b77076ae.entry.js.map} +0 -0
  644. /package/dist/verdocs-web-sdk/{p-5631b76d.entry.js.map → p-baaa811b.entry.js.map} +0 -0
  645. /package/dist/verdocs-web-sdk/{p-759b5749.entry.js.map → p-bc20c923.entry.js.map} +0 -0
  646. /package/dist/verdocs-web-sdk/{p-6f6a0c7a.system.entry.js.map → p-bcc07a53.system.entry.js.map} +0 -0
  647. /package/dist/verdocs-web-sdk/{p-76aed8e2.system.entry.js.map → p-c0192037.system.entry.js.map} +0 -0
  648. /package/dist/verdocs-web-sdk/{p-356af98a.entry.js.map → p-c1a71296.entry.js.map} +0 -0
  649. /package/dist/verdocs-web-sdk/{p-99f4f945.entry.js.map → p-c5f64deb.entry.js.map} +0 -0
  650. /package/dist/verdocs-web-sdk/{p-45f59906.entry.js.map → p-ca8bb8ab.entry.js.map} +0 -0
  651. /package/dist/verdocs-web-sdk/{p-68b11f68.entry.js.map → p-ceabec49.entry.js.map} +0 -0
  652. /package/dist/verdocs-web-sdk/{p-d1e99a40.entry.js.map → p-e48adefb.entry.js.map} +0 -0
  653. /package/dist/verdocs-web-sdk/{p-ece1678b.system.entry.js.map → p-f6598c9b.system.entry.js.map} +0 -0
  654. /package/dist/verdocs-web-sdk/{p-e15b7c92.entry.js.map → p-f8d91f6b.entry.js.map} +0 -0
  655. /package/dist/verdocs-web-sdk/{p-596326ba.system.entry.js.map → p-f9f25d23.system.entry.js.map} +0 -0
  656. /package/dist/verdocs-web-sdk/{p-8c98a765.system.entry.js.map → p-faab7883.system.entry.js.map} +0 -0
  657. /package/dist/verdocs-web-sdk/{p-72c996d0.system.entry.js.map → p-fb57a316.system.entry.js.map} +0 -0
  658. /package/dist/verdocs-web-sdk/{p-e26ff4f2.entry.js.map → p-fd1f2414.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as t,H as s,F as o}from"./p-6vpKbd31.js";import{VerdocsEndpoint as n,startSigningSession as a,envelopeRecipientAgree as l,updateEnvelopeField as r,createSignature as d,updateEnvelopeFieldSignature as c,createInitials as h,updateEnvelopeFieldInitials as p,isValidPhone as g,isValidEmail as u,sortFields as v,envelopeRecipientSubmit as f,uploadEnvelopeFieldAttachment as m,deleteEnvelopeFieldAttachment as x,formatFullName as b,fullNameToInitials as y,verifySigner as w,delegateRecipient as k,envelopeRecipientDecline as S,integerSequence as N}from"@verdocs/js-sdk";import{a as I,u as G,g as D,r as P}from"./p-fL0BKEnm.js";import{D as F}from"./p-C_Xku1v2.js";import{V as z}from"./p-CyvDgtoV.js";import{S as T}from"./p-C1sRVZWv.js";import{S as E}from"./p-DmsV595e.js";import"./p-BFTU3MAI.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";const U='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}verdocs-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}';const A=`\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 R=class{constructor(t){e(this,t);this.sdkError=i(this,"sdkError");this.envelopeLoaded=i(this,"envelopeLoaded");this.envelopeUpdated=i(this,"envelopeUpdated");this.endpoint=F;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=A;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 T("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new T("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new T("[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);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 T(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.disclosures=((t=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||t===void 0?void 0:t.disclaimer)||A;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;E.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;console.log("[SIGN] Accepting disclosures",this.disclosures);l(this.endpoint,this.envelopeId,this.roleId,this.disclosures).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] Unable to accept disclosures",e);z("Unable to accept disclosures, please try again later",{style:"error"});this.submitting=false;(i=this.sdkError)===null||i===void 0?void 0:i.emit(new T(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;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"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){I(this.endpoint,this.envelope,e.id).catch((e=>{z("Unable to download PDF, please try again later",{style:"error"});console.log("[SIGN] Error downloading PDF",e)}));(s=this.envelopeUpdated)===null||s===void 0?void 0:s.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;G(t);this.checkRecipientFields()}}))}saveFieldChange(e,i){console.log("[SIGN] saveFieldChange",e,i);r(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);z("Unable to save change, please try again later",{style:"error"})}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new T(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 h(this.endpoint,"initial",o).then((async i=>{const t=await p(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);z("Unable to save initials, please try again later",{style:"error"});this.showSpinner=false}));case"signature":if(!i.detail){return}this.showSpinner=true;const n=await(await fetch(i.detail)).blob();return d(this.endpoint,"signature",n).then((async i=>{console.log("Signature update result",i);const t=await c(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);z("Unable to save signature, please try again later",{style:"error"});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 u(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"));v(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 f(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Submitted successfully",i);window.location.reload()}catch(e){console.log("[SIGN] Error submitting",e)}return}const i=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldFilled(e)));v(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=D(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{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 m(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);z("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 x(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);z("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=b(this.recipient);t.setAttribute("initials",y(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);w(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{z(((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(){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(s,{class:"agreed"},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("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:()=>this.delegating=false,onNext:e=>{k(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{z("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);z("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:()=>{S(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);z("Unable to decline, please try again later",{style:"error"})}))}})}if(!this.agreed){return t(s,{class:"agreed"},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("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:()=>this.delegating=true,onDecline:()=>this.declining=true,onAccept:()=>this.handleClickAgree()}))}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})}}}))))}const e=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const i=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){e.unshift({id:"delegate",label:"Delegate"})}const n=this.getRecipientFields().filter((e=>!this.isFieldValid(e)));n.length>0?console.log("[SIGN] Invalid fields remaining",n.map((e=>e.name))):console.log("[SIGN] All field valid");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?e:i,onOptionSelected:e=>this.handleOptionSelected(e)}))),t("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((e=>{const i=N(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))))}};R.style=U;export{R as verdocs_sign};
2
+ //# sourceMappingURL=p-d5f1bffb.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsSignCss","DEFAULT_DISCLOSURES","VerdocsSign","constructor","hostRef","this","endpoint","DefaultEndpoint","envelopeId","roleId","inviteCode","headerTargetId","recipient","hasSignature","nextButtonLabel","nextSubmits","fatalErrorHeader","fatalErrorMessage","focusedField","disclosures","submitting","submitted","isDone","showDone","showLoadError","finishLater","showFinishLater","agreed","documentsSingularPlural","authStep","authMethodStates","kbaQuestions","showSpinner","declining","delegating","delegated","kbaChoices","loading","envelope","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","VerdocsToast","style","handleOptionSelected","detail","id","window","print","firstDoc","find","doc","type","saveAttachment","updateRecipientFieldValue","fieldName","updateResult","getRecipientFields","forEach","oldField","name","value","settings","updateDocumentFieldValue","saveFieldChange","fields","updateEnvelopeField","error","handleFieldChange","field","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","location","reload","emptyFields","focusedIndex","findIndex","nextFocusedIndex","nextRequiredField","skips","getFieldId","el","scrollIntoView","behavior","focusField","role_name","invalidFields","attachFieldAttributes","pageInfo","setAttribute","addEventListener","finally","uploadEnvelopeFieldAttachment","newEl","renderDocumentField","disabled","editable","draggable","done","deleteEnvelopeFieldAttachment","template_id","pageNumber","xScale","yScale","fullName","formatFullName","fullNameToInitials","handlePageRendered","tabIndex","page","Array","isArray","map","recipients","r","handleAuthenticateSigner","params","verifySigner","render","h","Host","heading","buttonLabel","onNext","class","onSdkError","preventDefault","stopPropagation","paddingTop","src","width","height","boxShadow","marginTop","alt","onExit","delegateRecipient","showCancel","envelopeRecipientDecline","delegator","onDelegate","onDecline","onAccept","mode","step","steps","placeholder","helptitle","helptext","label","auth_method","code","method","kba","recipDetails","first_name","last_name","address","city","state","zip","dob","questionNumber","kbaQuestion","prompt","choices","answer","responses","q","i","inProgressMenuOptions","doneMenuOptions","unshift","flex","size","onClick","marginLeft","options","onOptionSelected","envelopeDocument","pageNumbers","integerSequence","pages","Fragment","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/embeds/verdocs-sign/verdocs-sign.scss?tag=verdocs-sign","src/components/embeds/verdocs-sign/verdocs-sign.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-sign {\n display: flex;\n overflow: hidden;\n position: relative;\n min-height: 600px;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div {\n display: block;\n box-sizing: border-box;\n }\n\n input {\n vertical-align: top;\n }\n\n //.intro {\n // width: 100%;\n // display: flex;\n // flex: 0 0 60px;\n // color: #111111;\n // font-size: 18px;\n // font-weight: 500;\n // line-height: 28px;\n // flex-direction: row;\n // background: #ffffff;\n //\n // .inner {\n // width: 100%;\n // display: flex;\n // margin: 0 auto;\n // padding: 0 20px;\n // max-width: 1200px;\n // flex-direction: row;\n // align-items: center;\n // }\n //}\n\n > .document {\n flex: 1;\n width: 100%;\n height: 100%;\n align-self: center;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n max-width: 1200px;\n min-height: 200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .cover {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 5000;\n position: absolute;\n padding-top: 100px;\n align-items: center;\n flex-direction: column;\n background: rgba(0, 0, 0, 0.5);\n }\n\n verdocs-ok-dialog .background-overlay {\n align-items: flex-start;\n padding-top: 100px;\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n\n .fatal-error {\n position: absolute;\n z-index: 100;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #4a4a4a;\n display: flex;\n align-items: center;\n justify-content: center;\n\n .placeholder {\n position: absolute;\n opacity: 0.1;\n z-index: -1;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 612px;\n height: 792px;\n box-shadow: 0 0 10px 5px #0000000f;\n margin-top: 15px;\n }\n\n .message {\n max-width: 360px;\n width: 50%;\n font-size: 16px;\n background: white;\n box-shadow: 3px 3px 9px -1px #0000003f;\n }\n\n .header {\n color: white;\n font-size: 18px;\n font-weight: 500;\n padding: 5px 10px;\n margin: 0 0 10px 0;\n background: $verdocs-purple-shade;\n }\n\n p {\n margin: 1rem;\n font-size: 14px;\n font-weight: 400;\n padding: 0 10px;\n }\n }\n}\n\n@media print {\n verdocs-sign .header {\n display: none;\n }\n}\n\n#verdocs-sign-header {\n color: #fff;\n width: 100%;\n display: flex;\n z-index: 1000;\n flex: 0 0 46px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 12px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n padding: 0 10px 0 0;\n text-overflow: ellipsis;\n }\n}\n\n.spinner-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n}\n","import {Event, EventEmitter, Host, Fragment, Component, Prop, State, h} from '@stencil/core';\nimport {integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials} from '@verdocs/js-sdk';\nimport {verifySigner, IEnvelope, IEnvelopeField, IRecipient, TAuthenticateRecipientRequest} from '@verdocs/js-sdk';\nimport {fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, formatFullName} from '@verdocs/js-sdk';\nimport {updateEnvelopeField, sortFields, IKBAQuestion, ISignerTokenResponse, delegateRecipient} from '@verdocs/js-sdk';\nimport {updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, TRecipientAuthMethod} from '@verdocs/js-sdk';\nimport {createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit} from '@verdocs/js-sdk';\nimport {getFieldId, renderDocumentField, saveAttachment, updateDocumentFieldValue} from '../../../utils/utils';\nimport {DefaultEndpoint} from '../../../utils/Environment';\nimport {IDocumentPageInfo} from '../../../utils/Types';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst DEFAULT_DISCLOSURES = `\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>`;\n\n/**\n * Display an envelope signing experience. This will display the envelope's attached\n * documents with signing fields overlaid on each page.\n *\n * The component will attempt to initiate a signing session and load the specified\n * envelope. If successful, the recipient's fields will be enabled and the user will\n * be able to sign the envelope's attached documents. If not, an `sdkError` will be\n * thrown and the component will be blank/empty. To provide the best user experience,\n * applications should capture and handle this error to provide the user with\n * instructions/options for next steps based on the application's design and workflow.\n *\n * Unlike other components, this will always create its own endpoint to manage the\n * session session. This endpoint will be included in event callbacks for the\n * convenience of host applications that may wish to make server calls using the\n * signer's credentials once signing is complete (e.g. to obtain copies of\n * the signed attachments.)\n *\n * ```ts\n * <verdocs-sign\n * envelopeId={ENVELOPE_ID}\n * roleId={ROLE_ID}\n * inviteCode={INVITE_CODE}\n * envelopeUpdated={({ detail }) => console.log('Envelope updated state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-sign',\n styleUrl: 'verdocs-sign.scss',\n shadow: false,\n})\nexport class VerdocsSign {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop({mutable: true}) endpoint: VerdocsEndpoint = DefaultEndpoint;\n\n /**\n * The ID of the envelope to sign.\n */\n @Prop({reflect: true}) envelopeId: string | null = null;\n\n /**\n * The ID of the role that will be signing e.g. 'Recipient 1'\n */\n @Prop({reflect: true}) roleId: string | null = null;\n\n /**\n * The invite code for the signer.\n */\n @Prop({reflect: true}) inviteCode: string | null = null;\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is loaded for the first time.\n */\n @Event({composed: true}) envelopeLoaded: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the envelope is updated in any way.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n // @State() roleNames: string[] = [];\n // @State() sortedRecipients: IRecipient[] = [];\n @State() recipient: IRecipient | null = null;\n @State() hasSignature = false;\n @State() nextButtonLabel = 'Start';\n @State() nextSubmits = false;\n @State() fatalErrorHeader = '';\n @State() fatalErrorMessage = '';\n @State() focusedField = '';\n @State() disclosures = DEFAULT_DISCLOSURES;\n @State() submitting = false;\n @State() submitted = false;\n @State() isDone = false;\n @State() showDone = false;\n @State() showLoadError = false;\n @State() finishLater = false;\n @State() showFinishLater = false;\n @State() agreed = false;\n @State() documentsSingularPlural = 'document';\n @State() authStep: string | null = null;\n @State() authMethodStates: Partial<Record<TRecipientAuthMethod, string>> = {};\n @State() kbaQuestions: IKBAQuestion[] | null = null;\n @State() showSpinner = false;\n @State() declining = false;\n @State() delegating = false;\n @State() delegated = false;\n @State() kbaChoices = [];\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n // recipientIndex: number = -1;\n\n componentWillLoad() {\n if (!this.endpoint) {\n console.log('[SIGN] Creating signing endpoint');\n this.endpoint = new VerdocsEndpoint({sessionType: 'signing'});\n }\n }\n\n async componentDidLoad() {\n if (!this.envelopeId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required envelopId', 500, ''));\n return;\n }\n\n if (!this.roleId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required roleId', 500, ''));\n return;\n }\n\n if (!this.inviteCode) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required inviteCode', 500, ''));\n return;\n }\n\n try {\n console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);\n\n // NOTE: We don't listen to the store here because we are often an independent\n // session and might have a different \"view\" of the envelope.\n const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);\n this.processAuthResponse(response);\n } catch (e) {\n console.log('[SIGN] Error with signing session', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n this.showLoadError = true;\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-sign-header');\n if (headerTarget && headerEl) {\n console.log('[SIGN] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n processAuthResponse(response: ISignerTokenResponse) {\n const {envelope, recipient} = response;\n const {auth_step} = recipient;\n this.recipient = recipient;\n this.envelope = envelope;\n this.disclosures = this.envelope?.organization?.disclaimer || DEFAULT_DISCLOSURES;\n this.authStep = auth_step;\n this.delegated = !!recipient.delegated_to;\n this.agreed = recipient.agreed;\n this.submitted = recipient.status === 'submitted';\n this.isDone = this.submitted;\n this.showDone = this.submitted;\n Store.updateEnvelope(this.envelopeId, envelope);\n\n if (this.envelope.documents.length > 0) {\n this.documentsSingularPlural = 'document(s)';\n }\n\n this.authMethodStates = recipient.auth_method_states || ({} as Record<TRecipientAuthMethod, string>);\n this.kbaQuestions = recipient.kba_questions;\n if (Object.values(this.authMethodStates).includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n }\n\n // TODO: Envelope \"complete\" | \"declined\" | \"canceled\"\n // TODO: Recipient \"canceled\"\n\n if (this.envelope.status === 'canceled') {\n this.fatalErrorHeader = 'Unable to Start Signing Session';\n this.fatalErrorMessage = 'This envelope has been canceled. The sender has been notified.';\n } else if (recipient.status === 'declined') {\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this request. The sender has been notified.';\n } else if (this.agreed) {\n this.nextButtonLabel = 'Next';\n }\n\n this.checkRecipientFields();\n this.envelopeLoaded?.emit({endpoint: this.endpoint, envelope: this.envelope});\n }\n\n handleClickAgree() {\n this.submitting = true;\n console.log('[SIGN] Accepting disclosures', this.disclosures);\n envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, this.disclosures)\n .then(() => {\n this.nextButtonLabel = 'Next';\n this.recipient.agreed = true;\n this.submitting = false;\n this.agreed = true; // The server returns a recipient object but it's not \"deep\" so we track this locally\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'agreed'});\n })\n .catch(e => {\n console.log('[SIGN] Unable to accept disclosures', e);\n VerdocsToast('Unable to accept disclosures, please try again later', {style: 'error'});\n this.submitting = false;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'later':\n this.finishLater = true;\n this.showFinishLater = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'later'});\n break;\n\n case 'delegate':\n this.delegating = true;\n break;\n\n case 'decline':\n this.declining = true;\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download':\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n saveAttachment(this.endpoint, this.envelope, firstDoc.id).catch(e => {\n VerdocsToast('Unable to download PDF, please try again later', {style: 'error'});\n console.log('[SIGN] Error downloading PDF', e);\n });\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n }\n }\n break;\n }\n }\n\n updateRecipientFieldValue(fieldName: string, updateResult: any) {\n console.log('[SIGN] updateRecipientFieldValue', fieldName, updateResult);\n this.getRecipientFields().forEach(oldField => {\n if (oldField.name === fieldName) {\n oldField.value = updateResult.value;\n // TODO: Keeping this while attachments still rely on it\n oldField.settings = updateResult.settings;\n updateDocumentFieldValue(oldField);\n this.checkRecipientFields();\n }\n });\n }\n\n saveFieldChange(fieldName: string, fields: Record<string, any>) {\n console.log('[SIGN] saveFieldChange', fieldName, fields);\n updateEnvelopeField(this.endpoint, this.envelopeId, fieldName, fields) //\n .then(updateResult => this.updateRecipientFieldValue(fieldName, updateResult))\n .catch(e => {\n if (e.response?.status === 401 && e.response?.data?.error === 'jwt expired') {\n console.log('[SIGN] Signing session expired');\n this.fatalErrorHeader = 'Signing Session Expired';\n this.fatalErrorMessage = 'Please reload your browser to continue.';\n } else {\n console.log('[SIGN] Server error', e);\n VerdocsToast('Unable to save change, please try again later', {style: 'error'});\n }\n\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleFieldChange(field: IEnvelopeField, e: any) {\n const {value, checked} = e.target;\n\n switch (field.type as any) {\n // TODO: Remove legacy type when no longer needed\n case 'textarea':\n case 'textbox':\n return this.saveFieldChange(field.name, {prepared: false, value});\n\n case 'checkbox': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'radio': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'dropdown':\n // TODO: Set prepared to false server-side.\n console.log('Saving dropdown', field.name, e.detail);\n return this.saveFieldChange(field.name, {prepared: false, value: e.detail});\n\n case 'initial':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const initialsBlob = await (await fetch(e.detail)).blob();\n return createInitials(this.endpoint, 'initial', initialsBlob) //\n .then(async newInitials => {\n const updateResult = await updateEnvelopeFieldInitials(this.endpoint, this.envelopeId, field.name, newInitials.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.log('Error updating initials', e);\n VerdocsToast('Unable to save initials, please try again later', {style: 'error'});\n this.showSpinner = false;\n });\n\n case 'signature':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const signatureBlob = await (await fetch(e.detail)).blob();\n return createSignature(this.endpoint, 'signature', signatureBlob) //\n .then(async newSignature => {\n console.log('Signature update result', newSignature);\n const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.warn('[SIGN] Error updating signature', e);\n VerdocsToast('Unable to save signature, please try again later', {style: 'error'});\n this.showSpinner = false;\n });\n\n case 'date':\n const {formattedDate} = e.detail;\n if (formattedDate) {\n return this.saveFieldChange(field.name, {prepared: false, value: formattedDate});\n }\n break;\n\n case 'timestamp':\n console.log('[SIGN] Updating timestamp', {value, ts: e.target.getAttribute('timestamp')});\n break;\n\n default:\n console.log('[SIGN] Unhandled field update', {value, checked}, field);\n break;\n }\n }\n\n isFieldFilled(field: IEnvelopeField) {\n const {value = ''} = field;\n switch (field.type as any) {\n case 'textarea':\n case 'textbox':\n switch (field.validator || '') {\n case 'email':\n return isValidEmail(value);\n case 'phone':\n return isValidPhone(value);\n default:\n return (value || '').trim() !== '';\n }\n\n case 'signature':\n return value === 'signed';\n\n case 'initial':\n return value === 'initialed';\n\n // Timestamp fields get automatically filled when the envelope is submitted.\n case 'timestamp':\n return true;\n\n case 'date':\n return !!value;\n\n case 'attachment':\n return value === 'attached';\n\n case 'dropdown':\n return value !== '';\n\n case 'checkbox':\n return value === 'true';\n\n case 'radio':\n if (!!field.group) {\n return this.getRecipientFields()\n .filter(f => f.group === field.group)\n .some(field => field.value === 'true');\n }\n\n return field.value === 'true';\n\n default:\n return false;\n }\n }\n\n isFieldValid(field: IEnvelopeField) {\n return !field.required || this.isFieldFilled(field);\n }\n\n getSortedFillableFields() {\n const recipientFields = this.getRecipientFields().filter(field => field.type !== 'timestamp');\n sortFields(recipientFields);\n return recipientFields;\n }\n\n async handleNext() {\n if (this.nextSubmits) {\n try {\n // Patches the date picker to be forcibly removed if still showing during submission\n document.getElementById('air-datepicker-global-container')?.remove();\n\n this.submitting = true;\n const result = await envelopeRecipientSubmit(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Submitted successfully', result);\n // TODO: The \"proper\" way is generating an error from Stencil\n // NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which\n // the new node is to be inserted is not a child of this node.\n window.location.reload();\n // this.recipient.status = 'submitted';\n // this.showDone = true;\n // console.log('[SIGN] Reloading envelope');\n // getEnvelope(this.endpoint, this.envelopeId)\n // .then(envelope => {\n // this.envelope = envelope;\n // // The show-done dialog does this\n // // this.isDone = true;\n // this.submitting = false;\n // })\n // .catch(e => {\n // // this.isDone = true;\n // console.log('[SIGN] Error reloading envelope', e);\n // VerdocsToast('Unable to save changes, please try again later', {style: 'error'});\n // this.submitting = false;\n // });\n } catch (e) {\n console.log('[SIGN] Error submitting', e);\n }\n\n return;\n }\n\n // Find and focus the next incomplete field (that is fillable)\n const emptyFields = this.getSortedFillableFields().filter(field => field.required && !this.isFieldFilled(field));\n sortFields(emptyFields);\n\n const focusedIndex = emptyFields.findIndex(field => field.name === this.focusedField);\n let nextFocusedIndex = focusedIndex + 1;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n\n let nextRequiredField = emptyFields[nextFocusedIndex];\n // console.log('Next field', nextRequiredField, emptyFields);\n\n // Skip signature and initial fields that are already filled in. We have to count our \"skips\" just in case, to avoid infinite loops.\n let skips = 0;\n if (skips < emptyFields.length && ['signature', 'initial'].includes(nextRequiredField.type) && ['initialed', 'signed'].includes(nextRequiredField.value)) {\n skips++;\n nextFocusedIndex++;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n nextRequiredField = emptyFields[nextFocusedIndex];\n }\n\n if (skips >= emptyFields.length) {\n nextRequiredField = null;\n }\n\n if (nextRequiredField) {\n const id = getFieldId(nextRequiredField);\n const el = document.getElementById(id) as any;\n el?.scrollIntoView({behavior: 'smooth'});\n el?.focusField();\n this.focusedField = nextRequiredField.name;\n }\n }\n\n getRecipientFields() {\n return this.envelope.fields.filter(field => field.role_name === this.recipient.role_name);\n }\n\n // See if everything that \"needs to be\" filled in is, and all \"fillable fields\" are valid\n checkRecipientFields() {\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n if (invalidFields.length < 1) {\n this.nextButtonLabel = 'Finish';\n if (!this.nextSubmits) {\n this.nextSubmits = true;\n }\n } else {\n this.nextButtonLabel = 'Next';\n this.nextSubmits = false;\n }\n }\n\n attachFieldAttributes(pageInfo, field, el) {\n // We can get called multiple times as rendering completes and it's hard to avoid that\n // because it's a ton of work for the callers to know it's been done already. But we\n // don't want to attach multiple event listeners or we get dupe event handling, like\n // calling the server twice on every field update. Since JS has no removeAllEventListeners()\n // option, using removeEventListener() isn't reliable the way Stencil binds local function\n // contexts, and cloneNode messes up the rest of the rendering, we just track it with a flag.\n if (el.getAttribute('attached') === '1') {\n return;\n }\n el.setAttribute('attached', '1');\n\n el.addEventListener('input', (e: any) => {\n // console.log('[SIGN] onfieldInput', e.detail, e.target.value);\n // These field types don't emit fieldChange. Should we standardize on that? We don't tap \"input\" for fields like\n // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.\n if (e.target.type === 'radio' || e.target.type === 'checkbox') {\n // if (e.target.type === 'radio' || e.target.name.includes('date') || e.target.name.includes('checkbox')) {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n } else {\n this.checkRecipientFields();\n }\n });\n el.addEventListener('attached', async (e: any) => {\n console.log('[SIGN] onAttached', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name, e.detail);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('deleted', async (e: any) => {\n console.log('[SIGN] onDeleted', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await deleteEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name);\n console.log('[SIGN] Deleted attachment', updateResult);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('focusout', e => {\n // These field types trigger focusout as they're used, even without a value change\n if (field.type !== 'dropdown' && field.type !== 'attachment') {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n }\n });\n el.addEventListener('fieldChange', e => {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n });\n\n el.setAttribute('templateid', this.envelope.template_id);\n el.setAttribute('fieldname', field.name);\n el.setAttribute('page', pageInfo.pageNumber);\n el.setAttribute('xScale', pageInfo.xScale);\n el.setAttribute('yScale', pageInfo.yScale);\n\n const fullName = formatFullName(this.recipient);\n el.setAttribute('initials', fullNameToInitials(fullName));\n el.setAttribute('name', fullName);\n }\n\n handlePageRendered(e: any) {\n const pageInfo = e.detail as IDocumentPageInfo;\n\n // NOTE: We don't filter on pageNumber here because we need the position in the\n // entire list to set the tabIndex.\n const recipientFields = this.getSortedFillableFields();\n console.log('[SIGN] Rendering fields for page', pageInfo.pageNumber, recipientFields);\n\n // First render the fields for the signer\n recipientFields.forEach((field, tabIndex) => {\n if (field.page !== pageInfo.pageNumber) {\n return;\n }\n\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone}, tabIndex);\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n\n // Now render the fields for other signers who have yet to act\n this.envelope.recipients\n .filter(r => r.role_name !== this.recipient.role_name && (r.status === 'invited' || r.status === 'opened' || r.status === 'pending'))\n .forEach(() => {\n this.getRecipientFields()\n .filter(field => field.page === pageInfo.pageNumber)\n .forEach(field => {\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: true, editable: false, draggable: false, done: this.isDone});\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n });\n\n this.checkRecipientFields();\n }\n\n handleAuthenticateSigner(params: TAuthenticateRecipientRequest) {\n console.log('[SIGN] Submitting authentication step', params);\n verifySigner(this.endpoint, params)\n .then(r => {\n console.log('[SIGN] Verification successful', r);\n this.processAuthResponse(r);\n })\n .catch(e => {\n console.log('[SIGN] Error submitting authentication step', e);\n if (e.response?.data?.error?.includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n } else {\n VerdocsToast(e.response?.data?.error || 'Unable to verify your identity. Please try again.', {style: 'error'});\n }\n });\n }\n\n render() {\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to Start Signing\"\n message={`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`}\n buttonLabel=\"OK\"\n onNext={() => {\n window.location.reload();\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.fatalErrorMessage) {\n return (\n <Host class={{agreed: this.agreed}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">{this.fatalErrorHeader}</div>\n <p>{this.fatalErrorMessage}</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.delegated) {\n return (\n <Host class={{agreed: false}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">Delegated Signing Request</div>\n <p>You have delegated signing to another recipient. You will not be able to sign this request again.</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.isDone) {\n return (\n <Host class={{agreed: this.agreed}}>\n <verdocs-view endpoint={this.endpoint} envelopeId={this.envelopeId} onSdkError={e => this.sdkError?.emit(e.detail)} />\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={(e: any) => {\n e.preventDefault();\n e.stopPropagation();\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n\n if (this.delegating) {\n return (\n <Host class=\"agreed\">\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <verdocs-delegate-dialog\n endpoint={this.endpoint}\n envelope={this.envelope}\n onExit={() => (this.delegating = false)}\n onNext={(e: any) => {\n delegateRecipient(this.endpoint, this.envelopeId, this.roleId, e.detail)\n .then(r => {\n VerdocsToast('Delegation request submitted.', {style: 'success'});\n console.log('[SIGN] Delegated successfully', r);\n this.delegated = true;\n this.delegating = false;\n })\n .catch(e => {\n console.log('[SIGN] Error delegating request', e);\n VerdocsToast('Unable to process delegation request. Please try again later.', {style: 'error'});\n });\n }}\n />\n </Host>\n );\n }\n\n if (this.declining) {\n return (\n <verdocs-ok-dialog\n heading=\"Decline Signing Request\"\n message={`If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.`}\n buttonLabel=\"OK\"\n showCancel={true}\n onExit={() => (this.declining = false)}\n onNext={() => {\n envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId)\n .then(r => {\n console.log('[SIGN] Decline result', r);\n window.location.reload();\n })\n .catch(e => {\n console.warn('[SIGN] Error declining signing session', e);\n VerdocsToast('Unable to decline, please try again later', {style: 'error'});\n });\n }}\n />\n );\n }\n\n if (!this.agreed) {\n return (\n <Host class=\"agreed\">\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <verdocs-disclosure-dialog\n disclosures={this.disclosures}\n delegator={this.recipient.delegator}\n onDelegate={() => (this.delegating = true)}\n onDecline={() => (this.declining = true)}\n onAccept={() => this.handleClickAgree()}\n />\n </Host>\n );\n }\n\n if (this.authStep === 'passcode') {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"text\"\n step={1}\n steps={1}\n placeholder=\"Enter your passcode...\"\n helptitle=\"Document is protected by a Passcode\"\n helptext=\"Please enter your Passcode to proceed. If you do not have one, please contact the sender.\"\n label=\"Passcode\"\n onNext={e => this.handleAuthenticateSigner({auth_method: 'passcode', code: e.detail as string})}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'email') {\n return (\n <verdocs-otp-dialog\n endpoint={this.endpoint}\n method=\"email\"\n onNext={async e => {\n this.processAuthResponse(e.detail.response);\n }}\n />\n );\n }\n\n if (this.authStep === 'kba' && !this.authMethodStates.kba) {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"identity\"\n helptitle=\"Document requires identity verification\"\n helptext=\"Please complete your contact details to proceed.\"\n recipient={this.recipient}\n onNext={async e => {\n const recipDetails = e.detail as IRecipient;\n this.handleAuthenticateSigner({\n auth_method: 'kba',\n first_name: recipDetails.first_name,\n last_name: recipDetails.last_name,\n address: recipDetails.address,\n city: recipDetails.city,\n state: recipDetails.state,\n zip: recipDetails.zip,\n dob: recipDetails.dob,\n });\n }}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'kba' && this.authMethodStates.kba === 'questions') {\n const questionNumber = this.kbaChoices.length;\n const kbaQuestion = this.kbaQuestions[questionNumber];\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n {this.kbaChoices.length >= this.kbaQuestions.length ? (\n <verdocs-spinner />\n ) : (\n <verdocs-kba-dialog\n mode=\"choice\"\n helptitle=\"Your identity requires additional verification\"\n helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}\n choices={kbaQuestion?.answer || ['Skip Question']}\n step={questionNumber + 1}\n steps={this.kbaQuestions.length}\n onNext={async (e: any) => {\n const answer = e.detail as string;\n this.kbaChoices = [...this.kbaChoices, answer];\n if (this.kbaChoices.length >= this.kbaQuestions.length) {\n const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));\n console.log('Submitting KBA responses', this.kbaChoices, responses);\n this.handleAuthenticateSigner({auth_method: 'kba', responses});\n }\n }}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n\n const inProgressMenuOptions = [\n {id: 'later', label: 'Finish Later'}, //\n // {id: 'claim', label: 'Claim the Document', disabled: true},\n {id: 'decline', label: 'Decline to Sign'},\n {id: 'print', label: 'Print Without Signing'},\n {id: 'download', label: 'Download'},\n ];\n\n const doneMenuOptions = [\n {id: 'print', label: 'Print'},\n {id: 'download', label: 'Download'},\n ];\n\n if (this.recipient.delegator) {\n inProgressMenuOptions.unshift({id: 'delegate', label: 'Delegate'});\n }\n\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n invalidFields.length > 0\n ? console.log(\n '[SIGN] Invalid fields remaining',\n invalidFields.map(field => field.name),\n )\n : console.log('[SIGN] All field valid');\n\n return (\n <Host>\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n\n {!this.finishLater && <verdocs-button size=\"xsmall\" label={this.nextButtonLabel} disabled={!this.agreed || this.submitting} onClick={() => this.handleNext()} />}\n\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={!this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n {(this.envelope.documents || []).map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n // In signing mode we show the original template page with all the recipient fields so we can show source formatting and\n // where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or\n // future signers still need to act. Once we're \"done\" we flip to showing the envelope's documents which have the final\n // field vales (so far) stamped into them.\n // TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure\n // we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.\n // console.log('tp', templatePage, page);\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n type=\"filled\"\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n\n {this.showFinishLater && (\n <verdocs-ok-dialog\n heading=\"You've saved your document to finish later.\"\n message={`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`}\n onNext={() => (this.showFinishLater = false)}\n />\n )}\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={() => {\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {(this.submitting || this.showSpinner) && (\n <verdocs-portal>\n <div class=\"spinner-overlay\">\n <verdocs-spinner />\n </div>\n </verdocs-portal>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"41BAAA,MAAMA,EAAiB,wtHCcvB,MAAMC,EAAsB,2hB,MAgDfC,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,GACnBX,KAAiBY,kBAAG,GACpBZ,KAAYa,aAAG,GACfb,KAAWc,YAAGlB,EACdI,KAAUe,WAAG,MACbf,KAASgB,UAAG,MACZhB,KAAMiB,OAAG,MACTjB,KAAQkB,SAAG,MACXlB,KAAamB,cAAG,MAChBnB,KAAWoB,YAAG,MACdpB,KAAeqB,gBAAG,MAClBrB,KAAMsB,OAAG,MACTtB,KAAuBuB,wBAAG,WAC1BvB,KAAQwB,SAAkB,KAC1BxB,KAAgByB,iBAAkD,GAClEzB,KAAY0B,aAA0B,KACtC1B,KAAW2B,YAAG,MACd3B,KAAS4B,UAAG,MACZ5B,KAAU6B,WAAG,MACb7B,KAAS8B,UAAG,MACZ9B,KAAU+B,WAAG,GAEb/B,KAAOgC,QAAG,KACVhC,KAAQiC,SAAqB,IAw8BvC,CAp8BC,iBAAAC,GACE,IAAKl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,KAAKC,SACfsQ,aAAcH,EAAStD,MACvB0D,cAAeJ,EAASrD,OACxB9B,WAAYA,EACZwF,eAAgBxN,GAAKjD,KAAKuL,mBAAmBtI,GAC7C6C,KAAK,SACL4K,OAAQ,CACN,CAACpK,KAAM,OAAQR,KAAM,UACrB,CAACQ,KAAM,WAAYR,KAAM,SAE3B,IAGG,KAKhB9F,KAAKqB,iBACJ8K,EACE,qBAAAE,QAAQ,8CACRlJ,QAAS,mBAAmBnD,KAAKuB,2HACjCgL,OAAQ,IAAOvM,KAAKqB,gBAAkB,QAIzCrB,KAAKkB,UACJiL,EAAA,qBACEE,QAAQ,eACRlJ,QAAS,sBAAsBnD,KAAKuB,sOACpCgL,OAAQ,KACNvM,KAAKkB,SAAW,MAChBlB,KAAKiB,OAAS,IAAI,KAKtBjB,KAAKe,YAAcf,KAAK2B,cACxBwK,EAAA,sBACEA,EAAK,OAAAK,MAAM,mBACTL,EAAA,0B","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ import{r as e,c as t,h as n,F as o}from"./p-6vpKbd31.js";import{VerdocsEndpoint as r,formatFullName as i,getActiveEntitlements as s,isValidEmail as a}from"@verdocs/js-sdk";import{c,g as l}from"./p-BFTU3MAI.js";import{B as u}from"./p-C_Xku1v2.js";import{d as f}from"./p-fL0BKEnm.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";
2
+ /*! Axios v1.11.0 Copyright (c) 2025 Matt Zabriskie and contributors */var d;var h;function p(){if(h)return d;h=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const{iterator:o,toStringTag:r}=Symbol;const i=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const s=e=>{e=e.toLowerCase();return t=>i(t)===e};const a=e=>t=>typeof t===e;const{isArray:l}=Array;const u=a("undefined");function f(e){return e!==null&&!u(e)&&e.constructor!==null&&!u(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=s("ArrayBuffer");function m(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&p(e.buffer)}return t}const b=a("string");const w=a("function");const v=a("number");const g=e=>e!==null&&typeof e==="object";const y=e=>e===true||e===false;const x=e=>{if(i(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(r in e)&&!(o in e)};const k=e=>{if(!g(e)||f(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const R=s("Date");const O=s("File");const E=s("Blob");const S=s("FileList");const T=e=>g(e)&&w(e.pipe);const A=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||w(e.append)&&((t=i(e))==="formdata"||t==="object"&&w(e.toString)&&e.toString()==="[object FormData]"))};const j=s("URLSearchParams");const[C,N,F,P]=["ReadableStream","Request","Response","Headers"].map(s);const U=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let r;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,r=e.length;o<r;o++){t.call(null,e[o],o,e)}}else{if(f(e)){return}const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=r.length;let s;for(o=0;o<i;o++){s=r[o];t.call(null,e[s],s,e)}}}function I(e,t){if(f(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let r;while(o-- >0){r=n[o];if(t===r.toLowerCase()){return r}}return null}const _=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:c})();const D=e=>!u(e)&&e!==_;function L(){const{caseless:e}=D(this)&&this||{};const t={};const n=(n,o)=>{const r=e&&I(t,o)||o;if(x(t[r])&&x(n)){t[r]=L(t[r],n)}else if(x(n)){t[r]=L({},n)}else if(l(n)){t[r]=n.slice()}else{t[r]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&B(arguments[e],n)}return t}const q=(t,n,o,{allOwnKeys:r}={})=>{B(n,((n,r)=>{if(o&&w(n)){t[r]=e(n,o)}else{t[r]=n}}),{allOwnKeys:r});return t};const z=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const M=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const H=(e,t,o,r)=>{let i;let s;let a;const c={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);s=i.length;while(s-- >0){a=i[s];if((!r||r(a,e,t))&&!c[a]){t[a]=e[a];c[a]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const K=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const $=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const J=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const X=(e,t)=>{const n=e&&e[o];const r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const V=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const W=s("HTMLFormElement");const G=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const Q=s("RegExp");const Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};B(n,((n,r)=>{let i;if((i=t(n,r,e))!==false){o[r]=i||n}}));Object.defineProperties(e,o)};const ee=e=>{Y(e,((t,n)=>{if(w(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!w(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const te=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};l(e)?o(e):o(String(e).split(t));return n};const ne=()=>{};const oe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function re(e){return!!(e&&w(e.append)&&e[r]==="FormData"&&e[o])}const ie=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(f(e)){return e}if(!("toJSON"in e)){t[o]=e;const r=l(e)?[]:{};B(e,((e,t)=>{const i=n(e,o+1);!u(i)&&(r[t]=i)}));t[o]=undefined;return r}}return e};return n(e,0)};const se=s("AsyncFunction");const ae=e=>e&&(g(e)||w(e))&&w(e.then)&&w(e.catch);const ce=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{_.addEventListener("message",(({source:n,data:o})=>{if(n===_&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);_.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",w(_.postMessage));const le=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(_):typeof process!=="undefined"&&process.nextTick||ce;const ue=e=>e!=null&&w(e[o]);var fe={isArray:l,isArrayBuffer:p,isBuffer:f,isFormData:A,isArrayBufferView:m,isString:b,isNumber:v,isBoolean:y,isObject:g,isPlainObject:x,isEmptyObject:k,isReadableStream:C,isRequest:N,isResponse:F,isHeaders:P,isUndefined:u,isDate:R,isFile:O,isBlob:E,isRegExp:Q,isFunction:w,isStream:T,isURLSearchParams:j,isTypedArray:J,isFileList:S,forEach:B,merge:L,extend:q,trim:U,stripBOM:z,inherits:M,toFlatObject:H,kindOf:i,kindOfTest:s,endsWith:K,toArray:$,forEachEntry:X,matchAll:V,isHTMLForm:W,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:Y,freezeMethods:ee,toObjectSet:te,toCamelCase:G,noop:ne,toFiniteNumber:oe,findKey:I,global:_,isContextDefined:D,isSpecCompliantForm:re,toJSONObject:ie,isAsyncFn:se,isThenable:ae,setImmediate:ce,asap:le,isIterable:ue};function de(e,t,n,o,r){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(r){this.response=r;this.status=r.status?r.status:null}}fe.inherits(de,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const he=de.prototype;const pe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{pe[e]={value:e}}));Object.defineProperties(de,pe);Object.defineProperty(he,"isAxiosError",{value:true});de.from=(e,t,n,o,r,i)=>{const s=Object.create(he);fe.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));de.call(s,e.message,t,n,o,r);s.cause=e;s.name=e.name;i&&Object.assign(s,i);return s};var me=null;function be(e){return fe.isPlainObject(e)||fe.isArray(e)}function we(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=we(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function ge(e){return fe.isArray(e)&&!e.some(be)}const ye=fe.toFlatObject(fe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function xe(e,t,n){if(!fe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=fe.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!fe.isUndefined(n[t])}));const o=n.metaTokens;const r=n.visitor||u;const i=n.dots;const s=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&fe.isSpecCompliantForm(t);if(!fe.isFunction(r)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(fe.isDate(e)){return e.toISOString()}if(fe.isBoolean(e)){return e.toString()}if(!c&&fe.isBlob(e)){throw new de("Blob is not supported. Use a Buffer instead.")}if(fe.isArrayBuffer(e)||fe.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,r){let a=e;if(e&&!r&&typeof e==="object"){if(fe.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(fe.isArray(e)&&ge(e)||(fe.isFileList(e)||fe.endsWith(n,"[]"))&&(a=fe.toArray(e))){n=we(n);a.forEach((function e(o,r){!(fe.isUndefined(o)||o===null)&&t.append(s===true?ve([n],r,i):s===null?n:n+"[]",l(o))}));return false}}if(be(e)){return true}t.append(ve(r,n,i),l(e));return false}const f=[];const d=Object.assign(ye,{defaultVisitor:u,convertValue:l,isVisitable:be});function h(e,n){if(fe.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);fe.forEach(e,(function e(o,i){const s=!(fe.isUndefined(o)||o===null)&&r.call(t,o,fe.isString(i)?i.trim():i,n,d);if(s===true){h(o,n?n.concat(i):[i])}}));f.pop()}if(!fe.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function Re(e,t){this._pairs=[];e&&xe(e,this,t)}const Oe=Re.prototype;Oe.append=function e(t,n){this._pairs.push([t,n])};Oe.toString=function e(t){const n=t?function(e){return t.call(this,e,ke)}:ke;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,n){if(!t){return e}const o=n&&n.encode||Ee;if(fe.isFunction(n)){n={serialize:n}}const r=n&&n.serialize;let i;if(r){i=r(t,n)}else{i=fe.isURLSearchParams(t)?t.toString():new Re(t,n).toString(o)}if(i){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Te{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){fe.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Ae=Te;var je={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ce=typeof URLSearchParams!=="undefined"?URLSearchParams:Re;var Ne=typeof FormData!=="undefined"?FormData:null;var Fe=typeof Blob!=="undefined"?Blob:null;var Pe={isBrowser:true,classes:{URLSearchParams:Ce,FormData:Ne,Blob:Fe},protocols:["http","https","file","blob","url","data"]};const Ue=typeof window!=="undefined"&&typeof document!=="undefined";const Be=typeof navigator==="object"&&navigator||undefined;const Ie=Ue&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0);const _e=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const De=Ue&&window.location.href||"http://localhost";var Le=Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:_e,hasStandardBrowserEnv:Ie,navigator:Be,origin:De});var qe={...Le,...Pe};function ze(e,t){return xe(e,new qe.classes.URLSearchParams,{visitor:function(e,t,n,o){if(qe.isNode&&fe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function Me(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function He(e){const t={};const n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++){i=n[o];t[i]=e[i]}return t}function Ke(e){function t(e,n,o,r){let i=e[r++];if(i==="__proto__")return true;const s=Number.isFinite(+i);const a=r>=e.length;i=!i&&fe.isArray(o)?o.length:i;if(a){if(fe.hasOwnProp(o,i)){o[i]=[o[i],n]}else{o[i]=n}return!s}if(!o[i]||!fe.isObject(o[i])){o[i]=[]}const c=t(e,n,o[i],r);if(c&&fe.isArray(o[i])){o[i]=He(o[i])}return!s}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};fe.forEachEntry(e,((e,o)=>{t(Me(e),o,n,0)}));return n}return null}function $e(e,t,n){if(fe.isString(e)){try{(0,JSON.parse)(e);return fe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Je={transitional:je,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const r=o.indexOf("application/json")>-1;const i=fe.isObject(t);if(i&&fe.isHTMLForm(t)){t=new FormData(t)}const s=fe.isFormData(t);if(s){return r?JSON.stringify(Ke(t)):t}if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t)){return t}if(fe.isArrayBufferView(t)){return t.buffer}if(fe.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let a;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1){return ze(t,this.formSerializer).toString()}if((a=fe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return xe(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(i||r){n.setContentType("application/json",false);return $e(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Je.transitional;const o=n&&n.forcedJSONParsing;const r=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t)){return t}if(t&&fe.isString(t)&&(o&&!this.responseType||r)){const e=n&&n.silentJSONParsing;const o=!e&&r;try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:qe.classes.FormData,Blob:qe.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};fe.forEach(["delete","get","head","post","put","patch"],(e=>{Je.headers[e]={}}));var Xe=Je;const Ve=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var We=e=>{const t={};let n;let o;let r;e&&e.split("\n").forEach((function e(i){r=i.indexOf(":");n=i.substring(0,r).trim().toLowerCase();o=i.substring(r+1).trim();if(!n||t[n]&&Ve[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};const Ge=Symbol("internals");function Ze(e){return e&&String(e).trim().toLowerCase()}function Qe(e){if(e===false||e==null){return e}return fe.isArray(e)?e.map(Qe):String(e)}function Ye(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tt(e,t,n,o,r){if(fe.isFunction(o)){return o.call(this,t,n)}if(r){t=n}if(!fe.isString(t))return;if(fe.isString(o)){return t.indexOf(o)!==-1}if(fe.isRegExp(o)){return o.test(t)}}function nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ot(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:true})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ze(t);if(!r){throw new Error("header name must be a non-empty string")}const i=fe.findKey(o,r);if(!i||o[i]===undefined||n===true||n===undefined&&o[i]!==false){o[i||t]=Qe(e)}}const i=(e,t)=>fe.forEach(e,((e,n)=>r(e,n,t)));if(fe.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(fe.isString(e)&&(e=e.trim())&&!et(e)){i(We(e),t)}else if(fe.isObject(e)&&fe.isIterable(e)){let n={},o,r;for(const t of e){if(!fe.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[r=t[0]]=(o=n[r])?fe.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}i(n,t)}else{e!=null&&r(t,e,n)}return this}get(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ye(e)}if(fe.isFunction(t)){return t.call(this,e,n)}if(fe.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||tt(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function r(e){e=Ze(e);if(e){const r=fe.findKey(n,e);if(r&&(!t||tt(n,n[r],r,t))){delete n[r];o=true}}}if(fe.isArray(e)){e.forEach(r)}else{r(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const r=t[n];if(!e||tt(this,this[r],r,e,true)){delete this[r];o=true}}return o}normalize(e){const t=this;const n={};fe.forEach(this,((o,r)=>{const i=fe.findKey(n,r);if(i){t[i]=Qe(o);delete t[r];return}const s=e?nt(r):String(r).trim();if(s!==r){delete t[r]}t[s]=Qe(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);fe.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&fe.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Ge]=this[Ge]={accessors:{}};const n=t.accessors;const o=this.prototype;function r(e){const t=Ze(e);if(!n[t]){ot(o,e);n[t]=true}}fe.isArray(e)?e.forEach(r):r(e);return this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));fe.freezeMethods(rt);var it=rt;function st(e,t){const n=this||Xe;const o=t||n;const r=it.from(o.headers);let i=o.data;fe.forEach(e,(function e(o){i=o.call(n,i,r.normalize(),t?t.status:undefined)}));r.normalize();return i}function at(e){return!!(e&&e.__CANCEL__)}function ct(e,t,n){de.call(this,e==null?"canceled":e,de.ERR_CANCELED,t,n);this.name="CanceledError"}fe.inherits(ct,de,{__CANCEL__:true});function lt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function ut(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let r=0;let i=0;let s;t=t!==undefined?t:1e3;return function a(c){const l=Date.now();const u=o[i];if(!s){s=l}n[r]=c;o[r]=l;let f=i;let d=0;while(f!==r){d+=n[f++];f=f%e}r=(r+1)%e;if(r===i){i=(i+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function dt(e,t){let n=0;let o=1e3/t;let r;let i;const s=(t,o=Date.now())=>{n=o;r=null;if(i){clearTimeout(i);i=null}e(...t)};const a=(...e)=>{const t=Date.now();const a=t-n;if(a>=o){s(e,t)}else{r=e;if(!i){i=setTimeout((()=>{i=null;s(r)}),o-a)}}};const c=()=>r&&s(r);return[a,c]}const ht=(e,t,n=3)=>{let o=0;const r=ft(50,250);return dt((n=>{const i=n.loaded;const s=n.lengthComputable?n.total:undefined;const a=i-o;const c=r(a);const l=i<=s;o=i;const u={loaded:i,total:s,progress:s?i/s:undefined,bytes:a,rate:c?c:undefined,estimated:c&&s&&l?(s-i)/c:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const pt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const mt=e=>(...t)=>fe.asap((()=>e(...t)));var bt=qe.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,qe.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(qe.origin),qe.navigator&&/(msie|trident)/i.test(qe.navigator.userAgent)):()=>true;var wt=qe.hasStandardBrowserEnv?{write(e,t,n,o,r,i){const s=[e+"="+encodeURIComponent(t)];fe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString());fe.isString(o)&&s.push("path="+o);fe.isString(r)&&s.push("domain="+r);i===true&&s.push("secure");document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,n){let o=!vt(t);if(e&&(o||n==false)){return gt(e,t)}return t}const xt=e=>e instanceof it?{...e}:e;function kt(e,t){t=t||{};const n={};function o(e,t,n,o){if(fe.isPlainObject(e)&&fe.isPlainObject(t)){return fe.merge.call({caseless:o},e,t)}else if(fe.isPlainObject(t)){return fe.merge({},t)}else if(fe.isArray(t)){return t.slice()}return t}function r(e,t,n,r){if(!fe.isUndefined(t)){return o(e,t,n,r)}else if(!fe.isUndefined(e)){return o(undefined,e,n,r)}}function i(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}else if(!fe.isUndefined(e)){return o(undefined,e)}}function a(n,r,i){if(i in t){return o(n,r)}else if(i in e){return o(undefined,n)}}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>r(xt(e),xt(t),n,true)};fe.forEach(Object.keys({...e,...t}),(function o(i){const s=c[i]||r;const l=s(e[i],t[i],i);fe.isUndefined(l)&&s!==a||(n[i]=l)}));return n}var Rt=e=>{const t=kt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=it.from(s);t.url=Se(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(a){s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")))}let c;if(fe.isFormData(n)){if(qe.hasStandardBrowserEnv||qe.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if((c=s.getContentType())!==false){const[e,...t]=c?c.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}}if(qe.hasStandardBrowserEnv){o&&fe.isFunction(o)&&(o=o(t));if(o||o!==false&&bt(t.url)){const e=r&&i&&wt.read(i);if(e){s.set(r,e)}}}return t};const Ot=typeof XMLHttpRequest!=="undefined";var Et=Ot&&function(e){return new Promise((function t(n,o){const r=Rt(e);let i=r.data;const s=it.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r;let u;let f,d;let h,p;function m(){h&&h();p&&p();r.cancelToken&&r.cancelToken.unsubscribe(u);r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,true);b.timeout=r.timeout;function w(){if(!b){return}const t=it.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const r=!a||a==="text"||a==="json"?b.responseText:b.response;const i={data:r,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};lt((function e(t){n(t);m()}),(function e(t){o(t);m()}),i);b=null}if("onloadend"in b){b.onloadend=w}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(w)}}b.onabort=function t(){if(!b){return}o(new de("Request aborted",de.ECONNABORTED,e,b));b=null};b.onerror=function t(){o(new de("Network Error",de.ERR_NETWORK,e,b));b=null};b.ontimeout=function t(){let n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||je;if(r.timeoutErrorMessage){n=r.timeoutErrorMessage}o(new de(n,i.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,b));b=null};i===undefined&&s.setContentType(null);if("setRequestHeader"in b){fe.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!fe.isUndefined(r.withCredentials)){b.withCredentials=!!r.withCredentials}if(a&&a!=="json"){b.responseType=r.responseType}if(l){[d,p]=ht(l,true);b.addEventListener("progress",d)}if(c&&b.upload){[f,h]=ht(c);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(r.cancelToken||r.signal){u=t=>{if(!b){return}o(!t||t.type?new ct(null,e,b):t);b.abort();b=null};r.cancelToken&&r.cancelToken.subscribe(u);if(r.signal){r.signal.aborted?u():r.signal.addEventListener("abort",u)}}const v=ut(r.url);if(v&&qe.protocols.indexOf(v)===-1){o(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,e));return}b.send(i||null)}))};const St=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const r=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof de?t:new ct(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null;r(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))}),t);const s=()=>{if(e){i&&clearTimeout(i);i=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}));e=null}};e.forEach((e=>e.addEventListener("abort",r)));const{signal:a}=n;a.unsubscribe=()=>fe.asap(s);return a}};var Tt=St;const At=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let r;while(o<n){r=o+t;yield e.slice(o,r);o=r}};const jt=async function*(e,t){for await(const n of Ct(e)){yield*At(n,t)}};const Ct=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const Nt=(e,t,n,o)=>{const r=jt(e,t);let i=0;let s;let a=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t){a();e.close();return}let s=o.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){a(e);throw e}},cancel(e){a(e);return r.return()}},{highWaterMark:2})};const Ft=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const Pt=Ft&&typeof ReadableStream==="function";const Ut=Ft&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const Bt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const It=Pt&&Bt((()=>{let e=false;const t=new Request(qe.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const _t=64*1024;const Dt=Pt&&Bt((()=>fe.isReadableStream(new Response("").body)));const Lt={stream:Dt&&(e=>e.body)};Ft&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Lt[t]&&(Lt[t]=fe.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new de(`Response type '${t}' is not supported`,de.ERR_NOT_SUPPORT,n)})}))})(new Response);const qt=async e=>{if(e==null){return 0}if(fe.isBlob(e)){return e.size}if(fe.isSpecCompliantForm(e)){const t=new Request(qe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e)){return e.byteLength}if(fe.isURLSearchParams(e)){e=e+""}if(fe.isString(e)){return(await Ut(e)).byteLength}};const zt=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n==null?qt(t):n};var Mt=Ft&&(async e=>{let{url:t,method:n,data:o,signal:r,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Rt(e);l=l?(l+"").toLowerCase():"text";let h=Tt([r,i&&i.toAbortSignal()],s);let p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&It&&n!=="get"&&n!=="head"&&(b=await zt(u,o))!==0){let e=new Request(t,{method:"POST",body:o,duplex:"half"});let n;if(fe.isFormData(o)&&(n=e.headers.get("content-type"))){u.setContentType(n)}if(e.body){const[t,n]=pt(b,ht(mt(c)));o=Nt(e.body,_t,t,n)}}if(!fe.isString(f)){f=f?"include":"omit"}const r="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:r?f:undefined});let i=await fetch(p,d);const s=Dt&&(l==="stream"||l==="response");if(Dt&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=fe.toFiniteNumber(i.headers.get("content-length"));const[n,o]=a&&pt(t,ht(mt(a),true))||[];i=new Response(Nt(i.body,_t,n,(()=>{o&&o();m&&m()})),e)}l=l||"text";let w=await Lt[fe.findKey(Lt,l)||"text"](i,e);!s&&m&&m();return await new Promise(((t,n)=>{lt(t,n,{data:w,headers:it.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(t){m&&m();if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,p),{cause:t.cause||t})}throw de.from(t,t&&t.code,e,p)}});const Ht={http:me,xhr:Et,fetch:Mt};fe.forEach(Ht,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Kt=e=>`- ${e}`;const $t=e=>fe.isFunction(e)||e===null||e===false;var Jt={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n;let o;const r={};for(let i=0;i<t;i++){n=e[i];let t;o=n;if(!$t(n)){o=Ht[(t=String(n)).toLowerCase()];if(o===undefined){throw new de(`Unknown adapter '${t}'`)}}if(o){break}r[t||"#"+i]=o}if(!o){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Kt).join("\n"):" "+Kt(e[0]):"as no adapter specified";throw new de(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return o},adapters:Ht};function Xt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ct(null,e)}}function Vt(e){Xt(e);e.headers=it.from(e.headers);e.data=st.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Jt.getAdapter(e.adapter||Xe.adapter);return t(e).then((function t(n){Xt(e);n.data=st.call(e,e.transformResponse,n);n.headers=it.from(n.headers);return n}),(function t(n){if(!at(n)){Xt(e);if(n&&n.response){n.response.data=st.call(e,e.transformResponse,n.response);n.response.headers=it.from(n.response.headers)}}return Promise.reject(n)}))}const Wt="1.11.0";const Gt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Gt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Zt={};Gt.transitional=function e(t,n,o){function r(e,t){return"[Axios v"+Wt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,i)=>{if(t===false){throw new de(r(o," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED)}if(n&&!Zt[o]){Zt[o]=true;console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,i):true}};Gt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Qt(e,t,n){if(typeof e!=="object"){throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let r=o.length;while(r-- >0){const i=o[r];const s=t[i];if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new de("option "+i+" must be "+n,de.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}}var Yt={assertOptions:Qt,validators:Gt};const en=Yt.validators;class tn{constructor(e){this.defaults=e||{};this.interceptors={request:new Ae,response:new Ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=kt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;if(n!==undefined){Yt.assertOptions(n,{silentJSONParsing:en.transitional(en.boolean),forcedJSONParsing:en.transitional(en.boolean),clarifyTimeoutError:en.transitional(en.boolean)},false)}if(o!=null){if(fe.isFunction(o)){t.paramsSerializer={serialize:o}}else{Yt.assertOptions(o,{encode:en.function,serialize:en.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Yt.assertOptions(t,{baseUrl:en.spelling("baseURL"),withXsrfToken:en.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&fe.merge(r.common,r[t.method]);r&&fe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]}));t.headers=it.concat(i,r);const s=[];let a=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}a=a&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const c=[];this.interceptors.response.forEach((function e(t){c.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!a){const e=[Vt.bind(this),undefined];e.unshift(...s);e.push(...c);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;u=0;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Vt.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=c.length;while(u<f){l=l.then(c[u++],c[u++])}return l}getUri(e){e=kt(this.defaults,e);const t=yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Se(t,e.params,e.paramsSerializer)}}fe.forEach(["delete","get","head","options"],(function e(t){tn.prototype[t]=function(e,n){return this.request(kt(n||{},{method:t,url:e,data:(n||{}).data}))}}));fe.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,r,i){return this.request(kt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}tn.prototype[t]=n();tn.prototype[t+"Form"]=n(true)}));var nn=tn;class on{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,r,i){if(n.reason){return}n.reason=new ct(o,r,i);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new on((function t(n){e=n}));return{token:t,cancel:e}}}var rn=on;function sn(e){return function t(n){return e.apply(null,n)}}function an(e){return fe.isObject(e)&&e.isAxiosError===true}const cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cn).forEach((([e,t])=>{cn[t]=e}));var ln=cn;function un(t){const n=new nn(t);const o=e(nn.prototype.request,n);fe.extend(o,nn.prototype,n,{allOwnKeys:true});fe.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return un(kt(t,n))};return o}const fn=un(Xe);fn.Axios=nn;fn.CanceledError=ct;fn.CancelToken=rn;fn.isCancel=at;fn.VERSION=Wt;fn.toFormData=xe;fn.AxiosError=de;fn.Cancel=fn.CanceledError;fn.all=function e(t){return Promise.all(t)};fn.spread=sn;fn.isAxiosError=an;fn.mergeConfig=kt;fn.AxiosHeaders=it;fn.formToJSON=e=>Ke(fe.isHTMLForm(e)?new FormData(e):e);fn.getAdapter=Jt.getAdapter;fn.HttpStatusCode=ln;fn.default=fn;d=fn;return d}var m=p();var b=l(m);const w=u.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const v=()=>b.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:w}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const g='@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .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-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';const y=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;const x=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId=`verdocs-contact-picker-firstname-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=i(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}s(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));v().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})}handleSelectSuggestion(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false}render(){var e,t,r,s,c,l,u,d,h,p,m,b,w,v,g,x,k,R;const O=this.first_name&&this.last_name&&a(this.email);const E=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;const S=O&&E;const T=((r=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||r===void 0?void 0:r.enabled)===true;const A=[];if(((l=(c=(s=this.featureFlags)===null||s===void 0?void 0:s.toggles)===null||c===void 0?void 0:c.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){A.push({label:"Passcode",value:"passcode"})}if(((h=(d=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||d===void 0?void 0:d.find((e=>e.name==="email-verification")))===null||h===void 0?void 0:h.enabled)===true){A.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){A.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(v=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||v===void 0?void 0:v.find((e=>e.name==="kba-verification")))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){A.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((e=>e.name==="id-verification")))===null||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){A.push({label:"ID Check",value:"id"})}return n("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},n("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},n("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:y}),n("div",{class:"details"},n("div",{class:"name"},i(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},n("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),T&&n("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},n("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=f(e.target.value)}})),n(o,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},A.length>0&&n("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},n("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Verification Methods:"),n("div",{key:"51370acfa10be18fa7783ee28849caaf9ad11fcb"},A.map(((e,t)=>n("div",{class:"option"},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.auth_methods.includes(e.value),onInput:t=>{if(t.target.checked){this.auth_methods=[...this.auth_methods,e.value]}else{this.auth_methods=this.auth_methods.filter((t=>t!==e.value))}}}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label)))))),this.auth_methods.includes("passcode")&&n("div",{key:"37cc47ae07fcee96a90ca0684307b2fa12436fbd",class:"row pin-code"},n("label",{key:"57b9975fcdf609ebcfd709f2cc646f74163eda15",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"5c9f4d7f4757512fa7c87e91adf731fe256050da",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"7bed0f7befff14122e821680fce895d64889212c",class:"row pin-code"},n("label",{key:"295f03231ca15e2a25895d8f6dca7b7507fc58fa"},"Delegation:"),n("div",{key:"21d03961df0853b3f1e4a4b3e9445e8a3ecf80ee"},n("div",{key:"1e70e144d4e678e9697039468549ef38606dc3b7",class:"option"},n("verdocs-checkbox",{key:"8f94ea2d0b3f1bc8831c8666d379ebc2a22fbb95",size:"small",id:"verdocs-delegator",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked}}),n("label",{key:"9ea3f9f359f7045aebd80367af0a7431d1e850e4",htmlFor:"verdocs-delegator"},"May delegate signing")))),n("div",{key:"90e07660115c7f41ade3aad5fe4eb93d7d8cb4fd",class:"row message"},n("label",{key:"0268f3ecd123de3c8d0e27b345253385157bfce6",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"526671a3e768cc6280e82d04fe4f86d0fd5678bd",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"9bfb44085c94a08a9d2957d031e263d398ab170b",class:"buttons"},n("div",{key:"2b21510d850071094dd7005c26de4e8cd14c992d",class:"flex-fill"}),n("verdocs-button",{key:"881527d8167c31490622f3e9f0252cfdd3139d58",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"3dbc5efa49eb696eedb2d50c06837b70abea5e80",label:"OK",size:"small",disabled:!S,onClick:!S?()=>{}:e=>this.handleSubmit(e)})))}};x.style=g;export{x as verdocs_contact_picker};
3
+ //# sourceMappingURL=p-dd51c6cf.entry.js.map