@verdocs/web-sdk 6.9.10 → 6.9.13
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/verdocs-adopt-signature-dialog_7.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +4 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +121 -15
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +9 -8
- package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
- package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_6.cjs.entry.js +4 -0
- package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +7 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js +6 -5
- package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js.map +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-passcode-dialog/verdocs-passcode-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js +1 -1
- 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-auth/verdocs-auth.js +4 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +4 -0
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +7 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +1 -1
- 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.js +1 -1
- 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/{p-BxOEoXie.js → p-BIc5CIpg.js} +2 -2
- package/dist/components/{p-DjOTs59Z.js → p-BcQsqsDy.js} +2 -2
- package/dist/components/{p-Dtndevf4.js → p-BfKv6ivN.js} +2 -2
- package/dist/components/{p-Ce29XBfJ.js → p-Bkae9I4G.js} +2 -2
- package/dist/components/{p-Ce29XBfJ.js.map → p-Bkae9I4G.js.map} +1 -1
- package/dist/components/{p-D3qUITiS.js → p-BwUTiBud.js} +2 -2
- package/dist/components/{p-BVhOFpVZ.js → p-C8r3qDBh.js} +2 -2
- package/dist/components/p-C8r3qDBh.js.map +1 -0
- package/dist/components/{p-DsEO0-XR.js → p-CGWVITS0.js} +2 -2
- package/dist/components/{p-BvtSJusb.js → p-CGt7KiUu.js} +2 -2
- package/dist/components/{p-u16vefxk.js → p-CQUV5gMT.js} +2 -2
- package/dist/components/{p-Dmw-lE3L.js → p-CSIVZcVx.js} +2 -2
- package/dist/components/{p-C-V6jrel.js → p-DClinO5r.js} +2 -2
- package/dist/components/{p-D_8TNtkM.js → p-DGws2Zgt.js} +2 -2
- package/dist/components/p-DGws2Zgt.js.map +1 -0
- package/dist/components/{p-DVGumEtx.js → p-DRgoGiAA.js} +2 -2
- package/dist/components/{p-BT8wzCXz.js → p-DSK9z7EN.js} +2 -2
- package/dist/components/{p-tub_01MP.js → p-DXbBz25U.js} +2 -2
- package/dist/components/p-DeQsR41s.js +3 -0
- package/dist/components/p-DeQsR41s.js.map +1 -0
- package/dist/components/{p-DIOVejyL.js → p-DyhyfLyV.js} +2 -2
- package/dist/components/{p-Yxa93LOl.js → p-db6IAGB0.js} +2 -2
- package/dist/components/{p-CDMCVJys.js → p-qDQgyl7L.js} +2 -2
- package/dist/components/{p-CFEw4Xbi.js → p-sPseFic3.js} +2 -2
- package/dist/components/verdocs-auth.js +1 -1
- package/dist/components/verdocs-auth.js.map +1 -1
- package/dist/components/verdocs-build.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-download-dialog.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +1 -1
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-initial-dialog.js +1 -1
- package/dist/components/verdocs-ok-dialog.js +1 -1
- package/dist/components/verdocs-otp-dialog.js +1 -1
- package/dist/components/verdocs-passcode-dialog.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-question-dialog.js +1 -1
- package/dist/components/verdocs-quick-functions.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign-footer.js +1 -1
- package/dist/components/verdocs-sign.js +1 -1
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signature-dialog.js +1 -1
- package/dist/components/verdocs-status-indicator.js +1 -1
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-document-page.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-star.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-templates-list.js +1 -1
- package/dist/components/verdocs-upload-dialog.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +3 -3
- package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm/verdocs-auth.entry.js +4 -0
- package/dist/esm/verdocs-auth.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +121 -15
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-download-dialog_4.entry.js +9 -8
- package/dist/esm/verdocs-download-dialog_4.entry.js.map +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
- package/dist/esm/verdocs-field-attachment_11.entry.js +1 -1
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +7 -7
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-preview_6.entry.js +4 -0
- package/dist/esm/verdocs-preview_6.entry.js.map +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +7 -3
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-quick-functions.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-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.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/verdocs-web-sdk/{p-2f96e7c9.system.entry.js → p-0625e073.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js → p-07a07c6b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-15a1b8b5.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-15a1b8b5.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js → p-1f898c53.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6abf8f8f.entry.js.map → p-1f898c53.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-2fa4010a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-2fa4010a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-4798c2a5.system.entry.js → p-36aa8081.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-c5b70927.system.entry.js → p-3c9a2290.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-48e2baa9.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-48e2baa9.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d09a4bb9.entry.js → p-4934f908.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6754dfcf.system.entry.js → p-4d8bf603.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-4fe507ee.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-810e09ca.entry.js → p-5678acd8.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cfb275c5.entry.js → p-609527c7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1f1fc6d7.entry.js → p-82d0e009.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-90400330.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-d4f72da9.entry.js → p-98adcb3a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ed953cca.entry.js → p-996cc1f6.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-9756028f.entry.js → p-ae92881f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ae92881f.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js → p-b1146326.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1929a794.system.entry.js → p-b2aa0637.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js → p-b35a1ea8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-64034b55.system.entry.js.map → p-b35a1ea8.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-1827477d.system.entry.js → p-b6390a11.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-b81c87ee.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b81c87ee.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d3d177d0.system.entry.js → p-ba39a8ce.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-495ed75e.system.entry.js → p-bd17bff7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e632e92c.entry.js → p-c2b70cb9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ca03555a.system.entry.js → p-c3660cce.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-421c231a.entry.js → p-cbfc895c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f85f8560.system.entry.js → p-d5cfbdac.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-d5cfbdac.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-842c345c.entry.js → p-e207c469.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e679a32a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e679a32a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d3b798ae.system.entry.js → p-e991121e.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-ed5c3f2d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ed5c3f2d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js → p-fff5d042.entry.js} +2 -2
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-BVhOFpVZ.js.map +0 -1
- package/dist/components/p-CT0DHyPw.js +0 -3
- package/dist/components/p-CT0DHyPw.js.map +0 -1
- package/dist/components/p-D_8TNtkM.js.map +0 -1
- package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0240a6e1.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-12676649.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-12676649.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1a6869c9.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3f5ad836.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-62b6402f.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-682c5a5c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-9756028f.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-9c6cca6e.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-b464b598.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-b464b598.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c89d74b2.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-c89d74b2.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f85f8560.system.entry.js.map +0 -1
- /package/dist/components/{p-BxOEoXie.js.map → p-BIc5CIpg.js.map} +0 -0
- /package/dist/components/{p-DjOTs59Z.js.map → p-BcQsqsDy.js.map} +0 -0
- /package/dist/components/{p-Dtndevf4.js.map → p-BfKv6ivN.js.map} +0 -0
- /package/dist/components/{p-D3qUITiS.js.map → p-BwUTiBud.js.map} +0 -0
- /package/dist/components/{p-DsEO0-XR.js.map → p-CGWVITS0.js.map} +0 -0
- /package/dist/components/{p-BvtSJusb.js.map → p-CGt7KiUu.js.map} +0 -0
- /package/dist/components/{p-u16vefxk.js.map → p-CQUV5gMT.js.map} +0 -0
- /package/dist/components/{p-Dmw-lE3L.js.map → p-CSIVZcVx.js.map} +0 -0
- /package/dist/components/{p-C-V6jrel.js.map → p-DClinO5r.js.map} +0 -0
- /package/dist/components/{p-DVGumEtx.js.map → p-DRgoGiAA.js.map} +0 -0
- /package/dist/components/{p-BT8wzCXz.js.map → p-DSK9z7EN.js.map} +0 -0
- /package/dist/components/{p-tub_01MP.js.map → p-DXbBz25U.js.map} +0 -0
- /package/dist/components/{p-DIOVejyL.js.map → p-DyhyfLyV.js.map} +0 -0
- /package/dist/components/{p-Yxa93LOl.js.map → p-db6IAGB0.js.map} +0 -0
- /package/dist/components/{p-CDMCVJys.js.map → p-qDQgyl7L.js.map} +0 -0
- /package/dist/components/{p-CFEw4Xbi.js.map → p-sPseFic3.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-2f96e7c9.system.entry.js.map → p-0625e073.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js.map → p-07a07c6b.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-4798c2a5.system.entry.js.map → p-36aa8081.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-c5b70927.system.entry.js.map → p-3c9a2290.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d09a4bb9.entry.js.map → p-4934f908.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-6754dfcf.system.entry.js.map → p-4d8bf603.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-62b6402f.entry.js.map → p-4fe507ee.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-810e09ca.entry.js.map → p-5678acd8.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-cfb275c5.entry.js.map → p-609527c7.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1f1fc6d7.entry.js.map → p-82d0e009.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-682c5a5c.entry.js.map → p-90400330.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d4f72da9.entry.js.map → p-98adcb3a.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ed953cca.entry.js.map → p-996cc1f6.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js.map → p-b1146326.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1929a794.system.entry.js.map → p-b2aa0637.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-1827477d.system.entry.js.map → p-b6390a11.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d3d177d0.system.entry.js.map → p-ba39a8ce.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-495ed75e.system.entry.js.map → p-bd17bff7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e632e92c.entry.js.map → p-c2b70cb9.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ca03555a.system.entry.js.map → p-c3660cce.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-421c231a.entry.js.map → p-cbfc895c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-842c345c.entry.js.map → p-e207c469.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d3b798ae.system.entry.js.map → p-e991121e.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js.map → p-fff5d042.entry.js.map} +0 -0
|
@@ -346,7 +346,7 @@ const VerdocsSignatureDialog = class {
|
|
|
346
346
|
ctx.drawImage(this.uploadedImage, x, y, scaledWidth, scaledHeight);
|
|
347
347
|
}
|
|
348
348
|
render() {
|
|
349
|
-
return (index.h("verdocs-dialog", { key: '
|
|
349
|
+
return (index.h("verdocs-dialog", { key: '0b429c1bfa33dcb68c723632c9d41e804c1c9d4b' }, index.h("div", { key: '25757ea5b5681d01e8ec795fca09c76f58765892', slot: "heading", class: "heading" }, index.h("div", { key: '420d55c208a4a459de8d4f13f87549210425cadd', class: "icon" }, index.h("svg", { key: '81dc9fc0cafbbdd3a528b8d3d30a3bbd4d1e60ac', width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: 'e7ad29bdf97453171ac57e02512196b96f560a97', "clip-path": "url(#clip0_34208_4881)" }, index.h("path", { key: '3ffd7f641d18d97318c601f58e1b07593c8b9253', d: "M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z", fill: "white" })), index.h("defs", { key: '40470a753022575342a62e03f355259ad2236dfd' }, index.h("clipPath", { key: 'fd8e87dfd3a0600ea8b00bcdea231c443db263e5', id: "clip0_34208_4881" }, index.h("path", { key: 'd37762121ab1516b637e23e68123181861f3430b', d: "M0.875 0.75H21.125V18.75H0.875V0.75Z", fill: "white" }))))), index.h("div", { key: '8aa8a867add1f97217926df053936afe94b72ffb', class: "title" }, "Adopt Signature")), index.h("div", { key: '7c7ce2c4827272f4b6c42c103f78d79a9aab834a', slot: "content", class: "content" }, index.h("div", { key: 'f2f7ce37214d1f739f9a2444e65038ee2425dc01', class: "tabs" }, index.h("div", { key: 'ae94a1a76c04ffda86c9a300c0cb4ae2f967929c', class: { tab: true, active: this.mode === 'type' }, onClick: () => (this.mode = 'type') }, index.h("div", { key: '50ae13bf5f04376c4e5842dc9752c30f383c213d', innerHTML: Keyboard, class: "icon" }), index.h("div", { key: 'b7a2dedbead1f59695106a73c4683f40369dadc6' }, "Type")), index.h("div", { key: '253b9d4506f901f8466eb593b80e99cbec7726c8', class: { tab: true, active: this.mode === 'draw' }, onClick: () => (this.mode = 'draw') }, index.h("div", { key: 'd9f5dbe36f7fa6052c7a3edad8ff471cb0738879', innerHTML: Pencil, class: "icon" }), index.h("div", { key: '72e1ca881be3af547e0673733d39e771f9547bf4' }, "Draw")), index.h("div", { key: '7d280ad986b9203c1c824942f620c7ac673a7974', class: { tab: true, active: this.mode === 'upload' }, onClick: () => (this.mode = 'upload') }, index.h("div", { key: '673faa7a093acc843b4e67fb707c222ed22a7f33', innerHTML: Upload, class: "icon" }), index.h("div", { key: '3b5019ec93318c864a16712a4819ea528f1d6094' }, "Upload"))), index.h("div", { key: '714cc6316f22bf01eeddf50cd1140333dde7240f', class: { type: true, active: this.mode === 'type' } }, index.h("verdocs-text-input", { key: 'c986c98996c53f950b4b68369c19b0c897d13369', label: "Full Name", value: this.enteredName, placeholder: "Full Name...", description: "As shown on driver's license or govt. ID card.", onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() })), index.h("div", { key: '78c8bd98c799038d87a99c749ca95641a501f875', class: { draw: true, active: this.mode === 'draw' } }, index.h("div", { key: '8542a85b7bb331c3e2df482ac49c5442e24deeaa', class: "draw-instructions" }, "Draw your signature below using your mouse or finger"), index.h("div", { key: '3950ea157e7be7a82cee715eb7abff1a44c5e680', class: "draw-actions" }, index.h("button", { key: 'c0824acb635bbd01bd6084b1b8c5421834a3b9e8', class: "clear-button", onClick: e => this.handleClearDrawing(e), disabled: !this.hasDrawnSignature }, "Clear"))), index.h("div", { key: 'da28e645bf706d21669062b1b348d2f4c65db574', class: { upload: true, active: this.mode === 'upload' } }, index.h("div", { key: '33432f5f771a961cbd04a1a459ab3e1c436a3796', class: "upload-instructions" }, "Upload a PNG image of your signature"), index.h("input", { key: '5272fc359e5ea2c9d08444a6dee7939af0c85ee9', ref: el => (this.fileInputElement = el), type: "file", accept: "image/png", onChange: this.handleFileChange, style: { display: 'none' } }), index.h("div", { key: 'c8a861ccac56394d5d2b412b261a0fa7abc08c6f', class: "upload-actions" }, index.h("button", { key: '20130f1880990ead83064dc586cc98d1303e9f82', class: "upload-button", onClick: this.handleSelectFile }, this.hasUploadedImage ? 'Change Image' : 'Select PNG File'), this.hasUploadedImage && (index.h("button", { key: '441f205d01eadc47add35a2fe07bfd550c47aaeb', class: "clear-button", onClick: this.handleClearUpload }, "Clear"))), this.uploadedFileName && index.h("div", { key: '3d724075c22a178c440db88464cc7c1197ce74a3', class: "upload-filename" }, this.uploadedFileName)), index.h("canvas", { key: 'f9bbe470d83ca03666e87455b4c4f73865afff28', ref: el => (this.canvasElement = el), width: "300", height: "79", onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, style: { touchAction: 'none', cursor: 'crosshair' } }), index.h("div", { key: '8e309f8f6b19b76e892c9320172e0f2a8db10e9c', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial.")), index.h("div", { key: '107dd5abf82744aadd7dc551b648488d444eb33c', class: "footer", slot: "footer" }, index.h("div", { key: 'f10d17289c2884bd8602d4637ce60d8345310c82', class: "buttons" }, index.h("button", { key: '761f72f1a011c5dbf2d3a8f0491ddae4b6f5b924', class: "cancel", onClick: e => this.handleCancel(e) }, "Cancel"), index.h("button", { key: '8f93fa813735bda38eef39694986501e7a70067a', class: "proceed", onClick: e => this.handleAdopt(e), disabled: this.isAdoptButtonDisabled() }, "Adopt & Sign")))));
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
VerdocsSignatureDialog.style = verdocsSignatureDialogCss();
|
|
@@ -8178,11 +8178,11 @@ const VerdocsStatusIndicator = class {
|
|
|
8178
8178
|
}
|
|
8179
8179
|
const icon = this.getStatusIcon(status);
|
|
8180
8180
|
const statusMessage = this.getStatusMessage(status);
|
|
8181
|
-
return (index.h(index.Host, { key: '
|
|
8181
|
+
return (index.h(index.Host, { key: '172c95843f93a9e2ee4c150c07cf5fd7dcc52938', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
|
|
8182
8182
|
e.stopPropagation();
|
|
8183
8183
|
e.preventDefault();
|
|
8184
8184
|
this.envelope && this.toggleDropdown();
|
|
8185
|
-
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, index.h("span", { key: '
|
|
8185
|
+
}, onBlur: e => this.envelope && this.handleHideDropdown(e) }, index.h("span", { key: '9c2a18075e55e1cb609fe2a45e906e5996031bda', class: "icon", innerHTML: icon }), index.h("span", { key: '004751c32ac6eb008b552a5200930f4b57bc256f', class: "content" }, statusMessage), index.h("div", { key: 'af1e2f19a5e15a76c27c93a5e416f741bc59928e', class: "detail-panel", ref: el => (this.detailPanel = el) }, index.h("div", { key: 'ac8c928fe02108b6e0d36ba78590498e1e435245', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (index.h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
|
|
8186
8186
|
}
|
|
8187
8187
|
};
|
|
8188
8188
|
VerdocsStatusIndicator.style = verdocsStatusIndicatorCss();
|
|
@@ -14,7 +14,7 @@ const VerdocsTemplateCard = class {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
var _a, _b, _c, _d;
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '7884bd4dfaf70cc312256386c0f8a90651401df8' }, index.h("span", { key: '4c3183500b6efcbb73a5917c56623c62503555b5', class: "name" }, this.template.name), index.h("span", { key: 'ca3bd706769d72fbb25a5e8ae19ed25ef7592521', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), index.h("hr", { key: '33a2eeba3fceaf813d7f04c9a6fd357d9c41f177' }), index.h("div", { key: 'c2814d0d907084ea15dad6b6c25fa0ef85e35561', class: "controls" }, index.h("div", { key: '118f420140acf1fcea907e9c01685d0831675aa5', class: "control" }, index.h("span", { key: 'db28ba367924647678ebf34e832bbffbb28fc8e8', class: "icon", innerHTML: StarIcon }), index.h("span", { key: '3ef06b3d596c44e91cb40cf62ed7d84ffb1f957e', class: "value" }, this.template.star_counter)), index.h("div", { key: '90d9f95e9006ad113e81e7126bb0f34328086627', class: "control secondary" }, index.h("span", { key: '7ef5e850922cf0d1344e0a9409e21ca6c5099af1', class: "icon", innerHTML: PagesIcon }), index.h("span", { key: 'e3da96d537734cbaac9c44a558f1c7f3d2f844de', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), index.h("div", { key: '0f0f7943033830845e2af8ae52198b6a564ff8ee', class: "control secondary" }, index.h("span", { key: '7f7227c12666555fdc1c99584a99e0e980779954', class: "icon", innerHTML: EmailIcon }), index.h("span", { key: 'c5fd8dfdf7dd4a5c52709c9d7d53788414f24be1', class: "value" }, this.template.counter)), index.h("span", { key: 'd96d0dfcb9730d5eab719a3d6b0e1b538719de6d', class: "additional-controls", innerHTML: ActionsIcon }))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
VerdocsTemplateCard.style = verdocsTemplateCardCss();
|
|
@@ -45,7 +45,7 @@ const VerdocsTemplateStar = class {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (index.h(index.Host, { key: '
|
|
48
|
+
return (index.h(index.Host, { key: 'c60505c6215779f063eaa7896dc2c0278d78e877' }, index.h("div", { key: 'cd1c9b41b3ac03fe72333d4244729f55b42ef33d', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), index.h("div", { key: '0e7ecdeb2646424f052152b7c7bb16543ff260d3', class: "count" }, this.template.star_counter || '--')));
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
VerdocsTemplateStar.style = verdocsTemplateStarCss();
|
|
@@ -10,7 +10,7 @@ const VerdocsTemplateTags = class {
|
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
12
|
var _a;
|
|
13
|
-
return (index.h(index.Host, { key: '
|
|
13
|
+
return (index.h(index.Host, { key: '5b78e032e2db6c5b3f2c83e286ade7064d695500' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (index.h("span", null, tag)))));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
VerdocsTemplateTags.style = verdocsTemplateTagsCss();
|
package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js
CHANGED
|
@@ -29,20 +29,21 @@ export class VerdocsDownloadDialog {
|
|
|
29
29
|
const isCertReady = this.signed && hasCert;
|
|
30
30
|
const isCertificateDisabled = action === DownloadAction.certificate && !isCertReady;
|
|
31
31
|
const isZipDisabled = action === DownloadAction.zip && (this.polling || !isCertReady);
|
|
32
|
-
const isCombinedDisabled = action === DownloadAction.combined && !isCertReady;
|
|
32
|
+
const isCombinedDisabled = action === DownloadAction.combined && (this.polling || !isCertReady || !documentId);
|
|
33
33
|
if (isCertificateDisabled || isZipDisabled || isCombinedDisabled)
|
|
34
34
|
return;
|
|
35
35
|
this.download.emit({ action, documentId });
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));
|
|
39
|
-
const
|
|
39
|
+
const certificateDocument = this.documents.find(d => d.type === 'certificate');
|
|
40
|
+
const hasCertificateDoc = !!certificateDocument || this.hasCertificate;
|
|
40
41
|
const certReady = this.signed && hasCertificateDoc;
|
|
41
|
-
const isCombinedReady = this.signed && hasCertificateDoc;
|
|
42
42
|
const allDone = !this.polling && certReady;
|
|
43
|
+
// const isCombinedReady = allDone && !!certificateDocument?.id;
|
|
43
44
|
const attachmentBusy = !this.signed;
|
|
44
|
-
return (h("verdocs-dialog", { key: '
|
|
45
|
-
attachments.map(doc => (h("div", { class: "download-option", onClick: () => this.handleOptionClick(DownloadAction.document, doc.id) }, h("div", { class: "icon-container", innerHTML: DocumentIcon }), h("div", { class: "text-container" }, h("div", { class: "label" }, doc.name), h("div", { class: "description" }, "Download the document")), attachmentBusy ? (h("div", { class: "status-indicator" }, h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))) : (h("div", { class: "status-indicator" }, h("div", { class: "signed", innerHTML: CheckIcon }), h("span", null, "Signed")))))), attachments.length > 2 && h("div", { key: '
|
|
45
|
+
return (h("verdocs-dialog", { key: '405e032ca618062443c88e0db2e9b70338a444a8', onExit: () => this.exit.emit() }, h("div", { key: '0ab713570eac0cdaa6a5d98c1a7e2f39ab1d083e', slot: "heading", class: "heading-container" }, h("h3", { key: '378c9d306016928a622bf1d667992579a4cae921', style: { margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px' } }, "Download")), h("div", { key: '9975e4c90d18731d5a8c767f33ad3177b9294a4c', slot: "content", class: "content" }, attachments.length <= 2 &&
|
|
46
|
+
attachments.map(doc => (h("div", { class: "download-option", onClick: () => this.handleOptionClick(DownloadAction.document, doc.id) }, h("div", { class: "icon-container", innerHTML: DocumentIcon }), h("div", { class: "text-container" }, h("div", { class: "label" }, doc.name), h("div", { class: "description" }, "Download the document")), attachmentBusy ? (h("div", { class: "status-indicator" }, h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))) : (h("div", { class: "status-indicator" }, h("div", { class: "signed", innerHTML: CheckIcon }), h("span", null, "Signed")))))), attachments.length > 2 && h("div", { key: 'ea5c3111ed51eef05476486cec8a67af0c2229ca', class: "info-message" }, "Multiple documents attached. Please use the ZIP option below to download all files."), h("div", { key: 'dc2190ccb9e4dec1d4225853a05026fe92680d37', class: { 'download-option': true, 'disabled': !certReady }, onClick: () => this.handleOptionClick(DownloadAction.certificate), title: !certReady ? 'Certificate not yet available' : '' }, h("div", { key: 'ba2fdb42bf0649782431f9a69bc38fccac86beaf', class: "icon-container", innerHTML: CertificateIcon }), h("div", { key: '160e2e96b0e60b266b2cd04077e5bda8d6389b46', class: "text-container" }, h("div", { key: '907d74964a44dcfedcbda025a3464301a482addc', class: "label" }, "Certificate"), h("div", { key: '4f9b3b720147747653c4b78aadd46dbd587255b6', class: "description" }, "Download the certificate")), certReady ? (h("div", { class: "status-indicator" }, h("div", { class: "signed", innerHTML: CheckIcon }), h("span", null, "Ready"))) : (h("div", { class: "status-indicator" }, h("div", { class: "spinner-inline", innerHTML: RefreshIcon })))), h("div", { key: 'b59976bf8e3025b518e2a8d46862923ec93fdc7e', class: { 'download-option': true, 'disabled': !allDone }, onClick: () => this.handleOptionClick(DownloadAction.zip), title: !allDone ? 'Waiting for all documents to be ready' : '' }, h("div", { key: '83321a57cefcdd9cf8a2f852f19b722d1b879e06', class: "icon-container", innerHTML: ZipIcon }), h("div", { key: '8c6c423f1f5f523129ba3d88328b7bc4a2b982a7', class: "text-container" }, h("div", { key: '6642e4855832ae7993300801a0fa5e60bb37c34b', class: "label" }, "All Files"), h("div", { key: '39f07505e48d46627f4629c90ea456d3ebb2e95b', class: "description" }, "Download everything as a ZIP file")), allDone ? (h("div", { class: "status-indicator" }, h("div", { class: "signed", innerHTML: CheckIcon }), h("span", null, "Ready"))) : (h("div", { class: "status-indicator" }, h("div", { class: "spinner-inline", innerHTML: RefreshIcon }))))), h("div", { key: '4aa0a7712e33f6dac00a13b9f225c3bd125005e1', slot: "footer", style: { display: 'none' } })));
|
|
46
47
|
}
|
|
47
48
|
static get is() { return "verdocs-download-dialog"; }
|
|
48
49
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verdocs-download-dialog.js","sourceRoot":"","sources":["../../../../src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAgB,IAAI,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,MAAM,YAAY,GAAG,ihBAAihB,CAAC;AACviB,MAAM,eAAe,GAAG,uaAAua,CAAC;AAChc,MAAM,OAAO,GAAG,quBAAquB,CAAC;AACtvB,MAAM,SAAS,GAAG,iMAAiM,CAAC;AACpN,MAAM,WAAW,GAAG,0TAA0T,CAAC;AAO/U,MAAM,OAAO,qBAAqB;IALlC;QAmBE;;WAEG;QACK,WAAM,GAAG,KAAK,CAAC;QAEvB;;WAEG;QACK,YAAO,GAAG,KAAK,CAAC;QAExB;;WAEG;QACK,cAAS,GAAU,EAAE,CAAC;QAE9B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EAAC,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAC,GAAI,CAChC,CAClB,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, h, Event, EventEmitter, Prop} from '@stencil/core';\nimport {DownloadAction} from '../../../utils/Types';\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 CheckIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 6L9 17L4 12\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\nconst RefreshIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23 4V10H17\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M20.49 15A9 9 0 1 1 21.23 8\" 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 /**\n * Event fired when an option is selected.\n */\n @Event({composed: true}) download: EventEmitter<{action: DownloadAction; documentId?: string}>;\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 is considered signed.\n */\n @Prop() signed = false;\n\n /**\n * If true, we are currently polling the server for updates.\n */\n @Prop() polling = false;\n\n /**\n * The list of documents in the envelope.\n */\n @Prop() documents: any[] = [];\n\n /**\n * If true, the envelope has a certificate available for download.\n */\n @Prop() hasCertificate = false;\n\n handleOptionClick(action: DownloadAction, documentId?: string) {\n const hasCert = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const isCertReady = this.signed && hasCert;\n const isCertificateDisabled = action === DownloadAction.certificate && !isCertReady;\n const isZipDisabled = action === DownloadAction.zip && (this.polling || !isCertReady);\n const isCombinedDisabled = action === DownloadAction.combined && !isCertReady;\n\n if (isCertificateDisabled || isZipDisabled || isCombinedDisabled) return;\n this.download.emit({action, documentId});\n }\n\n render() {\n const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));\n const hasCertificateDoc = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const certReady = this.signed && hasCertificateDoc;\n const isCombinedReady = this.signed && hasCertificateDoc;\n const allDone = !this.polling && certReady;\n const attachmentBusy = !this.signed;\n\n return (\n <verdocs-dialog onExit={() => this.exit.emit()}>\n <div slot=\"heading\" class=\"heading-container\">\n <h3 style={{margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px'}}>Download</h3>\n </div>\n\n <div slot=\"content\" class=\"content\">\n {attachments.length <= 2 &&\n attachments.map(doc => (\n <div class=\"download-option\" onClick={() => this.handleOptionClick(DownloadAction.document, doc.id)}>\n <div class=\"icon-container\" innerHTML={DocumentIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">{doc.name}</div>\n <div class=\"description\">Download the document</div>\n </div>\n {attachmentBusy ? (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Signed</span>\n </div>\n )}\n </div>\n ))}\n\n {attachments.length > 2 && <div class=\"info-message\">Multiple documents attached. Please use the ZIP option below to download all files.</div>}\n\n <div\n class={{'download-option': true, 'disabled': !certReady}}\n onClick={() => this.handleOptionClick(DownloadAction.certificate)}\n title={!certReady ? '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 certificate</div>\n </div>\n {certReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !isCombinedReady}}\n onClick={() => this.handleOptionClick(DownloadAction.combined)}\n title={!isCombinedReady ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Combined</div>\n <div class=\"description\">Merge envelopes & certificate into a single PDF</div>\n </div>\n {isCombinedReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n <div\n class={{'download-option': true, 'disabled': !allDone}}\n onClick={() => this.handleOptionClick(DownloadAction.zip)}\n title={!allDone ? 'Waiting for all documents to be ready' : ''}\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 {allDone ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n </div>\n\n <div slot=\"footer\" style={{display: 'none'}} />\n </verdocs-dialog>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"verdocs-download-dialog.js","sourceRoot":"","sources":["../../../../src/components/dialogs/verdocs-download-dialog/verdocs-download-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,CAAC,EAAE,KAAK,EAAgB,IAAI,EAAC,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAEpD,MAAM,YAAY,GAAG,ihBAAihB,CAAC;AACviB,MAAM,eAAe,GAAG,uaAAua,CAAC;AAChc,MAAM,OAAO,GAAG,quBAAquB,CAAC;AACtvB,MAAM,SAAS,GAAG,iMAAiM,CAAC;AACpN,MAAM,WAAW,GAAG,0TAA0T,CAAC;AAO/U,MAAM,OAAO,qBAAqB;IALlC;QAmBE;;WAEG;QACK,WAAM,GAAG,KAAK,CAAC;QAEvB;;WAEG;QACK,YAAO,GAAG,KAAK,CAAC;QAExB;;WAEG;QACK,cAAS,GAAU,EAAE,CAAC;QAE9B;;WAEG;QACK,mBAAc,GAAG,KAAK,CAAC;KA2HhC;IAzHC,iBAAiB,CAAC,MAAsB,EAAE,UAAmB;QAC3D,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,aAAa,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC;QAC1F,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,IAAI,OAAO,CAAC;QAC3C,MAAM,qBAAqB,GAAG,MAAM,KAAK,cAAc,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC;QACpF,MAAM,aAAa,GAAG,MAAM,KAAK,cAAc,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC;QACtF,MAAM,kBAAkB,GAAG,MAAM,KAAK,cAAc,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,IAAI,CAAC,UAAU,CAAC,CAAC;QAE/G,IA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C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {Component, h, Event, EventEmitter, Prop} from '@stencil/core';\nimport {DownloadAction} from '../../../utils/Types';\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 CheckIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 6L9 17L4 12\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>`;\nconst RefreshIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M23 4V10H17\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path d=\"M20.49 15A9 9 0 1 1 21.23 8\" 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 /**\n * Event fired when an option is selected.\n */\n @Event({composed: true}) download: EventEmitter<{action: DownloadAction; documentId?: string}>;\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 is considered signed.\n */\n @Prop() signed = false;\n\n /**\n * If true, we are currently polling the server for updates.\n */\n @Prop() polling = false;\n\n /**\n * The list of documents in the envelope.\n */\n @Prop() documents: any[] = [];\n\n /**\n * If true, the envelope has a certificate available for download.\n */\n @Prop() hasCertificate = false;\n\n handleOptionClick(action: DownloadAction, documentId?: string) {\n const hasCert = this.documents.some(d => d.type === 'certificate') || this.hasCertificate;\n const isCertReady = this.signed && hasCert;\n const isCertificateDisabled = action === DownloadAction.certificate && !isCertReady;\n const isZipDisabled = action === DownloadAction.zip && (this.polling || !isCertReady);\n const isCombinedDisabled = action === DownloadAction.combined && (this.polling || !isCertReady || !documentId);\n\n if (isCertificateDisabled || isZipDisabled || isCombinedDisabled) return;\n this.download.emit({action, documentId});\n }\n\n render() {\n const attachments = this.documents.filter(d => d.type === 'attachment').sort((a, b) => (a.order !== b.order ? a.order - b.order : a.created_at.localeCompare(b.created_at)));\n const certificateDocument = this.documents.find(d => d.type === 'certificate');\n const hasCertificateDoc = !!certificateDocument || this.hasCertificate;\n const certReady = this.signed && hasCertificateDoc;\n const allDone = !this.polling && certReady;\n // const isCombinedReady = allDone && !!certificateDocument?.id;\n const attachmentBusy = !this.signed;\n\n return (\n <verdocs-dialog onExit={() => this.exit.emit()}>\n <div slot=\"heading\" class=\"heading-container\">\n <h3 style={{margin: '0', fontSize: '1.25rem', fontWeight: '600', padding: '16px 24px'}}>Download</h3>\n </div>\n\n <div slot=\"content\" class=\"content\">\n {attachments.length <= 2 &&\n attachments.map(doc => (\n <div class=\"download-option\" onClick={() => this.handleOptionClick(DownloadAction.document, doc.id)}>\n <div class=\"icon-container\" innerHTML={DocumentIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">{doc.name}</div>\n <div class=\"description\">Download the document</div>\n </div>\n {attachmentBusy ? (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Signed</span>\n </div>\n )}\n </div>\n ))}\n\n {attachments.length > 2 && <div class=\"info-message\">Multiple documents attached. Please use the ZIP option below to download all files.</div>}\n\n <div\n class={{'download-option': true, 'disabled': !certReady}}\n onClick={() => this.handleOptionClick(DownloadAction.certificate)}\n title={!certReady ? '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 certificate</div>\n </div>\n {certReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n\n {/* <div\n class={{'download-option': true, 'disabled': !isCombinedReady}}\n onClick={() => this.handleOptionClick(DownloadAction.combined, certificateDocument?.id)}\n title={!isCombinedReady ? 'Waiting for all documents to be ready' : ''}\n >\n <div class=\"icon-container\" innerHTML={ZipIcon}></div>\n <div class=\"text-container\">\n <div class=\"label\">Combined</div>\n <div class=\"description\">Merge envelopes & certificate into a single PDF</div>\n </div>\n {isCombinedReady ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div> */}\n\n <div\n class={{'download-option': true, 'disabled': !allDone}}\n onClick={() => this.handleOptionClick(DownloadAction.zip)}\n title={!allDone ? 'Waiting for all documents to be ready' : ''}\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 {allDone ? (\n <div class=\"status-indicator\">\n <div class=\"signed\" innerHTML={CheckIcon}></div>\n <span>Ready</span>\n </div>\n ) : (\n <div class=\"status-indicator\">\n <div class=\"spinner-inline\" innerHTML={RefreshIcon}></div>\n </div>\n )}\n </div>\n </div>\n\n <div slot=\"footer\" style={{display: 'none'}} />\n </verdocs-dialog>\n );\n }\n}\n"]}
|
|
@@ -216,7 +216,7 @@ export class VerdocsInitialDialog {
|
|
|
216
216
|
}
|
|
217
217
|
*/
|
|
218
218
|
render() {
|
|
219
|
-
return (h(Host, { key: '
|
|
219
|
+
return (h(Host, { key: 'ae9dcf54059a7234ded4498b3965ad8a85e0051f', onClick: e => this.handleCancel(e) }, h("div", { key: '74d0274fcf4f9a4c4fff63df263215906d091019', class: "dialog" }, h("div", { key: 'd7d9b3d881e9985c1856cbb48f36c13c22c96d51', class: "heading" }, "Create Your Initial"), h("div", { key: '77891434cf3c6dfb72583a366c73fbe718f3df55', class: "content" }, h("verdocs-text-input", { key: 'b563cd6c996cab38ed00b763a94ba15966a0dd46', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: 'b8b94dbd7da516dc16647857535234fc4bc09490', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '9305001c42ef179fd2e9200457b2d5e39dbb861e', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: 'df368934a000f369217d02dfce8fea68aba87a99', class: "buttons" }, h("verdocs-button", { key: '6312e5608fa0cee507364aad8259ab52ba89f543', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '9e7f1cf8e2f855e761560353b363d1790f15ba09', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
|
|
220
220
|
}
|
|
221
221
|
static get is() { return "verdocs-initial-dialog"; }
|
|
222
222
|
static get originalStyleUrls() {
|
|
@@ -40,7 +40,7 @@ export class VerdocsOkDialog {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h("verdocs-dialog", { key: '
|
|
43
|
+
return (h("verdocs-dialog", { key: '71f5ccb53d253e815c7071919eb667adcba7cbf6', onExit: e => this.handleDismiss(e) }, h("div", { key: '8a9818924124a1355b2fb9b5fa0c3db2d2e85f24', slot: "heading", class: "heading" }, h("div", { key: '5fc6b98d0c1cd975c106616708721115bd54ee12', class: "icon" }, h("svg", { key: '836f0a6c196c173f5de0839f69b073afb0ab1bae', width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '8943629b994d18a59b077a785dcbe0958005f395', "clip-path": "url(#clip0_34208_4881)" }, h("path", { key: '657bc1542a8ed6a02830f63e51ad5a9e04a721a6', d: "M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z", fill: "white" })), h("defs", { key: '8c89805faaf706a352a09cdb9e4366d3b2c697b3' }, h("clipPath", { key: 'e76eabac419a70b4fc8be4973f70509712b2ba12', id: "clip0_34208_4881" }, h("path", { key: '7820f18f95934053693bc282d451e40bbdbac518', d: "M0.875 0.75H21.125V18.75H0.875V0.75Z", fill: "white" }))))), h("div", { key: '79e11a044511904b7c07c655ef67deebe299915c', class: "title" }, " ", this.heading)), h("div", { key: '84ad2b3657ac06ef807557d68b24156964adef00', slot: "content", class: "content", innerHTML: this.message }), h("div", { key: 'b18ad4282201a68caa040f5400fbdd0103eac20a', class: "footer", slot: "footer" }, h("div", { key: '4add506ce666b657c3a23a0ed960ea305fc3904b', class: "buttons" }, this.showCancel && (h("button", { key: '1d2fc583027ed4994a90babdec18e3828d403fd7', class: "cancel", onClick: () => this.handleCancel() }, "Cancel")), h("button", { key: 'd1331922dc64b8af4b19aef0dd0684406d17c58a', class: !this.showCancel ? 'ok single' : 'ok', onClick: () => this.handleOk() }, "OK")))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "verdocs-ok-dialog"; }
|
|
46
46
|
static get originalStyleUrls() {
|
|
@@ -74,7 +74,7 @@ export class VerdocsOtpDialog {
|
|
|
74
74
|
this.response = '';
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '54d72aa1d9f97e045b89d4a7ddebb52734e2b0a7' }, h("verdocs-dialog", { key: '3ef501fd26f54b1c76d8b4e74c2235848484576f', persistent: true, onExit: () => this.handleCancel() }, h("div", { key: 'b2ae8bda06649f568e00481362f2aae6887b2dc4', slot: "heading", class: "heading" }, h("div", { key: 'e3b78ecd8382ea2c307de1e9e67eed7bd4010017', class: "title" }, "Verification Required")), h("div", { key: '518995d5586fa2699ad3782a79000acef722a87f', slot: "content", class: "content" }, h("div", { key: '9cd3d4f720369e55ab90d500c2dca6f538342873', class: "help-box" }, h("div", { key: '9d5931a95c0448af4a9bb72c881663405afd2c46', class: "help-details" }, h("div", { key: '582bda9aa5a54c8bdfced88f3bb74551426b6b71', class: "help-text" }, "Please check your messages for a one-time code. If you did not receive it, be sure to check your Spam/Junk folder."))), h("verdocs-text-input", { key: 'e98ed964b42aac526b8e49360546d47daacf51bf', id: "verdocs-otp-input", value: this.response, onClick: e => e.stopPropagation(), placeholder: "Enter your one-time code...", onInput: (e) => (this.response = e.target.value) })), h("div", { key: '38434e47378a5c1b410f3b01e39c7d5dac0cba9f', slot: "footer", class: "buttons footer" }, h("verdocs-button", { key: '0b0b3ed47757dcbb4287f55f0f5058a5b0bbb954', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'd6c830134f9c987e39e27b5831c87f1670ed4af0', label: 'Resend', onClick: () => this.handleResend(), disabled: this.resendDisabled }), h("verdocs-button", { key: '99f2076dcc4534105b7a529dcbaaf84a8390bc3b', label: 'Submit', onClick: () => this.handleSubmit(), disabled: !this.response })))));
|
|
78
78
|
}
|
|
79
79
|
static get is() { return "verdocs-otp-dialog"; }
|
|
80
80
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-passcode-dialog/verdocs-passcode-dialog.js
CHANGED
|
@@ -29,7 +29,7 @@ export class VerdocsPasscodeDialog {
|
|
|
29
29
|
this.response = '';
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'f611b89b6a936352f80d2032a571cd7e86daa2e9' }, h("verdocs-dialog", { key: '0997b0a07b87e3ca6f25979a461f0ba186fa0cf4', persistent: true, onExit: () => this.handleCancel() }, h("div", { key: 'd32ff440d13ed705a8311804fee910d714d08705', slot: "heading", class: "heading" }, h("div", { key: 'c5124f039fecd6bd695d369061da325bc10a97e6', class: "title" }, "Passcode Required")), h("div", { key: '2635315f3c53a957ae8aee32ce47dc04e7547a4a', slot: "content", class: "content" }, h("div", { key: '7ebdd819c026e2c968019996f2965d76058c019e', class: "help-box" }, h("div", { key: '7d6811fd11a47bdd8dfc03f628eb21f41fd697b6', class: "help-details" }, h("div", { key: 'aecfd4feaf6b0b669476b40b53b159a6a280dbd9', class: "help-text" }, "This document is protected by a passcode. Please enter it below to proceed. If you do not have one, please contact the sender."))), h("verdocs-text-input", { key: 'e53aad4fd9b05297383730c13d2db086444b8f84', id: "verdocs-passcode-input", value: this.response, onClick: e => e.stopPropagation(), placeholder: "Enter passcode...", onInput: (e) => (this.response = e.target.value) })), h("div", { key: 'f747484402b61c0b83efc5fdbde75b85afc2ada1', slot: "footer", class: "buttons footer" }, h("verdocs-button", { key: '16015a1a9be9fed6fc78485ea0a91ce19cdbe68d', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: '2077f16df851706e1c80c4118b303f0ffdcc17dc', label: 'Submit', onClick: () => this.handleSubmit(), disabled: !this.response })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "verdocs-passcode-dialog"; }
|
|
35
35
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-question-dialog/verdocs-question-dialog.js
CHANGED
|
@@ -25,7 +25,7 @@ export class VerdocsQuestionDialog {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("verdocs-dialog", { key: '
|
|
28
|
+
return (h("verdocs-dialog", { key: 'd0e85744fa9901d1be794cd59f4c9b87922e6e91', onExit: e => this.handleDismiss(e) }, h("div", { key: '6d7ead703cdf217588ac98d2ac93a35644838b78', slot: "heading", class: "heading" }, h("div", { key: 'd07c6155fc98f51204a51add33d82afec7592c4b', class: "icon", innerHTML: QuestionIcon }), h("div", { key: 'e9698d0aa4b24db343afd149adee95d9c3c0a52a', class: "title" }, "Ask the Sender a Question")), h("div", { key: 'cdef7a2b00c4c66e1748733e3c614e39ad456192', slot: "content", class: "content" }, h("textarea", { key: '81c88e1d61be54e7ba80c9101fb71bf903df8d1c', name: "question", rows: 6, placeholder: "Enter your question...", onInput: (e) => (this.question = e.target.value) }, this.question)), h("div", { key: 'a7d5a31362337e6c80c0ac5b2c6471efbacb9a23', class: "footer", slot: "footer" }, h("div", { key: '71ae8344f053cfd94dc6befed76933fe67f490d1', class: "buttons" }, h("button", { key: '04aec379b7b4f21885f72ed2016b10ac26730476', class: "cancel", onClick: () => this.handleCancel() }, "Cancel"), h("button", { key: '6e6e8bb27367c9a1167a49519da299d9ce9ee983', class: 'ok', onClick: () => this.handleOk() }, "OK")))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "verdocs-question-dialog"; }
|
|
31
31
|
static get originalStyleUrls() {
|
package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js
CHANGED
|
@@ -342,7 +342,7 @@ export class VerdocsSignatureDialog {
|
|
|
342
342
|
ctx.drawImage(this.uploadedImage, x, y, scaledWidth, scaledHeight);
|
|
343
343
|
}
|
|
344
344
|
render() {
|
|
345
|
-
return (h("verdocs-dialog", { key: '
|
|
345
|
+
return (h("verdocs-dialog", { key: '0b429c1bfa33dcb68c723632c9d41e804c1c9d4b' }, h("div", { key: '25757ea5b5681d01e8ec795fca09c76f58765892', slot: "heading", class: "heading" }, h("div", { key: '420d55c208a4a459de8d4f13f87549210425cadd', class: "icon" }, h("svg", { key: '81dc9fc0cafbbdd3a528b8d3d30a3bbd4d1e60ac', width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: 'e7ad29bdf97453171ac57e02512196b96f560a97', "clip-path": "url(#clip0_34208_4881)" }, h("path", { key: '3ffd7f641d18d97318c601f58e1b07593c8b9253', d: "M3.125 0.75C1.88398 0.75 0.875 1.75898 0.875 3V16.5C0.875 17.741 1.88398 18.75 3.125 18.75H12.125C13.366 18.75 14.375 17.741 14.375 16.5V15.8215C14.2801 15.8602 14.1852 15.8918 14.0867 15.9164L11.9738 16.4437C11.8684 16.4684 11.7629 16.4859 11.6574 16.493C11.6258 16.4965 11.5941 16.5 11.5625 16.5H9.3125C9.09805 16.5 8.90469 16.3805 8.80977 16.1906L8.50039 15.5684C8.44062 15.4488 8.32109 15.375 8.19102 15.375C8.06094 15.375 7.93789 15.4488 7.88164 15.5684L7.57227 16.1906C7.47031 16.398 7.24883 16.5211 7.02031 16.5C6.7918 16.4789 6.59492 16.3207 6.53164 16.1027L5.9375 14.1445L5.59297 15.2977C5.37852 16.0113 4.72109 16.5 3.97578 16.5H3.6875C3.37812 16.5 3.125 16.2469 3.125 15.9375C3.125 15.6281 3.37812 15.375 3.6875 15.375H3.97578C4.22539 15.375 4.44336 15.2133 4.51367 14.9742L5.0375 13.234C5.15703 12.8367 5.52266 12.5625 5.9375 12.5625C6.35234 12.5625 6.71797 12.8367 6.8375 13.234L7.24531 14.591C7.50547 14.373 7.83594 14.25 8.1875 14.25C8.74648 14.25 9.25625 14.5664 9.50586 15.0656L9.66055 15.375H9.97344C9.86445 15.0656 9.84336 14.7281 9.92422 14.3977L10.4516 12.2848C10.55 11.8875 10.7539 11.5289 11.0422 11.2406L14.375 7.90781V6.375H9.875C9.25273 6.375 8.75 5.87227 8.75 5.25V0.75H3.125ZM9.875 0.75V5.25H14.375L9.875 0.75ZM20.2039 5.66133C19.6555 5.11289 18.766 5.11289 18.2141 5.66133L17.1805 6.69492L19.6766 9.19102L20.7102 8.15742C21.2586 7.60898 21.2586 6.71953 20.7102 6.16758L20.2039 5.66133ZM11.8402 12.0352C11.6961 12.1793 11.5941 12.3586 11.5449 12.559L11.0176 14.6719C10.9684 14.8652 11.0246 15.0656 11.1652 15.2063C11.3059 15.3469 11.5062 15.4031 11.6996 15.3539L13.8125 14.8266C14.0094 14.7773 14.1922 14.6754 14.3363 14.5312L18.8785 9.98555L16.3824 7.48945L11.8402 12.0352Z", fill: "white" })), h("defs", { key: '40470a753022575342a62e03f355259ad2236dfd' }, h("clipPath", { key: 'fd8e87dfd3a0600ea8b00bcdea231c443db263e5', id: "clip0_34208_4881" }, h("path", { key: 'd37762121ab1516b637e23e68123181861f3430b', d: "M0.875 0.75H21.125V18.75H0.875V0.75Z", fill: "white" }))))), h("div", { key: '8aa8a867add1f97217926df053936afe94b72ffb', class: "title" }, "Adopt Signature")), h("div", { key: '7c7ce2c4827272f4b6c42c103f78d79a9aab834a', slot: "content", class: "content" }, h("div", { key: 'f2f7ce37214d1f739f9a2444e65038ee2425dc01', class: "tabs" }, h("div", { key: 'ae94a1a76c04ffda86c9a300c0cb4ae2f967929c', class: { tab: true, active: this.mode === 'type' }, onClick: () => (this.mode = 'type') }, h("div", { key: '50ae13bf5f04376c4e5842dc9752c30f383c213d', innerHTML: Keyboard, class: "icon" }), h("div", { key: 'b7a2dedbead1f59695106a73c4683f40369dadc6' }, "Type")), h("div", { key: '253b9d4506f901f8466eb593b80e99cbec7726c8', class: { tab: true, active: this.mode === 'draw' }, onClick: () => (this.mode = 'draw') }, h("div", { key: 'd9f5dbe36f7fa6052c7a3edad8ff471cb0738879', innerHTML: Pencil, class: "icon" }), h("div", { key: '72e1ca881be3af547e0673733d39e771f9547bf4' }, "Draw")), h("div", { key: '7d280ad986b9203c1c824942f620c7ac673a7974', class: { tab: true, active: this.mode === 'upload' }, onClick: () => (this.mode = 'upload') }, h("div", { key: '673faa7a093acc843b4e67fb707c222ed22a7f33', innerHTML: Upload, class: "icon" }), h("div", { key: '3b5019ec93318c864a16712a4819ea528f1d6094' }, "Upload"))), h("div", { key: '714cc6316f22bf01eeddf50cd1140333dde7240f', class: { type: true, active: this.mode === 'type' } }, h("verdocs-text-input", { key: 'c986c98996c53f950b4b68369c19b0c897d13369', label: "Full Name", value: this.enteredName, placeholder: "Full Name...", description: "As shown on driver's license or govt. ID card.", onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() })), h("div", { key: '78c8bd98c799038d87a99c749ca95641a501f875', class: { draw: true, active: this.mode === 'draw' } }, h("div", { key: '8542a85b7bb331c3e2df482ac49c5442e24deeaa', class: "draw-instructions" }, "Draw your signature below using your mouse or finger"), h("div", { key: '3950ea157e7be7a82cee715eb7abff1a44c5e680', class: "draw-actions" }, h("button", { key: 'c0824acb635bbd01bd6084b1b8c5421834a3b9e8', class: "clear-button", onClick: e => this.handleClearDrawing(e), disabled: !this.hasDrawnSignature }, "Clear"))), h("div", { key: 'da28e645bf706d21669062b1b348d2f4c65db574', class: { upload: true, active: this.mode === 'upload' } }, h("div", { key: '33432f5f771a961cbd04a1a459ab3e1c436a3796', class: "upload-instructions" }, "Upload a PNG image of your signature"), h("input", { key: '5272fc359e5ea2c9d08444a6dee7939af0c85ee9', ref: el => (this.fileInputElement = el), type: "file", accept: "image/png", onChange: this.handleFileChange, style: { display: 'none' } }), h("div", { key: 'c8a861ccac56394d5d2b412b261a0fa7abc08c6f', class: "upload-actions" }, h("button", { key: '20130f1880990ead83064dc586cc98d1303e9f82', class: "upload-button", onClick: this.handleSelectFile }, this.hasUploadedImage ? 'Change Image' : 'Select PNG File'), this.hasUploadedImage && (h("button", { key: '441f205d01eadc47add35a2fe07bfd550c47aaeb', class: "clear-button", onClick: this.handleClearUpload }, "Clear"))), this.uploadedFileName && h("div", { key: '3d724075c22a178c440db88464cc7c1197ce74a3', class: "upload-filename" }, this.uploadedFileName)), h("canvas", { key: 'f9bbe470d83ca03666e87455b4c4f73865afff28', ref: el => (this.canvasElement = el), width: "300", height: "79", onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, style: { touchAction: 'none', cursor: 'crosshair' } }), h("div", { key: '8e309f8f6b19b76e892c9320172e0f2a8db10e9c', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial.")), h("div", { key: '107dd5abf82744aadd7dc551b648488d444eb33c', class: "footer", slot: "footer" }, h("div", { key: 'f10d17289c2884bd8602d4637ce60d8345310c82', class: "buttons" }, h("button", { key: '761f72f1a011c5dbf2d3a8f0491ddae4b6f5b924', class: "cancel", onClick: e => this.handleCancel(e) }, "Cancel"), h("button", { key: '8f93fa813735bda38eef39694986501e7a70067a', class: "proceed", onClick: e => this.handleAdopt(e), disabled: this.isAdoptButtonDisabled() }, "Adopt & Sign")))));
|
|
346
346
|
}
|
|
347
347
|
static get is() { return "verdocs-signature-dialog"; }
|
|
348
348
|
static get originalStyleUrls() {
|
|
@@ -80,7 +80,7 @@ export class VerdocsUploadDialog {
|
|
|
80
80
|
render() {
|
|
81
81
|
var _a;
|
|
82
82
|
const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '306f146d583be66036d5b7d770f7d82c9c84226a' }, h("div", { key: 'd1cf6865c79f5e30ad695562092d48e5c28257b8', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'cdc21a795cc92991362567d41ea053244b4dc87b', class: "upload-dialog-content" }, h("div", { key: 'abbc222d421f853e5fcc8614bd4d16248fb22fd1', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: '54718ac9d46bc13f96c022a52f527c3454383ee3' }, h("div", { key: '81387ab1ceb1962a94ba5475a2a24316203bae35', class: "current-label" }, "Current Attachment"), h("div", { key: '54053e1a34ab2559fecc51534eec3130606287b5', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '2d5d390d96a0f52196ac54270380969e01b54c52', class: "attachment" }, h("div", { key: 'cc3e5021e989c0b17e07d8c7440aa478f3563212', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '0c32341f9e25013740b526cff1bd7ae4b2a6c2da', class: "name" }, existingFile.name), h("div", { key: '678acb7ec4a54ff404f0ce956daf1dc9eb16fbf5', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: '43feb03a1b3be8c09d57865ef5233c16d707f520', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: '967aa5e1431e83a1a6477af3ecdac6545cf9106e' }, "Drag and drop your files here"), h("p", { key: 'f6fdc2a5c2ef9d8c3394c86608fff9012f6521d0', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), h("verdocs-button", { key: '3e0d7b45fe0d43d4d082fc16871d69002125b389', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), h("input", { key: '90b754371e05c563272fcc667cde5c75cf23b212', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: '6f95392345e0c0ba776ca45427a3eeb24e86ea4c', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), !!this.errorMessage && h("div", { key: 'c302c11758e79265b6624ca64b803a49b05ecdc2', class: "error" }, this.errorMessage), h("div", { key: '70ef293b37d2f59d4a194f103e199f7c3e5aa7bf', class: "buttons" }, h("verdocs-button", { key: '3aca912689dbeac16288acdf97ede66b2fda50cd', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'f96fa3dc4131af6fd49b31115727bb853d3ff7e8', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: '103761442ef22bd730c505115c4cbe69fcbf36dd', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
|
|
84
84
|
// So we don't close the upload dialog
|
|
85
85
|
e.preventDefault();
|
|
86
86
|
e.stopPropagation();
|
package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js
CHANGED
|
@@ -22,7 +22,7 @@ export class VerdocsQuickFunctions {
|
|
|
22
22
|
this.createDocument.emit();
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'f84b61c6ed8b9ee03dd7a6c0f2fae2ab8fcc6e2b', class: "container" }, h("p", { key: '32f24fccbfc6785dfbc299722113e91c641d8e67', class: "title" }, "Quick Create"), h("button", { key: '0fb580f067177603bb30ab163d1f93caf50967a1', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '60849ad3405b4fe90271c5eefecc17e304f44697', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "verdocs-quick-functions"; }
|
|
28
28
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@ export class VerdocsSearchTabs {
|
|
|
4
4
|
this.selected = 'all';
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return h("div", { key: '
|
|
7
|
+
return h("div", { key: '434e08fb0ce4a00df6c11d3495c500d54874c494' }, "\u00A0");
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "verdocs-search-tabs"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -130,6 +130,7 @@ export class VerdocsAuth {
|
|
|
130
130
|
this.submitting = true;
|
|
131
131
|
this.tempAuthEndpoint.clearSession();
|
|
132
132
|
const formattedPhone = convertToE164(this.phone);
|
|
133
|
+
const localeData = Intl.DateTimeFormat().resolvedOptions();
|
|
133
134
|
createProfile(this.tempAuthEndpoint, {
|
|
134
135
|
email: this.email,
|
|
135
136
|
password: this.password,
|
|
@@ -137,6 +138,9 @@ export class VerdocsAuth {
|
|
|
137
138
|
last_name: this.last_name,
|
|
138
139
|
org_name: this.org_name,
|
|
139
140
|
phone: formattedPhone,
|
|
141
|
+
// @ts-expect-error - v6.9.13
|
|
142
|
+
timezone: localeData.timeZone,
|
|
143
|
+
locale: localeData.locale,
|
|
140
144
|
})
|
|
141
145
|
.then(r => {
|
|
142
146
|
console.log('[AUTH] Profile creation result', r);
|