@verdocs/web-sdk 6.2.9 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-BSi_QTIT.js → index-CQ5bTnED.js} +51 -12
- package/dist/cjs/index-CQ5bTnED.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-date-input.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-delegate-dialog_5.cjs.entry.js +25 -15
- package/dist/cjs/verdocs-dialog.cjs.entry.js +28 -0
- package/dist/cjs/verdocs-dialog.entry.cjs.js.map +1 -0
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.cjs.js.map +1 -0
- package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +317 -0
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
- package/dist/cjs/{verdocs-dialog_2.cjs.entry.js → verdocs-ok-dialog.cjs.entry.js} +2 -25
- package/dist/cjs/verdocs-ok-dialog.entry.cjs.js.map +1 -0
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +11 -11
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-switch.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-table.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-create.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +29 -40
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +13 -9
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.css +63 -0
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +104 -0
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +12 -12
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +12 -5
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.css +94 -0
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js +305 -0
- package/dist/collection/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/components/index.js +5 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-Da1nfhXq.js → p-5Fek5Wy9.js} +10 -10
- package/dist/components/{p-Da1nfhXq.js.map → p-5Fek5Wy9.js.map} +1 -1
- package/dist/components/{p-Cm3Ns2TB.js → p-5cFBOeAO.js} +4 -4
- package/dist/components/{p-Cm3Ns2TB.js.map → p-5cFBOeAO.js.map} +1 -1
- package/dist/components/{p-BiqAkA9R.js → p-B1xA5_lE.js} +12 -12
- package/dist/components/{p-BiqAkA9R.js.map → p-B1xA5_lE.js.map} +1 -1
- package/dist/components/p-B847qTqO.js +194 -0
- package/dist/components/p-B847qTqO.js.map +1 -0
- package/dist/components/{p-CBfSBOmz.js → p-BBgYkz_p.js} +6 -6
- package/dist/components/{p-CBfSBOmz.js.map → p-BBgYkz_p.js.map} +1 -1
- package/dist/components/{p-tGg7lt4q.js → p-BJmkJ4bg.js} +6 -6
- package/dist/components/{p-tGg7lt4q.js.map → p-BJmkJ4bg.js.map} +1 -1
- package/dist/components/{p-RQJ9uyyW.js → p-BLnFOrAj.js} +3 -3
- package/dist/components/{p-RQJ9uyyW.js.map → p-BLnFOrAj.js.map} +1 -1
- package/dist/components/{p-mrJQukV3.js → p-BQVsyF2B.js} +4 -4
- package/dist/components/{p-mrJQukV3.js.map → p-BQVsyF2B.js.map} +1 -1
- package/dist/components/{p-Ck_1uk0F.js → p-Be40bZ4S.js} +15 -15
- package/dist/components/{p-Ck_1uk0F.js.map → p-Be40bZ4S.js.map} +1 -1
- package/dist/components/{p-CwgpN7A7.js → p-BjnLxewv.js} +40 -18
- package/dist/components/p-BjnLxewv.js.map +1 -0
- package/dist/components/{p-C2cseLAY.js → p-Bp0u1Tax.js} +3 -3
- package/dist/components/{p-C2cseLAY.js.map → p-Bp0u1Tax.js.map} +1 -1
- package/dist/components/{p-Bf5ceLBh.js → p-BtUdLOJF.js} +4 -4
- package/dist/components/{p-Bf5ceLBh.js.map → p-BtUdLOJF.js.map} +1 -1
- package/dist/components/{p-DqGzrrae.js → p-C74Z96Hx.js} +6 -6
- package/dist/components/{p-DqGzrrae.js.map → p-C74Z96Hx.js.map} +1 -1
- package/dist/components/{p-wj1u5UNC.js → p-C7Lom-pC.js} +3 -3
- package/dist/components/{p-wj1u5UNC.js.map → p-C7Lom-pC.js.map} +1 -1
- package/dist/components/{p-Dwu1JL0y.js → p-C97fAomN.js} +39 -20
- package/dist/components/p-C97fAomN.js.map +1 -0
- package/dist/components/{p-DIl7zlTd.js → p-CRuFRHzn.js} +3 -3
- package/dist/components/{p-DIl7zlTd.js.map → p-CRuFRHzn.js.map} +1 -1
- package/dist/components/{p-DJ-Mdr6l.js → p-CSxSI_ON.js} +29 -29
- package/dist/components/{p-DJ-Mdr6l.js.map → p-CSxSI_ON.js.map} +1 -1
- package/dist/components/{p-9up2BmHp.js → p-CUAGH_8P.js} +39 -4
- package/dist/components/p-CUAGH_8P.js.map +1 -0
- package/dist/components/p-CWGZlA4l.js +62 -0
- package/dist/components/p-CWGZlA4l.js.map +1 -0
- package/dist/components/{p-BhqIuhDg.js → p-CYcdoH4s.js} +3 -3
- package/dist/components/{p-BhqIuhDg.js.map → p-CYcdoH4s.js.map} +1 -1
- package/dist/components/{p-D_QT5uZk.js → p-CbATIWo8.js} +3 -3
- package/dist/components/{p-D_QT5uZk.js.map → p-CbATIWo8.js.map} +1 -1
- package/dist/components/{p-zrJoPo_R.js → p-CcVkCmQi.js} +12 -12
- package/dist/components/{p-zrJoPo_R.js.map → p-CcVkCmQi.js.map} +1 -1
- package/dist/components/{p-BW3GsUj9.js → p-Cf0Hy4s4.js} +3 -3
- package/dist/components/{p-BW3GsUj9.js.map → p-Cf0Hy4s4.js.map} +1 -1
- package/dist/components/{p-C3iwT41e.js → p-ClMXECec.js} +3 -3
- package/dist/components/{p-C3iwT41e.js.map → p-ClMXECec.js.map} +1 -1
- package/dist/components/{p-Bba-t7GY.js → p-CmOvVqbw.js} +4 -4
- package/dist/components/{p-Bba-t7GY.js.map → p-CmOvVqbw.js.map} +1 -1
- package/dist/components/{p-fnInzV73.js → p-Cxr-iSrc.js} +4 -4
- package/dist/components/{p-fnInzV73.js.map → p-Cxr-iSrc.js.map} +1 -1
- package/dist/components/{p-CPvyHpp6.js → p-D-o8QR0Y.js} +4 -4
- package/dist/components/{p-CPvyHpp6.js.map → p-D-o8QR0Y.js.map} +1 -1
- package/dist/components/{p-9Csbf-tN.js → p-D90w1eGV.js} +7 -7
- package/dist/components/{p-9Csbf-tN.js.map → p-D90w1eGV.js.map} +1 -1
- package/dist/components/{p-_BQ9q2MT.js → p-D9PE4xz7.js} +4 -4
- package/dist/components/{p-_BQ9q2MT.js.map → p-D9PE4xz7.js.map} +1 -1
- package/dist/components/{p-Ctqad2FQ.js → p-D9wBk_Bz.js} +3 -3
- package/dist/components/{p-Ctqad2FQ.js.map → p-D9wBk_Bz.js.map} +1 -1
- package/dist/components/{p-kvTSiSQ0.js → p-DHOg-bdt.js} +4 -4
- package/dist/components/p-DHOg-bdt.js.map +1 -0
- package/dist/components/{p-l8SjDNT6.js → p-DHYsT4bg.js} +27 -27
- package/dist/components/{p-l8SjDNT6.js.map → p-DHYsT4bg.js.map} +1 -1
- package/dist/components/{p-Opf3i5hz.js → p-DJ98c2L8.js} +3 -3
- package/dist/components/{p-Opf3i5hz.js.map → p-DJ98c2L8.js.map} +1 -1
- package/dist/components/{p-DaDjn3gR.js → p-DLRzhboq.js} +5 -5
- package/dist/components/{p-DaDjn3gR.js.map → p-DLRzhboq.js.map} +1 -1
- package/dist/components/{p-CkxqbZql.js → p-DMN-w8Ma.js} +11 -11
- package/dist/components/{p-CkxqbZql.js.map → p-DMN-w8Ma.js.map} +1 -1
- package/dist/components/{p-Ce6zu4xM.js → p-DQ5Kf869.js} +13 -13
- package/dist/components/{p-Ce6zu4xM.js.map → p-DQ5Kf869.js.map} +1 -1
- package/dist/components/{p-tRr-_bWO.js → p-DQZV5DpX.js} +14 -14
- package/dist/components/{p-tRr-_bWO.js.map → p-DQZV5DpX.js.map} +1 -1
- package/dist/components/{p-BL3Ul9SN.js → p-DQc8oYff.js} +3 -3
- package/dist/components/{p-BL3Ul9SN.js.map → p-DQc8oYff.js.map} +1 -1
- package/dist/components/{p-BqreMmuD.js → p-DYfrJ4GD.js} +10 -10
- package/dist/components/{p-BqreMmuD.js.map → p-DYfrJ4GD.js.map} +1 -1
- package/dist/components/{p-CDYnBmu_.js → p-DZonUNfY.js} +14 -14
- package/dist/components/{p-CDYnBmu_.js.map → p-DZonUNfY.js.map} +1 -1
- package/dist/components/{p-CBRYaKLM.js → p-DaISePSz.js} +3 -3
- package/dist/components/{p-CBRYaKLM.js.map → p-DaISePSz.js.map} +1 -1
- package/dist/components/{p-DGJlf5J_.js → p-Ddtzdi61.js} +3 -3
- package/dist/components/{p-DGJlf5J_.js.map → p-Ddtzdi61.js.map} +1 -1
- package/dist/components/{p-DDxQuWAZ.js → p-Dj0PabuK.js} +10 -10
- package/dist/components/{p-DDxQuWAZ.js.map → p-Dj0PabuK.js.map} +1 -1
- package/dist/components/{p-CJt2BxDt.js → p-DzDB_SyD.js} +12 -12
- package/dist/components/{p-CJt2BxDt.js.map → p-DzDB_SyD.js.map} +1 -1
- package/dist/components/{p-BvDqCFDj.js → p-ExxjGoKu.js} +4 -4
- package/dist/components/{p-BvDqCFDj.js.map → p-ExxjGoKu.js.map} +1 -1
- package/dist/components/{p-icGdbhUU.js → p-MU4718Ji.js} +3 -3
- package/dist/components/{p-icGdbhUU.js.map → p-MU4718Ji.js.map} +1 -1
- package/dist/components/{p-CnRyZDAM.js → p-MbNTNztz.js} +12 -12
- package/dist/components/{p-CnRyZDAM.js.map → p-MbNTNztz.js.map} +1 -1
- package/dist/components/{p-Q6w_Yld9.js → p-ShTRLp1e.js} +10 -10
- package/dist/components/{p-Q6w_Yld9.js.map → p-ShTRLp1e.js.map} +1 -1
- package/dist/components/{p-BUDGHfvB.js → p-_8VAlOYF.js} +4 -4
- package/dist/components/{p-BUDGHfvB.js.map → p-_8VAlOYF.js.map} +1 -1
- package/dist/components/{p-DPBSrcaG.js → p-dBiQS3q6.js} +7 -7
- package/dist/components/{p-DPBSrcaG.js.map → p-dBiQS3q6.js.map} +1 -1
- package/dist/components/{p-LeCnrgBv.js → p-ewRI_6tO.js} +7 -7
- package/dist/components/{p-LeCnrgBv.js.map → p-ewRI_6tO.js.map} +1 -1
- package/dist/components/{p-CwHSr5eX.js → p-foP05GI4.js} +28 -28
- package/dist/components/{p-CwHSr5eX.js.map → p-foP05GI4.js.map} +1 -1
- package/dist/components/{p-C2Dmo84A.js → p-l5nPaeTL.js} +3 -3
- package/dist/components/{p-C2Dmo84A.js.map → p-l5nPaeTL.js.map} +1 -1
- package/dist/components/{p-KqTfG8Kf.js → p-qfdb4bEJ.js} +3 -3
- package/dist/components/{p-KqTfG8Kf.js.map → p-qfdb4bEJ.js.map} +1 -1
- package/dist/components/{p-BPPiqx8Q.js → p-s5aulRbG.js} +12 -12
- package/dist/components/{p-BPPiqx8Q.js.map → p-s5aulRbG.js.map} +1 -1
- package/dist/components/{p-D_sm-ZDj.js → p-tXZcbV3w.js} +12 -12
- package/dist/components/{p-D_sm-ZDj.js.map → p-tXZcbV3w.js.map} +1 -1
- package/dist/components/{p-CrZquwr4.js → p-xtoLmSCb.js} +5 -5
- package/dist/components/{p-CrZquwr4.js.map → p-xtoLmSCb.js.map} +1 -1
- package/dist/components/{p-gGtgKfmC.js → p-zln1sHDr.js} +12 -12
- package/dist/components/{p-gGtgKfmC.js.map → p-zln1sHDr.js.map} +1 -1
- package/dist/components/verdocs-auth.js +4 -4
- package/dist/components/verdocs-build.js +43 -43
- package/dist/components/verdocs-button-panel.js +1 -1
- package/dist/components/verdocs-button.js +1 -1
- package/dist/components/verdocs-checkbox.js +1 -1
- package/dist/components/verdocs-component-error.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-date-input.js +2 -2
- package/dist/components/verdocs-delegate-dialog.js +1 -1
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-disclosure-dialog.js +1 -1
- package/dist/components/verdocs-dropdown.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +2 -2
- package/dist/components/verdocs-envelope-sidebar.js +11 -11
- package/dist/components/verdocs-envelope-update-recipient.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +17 -17
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +10 -10
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-file-chooser.js +1 -1
- package/dist/components/verdocs-help-icon.js +1 -1
- package/dist/components/verdocs-initial-dialog.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-loader.js +1 -1
- package/dist/components/verdocs-menu-panel.js +1 -1
- package/dist/components/verdocs-multiselect.js +2 -2
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-organization-card.js +2 -2
- package/dist/components/verdocs-otp-dialog.js +1 -1
- package/dist/components/verdocs-pagination.js +1 -1
- package/dist/components/verdocs-portal.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-progress-bar.js +1 -1
- package/dist/components/verdocs-question-dialog.d.ts +11 -0
- package/dist/components/verdocs-question-dialog.js +9 -0
- package/dist/components/verdocs-question-dialog.js.map +1 -0
- package/dist/components/verdocs-quick-filter.js +1 -1
- package/dist/components/verdocs-quick-functions.js +2 -2
- package/dist/components/verdocs-radio-button.js +1 -1
- package/dist/components/verdocs-search-box.js +1 -1
- package/dist/components/verdocs-search-tabs.js +2 -2
- package/dist/components/verdocs-select-input.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign-footer.d.ts +11 -0
- package/dist/components/verdocs-sign-footer.js +9 -0
- package/dist/components/verdocs-sign-footer.js.map +1 -0
- package/dist/components/verdocs-sign.js +65 -41
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-spinner.js +1 -1
- package/dist/components/verdocs-status-indicator.js +1 -1
- package/dist/components/verdocs-switch.js +1 -1
- package/dist/components/verdocs-table.js +1 -1
- package/dist/components/verdocs-tabs.js +1 -1
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-build-tabs.js +1 -1
- package/dist/components/verdocs-template-card.js +2 -2
- package/dist/components/verdocs-template-create.js +5 -5
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-template-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +2 -2
- package/dist/components/verdocs-templates-list.js +11 -11
- package/dist/components/verdocs-text-input.js +1 -1
- package/dist/components/verdocs-toggle-button.js +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-toolbar-icon.js +1 -1
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +30 -0
- package/dist/esm/{index-DjAHH4ih.js → index-BIRwgFLv.js} +51 -12
- package/dist/esm/index-BIRwgFLv.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm/verdocs-button_3.entry.js +1 -1
- package/dist/esm/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -1
- package/dist/esm/verdocs-checkbox_5.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-date-input.entry.js +1 -1
- package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
- package/dist/esm/verdocs-delegate-dialog_5.entry.js +25 -15
- package/dist/esm/verdocs-dialog.entry.js +26 -0
- package/dist/esm/verdocs-dialog.entry.js.map +1 -0
- package/dist/esm/verdocs-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-document-page_3.entry.js +313 -0
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
- package/dist/esm/verdocs-multiselect.entry.js +1 -1
- package/dist/esm/{verdocs-dialog_2.entry.js → verdocs-ok-dialog.entry.js} +3 -25
- package/dist/esm/verdocs-ok-dialog.entry.js.map +1 -0
- package/dist/esm/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +2 -2
- package/dist/esm/verdocs-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-search-box.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +2 -2
- package/dist/esm/verdocs-sign.entry.js +12 -12
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-spinner.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +3 -3
- package/dist/esm/verdocs-switch.entry.js +1 -1
- package/dist/esm/verdocs-table.entry.js +1 -1
- package/dist/esm/verdocs-template-card.entry.js +2 -2
- package/dist/esm/verdocs-template-create.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +2 -2
- package/dist/esm/verdocs-template-tags.entry.js +2 -2
- package/dist/esm/verdocs-templates-list.entry.js +1 -1
- package/dist/esm/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +4 -4
- package/dist/esm/verdocs-web-sdk.js.map +1 -1
- package/dist/esm-es5/index-BIRwgFLv.js +2 -0
- package/dist/esm-es5/index-BIRwgFLv.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_5.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +1 -1
- package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +2 -0
- package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +2 -0
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +2 -0
- package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-switch.entry.js +1 -1
- package/dist/esm-es5/verdocs-table.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-create.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.d.ts +24 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +0 -1
- package/dist/types/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.d.ts +53 -0
- package/dist/types/components.d.ts +160 -2
- package/dist/types/stencil-public-runtime.d.ts +1 -1
- package/dist/verdocs-web-sdk/{p-C3qXgmlF.system.js.map → p--vmsuu3V.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-24a5020f.system.entry.js → p-05d69432.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-22d7fd99.entry.js → p-09c39bb0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ChfbUIiW.system.js.map → p-0YtsUAM2.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-095f01ea.entry.js → p-0bcad97a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7787a0e4.system.entry.js → p-0c0bc455.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-0c77bf48.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-0c77bf48.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-83057e79.entry.js → p-0d2d4a51.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-11efcb36.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-1bc8a67b.entry.js → p-1382d27a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-bcad2169.system.entry.js → p-14c53f80.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e612587a.entry.js → p-14d762cd.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c137b66c.entry.js → p-159eca82.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8f615cf8.entry.js → p-1c6b6903.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-68dc5809.entry.js → p-1d7ad250.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a6446845.entry.js → p-1deb700a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9a614582.entry.js → p-228e230f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-54089f3f.system.entry.js → p-270d59bd.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-56cd489c.entry.js → p-2753f307.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-da01f5fd.entry.js → p-29cd606e.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-8ae75311.entry.js → p-2c19375d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DpcvJtUM.system.js.map → p-2xwvEc_F.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-77a495cb.system.entry.js → p-314a958b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3f18c552.system.entry.js → p-314eebba.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e9be55a9.entry.js → p-3b76f728.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-44fd33e0.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-77a3e9ea.entry.js.map → p-44fd33e0.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-46c1af93.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-46c1af93.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-a7b796c9.entry.js → p-49122faa.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-49122faa.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-0d3060d5.system.entry.js → p-4bd8b685.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-DjReAtE4.system.js.map → p-4gw3gtyg.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-a4b4356a.entry.js → p-5662207e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b2598797.system.entry.js → p-574a6e6f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-03a6ee37.system.entry.js → p-59190e63.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7c552800.entry.js → p-6093e7f5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e1010b5e.entry.js → p-63ab6794.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c636caf4.entry.js → p-67a376cb.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-91455dc1.system.entry.js → p-6987434e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7032e5ee.entry.js → p-6ac24714.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-899a183a.system.entry.js → p-6bc3511b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-Cw8YN0pQ.system.js.map → p-6cRdX3ws.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-331b0a01.entry.js → p-6de1884e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8daa82ec.system.entry.js → p-755119da.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-74f1369b.entry.js → p-77d8e792.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2ab55e7e.entry.js → p-79dba586.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b2d5d57c.system.entry.js → p-7ab4a24b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-7ab4a24b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-408204b5.entry.js → p-80e6f99d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6ec49614.system.entry.js → p-81eb7d87.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-8ceda2dc.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-77a96b42.system.entry.js.map → p-8ceda2dc.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-75154f85.system.entry.js → p-9339d348.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-424acea6.system.entry.js → p-97dd9902.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2083a0b5.system.entry.js → p-995169b9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f706a680.system.entry.js → p-99ae19a0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8697ea44.system.entry.js → p-9fcc54f8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-D2J4BqZ5.system.js.map → p-B0D33bcu.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +2 -0
- package/dist/verdocs-web-sdk/{p-BSxnvcXp.system.js.map → p-B8zpaHu-.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-mV1PT3tZ.system.js.map → p-BGlPI7AC.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BIRwgFLv.js +3 -0
- package/dist/verdocs-web-sdk/p-BIRwgFLv.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DmidtinD.system.js.map → p-BJqpjw-r.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-BK1P8OnR.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BO6MZhlp.system.js +3 -0
- package/dist/verdocs-web-sdk/p-BO6MZhlp.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DIFMCsR8.system.js.map → p-BOIq74fd.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Bfjmk6kM.system.js.map → p-BRQAtXgj.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-YdG8FzTN.system.js.map → p-BWbfBzAr.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-tlNLqVnV.system.js.map → p-BhANrWDa.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DqN8pWd6.system.js.map → p-ByKENGSG.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-D6lkIXxV.system.js.map → p-CD1Gqdjg.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BLUIpLYQ.system.js.map → p-CJEtk8yq.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BFiBadxx.system.js.map → p-CKOnL51R.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-qmFLckgf.system.js.map → p-CPejf19w.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BDfCyBqE.system.js.map → p-CQci2PMw.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CTxgqZQn.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-BR93bjYo.system.js.map → p-CU8FT6ot.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DC4mn44e.system.js.map → p-C_2Ossf2.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-C-KROPlf.system.js.map → p-CjbrW449.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-CzO641zU.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-CzugWljc.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-D-jNdMbp.system.js.map → p-D2ZYm5cm.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CoMELZur.system.js.map → p-D9Bo3I4r.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-DN26hbJo.system.js.map → p-DASzZUhG.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Bf1JxkHa.system.js.map → p-DGJgRe1p.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-D_YsBkfv.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DrJsQShN.system.js.map → p-DbN8Hgam.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BAjoE0hn.system.js.map → p-Dds3TKDk.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CuZVPC43.system.js.map → p-DjEDnCUT.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-L9recsMg.system.js.map → p-DoIzZVRM.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-CgYIryaO.system.js.map → p-LJP2gGrW.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-Cs7NUoKG.system.js.map → p-Ls0TeKFP.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-BTH3kXDy.system.js.map → p-RthJMgT5.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-D5jBjbqb.system.js.map → p-SA_7qBwy.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-bd7e0e8f.system.entry.js → p-a29716da.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e6c86704.system.entry.js → p-a59be807.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e251a7f7.entry.js → p-a8582158.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-94805e3a.system.entry.js → p-a87d21bc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-10496565.entry.js → p-a90d4850.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-aa1f6673.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-aa1f6673.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-a8ccb0e1.entry.js → p-abf6f99e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-95098523.entry.js → p-ac595231.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ac9343dd.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ac9343dd.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-acd04b08.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-acd04b08.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-296df8e6.system.entry.js → p-afb4f00a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ba37926e.system.entry.js → p-b1c41006.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6ec9a626.system.entry.js → p-b70cbb9c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fce35c63.system.entry.js → p-b976781d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d0cdb769.entry.js → p-bea6ce53.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-05b5f6a8.system.entry.js → p-c061d0f7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4251e17b.system.entry.js → p-c996f71e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d995bf66.entry.js → p-cc638c7d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a5c1783e.system.entry.js → p-cda179bf.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d68d286d.entry.js → p-ce3e9ace.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5808c4ab.system.entry.js → p-e3fef183.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-79a57db4.system.entry.js → p-e4f0949d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-dc64588a.system.entry.js → p-e5ac5479.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b81c87a9.entry.js → p-e8d6a5ca.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1b86055f.entry.js → p-ea69720d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b0e8639b.system.entry.js → p-ead7ce15.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b954399f.system.entry.js → p-ec6f161e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ed353630.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ed353630.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-84ef045b.entry.js → p-eee0e96c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-346087a0.system.entry.js → p-f0c1a98b.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-262e6ed3.entry.js → p-f40ab4f5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-85a01930.system.entry.js → p-f51c7617.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0f3a4af2.entry.js → p-fd51104b.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-ffb4ee7b.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ffb4ee7b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-pcmVRVX-.system.js.map → p-kWPPZ5YQ.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-jGm3fIdS.system.js.map → p-no56iQU4.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-qtfDSnRg.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CJgSdGDZ.system.js.map → p-tMwKz0tH.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-checkbox.verdocs-component-error.verdocs-loader.verdocs-select-input.verdocs-template-field-properties.entry.esm.js.map +1 -1
- 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
- package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/index-BSi_QTIT.js.map +0 -1
- package/dist/cjs/verdocs-dialog.verdocs-ok-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +0 -132
- package/dist/cjs/verdocs-envelope-document-page.entry.cjs.js.map +0 -1
- package/dist/components/p-9up2BmHp.js.map +0 -1
- package/dist/components/p-CwgpN7A7.js.map +0 -1
- package/dist/components/p-Dwu1JL0y.js.map +0 -1
- package/dist/components/p-kvTSiSQ0.js.map +0 -1
- package/dist/esm/index-DjAHH4ih.js.map +0 -1
- package/dist/esm/verdocs-dialog.verdocs-ok-dialog.entry.js.map +0 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +0 -130
- package/dist/esm/verdocs-envelope-document-page.entry.js.map +0 -1
- package/dist/esm-es5/index-DjAHH4ih.js +0 -2
- package/dist/esm-es5/index-DjAHH4ih.js.map +0 -1
- package/dist/esm-es5/verdocs-dialog.verdocs-ok-dialog.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-dialog_2.entry.js +0 -2
- package/dist/esm-es5/verdocs-dialog_2.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +0 -2
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-198505d1.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-198505d1.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-77a3e9ea.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-77a96b42.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-7e1ae321.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-7e1ae321.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-89675355.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-89675355.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-B6BNgFvR.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BSxnvcXp.system.js +0 -2
- package/dist/verdocs-web-sdk/p-BsSES842.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-C-Q0RpYH.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DjAHH4ih.js +0 -3
- package/dist/verdocs-web-sdk/p-DjAHH4ih.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DnpXTA0c.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-IELtlxxf.system.js +0 -3
- package/dist/verdocs-web-sdk/p-IELtlxxf.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a7b796c9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-b2d5d57c.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-e7b26cd8.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-e7b26cd8.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-fa410d5c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-fa410d5c.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-fbb5d382.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-fbb5d382.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-gJaz09Zo.system.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-dialog.verdocs-ok-dialog.entry.esm.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-document-page.entry.esm.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-24a5020f.system.entry.js.map → p-05d69432.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-22d7fd99.entry.js.map → p-09c39bb0.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-095f01ea.entry.js.map → p-0bcad97a.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7787a0e4.system.entry.js.map → p-0c0bc455.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-83057e79.entry.js.map → p-0d2d4a51.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1bc8a67b.entry.js.map → p-1382d27a.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-bcad2169.system.entry.js.map → p-14c53f80.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e612587a.entry.js.map → p-14d762cd.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c137b66c.entry.js.map → p-159eca82.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8f615cf8.entry.js.map → p-1c6b6903.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-68dc5809.entry.js.map → p-1d7ad250.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a6446845.entry.js.map → p-1deb700a.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-9a614582.entry.js.map → p-228e230f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-54089f3f.system.entry.js.map → p-270d59bd.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-56cd489c.entry.js.map → p-2753f307.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-da01f5fd.entry.js.map → p-29cd606e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8ae75311.entry.js.map → p-2c19375d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-77a495cb.system.entry.js.map → p-314a958b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-3f18c552.system.entry.js.map → p-314eebba.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e9be55a9.entry.js.map → p-3b76f728.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0d3060d5.system.entry.js.map → p-4bd8b685.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a4b4356a.entry.js.map → p-5662207e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b2598797.system.entry.js.map → p-574a6e6f.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-03a6ee37.system.entry.js.map → p-59190e63.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7c552800.entry.js.map → p-6093e7f5.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e1010b5e.entry.js.map → p-63ab6794.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c636caf4.entry.js.map → p-67a376cb.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-91455dc1.system.entry.js.map → p-6987434e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7032e5ee.entry.js.map → p-6ac24714.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-899a183a.system.entry.js.map → p-6bc3511b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-331b0a01.entry.js.map → p-6de1884e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8daa82ec.system.entry.js.map → p-755119da.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-74f1369b.entry.js.map → p-77d8e792.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2ab55e7e.entry.js.map → p-79dba586.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-408204b5.entry.js.map → p-80e6f99d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6ec49614.system.entry.js.map → p-81eb7d87.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-75154f85.system.entry.js.map → p-9339d348.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-424acea6.system.entry.js.map → p-97dd9902.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2083a0b5.system.entry.js.map → p-995169b9.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f706a680.system.entry.js.map → p-99ae19a0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8697ea44.system.entry.js.map → p-9fcc54f8.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-bd7e0e8f.system.entry.js.map → p-a29716da.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e6c86704.system.entry.js.map → p-a59be807.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e251a7f7.entry.js.map → p-a8582158.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-94805e3a.system.entry.js.map → p-a87d21bc.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-10496565.entry.js.map → p-a90d4850.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a8ccb0e1.entry.js.map → p-abf6f99e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-95098523.entry.js.map → p-ac595231.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-296df8e6.system.entry.js.map → p-afb4f00a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ba37926e.system.entry.js.map → p-b1c41006.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6ec9a626.system.entry.js.map → p-b70cbb9c.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-fce35c63.system.entry.js.map → p-b976781d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d0cdb769.entry.js.map → p-bea6ce53.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-05b5f6a8.system.entry.js.map → p-c061d0f7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-4251e17b.system.entry.js.map → p-c996f71e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d995bf66.entry.js.map → p-cc638c7d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a5c1783e.system.entry.js.map → p-cda179bf.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d68d286d.entry.js.map → p-ce3e9ace.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-5808c4ab.system.entry.js.map → p-e3fef183.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-79a57db4.system.entry.js.map → p-e4f0949d.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-dc64588a.system.entry.js.map → p-e5ac5479.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b81c87a9.entry.js.map → p-e8d6a5ca.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1b86055f.entry.js.map → p-ea69720d.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b0e8639b.system.entry.js.map → p-ead7ce15.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b954399f.system.entry.js.map → p-ec6f161e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-84ef045b.entry.js.map → p-eee0e96c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-346087a0.system.entry.js.map → p-f0c1a98b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-262e6ed3.entry.js.map → p-f40ab4f5.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-85a01930.system.entry.js.map → p-f51c7617.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0f3a4af2.entry.js.map → p-fd51104b.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-BIRwgFLv.js";import{randomString}from"@verdocs/js-sdk";var verdocsDropdownCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{height:26px;display:block;position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-dropdown .arrow{height:26px;padding:0 4px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;text-wrap:nowrap;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}';var DropdownArrow='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>';var VerdocsDropdown=function(){function o(o){registerInstance(this,o);this.optionSelected=createEvent(this,"optionSelected");this.options=[];this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.showPicker=false}o.prototype.handleSelectOption=function(o,r){var e;o.stopPropagation();(e=this.optionSelected)===null||e===void 0?void 0:e.emit(r);this.showPicker=false};o.prototype.toggle=function(){this.showPicker=!this.showPicker};o.prototype.render=function(){var o=this;var r="verdocs-dropdown-".concat(randomString(8));return h(Host,{key:"466a4c33a9d8867a5740fd05b49dfba52ae07334"},h("button",{key:"7e0493bac43d60b5116c604a0012951e69380eb6",class:"arrow",innerHTML:DropdownArrow,"aria-label":"Open Menu",id:r,onClick:function(){return o.showPicker=!o.showPicker}}),this.showPicker&&h("verdocs-portal",{key:"8fcdfbf97c8f3a859dfa523eed4660195f246124",anchor:r,onClickAway:function(){return o.showPicker=false},id:"verdocs-dropdown-menu-items"},this.options.map((function(r){if(!r.label){return h("div",{class:"verdocs-dropdown-menu-separator"})}else{return h("button",{class:"verdocs-dropdown-menu-option",disabled:r.disabled||false,onClick:function(e){return o.handleSelectOption(e,r)}},r.label)}}))))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();VerdocsDropdown.style=verdocsDropdownCss;export{VerdocsDropdown as verdocs_dropdown};
|
|
2
2
|
//# sourceMappingURL=verdocs-dropdown.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js","sources":["src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.scss?tag=verdocs-envelope-document-page","src/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.tsx","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.scss?tag=verdocs-question-dialog","src/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.tsx","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.scss?tag=verdocs-sign-footer","src/components/envelopes/verdocs-sign-footer/verdocs-sign-footer.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-envelope-document-page {\n width: 100%;\n position: relative;\n\n .verdocs-envelope-document-page-layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n box-shadow: 0 0 10px 5px #0000000f;\n\n &.img {\n width: 100%;\n }\n }\n}\n","// NOTE: This component does not have a story because it's not intended for external use.\n\nimport {getEnvelopeDocumentPageDisplayUri, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Host, Prop, Event, EventEmitter, State, Element} from '@stencil/core';\nimport {IDocumentPageInfo, IPageLayer} from '../../../utils/Types';\nimport {throttle} from '../../../utils/utils';\n\n/**\n * Represents one document page. This is primarily a layout container used to coordinate positions of\n * page-related layers such as the page itself, signature fields, etc. It is not intended to be used\n * on its own as an individual component.\n */\n@Component({\n tag: 'verdocs-envelope-document-page',\n styleUrl: 'verdocs-envelope-document-page.scss',\n shadow: false,\n})\nexport class VerdocsEnvelopeDocumentPage {\n @Element() container: HTMLElement;\n private resizeObserver: ResizeObserver;\n\n /**\n * The endpoint to load from.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The ID of the envelope the document is for.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * The ID of the document to display.\n */\n @Prop() documentId: string = '';\n\n /**\n * The page number being rendered. (Reminder: page numbers are 1-based.)\n */\n @Prop() pageNumber: number = 1;\n\n /**\n * The \"virtual\" width of the page canvas. Defaults to 612 which at 72dpi is 8.5\" wide. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop() virtualWidth: number = 612;\n\n /**\n * The \"virtual\" height of the page canvas. Defaults to 792 which at 72dpi is 11\" tall. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop({mutable: true}) virtualHeight: number = 792;\n\n /**\n * The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.\n * The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.\n * if `pages` was ['page', 'fields'] the structure will be:\n *\n * ```\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9\">\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-page\"></div>\n * <div id=\"verdocs-envelope-document-page-ker2fr1p9-fields\"></div>\n * </div>\n * ```\n */\n @Prop() layers: IPageLayer[] = [{name: 'page', type: 'canvas'}];\n\n @Prop() type: 'original' | 'filled' | 'certificate' = 'original';\n\n /**\n * Fired when a page has been rendered. This is also fired when the page is resized.\n */\n @Event() pageRendered: EventEmitter<IDocumentPageInfo>;\n\n @State() containerId = `verdocs-envelope-document-page-${Math.random().toString(36).substring(2, 11)}`;\n\n @State() renderedWidth: number = this.virtualWidth;\n @State() renderedHeight: number = this.virtualHeight;\n @State() naturalWidth: number = this.virtualWidth;\n @State() naturalHeight: number = this.virtualHeight;\n @State() aspectRatio: number = this.virtualWidth / this.virtualHeight;\n\n @State() skipFirstNotification = true;\n\n @State() pageDisplayUri = 'https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png';\n\n async componentWillLoad() {\n this.pageDisplayUri = await getEnvelopeDocumentPageDisplayUri(this.endpoint, this.documentId, this.pageNumber, this.type);\n }\n\n componentDidLoad() {\n this.resizeObserver = new ResizeObserver(\n throttle(entries => {\n for (const entry of entries) {\n const renderedWidth = entry.contentRect.width;\n this.renderedWidth = renderedWidth;\n this.renderedHeight = this.virtualHeight * (renderedWidth / this.virtualWidth);\n }\n\n this.notifyRenderedSize();\n }, 100),\n );\n\n this.resizeObserver.observe(this.container);\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n }\n\n // Left here for documentation purposes in case we find an edge case where this isn't true. But we apparently don't need this.\n // When we add the resize observer it will always be triggered at least once so notifying here as well is just a dupe.\n // componentDidRender() {\n // this.notifyRenderedSize();\n // }\n\n notifyRenderedSize() {\n // We skip one notification because by default we will always get at least two, one when rendering the initial size\n // and a second once we're able to compute the scale size, when the resizeObserver sets renderedWidth/renderedHeight.\n if (this.skipFirstNotification) {\n this.skipFirstNotification = false;\n return;\n }\n\n this.pageRendered.emit({\n // container: this.container,\n containerId: this.containerId,\n documentId: this.documentId,\n pageNumber: this.pageNumber,\n virtualWidth: this.virtualWidth,\n virtualHeight: this.virtualHeight,\n renderedWidth: this.renderedWidth,\n renderedHeight: this.renderedHeight,\n naturalWidth: this.naturalWidth,\n naturalHeight: this.naturalHeight,\n aspectRatio: this.aspectRatio,\n xScale: this.renderedWidth / this.virtualWidth,\n yScale: this.renderedHeight / this.virtualHeight,\n });\n }\n\n render() {\n const height = `${this.renderedHeight}px`;\n\n return (\n <Host id={`${this.containerId}`} style={{height, flex: `0 0 ${height}`}}>\n {this.layers.map(layer =>\n layer.type === 'div' ? (\n <div class=\"verdocs-envelope-document-page-layer\" id={`${this.containerId}-${layer.name}`} style={{height}} />\n ) : this.pageDisplayUri ? (\n <img\n class=\"verdocs-envelope-document-page-layer img\"\n id={`${this.containerId}-${layer.name}`}\n src={this.pageDisplayUri}\n alt={`Page ${this.pageNumber}`}\n aria-hidden={true}\n loading=\"lazy\"\n onLoad={(e: any) => {\n // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that\n // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).\n // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values\n // for a field are based on the responsive Web view the Template editor was seeing. The IMG was scaled down there in the\n // exact same way, so we just honor it. We capture the natural width and height here more as information. Then we use the\n // aspect ratio to adjust the \"virtual\" height in case the page is not 8.5\"x11\".\n // TODO: Store this in the DB with each page.\n this.naturalWidth = e.target.naturalWidth;\n this.naturalHeight = e.target.naturalHeight;\n this.aspectRatio = this.naturalWidth / this.naturalHeight;\n this.virtualHeight = this.virtualWidth / this.aspectRatio;\n this.renderedHeight = e.target.offsetWidth / this.aspectRatio;\n }}\n />\n ) : (\n <div></div>\n ),\n )}\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-question-dialog {\n box-sizing: border-box;\n font-family: $primary-font;\n\n &.closed {\n display: none;\n }\n\n textarea {\n box-sizing: border-box;\n border: 1px solid $border-color;\n border-radius: 4px;\n background: $verdocs-grey-4;\n color: #000;\n width: 100%;\n font-size: 14px;\n padding: 9px;\n outline: none;\n }\n\n .heading .title {\n font-size: 18px;\n }\n\n .buttons {\n gap: 20px;\n display: flex;\n margin-top: 24px;\n flex-direction: row;\n justify-content: center;\n\n button {\n flex: 1;\n border: 0;\n height: 38px;\n display: flex;\n color: #ffffff;\n font-size: 14px;\n cursor: pointer;\n border-radius: 6px;\n align-items: center;\n justify-content: center;\n\n &.cancel {\n background-color: $verdocs-button-purple;\n }\n\n &.ok {\n background-color: $verdocs-button-green;\n\n &.single {\n max-width: 150px;\n }\n }\n\n &:disabled {\n background-color: $verdocs-button-disabled;\n }\n }\n }\n}\n","import {Component, h, Event, EventEmitter, State, Prop} from '@stencil/core';\n\nconst QuestionIcon = `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z\" fill=\"#ffffff\"/></svg>`;\n\n/**\n * Display a simple text dialog box with an Ok button. This adds a partially-transparent overlay and screen-centered dialog\n * box with a message and optional header/title. An OK button is shown that will dismiss the message.\n * It can also be dismissed by clicking the background overlay.\n */\n@Component({\n tag: 'verdocs-question-dialog',\n styleUrl: 'verdocs-question-dialog.scss',\n})\nexport class VerdocsQuestionDialog {\n @Prop({mutable: true}) question: string = '';\n\n /**\n * Event fired when the user clicks the OK button.\n */\n @Event({composed: true}) next: EventEmitter<{question: string}>;\n\n /**\n * Event fired when Cancel is pressed. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n @State() closed = false;\n\n handleOk() {\n this.next.emit({question: this.question});\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n this.closed = true;\n if (e.target.className === 'background-overlay') {\n e.preventDefault();\n this.exit.emit();\n }\n }\n\n render() {\n return (\n <verdocs-dialog onExit={e => this.handleDismiss(e)}>\n <div slot=\"heading\" class=\"heading\">\n <div class=\"icon\" innerHTML={QuestionIcon} />\n\n <div class=\"title\">Ask the Sender a Question</div>\n </div>\n\n <div slot=\"content\" class=\"content\">\n <textarea name=\"question\" rows={6} placeholder=\"Enter your question...\" onInput={(e: any) => (this.question = e.target.value)}>\n {this.question}\n </textarea>\n </div>\n\n <div class=\"footer\" slot=\"footer\">\n <div class=\"buttons\">\n <button class=\"cancel\" onClick={() => this.handleCancel()}>\n Cancel\n </button>\n <button class={'ok'} onClick={() => this.handleOk()}>\n OK\n </button>\n </div>\n </div>\n </verdocs-dialog>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n align-items: center;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n justify-content: space-between;\n font-family: $verdocs-primary-font;\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n\n a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n }\n\n &.loading {\n display: none;\n }\n\n .powered-by {\n white-space: nowrap;\n }\n\n .buttons {\n flex: 0;\n gap: 16px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n align-items: center;\n\n button {\n gap: 4px;\n border: none;\n display: flex;\n outline: none;\n cursor: pointer;\n flex-direction: row;\n align-items: center;\n background: transparent;\n }\n\n div {\n gap: 4px;\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n }\n\n .links {\n flex: 0;\n gap: 8px;\n display: flex;\n flex-direction: row;\n white-space: nowrap;\n }\n\n &.just-buttons {\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n\n @container (max-width: 720px) {\n &.has-buttons .powered-by {\n display: none;\n }\n }\n\n @container (max-width: 540px) {\n &.no-buttons .powered-by {\n display: none;\n }\n\n &.has-buttons .links {\n display: none;\n }\n\n .buttons {\n flex: 1;\n justify-content: center;\n }\n }\n}\n","import {IEnvelope} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Host, Prop, State} from '@stencil/core';\nimport {getEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst QuestionIcon = `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z\" fill=\"#424242\"/></svg>`;\nconst DeclineIcon = `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z\" fill=\"#424242\"/></svg>`;\nconst SaveIcon = `<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z\" fill=\"#424242\"/></svg>`;\n\n/**\n * Typically presented by the `verdocs-sign` component. Displays a footer toolbar\n * with a few convenience functions for the envelope recipient to use.\n */\n@Component({\n tag: 'verdocs-sign-footer',\n styleUrl: 'verdocs-sign-footer.scss',\n shadow: false,\n})\nexport class VerdocsSignFooter {\n private envelopeListenerId = null;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If the recipient is \"done,\" some buttons will be hidden.\n */\n @Prop() isDone = false;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) askQuestion: EventEmitter<{question: string}>;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) decline: EventEmitter;\n\n /**\n * Event fired if the user asks the sender a question. The parent component is responsible for handling this.\n */\n @Event({composed: true}) finishLater: EventEmitter;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n // @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n @State() askingQuestion = false;\n @State() declinine = false;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n try {\n // NOTE: The caller must have a signing session already active and shared to us via\n // the endpoint property.\n if (!this.envelopeId) {\n console.log(`[FOOTER] Missing required envelope ID ${this.envelopeId}`);\n return;\n }\n\n this.listenToEnvelope();\n } catch (e) {\n console.log('[FOOTER] Error loading envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[FOOTER] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n false,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n // handleRecipientAction(recipient: IRecipient, id: string) {\n // console.log('[SIDEBAR] Recipient action', id, recipient);\n // switch (id) {\n // case 'update':\n // this.showUpdateDialog = recipient.role_name;\n // break;\n //\n // case 'reminder':\n // remindRecipient(this.endpoint, this.envelopeId, recipient.role_name)\n // .then(() => {\n // VerdocsToast('Reminder Sent', {style: 'success'});\n // })\n // .catch(e => {\n // console.log('[SIDEBAR] Error resending invitation', e);\n // VerdocsToast('Error resending invitation: ' + e.message, {style: 'error'});\n // });\n // break;\n //\n // case 'reinvite':\n // this.showReinviteDialog = recipient.role_name;\n // break;\n //\n // case 'inperson':\n // this.showRecipientDialog = recipient.role_name;\n // break;\n //\n // case 'modify':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n //\n // case 'details':\n // VerdocsToast('This feature will be enabled in a future release. Please try again later.', {style: 'info'});\n // break;\n // }\n // }\n\n // handleUpdateRecipient(originalRecipient: IRecipient, updatedRecipient: IRecipient) {\n // console.log('Updating recipient', originalRecipient, updatedRecipient);\n // const fields: any = {};\n // if (updatedRecipient.email !== originalRecipient.email) {\n // fields.email = updatedRecipient.email;\n // }\n // if (updatedRecipient.phone !== originalRecipient.phone) {\n // fields.phone = updatedRecipient.phone;\n // }\n // if (updatedRecipient.message !== originalRecipient.message) {\n // fields.message = updatedRecipient.message;\n // }\n // if (updatedRecipient.first_name !== originalRecipient.first_name) {\n // fields.first_name = updatedRecipient.first_name;\n // }\n // if (updatedRecipient.last_name !== originalRecipient.last_name) {\n // fields.last_name = updatedRecipient.last_name;\n // }\n //\n // if (Object.keys(fields).length > 0) {\n // updateRecipient(this.endpoint, this.envelopeId, originalRecipient.role_name, fields)\n // .then(r => {\n // // TODO: Reload the envelope?\n // VerdocsToast('Recipient updated', {style: 'success'});\n // console.log('[SIDEBAR] Updated recipient', r);\n // Store.getEnvelope(this.endpoint, this.envelopeId, true);\n // this.showUpdateDialog = '';\n // })\n // .catch(e => {\n // VerdocsToast(e.response.data.error, {style: 'error'});\n // this.showUpdateDialog = '';\n // });\n // } else {\n // this.showUpdateDialog = '';\n // }\n // }\n\n render() {\n const hasPoweredBy = !!this.envelope?.organization?.powered_by_label;\n const hasLinks = !!this.envelope?.organization?.terms_use_url || !!this.envelope?.organization?.privacy_policy_url;\n const hasButtons = !this.isDone;\n\n return (\n <Host class={{'has-buttons': hasButtons, 'no-buttons': !hasButtons, 'has-powered-by': hasPoweredBy, 'has-links': hasLinks, 'just-buttons': !hasPoweredBy && !hasLinks}}>\n {this.envelope?.organization?.powered_by_label && (\n <div class=\"powered-by\">\n {this.envelope?.organization?.powered_by_label ? (\n <a href={this.envelope?.organization?.powered_by_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>{this.envelope?.organization?.powered_by_label}</span>\n </a>\n ) : (\n <span>{this.envelope?.organization?.powered_by_label}</span>\n )}\n </div>\n )}\n\n {!this.isDone && (\n <div class=\"buttons\">\n <button onClick={() => (this.askingQuestion = true)}>\n <span innerHTML={QuestionIcon} />\n Ask Sender a Question\n </button>\n <button onClick={() => this.decline?.emit()}>\n <span innerHTML={DeclineIcon} />\n Decline Signing\n </button>\n <button onClick={() => this.finishLater?.emit()}>\n <span innerHTML={SaveIcon} />\n Finish Later\n </button>\n </div>\n )}\n\n <div class=\"links\">\n {this.envelope?.organization?.terms_use_url && (\n <a href={this.envelope?.organization?.terms_use_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Terms of Use</span>\n </a>\n )}\n {this.envelope?.organization?.privacy_policy_url && (\n <a href={this.envelope?.organization?.privacy_policy_url} target=\"_blank\" rel=\"noopener noreferrer\">\n <span>Privacy Policy</span>\n </a>\n )}\n </div>\n\n {this.askingQuestion && (\n <verdocs-question-dialog\n onNext={e => {\n this.askQuestion?.emit({question: e.detail.question});\n this.askingQuestion = false;\n }}\n onExit={() => (this.askingQuestion = false)}\n />\n )}\n </Host>\n );\n }\n}\n"],"names":["QuestionIcon"],"mappings":";;;;;;;;AAAA,MAAM,8BAA8B,GAAG,+qBAA+qB;;MCiBzsB,2BAA2B,GAAA,MAAA;AALxC,IAAA,WAAA,CAAA,OAAA,EAAA;;;AASE;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAoB,eAAe,CAAC,UAAU,EAAE;AAEhE;;AAEG;AACK,QAAA,IAAU,CAAA,UAAA,GAAW,EAAE;AAE/B;;AAEG;AACK,QAAA,IAAU,CAAA,UAAA,GAAW,EAAE;AAE/B;;AAEG;AACK,QAAA,IAAU,CAAA,UAAA,GAAW,CAAC;AAE9B;;;AAGG;AACK,QAAA,IAAY,CAAA,YAAA,GAAW,GAAG;AAElC;;;AAGG;AACoB,QAAA,IAAa,CAAA,aAAA,GAAW,GAAG;AAElD;;;;;;;;;;;AAWG;AACK,QAAA,IAAA,CAAA,MAAM,GAAiB,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAC,CAAC;AAEvD,QAAA,IAAI,CAAA,IAAA,GAA0C,UAAU;QAOvD,IAAA,CAAA,WAAW,GAAG,CAAA,+BAAA,EAAkC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAE;AAE7F,QAAA,IAAA,CAAA,aAAa,GAAW,IAAI,CAAC,YAAY;AACzC,QAAA,IAAA,CAAA,cAAc,GAAW,IAAI,CAAC,a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;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,n,o,t){function i(e){return e instanceof o?e:new o((function(n){n(e)}))}return new(o||(o=Promise))((function(o,r){function s(e){try{c(t.next(e))}catch(e){r(e)}}function a(e){try{c(t["throw"](e))}catch(e){r(e)}}function c(e){e.done?o(e.value):i(e.value).then(s,a)}c((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,i,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(n){return c([e,n])}}function c(a){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(o=0)),o)try{if(t=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(r=o.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(a[0]===6&&o.label<r[1]){o.label=r[1];r=a;break}if(r&&o.label<r[2]){o.label=r[2];o.ops.push(a);break}if(r[2])o.ops.pop();o.trys.pop();continue}a=n.call(e,o)}catch(e){a=[6,e];i=0}finally{t=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-BIRwgFLv.js";import{VerdocsEndpoint,getEnvelopeDocumentPageDisplayUri,getEnvelope}from"@verdocs/js-sdk";import{t as throttle}from"./utils-PdWvXqe5.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";import"./index-dzBXqXlK.js";import"./Types-dqxNbm_b.js";var verdocsEnvelopeDocumentPageCss="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-document-page{width:100%;position:relative}verdocs-envelope-document-page .verdocs-envelope-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-envelope-document-page .verdocs-envelope-document-page-layer.img{width:100%}";var VerdocsEnvelopeDocumentPage=function(){function e(e){registerInstance(this,e);this.pageRendered=createEvent(this,"pageRendered");this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.type="original";this.containerId="verdocs-envelope-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="https://verdocs-public-assets.s3.amazonaws.com/page-loading-placeholder.png"}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:e=this;return[4,getEnvelopeDocumentPageDisplayUri(this.endpoint,this.documentId,this.pageNumber,this.type)];case 1:e.pageDisplayUri=n.sent();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(throttle((function(n){for(var o=0,t=n;o<t.length;o++){var i=t[o];var r=i.contentRect.width;e.renderedWidth=r;e.renderedHeight=e.virtualHeight*(r/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect()};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};e.prototype.render=function(){var e=this;var n="".concat(this.renderedHeight,"px");return h(Host,{key:"85514f30999e6276db3c53d10cf1ceac48b3c9ef",id:"".concat(this.containerId),style:{height:n,flex:"0 0 ".concat(n)}},this.layers.map((function(o){return o.type==="div"?h("div",{class:"verdocs-envelope-document-page-layer",id:"".concat(e.containerId,"-").concat(o.name),style:{height:n}}):e.pageDisplayUri?h("img",{class:"verdocs-envelope-document-page-layer img",id:"".concat(e.containerId,"-").concat(o.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(n){e.naturalWidth=n.target.naturalWidth;e.naturalHeight=n.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=n.target.offsetWidth/e.aspectRatio}}):h("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsEnvelopeDocumentPage.style=verdocsEnvelopeDocumentPageCss;var verdocsQuestionDialogCss='@-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-question-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-question-dialog.closed{display:none}verdocs-question-dialog textarea{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:14px;padding:9px;outline:none}verdocs-question-dialog .heading .title{font-size:18px}verdocs-question-dialog .buttons{gap:20px;display:-ms-flexbox;display:flex;margin-top:24px;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button{-ms-flex:1;flex:1;border:0;height:38px;display:-ms-flexbox;display:flex;color:#ffffff;font-size:14px;cursor:pointer;border-radius:6px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-question-dialog .buttons button.cancel{background-color:#654dcb}verdocs-question-dialog .buttons button.ok{background-color:#55bc81}verdocs-question-dialog .buttons button.ok.single{max-width:150px}verdocs-question-dialog .buttons button:disabled{background-color:#6c727f}';var QuestionIcon$1='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#ffffff"/></svg>';var VerdocsQuestionDialog=function(){function e(e){registerInstance(this,e);this.next=createEvent(this,"next");this.exit=createEvent(this,"exit");this.question="";this.closed=false}e.prototype.handleOk=function(){this.next.emit({question:this.question})};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){this.closed=true;if(e.target.className==="background-overlay"){e.preventDefault();this.exit.emit()}};e.prototype.render=function(){var e=this;return h("verdocs-dialog",{key:"13b30d1c4fb9cb618be260714b427107f9def28c",onExit:function(n){return e.handleDismiss(n)}},h("div",{key:"eaebb83af7fa9d410396ba0a2be98bedfbb12ff6",slot:"heading",class:"heading"},h("div",{key:"c112c9543a39c7ba3df30c7415f4d57dad9ec5ab",class:"icon",innerHTML:QuestionIcon$1}),h("div",{key:"95b99c499d0941f222ddcf111d84aca429c5a751",class:"title"},"Ask the Sender a Question")),h("div",{key:"decfbd3bb77d3ab6d5e199535a5305849b520d87",slot:"content",class:"content"},h("textarea",{key:"48aae01e022e5eff016e03d01144b0a8c0f0157d",name:"question",rows:6,placeholder:"Enter your question...",onInput:function(n){return e.question=n.target.value}},this.question)),h("div",{key:"902c0e38f8fd5ec3e614bff91cc68aaad566ec8b",class:"footer",slot:"footer"},h("div",{key:"ec6b73358f94ef6c0a86f03c52d4e9708a4e36e0",class:"buttons"},h("button",{key:"55de4dd386b3c7018e6d1cf6129b4efa7a343368",class:"cancel",onClick:function(){return e.handleCancel()}},"Cancel"),h("button",{key:"1b80aed507bb327c8abd24243ea5adb6bf459e73",class:"ok",onClick:function(){return e.handleOk()}},"OK"))))};return e}();VerdocsQuestionDialog.style=verdocsQuestionDialogCss;var verdocsSignFooterCss='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-sign-footer {\n left: 0;\n right: 0;\n bottom: 0;\n height: 48px;\n display: -ms-flexbox;\n display: flex;\n color: #616161;\n position: fixed;\n font-size: 12px;\n padding: 0 24px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n background: #ffffff;\n container-type: inline-size;\n border-top: 1px solid #e0e0e0;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-family: "Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;\n -webkit-transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n transition: 0.5s cubic-bezier(0.35, 0, 0.25, 1);\n}\nverdocs-sign-footer a {\n color: #616161;\n cursor: pointer;\n text-decoration: none;\n border-bottom: 1px dotted #616161;\n}\nverdocs-sign-footer.loading {\n display: none;\n}\nverdocs-sign-footer .powered-by {\n white-space: nowrap;\n}\nverdocs-sign-footer .buttons {\n -ms-flex: 0;\n flex: 0;\n gap: 16px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .buttons button {\n gap: 4px;\n border: none;\n display: -ms-flexbox;\n display: flex;\n outline: none;\n cursor: pointer;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n background: transparent;\n}\nverdocs-sign-footer .buttons div {\n gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-sign-footer .links {\n -ms-flex: 0;\n flex: 0;\n gap: 8px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n white-space: nowrap;\n}\nverdocs-sign-footer.just-buttons .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n}\n@container (max-width: 720px) {\n verdocs-sign-footer.has-buttons .powered-by {\n display: none;\n }\n}\n@container (max-width: 540px) {\n verdocs-sign-footer.no-buttons .powered-by {\n display: none;\n }\n verdocs-sign-footer.has-buttons .links {\n display: none;\n }\n verdocs-sign-footer .buttons {\n -ms-flex: 1;\n flex: 1;\n -ms-flex-pack: center;\n justify-content: center;\n }\n}';var QuestionIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.4809 13.8423H15.4C16.2962 13.8423 17 13.1288 17 12.2764V5.56582C17 4.71348 16.2962 4 15.4 4H4.6C3.70383 4 3 4.71348 3 5.56582V12.2764C3 13.1288 3.70383 13.8423 4.6 13.8423H6.19908L6.2 17L6.20346 16.9997L6.20502 16.9988L10.4809 13.8423ZM6.79895 17.8034C6.35668 18.1298 5.73 18.0406 5.39921 17.6042C5.26989 17.4335 5.2 17.2262 5.2 17.0133L5.19937 14.8423H4.6C3.16406 14.8423 2 13.6935 2 12.2764V5.56582C2 4.14876 3.16406 3 4.6 3H15.4C16.8359 3 18 4.14876 18 5.56582V12.2764C18 13.6935 16.8359 14.8423 15.4 14.8423H10.81L6.79895 17.8034Z" fill="#424242"/></svg>';var DeclineIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.14645 7.14645C7.34171 6.95118 7.65829 6.95118 7.85355 7.14645L10 9.29289L12.1464 7.14645C12.3417 6.95118 12.6583 6.95118 12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L10.7071 10L12.8536 12.1464C13.0488 12.3417 13.0488 12.6583 12.8536 12.8536C12.6583 13.0488 12.3417 13.0488 12.1464 12.8536L10 10.7071L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536C6.95118 12.6583 6.95118 12.3417 7.14645 12.1464L9.29289 10L7.14645 7.85355C6.95118 7.65829 6.95118 7.34171 7.14645 7.14645ZM3 6C3 4.34315 4.34315 3 6 3H14C15.6569 3 17 4.34315 17 6V14C17 15.6569 15.6569 17 14 17H6C4.34315 17 3 15.6569 3 14V6ZM6 4C4.89543 4 4 4.89543 4 6V14C4 15.1046 4.89543 16 6 16H14C15.1046 16 16 15.1046 16 14V6C16 4.89543 15.1046 4 14 4H6Z" fill="#424242"/></svg>';var SaveIcon='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 5C3 3.89543 3.89543 3 5 3H13.3787C13.9091 3 14.4178 3.21071 14.7929 3.58579L16.4142 5.20711C16.7893 5.58218 17 6.09089 17 6.62132V15C17 16.1046 16.1046 17 15 17H5C3.89543 17 3 16.1046 3 15V5ZM5 4C4.44772 4 4 4.44772 4 5V15C4 15.5523 4.44772 16 5 16L5 11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V16C15.5523 16 16 15.5523 16 15V6.62132C16 6.3561 15.8946 6.10175 15.7071 5.91421L14.0858 4.29289C13.8983 4.10536 13.6439 4 13.3787 4L13 4V6.5C13 7.32843 12.3284 8 11.5 8L7.5 8C6.67157 8 6 7.32843 6 6.5L6 4H5ZM7 4L7 6.5C7 6.77614 7.22386 7 7.5 7L11.5 7C11.7761 7 12 6.77614 12 6.5V4L7 4ZM14 16V11.5C14 11.2239 13.7761 11 13.5 11H6.5C6.22386 11 6 11.2239 6 11.5V16H14Z" fill="#424242"/></svg>';var VerdocsSignFooter=function(){function e(e){registerInstance(this,e);this.askQuestion=createEvent(this,"askQuestion");this.decline=createEvent(this,"decline");this.finishLater=createEvent(this,"finishLater");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.isDone=false;this.askingQuestion=false;this.declinine=false;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,o;return __generator(this,(function(t){try{if(!this.envelopeId){console.log("[FOOTER] Missing required envelope ID ".concat(this.envelopeId));return[2]}this.listenToEnvelope()}catch(t){console.log("[FOOTER] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(o=t.response)===null||o===void 0?void 0:o.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(n){console.log("[FOOTER] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(n){e.envelope=n}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.render=function(){var e=this;var n,o,t,i,r,s,a,c,d,l,f,u,v,b,g,p,x,m,y,k,w,C,L,V;var H=!!((o=(n=this.envelope)===null||n===void 0?void 0:n.organization)===null||o===void 0?void 0:o.powered_by_label);var E=!!((i=(t=this.envelope)===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.terms_use_url)||!!((s=(r=this.envelope)===null||r===void 0?void 0:r.organization)===null||s===void 0?void 0:s.privacy_policy_url);var _=!this.isDone;return h(Host,{key:"d6c9c85e457e98238f722f10cd38912d7f83a8b7",class:{"has-buttons":_,"no-buttons":!_,"has-powered-by":H,"has-links":E,"just-buttons":!H&&!E}},((c=(a=this.envelope)===null||a===void 0?void 0:a.organization)===null||c===void 0?void 0:c.powered_by_label)&&h("div",{key:"081e69cd08dad7339d3d8be8a4b27bdf4673b808",class:"powered-by"},((l=(d=this.envelope)===null||d===void 0?void 0:d.organization)===null||l===void 0?void 0:l.powered_by_label)?h("a",{href:(u=(f=this.envelope)===null||f===void 0?void 0:f.organization)===null||u===void 0?void 0:u.powered_by_url,target:"_blank",rel:"noopener noreferrer"},h("span",null,(b=(v=this.envelope)===null||v===void 0?void 0:v.organization)===null||b===void 0?void 0:b.powered_by_label)):h("span",null,(p=(g=this.envelope)===null||g===void 0?void 0:g.organization)===null||p===void 0?void 0:p.powered_by_label)),!this.isDone&&h("div",{key:"164d99486b6e7f81dbb9489cfa0893f437c34c60",class:"buttons"},h("button",{key:"ea5d24fbc206f9ad8ec433da82276fe41c099d26",onClick:function(){return e.askingQuestion=true}},h("span",{key:"937c4e9dee69add3c1c2f189f966a53013256d8d",innerHTML:QuestionIcon}),"Ask Sender a Question"),h("button",{key:"b477592dd1c5f38bca6b7cc51cdd55a30bfba840",onClick:function(){var n;return(n=e.decline)===null||n===void 0?void 0:n.emit()}},h("span",{key:"b0b221a61c2b7c64422387969494e080a47a475c",innerHTML:DeclineIcon}),"Decline Signing"),h("button",{key:"adb296470e7c479f7876941e006abdafcf479963",onClick:function(){var n;return(n=e.finishLater)===null||n===void 0?void 0:n.emit()}},h("span",{key:"641ff39a912b2939303c74553b17190316e9d631",innerHTML:SaveIcon}),"Finish Later")),h("div",{key:"f6d9ad2b78eb8e3745150f7f6c0edc61fc4f8a86",class:"links"},((m=(x=this.envelope)===null||x===void 0?void 0:x.organization)===null||m===void 0?void 0:m.terms_use_url)&&h("a",{key:"94eeaa50ce8be03e570aef87644115f6499a251e",href:(k=(y=this.envelope)===null||y===void 0?void 0:y.organization)===null||k===void 0?void 0:k.terms_use_url,target:"_blank",rel:"noopener noreferrer"},h("span",{key:"4a5cb461ff02f96996b1062b9ac51ecc55c0bb8c"},"Terms of Use")),((C=(w=this.envelope)===null||w===void 0?void 0:w.organization)===null||C===void 0?void 0:C.privacy_policy_url)&&h("a",{key:"d470ad770a09776ecdd77a6586995e98a892f58f",href:(V=(L=this.envelope)===null||L===void 0?void 0:L.organization)===null||V===void 0?void 0:V.privacy_policy_url,target:"_blank",rel:"noopener noreferrer"},h("span",{key:"a7e8ab31707294a6bca99a97446255d03fc244ea"},"Privacy Policy"))),this.askingQuestion&&h("verdocs-question-dialog",{key:"11e35a94dca072a8eff7d07ab577203dd6bb82bc",onNext:function(n){var o;(o=e.askQuestion)===null||o===void 0?void 0:o.emit({question:n.detail.question});e.askingQuestion=false},onExit:function(){return e.askingQuestion=false}}))};return e}();VerdocsSignFooter.style=verdocsSignFooterCss;export{VerdocsEnvelopeDocumentPage as verdocs_envelope_document_page,VerdocsQuestionDialog as verdocs_question_dialog,VerdocsSignFooter as verdocs_sign_footer};
|
|
2
|
+
//# sourceMappingURL=verdocs-envelope-document-page_3.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["registerInstance","createEvent","h","Host","getElement","VerdocsEndpoint","getEnvelopeDocumentPageDisplayUri","getEnvelope","throttle","SDKError","Store","verdocsEnvelopeDocumentPageCss","VerdocsEnvelopeDocumentPage","class_1","hostRef","this","pageRendered","endpoint","getDefault","envelopeId","documentId","pageNumber","virtualWidth","virtualHeight","layers","name","type","containerId","concat","Math","random","toString","substring","renderedWidth","renderedHeight","naturalWidth","naturalHeight","aspectRatio","skipFirstNotification","pageDisplayUri","prototype","componentWillLoad","_0","_1","sent","componentDidLoad","_this","resizeObserver","ResizeObserver","entries","_i","entries_1","length","entry","contentRect","width","notifyRenderedSize","observe","container","disconnectedCallback","_a","disconnect","emit","xScale","yScale","render","height","key","id","style","flex","map","layer","class","src","alt","loading","onLoad","e","target","offsetWidth","Object","defineProperty","verdocsQuestionDialogCss","QuestionIcon$1","VerdocsQuestionDialog","next","exit","question","closed","handleOk","handleCancel","handleDismiss","className","preventDefault","onExit","slot","innerHTML","rows","placeholder","onInput","value","onClick","verdocsSignFooterCss","QuestionIcon","DeclineIcon","SaveIcon","VerdocsSignFooter","class_2","askQuestion","decline","finishLater","sdkError","envelopeListenerId","isDone","askingQuestion","declinine","envelope","console","log","listenToEnvelope","message","_b","response","status","_c","data","unlistenToEnvelope","subscribe","store","delListener","_d","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","_y","_z","hasPoweredBy","organization","powered_by_label","hasLinks","terms_use_url","privacy_policy_url","hasButtons","href","powered_by_url","rel","onNext","detail"],"sources":["module.ts"],"mappings":"0iDAAcA,sBAAuBC,YAAaC,OAAQC,UAAWC,eAAkB,6BAC9EC,gBAAiBC,kCAAmCC,gBAAmB,8BAClEC,aAAgB,kCAChBC,aAAgB,mCAChBC,UAAa,gCACpB,4BACA,sBAEP,IAAMC,+BAAiC,grBAEvC,IAAMC,4BAA2B,WAC7B,SAAAC,EAAYC,GACRd,iBAAiBe,KAAMD,GACvBC,KAAKC,aAAef,YAAYc,KAAM,gBAItCA,KAAKE,SAAWZ,gBAAgBa,aAIhCH,KAAKI,WAAa,GAIlBJ,KAAKK,WAAa,GAIlBL,KAAKM,WAAa,EAKlBN,KAAKO,aAAe,IAKpBP,KAAKQ,cAAgB,IAarBR,KAAKS,OAAS,CAAC,CAAEC,KAAM,OAAQC,KAAM,WACrCX,KAAKW,KAAO,WACZX,KAAKY,YAAc,kCAAAC,OAAkCC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,KAC7FjB,KAAKkB,cAAgBlB,KAAKO,aAC1BP,KAAKmB,eAAiBnB,KAAKQ,cAC3BR,KAAKoB,aAAepB,KAAKO,aACzBP,KAAKqB,cAAgBrB,KAAKQ,cAC1BR,KAAKsB,YAActB,KAAKO,aAAeP,KAAKQ,cAC5CR,KAAKuB,sBAAwB,KAC7BvB,KAAKwB,eAAiB,6EAC1B,CACM1B,EAAA2B,UAAAC,kBAAN,W,kHACIC,EAAA3B,KAAsB,SAAMT,kCAAkCS,KAAKE,SAAUF,KAAKK,WAAYL,KAAKM,WAAYN,KAAKW,O,OAApHgB,EAAKH,eAAiBI,EAAAC,O,kBAE1B/B,EAAA2B,UAAAK,iBAAA,eAAAC,EAAA/B,KACIA,KAAKgC,eAAiB,IAAIC,eAAexC,UAAS,SAAAyC,GAC9C,IAAoB,IAAAC,EAAA,EAAA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AAMD,EAAKrI,KAAKsG,YAAc,MAAQ+B,SAAY,OAAS,EAAIA,EAAGK,gBAAkB,MAAQJ,SAAY,OAAS,EAAIA,EAAGQ,qBAAwB3J,EAAE,IAAK,CAAEiE,IAAK,2CAA4C4F,MAAOR,GAAMD,EAAKvI,KAAKsG,YAAc,MAAQiC,SAAY,OAAS,EAAIA,EAAGG,gBAAkB,MAAQF,SAAY,OAAS,EAAIA,EAAGM,mBAAoB9E,OAAQ,SAAUkF,IAAK,uBAAyB/J,EAAE,OAAQ,CAAEiE,IAAK,4CAA8C,oBAAsBpD,KAAKoG,gBAAmBjH,EAAE,0BAA2B,CAAEiE,IAAK,2CAA4C+F,OAAQ,SAAApF,GAC7jG,IAAIlB,GACHA,EAAKd,EAAK+D,eAAiB,MAAQjD,SAAY,OAAS,EAAIA,EAAGE,KAAK,CAAE0B,SAAUV,EAAEqF,OAAO3E,WAC1F1C,EAAKqE,eAAiB,KAC1B,EAAGpB,OAAQ,WAAM,OAACjD,EAAKqE,eAAiB,KAAvB,IACzB,EACJ,OAAAP,CAAA,CA9IuB,GA+IvBD,kBAAkBtC,MAAQkC,4BAEjB3F,8DAA+DyE,iDAAkDsB","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o))e[o]=i[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function o(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{c(t.next(e))}catch(e){r(e)}}function l(e){try{c(t["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=l(0),s["throw"]=l(1),s["return"]=l(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(i){return c([e,i])}}function c(l){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(n=0)),n)try{if(t=1,o&&(r=l[0]&2?o["return"]:l[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;if(o=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;o=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){n.label=l[1];break}if(l[0]===6&&n.label<r[1]){n.label=r[1];r=l;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(l);break}if(r[2])n.ops.pop();n.trys.pop();continue}l=i.call(e,n)}catch(e){l=[6,e];o=0}finally{t=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-DjAHH4ih.js";import{VerdocsEndpoint,getEnvelope,getInPersonLink,formatFullName}from"@verdocs/js-sdk";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeRecipientLinkCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-link{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-link .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-link .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-link .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-link .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-link .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-link .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-link .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-link .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;margin:0 6px 0 0;border-radius:4px;white-space:nowrap;-ms-flex-align:center;align-items:center;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-link .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-link .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeRecipientLink=function(){function e(e){registerInstance(this,e);this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.roleName="";this.gettingLink=true;this.link="";this.loading=true;this.envelope=null;this.recipient=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENT_LINK] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENT_LINK] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENT_LINK] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[RECIPIENT_LINK] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var n;e.envelope=i;e.loading=false;e.recipient=(((n=e.envelope)===null||n===void 0?void 0:n.recipients)||[]).find((function(i){return i.role_name===e.roleName}));e.getLink(e.recipient)}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){navigator.clipboard.writeText(e).then((function(){return VerdocsToast("Link copied to clipboard!",{style:"success",duration:3e3})})).catch((function(e){console.warn("[RECIPIENT_LINK] Error copying to clipboard",e);VerdocsToast("Unable to copy to clipboard: ".concat(e.message),{style:"error"})}))};e.prototype.getLink=function(e){var i=this;this.gettingLink=true;getInPersonLink(this.endpoint,e.envelope_id,e.role_name).then((function(e){i.gettingLink=false;i.link=e.link})).catch((function(e){i.gettingLink=false;console.log("[RECIPIENT_LINK] Error getting link",e);VerdocsToast("Unable to get link: "+e.message,{style:"error"})}))};e.prototype.render=function(){var e=this;if(this.loading||!this.recipient){return h(Host,null)}var i=formatFullName(this.recipient);return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"In-Person Signing Link"),h("div",{class:"summary-rows"},h("div",{class:"summary-recipient"},h("div",{class:"role-name"},this.recipient.role_name),h("div",{class:"role-details"},h("div",{class:"role-info"},h("div",{class:"role-full-name"},i," (",this.recipient.email||this.recipient.phone,")"),!this.link&&h("verdocs-button",{size:"small",variant:"outline",label:this.gettingLink?"Loading...":"Get Link",disabled:this.gettingLink,onClick:function(){return e.getLink(e.recipient)}})),this.link&&h("div",{class:"link-wrapper"},h("div",{class:"link"},this.link),h("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(e.link)}}))))),h("div",{class:"buttons"},h("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}();VerdocsEnvelopeRecipientLink.style=verdocsEnvelopeRecipientLinkCss;var verdocsEnvelopeUpdateRecipientCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-update-recipient{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-update-recipient .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-update-recipient .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-update-recipient .fields{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-update-recipient .fields .field{margin:2px 0}verdocs-envelope-update-recipient .fields .note{font-style:italic;font-size:14px}verdocs-envelope-update-recipient .fields .fields-row{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-update-recipient .fields .fields-row>*{-ms-flex:1;flex:1}verdocs-envelope-update-recipient .fields .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-update-recipient .fields textarea{width:100%;font-size:16px;padding:5px 7px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-envelope-update-recipient .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-update-recipient .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-update-recipient .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeUpdateRecipient=function(){function e(e){registerInstance(this,e);this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.roleName="";this.gettingLink=true;this.link="";this.loading=true;this.envelope=null;this.originalRecipient=null;this.updatedRecipient=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[UPDATE_RECIPIENT] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[UPDATE_RECIPIENT] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[UPDATE_RECIPIENT] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[UPDATE_RECIPIENT] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var n;e.envelope=i;e.loading=false;var t=(((n=e.envelope)===null||n===void 0?void 0:n.recipients)||[]).find((function(i){return i.role_name===e.roleName}));e.originalRecipient=t;e.updatedRecipient=__assign({},t)}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.handleSave=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({action:"save",originalRecipient:this.originalRecipient,updatedRecipient:this.updatedRecipient})};e.prototype.handleCancel=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({action:"cancel",originalRecipient:this.originalRecipient,updatedRecipient:this.updatedRecipient})};e.prototype.render=function(){var e=this;if(this.loading||!this.updatedRecipient){return h(Host,null)}return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"Update Recipient"),h("div",{class:"summary-rows"},h("div",{class:"fields"},h("div",{class:"role-name"},this.updatedRecipient.role_name),h("div",{class:"field"},h("div",{class:"fields-row"},h("verdocs-text-input",{value:this.updatedRecipient.first_name,placeholder:"First Name...",onInput:function(i){return e.updatedRecipient.first_name=i.target.value}}),h("verdocs-text-input",{value:this.updatedRecipient.last_name,placeholder:"Last Name...",onInput:function(i){return e.updatedRecipient.last_name=i.target.value}}))),h("div",{class:"field"},h("verdocs-text-input",{type:"email",value:this.updatedRecipient.email,placeholder:"Email Address...",onInput:function(i){return e.updatedRecipient.email=i.target.value}})),h("div",{class:"field"},h("verdocs-text-input",{type:"tel",value:this.updatedRecipient.phone,placeholder:"Phone Number...",onInput:function(i){return e.updatedRecipient.phone=i.target.value}})),h("div",{class:"field"},h("textarea",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onInput:function(i){return e.updatedRecipient.message=i.target.value}},this.updatedRecipient.message)),h("div",{class:"note"},"NOTE: If you change the recipient's email address or invite message, they will receive a new invitation to sign the envelope. This will also reset their status if they have previously declined to sign."))),h("div",{class:"buttons"},h("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(i){return e.handleCancel(i)}}),h("verdocs-button",{size:"small",label:"Save",onClick:function(i){return e.handleSave(i)}}))))};return e}();VerdocsEnvelopeUpdateRecipient.style=verdocsEnvelopeUpdateRecipientCss;export{VerdocsEnvelopeRecipientLink as verdocs_envelope_recipient_link,VerdocsEnvelopeUpdateRecipient as verdocs_envelope_update_recipient};
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o))e[o]=i[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function o(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{c(t.next(e))}catch(e){r(e)}}function l(e){try{c(t["throw"](e))}catch(e){r(e)}}function c(e){e.done?n(e.value):o(e.value).then(s,l)}c((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},t,o,r,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=l(0),s["throw"]=l(1),s["return"]=l(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(i){return c([e,i])}}function c(l){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(n=0)),n)try{if(t=1,o&&(r=l[0]&2?o["return"]:l[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,l[1])).done)return r;if(o=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;o=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){n.label=l[1];break}if(l[0]===6&&n.label<r[1]){n.label=r[1];r=l;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(l);break}if(r[2])n.ops.pop();n.trys.pop();continue}l=i.call(e,n)}catch(e){l=[6,e];o=0}finally{t=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-BIRwgFLv.js";import{VerdocsEndpoint,getEnvelope,getInPersonLink,formatFullName}from"@verdocs/js-sdk";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeRecipientLinkCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-link{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-link .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-link .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-link .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-link .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-link .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-link .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-link .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-link .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;margin:0 6px 0 0;border-radius:4px;white-space:nowrap;-ms-flex-align:center;align-items:center;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-link .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-link .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeRecipientLink=function(){function e(e){registerInstance(this,e);this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.roleName="";this.gettingLink=true;this.link="";this.loading=true;this.envelope=null;this.recipient=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENT_LINK] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENT_LINK] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENT_LINK] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[RECIPIENT_LINK] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var n;e.envelope=i;e.loading=false;e.recipient=(((n=e.envelope)===null||n===void 0?void 0:n.recipients)||[]).find((function(i){return i.role_name===e.roleName}));e.getLink(e.recipient)}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){navigator.clipboard.writeText(e).then((function(){return VerdocsToast("Link copied to clipboard!",{style:"success",duration:3e3})})).catch((function(e){console.warn("[RECIPIENT_LINK] Error copying to clipboard",e);VerdocsToast("Unable to copy to clipboard: ".concat(e.message),{style:"error"})}))};e.prototype.getLink=function(e){var i=this;this.gettingLink=true;getInPersonLink(this.endpoint,e.envelope_id,e.role_name).then((function(e){i.gettingLink=false;i.link=e.link})).catch((function(e){i.gettingLink=false;console.log("[RECIPIENT_LINK] Error getting link",e);VerdocsToast("Unable to get link: "+e.message,{style:"error"})}))};e.prototype.render=function(){var e=this;if(this.loading||!this.recipient){return h(Host,null)}var i=formatFullName(this.recipient);return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"In-Person Signing Link"),h("div",{class:"summary-rows"},h("div",{class:"summary-recipient"},h("div",{class:"role-name"},this.recipient.role_name),h("div",{class:"role-details"},h("div",{class:"role-info"},h("div",{class:"role-full-name"},i," (",this.recipient.email||this.recipient.phone,")"),!this.link&&h("verdocs-button",{size:"small",variant:"outline",label:this.gettingLink?"Loading...":"Get Link",disabled:this.gettingLink,onClick:function(){return e.getLink(e.recipient)}})),this.link&&h("div",{class:"link-wrapper"},h("div",{class:"link"},this.link),h("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(e.link)}}))))),h("div",{class:"buttons"},h("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}();VerdocsEnvelopeRecipientLink.style=verdocsEnvelopeRecipientLinkCss;var verdocsEnvelopeUpdateRecipientCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-update-recipient{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-update-recipient .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-update-recipient .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-update-recipient .fields{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-update-recipient .fields .field{margin:2px 0}verdocs-envelope-update-recipient .fields .note{font-style:italic;font-size:14px}verdocs-envelope-update-recipient .fields .fields-row{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-update-recipient .fields .fields-row>*{-ms-flex:1;flex:1}verdocs-envelope-update-recipient .fields .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-update-recipient .fields textarea{width:100%;font-size:16px;padding:5px 7px;border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-envelope-update-recipient .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-update-recipient .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-update-recipient .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeUpdateRecipient=function(){function e(e){registerInstance(this,e);this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.roleName="";this.gettingLink=true;this.link="";this.loading=true;this.envelope=null;this.originalRecipient=null;this.updatedRecipient=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[UPDATE_RECIPIENT] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[UPDATE_RECIPIENT] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[UPDATE_RECIPIENT] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[UPDATE_RECIPIENT] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var n;e.envelope=i;e.loading=false;var t=(((n=e.envelope)===null||n===void 0?void 0:n.recipients)||[]).find((function(i){return i.role_name===e.roleName}));e.originalRecipient=t;e.updatedRecipient=__assign({},t)}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.handleSave=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({action:"save",originalRecipient:this.originalRecipient,updatedRecipient:this.updatedRecipient})};e.prototype.handleCancel=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({action:"cancel",originalRecipient:this.originalRecipient,updatedRecipient:this.updatedRecipient})};e.prototype.render=function(){var e=this;if(this.loading||!this.updatedRecipient){return h(Host,null)}return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"Update Recipient"),h("div",{class:"summary-rows"},h("div",{class:"fields"},h("div",{class:"role-name"},this.updatedRecipient.role_name),h("div",{class:"field"},h("div",{class:"fields-row"},h("verdocs-text-input",{value:this.updatedRecipient.first_name,placeholder:"First Name...",onInput:function(i){return e.updatedRecipient.first_name=i.target.value}}),h("verdocs-text-input",{value:this.updatedRecipient.last_name,placeholder:"Last Name...",onInput:function(i){return e.updatedRecipient.last_name=i.target.value}}))),h("div",{class:"field"},h("verdocs-text-input",{type:"email",value:this.updatedRecipient.email,placeholder:"Email Address...",onInput:function(i){return e.updatedRecipient.email=i.target.value}})),h("div",{class:"field"},h("verdocs-text-input",{type:"tel",value:this.updatedRecipient.phone,placeholder:"Phone Number...",onInput:function(i){return e.updatedRecipient.phone=i.target.value}})),h("div",{class:"field"},h("textarea",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onInput:function(i){return e.updatedRecipient.message=i.target.value}},this.updatedRecipient.message)),h("div",{class:"note"},"NOTE: If you change the recipient's email address or invite message, they will receive a new invitation to sign the envelope. This will also reset their status if they have previously declined to sign."))),h("div",{class:"buttons"},h("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(i){return e.handleCancel(i)}}),h("verdocs-button",{size:"small",label:"Save",onClick:function(i){return e.handleSave(i)}}))))};return e}();VerdocsEnvelopeUpdateRecipient.style=verdocsEnvelopeUpdateRecipientCss;export{VerdocsEnvelopeRecipientLink as verdocs_envelope_recipient_link,VerdocsEnvelopeUpdateRecipient as verdocs_envelope_update_recipient};
|
|
2
2
|
//# sourceMappingURL=verdocs-envelope-recipient-link_2.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function r(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(t.next(e))}catch(e){o(e)}}function a(e){try{l(t["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(i){return l([e,i])}}function l(a){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(t=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=i.call(e,n)}catch(e){a=[6,e];r=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-DjAHH4ih.js";import{VerdocsEndpoint,getEnvelope,getInPersonLink,getRecipientsWithActions,recipientCanAct,formatFullName}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeRecipientSummaryCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeRecipientSummary=function(){function e(e){registerInstance(this,e);this.another=createEvent(this,"another");this.view=createEvent(this,"view");this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.canSendAnother=true;this.canView=true;this.canDone=true;this.recipientStatusIcons=[];this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11));this.gettingLinks={};this.links={};this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENTS] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENTS] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENTS] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){e.envelope=i;e.loading=false;e.sortEnvelopeRecipients()}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.handleAnother=function(e){var i;e.preventDefault();(i=this.another)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleView=function(e){var i;e.preventDefault();(i=this.view)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){var i=this;navigator.clipboard.writeText(e).then((function(){})).catch((function(e){var n;console.warn("[RECIPIENTS] Error copying to clipboard",e);(n=i.sdkError)===null||n===void 0?void 0:n.emit(e)}))};e.prototype.getLink=function(e){var i;var n=this;this.gettingLinks=__assign(__assign({},this.gettingLinks),(i={},i[e.role_name]=true,i));getInPersonLink(this.endpoint,e.envelope_id,e.role_name).then((function(i){var t,r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));n.links=__assign(__assign({},n.links),(r={},r[e.role_name]=i.link,r));n.copyLink(i.link)})).catch((function(i){var t;var r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));console.log("[RECIPIENTS] Error getting link",i);(r=n.sdkError)===null||r===void 0?void 0:r.emit(i)}))};e.prototype.render=function(){var e=this;var i;if(this.loading){return h(Host,null)}return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"Recipient Summary"),h("div",{class:"summary-rows"},(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).map((function(i){var n=getRecipientsWithActions(e.envelope);var t=recipientCanAct(i,n);var r=e.links[i.role_name];var o=e.gettingLinks[i.role_name];var s=formatFullName(i);return h("div",{class:"summary-recipient"},h("div",{class:"role-name"},i.role_name),h("div",{class:"role-details"},h("div",{class:"role-info"},h("div",{class:"role-full-name"},s," (",i.email||i.phone,")"),t&&!r&&h("verdocs-button",{size:"small",variant:"outline",label:"Get Link",disabled:o,onClick:function(){return e.getLink(i)}})),r&&h("div",{class:"link-wrapper"},h("div",{class:"link"},r),h("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(r)}}))))}))),(this.canSendAnother||this.canView||this.canDone)&&h("div",{class:"buttons"},this.canSendAnother&&h("verdocs-button",{size:"small",label:"Send Another",onClick:function(i){return e.handleAnother(i)}}),this.canView&&h("verdocs-button",{size:"small",label:"View Now",onClick:function(i){return e.handleView(i)}}),this.canDone&&h("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}();VerdocsEnvelopeRecipientSummary.style=verdocsEnvelopeRecipientSummaryCss;export{VerdocsEnvelopeRecipientSummary as verdocs_envelope_recipient_summary};
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,n=1,t=arguments.length;n<t;n++){i=arguments[n];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))e[r]=i[r]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,n,t){function r(e){return e instanceof n?e:new n((function(i){i(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(t.next(e))}catch(e){o(e)}}function a(e){try{l(t["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((t=t.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},t,r,o,s=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return s.next=a(0),s["throw"]=a(1),s["return"]=a(2),typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(i){return l([e,i])}}function l(a){if(t)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(t=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=i.call(e,n)}catch(e){a=[6,e];r=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-BIRwgFLv.js";import{VerdocsEndpoint,getEnvelope,getInPersonLink,getRecipientsWithActions,recipientCanAct,formatFullName}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeRecipientSummaryCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:"Inter", "Barlow", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}';var VerdocsEnvelopeRecipientSummary=function(){function e(e){registerInstance(this,e);this.another=createEvent(this,"another");this.view=createEvent(this,"view");this.next=createEvent(this,"next");this.sdkError=createEvent(this,"sdkError");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.canSendAnother=true;this.canView=true;this.canDone=true;this.recipientStatusIcons=[];this.containerId="verdocs-status-indicator-".concat(Math.random().toString(36).substring(2,11));this.gettingLinks={};this.links={};this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(t){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[RECIPIENTS] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[RECIPIENTS] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(t){console.log("[RECIPIENTS] Error loading envelope",t);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(n=t.response)===null||n===void 0?void 0:n.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){e.envelope=i;e.loading=false;e.sortEnvelopeRecipients()}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.handleAnother=function(e){var i;e.preventDefault();(i=this.another)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleView=function(e){var i;e.preventDefault();(i=this.view)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.handleDone=function(e){var i;e.preventDefault();(i=this.next)===null||i===void 0?void 0:i.emit({envelope:this.envelope})};e.prototype.copyLink=function(e){var i=this;navigator.clipboard.writeText(e).then((function(){})).catch((function(e){var n;console.warn("[RECIPIENTS] Error copying to clipboard",e);(n=i.sdkError)===null||n===void 0?void 0:n.emit(e)}))};e.prototype.getLink=function(e){var i;var n=this;this.gettingLinks=__assign(__assign({},this.gettingLinks),(i={},i[e.role_name]=true,i));getInPersonLink(this.endpoint,e.envelope_id,e.role_name).then((function(i){var t,r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));n.links=__assign(__assign({},n.links),(r={},r[e.role_name]=i.link,r));n.copyLink(i.link)})).catch((function(i){var t;var r;n.gettingLinks=__assign(__assign({},n.gettingLinks),(t={},t[e.role_name]=false,t));console.log("[RECIPIENTS] Error getting link",i);(r=n.sdkError)===null||r===void 0?void 0:r.emit(i)}))};e.prototype.render=function(){var e=this;var i;if(this.loading){return h(Host,null)}return h(Host,null,h("div",{class:"summary-content"},h("h1",{class:"summary-title"},"Recipient Summary"),h("div",{class:"summary-rows"},(((i=this.envelope)===null||i===void 0?void 0:i.recipients)||[]).map((function(i){var n=getRecipientsWithActions(e.envelope);var t=recipientCanAct(i,n);var r=e.links[i.role_name];var o=e.gettingLinks[i.role_name];var s=formatFullName(i);return h("div",{class:"summary-recipient"},h("div",{class:"role-name"},i.role_name),h("div",{class:"role-details"},h("div",{class:"role-info"},h("div",{class:"role-full-name"},s," (",i.email||i.phone,")"),t&&!r&&h("verdocs-button",{size:"small",variant:"outline",label:"Get Link",disabled:o,onClick:function(){return e.getLink(i)}})),r&&h("div",{class:"link-wrapper"},h("div",{class:"link"},r),h("verdocs-button",{size:"small",variant:"outline",label:"Copy",onClick:function(){return e.copyLink(r)}}))))}))),(this.canSendAnother||this.canView||this.canDone)&&h("div",{class:"buttons"},this.canSendAnother&&h("verdocs-button",{size:"small",label:"Send Another",onClick:function(i){return e.handleAnother(i)}}),this.canView&&h("verdocs-button",{size:"small",label:"View Now",onClick:function(i){return e.handleView(i)}}),this.canDone&&h("verdocs-button",{size:"small",label:"Done",onClick:function(i){return e.handleDone(i)}}))))};return e}();VerdocsEnvelopeRecipientSummary.style=verdocsEnvelopeRecipientSummaryCss;export{VerdocsEnvelopeRecipientSummary as verdocs_envelope_recipient_summary};
|
|
2
2
|
//# sourceMappingURL=verdocs-envelope-recipient-summary.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment}from"./index-DjAHH4ih.js";import{d as dateFnsExports}from"./index-dzBXqXlK.js";import{VerdocsEndpoint,getEnvelope,remindRecipient,cancelEnvelope,updateRecipient,formatFullName,updateEnvelope,userIsEnvelopeOwner,getRecipientsWithActions,resetRecipient,recipientCanAct,capitalize}from"@verdocs/js-sdk";import{a as FORMAT_TIMESTAMP}from"./Types-dqxNbm_b.js";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeSidebarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;font-size:14px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:6px;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';var MS_PER_DAY=24*60*60*1e3;var InformationCircle='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var Users='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var ClipboardDocuments='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ActivityIcons={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var VerdocsEnvelopeSidebar=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.toggle=createEvent(this,"toggle");this.another=createEvent(this,"another");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.showUpdateDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.setTab=function(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":remindRecipient(this.endpoint,this.envelopeId,e.role_name).then((function(){VerdocsToast("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);VerdocsToast("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;cancelEnvelope(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);VerdocsToast("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";Store.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;VerdocsToast("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.handleUpdateRecipient=function(e,i){var t=this;console.log("Updating recipient",e,i);var n={};if(i.email!==e.email){n.email=i.email}if(i.phone!==e.phone){n.phone=i.phone}if(i.message!==e.message){n.message=i.message}if(i.first_name!==e.first_name){n.first_name=i.first_name}if(i.last_name!==e.last_name){n.last_name=i.last_name}if(Object.keys(n).length>0){updateRecipient(this.endpoint,this.envelopeId,e.role_name,n).then((function(e){VerdocsToast("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);Store.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){VerdocsToast(e.response.data.error,{style:"error"});t.showUpdateDialog=""}))}else{this.showUpdateDialog=""}};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=formatFullName(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(i.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:"Envelope expired.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(MS_PER_DAY,3*MS_PER_DAY)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;updateEnvelope(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);Store.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;VerdocsToast(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,n,s,o,r,a,l,d,c,v,p;if(this.loading){return h(Host,null)}var u=userIsEnvelopeOwner(this.endpoint.profile,this.envelope);var f=this.prepareHistoryEntries();var w=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";var g=getRecipientsWithActions(this.envelope);return h(Host,{class:this.panelOpen?"open":""},h("div",{class:"side-buttons"},h("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:InformationCircle}),h("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:Users}),h("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:ClipboardDocuments})),this.activeTab===1&&h("div",{class:"content"},h("div",{class:"title"},"Details"),h("div",{class:"label"},"Envelope ID"),h("div",{class:"value"},(n=this.envelope)===null||n===void 0?void 0:n.id),h("div",{class:"label"},"Date Created"),h("div",{class:"value"},dateFnsExports.format(new Date((s=this.envelope)===null||s===void 0?void 0:s.created_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Last Modified"),h("div",{class:"value"},dateFnsExports.format(new Date((o=this.envelope)===null||o===void 0?void 0:o.updated_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Status"),h("div",{class:"value"},capitalize((r=this.envelope)===null||r===void 0?void 0:r.status)),h("div",{class:"label"},"Owner ID"),h("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.profile_id),h("div",{class:"label"},"Owner Name"),h("div",{class:"value"},formatFullName((l=this.envelope)===null||l===void 0?void 0:l.profile)),h("div",{class:"label"},"Owner Email"),h("div",{class:"value"},(c=(d=this.envelope)===null||d===void 0?void 0:d.profile)===null||c===void 0?void 0:c.email)),this.activeTab===2&&h("div",{class:"content"},h("div",{class:"title"},"Recipients"),(v=this.envelope)===null||v===void 0?void 0:v.recipients.map((function(i,t){var n;var s=recipientCanAct(i,g);var o=i.status!=="submitted";var r=e.canResendRecipient(i);var a=formatFullName(i);return h("div",{class:"recipient-detail"},h("div",{class:"recipient-header"},h("div",{class:"recipient-number"},t+1),h("div",{class:"recipient-name"},i.role_name.replace("delegated_to_","Delegated")),h("div",{class:(n={"recipient-status":true},n[i.status]=true,n)},i.status),u&&!w&&h("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"update",label:"Update",disabled:!o},{id:"reminder",label:"Send Reminder",disabled:!r},{id:"inperson",label:"Get In-Person Link",disabled:!s},{id:"reinvite",label:"Re-invite",disabled:!r}]})),h("dic",{class:"recipient-content"},h("div",{class:"recipient-name"},a),h("div",{class:"recipient-name"},i.email),h("div",{class:"recipient-name"},i.phone)))})),u&&h("div",{class:"reminders"},h("div",{class:"form-row"},h("div",{class:"reminders-label"},"Reminders"),h("verdocs-switch",{disabled:w||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&h(Fragment,null,h("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),h("div",{class:"form-row"},h("div",{class:"form-label"},"Initial Reminder (days):"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.initialReminder/MS_PER_DAY)),onBlur:function(i){e.initialReminder=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Follow-up Reminders:"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.followupReminders/MS_PER_DAY)),onBlur:function(i){e.followupReminders=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Next Reminder:"),h("div",{style:{color:"#dddddd"}},dateFnsExports.format(new Date((p=this.envelope)===null||p===void 0?void 0:p.next_reminder),"P p"))))),u&&h("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!w},disabled:w})),this.activeTab===3&&h("div",{class:"content"},h("div",{class:"title"},"History"),f.map((function(e){return h("div",{class:"history-entry"},h("div",{class:"activity-icon",innerHTML:ActivityIcons[e.icon]||e.icon}),h("div",{class:"activity-details"},h("div",{class:"activity-text"},e.message),h("div",{class:"activity-date"},dateFnsExports.format(e.date,FORMAT_TIMESTAMP))))}))),this.showRecipientDialog&&h("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&h("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&h("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:function(){resetRecipient(e.endpoint,e.envelopeId,e.showReinviteDialog).then((function(){VerdocsToast("Recipient Reset",{style:"success"});e.showReinviteDialog=""})).catch((function(i){console.log("[SIDEBAR] Error resetting recipient",i);VerdocsToast("Error resetting recipient: "+i.message,{style:"error"});e.showReinviteDialog=""}))}}),this.showUpdateDialog&&h("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:function(i){console.log("next",i.detail);if(i.detail.action==="save"){e.handleUpdateRecipient(i.detail.originalRecipient,i.detail.updatedRecipient)}else{e.showUpdateDialog=""}}}))};return e}();VerdocsEnvelopeSidebar.style=verdocsEnvelopeSidebarCss;export{VerdocsEnvelopeSidebar as verdocs_envelope_sidebar};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,o){function r(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?t(e.value):s(e.value).then(r,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=a(0),r["throw"]=a(1),r["return"]=a(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,a[0]&&(t=0)),t)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1];o=a;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(a);break}if(o[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment}from"./index-BIRwgFLv.js";import{d as dateFnsExports}from"./index-dzBXqXlK.js";import{VerdocsEndpoint,getEnvelope,remindRecipient,cancelEnvelope,updateRecipient,formatFullName,updateEnvelope,userIsEnvelopeOwner,getRecipientsWithActions,resetRecipient,recipientCanAct,capitalize}from"@verdocs/js-sdk";import{a as FORMAT_TIMESTAMP}from"./Types-dqxNbm_b.js";import{V as VerdocsToast}from"./Toast-CyvDgtoV.js";import{S as SDKError}from"./errors-C1sRVZWv.js";import{S as Store}from"./Datastore-DmsV595e.js";var verdocsEnvelopeSidebarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;font-size:14px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:6px;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-name{-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:0 0 100px;flex:0 0 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}verdocs-envelope-sidebar .reminders{margin:15px 0 30px 0}verdocs-envelope-sidebar .reminders .form-row{margin:8px 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-sidebar .reminders .form-row .reminders-label{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row .form-label{-ms-flex:1;flex:1}verdocs-envelope-sidebar .reminders .form-row verdocs-text-input{margin:0;width:100px}';var MS_PER_DAY=24*60*60*1e3;var InformationCircle='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var Users='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var ClipboardDocuments='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var ActivityIcons={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',contact_mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>',idcard:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',idcardslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 10H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 14H18" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.16992 15.0001C6.37606 14.4141 6.75902 13.9065 7.26594 13.5475C7.77286 13.1884 8.37873 12.9956 8.99992 12.9956C9.62111 12.9956 10.227 13.1884 10.7339 13.5475C11.2408 13.9065 11.6238 14.4141 11.8299 15.0001" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 13C10.1046 13 11 12.1046 11 11C11 9.89543 10.1046 9 9 9C7.89543 9 7 9.89543 7 11C7 12.1046 7.89543 13 9 13Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 5H4C2.89543 5 2 5.89543 2 7V17C2 18.1046 2.89543 19 4 19H20C21.1046 19 22 18.1046 22 17V7C22 5.89543 21.1046 5 20 5Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',key:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',keyslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.586 17.4139C2.2109 17.7889 2.00011 18.2975 2 18.8279V20.9999C2 21.2651 2.10536 21.5195 2.29289 21.707C2.48043 21.8946 2.73478 21.9999 3 21.9999H6C6.26522 21.9999 6.51957 21.8946 6.70711 21.707C6.89464 21.5195 7 21.2651 7 20.9999V19.9999C7 19.7347 7.10536 19.4803 7.29289 19.2928C7.48043 19.1053 7.73478 18.9999 8 18.9999H9C9.26522 18.9999 9.51957 18.8946 9.70711 18.707C9.89464 18.5195 10 18.2651 10 17.9999V16.9999C10 16.7347 10.1054 16.4803 10.2929 16.2928C10.4804 16.1053 10.7348 15.9999 11 15.9999H11.172C11.7024 15.9998 12.211 15.789 12.586 15.4139L13.4 14.5999C14.7898 15.0841 16.3028 15.0822 17.6915 14.5947C19.0801 14.1071 20.2622 13.1628 21.0444 11.916C21.8265 10.6693 22.1624 9.19409 21.9971 7.73165C21.8318 6.26922 21.1751 4.90617 20.1344 3.86549C19.0937 2.8248 17.7307 2.1681 16.2683 2.00281C14.8058 1.83751 13.3306 2.17341 12.0839 2.95556C10.8372 3.7377 9.89279 4.91979 9.40525 6.30844C8.91771 7.69708 8.91585 9.21008 9.4 10.5999L2.586 17.4139Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 8C16.7761 8 17 7.77614 17 7.5C17 7.22386 16.7761 7 16.5 7C16.2239 7 16 7.22386 16 7.5C16 7.77614 16.2239 8 16.5 8Z" fill="black" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pin:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H18C18.2652 17 18.5196 16.8946 18.7071 16.7071C18.8946 16.5196 19 16.2652 19 16V15.24C18.9998 14.8679 18.8958 14.5033 18.6997 14.187C18.5036 13.8708 18.2232 13.6156 17.89 13.45L16.11 12.55C15.7768 12.3844 15.4964 12.1292 15.3003 11.813C15.1042 11.4967 15.0002 11.1321 15 10.76V7C15 6.73478 15.1054 6.48043 15.2929 6.29289C15.4804 6.10536 15.7348 6 16 6C16.5304 6 17.0391 5.78929 17.4142 5.41421C17.7893 5.03914 18 4.53043 18 4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H8C7.46957 2 6.96086 2.21071 6.58579 2.58579C6.21071 2.96086 6 3.46957 6 4C6 4.53043 6.21071 5.03914 6.58579 5.41421C6.96086 5.78929 7.46957 6 8 6C8.26522 6 8.51957 6.10536 8.70711 6.29289C8.89464 6.48043 9 6.73478 9 7V10.76Z" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',pinslash:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 17V22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M15.0006 9.34V7C15.0006 6.73478 15.106 6.48043 15.2935 6.29289C15.4811 6.10536 15.7354 6 16.0006 6C16.5311 6 17.0398 5.78929 17.4148 5.41421C17.7899 5.03914 18.0006 4.53043 18.0006 4C18.0006 3.46957 17.7899 2.96086 17.4148 2.58579C17.0398 2.21071 16.5311 2 16.0006 2H7.89062" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M2 2L22 22" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 9V10.76C8.9998 11.1321 8.89581 11.4967 8.69972 11.813C8.50363 12.1292 8.22321 12.3844 7.89 12.55L6.11 13.45C5.77679 13.6156 5.49637 13.8708 5.30028 14.187C5.10419 14.5033 5.0002 14.8679 5 15.24V16C5 16.2652 5.10536 16.5196 5.29289 16.7071C5.48043 16.8946 5.73478 17 6 17H17" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>'};var VerdocsEnvelopeSidebar=function(){function e(e){registerInstance(this,e);this.sdkError=createEvent(this,"sdkError");this.envelopeUpdated=createEvent(this,"envelopeUpdated");this.toggle=createEvent(this,"toggle");this.another=createEvent(this,"another");this.envelopeListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false;this.showRecipientDialog="";this.showCancelDialog=false;this.showReinviteDialog="";this.showUpdateDialog="";this.remindersEnabled=false;this.updatingReminders=false;this.initialReminder=null;this.followupReminders=null;this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t;return __generator(this,(function(n){try{this.endpoint.loadSession();if(!this.envelopeId){console.log("[SIDEBAR] Missing required envelope ID ".concat(this.envelopeId));return[2]}if(!this.endpoint.session){console.log("[SIDEBAR] Unable to start session, must be authenticated");return[2]}this.listenToEnvelope()}catch(n){console.log("[SIDEBAR] Error loading envelope",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(t=n.response)===null||t===void 0?void 0:t.data))}return[2]}))}))};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();Store.subscribe("envelopes",this.envelopeId,(function(){return getEnvelope(e.endpoint,e.envelopeId)}),false,(function(i){var t,n;e.envelope=i;e.loading=false;e.sortEnvelopeRecipients();e.initialReminder=(t=e.envelope)===null||t===void 0?void 0:t.initial_reminder;e.followupReminders=(n=e.envelope)===null||n===void 0?void 0:n.followup_reminders;e.remindersEnabled=!!e.initialReminder}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){Store.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.sortEnvelopeRecipients=function(){var e;(((e=this.envelope)===null||e===void 0?void 0:e.recipients)||[]).sort((function(e,i){return e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence}))};e.prototype.setTab=function(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen;(i=this.toggle)===null||i===void 0?void 0:i.emit({open:this.panelOpen});this.activeTab=e};e.prototype.canResendRecipient=function(e){var i;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes((i=this.envelope)===null||i===void 0?void 0:i.status)};e.prototype.handleRecipientAction=function(e,i){var t;console.log("[SIDEBAR] Recipient action",i,e);switch(i){case"update":this.showUpdateDialog=e.role_name;break;case"reminder":remindRecipient(this.endpoint,this.envelopeId,e.role_name).then((function(){VerdocsToast("Reminder Sent",{style:"success"})})).catch((function(e){console.log("[SIDEBAR] Error resending invitation",e);VerdocsToast("Error resending invitation: "+e.message,{style:"error"})}));break;case"reinvite":this.showReinviteDialog=e.role_name;break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break;case"details":VerdocsToast("This feature will be enabled in a future release. Please try again later.",{style:"info"});break}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:i})};e.prototype.handleCancelEnvelope=function(){var e=this;this.loading=true;cancelEnvelope(this.endpoint,this.envelopeId).then((function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){console.log("[SIDEBAR] Envelope canceled",i);VerdocsToast("Envelope canceled",{style:"success"});t=JSON.parse(JSON.stringify(this.envelope));t.status="canceled";Store.updateEnvelope(this.envelopeId,t);this.loading=false;this.panelOpen=false;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:t,event:"canceled"});return[2]}))}))})).catch((function(i){console.log("[SIDEBAR] Error canceling envelope",i);e.loading=false;VerdocsToast("Error canceling envelope: "+i.message,{style:"error"})}))};e.prototype.handleUpdateRecipient=function(e,i){var t=this;console.log("Updating recipient",e,i);var n={};if(i.email!==e.email){n.email=i.email}if(i.phone!==e.phone){n.phone=i.phone}if(i.message!==e.message){n.message=i.message}if(i.first_name!==e.first_name){n.first_name=i.first_name}if(i.last_name!==e.last_name){n.last_name=i.last_name}if(Object.keys(n).length>0){updateRecipient(this.endpoint,this.envelopeId,e.role_name,n).then((function(e){VerdocsToast("Recipient updated",{style:"success"});console.log("[SIDEBAR] Updated recipient",e);Store.getEnvelope(t.endpoint,t.envelopeId,true);t.showUpdateDialog=""})).catch((function(e){VerdocsToast(e.response.data.error,{style:"error"});t.showUpdateDialog=""}))}else{this.showUpdateDialog=""}};e.prototype.prepareHistoryEntries=function(){var e=this;var i,t,n,s,o,r;var a=[];var l=((i=this.envelope)===null||i===void 0?void 0:i.history_entries)||[];a.push({icon:"pencil",message:"Envelope created.",date:new Date((t=this.envelope)===null||t===void 0?void 0:t.created_at)});if(((n=this.envelope)===null||n===void 0?void 0:n.status)==="complete"){a.push({icon:"pencil",message:"Envelope completed.",date:new Date((s=this.envelope)===null||s===void 0?void 0:s.updated_at)})}var d=l.some((function(e){return e.event==="owner:canceled"}));if(((o=this.envelope)===null||o===void 0?void 0:o.status)==="canceled"&&!d){a.push({icon:"pencil",message:"Envelope Canceled.",date:new Date((r=this.envelope)===null||r===void 0?void 0:r.canceled_at)})}l.forEach((function(i){var t;var n=(((t=e.envelope)===null||t===void 0?void 0:t.recipients)||[]).find((function(e){return e.role_name===i.role_name}));var s=formatFullName(n);switch(i.event.toLowerCase()){case"recipient:kba_verified":a.push({icon:"key",message:"KBA verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:kba_failed":a.push({icon:"keyslash",message:"KBA verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_verified":a.push({icon:"idcard",message:"ID verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:id_failed":a.push({icon:"idcardslash",message:"ID verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_verified":a.push({icon:"pin",message:"PIN verification completed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:pin_failed":a.push({icon:"pinslash",message:"PIN verification failed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:signed":a.push({icon:"gesture",message:"Signed by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:declined":a.push({icon:"clear",message:"Declined by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":a.push({icon:"visibility",message:"Opened by ".concat(s,", via email."),date:new Date(i.created_at)});break;case"sms":a.push({icon:"visibility",message:"Opened by ".concat(s,", via SMS."),date:new Date(i.created_at)});break;case"in_person_link":a.push({icon:"visibility",message:"Opened by ".concat(s,", via In-person link."),date:new Date(i.created_at)});break;case"in_app":a.push({icon:"visibility",message:"Opened by ".concat(s,", via dashboard."),date:new Date(i.created_at)});break;default:a.push({icon:"visibility",message:"Opened by ".concat(s,"."),date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":a.push({icon:"check_circle",message:"Approved by ".concat(s,"."),date:new Date(i.created_at)});break;default:a.push({icon:"send",message:"Submitted by ".concat(s,"."),date:new Date(i.created_at)});break}break;case"recipient:prepared":a.push({icon:"send",message:"Prepared by ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:claimed":if(i.event_detail==="guest"){a.push({icon:"account_circle",message:"".concat(s," claimed the Envelope as a guest."),date:new Date(i.created_at)})}else if(i.event_detail==="profile"){a.push({icon:"verified_user",message:"".concat(s," claimed the Envelope as a verified user."),date:new Date(i.created_at)})}break;case"recipient:agreed":a.push({icon:"done",message:"".concat(s," agreed to use electronic records and signatures."),date:new Date(i.created_at)});break;case"recipient:invited":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," has been invited via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," has been invited via email."),date:new Date(i.created_at)})}break;case"recipient:reminder":if(i.event_detail==="sms"){a.push({icon:"textsms",message:"".concat(s," sent a reminder via SMS."),date:new Date(i.created_at)})}else{a.push({icon:"mail",message:"".concat(s," sent a reminder via email."),date:new Date(i.created_at)})}break;case"invitation:resent":a.push({icon:"mail",message:"Invitation was resent to ".concat(s).concat(i.event_detail==="reminder"?" by reminder":"","."),date:new Date(i.created_at)});break;case"envelope:cc":a.push({icon:"contact_mail",message:"A copy has been sent to ".concat(s,"."),date:new Date(i.created_at)});break;case"recipient:delegated":a.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"owner:updated_recipient_info":a.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":a.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":a.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.created_at)});break;case"envelope:canceled":case"envelope_canceled":case"canceled":case"owner:canceled":a.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(i.created_at)});break;case"envelope:expired":a.push({icon:"cancel",message:"Envelope expired.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":a.push({icon:"link",message:"Owner accessed the In-person link for ".concat(n,"."),date:new Date(i.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",i);break}}));a.sort((function(e,i){return i.date.getTime()-e.date.getTime()}));return a};e.prototype.handleToggleReminders=function(){if(this.remindersEnabled){return this.handleSetReminders(null,null)}else{return this.handleSetReminders(MS_PER_DAY,3*MS_PER_DAY)}};e.prototype.handleSetReminders=function(e,i){var t=this;console.log("Updating reminders...");this.updatingReminders=true;updateEnvelope(this.endpoint,this.envelopeId,{initial_reminder:e,followup_reminders:i}).then((function(e){console.log("Updated",e);Store.updateEnvelope(t.envelopeId,e);t.initialReminder=e.initial_reminder;t.followupReminders=e.followup_reminders;t.remindersEnabled=!!e.initial_reminder;t.updatingReminders=false})).catch((function(e){var i,n,s;console.log("Error updating envelope",e);t.initialReminder=(i=t.envelope)===null||i===void 0?void 0:i.initial_reminder;t.followupReminders=(n=t.envelope)===null||n===void 0?void 0:n.followup_reminders;t.remindersEnabled=!!((s=t.envelope)===null||s===void 0?void 0:s.initial_reminder);t.updatingReminders=false;VerdocsToast(e.response.data.error,{style:"error"})}))};e.prototype.render=function(){var e=this;var i,t,n,s,o,r,a,l,d,c,v,p;if(this.loading){return h(Host,null)}var u=userIsEnvelopeOwner(this.endpoint.profile,this.envelope);var f=this.prepareHistoryEntries();var w=((i=this.envelope)===null||i===void 0?void 0:i.status)!=="pending"&&((t=this.envelope)===null||t===void 0?void 0:t.status)!=="in progress";var g=getRecipientsWithActions(this.envelope);return h(Host,{class:this.panelOpen?"open":""},h("div",{class:"side-buttons"},h("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:InformationCircle}),h("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:Users}),h("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:ClipboardDocuments})),this.activeTab===1&&h("div",{class:"content"},h("div",{class:"title"},"Details"),h("div",{class:"label"},"Envelope ID"),h("div",{class:"value"},(n=this.envelope)===null||n===void 0?void 0:n.id),h("div",{class:"label"},"Date Created"),h("div",{class:"value"},dateFnsExports.format(new Date((s=this.envelope)===null||s===void 0?void 0:s.created_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Last Modified"),h("div",{class:"value"},dateFnsExports.format(new Date((o=this.envelope)===null||o===void 0?void 0:o.updated_at),FORMAT_TIMESTAMP)),h("div",{class:"label"},"Status"),h("div",{class:"value"},capitalize((r=this.envelope)===null||r===void 0?void 0:r.status)),h("div",{class:"label"},"Owner ID"),h("div",{class:"value"},(a=this.envelope)===null||a===void 0?void 0:a.profile_id),h("div",{class:"label"},"Owner Name"),h("div",{class:"value"},formatFullName((l=this.envelope)===null||l===void 0?void 0:l.profile)),h("div",{class:"label"},"Owner Email"),h("div",{class:"value"},(c=(d=this.envelope)===null||d===void 0?void 0:d.profile)===null||c===void 0?void 0:c.email)),this.activeTab===2&&h("div",{class:"content"},h("div",{class:"title"},"Recipients"),(v=this.envelope)===null||v===void 0?void 0:v.recipients.map((function(i,t){var n;var s=recipientCanAct(i,g);var o=i.status!=="submitted";var r=e.canResendRecipient(i);var a=formatFullName(i);return h("div",{class:"recipient-detail"},h("div",{class:"recipient-header"},h("div",{class:"recipient-number"},t+1),h("div",{class:"recipient-name"},i.role_name.replace("delegated_to_","Delegated")),h("div",{class:(n={"recipient-status":true},n[i.status]=true,n)},i.status),u&&!w&&h("verdocs-dropdown",{onOptionSelected:function(t){return e.handleRecipientAction(i,t.detail.id)},options:[{id:"update",label:"Update",disabled:!o},{id:"reminder",label:"Send Reminder",disabled:!r},{id:"inperson",label:"Get In-Person Link",disabled:!s},{id:"reinvite",label:"Re-invite",disabled:!r}]})),h("dic",{class:"recipient-content"},h("div",{class:"recipient-name"},a),h("div",{class:"recipient-name"},i.email),h("div",{class:"recipient-name"},i.phone)))})),u&&h("div",{class:"reminders"},h("div",{class:"form-row"},h("div",{class:"reminders-label"},"Reminders"),h("verdocs-switch",{disabled:w||this.updatingReminders,checked:this.remindersEnabled,onCheckedChange:function(){return e.handleToggleReminders()}})),this.remindersEnabled&&h(Fragment,null,h("div",{class:"form-row"},"NOTE: Reminders will only be sent for up to 14 days."),h("div",{class:"form-row"},h("div",{class:"form-label"},"Initial Reminder (days):"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.initialReminder/MS_PER_DAY)),onBlur:function(i){e.initialReminder=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Follow-up Reminders:"),h("verdocs-text-input",{placeholder:"In hours...",disabled:w||this.updatingReminders,value:String(Math.floor(this.followupReminders/MS_PER_DAY)),onBlur:function(i){e.followupReminders=Number(i.target.value)*MS_PER_DAY;e.handleSetReminders(e.initialReminder,e.followupReminders)}})),h("div",{class:"form-row"},h("div",{class:"form-label"},"Next Reminder:"),h("div",{style:{color:"#dddddd"}},dateFnsExports.format(new Date((p=this.envelope)===null||p===void 0?void 0:p.next_reminder),"P p"))))),u&&h("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Envelope",onClick:function(){return e.showCancelDialog=!w},disabled:w})),this.activeTab===3&&h("div",{class:"content"},h("div",{class:"title"},"History"),f.map((function(e){return h("div",{class:"history-entry"},h("div",{class:"activity-icon",innerHTML:ActivityIcons[e.icon]||e.icon}),h("div",{class:"activity-details"},h("div",{class:"activity-text"},e.message),h("div",{class:"activity-date"},dateFnsExports.format(e.date,FORMAT_TIMESTAMP))))}))),this.showRecipientDialog&&h("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:function(){return e.showRecipientDialog=""}}),this.showCancelDialog&&h("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:function(){e.showCancelDialog=false;e.handleCancelEnvelope()}}),this.showReinviteDialog&&h("verdocs-ok-dialog",{heading:"Re-invite Recipient?",message:'This will reset the recipient\'s KBA status and send a new signing invitation. If you just want to send a reminder, please click "Send Reminder" instead.',onNext:function(){resetRecipient(e.endpoint,e.envelopeId,e.showReinviteDialog).then((function(){VerdocsToast("Recipient Reset",{style:"success"});e.showReinviteDialog=""})).catch((function(i){console.log("[SIDEBAR] Error resetting recipient",i);VerdocsToast("Error resetting recipient: "+i.message,{style:"error"});e.showReinviteDialog=""}))}}),this.showUpdateDialog&&h("verdocs-envelope-update-recipient",{envelopeId:this.envelopeId,roleName:this.showUpdateDialog,onNext:function(i){console.log("next",i.detail);if(i.detail.action==="save"){e.handleUpdateRecipient(i.detail.originalRecipient,i.detail.updatedRecipient)}else{e.showUpdateDialog=""}}}))};return e}();VerdocsEnvelopeSidebar.style=verdocsEnvelopeSidebarCss;export{VerdocsEnvelopeSidebar as verdocs_envelope_sidebar};
|
|
2
2
|
//# sourceMappingURL=verdocs-envelope-sidebar.entry.js.map
|