@verdocs/web-sdk 1.13.23 → 1.13.25
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/Recipients-2b21fdea.js +79 -0
- package/dist/cjs/{TemplateStore-b298da9c.js → TemplateStore-95728963.js} +1 -1
- package/dist/cjs/ipc-test.cjs.entry.js +36 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-461b1a90.js → utils-12a82a63.js} +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_3.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +18 -3
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +7 -127
- package/dist/cjs/verdocs-template-attachments_2.cjs.entry.js +235 -0
- package/dist/cjs/{verdocs-template-document-page.cjs.entry.js → verdocs-template-document-page_2.cjs.entry.js} +47 -2
- package/dist/cjs/{verdocs-template-attachments_4.cjs.entry.js → verdocs-template-fields_4.cjs.entry.js} +239 -230
- package/dist/cjs/verdocs-template-name.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +8 -7
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +1 -57
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +3 -3
- package/dist/collection/components/{elements → envelopes}/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +15 -3
- package/dist/collection/components/{elements → envelopes}/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
- package/dist/collection/components/{controls → envelopes}/verdocs-status-indicator/verdocs-status-indicator.stories.js +1 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +2 -2
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +1 -1
- package/dist/collection/components/other/ipctest/ipc-test.css +4 -0
- package/dist/collection/components/other/ipctest/ipc-test.js +79 -0
- package/dist/collection/components/other/ipctest/ipc-test.stories.js +8 -0
- package/dist/collection/components/{controls → templates}/verdocs-template-card/verdocs-template-card.stories.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.css +4 -3
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +4 -1
- package/dist/collection/components/{controls → templates}/verdocs-template-tags/verdocs-template-tags.stories.js +1 -1
- package/dist/collection/utils/utils.js +1 -1
- package/dist/components/Recipients.js +74 -0
- package/dist/components/VerdocsEndpoint.js +30 -30
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.js +1 -0
- package/dist/components/ipc-test.d.ts +11 -0
- package/dist/components/ipc-test.js +142 -0
- package/dist/components/utils.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +17 -2
- package/dist/components/verdocs-field-date.js +2 -2
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-sign.js +2 -122
- package/dist/components/verdocs-template-role-properties2.js +5 -2
- package/dist/custom-elements.json +13 -0
- package/dist/docs.json +109 -8
- package/dist/esm/Recipients-198b2531.js +74 -0
- package/dist/esm/{TemplateStore-e10b2d6a.js → TemplateStore-09fc7336.js} +1 -1
- package/dist/esm/ipc-test.entry.js +32 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-666d38e6.js → utils-81958236.js} +2 -2
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_3.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-dropdown_2.entry.js +2 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +18 -3
- package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js +3 -3
- package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-field-initial.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-field-signature.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-preview.entry.js +3 -3
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +3 -3
- package/dist/esm/verdocs-sign.entry.js +4 -124
- package/dist/esm/verdocs-template-attachments_2.entry.js +230 -0
- package/dist/esm/{verdocs-template-document-page.entry.js → verdocs-template-document-page_2.entry.js} +47 -3
- package/dist/esm/{verdocs-template-attachments_4.entry.js → verdocs-template-fields_4.entry.js} +236 -227
- package/dist/esm/verdocs-template-name.entry.js +2 -2
- package/dist/esm/verdocs-template-properties.entry.js +2 -2
- package/dist/esm/verdocs-template-reminders.entry.js +2 -2
- package/dist/esm/verdocs-template-visibility.entry.js +2 -2
- package/dist/esm/verdocs-view.entry.js +2 -2
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Recipients-198b2531.js +1 -0
- package/dist/esm-es5/{TemplateStore-e10b2d6a.js → TemplateStore-09fc7336.js} +1 -1
- package/dist/esm-es5/{VerdocsEndpoint-6d7a17ce.js → VerdocsEndpoint-5b92f115.js} +1 -1
- package/dist/esm-es5/ipc-test.entry.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{utils-666d38e6.js → utils-81958236.js} +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-send/verdocs-send.d.ts +1 -1
- package/dist/types/components/{controls → envelopes}/verdocs-status-indicator/verdocs-status-indicator.d.ts +1 -1
- package/dist/types/components/other/ipctest/ipc-test.d.ts +17 -0
- package/dist/types/components/other/ipctest/ipc-test.stories.d.ts +4 -0
- package/dist/types/components.d.ts +31 -2
- package/dist/types/utils/utils.d.ts +2 -2
- package/dist/verdocs-web-sdk/p-0190ff6e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-05e83caa.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-06f625f2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ff662b13.js → p-0b4ea5f9.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e4a79e4e.system.entry.js → p-0cb24fef.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-0f66f6bb.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-69f2485d.system.entry.js → p-0fb5286f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-109fb530.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-ac858763.entry.js → p-1102db6a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-12e54f39.js +1 -0
- package/dist/verdocs-web-sdk/{p-9c73497e.system.entry.js → p-135f1746.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ca3e8884.entry.js → p-15505723.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6cfa1d78.entry.js → p-1748d4d6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-92dfbbfc.system.entry.js → p-1a0aa7fd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-86e2eeed.entry.js → p-1b5e57bb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7d45c1e8.system.entry.js → p-1b71f48b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1cf38cea.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-04ed4943.entry.js → p-1fe05339.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7399931a.system.entry.js → p-21e90bbf.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e01505dd.system.entry.js → p-25bd103e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-62421ca6.system.entry.js → p-27ebad6b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-571e7b9f.system.entry.js → p-2e9fb01e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c3f9589d.system.entry.js → p-2ee6b0a0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-86eda4dc.entry.js → p-31295791.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3d743079.js → p-31f88d95.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9d90ed3d.system.entry.js → p-3e4f73cb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0e7b3b3e.entry.js → p-4157aa74.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-494d4276.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-a4f4ab22.system.entry.js → p-4c988fa0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-670b93df.entry.js → p-4cf7c407.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0803ccbb.system.entry.js → p-4d5c78b4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-020e4628.system.entry.js → p-4fdcfed5.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3050ac80.system.entry.js → p-52f39e6b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e27e0d11.entry.js → p-542994b3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-54c4ca7d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-5597b4b3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-28ed5eb8.system.entry.js → p-61979b22.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9829a091.entry.js → p-661654d8.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e616c947.system.entry.js → p-6c9a3b1d.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f61f02a7.entry.js → p-6e62e65a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5ee8cd47.entry.js → p-6e7a1333.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-05f9d3db.entry.js → p-7ab07c61.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ededd783.entry.js → p-7ac080d6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-120f29bd.system.entry.js → p-7c10cd2f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-508faaf0.entry.js → p-7c86d53a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8aa4815e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-14aebbbf.entry.js → p-8c536274.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c80f119a.js → p-92664ee4.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ad0c0136.system.entry.js → p-938031a9.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-34ea6a57.system.entry.js → p-963a4b4a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a1a44ca.entry.js → p-98ef1df0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9b18321e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9be9c835.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-e9f96f72.entry.js → p-a294ef80.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0251b5d9.entry.js → p-a80035a6.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-aa9627a3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-988be3bf.entry.js → p-b507c2a5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-69f112cd.system.entry.js → p-b7d66b24.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-c5bb9a72.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b85beb7d.system.js → p-c5dde9c7.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-5efae6e5.entry.js → p-c99689c1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-097248a9.system.entry.js → p-d9843ba6.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-26cfd4f0.entry.js → p-db5f1a7d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-365a0216.system.js → p-dc849a58.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6fb72d5d.system.entry.js → p-de9c4feb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e0386f1b.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-faf68b59.system.entry.js → p-e7058963.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7e69f7d0.system.entry.js → p-f1cc5b3c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f43112b2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-99c6e729.system.js → p-f4c4f8dd.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-f57e126e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/Roles-9b593b95.js +0 -28
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +0 -220
- package/dist/cjs/verdocs-toolbar-icon.cjs.entry.js +0 -51
- package/dist/esm/Roles-6eb459df.js +0 -24
- package/dist/esm/verdocs-template-role-properties_2.entry.js +0 -215
- package/dist/esm/verdocs-toolbar-icon.entry.js +0 -47
- package/dist/esm-es5/Roles-6eb459df.js +0 -1
- package/dist/esm-es5/verdocs-template-attachments_4.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-document-page.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +0 -1
- package/dist/esm-es5/verdocs-toolbar-icon.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-020f3b2e.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-10d370b9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2d9420df.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-32006e06.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-42aa31a9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5e535535.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-671bb1f3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8027431e.js +0 -1
- package/dist/verdocs-web-sdk/p-8229e6df.system.js +0 -1
- package/dist/verdocs-web-sdk/p-91fbe6aa.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-99b4096d.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a3931094.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b5ea612a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c908ce71.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d8afc5d2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e7298e7a.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f5075faa.entry.js +0 -1
- package/dist/cjs/{VerdocsEndpoint-e6517a50.js → VerdocsEndpoint-f2af9468.js} +30 -30
- package/dist/collection/components/{elements → controls}/verdocs-component-error/verdocs-component-error.css +0 -0
- package/dist/collection/components/{elements → controls}/verdocs-component-error/verdocs-component-error.js +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-contact-picker/verdocs-contact-picker.css +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-contact-picker/verdocs-contact-picker.js +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-contact-picker/verdocs-contact-picker.stories.js +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-envelope-document-page/verdocs-envelope-document-page.css +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-envelope-document-page/verdocs-envelope-document-page.js +0 -0
- package/dist/collection/components/{elements → envelopes}/verdocs-envelope-sidebar/verdocs-envelope-sidebar.css +0 -0
- package/dist/collection/components/{controls → envelopes}/verdocs-status-indicator/recipient-flow.js +0 -0
- package/dist/collection/components/{controls → envelopes}/verdocs-status-indicator/verdocs-status-indicator.css +0 -0
- package/dist/collection/components/{controls → envelopes}/verdocs-status-indicator/verdocs-status-indicator.js +0 -0
- package/dist/collection/components/{controls → templates}/verdocs-template-card/verdocs-template-card.css +0 -0
- package/dist/collection/components/{controls → templates}/verdocs-template-card/verdocs-template-card.js +0 -0
- package/dist/collection/components/{controls → templates}/verdocs-template-tags/verdocs-template-tags.css +0 -0
- package/dist/collection/components/{controls → templates}/verdocs-template-tags/verdocs-template-tags.js +0 -0
- package/dist/esm/{VerdocsEndpoint-6d7a17ce.js → VerdocsEndpoint-5b92f115.js} +30 -30
- /package/dist/types/components/{elements → controls}/verdocs-component-error/verdocs-component-error.d.ts +0 -0
- /package/dist/types/components/{elements → envelopes}/verdocs-contact-picker/verdocs-contact-picker.d.ts +0 -0
- /package/dist/types/components/{elements → envelopes}/verdocs-contact-picker/verdocs-contact-picker.stories.d.ts +0 -0
- /package/dist/types/components/{elements → envelopes}/verdocs-envelope-document-page/verdocs-envelope-document-page.d.ts +0 -0
- /package/dist/types/components/{elements → envelopes}/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +0 -0
- /package/dist/types/components/{elements → envelopes}/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.d.ts +0 -0
- /package/dist/types/components/{controls → envelopes}/verdocs-status-indicator/recipient-flow.d.ts +0 -0
- /package/dist/types/components/{controls → envelopes}/verdocs-status-indicator/verdocs-status-indicator.stories.d.ts +0 -0
- /package/dist/types/components/{controls → templates}/verdocs-template-card/verdocs-template-card.d.ts +0 -0
- /package/dist/types/components/{controls → templates}/verdocs-template-card/verdocs-template-card.stories.d.ts +0 -0
- /package/dist/types/components/{controls → templates}/verdocs-template-tags/verdocs-template-tags.d.ts +0 -0
- /package/dist/types/components/{controls → templates}/verdocs-template-tags/verdocs-template-tags.stories.d.ts +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-d1c37175.system.js","./p-54498887.system.js","./p-365a0216.system.js","./p-7efdefa3.system.js","./p-d50523fd.system.js","./p-99c6e729.system.js","./p-187b20b7.system.js","./p-51a3ea62.system.js","./p-bbee73c8.system.js","./p-327858f0.system.js"],(function(e){"use strict";var t,n,i,r,o,s,a,l,d,c,u,h,p,f,v,g,m,b,x,w,y,I,k;return{setters:[function(e){t=e.r;n=e.c;i=e.h;r=e.H;o=e.F},function(e){s=e.b;a=e.t;l=e.u;d=e.c;c=e.d},function(e){u=e.R},function(e){h=e.V},function(e){p=e.a;f=e.i},function(e){v=e.f;g=e.i},function(e){m=e.s;b=e.u;x=e.a;w=e.r;y=e.b},function(e){I=e.S},function(e){k=e.f},function(){},function(){}],execute:function(){var S=undefined&&undefined.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(e){o(e)}}function a(e){try{l(i["throw"](e))}catch(e){o(e)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};var F=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var N=function(e,t,n,i){return S(void 0,void 0,void 0,(function(){return F(this,(function(r){return[2,e.api.put("/envelopes/".concat(t,"/recipients/").concat(n),i).then((function(e){return e.data}))]}))}))};var _=function(e,t,n){return N(e,t,n,{action:"submit"})};var E=function(e,t,n){return N(e,t,n,{action:"decline"})};var D=function(e,t,n,i){return N(e,t,n,{action:"update",agreed:i})};var L=function(e,t,n){var i=new FormData;i.append("signature",n,t);return e.api.post("/signatures",i).then((function(e){return e.data}))};var A=function(e,t,n){var i=new FormData;i.append("initial",n,t);return e.api.post("/initials",i).then((function(e){return e.data}))};var C='verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}';var R=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var G=[{id:"print",label:"Print"},{id:"download",label:"Download"}];var P=e("verdocs_sign",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.envelopeLoaded=n(this,"envelopeLoaded",7);this.envelopeUpdated=n(this,"envelopeUpdated",7);this.endpoint=null;this.recipientIndex=-1;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.envelope=null;this.roleNames=[];this.recipient=null;this.signerToken=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.errorMessage="";this.focusedField="";this.submitting=false;this.isDone=false;this.showDone=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document"}e.prototype.componentWillLoad=function(){this.endpoint=new h({sessionType:"signing"})};e.prototype.componentWillRender=function(){return S(this,void 0,void 0,(function(){var e,t,n,i,r,o,l,d,c,u,h,p,f;var v=this;return F(this,(function(g){switch(g.label){case 0:if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new I("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new I("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(n=this.sdkError)===null||n===void 0?void 0:n.emit(new I("[SIGN] Missing required inviteCode",500,""));return[2]}g.label=1;case 1:g.trys.push([1,4,,5]);console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,s(this.endpoint,{envelopeId:this.envelopeId,roleId:this.roleId,inviteCode:this.inviteCode})];case 2:d=g.sent(),c=d.session,u=d.recipient,h=d.signerToken;console.log("[SIGN] Loaded signing session ".concat(c.email," / ").concat(c.profile_id));this.recipient=u;console.log("[SIGN] We are recipient",this.recipient);this.signerToken=h;this.endpoint.setToken(h);if(this.agreed){this.nextButtonLabel="Next"}p=this;return[4,a(this.endpoint,this.envelopeId)];case 3:p.envelope=g.sent();this.roleNames=this.envelope.recipients.map((function(e){return e.role_name}));if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.recipientIndex=this.envelope.recipients.findIndex((function(e){return e.role_name==v.roleId}));if(this.recipientIndex>-1){this.recipient=this.envelope.recipients[this.recipientIndex];this.agreed=this.recipient.agreed;console.log("[SIGN] Found our recipient in the envelope",this.recipientIndex,this.recipient)}else{console.log("[SIGN] Could not find our recipient record",this.roleId,this.envelope.recipients)}this.isDone=["submitted","canceled","declined"].includes(this.recipient.status);this.checkRecipientFields();(i=this.envelopeLoaded)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope});return[3,5];case 4:f=g.sent();console.log("Error with signing session",f);(r=this.sdkError)===null||r===void 0?void 0:r.emit(new I(f.message,(o=f.response)===null||o===void 0?void 0:o.status,(l=f.response)===null||l===void 0?void 0:l.data));return[3,5];case 5:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;D(this.endpoint,this.envelopeId,this.roleId,true).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var n,i,r;console.log("Update failure",t);e.submitting=false;(n=e.sdkError)===null||n===void 0?void 0:n.emit(new I(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(r=t.response)===null||r===void 0?void 0:r.data))}))};e.prototype.handleOptionSelected=function(e){return S(this,void 0,void 0,(function(){var t,n,i,r,o,s,a;return F(this,(function(l){switch(l.label){case 0:s=e.detail.id;switch(s){case"later":return[3,1];case"claim":return[3,2];case"decline":return[3,3];case"print":return[3,5];case"download":return[3,6]}return[3,7];case 1:this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});return[3,7];case 2:window.alert("This feature will be available in an upcoming release.");(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});return[3,7];case 3:this.submitting=true;return[4,E(this.endpoint,this.envelopeId,this.roleId)];case 4:a=l.sent();console.log("Decline result",a);(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.isDone=true;return[3,7];case 5:window.print();(r=this.envelopeUpdated)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,7];case 6:m(this.endpoint,this.envelope,this.envelope.envelope_document_id).catch((function(e){console.log("Error downloading PDF",e)}));(o=this.envelopeUpdated)===null||o===void 0?void 0:o.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"});return[3,7];case 7:return[2]}}))}))};e.prototype.updateRecipientFieldValue=function(e,t){var n=this;console.log("[SIGN] updateRecipientFieldValue",e);this.recipient.fields.forEach((function(i){if(i.name===e){i.settings=t.settings;b(i);n.checkRecipientFields()}}))};e.prototype.saveFieldChange=function(e,t){var n=this;console.log("[SIGN] updateRecipientFieldValue",e);l(this.endpoint,this.envelopeId,e,t).then((function(t){return n.updateRecipientFieldValue(e,t)})).catch((function(e){var t,i,r,o,s,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((r=(i=e.response)===null||i===void 0?void 0:i.data)===null||r===void 0?void 0:r.error)==="jwt expired"){console.log("[SIGN] Signing session expired");n.errorMessage="Signing session expired. Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(o=n.sdkError)===null||o===void 0?void 0:o.emit(new I(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,t){return S(this,void 0,void 0,(function(){var n,i,r,o,s,s,a,l,u,h;var p=this;return F(this,(function(f){switch(f.label){case 0:n=t.target,i=n.value,r=n.checked;o=e.type;switch(o){case"textbox":return[3,1];case"checkbox_group":return[3,2];case"radio_button_group":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,8];case"date":return[3,11];case"timestamp":return[3,12]}return[3,13];case 1:return[2,this.saveFieldChange(e.name,{prepared:false,value:i})];case 2:{s=e.settings.options.map((function(e){return{id:e.id,checked:t.target.checked}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:s}})]}f.label=3;case 3:{s=e.settings.options.map((function(e){return{id:e.id,selected:t.target.value===e.id}}));return[2,this.saveFieldChange(e.name,{prepared:false,value:{options:s}})]}f.label=4;case 4:return[2,this.saveFieldChange(e.name,{prepared:false,value:t.detail})];case 5:return[4,fetch(t.detail)];case 6:return[4,f.sent().blob()];case 7:a=f.sent();return[2,A(this.endpoint,"initial",a).then((function(t){return S(p,void 0,void 0,(function(){var n;return F(this,(function(i){switch(i.label){case 0:return[4,c(this.endpoint,this.envelopeId,e.name,t.id)];case 1:n=i.sent();this.updateRecipientFieldValue(e.name,n);return[2]}}))}))}))];case 8:return[4,fetch(t.detail)];case 9:return[4,f.sent().blob()];case 10:l=f.sent();return[2,L(this.endpoint,"signature",l).then((function(t){return S(p,void 0,void 0,(function(){var n;return F(this,(function(i){switch(i.label){case 0:return[4,d(this.endpoint,this.envelopeId,e.name,t.id)];case 1:n=i.sent();this.updateRecipientFieldValue(e.name,n);return[2]}}))}))}))];case 11:u=t.target.getAttribute("iso");console.log("Formatting date for save",u);h=k(new Date(u),"PP");console.log("Formatted",h);return[2,this.saveFieldChange(e.name,{prepared:false,value:h})];case 12:console.log("Updating timestamp",{value:i,ts:t.target.getAttribute("timestamp")});return[3,14];case 13:console.log("Unhandled field update",{value:i,checked:r},e);return[3,14];case 14:return[2]}}))}))};e.prototype.isFieldValid=function(e){var t,n,i,r,o,s,a;var l=e.required,d=l===void 0?false:l;var c=e.settings||{},u=c.result,h=u===void 0?"":u,v=c.value,g=v===void 0?"":v,m=c.base64,b=m===void 0?"":m;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return f(h);case"phone":return p(h);default:return!d||h!==""}case"signature":case"initial":return!d||b!=="";case"timestamp":return true;case"textarea":case"date":case"attachment":return!d||h!=="";case"dropdown":return!d||g!=="";case"checkbox_group":var x=(((i=(n=e.settings)===null||n===void 0?void 0:n.options)===null||i===void 0?void 0:i.filter((function(e){return e.checked})))||[]).length;return!d||x>=(((r=e.settings)===null||r===void 0?void 0:r.minimum_checked)||0)&&x<=(((o=e.settings)===null||o===void 0?void 0:o.maximum_checked)||999);case"radio_button_group":return!d||(((a=(s=e.settings)===null||s===void 0?void 0:s.options)===null||a===void 0?void 0:a.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleNext=function(){return S(this,void 0,void 0,(function(){var e,t,n,i,r,o,s,a,l,d;var c=this;return F(this,(function(u){switch(u.label){case 0:if(!this.nextSubmits)return[3,5];u.label=1;case 1:u.trys.push([1,3,,4]);this.submitting=true;return[4,_(this.endpoint,this.envelopeId,this.roleId)];case 2:t=u.sent();console.log("[SIGN] Submitted successfully",t);this.recipient.status="submitted";this.showDone=true;this.isDone=true;return[3,4];case 3:n=u.sent();console.log("[SIGN] Error submitting",n);return[3,4];case 4:this.submitting=false;return[2];case 5:i=this.recipient.fields.filter((function(e){return e.required}));r=i.findIndex((function(e){return e.name===c.focusedField}));o=r+1;if(o>=i.length){o=0}s=i[o];a=0;if(a<i.length&&["signature","initial"].includes(s.type)&&((e=s.settings)===null||e===void 0?void 0:e.result)==="signed"){a++;o++;if(o>=i.length){o=0}s=i[o]}if(a>=i.length){s=null}if(s){l=y(s);d=document.getElementById(l);d===null||d===void 0?void 0:d.focusField();this.focusedField=s.name}return[2]}}))}))};e.prototype.checkRecipientFields=function(){var e=this;var t=this.recipient.fields.filter((function(t){return!e.isFieldValid(t)}));if(t.length<1){this.nextButtonLabel="Finish";this.nextSubmits=true}else{console.log("[SIGN] Remaining invalid fields",t);this.nextButtonLabel="Next";this.nextSubmits=false}};e.prototype.attachFieldAttributes=function(e,t,n,i){var r=this;var o;i.addEventListener("input",(function(e){console.log("[SIGN] onfieldInput",e.detail,e.target.value);if(e.target.name.includes("checkbox_group")||e.target.name.includes("radio_button_group")){console.log("CB",e.target);r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}else{r.checkRecipientFields()}}));i.addEventListener("focusout",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));i.addEventListener("fieldChange",(function(e){return r.handleFieldChange(t,e).finally((function(){return r.checkRecipientFields()}))}));i.setAttribute("roleindex",n);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);i.setAttribute("initials",this.recipient?v(this.recipient.full_name):"");i.setAttribute("name",((o=this.recipient)===null||o===void 0?void 0:o.full_name)||"")};e.prototype.handlePageRendered=function(e){var t=this;var n=e.detail;var i=x(this.roleNames,this.recipient.role_name);var r=this.recipient.fields.filter((function(e){return e.page===n.pageNumber}));console.log("[SIGN] Page rendered, updating fields",{pageInfo:n,roleIndex:i,recipientFields:r});r.forEach((function(e){var r=w(e,n,i,{disabled:false,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(n,e,i,r)}))}else{t.attachFieldAttributes(n,e,i,r)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status===u.SUBMITTED||e.status===u.CANCELED||e.status===u.DECLINED)})).forEach((function(e){e.fields.forEach((function(e){var r=w(e,n,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!r){return}if(Array.isArray(r)){r.map((function(r){return t.attachFieldAttributes(n,e,i,r)}))}else{t.attachFieldAttributes(n,e,i,r)}}))}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name})).forEach((function(e){var i=x(t.roleNames,e.role_name);var r=e.fields.filter((function(e){return e.page===n.pageNumber}));r.forEach((function(e){var r=w(e,n,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!r){return}if(r.setAttribute){r.setAttribute("roleindex",i);r.setAttribute("xScale",n.xScale);r.setAttribute("yScale",n.yScale)}}))}));this.checkRecipientFields()};e.prototype.render=function(){var e=this;if(!this.envelope){return i(r,null,i("verdocs-loader",null))}if(this.isDone){return i(r,{class:{agreed:this.agreed}},i("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var n;return(n=e.sdkError)===null||n===void 0?void 0:n.emit(t.detail)}}),this.errorMessage&&i("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))}return i(r,{class:{agreed:this.agreed}},!this.finishLater&&i("div",{class:"intro"},i("div",{class:"inner"},"Please review and act on these documents.")),i("div",{id:"verdocs-sign-header"},i("div",{class:"inner"},!this.agreed?i("div",{class:"agree"},i("verdocs-checkbox",{name:"agree",label:"I agree to use electronic records and signatures.",onInput:function(){return e.handleClickAgree()}})):i(o,null,i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},this.envelope.name),i("div",{style:{flex:"1"}})),!this.finishLater&&i("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!this.agreed,onClick:function(){return e.handleNext()}}),i("div",{style:{marginLeft:"10px"}}),i("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?R:G,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),!this.agreed?i("div",{class:"cover"}):i("div",{style:{display:"none"}}),i("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(this.envelope.documents||[]).map((function(t){var n=g(1,t.page_numbers);return i(o,null,n.map((function(n){return i("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:612,virtualHeight:792,pageNumber:n,onPageRendered:function(t){return e.handlePageRendered(t)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&i("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){return e.showFinishLater=false}}),this.errorMessage&&i("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:function(){return e.errorMessage=""}}),this.showDone&&i("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting&&i("div",{class:"loading-indicator"},i("verdocs-loader",null)))};return e}());P.style=C}}}));
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as i,h as s,H as e,a as h}from"./p-9cf1a627.js";import"./p-05788c2b.js";import{g as a}from"./p-567a6e7c.js";import{V as o}from"./p-ff662b13.js";import{t as r}from"./p-3d743079.js";import"./p-eab67c09.js";import"./p-b3ec6306.js";import"./p-aa124212.js";import"./p-ab01f71e.js";const d=class{constructor(s){t(this,s),this.pageRendered=i(this,"pageRendered",7),this.endpoint=o.getDefault(),this.templateId="",this.documentId="",this.pageNumber=1,this.virtualWidth=612,this.virtualHeight=792,this.layers=[{name:"page",type:"canvas"}],this.containerId=`verdocs-document-page-${Math.random().toString(36).substring(2,11)}`,this.renderedWidth=this.virtualWidth,this.renderedHeight=this.virtualHeight,this.naturalWidth=this.virtualWidth,this.naturalHeight=this.virtualHeight,this.aspectRatio=this.virtualWidth/this.virtualHeight,this.skipFirstNotification=!0,this.pageDisplayUri=""}async componentWillLoad(){this.pageDisplayUri=await a(this.endpoint,this.templateId,this.documentId,this.pageNumber)}componentDidLoad(){this.resizeObserver=new ResizeObserver(r((t=>{for(const i of t){const t=i.contentRect.width;this.renderedWidth=t,this.renderedHeight=this.virtualHeight*(t/this.virtualWidth)}this.notifyRenderedSize()}),100)),this.resizeObserver.observe(this.container)}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}notifyRenderedSize(){this.skipFirstNotification?this.skipFirstNotification=!1:this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})}render(){const t=`${this.renderedHeight}px`;return s(e,{id:`${this.containerId}`,style:{height:t,flex:`0 0 ${t}`}},this.layers.map((i=>"div"===i.type?s("div",{class:"verdocs-template-document-page-layer",id:`${this.containerId}-${i.name}`,style:{height:t}}):this.pageDisplayUri?s("img",{class:"verdocs-template-document-page-layer img",id:`${this.containerId}-${i.name}`,src:this.pageDisplayUri,alt:`Page ${this.pageNumber}`,"aria-hidden":!0,loading:"lazy",onLoad:t=>{this.naturalWidth=t.target.naturalWidth,this.naturalHeight=t.target.naturalHeight,this.aspectRatio=this.naturalWidth/this.naturalHeight,this.virtualHeight=this.virtualWidth/this.aspectRatio,this.renderedHeight=t.target.offsetWidth/this.aspectRatio}}):s("div",null))))}get container(){return h(this)}};d.style="verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";export{d as verdocs_template_document_page}
|
@@ -1 +0,0 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function s(t){try{c(n.next(t))}catch(t){a(t)}}function o(t){try{c(n["throw"](t))}catch(t){a(t)}}function c(t){t.done?i(t.value):r(t.value).then(s,o)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,r,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){i.label=s[1];break}if(s[0]===6&&i.label<a[1]){i.label=a[1];a=s;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(s);break}if(a[2])i.ops.pop();i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t];r=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-934a39b4.system.js","./p-54498887.system.js","./p-6e9af353.system.js","./p-365a0216.system.js","./p-99c6e729.system.js","./p-bbee73c8.system.js","./p-d1c37175.system.js","./p-327858f0.system.js","./p-51a3ea62.system.js"],(function(t){"use strict";var e,i,n,r,a,s,o,c;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;a=t.a},function(){},function(t){s=t.g},function(t){o=t.V},function(t){c=t.t},function(){},function(){},function(){},function(){}],execute:function(){var h="verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}";var u=t("verdocs_template_document_page",function(){function t(t){e(this,t);this.pageRendered=i(this,"pageRendered",7);this.endpoint=o.getDefault();this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri=""}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:t=this;return[4,s(this.endpoint,this.templateId,this.documentId,this.pageNumber)];case 1:t.pageDisplayUri=e.sent();return[2]}}))}))};t.prototype.componentDidLoad=function(){var t=this;this.resizeObserver=new ResizeObserver(c((function(e){for(var i=0,n=e;i<n.length;i++){var r=n[i];var a=r.contentRect.width;t.renderedWidth=a;t.renderedHeight=t.virtualHeight*(a/t.virtualWidth)}t.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};t.prototype.disconnectedCallback=function(){var t;(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect()};t.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:this.renderedWidth/this.virtualWidth,yScale:this.renderedHeight/this.virtualHeight})};t.prototype.render=function(){var t=this;var e="".concat(this.renderedHeight,"px");return n(r,{id:"".concat(this.containerId),style:{height:e,flex:"0 0 ".concat(e)}},this.layers.map((function(i){return i.type==="div"?n("div",{class:"verdocs-template-document-page-layer",id:"".concat(t.containerId,"-").concat(i.name),style:{height:e}}):t.pageDisplayUri?n("img",{class:"verdocs-template-document-page-layer img",id:"".concat(t.containerId,"-").concat(i.name),src:t.pageDisplayUri,alt:"Page ".concat(t.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(e){t.naturalWidth=e.target.naturalWidth;t.naturalHeight=e.target.naturalHeight;t.aspectRatio=t.naturalWidth/t.naturalHeight;t.virtualHeight=t.virtualWidth/t.aspectRatio;t.renderedHeight=e.target.offsetWidth/t.aspectRatio}}):n("div",null)})))};Object.defineProperty(t.prototype,"container",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());u.style=h}}}));
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as i,h as t,H as s,F as n}from"./p-9cf1a627.js";import{b as o,t as a,u as l,c as r,d}from"./p-b3ec6306.js";import{R as c}from"./p-05788c2b.js";import{V as h}from"./p-ff662b13.js";import{a as u,i as p}from"./p-e662f81b.js";import{f as v,i as g}from"./p-7291906c.js";import{s as f,u as m,a as x,r as b,b as w}from"./p-3d743079.js";import{S as y}from"./p-7a1b2643.js";import{f as k}from"./p-ab01f71e.js";import"./p-eab67c09.js";import"./p-aa124212.js";var S=function(e,i,t,s){return n=void 0,o=void 0,l=function(){return function(e,i){var t,s,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(r){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(t=1,s&&(n=2&l[0]?s.return:l[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,l[1])).done)return n;switch(s=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,s=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((n=(n=a.trys).length>0&&n[n.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=i.call(e,a)}catch(e){l=[6,e],s=0}finally{t=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,r])}}}(this,(function(){return[2,e.api.put("/envelopes/".concat(i,"/recipients/").concat(t),s).then((function(e){return e.data}))]}))},new((a=void 0)||(a=Promise))((function(e,i){function t(e){try{r(l.next(e))}catch(e){i(e)}}function s(e){try{r(l.throw(e))}catch(e){i(e)}}function r(i){var n;i.done?e(i.value):(n=i.value,n instanceof a?n:new a((function(e){e(n)}))).then(t,s)}r((l=l.apply(n,o||[])).next())}));var n,o,a,l};const I=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}],N=[{id:"print",label:"Print"},{id:"download",label:"Download"}],G=class{constructor(t){e(this,t),this.sdkError=i(this,"sdkError",7),this.envelopeLoaded=i(this,"envelopeLoaded",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.endpoint=null,this.recipientIndex=-1,this.envelopeId=null,this.roleId=null,this.inviteCode=null,this.headerTargetId=null,this.envelope=null,this.roleNames=[],this.recipient=null,this.signerToken=null,this.hasSignature=!1,this.nextButtonLabel="Start",this.nextSubmits=!1,this.errorMessage="",this.focusedField="",this.submitting=!1,this.isDone=!1,this.showDone=!1,this.finishLater=!1,this.showFinishLater=!1,this.agreed=!1,this.documentsSingularPlural="document"}componentWillLoad(){this.endpoint=new h({sessionType:"signing"})}async componentWillRender(){var e,i,t,s,n,l,r;if(this.envelopeId)if(this.roleId)if(this.inviteCode)try{console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const{session:e,recipient:i,signerToken:t}=await o(this.endpoint,{envelopeId:this.envelopeId,roleId:this.roleId,inviteCode:this.inviteCode});console.log(`[SIGN] Loaded signing session ${e.email} / ${e.profile_id}`),this.recipient=i,console.log("[SIGN] We are recipient",this.recipient),this.signerToken=t,this.endpoint.setToken(t),this.agreed&&(this.nextButtonLabel="Next"),this.envelope=await a(this.endpoint,this.envelopeId),this.roleNames=this.envelope.recipients.map((e=>e.role_name)),this.envelope.documents.length>0&&(this.documentsSingularPlural="document(s)"),this.recipientIndex=this.envelope.recipients.findIndex((e=>e.role_name==this.roleId)),this.recipientIndex>-1?(this.recipient=this.envelope.recipients[this.recipientIndex],this.agreed=this.recipient.agreed,console.log("[SIGN] Found our recipient in the envelope",this.recipientIndex,this.recipient)):console.log("[SIGN] Could not find our recipient record",this.roleId,this.envelope.recipients),this.isDone=["submitted","canceled","declined"].includes(this.recipient.status),this.checkRecipientFields(),null===(s=this.envelopeLoaded)||void 0===s||s.emit({endpoint:this.endpoint,envelope:this.envelope})}catch(e){console.log("Error with signing session",e),null===(n=this.sdkError)||void 0===n||n.emit(new y(e.message,null===(l=e.response)||void 0===l?void 0:l.status,null===(r=e.response)||void 0===r?void 0:r.data))}else null===(t=this.sdkError)||void 0===t||t.emit(new y("[SIGN] Missing required inviteCode",500,""));else null===(i=this.sdkError)||void 0===i||i.emit(new y("[SIGN] Missing required roleId",500,""));else null===(e=this.sdkError)||void 0===e||e.emit(new y("[SIGN] Missing required envelopId",500,""))}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null,i=document.getElementById("verdocs-sign-header");e&&i&&(console.log("[SIGN] Moving header"),i.remove(),e.append(i))}handleClickAgree(){var e,i,t;this.submitting=!0,(e=this.endpoint,i=this.envelopeId,t=this.roleId,!0,S(e,i,t,{action:"update",agreed:true})).then((()=>{var e;this.nextButtonLabel="Next",this.recipient.agreed=!0,this.submitting=!1,this.agreed=!0,null===(e=this.envelopeUpdated)||void 0===e||e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var i,t,s;console.log("Update failure",e),this.submitting=!1,null===(i=this.sdkError)||void 0===i||i.emit(new y(e.message,null===(t=e.response)||void 0===t?void 0:t.status,null===(s=e.response)||void 0===s?void 0:s.data))}))}async handleOptionSelected(e){var i,t,s,n,o,a,l,r;switch(e.detail.id){case"later":this.finishLater=!0,this.showFinishLater=!0,null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"claim":window.alert("This feature will be available in an upcoming release."),null===(t=this.envelopeUpdated)||void 0===t||t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});break;case"decline":{this.submitting=!0;const e=await(a=this.endpoint,l=this.envelopeId,r=this.roleId,S(a,l,r,{action:"decline"}));console.log("Decline result",e),null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"}),this.submitting=!1,this.isDone=!0}break;case"print":window.print(),null===(n=this.envelopeUpdated)||void 0===n||n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":f(this.endpoint,this.envelope,this.envelope.envelope_document_id).catch((e=>{console.log("Error downloading PDF",e)})),null===(o=this.envelopeUpdated)||void 0===o||o.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})}}updateRecipientFieldValue(e,i){console.log("[SIGN] updateRecipientFieldValue",e),this.recipient.fields.forEach((t=>{t.name===e&&(t.settings=i.settings,m(t),this.checkRecipientFields())}))}saveFieldChange(e,i){console.log("[SIGN] updateRecipientFieldValue",e),l(this.endpoint,this.envelopeId,e,i).then((i=>this.updateRecipientFieldValue(e,i))).catch((e=>{var i,t,s,n,o,a;401===(null===(i=e.response)||void 0===i?void 0:i.status)&&"jwt expired"===(null===(s=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===s?void 0:s.error)?(console.log("[SIGN] Signing session expired"),this.errorMessage="Signing session expired. Please reload your browser to continue."):console.log("[SIGN] Server error",e),null===(n=this.sdkError)||void 0===n||n.emit(new y(e.message,null===(o=e.response)||void 0===o?void 0:o.status,null===(a=e.response)||void 0===a?void 0:a.data))}))}async handleFieldChange(e,i){const{value:t,checked:s}=i.target;switch(e.type){case"textbox":return this.saveFieldChange(e.name,{prepared:!1,value:t});case"checkbox_group":{const t=e.settings.options.map((e=>({id:e.id,checked:i.target.checked})));return this.saveFieldChange(e.name,{prepared:!1,value:{options:t}})}case"radio_button_group":{const t=e.settings.options.map((e=>({id:e.id,selected:i.target.value===e.id})));return this.saveFieldChange(e.name,{prepared:!1,value:{options:t}})}case"dropdown":return this.saveFieldChange(e.name,{prepared:!1,value:i.detail});case"initial":const l=await(await fetch(i.detail)).blob();return(n=this.endpoint,"initial",o=l,a=new FormData,a.append("initial",o,"initial"),n.api.post("/initials",a).then((function(e){return e.data}))).then((async i=>{const t=await d(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t)}));case"signature":const c=await(await fetch(i.detail)).blob();return function(e,i,t){var s=new FormData;return s.append("signature",t,"signature"),e.api.post("/signatures",s).then((function(e){return e.data}))}(this.endpoint,0,c).then((async i=>{const t=await r(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t)}));case"date":const h=i.target.getAttribute("iso");console.log("Formatting date for save",h);const u=k(new Date(h),"PP");return console.log("Formatted",u),this.saveFieldChange(e.name,{prepared:!1,value:u});case"timestamp":console.log("Updating timestamp",{value:t,ts:i.target.getAttribute("timestamp")});break;default:console.log("Unhandled field update",{value:t,checked:s},e)}var n,o,a}isFieldValid(e){var i,t,s,n,o,a,l;const{required:r=!1}=e,{result:d="",value:c="",base64:h=""}=e.settings||{};switch(e.type){case"textbox":switch((null===(i=e.settings)||void 0===i?void 0:i.validator)||""){case"email":return p(d);case"phone":return u(d);default:return!r||""!==d}case"signature":case"initial":return!r||""!==h;case"timestamp":return!0;case"textarea":case"date":case"attachment":return!r||""!==d;case"dropdown":return!r||""!==c;case"checkbox_group":const v=((null===(s=null===(t=e.settings)||void 0===t?void 0:t.options)||void 0===s?void 0:s.filter((e=>e.checked)))||[]).length;return!r||v>=((null===(n=e.settings)||void 0===n?void 0:n.minimum_checked)||0)&&v<=((null===(o=e.settings)||void 0===o?void 0:o.maximum_checked)||999);case"radio_button_group":return!r||((null===(l=null===(a=e.settings)||void 0===a?void 0:a.options)||void 0===l?void 0:l.filter((e=>e.selected)))||[]).length>0;default:return!1}}async handleNext(){var e,i,t,s;if(this.nextSubmits){try{this.submitting=!0;const e=await(i=this.endpoint,t=this.envelopeId,s=this.roleId,S(i,t,s,{action:"submit"}));console.log("[SIGN] Submitted successfully",e),this.recipient.status="submitted",this.showDone=!0,this.isDone=!0}catch(e){console.log("[SIGN] Error submitting",e)}return void(this.submitting=!1)}const n=this.recipient.fields.filter((e=>e.required));let o=n.findIndex((e=>e.name===this.focusedField))+1;o>=n.length&&(o=0);let a=n[o],l=0;if(l<n.length&&["signature","initial"].includes(a.type)&&"signed"===(null===(e=a.settings)||void 0===e?void 0:e.result)&&(l++,o++,o>=n.length&&(o=0),a=n[o]),l>=n.length&&(a=null),a){const e=w(a),i=document.getElementById(e);null==i||i.focusField(),this.focusedField=a.name}}checkRecipientFields(){const e=this.recipient.fields.filter((e=>!this.isFieldValid(e)));e.length<1?(this.nextButtonLabel="Finish",this.nextSubmits=!0):(console.log("[SIGN] Remaining invalid fields",e),this.nextButtonLabel="Next",this.nextSubmits=!1)}attachFieldAttributes(e,i,t,s){var n;s.addEventListener("input",(e=>{console.log("[SIGN] onfieldInput",e.detail,e.target.value),e.target.name.includes("checkbox_group")||e.target.name.includes("radio_button_group")?(console.log("CB",e.target),this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))):this.checkRecipientFields()})),s.addEventListener("focusout",(e=>this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields())))),s.addEventListener("fieldChange",(e=>this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields())))),s.setAttribute("roleindex",t),s.setAttribute("xScale",e.xScale),s.setAttribute("yScale",e.yScale),s.setAttribute("initials",this.recipient?v(this.recipient.full_name):""),s.setAttribute("name",(null===(n=this.recipient)||void 0===n?void 0:n.full_name)||"")}handlePageRendered(e){const i=e.detail,t=x(this.roleNames,this.recipient.role_name),s=this.recipient.fields.filter((e=>e.page===i.pageNumber));console.log("[SIGN] Page rendered, updating fields",{pageInfo:i,roleIndex:t,recipientFields:s}),s.forEach((e=>{const s=b(e,i,t,{disabled:!1,editable:!1,draggable:!1,done:this.isDone});s&&(Array.isArray(s)?s.map((s=>this.attachFieldAttributes(i,e,t,s))):this.attachFieldAttributes(i,e,t,s))})),this.envelope.recipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status===c.SUBMITTED||e.status===c.CANCELED||e.status===c.DECLINED))).forEach((e=>{e.fields.forEach((e=>{const s=b(e,i,t,{disabled:!0,editable:!1,draggable:!1,done:this.isDone});s&&(Array.isArray(s)?s.map((s=>this.attachFieldAttributes(i,e,t,s))):this.attachFieldAttributes(i,e,t,s))}))})),this.envelope.recipients.filter((e=>e.role_name!==this.recipient.role_name)).forEach((e=>{const t=x(this.roleNames,e.role_name);e.fields.filter((e=>e.page===i.pageNumber)).forEach((e=>{const s=b(e,i,t,{disabled:!0,editable:!1,draggable:!1,done:this.isDone});s&&s.setAttribute&&(s.setAttribute("roleindex",t),s.setAttribute("xScale",i.xScale),s.setAttribute("yScale",i.yScale))}))})),this.checkRecipientFields()}render(){return this.envelope?this.isDone?t(s,{class:{agreed:this.agreed}},t("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var i;return null===(i=this.sdkError)||void 0===i?void 0:i.emit(e.detail)}}),this.errorMessage&&t("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:()=>this.errorMessage=""}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:()=>{this.showDone=!1,this.isDone=!0}}),this.submitting&&t("div",{class:"loading-indicator"},t("verdocs-loader",null))):t(s,{class:{agreed:this.agreed}},!this.finishLater&&t("div",{class:"intro"},t("div",{class:"inner"},"Please review and act on these documents.")),t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},this.agreed?t(n,null,t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name),t("div",{style:{flex:"1"}})):t("div",{class:"agree"},t("verdocs-checkbox",{name:"agree",label:"I agree to use electronic records and signatures.",onInput:()=>this.handleClickAgree()})),!this.finishLater&&t("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!this.agreed,onClick:()=>this.handleNext()}),t("div",{style:{marginLeft:"10px"}}),t("verdocs-dropdown",{options:this.isDone||this.finishLater?N:I,onOptionSelected:e=>this.handleOptionSelected(e)}))),t("div",this.agreed?{style:{display:"none"}}:{class:"cover"}),t("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(this.envelope.documents||[]).map((e=>{const i=g(1,e.page_numbers);return t(n,null,i.map((i=>t("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:612,virtualHeight:792,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]}))))}))),this.showFinishLater&&t("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>this.showFinishLater=!1}),this.errorMessage&&t("verdocs-ok-dialog",{heading:"Network Error",message:this.errorMessage,onNext:()=>this.errorMessage=""}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:()=>{this.showDone=!1,this.isDone=!0}}),this.submitting&&t("div",{class:"loading-indicator"},t("verdocs-loader",null))):t(s,null,t("verdocs-loader",null))}};G.style='verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign .intro{width:100%;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;color:#111111;font-size:18px;font-weight:500;line-height:28px;-ms-flex-direction:row;flex-direction:row;background:#ffffff}verdocs-sign .intro .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .agree{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;padding:0 15px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;white-space:nowrap;text-overflow:ellipsis}';export{G as verdocs_sign}
|
@@ -2,6 +2,36 @@
|
|
2
2
|
|
3
3
|
const Types = require('./Types-f89f9116.js');
|
4
4
|
|
5
|
+
exports.TemplateSenderTypes = void 0;
|
6
|
+
(function (TemplateSenderTypes) {
|
7
|
+
TemplateSenderTypes["CREATOR"] = "creator";
|
8
|
+
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
9
|
+
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
10
|
+
TemplateSenderTypes["EVERYONE"] = "everyone";
|
11
|
+
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
12
|
+
})(exports.TemplateSenderTypes || (exports.TemplateSenderTypes = {}));
|
13
|
+
var TemplateActions;
|
14
|
+
(function (TemplateActions) {
|
15
|
+
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
16
|
+
TemplateActions["CREATE_ORG"] = "create_org";
|
17
|
+
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
18
|
+
TemplateActions["READ"] = "read";
|
19
|
+
TemplateActions["WRITE"] = "write";
|
20
|
+
TemplateActions["DELETE"] = "delete";
|
21
|
+
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
22
|
+
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
23
|
+
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
24
|
+
})(TemplateActions || (TemplateActions = {}));
|
25
|
+
var SortOptions;
|
26
|
+
(function (SortOptions) {
|
27
|
+
SortOptions["CREATED_AT"] = "created_at";
|
28
|
+
SortOptions["UPDATED_AT"] = "updated_at";
|
29
|
+
SortOptions["NAME"] = "name";
|
30
|
+
SortOptions["LAST_USED_AT"] = "last_used_at";
|
31
|
+
SortOptions["COUNTER"] = "counter";
|
32
|
+
SortOptions["STAR_COUNTER"] = "star_counter";
|
33
|
+
})(SortOptions || (SortOptions = {}));
|
34
|
+
|
5
35
|
/**
|
6
36
|
* Operation within Verdocs that users may perform.
|
7
37
|
*/
|
@@ -50,36 +80,6 @@ var Roles;
|
|
50
80
|
Roles["MEMBER"] = "member";
|
51
81
|
})(Roles || (Roles = {}));
|
52
82
|
|
53
|
-
exports.TemplateSenderTypes = void 0;
|
54
|
-
(function (TemplateSenderTypes) {
|
55
|
-
TemplateSenderTypes["CREATOR"] = "creator";
|
56
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
57
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
58
|
-
TemplateSenderTypes["EVERYONE"] = "everyone";
|
59
|
-
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
60
|
-
})(exports.TemplateSenderTypes || (exports.TemplateSenderTypes = {}));
|
61
|
-
var TemplateActions;
|
62
|
-
(function (TemplateActions) {
|
63
|
-
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
64
|
-
TemplateActions["CREATE_ORG"] = "create_org";
|
65
|
-
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
66
|
-
TemplateActions["READ"] = "read";
|
67
|
-
TemplateActions["WRITE"] = "write";
|
68
|
-
TemplateActions["DELETE"] = "delete";
|
69
|
-
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
70
|
-
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
71
|
-
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
72
|
-
})(TemplateActions || (TemplateActions = {}));
|
73
|
-
var SortOptions;
|
74
|
-
(function (SortOptions) {
|
75
|
-
SortOptions["CREATED_AT"] = "created_at";
|
76
|
-
SortOptions["UPDATED_AT"] = "updated_at";
|
77
|
-
SortOptions["NAME"] = "name";
|
78
|
-
SortOptions["LAST_USED_AT"] = "last_used_at";
|
79
|
-
SortOptions["COUNTER"] = "counter";
|
80
|
-
SortOptions["STAR_COUNTER"] = "star_counter";
|
81
|
-
})(SortOptions || (SortOptions = {}));
|
82
|
-
|
83
83
|
const denyList = new Set([
|
84
84
|
'ENOTFOUND',
|
85
85
|
'ENETUNREACH',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/collection/components/{controls → envelopes}/verdocs-status-indicator/recipient-flow.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,5 +1,35 @@
|
|
1
1
|
import { d as decodeAccessTokenBody } from './Types-5f31149e.js';
|
2
2
|
|
3
|
+
var TemplateSenderTypes;
|
4
|
+
(function (TemplateSenderTypes) {
|
5
|
+
TemplateSenderTypes["CREATOR"] = "creator";
|
6
|
+
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
7
|
+
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
8
|
+
TemplateSenderTypes["EVERYONE"] = "everyone";
|
9
|
+
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
10
|
+
})(TemplateSenderTypes || (TemplateSenderTypes = {}));
|
11
|
+
var TemplateActions;
|
12
|
+
(function (TemplateActions) {
|
13
|
+
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
14
|
+
TemplateActions["CREATE_ORG"] = "create_org";
|
15
|
+
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
16
|
+
TemplateActions["READ"] = "read";
|
17
|
+
TemplateActions["WRITE"] = "write";
|
18
|
+
TemplateActions["DELETE"] = "delete";
|
19
|
+
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
20
|
+
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
21
|
+
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
22
|
+
})(TemplateActions || (TemplateActions = {}));
|
23
|
+
var SortOptions;
|
24
|
+
(function (SortOptions) {
|
25
|
+
SortOptions["CREATED_AT"] = "created_at";
|
26
|
+
SortOptions["UPDATED_AT"] = "updated_at";
|
27
|
+
SortOptions["NAME"] = "name";
|
28
|
+
SortOptions["LAST_USED_AT"] = "last_used_at";
|
29
|
+
SortOptions["COUNTER"] = "counter";
|
30
|
+
SortOptions["STAR_COUNTER"] = "star_counter";
|
31
|
+
})(SortOptions || (SortOptions = {}));
|
32
|
+
|
3
33
|
/**
|
4
34
|
* Operation within Verdocs that users may perform.
|
5
35
|
*/
|
@@ -48,36 +78,6 @@ var Roles;
|
|
48
78
|
Roles["MEMBER"] = "member";
|
49
79
|
})(Roles || (Roles = {}));
|
50
80
|
|
51
|
-
var TemplateSenderTypes;
|
52
|
-
(function (TemplateSenderTypes) {
|
53
|
-
TemplateSenderTypes["CREATOR"] = "creator";
|
54
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER"] = "organization_member";
|
55
|
-
TemplateSenderTypes["ORGANIZATION_MEMBER_AS_CREATOR"] = "organization_member_as_creator";
|
56
|
-
TemplateSenderTypes["EVERYONE"] = "everyone";
|
57
|
-
TemplateSenderTypes["EVERYONE_AS_CREATOR"] = "everyone_as_creator";
|
58
|
-
})(TemplateSenderTypes || (TemplateSenderTypes = {}));
|
59
|
-
var TemplateActions;
|
60
|
-
(function (TemplateActions) {
|
61
|
-
TemplateActions["CREATE_PERSONAL"] = "create_personal";
|
62
|
-
TemplateActions["CREATE_ORG"] = "create_org";
|
63
|
-
TemplateActions["CREATE_PUBLIC"] = "create_public";
|
64
|
-
TemplateActions["READ"] = "read";
|
65
|
-
TemplateActions["WRITE"] = "write";
|
66
|
-
TemplateActions["DELETE"] = "delete";
|
67
|
-
TemplateActions["CHANGE_VISIBILITY_PERSONAL"] = "change_visibility_personal";
|
68
|
-
TemplateActions["CHANGE_VISIBILITY_ORG"] = "change_visibility_org";
|
69
|
-
TemplateActions["CHANGE_VISIBILITY_PUBLIC"] = "change_visibility_public";
|
70
|
-
})(TemplateActions || (TemplateActions = {}));
|
71
|
-
var SortOptions;
|
72
|
-
(function (SortOptions) {
|
73
|
-
SortOptions["CREATED_AT"] = "created_at";
|
74
|
-
SortOptions["UPDATED_AT"] = "updated_at";
|
75
|
-
SortOptions["NAME"] = "name";
|
76
|
-
SortOptions["LAST_USED_AT"] = "last_used_at";
|
77
|
-
SortOptions["COUNTER"] = "counter";
|
78
|
-
SortOptions["STAR_COUNTER"] = "star_counter";
|
79
|
-
})(SortOptions || (SortOptions = {}));
|
80
|
-
|
81
81
|
const denyList = new Set([
|
82
82
|
'ENOTFOUND',
|
83
83
|
'ENETUNREACH',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/dist/types/components/{controls → envelopes}/verdocs-status-indicator/recipient-flow.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|