@hubsync/esign-web-sdk 6.5.1 → 6.5.3
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-CQ5bTnED.js +6 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -0
- package/dist/cjs/{verdocs-adopt-signature-dialog_9.cjs.entry.js → verdocs-adopt-signature-dialog_8.cjs.entry.js} +97 -52
- package/dist/cjs/verdocs-download-dialog.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 → verdocs-download-dialog_4.cjs.entry.js} +30 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -0
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +1 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +62 -33
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +98 -22
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
- package/dist/components/{p-CFZQhAqt.js → p-4olD14NA.js} +113 -43
- package/dist/components/p-4olD14NA.js.map +1 -0
- package/dist/components/verdocs-sign.js +2 -1
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/index-BIRwgFLv.js +6 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -0
- package/dist/esm/{verdocs-adopt-signature-dialog_9.entry.js → verdocs-adopt-signature-dialog_8.entry.js} +98 -52
- package/dist/esm/verdocs-download-dialog.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 → verdocs-download-dialog_4.entry.js} +30 -2
- package/dist/esm/verdocs-sign.entry.js +1 -0
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/index-BIRwgFLv.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +2 -0
- package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-download-dialog.verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js +2 -0
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js.map +1 -0
- 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-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +6 -0
- package/dist/verdocs-web-sdk/p-1b63fe0b.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-1b63fe0b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9d130fa2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-9d130fa2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/p-CRNRCDCr.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-DHIUuwfR.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-DixucIng.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-00a82c91.entry.js → p-cc1ba953.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-00a82c91.entry.js.map → p-cc1ba953.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-660037f2.system.entry.js → p-da7d065e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-660037f2.system.entry.js.map → p-da7d065e.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-f24d6c61.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-f24d6c61.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ffc07aab.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ffc07aab.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-download-dialog.verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.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/package.json +1 -1
- package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-download-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +0 -1
- package/dist/cjs/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.cjs.js.map +0 -1
- package/dist/components/p-CFZQhAqt.js.map +0 -1
- package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-download-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +0 -1
- package/dist/esm/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-download-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_9.entry.js +0 -2
- package/dist/esm-es5/verdocs-adopt-signature-dialog_9.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +0 -2
- package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1083d8e2.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1083d8e2.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-2622d80c.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-2622d80c.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-51a509ef.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-51a509ef.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-BACQ3t2g.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-C3cf-C2H.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-DHfIae9S.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c284aac4.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-c284aac4.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-download-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +0 -1
- package/dist/verdocs-web-sdk/verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.esm.js.map +0 -1
|
@@ -523,34 +523,6 @@ const VerdocsDisclosureDialog = class {
|
|
|
523
523
|
};
|
|
524
524
|
VerdocsDisclosureDialog.style = verdocsDisclosureDialogCss;
|
|
525
525
|
|
|
526
|
-
const verdocsDownloadDialogCss = "@-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-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:20px;padding:10px 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:20px;height:20px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .arrow{color:#9ca3af}";
|
|
527
|
-
|
|
528
|
-
const DocumentIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
529
|
-
const CertificateIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
530
|
-
const ZipIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
531
|
-
const ChevronRight = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
532
|
-
const VerdocsDownloadDialog = class {
|
|
533
|
-
constructor(hostRef) {
|
|
534
|
-
registerInstance(this, hostRef);
|
|
535
|
-
this.next = createEvent(this, "next");
|
|
536
|
-
this.exit = createEvent(this, "exit");
|
|
537
|
-
/**
|
|
538
|
-
* If true, the envelope has a certificate available for download.
|
|
539
|
-
*/
|
|
540
|
-
this.hasCertificate = false;
|
|
541
|
-
}
|
|
542
|
-
handleOptionClick(action) {
|
|
543
|
-
if ((action === 'certificate' || action === 'zip') && !this.hasCertificate) {
|
|
544
|
-
return;
|
|
545
|
-
}
|
|
546
|
-
this.next.emit({ action });
|
|
547
|
-
}
|
|
548
|
-
render() {
|
|
549
|
-
return (h("verdocs-dialog", { key: '2a0b617baf1851d425b5e5c107e66e8632a85438', onExit: () => this.exit.emit() }, h("h3", { key: 'bf0c005a0f143951dd6dc6104f3c4eca0c861a16', slot: "heading", style: { margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px' } }, "Download"), h("div", { key: '72e5c6c55caad04c695ca5f9fbc3326019a6d2ba', slot: "content", class: "content" }, h("div", { key: '81b93ff3e8b76c86c671c1e82202e5b77fcef8d6', class: "download-option", onClick: () => this.handleOptionClick('document') }, h("div", { key: '10d5ec044dc55e60147686fcb6790d4c0866c00e', class: "icon-container", innerHTML: DocumentIcon }), h("div", { key: '8039d8a55d8ced51497bc6c6781cddb574ce4fe4', class: "text-container" }, h("div", { key: '7c4754b826bebe7f49ada06791fb3a09aaaa7b4d', class: "label" }, "Document"), h("div", { key: 'e9fffffe2c58c16f87465376ccf42e7b6d21c0bd', class: "description" }, "Download the signed document (PDF)")), h("div", { key: '4e4402ae52f9d6db4c474981ef982d3c77f17513', class: "arrow", innerHTML: ChevronRight })), h("div", { key: '09a5671de45d1b3a64ac197893fc4b95e3c5ed30', class: { 'download-option': true, 'disabled': !this.hasCertificate }, onClick: () => this.handleOptionClick('certificate'), title: !this.hasCertificate ? 'Certificate not yet available' : '' }, h("div", { key: '08ad66037076f4f3cd3b8fad5b2ac68c92c8264c', class: "icon-container", innerHTML: CertificateIcon }), h("div", { key: 'e022ad437bb7ca6bee1687600343d5ba84e46b84', class: "text-container" }, h("div", { key: '16f38b5bdaaa3545ce84c2f301539a642fdcc98c', class: "label" }, "Certificate"), h("div", { key: 'c56a651a65a60316718fbb0fa36fd5b4da90274a', class: "description" }, "Download the value and history certificate")), h("div", { key: '6afb8530f0b469f1d2d2dbc5d83a9b2bb2ca3a46', class: "arrow", innerHTML: ChevronRight })), h("div", { key: '7be2e96dedd64edf365176ca085fec6b542dca0a', class: { 'download-option': true, 'disabled': !this.hasCertificate }, onClick: () => this.handleOptionClick('zip'), title: !this.hasCertificate ? 'Certificate not yet available' : '' }, h("div", { key: 'e0eeb41a2076a53973d5d42d844442cd19a43ddf', class: "icon-container", innerHTML: ZipIcon }), h("div", { key: '69aaec2a202dd3c9a0da0e484cacb94b3e76d40b', class: "text-container" }, h("div", { key: '78000e41866bb5449f2cc3906261c5286457be5e', class: "label" }, "All Files"), h("div", { key: '38d7ddf82e2f9fdc65563be52dfd2cff77ed3f4a', class: "description" }, "Download everything as a ZIP file")), h("div", { key: '599ea58ff31d975807365b1fc548b35d2e48e7a5', class: "arrow", innerHTML: ChevronRight }))), h("div", { key: '4852d9579317825b4af646e7236dc7d54a732c8a', slot: "footer", style: { display: 'none' } })));
|
|
550
|
-
}
|
|
551
|
-
};
|
|
552
|
-
VerdocsDownloadDialog.style = verdocsDownloadDialogCss;
|
|
553
|
-
|
|
554
526
|
/** Checks if value is string */
|
|
555
527
|
function isString(str) {
|
|
556
528
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -4528,8 +4500,12 @@ const VerdocsSigningProgress = class {
|
|
|
4528
4500
|
};
|
|
4529
4501
|
VerdocsSigningProgress.style = verdocsSigningProgressCss;
|
|
4530
4502
|
|
|
4531
|
-
const verdocsViewCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif)}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;
|
|
4503
|
+
const verdocsViewCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--verdocs-primary-font, \"Inter\", \"Barlow\", sans-serif)}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document.zoom-normal{max-width:1200px}verdocs-view .document.zoom-zoom1{max-width:1400px}verdocs-view .document.zoom-zoom2{max-width:100%}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px}.controls-toolbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:54px;padding:0 12px 0 24px;background-color:#ffffff;border-bottom:1px solid #e0e0e0;-webkit-box-shadow:none;box-shadow:none;font-family:\"Inter\", sans-serif;color:#424242;z-index:1000}.controls-toolbar .left-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .left-controls .title{font-weight:500;font-size:16px;color:#242424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls-toolbar .right-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.controls-toolbar .icon-button{width:32px;height:32px;display:-ms-flexbox;display:flex;color:#424242;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}.controls-toolbar .icon-button:hover{background-color:#f5f5f5}.controls-toolbar .icon-button.disabled{opacity:0.3;pointer-events:none}.controls-toolbar .icon-button svg{display:block;width:20px;height:20px}@media (max-width: 768px){verdocs-view .document{max-width:100%}}";
|
|
4532
4504
|
|
|
4505
|
+
const ToolbarMinusIcon = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11ZM14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z" fill="#424242" /></svg>`;
|
|
4506
|
+
const ToolbarPlusIcon = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5ZM8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z" fill="#424242"/></svg>`;
|
|
4507
|
+
const ToolbarDownloadIcon = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16.9988C15.7761 16.9988 16 17.2226 16 17.4988C16 17.7442 15.8231 17.9484 15.5899 17.9907L15.5 17.9988H4.5C4.22386 17.9988 4 17.7749 4 17.4988C4 17.2533 4.17688 17.0492 4.41012 17.0068L4.5 16.9988H15.5ZM10.0001 2.00098C10.2456 2.00098 10.4497 2.17798 10.492 2.41124L10.5 2.50112L10.496 14.295L14.1414 10.6466C14.3148 10.4729 14.5842 10.4534 14.7792 10.5882L14.8485 10.646C15.0222 10.8194 15.0418 11.0888 14.907 11.2838L14.8492 11.3531L10.3574 15.8531C10.285 15.9257 10.1957 15.9714 10.1021 15.9901L9.99608 15.9999C9.83511 15.9999 9.69192 15.9237 9.60051 15.8056L5.14386 11.3537C4.94846 11.1586 4.94823 10.842 5.14336 10.6466C5.3168 10.4729 5.58621 10.4534 5.78117 10.5883L5.85046 10.6461L9.496 14.287L9.5 2.50083C9.50008 2.22469 9.724 2.00098 10.0001 2.00098Z" fill="#424242"/></svg>`;
|
|
4508
|
+
const ToolbarPrintIcon = `<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.5C5 3.67157 5.67157 3 6.5 3H13.5C14.3284 3 15 3.67157 15 4.5V5H15.5C16.8807 5 18 6.11929 18 7.5V12.5C18 13.3284 17.3284 14 16.5 14H15V15.5C15 16.3284 14.3284 17 13.5 17H6.5C5.67157 17 5 16.3284 5 15.5V14H3.5C2.67157 14 2 13.3284 2 12.5V7.5C2 6.11929 3.11929 5 4.5 5H5V4.5ZM6 5H14V4.5C14 4.22386 13.7761 4 13.5 4H6.5C6.22386 4 6 4.22386 6 4.5V5ZM5 13V11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V13H16.5C16.7761 13 17 12.7761 17 12.5V7.5C17 6.67157 16.3284 6 15.5 6H4.5C3.67157 6 3 6.67157 3 7.5V12.5C3 12.7761 3.22386 13 3.5 13H5ZM6.5 11C6.22386 11 6 11.2239 6 11.5V15.5C6 15.7761 6.22386 16 6.5 16H13.5C13.7761 16 14 15.7761 14 15.5V11.5C14 11.2239 13.7761 11 13.5 11H6.5Z" fill="#424242"/></svg>`;
|
|
4533
4509
|
const VerdocsView = class {
|
|
4534
4510
|
constructor(hostRef) {
|
|
4535
4511
|
registerInstance(this, hostRef);
|
|
@@ -4562,6 +4538,8 @@ const VerdocsView = class {
|
|
|
4562
4538
|
this.showLoadError = false;
|
|
4563
4539
|
this.loading = true;
|
|
4564
4540
|
this.envelope = null;
|
|
4541
|
+
this.zoomLevel = 'normal';
|
|
4542
|
+
this.showDownloadDialog = false;
|
|
4565
4543
|
}
|
|
4566
4544
|
async componentWillLoad() {
|
|
4567
4545
|
var _a, _b, _c;
|
|
@@ -4595,8 +4573,44 @@ const VerdocsView = class {
|
|
|
4595
4573
|
headerTarget.append(headerEl);
|
|
4596
4574
|
}
|
|
4597
4575
|
}
|
|
4576
|
+
componentDidLoad() {
|
|
4577
|
+
this.updateZoomFromWindow();
|
|
4578
|
+
window.addEventListener('resize', () => this.updateZoomFromWindow());
|
|
4579
|
+
}
|
|
4598
4580
|
disconnectedCallback() {
|
|
4599
4581
|
this.unlistenToEnvelope();
|
|
4582
|
+
window.removeEventListener('resize', () => this.updateZoomFromWindow());
|
|
4583
|
+
}
|
|
4584
|
+
updateZoomFromWindow() {
|
|
4585
|
+
const width = window.innerWidth;
|
|
4586
|
+
if (width < 768) {
|
|
4587
|
+
if (this.zoomLevel !== 'zoom2')
|
|
4588
|
+
this.zoomLevel = 'zoom2';
|
|
4589
|
+
}
|
|
4590
|
+
else if (width < 1024) {
|
|
4591
|
+
if (this.zoomLevel !== 'zoom1')
|
|
4592
|
+
this.zoomLevel = 'zoom1';
|
|
4593
|
+
}
|
|
4594
|
+
else {
|
|
4595
|
+
if (this.zoomLevel !== 'normal')
|
|
4596
|
+
this.zoomLevel = 'normal';
|
|
4597
|
+
}
|
|
4598
|
+
}
|
|
4599
|
+
handleZoomIn() {
|
|
4600
|
+
if (this.zoomLevel === 'normal') {
|
|
4601
|
+
this.zoomLevel = 'zoom1';
|
|
4602
|
+
}
|
|
4603
|
+
else if (this.zoomLevel === 'zoom1') {
|
|
4604
|
+
this.zoomLevel = 'zoom2';
|
|
4605
|
+
}
|
|
4606
|
+
}
|
|
4607
|
+
handleZoomOut() {
|
|
4608
|
+
if (this.zoomLevel === 'zoom1') {
|
|
4609
|
+
this.zoomLevel = 'normal';
|
|
4610
|
+
}
|
|
4611
|
+
else if (this.zoomLevel === 'zoom2') {
|
|
4612
|
+
this.zoomLevel = 'zoom1';
|
|
4613
|
+
}
|
|
4600
4614
|
}
|
|
4601
4615
|
async listenToEnvelope() {
|
|
4602
4616
|
console.log('[VIEW] Loading envelope', this.envelopeId);
|
|
@@ -4643,6 +4657,9 @@ const VerdocsView = class {
|
|
|
4643
4657
|
(_a = this.envelopeUpdated) === null || _a === void 0 ? void 0 : _a.emit({ endpoint: this.endpoint, envelope: this.envelope, event: 'canceled' });
|
|
4644
4658
|
}
|
|
4645
4659
|
break;
|
|
4660
|
+
case 'download':
|
|
4661
|
+
this.showDownloadDialog = true;
|
|
4662
|
+
break;
|
|
4646
4663
|
case 'print':
|
|
4647
4664
|
window.print();
|
|
4648
4665
|
(_b = this.envelopeUpdated) === null || _b === void 0 ? void 0 : _b.emit({ endpoint: this.endpoint, envelope: this.envelope, event: 'printed' });
|
|
@@ -4691,7 +4708,7 @@ const VerdocsView = class {
|
|
|
4691
4708
|
}
|
|
4692
4709
|
}
|
|
4693
4710
|
render() {
|
|
4694
|
-
var _a;
|
|
4711
|
+
var _a, _b, _c;
|
|
4695
4712
|
if (this.loading) {
|
|
4696
4713
|
return (h(Host, null, h("verdocs-loader", null)));
|
|
4697
4714
|
}
|
|
@@ -4703,29 +4720,13 @@ const VerdocsView = class {
|
|
|
4703
4720
|
if (!this.envelope) {
|
|
4704
4721
|
return (h(Host, null, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })));
|
|
4705
4722
|
}
|
|
4706
|
-
const menuOptions = [{ id: 'print', label: 'Print' }];
|
|
4707
|
-
if (userCanCancelEnvelope(this.endpoint.profile, this.envelope)) {
|
|
4708
|
-
menuOptions.push({ id: 'cancel', label: 'Cancel' });
|
|
4709
|
-
}
|
|
4710
4723
|
// TODO: Review whether we want a different trigger for this.
|
|
4711
4724
|
const showFooter = userCanCancelEnvelope(this.endpoint.profile, this.envelope);
|
|
4712
4725
|
// Add download options to the menu
|
|
4713
|
-
const hasAttachments = this.envelope.documents.
|
|
4714
|
-
const normalDocCount = this.envelope.documents.filter(doc => doc.type === 'attachment').length;
|
|
4726
|
+
const hasAttachments = this.envelope.documents.some(doc => doc.type === 'attachment');
|
|
4715
4727
|
const hasCertificate = this.envelope.documents.find(doc => doc.type === 'certificate') !== undefined;
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
if (hasAttachments) {
|
|
4719
|
-
menuOptions.push({ id: 'download-attachments', label: normalDocCount > 1 ? 'Download Documents' : 'Download Document' });
|
|
4720
|
-
}
|
|
4721
|
-
if (hasCertificate) {
|
|
4722
|
-
menuOptions.push({ id: 'download-certificate', label: 'Download Certificate' });
|
|
4723
|
-
}
|
|
4724
|
-
if (hasAttachments && hasCertificate) {
|
|
4725
|
-
menuOptions.push({ id: 'download-all', label: 'Download All Files' });
|
|
4726
|
-
}
|
|
4727
|
-
}
|
|
4728
|
-
return (h(Host, null, h("div", { id: "verdocs-view-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: menuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (((_a = this.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
|
4728
|
+
const canDownload = hasAttachments || hasCertificate;
|
|
4729
|
+
return (h(Host, null, h("div", { id: "verdocs-view-header" }, h("div", { class: "controls-toolbar" }, h("div", { class: "left-controls" }, h("div", { class: "title" }, this.envelope.name)), h("div", { class: "right-controls" }, h("div", { class: { 'icon-button': true, 'minus': true, 'disabled': this.zoomLevel === 'normal' }, innerHTML: ToolbarMinusIcon, onClick: () => this.handleZoomOut() }), h("div", { class: { 'icon-button': true, 'plus': true, 'disabled': this.zoomLevel === 'zoom2' }, innerHTML: ToolbarPlusIcon, onClick: () => this.handleZoomIn() }), h("div", { class: { 'icon-button': true, 'disabled': !canDownload }, innerHTML: ToolbarDownloadIcon, onClick: () => canDownload && this.handleOptionSelected({ detail: { id: 'download' } }) }), h("div", { class: "icon-button print", innerHTML: ToolbarPrintIcon, onClick: () => this.handleOptionSelected({ detail: { id: 'print' } }) })))), h("div", { class: `document zoom-${this.zoomLevel}`, style: { paddingTop: this.headerTargetId ? '70px' : '15px' } }, (((_a = this.envelope) === null || _a === void 0 ? void 0 : _a.documents) || [])
|
|
4729
4730
|
.filter(document => document.type !== 'certificate')
|
|
4730
4731
|
.map(envelopeDocument => {
|
|
4731
4732
|
const pageNumbers = integerSequence(1, envelopeDocument.pages);
|
|
@@ -4739,11 +4740,56 @@ const VerdocsView = class {
|
|
|
4739
4740
|
})));
|
|
4740
4741
|
})), this.showCancelDone && (h("verdocs-ok-dialog", { heading: "Cancelled", message: `This envelope has been cancelled successfully.`, onNext: () => {
|
|
4741
4742
|
this.showCancelDone = false;
|
|
4742
|
-
} })), this.canceling && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))),
|
|
4743
|
+
} })), this.canceling && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null))), this.showDownloadDialog && (h("verdocs-download-dialog", { hasCertificate: (_c = (_b = this.envelope) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c.some(d => d.type === 'certificate'), onExit: () => (this.showDownloadDialog = false), onNext: async (e) => {
|
|
4744
|
+
this.showDownloadDialog = false;
|
|
4745
|
+
const { action } = e.detail;
|
|
4746
|
+
console.log('[VIEW] Download action selected:', action);
|
|
4747
|
+
try {
|
|
4748
|
+
if (action === 'document') {
|
|
4749
|
+
const attachments = this.envelope.documents.filter(d => d.type === 'attachment');
|
|
4750
|
+
if (attachments.length === 1) {
|
|
4751
|
+
const url = await getEnvelopeDocumentDownloadLink(this.endpoint, attachments[0].id);
|
|
4752
|
+
window.open(url, '_blank');
|
|
4753
|
+
}
|
|
4754
|
+
else {
|
|
4755
|
+
const firstDoc = attachments[0];
|
|
4756
|
+
if (firstDoc) {
|
|
4757
|
+
const url = await getEnvelopeDocumentDownloadLink(this.endpoint, firstDoc.id);
|
|
4758
|
+
window.open(url, '_blank');
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
}
|
|
4762
|
+
else if (action === 'certificate') {
|
|
4763
|
+
const cert = this.envelope.documents.find(d => d.type === 'certificate');
|
|
4764
|
+
if (cert) {
|
|
4765
|
+
const url = await getEnvelopeDocumentDownloadLink(this.endpoint, cert.id);
|
|
4766
|
+
window.open(url, '_blank');
|
|
4767
|
+
}
|
|
4768
|
+
else {
|
|
4769
|
+
VerdocsToast('Certificate not yet available.', { style: 'info' });
|
|
4770
|
+
}
|
|
4771
|
+
}
|
|
4772
|
+
else if (action === 'zip') {
|
|
4773
|
+
const blob = await getEnvelopesZip(this.endpoint, [this.envelopeId]);
|
|
4774
|
+
const url = window.URL.createObjectURL(blob.data);
|
|
4775
|
+
const a = document.createElement('a');
|
|
4776
|
+
a.href = url;
|
|
4777
|
+
a.download = `${this.envelope.name}.zip`;
|
|
4778
|
+
document.body.appendChild(a);
|
|
4779
|
+
a.click();
|
|
4780
|
+
a.remove();
|
|
4781
|
+
window.URL.revokeObjectURL(url);
|
|
4782
|
+
}
|
|
4783
|
+
}
|
|
4784
|
+
catch (err) {
|
|
4785
|
+
console.error('Download error', err);
|
|
4786
|
+
VerdocsToast('Unable to complete download request.', { style: 'error' });
|
|
4787
|
+
}
|
|
4788
|
+
} })), !showFooter && (h("verdocs-sign-footer", { endpoint: this.endpoint, envelopeId: this.envelopeId, isDone: true, onAskQuestion: () => { }, onDecline: () => { }, onFinishLater: () => { } }))));
|
|
4743
4789
|
}
|
|
4744
4790
|
get component() { return getElement(this); }
|
|
4745
4791
|
};
|
|
4746
4792
|
VerdocsView.style = verdocsViewCss;
|
|
4747
4793
|
|
|
4748
|
-
export { VerdocsAdoptSignatureDialog as verdocs_adopt_signature_dialog, VerdocsDelegateDialog as verdocs_delegate_dialog, VerdocsDisclosureDialog as verdocs_disclosure_dialog,
|
|
4749
|
-
//# sourceMappingURL=verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-
|
|
4794
|
+
export { VerdocsAdoptSignatureDialog as verdocs_adopt_signature_dialog, VerdocsDelegateDialog as verdocs_delegate_dialog, VerdocsDisclosureDialog as verdocs_disclosure_dialog, VerdocsKbaDialog as verdocs_kba_dialog, VerdocsOtpDialog as verdocs_otp_dialog, VerdocsPasscodeDialog as verdocs_passcode_dialog, VerdocsSigningProgress as verdocs_signing_progress, VerdocsView as verdocs_view };
|
|
4795
|
+
//# sourceMappingURL=verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verdocs-download-dialog.verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js","sources":["src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.scss?tag=verdocs-download-dialog","src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.tsx","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-download-dialog {\n box-sizing: border-box;\n font-family: $primary-font;\n\n .content {\n display: flex;\n flex-direction: column;\n gap: 20px;\n padding: 10px 24px 20px 24px;\n }\n\n .download-option {\n display: flex;\n align-items: center;\n padding: 15px;\n border: 1px solid #e5e7eb;\n border-radius: 6px;\n cursor: pointer;\n transition: all 0.2s ease;\n gap: 15px;\n background: white;\n\n &.disabled {\n opacity: 0.5;\n cursor: not-allowed;\n\n &:hover {\n background-color: white;\n border-color: #e5e7eb;\n }\n }\n\n &:hover {\n border-color: $verdocs-primary-color;\n background-color: #f9fafb;\n }\n }\n\n .icon-container {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n background-color: #f3f4f6;\n border-radius: 50%;\n color: #4b5563;\n flex-shrink: 0;\n\n svg {\n width: 20px;\n height: 20px;\n }\n }\n\n .text-container {\n flex: 1;\n\n .label {\n font-weight: 500;\n color: #111827;\n margin-bottom: 2px;\n }\n\n .description {\n font-size: 13px;\n color: #6b7280;\n }\n }\n\n .arrow {\n color: #9ca3af;\n }\n}\n","import {Component, h, Event, EventEmitter, Prop} from '@stencil/core';\n\nconst DocumentIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M13 2V9H20\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\nconst CertificateIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M8.21 13.89L7 23L12 20L17 23L15.79 13.88\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\nconst ZipIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10 16V22H14V16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M6 16H18\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M20 22H4\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M12 10L12 16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M8 12L12 16L16 12\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M4 16V4H20V16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\nconst ChevronRight = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M9 18L15 12L9 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\n\n@Component({\n tag: 'verdocs-download-dialog',\n styleUrl: 'verdocs-download-dialog.scss',\n shadow: false,\n})\nexport class VerdocsDownloadDialog {\n /**\n * Event fired when an option is selected.\n */\n @Event({composed: true}) next: EventEmitter<{action: 'document' | 'certificate' | 'zip'}>;\n\n /**\n * Event fired when Cancel is pressed or background is clicked.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * If true, the envelope has a certificate available for download.\n */\n @Prop() hasCertificate = false;\n\n handleOptionClick(action: 'document' | 'certificate' | 'zip') {\n if ((action === 'certificate' || action === 'zip') && !this.hasCertificate) {\n return;\n }\n this.next.emit({action});\n }\n\n render() {\n return (\n <verdocs-dialog onExit={() => this.exit.emit()}>\n <h3 slot=\"heading\" style={{margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px'}}>\n Download\n </h3>\n\n <div slot=\"content\" class=\"content\">\n <div class=\"download-option\" onClick={() => this.handleOptionClick('document')}>\n <div class=\"icon-container\" innerHTML={DocumentIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Document</div>\n <div class=\"description\">Download the signed document (PDF)</div>\n </div>\n <div class=\"arrow\" innerHTML={ChevronRight}></div>\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !this.hasCertificate}}\n onClick={() => this.handleOptionClick('certificate')}\n title={!this.hasCertificate ? 'Certificate not yet available' : ''}\n >\n <div class=\"icon-container\" innerHTML={CertificateIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Certificate</div>\n <div class=\"description\">Download the value and history certificate</div>\n </div>\n <div class=\"arrow\" innerHTML={ChevronRight}></div>\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !this.hasCertificate}}\n onClick={() => this.handleOptionClick('zip')}\n title={!this.hasCertificate ? 'Certificate not yet available' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">All Files</div>\n <div class=\"description\">Download everything as a ZIP file</div>\n </div>\n <div class=\"arrow\" innerHTML={ChevronRight}></div>\n </div>\n </div>\n\n <div slot=\"footer\" style={{display: 'none'}} />\n </verdocs-dialog>\n );\n }\n}\n","@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 top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n position: fixed;\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_url ? (\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,wBAAwB,GAAG,stDAAstD;;ACEvvD,MAAM,YAAY,GAAG,CAAA,+gBAAA,CAAihB;AACtiB,MAAM,eAAe,GAAG,CAAA,qaAAA,CAAua;AAC/b,MAAM,OAAO,GAAG,CAAA,muBAAA,CAAquB;AACrvB,MAAM,YAAY,GAAG,CAAA,+LAAA,CAAiM;MAOzM,qBAAqB,GAAA,MAAA;AALlC,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAgBE;;AAEG;AACK,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAyD/B;AAvDC,IAAA,iBAAiB,CAAC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IAAI,CAAC,cAAc,KAClB,gFACE,MAAM,EAAE,CAAC,IAAG;;AACV,gBAAA,CAAA,EAAA,GAAA,IAAI,CAAC,WAAW,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,IAAI,CAAC,EAAC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAC,CAAC;AACrD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;AAC7B,aAAC,EACD,MAAM,EAAE,OAAO,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,GAC3C,CACH,CACI;;;;;;;"}
|
package/dist/esm/{verdocs-envelope-document-page_3.entry.js → verdocs-download-dialog_4.entry.js}
RENAMED
|
@@ -6,6 +6,34 @@ import { S as Store } from './Datastore-bS8INhRF.js';
|
|
|
6
6
|
import './index-dzBXqXlK.js';
|
|
7
7
|
import './Types-dqxNbm_b.js';
|
|
8
8
|
|
|
9
|
+
const verdocsDownloadDialogCss = "@-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-download-dialog{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-download-dialog .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:20px;padding:10px 24px 20px 24px}verdocs-download-dialog .download-option{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:15px;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;-webkit-transition:all 0.2s ease;transition:all 0.2s ease;gap:15px;background:white}verdocs-download-dialog .download-option.disabled{opacity:0.5;cursor:not-allowed}verdocs-download-dialog .download-option.disabled:hover{background-color:white;border-color:#e5e7eb}verdocs-download-dialog .download-option:hover{border-color:#654dcb;background-color:#f9fafb}verdocs-download-dialog .icon-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px;background-color:#f3f4f6;border-radius:50%;color:#4b5563;-ms-flex-negative:0;flex-shrink:0}verdocs-download-dialog .icon-container svg{width:20px;height:20px}verdocs-download-dialog .text-container{-ms-flex:1;flex:1}verdocs-download-dialog .text-container .label{font-weight:500;color:#111827;margin-bottom:2px}verdocs-download-dialog .text-container .description{font-size:13px;color:#6b7280}verdocs-download-dialog .arrow{color:#9ca3af}";
|
|
10
|
+
|
|
11
|
+
const DocumentIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V9L13 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M13 2V9H20" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
12
|
+
const CertificateIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 15C15.866 15 19 11.866 19 8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8C5 11.866 8.13401 15 12 15Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8.21 13.89L7 23L12 20L17 23L15.79 13.88" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
13
|
+
const ZipIcon = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 16V22H14V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M6 16H18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M20 22H4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 10L12 16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 12L12 16L16 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 16V4H20V16" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
14
|
+
const ChevronRight = `<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18L15 12L9 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>`;
|
|
15
|
+
const VerdocsDownloadDialog = class {
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
registerInstance(this, hostRef);
|
|
18
|
+
this.next = createEvent(this, "next");
|
|
19
|
+
this.exit = createEvent(this, "exit");
|
|
20
|
+
/**
|
|
21
|
+
* If true, the envelope has a certificate available for download.
|
|
22
|
+
*/
|
|
23
|
+
this.hasCertificate = false;
|
|
24
|
+
}
|
|
25
|
+
handleOptionClick(action) {
|
|
26
|
+
if ((action === 'certificate' || action === 'zip') && !this.hasCertificate) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
this.next.emit({ action });
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h("verdocs-dialog", { key: '2a0b617baf1851d425b5e5c107e66e8632a85438', onExit: () => this.exit.emit() }, h("h3", { key: 'bf0c005a0f143951dd6dc6104f3c4eca0c861a16', slot: "heading", style: { margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px' } }, "Download"), h("div", { key: '72e5c6c55caad04c695ca5f9fbc3326019a6d2ba', slot: "content", class: "content" }, h("div", { key: '81b93ff3e8b76c86c671c1e82202e5b77fcef8d6', class: "download-option", onClick: () => this.handleOptionClick('document') }, h("div", { key: '10d5ec044dc55e60147686fcb6790d4c0866c00e', class: "icon-container", innerHTML: DocumentIcon }), h("div", { key: '8039d8a55d8ced51497bc6c6781cddb574ce4fe4', class: "text-container" }, h("div", { key: '7c4754b826bebe7f49ada06791fb3a09aaaa7b4d', class: "label" }, "Document"), h("div", { key: 'e9fffffe2c58c16f87465376ccf42e7b6d21c0bd', class: "description" }, "Download the signed document (PDF)")), h("div", { key: '4e4402ae52f9d6db4c474981ef982d3c77f17513', class: "arrow", innerHTML: ChevronRight })), h("div", { key: '09a5671de45d1b3a64ac197893fc4b95e3c5ed30', class: { 'download-option': true, 'disabled': !this.hasCertificate }, onClick: () => this.handleOptionClick('certificate'), title: !this.hasCertificate ? 'Certificate not yet available' : '' }, h("div", { key: '08ad66037076f4f3cd3b8fad5b2ac68c92c8264c', class: "icon-container", innerHTML: CertificateIcon }), h("div", { key: 'e022ad437bb7ca6bee1687600343d5ba84e46b84', class: "text-container" }, h("div", { key: '16f38b5bdaaa3545ce84c2f301539a642fdcc98c', class: "label" }, "Certificate"), h("div", { key: 'c56a651a65a60316718fbb0fa36fd5b4da90274a', class: "description" }, "Download the value and history certificate")), h("div", { key: '6afb8530f0b469f1d2d2dbc5d83a9b2bb2ca3a46', class: "arrow", innerHTML: ChevronRight })), h("div", { key: '7be2e96dedd64edf365176ca085fec6b542dca0a', class: { 'download-option': true, 'disabled': !this.hasCertificate }, onClick: () => this.handleOptionClick('zip'), title: !this.hasCertificate ? 'Certificate not yet available' : '' }, h("div", { key: 'e0eeb41a2076a53973d5d42d844442cd19a43ddf', class: "icon-container", innerHTML: ZipIcon }), h("div", { key: '69aaec2a202dd3c9a0da0e484cacb94b3e76d40b', class: "text-container" }, h("div", { key: '78000e41866bb5449f2cc3906261c5286457be5e', class: "label" }, "All Files"), h("div", { key: '38d7ddf82e2f9fdc65563be52dfd2cff77ed3f4a', class: "description" }, "Download everything as a ZIP file")), h("div", { key: '599ea58ff31d975807365b1fc548b35d2e48e7a5', class: "arrow", innerHTML: ChevronRight }))), h("div", { key: '4852d9579317825b4af646e7236dc7d54a732c8a', slot: "footer", style: { display: 'none' } })));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
VerdocsDownloadDialog.style = verdocsDownloadDialogCss;
|
|
36
|
+
|
|
9
37
|
const 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%}";
|
|
10
38
|
|
|
11
39
|
const VerdocsEnvelopeDocumentPage = class {
|
|
@@ -309,5 +337,5 @@ const VerdocsSignFooter = class {
|
|
|
309
337
|
};
|
|
310
338
|
VerdocsSignFooter.style = verdocsSignFooterCss;
|
|
311
339
|
|
|
312
|
-
export { VerdocsEnvelopeDocumentPage as verdocs_envelope_document_page, VerdocsQuestionDialog as verdocs_question_dialog, VerdocsSignFooter as verdocs_sign_footer };
|
|
313
|
-
//# sourceMappingURL=verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map
|
|
340
|
+
export { VerdocsDownloadDialog as verdocs_download_dialog, VerdocsEnvelopeDocumentPage as verdocs_envelope_document_page, VerdocsQuestionDialog as verdocs_question_dialog, VerdocsSignFooter as verdocs_sign_footer };
|
|
341
|
+
//# sourceMappingURL=verdocs-download-dialog.verdocs-envelope-document-page.verdocs-question-dialog.verdocs-sign-footer.entry.js.map
|
|
@@ -871,6 +871,7 @@ const VerdocsSign = class {
|
|
|
871
871
|
if (this.recipient.delegator) {
|
|
872
872
|
inProgressMenuOptions.unshift({ id: 'delegate', label: 'Delegate' });
|
|
873
873
|
}
|
|
874
|
+
console.log('this.getRecipientFields()', this.getRecipientFields());
|
|
874
875
|
const invalidFields = this.getRecipientFields().filter(field => !isFieldValid(field, this.getRecipientFields()));
|
|
875
876
|
invalidFields.length > 0
|
|
876
877
|
? console.log('[SIGN] Invalid fields remaining', invalidFields.map(field => field.name))
|