@verdocs/web-sdk 5.0.40 → 5.0.41
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/{Datastore-7c8ad503.js → Datastore-474df289.js} +1 -2
- package/dist/cjs/Datastore-474df289.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js +7 -3
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +12 -9
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-preview_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.css +5 -0
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +25 -1
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js.map +1 -1
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.css +7 -0
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js.map +1 -1
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +3 -2
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +0 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +0 -10
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +9 -6
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/utils/Datastore.js +0 -1
- package/dist/collection/utils/Datastore.js.map +1 -1
- package/dist/components/{p-a4c3e93a.js → p-0e454650.js} +5 -5
- package/dist/components/{p-a4c3e93a.js.map → p-0e454650.js.map} +1 -1
- package/dist/components/{p-80cad481.js → p-1a83e46c.js} +5 -5
- package/dist/components/{p-80cad481.js.map → p-1a83e46c.js.map} +1 -1
- package/dist/components/{p-bd2df986.js → p-1c5981db.js} +2 -2
- package/dist/components/{p-bd2df986.js.map → p-1c5981db.js.map} +1 -1
- package/dist/components/{p-78d650ca.js → p-33300e3a.js} +1 -2
- package/dist/components/p-33300e3a.js.map +1 -0
- package/dist/components/{p-e378a0ae.js → p-36368807.js} +16 -16
- package/dist/components/{p-e378a0ae.js.map → p-36368807.js.map} +1 -1
- package/dist/components/{p-3e1e59cb.js → p-43b8738f.js} +2 -2
- package/dist/components/{p-3e1e59cb.js.map → p-43b8738f.js.map} +1 -1
- package/dist/components/{p-d0280735.js → p-444a3bdf.js} +2 -2
- package/dist/components/{p-d0280735.js.map → p-444a3bdf.js.map} +1 -1
- package/dist/components/{p-d13f639e.js → p-4ab3413a.js} +5 -5
- package/dist/components/{p-d13f639e.js.map → p-4ab3413a.js.map} +1 -1
- package/dist/components/{p-6cba6eef.js → p-4dbb9783.js} +3 -3
- package/dist/components/{p-6cba6eef.js.map → p-4dbb9783.js.map} +1 -1
- package/dist/components/{p-044413dc.js → p-52c195dd.js} +5 -5
- package/dist/components/{p-044413dc.js.map → p-52c195dd.js.map} +1 -1
- package/dist/components/{p-e2f386c6.js → p-55edf913.js} +2 -2
- package/dist/components/{p-e2f386c6.js.map → p-55edf913.js.map} +1 -1
- package/dist/components/{p-ab71430d.js → p-581128fe.js} +4 -4
- package/dist/components/{p-ab71430d.js.map → p-581128fe.js.map} +1 -1
- package/dist/components/{p-21fb933f.js → p-5d578b83.js} +3 -3
- package/dist/components/{p-21fb933f.js.map → p-5d578b83.js.map} +1 -1
- package/dist/components/{p-9acf5a7e.js → p-6a8c32a6.js} +5 -5
- package/dist/components/{p-9acf5a7e.js.map → p-6a8c32a6.js.map} +1 -1
- package/dist/components/{p-b6d4072e.js → p-6bfb8eba.js} +21 -12
- package/dist/components/p-6bfb8eba.js.map +1 -0
- package/dist/components/{p-61cc000e.js → p-710ca15d.js} +2 -2
- package/dist/components/{p-61cc000e.js.map → p-710ca15d.js.map} +1 -1
- package/dist/components/{p-589c545a.js → p-7481c7db.js} +15 -15
- package/dist/components/{p-589c545a.js.map → p-7481c7db.js.map} +1 -1
- package/dist/components/{p-c4eab8f0.js → p-795b4192.js} +16 -16
- package/dist/components/{p-c4eab8f0.js.map → p-795b4192.js.map} +1 -1
- package/dist/components/{p-f007234d.js → p-96774726.js} +8 -3
- package/dist/components/p-96774726.js.map +1 -0
- package/dist/components/{p-ca701f0f.js → p-9a24561a.js} +5 -5
- package/dist/components/{p-ca701f0f.js.map → p-9a24561a.js.map} +1 -1
- package/dist/components/{p-c6d1cdb7.js → p-a50f7982.js} +11 -5
- package/dist/components/p-a50f7982.js.map +1 -0
- package/dist/components/{p-fd4e0e9b.js → p-c1d312d8.js} +13 -8
- package/dist/components/p-c1d312d8.js.map +1 -0
- package/dist/components/{p-afd663f1.js → p-ca16a8ac.js} +4 -3
- package/dist/components/p-ca16a8ac.js.map +1 -0
- package/dist/components/{p-4c08e92a.js → p-d89157e9.js} +2 -2
- package/dist/components/{p-4c08e92a.js.map → p-d89157e9.js.map} +1 -1
- package/dist/components/{p-4f0db584.js → p-df227cfc.js} +5 -5
- package/dist/components/{p-4f0db584.js.map → p-df227cfc.js.map} +1 -1
- package/dist/components/{p-bed9505d.js → p-e85acbfb.js} +5 -5
- package/dist/components/{p-bed9505d.js.map → p-e85acbfb.js.map} +1 -1
- package/dist/components/{p-1f5c7534.js → p-eb4bd2d6.js} +5 -5
- package/dist/components/{p-1f5c7534.js.map → p-eb4bd2d6.js.map} +1 -1
- package/dist/components/{p-e6d9cbc0.js → p-f66d6a07.js} +5 -5
- package/dist/components/{p-e6d9cbc0.js.map → p-f66d6a07.js.map} +1 -1
- package/dist/components/verdocs-build.js +25 -25
- package/dist/components/verdocs-checkbox.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-dropdown.js +1 -1
- package/dist/components/verdocs-envelope-recipient-link.js +1 -1
- package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
- package/dist/components/verdocs-envelope-sidebar.js +4 -4
- package/dist/components/verdocs-envelopes-list.js +3 -3
- package/dist/components/verdocs-field-attachment.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-dropdown.js +1 -1
- package/dist/components/verdocs-field-initial.js +1 -1
- package/dist/components/verdocs-field-payment.js +4 -4
- package/dist/components/verdocs-field-radio.js +1 -1
- package/dist/components/verdocs-field-signature.js +1 -1
- package/dist/components/verdocs-field-textarea.js +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-multiselect.js +1 -1
- package/dist/components/verdocs-organization-card.js +1 -1
- package/dist/components/verdocs-portal.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +5 -5
- package/dist/components/verdocs-template-attachments.js +1 -1
- package/dist/components/verdocs-template-build-tabs.js +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-field-properties.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-template-role-properties.js +1 -1
- package/dist/components/verdocs-template-roles.js +1 -1
- package/dist/components/verdocs-template-settings.js +1 -1
- package/dist/components/verdocs-templates-list.js +2 -2
- package/dist/components/verdocs-view.js +1 -1
- package/dist/custom-elements.json +12 -0
- package/dist/esm/{Datastore-1db52f58.js → Datastore-974a55a5.js} +1 -2
- package/dist/esm/Datastore-974a55a5.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-checkbox_6.entry.js +7 -3
- package/dist/esm/verdocs-checkbox_6.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +12 -9
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm/verdocs-envelope-recipient-link.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm/verdocs-organization-card_2.entry.js +3 -2
- package/dist/esm/verdocs-organization-card_2.entry.js.map +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +1 -2
- package/dist/esm/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Datastore-1db52f58.js → Datastore-974a55a5.js} +2 -2
- package/dist/esm-es5/{Datastore-1db52f58.js.map → Datastore-974a55a5.js.map} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js +1 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/controls/verdocs-checkbox/verdocs-checkbox.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/verdocs-web-sdk/{p-796daf3e.system.entry.js → p-06394c15.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-06394c15.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-9e10dd2c.entry.js → p-06775d41.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js +1 -1
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +1 -1
- package/dist/verdocs-web-sdk/{p-a9f3549e.system.entry.js → p-0e8bbe05.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-078818a8.entry.js → p-1247fd39.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b23e0b35.entry.js → p-1c8788f5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b23e0b35.entry.js.map → p-1c8788f5.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-84d305e4.entry.js → p-1f42a7c2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-33300e3a.js +2 -0
- package/dist/verdocs-web-sdk/{p-78d650ca.js.map → p-33300e3a.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-63fe0290.system.entry.js → p-62bde242.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-62bde242.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7ba1b23c.system.entry.js → p-66438012.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7bd2fe9f.entry.js → p-66feba8c.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-332f01b5.system.entry.js → p-78d9fa52.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0baacb99.entry.js → p-7962eb00.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-add6e890.system.entry.js → p-7f982a59.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e50dae96.system.entry.js → p-9880e3e4.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-41c9aec8.system.entry.js → p-a175597c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8e4b7f0c.system.entry.js → p-a4dd8302.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f5290d34.system.entry.js → p-a508388a.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-af554563.entry.js → p-ab23e446.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-b0606620.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b0606620.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-b32c8a43.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b32c8a43.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-59dbcd64.entry.js → p-c242e25e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-48ea99c9.system.entry.js → p-d3dea986.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-b66db146.system.entry.js → p-d63b3dc0.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-be8afe3e.entry.js → p-dac04f8e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a678a1f5.entry.js → p-dda88c7f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-dda88c7f.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-ff4f0ace.entry.js → p-df6ab9e9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-92d7a42f.system.entry.js → p-e5684a49.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-92d7a42f.system.entry.js.map → p-e5684a49.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-e5719bcf.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e5719bcf.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-e4a6b073.system.js → p-ebd42be0.system.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e4a6b073.system.js.map → p-ebd42be0.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-151e2fb7.entry.js → p-f406e916.entry.js} +2 -2
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/Datastore-7c8ad503.js.map +0 -1
- package/dist/components/p-78d650ca.js.map +0 -1
- package/dist/components/p-afd663f1.js.map +0 -1
- package/dist/components/p-b6d4072e.js.map +0 -1
- package/dist/components/p-c6d1cdb7.js.map +0 -1
- package/dist/components/p-f007234d.js.map +0 -1
- package/dist/components/p-fd4e0e9b.js.map +0 -1
- package/dist/esm/Datastore-1db52f58.js.map +0 -1
- package/dist/verdocs-web-sdk/p-337a452e.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-337a452e.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4d240e20.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-4d240e20.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-63fe0290.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-78d650ca.js +0 -2
- package/dist/verdocs-web-sdk/p-796daf3e.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-94757826.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-94757826.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a678a1f5.entry.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-9e10dd2c.entry.js.map → p-06775d41.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a9f3549e.system.entry.js.map → p-0e8bbe05.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-078818a8.entry.js.map → p-1247fd39.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-84d305e4.entry.js.map → p-1f42a7c2.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7ba1b23c.system.entry.js.map → p-66438012.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-7bd2fe9f.entry.js.map → p-66feba8c.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-332f01b5.system.entry.js.map → p-78d9fa52.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-0baacb99.entry.js.map → p-7962eb00.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-add6e890.system.entry.js.map → p-7f982a59.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-e50dae96.system.entry.js.map → p-9880e3e4.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-41c9aec8.system.entry.js.map → p-a175597c.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-8e4b7f0c.system.entry.js.map → p-a4dd8302.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f5290d34.system.entry.js.map → p-a508388a.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-af554563.entry.js.map → p-ab23e446.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-59dbcd64.entry.js.map → p-c242e25e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-48ea99c9.system.entry.js.map → p-d3dea986.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b66db146.system.entry.js.map → p-d63b3dc0.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-be8afe3e.entry.js.map → p-dac04f8e.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ff4f0ace.entry.js.map → p-df6ab9e9.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-151e2fb7.entry.js.map → p-f406e916.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as e,c as i,h as t,H as s,F as o}from"./p-ddadabfb.js";import{VerdocsEndpoint as n,startSigningSession as a,getKbaStep as l,envelopeRecipientAgree as r,envelopeRecipientDecline as d,updateEnvelopeField as c,createSignature as h,updateEnvelopeFieldSignature as p,createInitials as g,updateEnvelopeFieldInitials as u,isValidPhone as v,isValidEmail as f,sortFields as m,envelopeRecipientSubmit as x,getEnvelope as b,uploadEnvelopeFieldAttachment as y,deleteEnvelopeFieldAttachment as w,formatFullName as k,fullNameToInitials as S,submitKbaPin as N,submitKbaIdentity as I,submitKbaChallengeResponse as G,integerSequence as P}from"@verdocs/js-sdk";import{a as z,u as F,r as T,g as E}from"./p-0c45b79c.js";import{V as D}from"./p-04c07b7b.js";import{S as A}from"./p-fd97809c.js";import{S as V}from"./p-78d650ca.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const L='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}verdocs-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:50%;width:50%;font-size:16px;background:white;border-radius:5px;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}';const U=L;const j=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const R=[{id:"print",label:"Print"},{id:"download",label:"Download"}];const C=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.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.roleNames=[];this.sortedRecipients=[];this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document";this.kbaStep="";this.kbaQuestions=[];this.showSpinner=false;this.kbaChoices=[];this.loading=true;this.envelope=null;this.recipientIndex=-1}componentWillLoad(){if(!this.endpoint){console.log("[SIGN] Creating signing endpoint");this.endpoint=new n({sessionType:"signing"})}}async componentDidLoad(){var e,i,t,s,o,n,r;if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A("[SIGN] Missing required inviteCode",500,""));return}try{console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const{envelope:e,recipient:i}=await a(this.endpoint,this.envelopeId,this.roleId,this.inviteCode);console.log(`[SIGN] Loaded signing session`,e,i);this.recipient=i;this.envelope=e;V.updateEnvelope(this.envelopeId,e);this.sortedRecipients=[...this.envelope.recipients];this.sortedRecipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence));this.roleNames=this.sortedRecipients.map((e=>e.role_name));if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.recipientIndex=this.roleNames.findIndex((e=>e==this.roleId));if(this.recipientIndex>-1){this.recipient=this.sortedRecipients[this.recipientIndex];this.agreed=this.recipient.agreed}else{console.warn("[SIGN] Could not find our recipient record",this.roleId,this.sortedRecipients)}this.submitted=this.recipient.status==="submitted";this.isDone=this.submitted;this.showDone=this.submitted;if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(this.recipient.status==="declined"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(s=this.envelopeLoaded)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope});if(!this.isDone){l(this.endpoint,this.envelopeId,this.roleId).then((e=>{var i;console.log("[SIGN] KBA Step",e);this.kbaStep=e.kba_step;if(this.kbaStep==="failed"){this.fatalErrorHeader="Identity Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{this.kbaQuestions=((i=e.questions)===null||i===void 0?void 0:i.question)||[];this.kbaChoices=[]}})).catch((e=>console.log("Error getting KBA step",e)))}}catch(e){console.log("[SIGN] Error with signing session",e);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(r=e.response)===null||r===void 0?void 0:r.data));this.showLoadError=true}}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-sign-header");if(e&&i){console.log("[SIGN] Moving header");i.remove();e.append(i)}}handleClickAgree(){this.submitting=true;r(this.endpoint,this.envelopeId,this.roleId,true).then((()=>{var e;this.nextButtonLabel="Next";this.recipient.agreed=true;this.submitting=false;this.agreed=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var i,t,s;console.log("[SIGN] Update failure",e);this.submitting=false;(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A(e.message,(t=e.response)===null||t===void 0?void 0:t.status,(s=e.response)===null||s===void 0?void 0:s.data))}))}async handleOptionSelected(e){var i,t,s,o,n;switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"claim":D("This feature will be available in an upcoming release.");(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});break;case"decline":{this.submitting=true;const e=await d(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Decline result",e);(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified."}break;case"print":window.print();(o=this.envelopeUpdated)===null||o===void 0?void 0:o.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){z(this.endpoint,this.envelope,e.id).catch((e=>{console.log("[SIGN] Error downloading PDF",e)}));(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})}}break}}updateRecipientFieldValue(e,i){console.log("[SIGN] updateRecipientFieldValue",e,i);this.getRecipientFields().forEach((t=>{if(t.name===e){t.value=i.value;t.settings=i.settings;F(t);this.checkRecipientFields()}}))}saveFieldChange(e,i){console.log("[SIGN] saveFieldChange",e,i);c(this.endpoint,this.envelopeId,e,i).then((i=>this.updateRecipientFieldValue(e,i))).catch((e=>{var i,t,s,o,n,a;if(((i=e.response)===null||i===void 0?void 0:i.status)===401&&((s=(t=e.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");this.fatalErrorHeader="Signing Session Expired";this.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(a=e.response)===null||a===void 0?void 0:a.data))}))}async handleFieldChange(e,i){const{value:t,checked:s}=i.target;switch(e.type){case"textarea":case"textbox":return this.saveFieldChange(e.name,{prepared:false,value:t});case"checkbox":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"radio":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"dropdown":console.log("Saving dropdown",e.name,i.detail);return this.saveFieldChange(e.name,{prepared:false,value:i.detail});case"initial":if(!i.detail){return}this.showSpinner=true;const o=await(await fetch(i.detail)).blob();return g(this.endpoint,"initial",o).then((async i=>{const t=await u(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);this.showSpinner=false}));case"signature":if(!i.detail){return}this.showSpinner=true;const n=await(await fetch(i.detail)).blob();return h(this.endpoint,"signature",n).then((async i=>{console.log("Signature update result",i);const t=await p(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.warn("[SIGN] Error updating signature",e);this.showSpinner=false}));case"date":const{formattedDate:a}=i.detail;if(a){return this.saveFieldChange(e.name,{prepared:false,value:a})}break;case"timestamp":console.log("[SIGN] Updating timestamp",{value:t,ts:i.target.getAttribute("timestamp")});break;default:console.log("[SIGN] Unhandled field update",{value:t,checked:s},e);break}}isFieldFilled(e){const{value:i=""}=e;switch(e.type){case"textarea":case"textbox":switch(e.validator||""){case"email":return f(i);case"phone":return v(i);default:return(i||"").trim()!==""}case"signature":return i==="signed";case"initial":return i==="initialed";case"timestamp":return true;case"date":return!!i;case"attachment":return i==="attached";case"dropdown":return i!=="";case"checkbox":return i==="true";case"radio":if(!!e.group){return this.getRecipientFields().filter((i=>i.group===e.group)).some((e=>e.value==="true"))}return e.value==="true";default:return false}}isFieldValid(e){return!e.required||this.isFieldFilled(e)}getSortedFillableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"));m(e);return e}async handleNext(){var e;if(this.nextSubmits){try{(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;const i=await x(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Submitted successfully",i);this.recipient.status="submitted";this.showDone=true;console.log("[SIGN] Reloading envelope");b(this.endpoint,this.envelopeId).then((e=>{this.envelope=e;this.submitting=false})).catch((e=>{console.log("[SIGN] Error reloading envelope",e);this.submitting=false}))}catch(e){console.log("[SIGN] Error submitting",e)}return}const i=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldFilled(e)));m(i);const t=i.findIndex((e=>e.name===this.focusedField));let s=t+1;if(s>=i.length){s=0}let o=i[s];let n=0;if(n<i.length&&["signature","initial"].includes(o.type)&&["initialed","signed"].includes(o.value)){n++;s++;if(s>=i.length){s=0}o=i[s]}if(n>=i.length){o=null}if(o){const e=E(o);const i=document.getElementById(e);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth"});i===null||i===void 0?void 0:i.focusField();this.focusedField=o.name}}getRecipientFields(){return this.envelope.fields.filter((e=>e.role_name===this.recipient.role_name))}checkRecipientFields(){const e=this.getRecipientFields().filter((e=>!this.isFieldValid(e)));if(e.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{console.log("[SIGN] Invalid fields remaining",e.map((e=>e.name)));this.nextButtonLabel="Next";this.nextSubmits=false}}attachFieldAttributes(e,i,t){if(t.getAttribute("attached")==="1"){return}t.setAttribute("attached","1");t.addEventListener("input",(e=>{if(e.target.type==="radio"||e.target.type==="checkbox"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}else{this.checkRecipientFields()}}));t.addEventListener("attached",(async t=>{console.log("[SIGN] onAttached",t.detail,t.target.value);this.showSpinner=true;try{const s=await y(this.endpoint,this.envelopeId,i.name,t.detail);this.updateRecipientFieldValue(i.name,s);this.checkRecipientFields();const o=T("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,o);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("deleted",(async t=>{console.log("[SIGN] onDeleted",t.detail,t.target.value);this.showSpinner=true;try{const t=await w(this.endpoint,this.envelopeId,i.name);console.log("[SIGN] Deleted attachment",t);this.updateRecipientFieldValue(i.name,t);this.checkRecipientFields();const s=T("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,s);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("focusout",(e=>{if(i.type!=="dropdown"&&i.type!=="attachment"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}}));t.addEventListener("fieldChange",(e=>{this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}));t.setAttribute("templateid",this.envelope.template_id);t.setAttribute("fieldname",i.name);t.setAttribute("page",e.pageNumber);t.setAttribute("xScale",e.xScale);t.setAttribute("yScale",e.yScale);const s=k(this.recipient);t.setAttribute("initials",S(s));t.setAttribute("name",s)}handlePageRendered(e){const i=e.detail;const t=this.getSortedFillableFields();console.log("[SIGN] Rendering fields for page",i.pageNumber,t);t.forEach(((e,t)=>{if(e.page!==i.pageNumber){return}const s=T("envelope",e,i,{disabled:false,editable:false,draggable:false,done:this.isDone},t);if(!s){return}if(Array.isArray(s)){s.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,s)}}));this.sortedRecipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending"))).forEach((()=>{this.getRecipientFields().filter((e=>e.page===i.pageNumber)).forEach((e=>{const t=T("envelope",e,i,{disabled:true,editable:false,draggable:false,done:this.isDone});if(!t){return}if(Array.isArray(t)){t.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,t)}}))}));this.checkRecipientFields()}render(){if(this.showLoadError){return t(s,null,t("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`,buttonLabel:"OK",onNext:()=>{window.location.reload()}}))}if(!this.envelope){return t(s,null,t("verdocs-loader",null))}if(this.fatalErrorMessage){return t(s,{class:{agreed:this.agreed}},t("div",{class:"fatal-error"},t("div",{class:"message"},t("div",{class:"header"},this.fatalErrorHeader),t("p",null,this.fatalErrorMessage))))}if(this.isDone){return t(s,{class:{agreed:this.agreed}},t("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var i;return(i=this.sdkError)===null||i===void 0?void 0:i.emit(e.detail)}}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:e=>{e.preventDefault();e.stopPropagation();this.showDone=false;this.isDone=true}}),this.submitting&&t("div",{class:"loading-indicator"},t("verdocs-loader",null)))}if(!this.agreed){return t(s,{class:"agreed"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"agree"},t("verdocs-checkbox",{name:"agree",label:"By checking this box, you:",onInput:()=>this.handleClickAgree()}),t("ul",null,t("li",null,"Agree to use electronic records and signatures, and confirm you have read the"," ",t("a",{href:"https://verdocs.com/en/electronic-record-signature-disclosure/",target:"_blank"},"Electronic Record and Signatures Disclosure"),"."),t("li",null,"Agree to Verdocs'"," ",t("a",{href:"https://verdocs.com/en/eula",target:"_blank"},"End User License Agreement")," ","and confirm you have read Verdocs'"," ",t("a",{href:"https://verdocs.com/en/privacy-policy/",target:"_blank"},"Privacy Policy"),".")))))}if(this.kbaStep==="pin"){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},t("verdocs-kba-dialog",{mode:"text",step:1,steps:1,helptitle:"Document is protected by a PIN code",helptext:"Please enter your PIN code to proceed. If you do not have one, please contact the sender.",label:"PIN Code",onNext:async e=>{N(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{console.log("[SIGN] PIN code submission result",e);if(e.kba_step==="complete"){this.kbaStep=""}})).catch((e=>{var i,t,s,o;console.log("[SIGN] Error submitting PIN",e);if(((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)==="Rejecting PIN submission, too many attempts"){this.fatalErrorHeader="PIN Verification Failed";this.fatalErrorMessage="Too many failed attempts. The sender has been notified.";this.isDone=true}else{D(((o=(s=e.response)===null||s===void 0?void 0:s.data)===null||o===void 0?void 0:o.error)||"Unable to verify PIN code. Please try again.",{style:"error"})}}))}}))))}if(this.kbaStep==="identity"){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},t("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:async e=>{const i=e.detail;I(this.endpoint,this.envelopeId,this.roleId,{firstName:i.first_name,lastName:i.last_name,address:i.address,city:i.city,state:i.state,zip:i.zip,ssnLast4:i.ssn_last_4}).then((e=>{console.log("[SIGN] Identity submission result",e);this.kbaStep=e.kba_step})).catch((e=>{var i,t;console.log("[SIGN] Error submitting identity",e);D(((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)||"Unable to verify identity.",{style:"error"})}))}}))))}if(this.kbaStep==="challenge"){const e=this.kbaChoices.length;const i=this.kbaQuestions[e];return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?t("verdocs-spinner",null):t("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(i===null||i===void 0?void 0:i.prompt)||"Please select one of the options below.",choices:(i===null||i===void 0?void 0:i.answer)||["Skip Question"],step:e+1,steps:this.kbaQuestions.length,onNext:async e=>{var i,t,s;const o=e.detail;this.kbaChoices=[...this.kbaChoices,o];if(this.kbaChoices.length>=this.kbaQuestions.length){const o=this.kbaQuestions.map(((e,i)=>({type:e.type,answer:this.kbaChoices[i]})));console.log("Submitting KBA responses",this.kbaChoices,o);try{const e=await G(this.endpoint,this.envelopeId,this.roleId,o);console.log("KBA challenge response",e);this.kbaStep=e.kba_step;if(this.kbaStep==="failed"){this.fatalErrorHeader="Identity Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{this.kbaQuestions=((i=e.questions)===null||i===void 0?void 0:i.question)||[];this.kbaChoices=[]}}catch(e){console.log("Error submitting KBA challenge",e);this.kbaStep="";this.fatalErrorHeader="Unable to Verify Identity";this.fatalErrorMessage=((s=(t=e.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.error)||"Please try again later.";this.isDone=true}}}}))))}return t(s,null,t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name),t("div",{style:{flex:"1"}}),!this.finishLater&&t("verdocs-button",{size:"xsmall",label:this.nextButtonLabel,disabled:!this.agreed,onClick:()=>this.handleNext()}),t("div",{style:{marginLeft:"10px"}}),t("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?j:R,onOptionSelected:e=>this.handleOptionSelected(e)}))),t("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((e=>{const i=P(1,e.pages);return t(o,null,i.map((i=>{var s;const o=((s=e.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return t("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&t("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>this.showFinishLater=false}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:()=>{this.showDone=false;this.isDone=true}}),this.submitting||this.showSpinner&&t("verdocs-portal",null,t("div",{class:"spinner-overlay"},t("verdocs-spinner",null))))}};C.style=U;export{C as verdocs_sign};
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,c as i,h as t,H as s,F as o}from"./p-ddadabfb.js";import{VerdocsEndpoint as n,startSigningSession as a,getKbaStep as l,envelopeRecipientAgree as r,envelopeRecipientDecline as d,updateEnvelopeField as c,createSignature as h,updateEnvelopeFieldSignature as p,createInitials as g,updateEnvelopeFieldInitials as u,isValidPhone as v,isValidEmail as f,sortFields as m,envelopeRecipientSubmit as x,getEnvelope as b,uploadEnvelopeFieldAttachment as y,deleteEnvelopeFieldAttachment as w,formatFullName as k,fullNameToInitials as S,submitKbaPin as N,submitKbaIdentity as I,submitKbaChallengeResponse as G,integerSequence as P}from"@verdocs/js-sdk";import{a as z,u as F,r as T,g as E}from"./p-0c45b79c.js";import{V as D}from"./p-04c07b7b.js";import{S as A}from"./p-fd97809c.js";import{S as V}from"./p-33300e3a.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const L='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}verdocs-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:50%;width:50%;font-size:16px;background:white;border-radius:5px;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}';const U=L;const j=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];const R=[{id:"print",label:"Print"},{id:"download",label:"Download"}];const C=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.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.roleNames=[];this.sortedRecipients=[];this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document";this.kbaStep="";this.kbaQuestions=[];this.showSpinner=false;this.kbaChoices=[];this.loading=true;this.envelope=null;this.recipientIndex=-1}componentWillLoad(){if(!this.endpoint){console.log("[SIGN] Creating signing endpoint");this.endpoint=new n({sessionType:"signing"})}}async componentDidLoad(){var e,i,t,s,o,n,r;if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new A("[SIGN] Missing required envelopId",500,""));return}if(!this.roleId){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A("[SIGN] Missing required roleId",500,""));return}if(!this.inviteCode){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new A("[SIGN] Missing required inviteCode",500,""));return}try{console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);const{envelope:e,recipient:i}=await a(this.endpoint,this.envelopeId,this.roleId,this.inviteCode);console.log(`[SIGN] Loaded signing session`,e,i);this.recipient=i;this.envelope=e;V.updateEnvelope(this.envelopeId,e);this.sortedRecipients=[...this.envelope.recipients];this.sortedRecipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence));this.roleNames=this.sortedRecipients.map((e=>e.role_name));if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.recipientIndex=this.roleNames.findIndex((e=>e==this.roleId));if(this.recipientIndex>-1){this.recipient=this.sortedRecipients[this.recipientIndex];this.agreed=this.recipient.agreed}else{console.warn("[SIGN] Could not find our recipient record",this.roleId,this.sortedRecipients)}this.submitted=this.recipient.status==="submitted";this.isDone=this.submitted;this.showDone=this.submitted;if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(this.recipient.status==="declined"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(s=this.envelopeLoaded)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope});if(!this.isDone){l(this.endpoint,this.envelopeId,this.roleId).then((e=>{var i;console.log("[SIGN] KBA Step",e);this.kbaStep=e.kba_step;if(this.kbaStep==="failed"){this.fatalErrorHeader="Identity Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{this.kbaQuestions=((i=e.questions)===null||i===void 0?void 0:i.question)||[];this.kbaChoices=[]}})).catch((e=>console.log("Error getting KBA step",e)))}}catch(e){console.log("[SIGN] Error with signing session",e);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(r=e.response)===null||r===void 0?void 0:r.data));this.showLoadError=true}}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-sign-header");if(e&&i){console.log("[SIGN] Moving header");i.remove();e.append(i)}}handleClickAgree(){this.submitting=true;r(this.endpoint,this.envelopeId,this.roleId,true).then((()=>{var e;this.nextButtonLabel="Next";this.recipient.agreed=true;this.submitting=false;this.agreed=true;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"agreed"})})).catch((e=>{var i,t,s;console.log("[SIGN] Update failure",e);this.submitting=false;(i=this.sdkError)===null||i===void 0?void 0:i.emit(new A(e.message,(t=e.response)===null||t===void 0?void 0:t.status,(s=e.response)===null||s===void 0?void 0:s.data))}))}async handleOptionSelected(e){var i,t,s,o,n;switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"claim":D("This feature will be available in an upcoming release.");(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});break;case"decline":{this.submitting=true;const e=await d(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Decline result",e);(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified."}break;case"print":window.print();(o=this.envelopeUpdated)===null||o===void 0?void 0:o.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){z(this.endpoint,this.envelope,e.id).catch((e=>{console.log("[SIGN] Error downloading PDF",e)}));(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})}}break}}updateRecipientFieldValue(e,i){console.log("[SIGN] updateRecipientFieldValue",e,i);this.getRecipientFields().forEach((t=>{if(t.name===e){t.value=i.value;t.settings=i.settings;F(t);this.checkRecipientFields()}}))}saveFieldChange(e,i){console.log("[SIGN] saveFieldChange",e,i);c(this.endpoint,this.envelopeId,e,i).then((i=>this.updateRecipientFieldValue(e,i))).catch((e=>{var i,t,s,o,n,a;if(((i=e.response)===null||i===void 0?void 0:i.status)===401&&((s=(t=e.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");this.fatalErrorHeader="Signing Session Expired";this.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(o=this.sdkError)===null||o===void 0?void 0:o.emit(new A(e.message,(n=e.response)===null||n===void 0?void 0:n.status,(a=e.response)===null||a===void 0?void 0:a.data))}))}async handleFieldChange(e,i){const{value:t,checked:s}=i.target;switch(e.type){case"textarea":case"textbox":return this.saveFieldChange(e.name,{prepared:false,value:t});case"checkbox":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"radio":{return this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})}case"dropdown":console.log("Saving dropdown",e.name,i.detail);return this.saveFieldChange(e.name,{prepared:false,value:i.detail});case"initial":if(!i.detail){return}this.showSpinner=true;const o=await(await fetch(i.detail)).blob();return g(this.endpoint,"initial",o).then((async i=>{const t=await u(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.log("Error updating initials",e);this.showSpinner=false}));case"signature":if(!i.detail){return}this.showSpinner=true;const n=await(await fetch(i.detail)).blob();return h(this.endpoint,"signature",n).then((async i=>{console.log("Signature update result",i);const t=await p(this.endpoint,this.envelopeId,e.name,i.id);this.updateRecipientFieldValue(e.name,t);this.showSpinner=false})).catch((e=>{console.warn("[SIGN] Error updating signature",e);this.showSpinner=false}));case"date":const{formattedDate:a}=i.detail;if(a){return this.saveFieldChange(e.name,{prepared:false,value:a})}break;case"timestamp":console.log("[SIGN] Updating timestamp",{value:t,ts:i.target.getAttribute("timestamp")});break;default:console.log("[SIGN] Unhandled field update",{value:t,checked:s},e);break}}isFieldFilled(e){const{value:i=""}=e;switch(e.type){case"textarea":case"textbox":switch(e.validator||""){case"email":return f(i);case"phone":return v(i);default:return(i||"").trim()!==""}case"signature":return i==="signed";case"initial":return i==="initialed";case"timestamp":return true;case"date":return!!i;case"attachment":return i==="attached";case"dropdown":return i!=="";case"checkbox":return i==="true";case"radio":if(!!e.group){return this.getRecipientFields().filter((i=>i.group===e.group)).some((e=>e.value==="true"))}return e.value==="true";default:return false}}isFieldValid(e){return!e.required||this.isFieldFilled(e)}getSortedFillableFields(){const e=this.getRecipientFields().filter((e=>e.type!=="timestamp"));m(e);return e}async handleNext(){var e;if(this.nextSubmits){try{(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;const i=await x(this.endpoint,this.envelopeId,this.roleId);console.log("[SIGN] Submitted successfully",i);this.recipient.status="submitted";this.showDone=true;console.log("[SIGN] Reloading envelope");b(this.endpoint,this.envelopeId).then((e=>{this.envelope=e;this.submitting=false})).catch((e=>{console.log("[SIGN] Error reloading envelope",e);this.submitting=false}))}catch(e){console.log("[SIGN] Error submitting",e)}return}const i=this.getSortedFillableFields().filter((e=>e.required&&!this.isFieldFilled(e)));m(i);const t=i.findIndex((e=>e.name===this.focusedField));let s=t+1;if(s>=i.length){s=0}let o=i[s];let n=0;if(n<i.length&&["signature","initial"].includes(o.type)&&["initialed","signed"].includes(o.value)){n++;s++;if(s>=i.length){s=0}o=i[s]}if(n>=i.length){o=null}if(o){const e=E(o);const i=document.getElementById(e);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth"});i===null||i===void 0?void 0:i.focusField();this.focusedField=o.name}}getRecipientFields(){return this.envelope.fields.filter((e=>e.role_name===this.recipient.role_name))}checkRecipientFields(){const e=this.getRecipientFields().filter((e=>!this.isFieldValid(e)));if(e.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{console.log("[SIGN] Invalid fields remaining",e.map((e=>e.name)));this.nextButtonLabel="Next";this.nextSubmits=false}}attachFieldAttributes(e,i,t){if(t.getAttribute("attached")==="1"){return}t.setAttribute("attached","1");t.addEventListener("input",(e=>{if(e.target.type==="radio"||e.target.type==="checkbox"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}else{this.checkRecipientFields()}}));t.addEventListener("attached",(async t=>{console.log("[SIGN] onAttached",t.detail,t.target.value);this.showSpinner=true;try{const s=await y(this.endpoint,this.envelopeId,i.name,t.detail);this.updateRecipientFieldValue(i.name,s);this.checkRecipientFields();const o=T("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,o);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("deleted",(async t=>{console.log("[SIGN] onDeleted",t.detail,t.target.value);this.showSpinner=true;try{const t=await w(this.endpoint,this.envelopeId,i.name);console.log("[SIGN] Deleted attachment",t);this.updateRecipientFieldValue(i.name,t);this.checkRecipientFields();const s=T("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,s);this.showSpinner=false}catch(t){console.log("Error uploading attachment",t);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false}}));t.addEventListener("focusout",(e=>{if(i.type!=="dropdown"&&i.type!=="attachment"){this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}}));t.addEventListener("fieldChange",(e=>{this.handleFieldChange(i,e).finally((()=>this.checkRecipientFields()))}));t.setAttribute("templateid",this.envelope.template_id);t.setAttribute("fieldname",i.name);t.setAttribute("page",e.pageNumber);t.setAttribute("xScale",e.xScale);t.setAttribute("yScale",e.yScale);const s=k(this.recipient);t.setAttribute("initials",S(s));t.setAttribute("name",s)}handlePageRendered(e){const i=e.detail;const t=this.getSortedFillableFields();console.log("[SIGN] Rendering fields for page",i.pageNumber,t);t.forEach(((e,t)=>{if(e.page!==i.pageNumber){return}const s=T("envelope",e,i,{disabled:false,editable:false,draggable:false,done:this.isDone},t);if(!s){return}if(Array.isArray(s)){s.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,s)}}));this.sortedRecipients.filter((e=>e.role_name!==this.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending"))).forEach((()=>{this.getRecipientFields().filter((e=>e.page===i.pageNumber)).forEach((e=>{const t=T("envelope",e,i,{disabled:true,editable:false,draggable:false,done:this.isDone});if(!t){return}if(Array.isArray(t)){t.map((t=>this.attachFieldAttributes(i,e,t)))}else{this.attachFieldAttributes(i,e,t)}}))}));this.checkRecipientFields()}render(){if(this.showLoadError){return t(s,null,t("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`,buttonLabel:"OK",onNext:()=>{window.location.reload()}}))}if(!this.envelope){return t(s,null,t("verdocs-loader",null))}if(this.fatalErrorMessage){return t(s,{class:{agreed:this.agreed}},t("div",{class:"fatal-error"},t("div",{class:"message"},t("div",{class:"header"},this.fatalErrorHeader),t("p",null,this.fatalErrorMessage))))}if(this.isDone){return t(s,{class:{agreed:this.agreed}},t("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:e=>{var i;return(i=this.sdkError)===null||i===void 0?void 0:i.emit(e.detail)}}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:e=>{e.preventDefault();e.stopPropagation();this.showDone=false;this.isDone=true}}),this.submitting&&t("div",{class:"loading-indicator"},t("verdocs-loader",null)))}if(!this.agreed){return t(s,{class:"agreed"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"agree"},t("verdocs-checkbox",{name:"agree",label:"By checking this box, you:",onInput:()=>this.handleClickAgree()}),t("ul",null,t("li",null,"Agree to use electronic records and signatures, and confirm you have read the"," ",t("a",{href:"https://verdocs.com/en/electronic-record-signature-disclosure/",target:"_blank"},"Electronic Record and Signatures Disclosure"),"."),t("li",null,"Agree to Verdocs'"," ",t("a",{href:"https://verdocs.com/en/eula",target:"_blank"},"End User License Agreement")," ","and confirm you have read Verdocs'"," ",t("a",{href:"https://verdocs.com/en/privacy-policy/",target:"_blank"},"Privacy Policy"),".")))))}if(this.kbaStep==="pin"){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},t("verdocs-kba-dialog",{mode:"text",step:1,steps:1,helptitle:"Document is protected by a PIN code",helptext:"Please enter your PIN code to proceed. If you do not have one, please contact the sender.",label:"PIN Code",onNext:async e=>{N(this.endpoint,this.envelopeId,this.roleId,e.detail).then((e=>{console.log("[SIGN] PIN code submission result",e);if(e.kba_step==="complete"){this.kbaStep=""}})).catch((e=>{var i,t,s,o;console.log("[SIGN] Error submitting PIN",e);if(((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)==="Rejecting PIN submission, too many attempts"){this.fatalErrorHeader="PIN Verification Failed";this.fatalErrorMessage="Too many failed attempts. The sender has been notified.";this.isDone=true}else{D(((o=(s=e.response)===null||s===void 0?void 0:s.data)===null||o===void 0?void 0:o.error)||"Unable to verify PIN code. Please try again.",{style:"error"})}}))}}))))}if(this.kbaStep==="identity"){return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},t("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:async e=>{const i=e.detail;I(this.endpoint,this.envelopeId,this.roleId,{firstName:i.first_name,lastName:i.last_name,address:i.address,city:i.city,state:i.state,zip:i.zip,ssnLast4:i.ssn_last_4}).then((e=>{console.log("[SIGN] Identity submission result",e);this.kbaStep=e.kba_step})).catch((e=>{var i,t;console.log("[SIGN] Error submitting identity",e);D(((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)||"Unable to verify identity.",{style:"error"})}))}}))))}if(this.kbaStep==="challenge"){const e=this.kbaChoices.length;const i=this.kbaQuestions[e];return t(s,{class:"kba"},t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name))),t("div",{class:"document",style:{paddingTop:"15px"}},t("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),t("div",{class:"cover"},t("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?t("verdocs-spinner",null):t("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(i===null||i===void 0?void 0:i.prompt)||"Please select one of the options below.",choices:(i===null||i===void 0?void 0:i.answer)||["Skip Question"],step:e+1,steps:this.kbaQuestions.length,onNext:async e=>{var i,t,s;const o=e.detail;this.kbaChoices=[...this.kbaChoices,o];if(this.kbaChoices.length>=this.kbaQuestions.length){const o=this.kbaQuestions.map(((e,i)=>({type:e.type,answer:this.kbaChoices[i]})));console.log("Submitting KBA responses",this.kbaChoices,o);try{const e=await G(this.endpoint,this.envelopeId,this.roleId,o);console.log("KBA challenge response",e);this.kbaStep=e.kba_step;if(this.kbaStep==="failed"){this.fatalErrorHeader="Identity Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}else{this.kbaQuestions=((i=e.questions)===null||i===void 0?void 0:i.question)||[];this.kbaChoices=[]}}catch(e){console.log("Error submitting KBA challenge",e);this.kbaStep="";this.fatalErrorHeader="Unable to Verify Identity";this.fatalErrorMessage=((s=(t=e.response)===null||t===void 0?void 0:t.data)===null||s===void 0?void 0:s.error)||"Please try again later.";this.isDone=true}}}}))))}return t(s,null,t("div",{id:"verdocs-sign-header"},t("div",{class:"inner"},t("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),t("div",{class:"title"},this.envelope.name),t("div",{style:{flex:"1"}}),!this.finishLater&&t("verdocs-button",{size:"xsmall",label:this.nextButtonLabel,disabled:!this.agreed,onClick:()=>this.handleNext()}),t("div",{style:{marginLeft:"10px"}}),t("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?j:R,onOptionSelected:e=>this.handleOptionSelected(e)}))),t("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((e=>{const i=P(1,e.pages);return t(o,null,i.map((i=>{var s;const o=((s=e.page_sizes)===null||s===void 0?void 0:s[i])||{width:612,height:792};return t("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&t("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`,onNext:()=>this.showFinishLater=false}),this.showDone&&t("verdocs-ok-dialog",{heading:"You're Done!",message:`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`,onNext:()=>{this.showDone=false;this.isDone=true}}),this.submitting||this.showSpinner&&t("verdocs-portal",null,t("div",{class:"spinner-overlay"},t("verdocs-spinner",null))))}};C.style=U;export{C as verdocs_sign};
|
2
|
+
//# sourceMappingURL=p-df6ab9e9.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function s(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||u(e,t)}))};if(t)i[e]=t(i[e])}}function u(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){u("next",e)}function l(e){u("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)u(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};System.register(["./p-60387e15.system.js","@verdocs/js-sdk","./p-f29eb00a.system.js","./p-21b1acec.system.js","./p-d738b5db.system.js","./p-2c5350ec.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s,u,c,f,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.F;o=e.H},function(e){a=e.VerdocsEndpoint;s=e.formatFullName;u=e.getActiveEntitlements;c=e.isValidEmail;f=e.randomString},function(e){l=e.h},function(){},function(){},function(){}],execute:function(){var d=this;function v(e,t){return function r(){return e.apply(t,arguments)}}var h=Object.prototype.toString;var p=Object.getPrototypeOf;var b=function(e){return function(t){var r=h.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));var m=function(e){e=e.toLowerCase();return function(t){return b(t)===e}};var w=function(e){return function(t){return typeof t===e}};var g=Array.isArray;var y=w("undefined");function x(e){return e!==null&&!y(e)&&e.constructor!==null&&!y(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var k=m("ArrayBuffer");function _(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&k(e.buffer)}return t}var R=w("string");var S=w("function");var O=w("number");var E=function(e){return e!==null&&typeof e==="object"};var A=function(e){return e===true||e===false};var T=function(e){if(b(e)!=="object"){return false}var t=p(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var j=m("Date");var C=m("File");var N=m("Blob");var P=m("FileList");var F=function(e){return E(e)&&S(e.pipe)};var U=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||S(e.append)&&((t=b(e))==="formdata"||t==="object"&&S(e.toString)&&e.toString()==="[object FormData]"))};var I=m("URLSearchParams");var B=["ReadableStream","Request","Response","Headers"].map(m),z=B[0],D=B[1],L=B[2],q=B[3];var M=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function H(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var s;if(typeof e!=="object"){e=[e]}if(g(e)){for(a=0,s=e.length;a<s;a++){t.call(null,e[a],a,e)}}else{var u=o?Object.getOwnPropertyNames(e):Object.keys(e);var c=u.length;var f=void 0;for(a=0;a<c;a++){f=u[a];t.call(null,e[f],f,e)}}}function K(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var V=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global}();var J=function(e){return!y(e)&&e!==V};function G(){var e=(J(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&K(t,n)||n;if(T(t[i])&&T(r)){t[i]=G(t[i],r)}else if(T(r)){t[i]=G({},r)}else if(g(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&H(arguments[n],r)}return t}var W=function(e,t,r,n){var i=n===void 0?{}:n,o=i.allOwnKeys;H(t,(function(t,n){if(r&&S(t)){e[n]=v(t,r)}else{e[n]=t}}),{allOwnKeys:o});return e};var X=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var $=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var Z=function(e,t,r,n){var i;var o;var a;var s={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);o=i.length;while(o-- >0){a=i[o];if((!n||n(a,e,t))&&!s[a]){t[a]=e[a];s[a]=true}}e=r!==false&&p(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var Q=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var Y=function(e){if(!e)return null;if(g(e))return e;var t=e.length;if(!O(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var ee=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&p(Uint8Array));var te=function(e,t){var r=e&&e[Symbol.iterator];var n=r.call(e);var i;while((i=n.next())&&!i.done){var o=i.value;t.call(e,o[0],o[1])}};var re=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var ne=m("HTMLFormElement");var ie=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var oe=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var ae=m("RegExp");var se=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};H(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var ue=function(e){se(e,(function(t,r){if(S(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!S(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ce=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};g(e)?n(e):n(String(e).split(t));return r};var fe=function(){};var le=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};var de="abcdefghijklmnopqrstuvwxyz";var ve="0123456789";var he={DIGIT:ve,ALPHA:de,ALPHA_DIGIT:de+de.toUpperCase()+ve};var pe=function(e,t){if(e===void 0){e=16}if(t===void 0){t=he.ALPHA_DIGIT}var r="";var n=t.length;while(e--){r+=t[Math.random()*n|0]}return r};function be(e){return!!(e&&S(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var me=function(e){var t=new Array(10);var r=function(e,n){if(E(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=g(e)?[]:{};H(e,(function(e,t){var o=r(e,n+1);!y(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var we=m("AsyncFunction");var ge=function(e){return e&&(E(e)||S(e))&&S(e.then)&&S(e.catch)};var ye=function(e,t){if(e){return setImmediate}return t?function(e,t){V.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===V&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);V.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",S(V.postMessage));var xe=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(V):typeof process!=="undefined"&&process.nextTick||ye;var ke={isArray:g,isArrayBuffer:k,isBuffer:x,isFormData:U,isArrayBufferView:_,isString:R,isNumber:O,isBoolean:A,isObject:E,isPlainObject:T,isReadableStream:z,isRequest:D,isResponse:L,isHeaders:q,isUndefined:y,isDate:j,isFile:C,isBlob:N,isRegExp:ae,isFunction:S,isStream:F,isURLSearchParams:I,isTypedArray:ee,isFileList:P,forEach:H,merge:G,extend:W,trim:M,stripBOM:X,inherits:$,toFlatObject:Z,kindOf:b,kindOfTest:m,endsWith:Q,toArray:Y,forEachEntry:te,matchAll:re,isHTMLForm:ne,hasOwnProperty:oe,hasOwnProp:oe,reduceDescriptors:se,freezeMethods:ue,toObjectSet:ce,toCamelCase:ie,noop:fe,toFiniteNumber:le,findKey:K,global:V,isContextDefined:J,ALPHABET:he,generateString:pe,isSpecCompliantForm:be,toJSONObject:me,isAsyncFn:we,isThenable:ge,setImmediate:ye,asap:xe};function _e(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);if(i){this.response=i;this.status=i.status?i.status:null}}ke.inherits(_e,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ke.toJSONObject(this.config),code:this.code,status:this.status}}});var Re=_e.prototype;var Se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Se[e]={value:e}}));Object.defineProperties(_e,Se);Object.defineProperty(Re,"isAxiosError",{value:true});_e.from=function(e,t,r,n,i,o){var a=Object.create(Re);ke.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));_e.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var Oe=null;function Ee(e){return ke.isPlainObject(e)||ke.isArray(e)}function Ae(e){return ke.endsWith(e,"[]")?e.slice(0,-2):e}function Te(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Ae(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function je(e){return ke.isArray(e)&&!e.some(Ee)}var Ce=ke.toFlatObject(ke,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Ne(e,t,r){if(!ke.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=ke.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!ke.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var s=r.Blob||typeof Blob!=="undefined"&&Blob;var u=s&&ke.isSpecCompliantForm(t);if(!ke.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(ke.isDate(e)){return e.toISOString()}if(!u&&ke.isBlob(e)){throw new _e("Blob is not supported. Use a Buffer instead.")}if(ke.isArrayBuffer(e)||ke.isTypedArray(e)){return u&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var s=e;if(e&&!i&&typeof e==="object"){if(ke.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(ke.isArray(e)&&je(e)||(ke.isFileList(e)||ke.endsWith(r,"[]"))&&(s=ke.toArray(e))){r=Ae(r);s.forEach((function e(n,i){!(ke.isUndefined(n)||n===null)&&t.append(a===true?Te([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(Ee(e)){return true}t.append(Te(i,r,o),c(e));return false}var l=[];var d=Object.assign(Ce,{defaultVisitor:f,convertValue:c,isVisitable:Ee});function v(e,r){if(ke.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);ke.forEach(e,(function e(n,o){var a=!(ke.isUndefined(n)||n===null)&&i.call(t,n,ke.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!ke.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function Pe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function Fe(e,t){this._pairs=[];e&&Ne(e,this,t)}var Ue=Fe.prototype;Ue.append=function e(t,r){this._pairs.push([t,r])};Ue.toString=function e(t){var r=t?function(e){return t.call(this,e,Pe)}:Pe;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function Ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Be(e,t,r){if(!t){return e}var n=r&&r.encode||Ie;if(ke.isFunction(r)){r={serialize:r}}var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=ke.isURLSearchParams(t)?t.toString():new Fe(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var ze=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){ke.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var De=ze;var Le={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var qe=typeof URLSearchParams!=="undefined"?URLSearchParams:Fe;var Me=typeof FormData!=="undefined"?FormData:null;var He=typeof Blob!=="undefined"?Blob:null;var Ke={isBrowser:true,classes:{URLSearchParams:qe,FormData:Me,Blob:He},protocols:["http","https","file","blob","url","data"]};var Ve=typeof window!=="undefined"&&typeof document!=="undefined";var Je=typeof navigator==="object"&&navigator||undefined;var Ge=Ve&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0);var We=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Xe=Ve&&window.location.href||"http://localhost";var $e=Object.freeze({__proto__:null,hasBrowserEnv:Ve,hasStandardBrowserWebWorkerEnv:We,hasStandardBrowserEnv:Ge,navigator:Je,origin:Xe});var Ze=__assign(__assign({},$e),Ke);function Qe(e,t){return Ne(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){if(Ze.isNode&&ke.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Ye(e){return ke.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function et(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function tt(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var s=i>=e.length;o=!o&&ke.isArray(n)?n.length:o;if(s){if(ke.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!ke.isObject(n[o])){n[o]=[]}var u=t(e,r,n[o],i);if(u&&ke.isArray(n[o])){n[o]=et(n[o])}return!a}if(ke.isFormData(e)&&ke.isFunction(e.entries)){var r={};ke.forEachEntry(e,(function(e,n){t(Ye(e),n,r,0)}));return r}return null}function rt(e,t,r){if(ke.isString(e)){try{(t||JSON.parse)(e);return ke.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var nt={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=ke.isObject(t);if(o&&ke.isHTMLForm(t)){t=new FormData(t)}var a=ke.isFormData(t);if(a){return i?JSON.stringify(tt(t)):t}if(ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t)||ke.isReadableStream(t)){return t}if(ke.isArrayBufferView(t)){return t.buffer}if(ke.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return Qe(t,this.formSerializer).toString()}if((s=ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return Ne(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return rt(t)}return t}],transformResponse:[function e(t){var r=this.transitional||nt.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(ke.isResponse(t)||ke.isReadableStream(t)){return t}if(t&&ke.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw _e.from(e,_e.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ke.forEach(["delete","get","head","post","put","patch"],(function(e){nt.headers[e]={}}));var it=nt;var ot=ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var at=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&ot[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var st=Symbol("internals");function ut(e){return e&&String(e).trim().toLowerCase()}function ct(e){if(e===false||e==null){return e}return ke.isArray(e)?e.map(ct):String(e)}function ft(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var lt=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function dt(e,t,r,n,i){if(ke.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!ke.isString(t))return;if(ke.isString(n)){return t.indexOf(n)!==-1}if(ke.isRegExp(n)){return n.test(t)}}function vt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function ht(e,t){var r=ke.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var pt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=ut(t);if(!i){throw new Error("header name must be a non-empty string")}var o=ke.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=ct(e)}}var o=function(e,t){return ke.forEach(e,(function(e,r){return i(e,r,t)}))};if(ke.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(ke.isString(e)&&(e=e.trim())&&!lt(e)){o(at(e),t)}else if(ke.isHeaders(e)){for(var a=0,s=e.entries();a<s.length;a++){var u=s[a],c=u[0],f=u[1];i(f,c,r)}}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=ut(e);if(e){var r=ke.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return ft(n)}if(ke.isFunction(t)){return t.call(this,n,r)}if(ke.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=ut(e);if(e){var r=ke.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||dt(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=ut(e);if(e){var i=ke.findKey(r,e);if(i&&(!t||dt(r,r[i],i,t))){delete r[i];n=true}}}if(ke.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||dt(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};ke.forEach(this,(function(n,i){var o=ke.findKey(r,i);if(o){t[o]=ct(n);delete t[i];return}var a=e?vt(i):String(i).trim();if(a!==i){delete t[i]}t[a]=ct(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);ke.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&ke.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[st]=this[st]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=ut(e);if(!r[t]){ht(n,e);r[t]=true}}ke.isArray(e)?e.forEach(i):i(e);return this};return e}();pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ke.reduceDescriptors(pt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));ke.freezeMethods(pt);var bt=pt;function mt(e,t){var r=this||it;var n=t||r;var i=bt.from(n.headers);var o=n.data;ke.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function wt(e){return!!(e&&e.__CANCEL__)}function gt(e,t,r){_e.call(this,e==null?"canceled":e,_e.ERR_CANCELED,t,r);this.name="CanceledError"}ke.inherits(gt,_e,{__CANCEL__:true});function yt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new _e("Request failed with status code "+r.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function xt(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function s(u){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=u;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function _t(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};var s=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=Date.now();var u=s-r;if(u>=n){a(e,s)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-u)}}};var u=function(){return i&&a(i)};return[s,u]}var Rt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=kt(50,250);return _t((function(r){var o;var a=r.loaded;var s=r.lengthComputable?r.total:undefined;var u=a-n;var c=i(u);var f=a<=s;n=a;var l=(o={loaded:a,total:s,progress:s?a/s:undefined,bytes:u,rate:c?c:undefined,estimated:c&&s&&f?(s-a)/c:undefined,event:r,lengthComputable:s!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var St=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var Ot=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return ke.asap((function(){return e.apply(void 0,t)}))}};var Et=Ze.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,Ze.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):function(){return true};var At=Ze.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o){var a=[e+"="+encodeURIComponent(t)];ke.isNumber(r)&&a.push("expires="+new Date(r).toGMTString());ke.isString(n)&&a.push("path="+n);ke.isString(i)&&a.push("domain="+i);o===true&&a.push("secure");document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Tt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ct(e,t){if(e&&!Tt(t)){return jt(e,t)}return t}var Nt=function(e){return e instanceof bt?__assign({},e):e};function Pt(e,t){t=t||{};var r={};function n(e,t,r,n){if(ke.isPlainObject(e)&&ke.isPlainObject(t)){return ke.merge.call({caseless:n},e,t)}else if(ke.isPlainObject(t)){return ke.merge({},t)}else if(ke.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!ke.isUndefined(t)){return n(e,t,r,i)}else if(!ke.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!ke.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!ke.isUndefined(t)){return n(undefined,t)}else if(!ke.isUndefined(e)){return n(undefined,e)}}function s(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t,r){return i(Nt(e),Nt(t),r,true)}};ke.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=u[o]||i;var c=a(e[o],t[o],o);ke.isUndefined(c)&&a!==s||(r[o]=c)}));return r}var Ft=function(e){var t=Pt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,s=t.auth;t.headers=a=bt.from(a);t.url=Be(Ct(t.baseURL,t.url),e.params,e.paramsSerializer);if(s){a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")))}var u;if(ke.isFormData(r)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if((u=a.getContentType())!==false){var c=u?u.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=c[0],l=c.slice(1);a.setContentType(__spreadArray([f||"multipart/form-data"],l,true).join("; "))}}if(Ze.hasStandardBrowserEnv){n&&ke.isFunction(n)&&(n=n(t));if(n||n!==false&&Et(t.url)){var d=i&&o&&At.read(o);if(d){a.set(i,d)}}}return t};var Ut=typeof XMLHttpRequest!=="undefined";var It=Ut&&function(e){return new Promise((function t(r,n){var i,o;var a=Ft(e);var s=a.data;var u=bt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,b;function m(){p&&p();b&&b();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function g(){if(!w){return}var t=bt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};yt((function e(t){r(t);m()}),(function e(t){n(t);m()}),o);w=null}if("onloadend"in w){w.onloadend=g}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}w.onabort=function t(){if(!w){return}n(new _e("Request aborted",_e.ECONNABORTED,e,w));w=null};w.onerror=function t(){n(new _e("Network Error",_e.ERR_NETWORK,e,w));w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Le;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new _e(r,i.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,w));w=null};s===undefined&&u.setContentType(null);if("setRequestHeader"in w){ke.forEach(u.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!ke.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=Rt(l,true),h=i[0],b=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=Rt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new gt(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var y=xt(a.url);if(y&&Ze.protocols.indexOf(y)===-1){n(new _e("Unsupported protocol "+y+":",_e.ERR_BAD_REQUEST,e));return}w.send(s||null)}))};var Bt=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;s();var t=e instanceof Error?e:this.reason;n.abort(t instanceof _e?t:new gt(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new _e("timeout ".concat(t," of ms exceeded"),_e.ETIMEDOUT))}),t);var s=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var u=n.signal;u.unsubscribe=function(){return ke.asap(s)};return u}};var zt=Bt;var Dt=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(!t||r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var Lt=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var s,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(qt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),s=i.done,!s))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(Dt(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();u={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!s&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var qt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var Mt=function(e,t,r,n){var i=Lt(e,t);var o=0;var a;var s=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){s();e.close();return[2]}u=a.byteLength;if(r){c=o+=u;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();s(f);throw f;case 3:return[2]}}))}))},cancel:function(e){s(e);return i.return()}},{highWaterMark:2})};var Ht=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";var Kt=Ht&&typeof ReadableStream==="function";var Vt=Ht&&(typeof TextEncoder==="function"?function(e){return function(t){return e.encode(t)}}(new TextEncoder):function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Uint8Array.bind;return[4,new Response(e).arrayBuffer()];case 1:return[2,new(t.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var Jt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Gt=Kt&&Jt((function(){var e=false;var t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var Wt=64*1024;var Xt=Kt&&Jt((function(){return ke.isReadableStream(new Response("").body)}));var $t={stream:Xt&&function(e){return e.body}};Ht&&function(e){["text","arrayBuffer","blob","formData","stream"].forEach((function(t){!$t[t]&&($t[t]=ke.isFunction(e[t])?function(e){return e[t]()}:function(e,r){throw new _e("Response type '".concat(t,"' is not supported"),_e.ERR_NOT_SUPPORT,r)})}))}(new Response);var Zt=function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:if(e==null){return[2,0]}if(ke.isBlob(e)){return[2,e.size]}if(!ke.isSpecCompliantForm(e))return[3,2];t=new Request(Ze.origin,{method:"POST",body:e});return[4,t.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(ke.isArrayBufferView(e)||ke.isArrayBuffer(e)){return[2,e.byteLength]}if(ke.isURLSearchParams(e)){e=e+""}if(!ke.isString(e))return[3,4];return[4,Vt(e)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var Qt=function(e,t){return __awaiter(d,void 0,void 0,(function(){var r;return __generator(this,(function(n){r=ke.toFiniteNumber(e.getContentLength());return[2,r==null?Zt(t):r]}))}))};var Yt=Ht&&function(e){return __awaiter(d,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,c,f,l,d,v,h,p,b,m,w,g,y,x,k,_,R,S,O,E,A,T,j,_,C,N,P;return __generator(this,(function(F){switch(F.label){case 0:t=Ft(e),r=t.url,n=t.method,i=t.data,o=t.signal,a=t.cancelToken,s=t.timeout,u=t.onDownloadProgress,c=t.onUploadProgress,f=t.responseType,l=t.headers,d=t.withCredentials,v=d===void 0?"same-origin":d,h=t.fetchOptions;f=f?(f+"").toLowerCase():"text";p=zt([o,a&&a.toAbortSignal()],s);m=p&&p.unsubscribe&&function(){p.unsubscribe()};F.label=1;case 1:F.trys.push([1,7,,8]);g=c&&Gt&&n!=="get"&&n!=="head";if(!g)return[3,3];return[4,Qt(l,i)];case 2:g=(w=F.sent())!==0;F.label=3;case 3:if(g){y=new Request(r,{method:"POST",body:i,duplex:"half"});x=void 0;if(ke.isFormData(i)&&(x=y.headers.get("content-type"))){l.setContentType(x)}if(y.body){k=St(w,Rt(Ot(c))),_=k[0],R=k[1];i=Mt(y.body,Wt,_,R)}}if(!ke.isString(v)){v=v?"include":"omit"}S="credentials"in Request.prototype;b=new Request(r,__assign(__assign({},h),{signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:S?v:undefined}));return[4,fetch(b)];case 4:O=F.sent();E=Xt&&(f==="stream"||f==="response");if(Xt&&(u||E&&m)){A={};["status","statusText","headers"].forEach((function(e){A[e]=O[e]}));T=ke.toFiniteNumber(O.headers.get("content-length"));j=u&&St(T,Rt(Ot(u),true))||[],_=j[0],C=j[1];O=new Response(Mt(O.body,Wt,_,(function(){C&&C();m&&m()})),A)}f=f||"text";return[4,$t[ke.findKey($t,f)||"text"](O,e)];case 5:N=F.sent();!E&&m&&m();return[4,new Promise((function(t,r){yt(t,r,{data:N,headers:bt.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:b})}))];case 6:return[2,F.sent()];case 7:P=F.sent();m&&m();if(P&&P.name==="TypeError"&&/fetch/i.test(P.message)){throw Object.assign(new _e("Network Error",_e.ERR_NETWORK,e,b),{cause:P.cause||P})}throw _e.from(P,P&&P.code,e,b);case 8:return[2]}}))}))};var er={http:Oe,xhr:It,fetch:Yt};ke.forEach(er,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var tr=function(e){return"- ".concat(e)};var rr=function(e){return ke.isFunction(e)||e===null||e===false};var nr={getAdapter:function(e){e=ke.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!rr(r)){n=er[(a=String(r)).toLowerCase()];if(n===undefined){throw new _e("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var s=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var u=t?s.length>1?"since :\n"+s.map(tr).join("\n"):" "+tr(s[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:er};function ir(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new gt(null,e)}}function or(e){ir(e);e.headers=bt.from(e.headers);e.data=mt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=nr.getAdapter(e.adapter||it.adapter);return t(e).then((function t(r){ir(e);r.data=mt.call(e,e.transformResponse,r);r.headers=bt.from(r.headers);return r}),(function t(r){if(!wt(r)){ir(e);if(r&&r.response){r.response.data=mt.call(e,e.transformResponse,r.response);r.response.headers=bt.from(r.response.headers)}}return Promise.reject(r)}))}var ar="1.7.9";var sr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){sr[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ur={};sr.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+ar+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new _e(i(n," has been removed"+(r?" in "+r:"")),_e.ERR_DEPRECATED)}if(r&&!ur[n]){ur[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};sr.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function cr(e,t,r){if(typeof e!=="object"){throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new _e("option "+o+" must be "+u,_e.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}}var fr={assertOptions:cr,validators:sr};var lr=fr.validators;var dr=function(){function e(e){this.defaults=e;this.interceptors={request:new De,response:new De}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Pt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){fr.assertOptions(r,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},false)}if(n!=null){if(ke.isFunction(n)){t.paramsSerializer={serialize:n}}else{fr.assertOptions(n,{encode:lr.function,serialize:lr.function},true)}}fr.assertOptions(t,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&ke.merge(i.common,i[t.method]);i&&ke.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=bt.concat(o,i);var a=[];var s=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}s=s&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var u=[];this.interceptors.response.forEach((function e(t){u.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!s){var d=[or.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,u);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;f=0;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=or.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=u.length;while(f<l){c=c.then(u[f++],u[f++])}return c};e.prototype.getUri=function(e){e=Pt(this.defaults,e);var t=Ct(e.baseURL,e.url);return Be(t,e.params,e.paramsSerializer)};return e}();ke.forEach(["delete","get","head","options"],(function e(t){dr.prototype[t]=function(e,r){return this.request(Pt(r||{},{method:t,url:e,data:(r||{}).data}))}}));ke.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(Pt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}dr.prototype[t]=r();dr.prototype[t+"Form"]=r(true)}));var vr=dr;var hr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new gt(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var pr=hr;function br(e){return function t(r){return e.apply(null,r)}}function mr(e){return ke.isObject(e)&&e.isAxiosError===true}var wr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wr).forEach((function(e){var t=e[0],r=e[1];wr[r]=t}));var gr=wr;function yr(e){var t=new vr(e);var r=v(vr.prototype.request,t);ke.extend(r,vr.prototype,t,{allOwnKeys:true});ke.extend(r,t,null,{allOwnKeys:true});r.create=function t(r){return yr(Pt(e,r))};return r}var xr=yr(it);xr.Axios=vr;xr.CanceledError=gt;xr.CancelToken=pr;xr.isCancel=wt;xr.VERSION=ar;xr.toFormData=Ne;xr.AxiosError=_e;xr.Cancel=xr.CanceledError;xr.all=function e(t){return Promise.all(t)};xr.spread=br;xr.isAxiosError=mr;xr.mergeConfig=Pt;xr.AxiosHeaders=bt;xr.formToJSON=function(e){return tt(ke.isHTMLForm(e)?new FormData(e):e)};xr.getAdapter=nr.getAdapter;xr.HttpStatusCode=gr;xr.default=xr;var kr=xr;var _r=["https://beta.verdocs.com","https://stage.verdocs.com","http://localhost:6006","http://localhost:5173"];var Rr=_r.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var Sr=function(){return kr.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:Rr}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var Or='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .kba-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .kba-row verdocs-select-input{margin:0;-ms-flex:1;flex:1}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var Er=Or;var Ar='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var Tr=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=r(this,"searchContacts",7);this.exit=r(this,"exit",7);this.next=r(this,"next",7);this.endpoint=a.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=s(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}u(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));Sr().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,o,a,u,f,d,v,h,p,b,m,w,g,y,x,k,_;var R=this.first_name&&this.last_name&&c(this.email);var S=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var O=R&&S;var E=((o=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||o===void 0?void 0:o.enabled)===true;var A=[];if(((f=(u=(a=this.featureFlags)===null||a===void 0?void 0:a.toggles)===null||u===void 0?void 0:u.find((function(e){return e.name==="passcode-verification"})))===null||f===void 0?void 0:f.enabled)===true){A.push({label:"Passcode",value:"passcode"})}if(((h=(v=(d=this.featureFlags)===null||d===void 0?void 0:d.toggles)===null||v===void 0?void 0:v.find((function(e){return e.name==="email-verification"})))===null||h===void 0?void 0:h.enabled)===true){A.push({label:"Email",value:"email"})}if(E&&((m=(b=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||b===void 0?void 0:b.find((function(e){return e.name==="sms-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.sms_auth){A.push({label:"SMS (One-Time Code)",value:"sms"})}if(((y=(g=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||g===void 0?void 0:g.find((function(e){return e.name==="kba-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.kba_auth){A.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((_=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((function(e){return e.name==="id-verification"})))===null||_===void 0?void 0:_.enabled)===true&&!!this.activeEntitlements.id_auth){A.push({label:"ID Check",value:"id"})}return n("form",{key:"cba230aed78c493105a007d965938ef36c0676c5",onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("div",{key:"436c7454a56df0f535f3aefdfff577a88dafa22c",class:"row"},n("label",{key:"b281d4c25f7b940d50700f808cdc9e7c3e235c63",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"ef6316233086a5b6f7d5230e64134d3d4d370401",class:"names-row"},n("input",{key:"bb1114f98ee766c4da332c635e9aabfddb0ea0c5",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),n("input",{key:"8165b6a10ccec8cc699965a0e457c4984ba7e6d9",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&n("verdocs-portal",{key:"50bb3ba19b9ebedaf5dc6b42ab9ee56b49baf316",anchor:this.firstNameFieldId,onClickAway:function(){return e.showSuggestions=false},id:"verdocs-contact-picker-suggestions"},n("div",{key:"06d909db8340e219f56520cba088f39d024e23c9",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return n("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?n("img",{alt:"Avatar",class:"avatar",src:t.picture}):n("div",{class:"avatar",innerHTML:Ar}),n("div",{class:"details"},n("div",{class:"name"},s(t)),t.email&&n("div",{class:"destination"},t.email),t.phone&&n("div",{class:"destination"},t.phone)))}))))),n("div",{key:"0fd66b40717c81b65a301ced6b6bf4b6ff7b6626",class:"row"},n("label",{key:"70956784b72087d8c1868595ec40dfbdee34ca87",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"35582c90e48b6f532fc75cc51525ca06162ebcc8",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),E&&n("div",{key:"626950e0213dbc8fab07af0ac7682db19638c73c",class:"row"},n("label",{key:"12cfdd054564af5cc3573785d884c87b7b50bae4",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"8ecb757d6ee8acf6041c75f4fc0621ece470fcdf",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=l(t.target.value)}})),n(i,{key:"2023b0c925497df85590f0294597c38bde90b1da"},n("div",{key:"19579aba8a7552b44aeea592ea8b72565b990135",class:"kba-row"},n("label",{key:"30e901795b762a5bb13fef9350f034ecef4061e7"},"Recipient Verification:"),n("verdocs-multiselect",{key:"7cdca810117fe4e1b4d80e421cd8b504819107f8",label:"",placeholder:"None",options:A,selectedOptions:this.auth_methods,onSelectionChanged:function(e){console.log("selectedOptions changed",e.detail)}})),this.auth_methods.includes("passcode")&&n("div",{key:"da38b62b4e8f11b849aa2da16a32ccf3477b520d",class:"row pin-code"},n("label",{key:"159bfb16a11fcf4b17a4cde1d1092b1e69bae3ca",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"df9a141cd164ec08833701074b06fbbbe9a24f8d",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),n("div",{key:"9a20c9690d1aa26a146739b3663a07e60fa26fd0",class:"row message"},n("label",{key:"9a9ee4cd9d8de38d0694796ea6628d1f4219924d",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"a751b0a31e68addab12c29e31504b9c7501af4ea",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),n("div",{key:"df2e4fecf15c876d183216fc0cc0c4ce5d191c4e",class:"buttons"},n("div",{key:"f4e729dc5bf810bdc77dc045e01ea60985a1bc2d",class:"flex-fill"}),n("verdocs-button",{key:"881c3a8dcd3e14488375e403d5da03573f3a2b11",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{key:"f290aa37930e6869181b0bae3e3feb85a601d196",label:"OK",size:"small",disabled:!O,onClick:!O?function(){}:function(t){return e.handleSubmit(t)}})))};return e}());Tr.style=Er;var jr='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect.open .input-wrapper .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items label{font-size:13px}';var Cr=jr;var Nr='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>';var Pr=e("verdocs_multiselect",function(){function e(e){t(this,e);this.selectionChanged=r(this,"selectionChanged",7);this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}e.prototype.handleToggleOption=function(e,t){var r;if(e.target.checked){this.selectedOptions=__spreadArray(__spreadArray([],this.selectedOptions,true),[t.value],false)}else{this.selectedOptions=this.selectedOptions.filter((function(e){return e!==t.value}))}(r=this.selectionChanged)===null||r===void 0?void 0:r.emit({selectedOptions:this.selectedOptions})};e.prototype.render=function(){var e=this;var t="verdocs-dropdown-".concat(f(8));return n(o,{key:"7fa4d31d423894e8caa3dffd1fb46752b7b87ee5",class:this.showPicker?"open":"closed"},n("label",{key:"891a7d7ee2867d598f2f3ea6609148a47a9a7166"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"c165f68315aec9d1aca6e9f2214ece090f496363",class:"input-wrapper"},n("button",{key:"2297bfb9c84abd5da4c73dfcbae15fe2f5f04c1c",id:t,class:"trigger",value:"",onClick:function(){return e.showPicker=true}},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((function(t){var r;return n("span",{class:"selected-option"},((r=e.options.find((function(e){return e.value===t})))===null||r===void 0?void 0:r.label)||"Unknown")}))),n("div",{key:"e4929befc449d9be400305ee3e0aeb1c171583fd",class:"icon",innerHTML:Nr}),this.showPicker&&n("verdocs-portal",{key:"42016ae18aa4acd4c5aac8f2ea3a7d6126116aa6",anchor:t,voffset:2,onClickAway:function(){return e.showPicker=false},id:"verdocs-multiselect-menu-items"},this.options.map((function(t,r){return n("div",{class:"option",onClick:function(){return e.showPicker=false}},n("input",{id:"verdocs-multi-select-option-".concat(r),type:"checkbox",value:t.value,checked:e.selectedOptions.includes(t.value),onInput:function(r){return e.handleToggleOption(r,t)}}),n("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))}))))))};return e}());Pr.style=Cr}}}));
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function s(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||u(e,t)}))};if(t)i[e]=t(i[e])}}function u(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){u("next",e)}function l(e){u("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)u(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};System.register(["./p-60387e15.system.js","@verdocs/js-sdk","./p-f29eb00a.system.js","./p-21b1acec.system.js","./p-d738b5db.system.js","./p-2c5350ec.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s,u,c,f,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.F;o=e.H},function(e){a=e.VerdocsEndpoint;s=e.formatFullName;u=e.getActiveEntitlements;c=e.isValidEmail;f=e.randomString},function(e){l=e.h},function(){},function(){},function(){}],execute:function(){var d=this;function v(e,t){return function r(){return e.apply(t,arguments)}}var h=Object.prototype.toString;var p=Object.getPrototypeOf;var b=function(e){return function(t){var r=h.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));var m=function(e){e=e.toLowerCase();return function(t){return b(t)===e}};var w=function(e){return function(t){return typeof t===e}};var g=Array.isArray;var y=w("undefined");function x(e){return e!==null&&!y(e)&&e.constructor!==null&&!y(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var k=m("ArrayBuffer");function _(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&k(e.buffer)}return t}var R=w("string");var S=w("function");var O=w("number");var E=function(e){return e!==null&&typeof e==="object"};var A=function(e){return e===true||e===false};var T=function(e){if(b(e)!=="object"){return false}var t=p(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var j=m("Date");var C=m("File");var N=m("Blob");var P=m("FileList");var F=function(e){return E(e)&&S(e.pipe)};var U=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||S(e.append)&&((t=b(e))==="formdata"||t==="object"&&S(e.toString)&&e.toString()==="[object FormData]"))};var I=m("URLSearchParams");var B=["ReadableStream","Request","Response","Headers"].map(m),z=B[0],D=B[1],L=B[2],q=B[3];var M=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function H(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var s;if(typeof e!=="object"){e=[e]}if(g(e)){for(a=0,s=e.length;a<s;a++){t.call(null,e[a],a,e)}}else{var u=o?Object.getOwnPropertyNames(e):Object.keys(e);var c=u.length;var f=void 0;for(a=0;a<c;a++){f=u[a];t.call(null,e[f],f,e)}}}function K(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var V=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global}();var J=function(e){return!y(e)&&e!==V};function G(){var e=(J(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&K(t,n)||n;if(T(t[i])&&T(r)){t[i]=G(t[i],r)}else if(T(r)){t[i]=G({},r)}else if(g(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&H(arguments[n],r)}return t}var W=function(e,t,r,n){var i=n===void 0?{}:n,o=i.allOwnKeys;H(t,(function(t,n){if(r&&S(t)){e[n]=v(t,r)}else{e[n]=t}}),{allOwnKeys:o});return e};var X=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var $=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var Z=function(e,t,r,n){var i;var o;var a;var s={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);o=i.length;while(o-- >0){a=i[o];if((!n||n(a,e,t))&&!s[a]){t[a]=e[a];s[a]=true}}e=r!==false&&p(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var Q=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var Y=function(e){if(!e)return null;if(g(e))return e;var t=e.length;if(!O(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var ee=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&p(Uint8Array));var te=function(e,t){var r=e&&e[Symbol.iterator];var n=r.call(e);var i;while((i=n.next())&&!i.done){var o=i.value;t.call(e,o[0],o[1])}};var re=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var ne=m("HTMLFormElement");var ie=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var oe=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var ae=m("RegExp");var se=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};H(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var ue=function(e){se(e,(function(t,r){if(S(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!S(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ce=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};g(e)?n(e):n(String(e).split(t));return r};var fe=function(){};var le=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};var de="abcdefghijklmnopqrstuvwxyz";var ve="0123456789";var he={DIGIT:ve,ALPHA:de,ALPHA_DIGIT:de+de.toUpperCase()+ve};var pe=function(e,t){if(e===void 0){e=16}if(t===void 0){t=he.ALPHA_DIGIT}var r="";var n=t.length;while(e--){r+=t[Math.random()*n|0]}return r};function be(e){return!!(e&&S(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var me=function(e){var t=new Array(10);var r=function(e,n){if(E(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=g(e)?[]:{};H(e,(function(e,t){var o=r(e,n+1);!y(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var we=m("AsyncFunction");var ge=function(e){return e&&(E(e)||S(e))&&S(e.then)&&S(e.catch)};var ye=function(e,t){if(e){return setImmediate}return t?function(e,t){V.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===V&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);V.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",S(V.postMessage));var xe=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(V):typeof process!=="undefined"&&process.nextTick||ye;var ke={isArray:g,isArrayBuffer:k,isBuffer:x,isFormData:U,isArrayBufferView:_,isString:R,isNumber:O,isBoolean:A,isObject:E,isPlainObject:T,isReadableStream:z,isRequest:D,isResponse:L,isHeaders:q,isUndefined:y,isDate:j,isFile:C,isBlob:N,isRegExp:ae,isFunction:S,isStream:F,isURLSearchParams:I,isTypedArray:ee,isFileList:P,forEach:H,merge:G,extend:W,trim:M,stripBOM:X,inherits:$,toFlatObject:Z,kindOf:b,kindOfTest:m,endsWith:Q,toArray:Y,forEachEntry:te,matchAll:re,isHTMLForm:ne,hasOwnProperty:oe,hasOwnProp:oe,reduceDescriptors:se,freezeMethods:ue,toObjectSet:ce,toCamelCase:ie,noop:fe,toFiniteNumber:le,findKey:K,global:V,isContextDefined:J,ALPHABET:he,generateString:pe,isSpecCompliantForm:be,toJSONObject:me,isAsyncFn:we,isThenable:ge,setImmediate:ye,asap:xe};function _e(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);if(i){this.response=i;this.status=i.status?i.status:null}}ke.inherits(_e,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ke.toJSONObject(this.config),code:this.code,status:this.status}}});var Re=_e.prototype;var Se={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Se[e]={value:e}}));Object.defineProperties(_e,Se);Object.defineProperty(Re,"isAxiosError",{value:true});_e.from=function(e,t,r,n,i,o){var a=Object.create(Re);ke.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));_e.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var Oe=null;function Ee(e){return ke.isPlainObject(e)||ke.isArray(e)}function Ae(e){return ke.endsWith(e,"[]")?e.slice(0,-2):e}function Te(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Ae(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function je(e){return ke.isArray(e)&&!e.some(Ee)}var Ce=ke.toFlatObject(ke,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Ne(e,t,r){if(!ke.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=ke.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!ke.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var s=r.Blob||typeof Blob!=="undefined"&&Blob;var u=s&&ke.isSpecCompliantForm(t);if(!ke.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(ke.isDate(e)){return e.toISOString()}if(!u&&ke.isBlob(e)){throw new _e("Blob is not supported. Use a Buffer instead.")}if(ke.isArrayBuffer(e)||ke.isTypedArray(e)){return u&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var s=e;if(e&&!i&&typeof e==="object"){if(ke.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(ke.isArray(e)&&je(e)||(ke.isFileList(e)||ke.endsWith(r,"[]"))&&(s=ke.toArray(e))){r=Ae(r);s.forEach((function e(n,i){!(ke.isUndefined(n)||n===null)&&t.append(a===true?Te([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(Ee(e)){return true}t.append(Te(i,r,o),c(e));return false}var l=[];var d=Object.assign(Ce,{defaultVisitor:f,convertValue:c,isVisitable:Ee});function v(e,r){if(ke.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);ke.forEach(e,(function e(n,o){var a=!(ke.isUndefined(n)||n===null)&&i.call(t,n,ke.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!ke.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function Pe(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function Fe(e,t){this._pairs=[];e&&Ne(e,this,t)}var Ue=Fe.prototype;Ue.append=function e(t,r){this._pairs.push([t,r])};Ue.toString=function e(t){var r=t?function(e){return t.call(this,e,Pe)}:Pe;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function Ie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Be(e,t,r){if(!t){return e}var n=r&&r.encode||Ie;if(ke.isFunction(r)){r={serialize:r}}var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=ke.isURLSearchParams(t)?t.toString():new Fe(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var ze=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){ke.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var De=ze;var Le={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var qe=typeof URLSearchParams!=="undefined"?URLSearchParams:Fe;var Me=typeof FormData!=="undefined"?FormData:null;var He=typeof Blob!=="undefined"?Blob:null;var Ke={isBrowser:true,classes:{URLSearchParams:qe,FormData:Me,Blob:He},protocols:["http","https","file","blob","url","data"]};var Ve=typeof window!=="undefined"&&typeof document!=="undefined";var Je=typeof navigator==="object"&&navigator||undefined;var Ge=Ve&&(!Je||["ReactNative","NativeScript","NS"].indexOf(Je.product)<0);var We=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Xe=Ve&&window.location.href||"http://localhost";var $e=Object.freeze({__proto__:null,hasBrowserEnv:Ve,hasStandardBrowserWebWorkerEnv:We,hasStandardBrowserEnv:Ge,navigator:Je,origin:Xe});var Ze=__assign(__assign({},$e),Ke);function Qe(e,t){return Ne(e,new Ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){if(Ze.isNode&&ke.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Ye(e){return ke.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function et(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function tt(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var s=i>=e.length;o=!o&&ke.isArray(n)?n.length:o;if(s){if(ke.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!ke.isObject(n[o])){n[o]=[]}var u=t(e,r,n[o],i);if(u&&ke.isArray(n[o])){n[o]=et(n[o])}return!a}if(ke.isFormData(e)&&ke.isFunction(e.entries)){var r={};ke.forEachEntry(e,(function(e,n){t(Ye(e),n,r,0)}));return r}return null}function rt(e,t,r){if(ke.isString(e)){try{(t||JSON.parse)(e);return ke.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var nt={transitional:Le,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=ke.isObject(t);if(o&&ke.isHTMLForm(t)){t=new FormData(t)}var a=ke.isFormData(t);if(a){return i?JSON.stringify(tt(t)):t}if(ke.isArrayBuffer(t)||ke.isBuffer(t)||ke.isStream(t)||ke.isFile(t)||ke.isBlob(t)||ke.isReadableStream(t)){return t}if(ke.isArrayBufferView(t)){return t.buffer}if(ke.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return Qe(t,this.formSerializer).toString()}if((s=ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return Ne(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return rt(t)}return t}],transformResponse:[function e(t){var r=this.transitional||nt.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(ke.isResponse(t)||ke.isReadableStream(t)){return t}if(t&&ke.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw _e.from(e,_e.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ze.classes.FormData,Blob:Ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ke.forEach(["delete","get","head","post","put","patch"],(function(e){nt.headers[e]={}}));var it=nt;var ot=ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var at=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&ot[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var st=Symbol("internals");function ut(e){return e&&String(e).trim().toLowerCase()}function ct(e){if(e===false||e==null){return e}return ke.isArray(e)?e.map(ct):String(e)}function ft(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var lt=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function dt(e,t,r,n,i){if(ke.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!ke.isString(t))return;if(ke.isString(n)){return t.indexOf(n)!==-1}if(ke.isRegExp(n)){return n.test(t)}}function vt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function ht(e,t){var r=ke.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var pt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=ut(t);if(!i){throw new Error("header name must be a non-empty string")}var o=ke.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=ct(e)}}var o=function(e,t){return ke.forEach(e,(function(e,r){return i(e,r,t)}))};if(ke.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(ke.isString(e)&&(e=e.trim())&&!lt(e)){o(at(e),t)}else if(ke.isHeaders(e)){for(var a=0,s=e.entries();a<s.length;a++){var u=s[a],c=u[0],f=u[1];i(f,c,r)}}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=ut(e);if(e){var r=ke.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return ft(n)}if(ke.isFunction(t)){return t.call(this,n,r)}if(ke.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=ut(e);if(e){var r=ke.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||dt(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=ut(e);if(e){var i=ke.findKey(r,e);if(i&&(!t||dt(r,r[i],i,t))){delete r[i];n=true}}}if(ke.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||dt(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};ke.forEach(this,(function(n,i){var o=ke.findKey(r,i);if(o){t[o]=ct(n);delete t[i];return}var a=e?vt(i):String(i).trim();if(a!==i){delete t[i]}t[a]=ct(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);ke.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&ke.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[st]=this[st]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=ut(e);if(!r[t]){ht(n,e);r[t]=true}}ke.isArray(e)?e.forEach(i):i(e);return this};return e}();pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ke.reduceDescriptors(pt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));ke.freezeMethods(pt);var bt=pt;function mt(e,t){var r=this||it;var n=t||r;var i=bt.from(n.headers);var o=n.data;ke.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function wt(e){return!!(e&&e.__CANCEL__)}function gt(e,t,r){_e.call(this,e==null?"canceled":e,_e.ERR_CANCELED,t,r);this.name="CanceledError"}ke.inherits(gt,_e,{__CANCEL__:true});function yt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new _e("Request failed with status code "+r.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function xt(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function s(u){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=u;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function _t(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};var s=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=Date.now();var u=s-r;if(u>=n){a(e,s)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-u)}}};var u=function(){return i&&a(i)};return[s,u]}var Rt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=kt(50,250);return _t((function(r){var o;var a=r.loaded;var s=r.lengthComputable?r.total:undefined;var u=a-n;var c=i(u);var f=a<=s;n=a;var l=(o={loaded:a,total:s,progress:s?a/s:undefined,bytes:u,rate:c?c:undefined,estimated:c&&s&&f?(s-a)/c:undefined,event:r,lengthComputable:s!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var St=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var Ot=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return ke.asap((function(){return e.apply(void 0,t)}))}};var Et=Ze.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,Ze.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(Ze.origin),Ze.navigator&&/(msie|trident)/i.test(Ze.navigator.userAgent)):function(){return true};var At=Ze.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o){var a=[e+"="+encodeURIComponent(t)];ke.isNumber(r)&&a.push("expires="+new Date(r).toGMTString());ke.isString(n)&&a.push("path="+n);ke.isString(i)&&a.push("domain="+i);o===true&&a.push("secure");document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Tt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ct(e,t){if(e&&!Tt(t)){return jt(e,t)}return t}var Nt=function(e){return e instanceof bt?__assign({},e):e};function Pt(e,t){t=t||{};var r={};function n(e,t,r,n){if(ke.isPlainObject(e)&&ke.isPlainObject(t)){return ke.merge.call({caseless:n},e,t)}else if(ke.isPlainObject(t)){return ke.merge({},t)}else if(ke.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!ke.isUndefined(t)){return n(e,t,r,i)}else if(!ke.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!ke.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!ke.isUndefined(t)){return n(undefined,t)}else if(!ke.isUndefined(e)){return n(undefined,e)}}function s(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t,r){return i(Nt(e),Nt(t),r,true)}};ke.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=u[o]||i;var c=a(e[o],t[o],o);ke.isUndefined(c)&&a!==s||(r[o]=c)}));return r}var Ft=function(e){var t=Pt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,s=t.auth;t.headers=a=bt.from(a);t.url=Be(Ct(t.baseURL,t.url),e.params,e.paramsSerializer);if(s){a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")))}var u;if(ke.isFormData(r)){if(Ze.hasStandardBrowserEnv||Ze.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if((u=a.getContentType())!==false){var c=u?u.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=c[0],l=c.slice(1);a.setContentType(__spreadArray([f||"multipart/form-data"],l,true).join("; "))}}if(Ze.hasStandardBrowserEnv){n&&ke.isFunction(n)&&(n=n(t));if(n||n!==false&&Et(t.url)){var d=i&&o&&At.read(o);if(d){a.set(i,d)}}}return t};var Ut=typeof XMLHttpRequest!=="undefined";var It=Ut&&function(e){return new Promise((function t(r,n){var i,o;var a=Ft(e);var s=a.data;var u=bt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,b;function m(){p&&p();b&&b();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function g(){if(!w){return}var t=bt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};yt((function e(t){r(t);m()}),(function e(t){n(t);m()}),o);w=null}if("onloadend"in w){w.onloadend=g}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}w.onabort=function t(){if(!w){return}n(new _e("Request aborted",_e.ECONNABORTED,e,w));w=null};w.onerror=function t(){n(new _e("Network Error",_e.ERR_NETWORK,e,w));w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Le;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new _e(r,i.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,w));w=null};s===undefined&&u.setContentType(null);if("setRequestHeader"in w){ke.forEach(u.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!ke.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=Rt(l,true),h=i[0],b=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=Rt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new gt(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var y=xt(a.url);if(y&&Ze.protocols.indexOf(y)===-1){n(new _e("Unsupported protocol "+y+":",_e.ERR_BAD_REQUEST,e));return}w.send(s||null)}))};var Bt=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;s();var t=e instanceof Error?e:this.reason;n.abort(t instanceof _e?t:new gt(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new _e("timeout ".concat(t," of ms exceeded"),_e.ETIMEDOUT))}),t);var s=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var u=n.signal;u.unsubscribe=function(){return ke.asap(s)};return u}};var zt=Bt;var Dt=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(!t||r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var Lt=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var s,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(qt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),s=i.done,!s))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(Dt(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();u={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!s&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var qt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var Mt=function(e,t,r,n){var i=Lt(e,t);var o=0;var a;var s=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){s();e.close();return[2]}u=a.byteLength;if(r){c=o+=u;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();s(f);throw f;case 3:return[2]}}))}))},cancel:function(e){s(e);return i.return()}},{highWaterMark:2})};var Ht=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";var Kt=Ht&&typeof ReadableStream==="function";var Vt=Ht&&(typeof TextEncoder==="function"?function(e){return function(t){return e.encode(t)}}(new TextEncoder):function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Uint8Array.bind;return[4,new Response(e).arrayBuffer()];case 1:return[2,new(t.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var Jt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Gt=Kt&&Jt((function(){var e=false;var t=new Request(Ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var Wt=64*1024;var Xt=Kt&&Jt((function(){return ke.isReadableStream(new Response("").body)}));var $t={stream:Xt&&function(e){return e.body}};Ht&&function(e){["text","arrayBuffer","blob","formData","stream"].forEach((function(t){!$t[t]&&($t[t]=ke.isFunction(e[t])?function(e){return e[t]()}:function(e,r){throw new _e("Response type '".concat(t,"' is not supported"),_e.ERR_NOT_SUPPORT,r)})}))}(new Response);var Zt=function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:if(e==null){return[2,0]}if(ke.isBlob(e)){return[2,e.size]}if(!ke.isSpecCompliantForm(e))return[3,2];t=new Request(Ze.origin,{method:"POST",body:e});return[4,t.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(ke.isArrayBufferView(e)||ke.isArrayBuffer(e)){return[2,e.byteLength]}if(ke.isURLSearchParams(e)){e=e+""}if(!ke.isString(e))return[3,4];return[4,Vt(e)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var Qt=function(e,t){return __awaiter(d,void 0,void 0,(function(){var r;return __generator(this,(function(n){r=ke.toFiniteNumber(e.getContentLength());return[2,r==null?Zt(t):r]}))}))};var Yt=Ht&&function(e){return __awaiter(d,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,c,f,l,d,v,h,p,b,m,w,g,y,x,k,_,R,S,O,E,A,T,j,_,C,N,P;return __generator(this,(function(F){switch(F.label){case 0:t=Ft(e),r=t.url,n=t.method,i=t.data,o=t.signal,a=t.cancelToken,s=t.timeout,u=t.onDownloadProgress,c=t.onUploadProgress,f=t.responseType,l=t.headers,d=t.withCredentials,v=d===void 0?"same-origin":d,h=t.fetchOptions;f=f?(f+"").toLowerCase():"text";p=zt([o,a&&a.toAbortSignal()],s);m=p&&p.unsubscribe&&function(){p.unsubscribe()};F.label=1;case 1:F.trys.push([1,7,,8]);g=c&&Gt&&n!=="get"&&n!=="head";if(!g)return[3,3];return[4,Qt(l,i)];case 2:g=(w=F.sent())!==0;F.label=3;case 3:if(g){y=new Request(r,{method:"POST",body:i,duplex:"half"});x=void 0;if(ke.isFormData(i)&&(x=y.headers.get("content-type"))){l.setContentType(x)}if(y.body){k=St(w,Rt(Ot(c))),_=k[0],R=k[1];i=Mt(y.body,Wt,_,R)}}if(!ke.isString(v)){v=v?"include":"omit"}S="credentials"in Request.prototype;b=new Request(r,__assign(__assign({},h),{signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:S?v:undefined}));return[4,fetch(b)];case 4:O=F.sent();E=Xt&&(f==="stream"||f==="response");if(Xt&&(u||E&&m)){A={};["status","statusText","headers"].forEach((function(e){A[e]=O[e]}));T=ke.toFiniteNumber(O.headers.get("content-length"));j=u&&St(T,Rt(Ot(u),true))||[],_=j[0],C=j[1];O=new Response(Mt(O.body,Wt,_,(function(){C&&C();m&&m()})),A)}f=f||"text";return[4,$t[ke.findKey($t,f)||"text"](O,e)];case 5:N=F.sent();!E&&m&&m();return[4,new Promise((function(t,r){yt(t,r,{data:N,headers:bt.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:b})}))];case 6:return[2,F.sent()];case 7:P=F.sent();m&&m();if(P&&P.name==="TypeError"&&/fetch/i.test(P.message)){throw Object.assign(new _e("Network Error",_e.ERR_NETWORK,e,b),{cause:P.cause||P})}throw _e.from(P,P&&P.code,e,b);case 8:return[2]}}))}))};var er={http:Oe,xhr:It,fetch:Yt};ke.forEach(er,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var tr=function(e){return"- ".concat(e)};var rr=function(e){return ke.isFunction(e)||e===null||e===false};var nr={getAdapter:function(e){e=ke.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!rr(r)){n=er[(a=String(r)).toLowerCase()];if(n===undefined){throw new _e("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var s=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var u=t?s.length>1?"since :\n"+s.map(tr).join("\n"):" "+tr(s[0]):"as no adapter specified";throw new _e("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:er};function ir(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new gt(null,e)}}function or(e){ir(e);e.headers=bt.from(e.headers);e.data=mt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=nr.getAdapter(e.adapter||it.adapter);return t(e).then((function t(r){ir(e);r.data=mt.call(e,e.transformResponse,r);r.headers=bt.from(r.headers);return r}),(function t(r){if(!wt(r)){ir(e);if(r&&r.response){r.response.data=mt.call(e,e.transformResponse,r.response);r.response.headers=bt.from(r.response.headers)}}return Promise.reject(r)}))}var ar="1.7.9";var sr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){sr[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ur={};sr.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+ar+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new _e(i(n," has been removed"+(r?" in "+r:"")),_e.ERR_DEPRECATED)}if(r&&!ur[n]){ur[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};sr.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function cr(e,t,r){if(typeof e!=="object"){throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new _e("option "+o+" must be "+u,_e.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new _e("Unknown option "+o,_e.ERR_BAD_OPTION)}}}var fr={assertOptions:cr,validators:sr};var lr=fr.validators;var dr=function(){function e(e){this.defaults=e;this.interceptors={request:new De,response:new De}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Pt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){fr.assertOptions(r,{silentJSONParsing:lr.transitional(lr.boolean),forcedJSONParsing:lr.transitional(lr.boolean),clarifyTimeoutError:lr.transitional(lr.boolean)},false)}if(n!=null){if(ke.isFunction(n)){t.paramsSerializer={serialize:n}}else{fr.assertOptions(n,{encode:lr.function,serialize:lr.function},true)}}fr.assertOptions(t,{baseUrl:lr.spelling("baseURL"),withXsrfToken:lr.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&ke.merge(i.common,i[t.method]);i&&ke.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=bt.concat(o,i);var a=[];var s=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}s=s&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var u=[];this.interceptors.response.forEach((function e(t){u.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!s){var d=[or.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,u);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;f=0;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=or.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=u.length;while(f<l){c=c.then(u[f++],u[f++])}return c};e.prototype.getUri=function(e){e=Pt(this.defaults,e);var t=Ct(e.baseURL,e.url);return Be(t,e.params,e.paramsSerializer)};return e}();ke.forEach(["delete","get","head","options"],(function e(t){dr.prototype[t]=function(e,r){return this.request(Pt(r||{},{method:t,url:e,data:(r||{}).data}))}}));ke.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(Pt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}dr.prototype[t]=r();dr.prototype[t+"Form"]=r(true)}));var vr=dr;var hr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new gt(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var pr=hr;function br(e){return function t(r){return e.apply(null,r)}}function mr(e){return ke.isObject(e)&&e.isAxiosError===true}var wr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wr).forEach((function(e){var t=e[0],r=e[1];wr[r]=t}));var gr=wr;function yr(e){var t=new vr(e);var r=v(vr.prototype.request,t);ke.extend(r,vr.prototype,t,{allOwnKeys:true});ke.extend(r,t,null,{allOwnKeys:true});r.create=function t(r){return yr(Pt(e,r))};return r}var xr=yr(it);xr.Axios=vr;xr.CanceledError=gt;xr.CancelToken=pr;xr.isCancel=wt;xr.VERSION=ar;xr.toFormData=Ne;xr.AxiosError=_e;xr.Cancel=xr.CanceledError;xr.all=function e(t){return Promise.all(t)};xr.spread=br;xr.isAxiosError=mr;xr.mergeConfig=Pt;xr.AxiosHeaders=bt;xr.formToJSON=function(e){return tt(ke.isHTMLForm(e)?new FormData(e):e)};xr.getAdapter=nr.getAdapter;xr.HttpStatusCode=gr;xr.default=xr;var kr=xr;var _r=["https://beta.verdocs.com","https://stage.verdocs.com","http://localhost:6006","http://localhost:5173"];var Rr=_r.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var Sr=function(){return kr.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:Rr}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var Or='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var Er=Or;var Ar='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var Tr=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=r(this,"searchContacts",7);this.exit=r(this,"exit",7);this.next=r(this,"next",7);this.endpoint=a.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=s(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}u(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));Sr().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();console.log("cxl");this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();console.log("sub");this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,o,a,u,f,d,v,h,p,b,m,w,g,y,x,k,_;var R=this.first_name&&this.last_name&&c(this.email);var S=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var O=R&&S;var E=((o=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||o===void 0?void 0:o.enabled)===true;var A=[];if(((f=(u=(a=this.featureFlags)===null||a===void 0?void 0:a.toggles)===null||u===void 0?void 0:u.find((function(e){return e.name==="passcode-verification"})))===null||f===void 0?void 0:f.enabled)===true){A.push({label:"Passcode",value:"passcode"})}if(((h=(v=(d=this.featureFlags)===null||d===void 0?void 0:d.toggles)===null||v===void 0?void 0:v.find((function(e){return e.name==="email-verification"})))===null||h===void 0?void 0:h.enabled)===true){A.push({label:"Email",value:"email"})}if(E&&((m=(b=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||b===void 0?void 0:b.find((function(e){return e.name==="sms-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.sms_auth){A.push({label:"SMS (One-Time Code)",value:"sms"})}if(((y=(g=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||g===void 0?void 0:g.find((function(e){return e.name==="kba-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.kba_auth){A.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((_=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((function(e){return e.name==="id-verification"})))===null||_===void 0?void 0:_.enabled)===true&&!!this.activeEntitlements.id_auth){A.push({label:"ID Check",value:"id"})}return n("form",{key:"b2cda11b375e553371cc05752be032dcc64fb372",onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("div",{key:"604d484cc9c77a84a2853ddeef8255f871532cf3",class:"row"},n("label",{key:"99c7c4c15a51d09b0266ebbc9688540ea068b430",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"aeb977e092aca353119db0ff1afa258f45850e35",class:"names-row"},n("input",{key:"1564f8fb970581524148889aa8a4a8d0981398a7",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),n("input",{key:"66d1d0456f24d49fe0be746c4f35c0b3a12ba841",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&n("verdocs-portal",{key:"674571611b133f76e90d07685632b7430d0eb7c4",anchor:this.firstNameFieldId,onClickAway:function(){return e.showSuggestions=false},id:"verdocs-contact-picker-suggestions"},n("div",{key:"c5e53ec590fc64b092d08540ac39ca482e78a79c",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return n("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?n("img",{alt:"Avatar",class:"avatar",src:t.picture}):n("div",{class:"avatar",innerHTML:Ar}),n("div",{class:"details"},n("div",{class:"name"},s(t)),t.email&&n("div",{class:"destination"},t.email),t.phone&&n("div",{class:"destination"},t.phone)))}))))),n("div",{key:"61a05720167114b362f5c2c4f6ee794e9a823059",class:"row"},n("label",{key:"9432c1386e24d7f8d09dc5415958bf88e49ed83c",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"b5ce556ba67b26bfd09e9d6b0ea0427363355510",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),E&&n("div",{key:"6bf7712b43c8b7924ff792290c723a66a1a62296",class:"row"},n("label",{key:"e3744f9b285d7624b65ad4d94909c36cd156bb2d",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"e249b2e1432384b95a75fc3fb9a889cefd43fb14",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=l(t.target.value)}})),n(i,{key:"202d93245182ee54519b9f58962facd0a9f524d0"},A.length>0&&n("div",{key:"0af26fd7633cb6f062e56be65adac2743814304e",class:"row"},n("label",{key:"ed1366652b0db48b1e2f41dc6d65348c9699887e"},"Recipient Verification:"),n("verdocs-multiselect",{key:"107921cec4e2d8b7a7ea11c7451451a50216e08a",label:"",placeholder:"None",options:A,selectedOptions:this.auth_methods,onSelectionChanged:function(t){console.log("selectedOptions changed",t.detail);e.auth_methods=t.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"2a9e0e955211846e2875661fd9408e7e58092504",class:"row pin-code"},n("label",{key:"8295693a69e940d6f5a00f0972766bbf0e13a18f",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"60e78fb22245e97efab765e3a47f112b4bb58341",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),n("div",{key:"47ed4c44d6f4e0f9d5d9733a47183e9c652d7a1b",class:"row message"},n("label",{key:"a471e42ac85935d711f4ff362c3f5c01b84bab82",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"c3b3011e031f0552ad18bf3d14525b439f729b6f",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),n("div",{key:"02e7f7d6f8fb67ce5c301fc573a91234ac8c0a1a",class:"buttons"},n("div",{key:"217bdfe57aae7db9ed38e4e0430e3fb017c2f206",class:"flex-fill"}),n("verdocs-button",{key:"91b7541ffaf7b2ca2b18dfb0962cde71e11669f8",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{key:"d55e4aad3e7647d05e7052e9ee1176855101d598",label:"OK",size:"small",disabled:!O,onClick:!O?function(){}:function(t){return e.handleSubmit(t)}})))};return e}());Tr.style=Er;var jr='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect.open .input-wrapper .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';var Cr=jr;var Nr='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>';var Pr=e("verdocs_multiselect",function(){function e(e){t(this,e);this.selectionChanged=r(this,"selectionChanged",7);this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}e.prototype.handleToggleOption=function(e,t){var r;if(e.target.checked){this.selectedOptions=__spreadArray(__spreadArray([],this.selectedOptions,true),[t.value],false)}else{this.selectedOptions=this.selectedOptions.filter((function(e){return e!==t.value}))}(r=this.selectionChanged)===null||r===void 0?void 0:r.emit({selectedOptions:this.selectedOptions})};e.prototype.render=function(){var e=this;var t="verdocs-dropdown-".concat(f(8));return n(o,{key:"7fa4d31d423894e8caa3dffd1fb46752b7b87ee5",class:this.showPicker?"open":"closed"},n("label",{key:"891a7d7ee2867d598f2f3ea6609148a47a9a7166"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"c165f68315aec9d1aca6e9f2214ece090f496363",class:"input-wrapper"},n("button",{key:"2297bfb9c84abd5da4c73dfcbae15fe2f5f04c1c",id:t,class:"trigger",value:"",onClick:function(){return e.showPicker=true}},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((function(t){var r;return n("span",{class:"selected-option"},((r=e.options.find((function(e){return e.value===t})))===null||r===void 0?void 0:r.label)||"Unknown")}))),n("div",{key:"e4929befc449d9be400305ee3e0aeb1c171583fd",class:"icon",innerHTML:Nr}),this.showPicker&&n("verdocs-portal",{key:"42016ae18aa4acd4c5aac8f2ea3a7d6126116aa6",anchor:t,voffset:2,onClickAway:function(){return e.showPicker=false},id:"verdocs-multiselect-menu-items"},this.options.map((function(t,r){return n("div",{class:"option",onClick:function(){return e.showPicker=false}},n("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.selectedOptions.includes(t.value),onInput:function(r){return e.handleToggleOption(r,t)}}),n("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))}))))))};return e}());Pr.style=Cr}}}));
|
2
|
+
//# sourceMappingURL=p-e5684a49.system.entry.js.map
|