@verdocs/web-sdk 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-9ea8fdb4.js → index-2aebde37.js} +4 -1
- package/dist/cjs/index-2aebde37.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +14 -2
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-text-input.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +50 -2
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js.map +1 -1
- package/dist/components/verdocs-search-box2.js +16 -2
- package/dist/components/verdocs-search-box2.js.map +1 -1
- package/dist/custom-elements.json +825 -0
- package/dist/docs.json +32 -3
- package/dist/esm/{index-5d92e60f.js → index-af5f4964.js} +4 -1
- package/dist/esm/index-af5f4964.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-button.entry.js +1 -1
- package/dist/esm/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-dropdown_4.entry.js +1 -1
- package/dist/esm/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm/verdocs-field-initial.entry.js +1 -1
- package/dist/esm/verdocs-field-payment.entry.js +1 -1
- package/dist/esm/verdocs-field-signature.entry.js +1 -1
- package/dist/esm/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions_3.entry.js +14 -2
- package/dist/esm/verdocs-quick-functions_3.entry.js.map +1 -1
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-text-input.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +3 -3
- package/dist/esm/verdocs-web-sdk.js.map +1 -1
- package/dist/esm-es5/{index-5d92e60f.js → index-af5f4964.js} +2 -2
- package/dist/esm-es5/index-af5f4964.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.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/elements/verdocs-search-box/verdocs-search-box.d.ts +7 -0
- package/dist/types/components.d.ts +9 -0
- package/dist/verdocs-web-sdk/{p-d0d42959.entry.js → p-07f55897.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d0d42959.entry.js.map → p-07f55897.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-afde50f4.system.entry.js → p-0d6d5814.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-afde50f4.system.entry.js.map → p-0d6d5814.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-0df2b27c.system.js +2 -0
- package/dist/verdocs-web-sdk/p-0df2b27c.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-108c902c.entry.js → p-19a2aa83.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-108c902c.entry.js.map → p-19a2aa83.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-416b34f3.entry.js → p-1d4e0c98.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-416b34f3.entry.js.map → p-1d4e0c98.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6247cf41.system.entry.js → p-1f4039a4.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6247cf41.system.entry.js.map → p-1f4039a4.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f22d5fd0.entry.js → p-24d7c3b0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f22d5fd0.entry.js.map → p-24d7c3b0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-aadaa992.entry.js → p-252d3b8b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-aadaa992.entry.js.map → p-252d3b8b.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-94ac8f93.system.entry.js → p-31e5873f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-94ac8f93.system.entry.js.map → p-31e5873f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f0eee0d5.entry.js → p-368455f0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f0eee0d5.entry.js.map → p-368455f0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9dcb571c.system.entry.js → p-3ce43f4b.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9dcb571c.system.entry.js.map → p-3ce43f4b.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-cfe577f1.entry.js → p-40ad0c92.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cfe577f1.entry.js.map → p-40ad0c92.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4cb28823.entry.js → p-46effac3.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4cb28823.entry.js.map → p-46effac3.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-e8cbf290.entry.js → p-4e29c137.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e8cbf290.entry.js.map → p-4e29c137.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-5aca8a03.system.entry.js → p-5160b7bd.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5aca8a03.system.entry.js.map → p-5160b7bd.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4d14aded.entry.js → p-550b0f7e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4d14aded.entry.js.map → p-550b0f7e.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-61ecdb86.js +3 -0
- package/dist/verdocs-web-sdk/p-61ecdb86.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-fdefbcee.entry.js → p-627ad3ed.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fdefbcee.entry.js.map → p-627ad3ed.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-a53ba4ee.entry.js → p-6352c427.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a53ba4ee.entry.js.map → p-6352c427.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d1100510.entry.js → p-63eb48f0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d1100510.entry.js.map → p-63eb48f0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d5585118.system.entry.js → p-6859482c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d5585118.system.entry.js.map → p-6859482c.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-198947d7.system.entry.js → p-68f4e8fc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-198947d7.system.entry.js.map → p-68f4e8fc.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-4bf9a238.system.entry.js → p-68fc7efc.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-4bf9a238.system.entry.js.map → p-68fc7efc.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d8f9569e.system.entry.js → p-72115808.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d8f9569e.system.entry.js.map → p-72115808.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f2421625.entry.js → p-77a9f800.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f2421625.entry.js.map → p-77a9f800.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-8929b18b.entry.js → p-7cd59644.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8929b18b.entry.js.map → p-7cd59644.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0e99724c.system.entry.js → p-7ea7db5c.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0e99724c.system.entry.js.map → p-7ea7db5c.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3ae0b204.entry.js → p-7fb414e7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3ae0b204.entry.js.map → p-7fb414e7.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6fbb6a9e.entry.js → p-8bba55af.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6fbb6a9e.entry.js.map → p-8bba55af.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9d9490f1.system.entry.js → p-9660162f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9d9490f1.system.entry.js.map → p-9660162f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-c9fd8a97.system.entry.js → p-980bc364.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-c9fd8a97.system.entry.js.map → p-980bc364.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-90d79493.system.entry.js → p-99aef995.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-90d79493.system.entry.js.map → p-99aef995.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7c747762.entry.js → p-9a713b3a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7c747762.entry.js.map → p-9a713b3a.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-e2ff8188.system.entry.js → p-9d801657.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e2ff8188.system.entry.js.map → p-9d801657.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-850f6330.system.entry.js → p-a00e94fa.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-850f6330.system.entry.js.map → p-a00e94fa.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-55ebea82.system.entry.js → p-a394a4ba.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-55ebea82.system.entry.js.map → p-a394a4ba.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-2b592dcf.system.entry.js → p-a3f64ad7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2b592dcf.system.entry.js.map → p-a3f64ad7.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d56338e0.entry.js → p-a4098c03.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d56338e0.entry.js.map → p-a4098c03.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-1eb067e7.entry.js → p-a63e0709.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1eb067e7.entry.js.map → p-a63e0709.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-ea8bf9ee.entry.js → p-abd8a92d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-ea8bf9ee.entry.js.map → p-abd8a92d.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-f10d460c.entry.js → p-b3419893.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f10d460c.entry.js.map → p-b3419893.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3f6a2934.system.entry.js → p-b347f7d8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-3f6a2934.system.entry.js.map → p-b347f7d8.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-42205110.entry.js → p-b3d078a1.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-42205110.entry.js.map → p-b3d078a1.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d8620769.system.entry.js → p-ba477710.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d8620769.system.entry.js.map → p-ba477710.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-832f3654.entry.js → p-bd2004b7.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-bd2004b7.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-5df78e0c.entry.js → p-c262955d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-5df78e0c.entry.js.map → p-c262955d.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-c3e77379.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c3e77379.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7b1ccd3e.entry.js → p-c76c92a2.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7b1ccd3e.entry.js.map → p-c76c92a2.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-87b222f5.system.entry.js → p-cb371aae.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-87b222f5.system.entry.js.map → p-cb371aae.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-d61aad62.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/{p-130fc6dc.system.entry.js.map → p-d61aad62.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-9f5f3f18.entry.js → p-ddad5c39.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-9f5f3f18.entry.js.map → p-ddad5c39.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d66c21d6.system.entry.js → p-df215940.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d66c21d6.system.entry.js.map → p-df215940.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-0864f08b.system.entry.js → p-e251c0ed.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-0864f08b.system.entry.js.map → p-e251c0ed.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-3e43c974.system.js → p-eef0b919.system.js} +3 -3
- package/dist/verdocs-web-sdk/p-eef0b919.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-a8c701c8.entry.js → p-f08d08df.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a8c701c8.entry.js.map → p-f08d08df.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-07b662d1.system.entry.js → p-fa5dc225.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-07b662d1.system.entry.js.map → p-fa5dc225.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-6cf319c9.system.entry.js → p-fb6927da.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6cf319c9.system.entry.js.map → p-fb6927da.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7a4aa102.system.entry.js → p-fdb32f3f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7a4aa102.system.entry.js.map → p-fdb32f3f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-7f60c1b5.system.entry.js → p-fee6012f.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-7f60c1b5.system.entry.js.map → p-fee6012f.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/package.json +5 -5
- package/dist/cjs/index-9ea8fdb4.js.map +0 -1
- package/dist/esm/index-5d92e60f.js.map +0 -1
- package/dist/esm-es5/index-5d92e60f.js.map +0 -1
- package/dist/typings.d.ts +0 -4
- package/dist/verdocs-web-sdk/p-0455eebe.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-0455eebe.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-130fc6dc.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3e43c974.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-403b35bb.system.js +0 -2
- package/dist/verdocs-web-sdk/p-403b35bb.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-832f3654.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-f418ed9f.js +0 -3
- package/dist/verdocs-web-sdk/p-f418ed9f.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-af5f4964.js";var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_31553_1553)">\n<path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/>\n</g>\n<defs>\n<clipPath id="clip0_31553_1553">\n<rect width="30" height="29" fill="white" transform="translate(0.886719)"/>\n</clipPath>\n</defs>\n</svg>\n';var verdocsTemplateCardCss='verdocs-template-card{font-family:"Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCard=function(){function t(t){registerInstance(this,t)}t.prototype.render=function(){var t,e,a,o,s;return h(Host,null,h("img",{src:((e=(t=this.template)===null||t===void 0?void 0:t.template_document)===null||e===void 0?void 0:e.thumbnail_url)||"",alt:"Template Thumbnail",class:"thumbnail"}),h("span",{class:"name"},this.template.name),h("span",{class:"org-name"},((a=this.template.organization)===null||a===void 0?void 0:a.name)||"Public"),h("hr",null),h("div",{class:"controls"},h("div",{class:"control"},h("span",{class:"icon",innerHTML:StarIcon}),h("span",{class:"value"},this.template.star_counter)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:PagesIcon}),h("span",{class:"value"},((s=(o=this.template)===null||o===void 0?void 0:o.template_document)===null||s===void 0?void 0:s.page_numbers)||1)),h("div",{class:"control secondary"},h("span",{class:"icon",innerHTML:EmailIcon}),h("span",{class:"value"},this.template.counter)),h("span",{class:"additional-controls",innerHTML:ActionsIcon})))};return t}();VerdocsTemplateCard.style=verdocsTemplateCardCss;export{VerdocsTemplateCard as verdocs_template_card};
|
|
2
2
|
//# sourceMappingURL=verdocs-template-card.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-af5f4964.js";var verdocsTemplateTagsCss='verdocs-template-tags{font-family:"Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;return h(Host,null,(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=verdocsTemplateTagsCss;export{VerdocsTemplateTags as verdocs_template_tags};
|
|
2
2
|
//# sourceMappingURL=verdocs-template-tags.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-af5f4964.js";var verdocsTextInputCss='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-label{display:block;color:#33354c;font-weight:400;font-size:14px;margin:0 0 4px 0}';var VerdocsTextInput=function(){function t(t){registerInstance(this,t);this.fieldInput=createEvent(this,"fieldInput",7);this.fieldFocus=createEvent(this,"fieldFocus",7);this.fieldBlur=createEvent(this,"fieldBlur",7);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.type="text";this.disabled=false;this._value=""}t.prototype.componentWillLoad=function(){this._value=this.value};t.prototype.componentDidLoad=function(){};t.prototype.handleInput=function(t){this._value=t.target.value;this.fieldInput.emit(this._value)};t.prototype.handleFocus=function(t){this.fieldFocus.emit(t)};t.prototype.handleBlur=function(t){this.fieldBlur.emit(t)};t.prototype.render=function(){var t=this;return h(Host,{class:"input-field"},h("label",null,this.label?h("div",{class:"input-label"},this.label+":"):h("div",null),h("input",{type:this.type,placeholder:this.placeholder,autoComplete:this.autocomplete,disabled:this.disabled,value:this._value,class:"input-element",onInput:function(e){return t.handleInput(e)},onFocus:function(e){return t.handleFocus(e)},onBlur:function(e){return t.handleBlur(e)}})))};return t}();VerdocsTextInput.style=verdocsTextInputCss;export{VerdocsTextInput as verdocs_text_input};
|
|
2
2
|
//# sourceMappingURL=verdocs-text-input.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-
|
|
1
|
+
import{r as registerInstance,h}from"./index-af5f4964.js";var verdocsToggleCss='verdocs-toggle{font-family:"Barlow", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}';var VerdocsToggle=function(){function t(t){registerInstance(this,t)}t.prototype.handleClick=function(t){t.preventDefault();var e=t.target;if(e.matches("toggle-icon-buttons")){e=t.target.shadowRoot;var o=e.activeElement;var s=Array.from(o.parentElement.children).filter((function(t){return t!==o}));s.map((function(t){return t.classList.remove("selected")}));if(!o.classList.contains("selected")){o.classList.add("selected")}}};t.prototype.render=function(){var t=this;return h("div",{class:"container"},h("span",{class:"label"},"".concat(this.options.label,":")),h("div",{class:"buttons"},this.options.buttons.map((function(e,o){return h("button",{id:e.id,key:e.id,innerHTML:e.icon,class:o===t.options.defaultSelection?"selected":""})}))))};return t}();VerdocsToggle.style=verdocsToggleCss;export{VerdocsToggle as verdocs_toggle};
|
|
2
2
|
//# sourceMappingURL=verdocs-toggle.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(i,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return s([e,t])}}function s(i){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(a=i[0]&2?r["return"]:i[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;if(r=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];r=0}finally{o=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{s(o.next(e))}catch(e){a(e)}}function l(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(i,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return s([e,t])}}function s(i){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(a=i[0]&2?r["return"]:i[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;if(r=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;r=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){n.label=i[1];break}if(i[0]===6&&n.label<a[1]){n.label=a[1];a=i;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(i);break}if(a[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];r=0}finally{o=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-af5f4964.js";var fileToDataUrl=function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(){return t({lastModified:e.lastModified,size:e.size,type:e.type,name:e.name,data:o.result})};o.onerror=n;if(e){o.readAsDataURL(e)}else{n(new Error("Invalid file"))}}))};var Paperclip='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n';var Trash='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n</svg>\n';var verdocsUploadDialogCss='verdocs-upload-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}';var VerdocsUploadDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.open=false;this.draggingOver=false;this.decodedFiles=[]}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.decodedFiles);this.open=false};e.prototype.handleDragOver=function(e){e.preventDefault();this.draggingOver=true};e.prototype.handleDragLeave=function(e){e.preventDefault();this.draggingOver=false};e.prototype.handleDrop=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r;return __generator(this,(function(a){switch(a.label){case 0:e.preventDefault();this.draggingOver=false;t=[];if(e.dataTransfer.items){for(n=0;n<e.dataTransfer.items.length;n++){if(e.dataTransfer.items[n].kind==="file"){o=e.dataTransfer.items[n].getAsFile();t.push(o)}}}else{t=e.dataTransfer.files}r=this;return[4,Promise.all(t.map(fileToDataUrl))];case 1:r.decodedFiles=a.sent();return[2]}}))}))};e.prototype.handleRemoveAttachment=function(e){var t=__spreadArray([],this.decodedFiles,true);t.splice(e,1);this.decodedFiles=t};e.prototype.handleSelectFile=function(){var e;(e=this.fileInput)===null||e===void 0?void 0:e.click()};e.prototype.handleFileChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r,a,i;return __generator(this,(function(l){switch(l.label){case 0:console.log("fileChange",e);console.log("files",(t=this.fileInput)===null||t===void 0?void 0:t.files);r=[];for(a=0;a<((n=this.fileInput)===null||n===void 0?void 0:n.files.length);a++){r.push((o=this.fileInput)===null||o===void 0?void 0:o.files[a])}i=this;return[4,Promise.all(r.map(fileToDataUrl))];case 1:i.decodedFiles=l.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Upload attachment"),this.decodedFiles.length<1?h("div",{class:{"drop-target":true,"dragging-over":this.draggingOver},onDragOver:function(t){return e.handleDragOver(t)},onDragLeave:function(t){return e.handleDragLeave(t)},onDrop:function(t){return e.handleDrop(t)}},h("p",null,"Drag and drop a file here..."),h("p",null,"- or -"),h("verdocs-button",{label:"Select a file...",onPress:function(){return e.handleSelectFile()}}),h("input",{type:"file",ref:function(t){return e.fileInput=t},style:{display:"none"},onChange:function(t){return e.handleFileChange(t)}})):h("div",{class:"attachments"},this.decodedFiles.map((function(t,n){return h("div",{class:"attachment"},h("div",{class:"icon",innerHTML:Paperclip}),h("div",{class:"name"},t.name),h("div",{class:"icon trash",innerHTML:Trash,onClick:function(){return e.handleRemoveAttachment(n)}}))}))),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:this.decodedFiles.length<1})))))};return e}();VerdocsUploadDialog.style=verdocsUploadDialogCss;export{VerdocsUploadDialog as verdocs_upload_dialog};
|
|
2
2
|
//# sourceMappingURL=verdocs-upload-dialog.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-af5f4964.js";var patchBrowser=function(){var e=import.meta.url;var d={};if(e!==""){d.resourcesUrl=new URL(".",e).href}return promiseResolve(d)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-sign",[[0,"verdocs-sign",{endpoint:[16],documentId:[1,"document-id"],roleId:[1,"role-id"],inviteCode:[1,"invite-code"],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{endpoint:[16],visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["verdocs-field-initial",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}]]],["verdocs-field-signature",[[0,"verdocs-field-signature",{field:[16],recipient:[16],tempSignature:[32],focusField:[64]}]]],["verdocs-search",[[0,"verdocs-search",{endpoint:[16]}]]],["verdocs-field-attachment",[[0,"verdocs-field-attachment",{field:[16],order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],open:[4],response:[32]}]]],["verdocs-field-date",[[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["verdocs-field-dropdown",[[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}]]],["verdocs-field-payment",[[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}]]],["verdocs-field-textarea",[[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["verdocs-field-textbox",[[0,"verdocs-field-textbox",{field:[16],focused:[32],focusField:[64]}]]],["verdocs-field-timestamp",[[0,"verdocs-field-timestamp",{field:[16],focused:[32],focusField:[64]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{organization:[16]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{selected:[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],document:[16],isOpen:[32],recipientStatusIcons:[32],containerId:[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{template:[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{tags:[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["verdocs-text-input",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}]]],["verdocs-button",[[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["verdocs-initial-dialog",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{fullName:[1,"full-name"],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["verdocs-quick-functions_3",[[0,"verdocs-quick-functions",{endpoint:[16]}],[0,"verdocs-search-activity",{endpoint:[16],type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}],[0,"verdocs-search-box",{endpoint:[16],placeholder:[1],type:[1],query:[1],grabsFocus:[4,"grabs-focus"],focusField:[64]}]]],["verdocs-document-page_2",[[0,"verdocs-document-page",{pageNumber:[2,"page-number"],virtualWidth:[2,"virtual-width"],virtualHeight:[2,"virtual-height"],layers:[16],containerId:[32],renderedWidth:[32],renderedHeight:[32],skipFirstNotification:[32]}],[0,"verdocs-loader"]]],["verdocs-dropdown_4",[[0,"verdocs-view",{endpoint:[16],rotation:[2],pageLayers:[16],source:[1],loadProgress:[32],numPages:[32]}],[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}],[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}],[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}]]]],e)}));
|
|
2
2
|
//# sourceMappingURL=verdocs-web-sdk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","endpoint","documentId","roleId","inviteCode","recipient","signerToken","pdfUrl","recipientIndex","document","fields","hasSignature","nextButtonLabel","focusedField","visible","logo","debug","isAuthenticated","displayMode","username","password","loggingIn","activeSession","loginError","required","fullName","value","focusField","field","tempSignature","order","disabled","step","steps","helptitle","helptext","mode","label","placeholder","choices","open","response","focused","pageNum","roleName","fieldId","recipients","selectedRoleName","pdfPages","currentSignature","currentSignatureId","currentInitial","currentInitialId","signed","preparedMessage","signatureUrl","organization","selected","size","theme","status","isOpen","recipientStatusIcons","containerId","template","tags","autocomplete","type","_value","startIcon","endIcon","variant","fullname","fontLoaded","enteredInitials","enteredName","heading","message","cancel","draggingOver","decodedFiles","emptyMessage","authFailure","title","recent","saved","starred","query","pageNumber","virtualWidth","virtualHeight","layers","renderedWidth","renderedHeight","skipFirstNotification","rotation","pageLayers","source","loadProgress","numPages","checked","name"],"mappings":"wEAMA,IAAMA,aAAe,WA6BjB,IAAMC,EAAaC,OAAOC,KAAKC,IAC/B,IAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,eAAeJ,IC9D1BL,eAAeU,MAAK,SAAAC,GAElB,OAAOC,cAAc,CAAA,CAAA,eAAA,CAAA,CAAA,EAAA,eAA8B,CAAOC,SAAE,CAAA,IAAAC,WAAA,CAAA,EAAA,eAAAC,OAAA,CAAA,EAAA,WAAAC,WAAA,CAAA,EAAA,eAAAC,UAAA,CAAA,IAAAC,YAAA,CAAA,IAAAC,OAAA,CAAA,IAAAC,eAAA,CAAA,IAAAC,SAAA,CAAA,IAAAC,OAAA,CAAA,IAAAC,aAAA,CAAA,IAAAC,gBAAA,C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A,EAAA,0BAAA,CAAAA,SAAA,CAAA,IAAAkE,KAAA,CAAA,GAAApE,QAAA,CAAA,GAAAkF,aAAA,CAAA,IAAAC,YAAA,CAAA,IAAAC,MAAA,CAAA,IAAAC,OAAA,CAAA,IAAAC,MAAA,CAAA,IAAAC,QAAA,CAAA,MAAA,CAAA,EAAA,qBAAA,CAAArF,SAAA,CAAA,IAAAqC,YAAA,CAAA,GAAA6B,KAAA,CAAA,GAAAoB,MAAA,CAAA,OAAA,CAAA,0BAAA,CAAA,CAAA,EAAA,wBAAA,CAAAC,WAAA,CAAA,EAAA,eAAAC,aAAA,CAAA,EAAA,iBAAAC,cAAA,CAAA,EAAA,kBAAAC,OAAA,CAAA,IAAA5B,YAAA,CAAA,IAAA6B,cAAA,CAAA,IAAAC,eAAA,CAAA,IAAAC,sBAAA,CAAA,MAAA,CAAA,EAAA,oBAAA,CAAA,qBAAA,CAAA,CAAA,EAAA,eAAA,CAAA7F,SAAA,CAAA,IAAA8F,SAAA,CAAA,GAAAC,WAAA,CAAA,IAAAC,OAAA,CAAA,GAAAC,aAAA,CAAA,IAAAC,SAAA,CAAA,MAAA,CAAA,EAAA,mBAAA,CAAApG,QAAA,CAAA,IAAAyC,KAAA,CAAA,GAAAqB,OAAA,CAAA,MAAA,CAAA,EAAA,yBAAA,CAAA/B,MAAA,CAAA,GAAAJ,MAAA,CAAA,GAAAF,SAAA,CAAA,GAAAO,SAAA,CAAA,KAAA,CAAA,EAAA,6BAAA,CAAAD,MAAA,CAAA,GAAAsE,QAAA,CAAA,GAAA1E,MAAA,CAAA,GAAA2E,KAAA,CAAA,GAAA7E,SAAA,CAAA,GAAAO,SAAA,CAAA,QAAAhC","sourcesContent":["/*\n Stencil Client Patch Browser v2.17.3 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
|
|
1
|
+
{"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","import","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","endpoint","documentId","roleId","inviteCode","recipient","signerToken","pdfUrl","recipientIndex","document","fields","hasSignature","nextButtonLabel","focusedField","visible","logo","debug","isAuthenticated","displayMode","username","password","loggingIn","activeSession","loginError","required","fullName","value","focusField","field","tempSignature","order","disabled","step","steps","helptitle","helptext","mode","label","placeholder","choices","open","response","focused","pageNum","roleName","fieldId","recipients","selectedRoleName","pdfPages","currentSignature","currentSignatureId","currentInitial","currentInitialId","signed","preparedMessage","signatureUrl","organization","selected","size","theme","status","isOpen","recipientStatusIcons","containerId","template","tags","autocomplete","type","_value","startIcon","endIcon","variant","fullname","fontLoaded","enteredInitials","enteredName","heading","message","cancel","draggingOver","decodedFiles","emptyMessage","authFailure","title","recent","saved","starred","query","grabsFocus","pageNumber","virtualWidth","virtualHeight","layers","renderedWidth","renderedHeight","skipFirstNotification","rotation","pageLayers","source","loadProgress","numPages","checked","name"],"mappings":"wEAMA,IAAMA,aAAe,WA6BjB,IAAMC,EAAaC,OAAOC,KAAKC,IAC/B,IAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,eAAeJ,IC9D1BL,eAAeU,MAAK,SAAAC,GAElB,OAAOC,cAAc,CAAA,CAAA,eA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AAA,CAAAD,MAAA,CAAA,GAAAuE,QAAA,CAAA,GAAA3E,MAAA,CAAA,GAAA4E,KAAA,CAAA,GAAA9E,SAAA,CAAA,GAAAO,SAAA,CAAA,QAAAhC","sourcesContent":["/*\n Stencil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
|
|
@@ -12,6 +12,7 @@ export interface ISearchEvent {
|
|
|
12
12
|
* embed. This Element will reuse the same session produced by logging in via that Embed.
|
|
13
13
|
*/
|
|
14
14
|
export declare class VerdocsSearchBox {
|
|
15
|
+
private inputEl;
|
|
15
16
|
/**
|
|
16
17
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
17
18
|
*/
|
|
@@ -28,6 +29,10 @@ export declare class VerdocsSearchBox {
|
|
|
28
29
|
* The text search string entered by the user.
|
|
29
30
|
*/
|
|
30
31
|
query: string;
|
|
32
|
+
/**
|
|
33
|
+
* If set, the input field will attempt to "grab" focus after being rendered.
|
|
34
|
+
*/
|
|
35
|
+
grabsFocus: boolean;
|
|
31
36
|
/**
|
|
32
37
|
* Event fired when the user changes the type.
|
|
33
38
|
*/
|
|
@@ -40,6 +45,8 @@ export declare class VerdocsSearchBox {
|
|
|
40
45
|
* Event fired when the user changes the query string.
|
|
41
46
|
*/
|
|
42
47
|
queryChanged: EventEmitter<string>;
|
|
48
|
+
focusField(): Promise<void>;
|
|
49
|
+
componentDidRender(): void;
|
|
43
50
|
handleSearch(e: any): boolean;
|
|
44
51
|
handleChange(e: any): void;
|
|
45
52
|
handleClearFilter(): void;
|
|
@@ -390,6 +390,11 @@ export namespace Components {
|
|
|
390
390
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
391
391
|
*/
|
|
392
392
|
"endpoint": VerdocsEndpoint;
|
|
393
|
+
"focusField": () => Promise<void>;
|
|
394
|
+
/**
|
|
395
|
+
* If set, the input field will attempt to "grab" focus after being rendered.
|
|
396
|
+
*/
|
|
397
|
+
"grabsFocus": boolean;
|
|
393
398
|
/**
|
|
394
399
|
* The placeholder to display in the input field.
|
|
395
400
|
*/
|
|
@@ -1383,6 +1388,10 @@ declare namespace LocalJSX {
|
|
|
1383
1388
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1384
1389
|
*/
|
|
1385
1390
|
"endpoint"?: VerdocsEndpoint;
|
|
1391
|
+
/**
|
|
1392
|
+
* If set, the input field will attempt to "grab" focus after being rendered.
|
|
1393
|
+
*/
|
|
1394
|
+
"grabsFocus"?: boolean;
|
|
1386
1395
|
/**
|
|
1387
1396
|
* Event fired when the user changes the query string.
|
|
1388
1397
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as o,H as i}from"./p-f418ed9f.js";import{V as t,g as s,a as n,u as r,b as a,c as l}from"./p-7f162244.js";var d=new RegExp(/\+[1-9]\d{6,14}/g);function c(e){return e!==null&&e.length<16&&e.length>6&&d.test(e)||e===""||e===null}var h=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var u=function(e){return h.test(e)};var p=function(e){return c(e)};function g(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function b(e,o){return e*o}const x='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{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 14px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree{-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:10px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree .agree-checkbox{background:#ccc;-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;position:relative;margin:0 10px 0 14px}verdocs-sign .agree .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign .agree .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree .agree-checkbox label .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}';const v=class{constructor(o){e(this,o);this.endpoint=t.getDefault();this.documentId=null;this.roleId=null;this.inviteCode=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}async componentDidLoad(){try{console.log(`[SIGN] Processing invite code for ${this.documentId} / ${this.documentId}`);const{session:e,recipient:o,signerToken:i}=await s(this.endpoint,{documentId:this.documentId,roleId:this.roleId,inviteCode:this.inviteCode});console.log(`[SIGN] Got signing session ${e.email} / ${e.profile_id}`);this.recipient=o;this.signerToken=i;this.endpoint.setToken(i);if(this.recipient.agreed){this.nextButtonLabel="Next"}const t=await n(this.endpoint,this.documentId);this.document=t;console.log("[SIGN] Signing document",t);this.pdfUrl=`${this.endpoint.getBaseURL()}/documents/${this.documentId}/envelope_documents/${t.envelope_document_id}?file=true`;this.recipientIndex=this.document.recipients.findIndex((e=>e.role_name==this.roleId));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((e=>e.recipient_role===this.roleId));console.log("Loaded fields",this.fields)}catch(e){console.log("Error with signing session",e)}}handleClickAgree(){console.log("agree clicked");r(this.endpoint,this.documentId,this.roleId,"update",{agreed:true}).then((e=>{console.log("update result",e);this.nextButtonLabel="Next";this.recipient=e})).catch((e=>{console.log("update failure",e)}))}async savePDF(){const e=`${this.document.name} - ${this.document.updated_at.split("T")[0]}.pdf`;const o=await a(this.endpoint,this.documentId,this.document.envelope_document_id);let i=new XMLHttpRequest;i.responseType="blob";i.onload=function(){let o=document.createElement("a");o.href=window.URL.createObjectURL(i.response);o.download=e;o.style.display="none";document.body.appendChild(o);o.click();o.remove()};const t=`data:application/pdf;base64,${o}`;console.log("url",t.length,t);i.open("GET",`data:application/pdf;base64,${o}`);i.send()}async handleOptionSelected(e){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((()=>{}));break}}async handleFieldChange(e,o,i){console.log("fieldChange",e,o.detail);switch(e.type){case"textbox":l(this.endpoint,this.documentId,e.name,{prepared:false,value:o.detail}).then((e=>console.log("Update result",e))).catch((e=>{var o,i,t;if(((o=e.response)===null||o===void 0?void 0:o.status)===401&&((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)==="jwt expired"){console.log("jwt expired")}console.log("Error updating",e)}));break;case"checkbox_group":l(this.endpoint,this.documentId,e.name,{prepared:false,value:{options:[{id:i,checked:o.detail}]}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"radio_button_group":const t=e.settings.options.map((e=>({id:e.id,selected:i===e.id})));l(this.endpoint,this.documentId,e.name,{prepared:false,value:{options:t}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"dropdown":l(this.endpoint,this.documentId,e.name,{prepared:false,value:o.detail}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"initial":console.log("Got initial",o.detail);break;case"signature":console.log("Got signature",o.detail);break}}renderCheckboxGroupOption(e,i,t,s){const n=b(e.xScale,t.x);const r=b(e.yScale,t.y);const a={left:`${n}px`,bottom:`${r}px`,position:"absolute",transform:`scale(${e.xScale}, ${e.yScale})`,backgroundColor:g(this.recipientIndex)};return o("verdocs-field-checkbox",{style:a,order:s,value:t.checked,onFieldChange:e=>this.handleFieldChange(i,e,t.id)})}renderRadioGroupOption(e,i,t,s){const n=b(e.xScale,t.x);const r=b(e.yScale,t.y);const a={left:`${n}px`,bottom:`${r}px`,position:"absolute",transform:`scale(${e.xScale}, ${e.yScale})`,backgroundColor:g(this.recipientIndex)};return o("verdocs-field-radio-button",{style:a,order:s,value:t.id,name:i.name,checked:t.selected,onFieldChange:e=>this.handleFieldChange(i,e,t.id)})}isFieldValid(e){var o,i,t,s,n,r,a,l,d,c,h,g;switch(e.type){case"textbox":switch(((o=e.settings)===null||o===void 0?void 0:o.validator)||""){case"email":return u(((i=e.settings)===null||i===void 0?void 0:i.result)||"");case"phone":return p(((t=e.settings)===null||t===void 0?void 0:t.result)||"");default:return!!((s=e.settings)===null||s===void 0?void 0:s.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((n=e.settings)===null||n===void 0?void 0:n.result);case"dropdown":return!!((r=e.settings)===null||r===void 0?void 0:r.value);case"checkbox_group":const b=(((l=(a=e.settings)===null||a===void 0?void 0:a.options)===null||l===void 0?void 0:l.filter((e=>e.checked)))||[]).length;return b>=(((d=e.settings)===null||d===void 0?void 0:d.minimum_checked)||0)&&b<=(((c=e.settings)===null||c===void 0?void 0:c.maximum_checked)||999);case"radio_button_group":return(((g=(h=e.settings)===null||h===void 0?void 0:h.options)===null||g===void 0?void 0:g.filter((e=>e.selected)))||[]).length>0;default:return false}}getFieldId(e){return`verdocs-doc-fld-${e.name}`}handleNext(){const e=this.fields.filter((e=>e.required));console.log("required Fields",e);const o=e.findIndex((e=>e.name===this.focusedField));console.log("focused Index",o);let i=o+1;if(i>=e.length){i=0}const t=e[i];console.log("next required field",t);if(t){const e=this.getFieldId(t);const o=document.getElementById(e);console.log("focusing",e,o);o===null||o===void 0?void 0:o.focusField();this.focusedField=t.name}}setControlStyles(e,o,i){const{x:t=0,y:s=0,width:n=150,height:r=50}=o.settings;e.style.width=`${n}px`;e.style.height=`${r}px`;e.style.position="absolute";e.style.left=`${b(i.xScale,t)}px`;e.style.bottom=`${b(i.yScale,s)}px`;e.style.transform=`scale(${i.xScale}, ${i.yScale})`;e.style.backgroundColor=o["rgba"]||g(this.recipientIndex)}renderField(e,o){const i=document.getElementById(o.containerId+"-controls");if(!i){return}const t=this.getFieldId(e);const s=document.getElementById(t);if(s){this.setControlStyles(s,e,o);return}let n;switch(e.type){case"attachment":case"checkbox":case"date":case"dropdown":case"initial":case"payment":case"signature":case"textarea":case"textbox":n=document.createElement(`verdocs-field-${e.type}`);break;case"checkbox_group":break;case"radio_button_group":break;default:console.log("[SIGN] Skipping unsupported field type",e)}if(n){n.field=e;n.recipient=this.recipient;n.setAttribute("id",t);n.addEventListener("fieldChange",(o=>this.handleFieldChange(e,o)));this.setControlStyles(n,e,o);i.appendChild(n)}}handlePageRendered(e){const o=e.detail;console.log("[SIGN] Page rendered",o);const i=this.fields.filter((e=>e.page===o.renderedPage.pageNumber));console.log("[SIGN] Fields on page",i);i.forEach((e=>this.renderField(e,o.renderedPage)))}render(){var e,t,s,n;const r=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return o(i,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(e=this.recipient)===null||e===void 0?void 0:e.agreed}},o("div",{class:"header"},o("div",{class:"intro"},"Please review and act on these documents."),o("div",{class:"toolbar"},o("div",{class:"tools"},o("verdocs-dropdown",{options:r,onOptionSelected:e=>this.handleOptionSelected(e)}),!((t=this.recipient)===null||t===void 0?void 0:t.agreed)?o("div",{class:"agree"},o("div",{class:"agree-checkbox"},o("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:()=>this.handleClickAgree()}),o("label",{htmlFor:"agree-checkbox-element"})),o("span",null,"I agree to use electronic records and signatures.")):o("div",{style:{flex:"1"}}),o("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!((s=this.recipient)===null||s===void 0?void 0:s.agreed),onClick:()=>this.handleNext()})))),!((n=this.recipient)===null||n===void 0?void 0:n.agreed)?o("div",{class:"cover"}):o("div",{style:{display:"none"}}),o("div",{class:"document"},this.pdfUrl?o("verdocs-view",{source:this.pdfUrl,endpoint:this.endpoint,onPageRendered:e=>this.handlePageRendered(e),pageLayers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]}):o("verdocs-loader",null)))}};v.style=x;export{v as verdocs_sign};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as o,H as i}from"./p-61ecdb86.js";import{V as t,g as s,a as n,u as r,b as a,c as l}from"./p-7f162244.js";var d=new RegExp(/\+[1-9]\d{6,14}/g);function c(e){return e!==null&&e.length<16&&e.length>6&&d.test(e)||e===""||e===null}var h=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var u=function(e){return h.test(e)};var p=function(e){return c(e)};function g(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function b(e,o){return e*o}const x='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{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 14px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree{-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:10px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree .agree-checkbox{background:#ccc;-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;position:relative;margin:0 10px 0 14px}verdocs-sign .agree .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign .agree .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree .agree-checkbox label .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}';const v=class{constructor(o){e(this,o);this.endpoint=t.getDefault();this.documentId=null;this.roleId=null;this.inviteCode=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}async componentDidLoad(){try{console.log(`[SIGN] Processing invite code for ${this.documentId} / ${this.documentId}`);const{session:e,recipient:o,signerToken:i}=await s(this.endpoint,{documentId:this.documentId,roleId:this.roleId,inviteCode:this.inviteCode});console.log(`[SIGN] Got signing session ${e.email} / ${e.profile_id}`);this.recipient=o;this.signerToken=i;this.endpoint.setToken(i);if(this.recipient.agreed){this.nextButtonLabel="Next"}const t=await n(this.endpoint,this.documentId);this.document=t;console.log("[SIGN] Signing document",t);this.pdfUrl=`${this.endpoint.getBaseURL()}/documents/${this.documentId}/envelope_documents/${t.envelope_document_id}?file=true`;this.recipientIndex=this.document.recipients.findIndex((e=>e.role_name==this.roleId));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((e=>e.recipient_role===this.roleId));console.log("Loaded fields",this.fields)}catch(e){console.log("Error with signing session",e)}}handleClickAgree(){console.log("agree clicked");r(this.endpoint,this.documentId,this.roleId,"update",{agreed:true}).then((e=>{console.log("update result",e);this.nextButtonLabel="Next";this.recipient=e})).catch((e=>{console.log("update failure",e)}))}async savePDF(){const e=`${this.document.name} - ${this.document.updated_at.split("T")[0]}.pdf`;const o=await a(this.endpoint,this.documentId,this.document.envelope_document_id);let i=new XMLHttpRequest;i.responseType="blob";i.onload=function(){let o=document.createElement("a");o.href=window.URL.createObjectURL(i.response);o.download=e;o.style.display="none";document.body.appendChild(o);o.click();o.remove()};const t=`data:application/pdf;base64,${o}`;console.log("url",t.length,t);i.open("GET",`data:application/pdf;base64,${o}`);i.send()}async handleOptionSelected(e){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((()=>{}));break}}async handleFieldChange(e,o,i){console.log("fieldChange",e,o.detail);switch(e.type){case"textbox":l(this.endpoint,this.documentId,e.name,{prepared:false,value:o.detail}).then((e=>console.log("Update result",e))).catch((e=>{var o,i,t;if(((o=e.response)===null||o===void 0?void 0:o.status)===401&&((t=(i=e.response)===null||i===void 0?void 0:i.data)===null||t===void 0?void 0:t.error)==="jwt expired"){console.log("jwt expired")}console.log("Error updating",e)}));break;case"checkbox_group":l(this.endpoint,this.documentId,e.name,{prepared:false,value:{options:[{id:i,checked:o.detail}]}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"radio_button_group":const t=e.settings.options.map((e=>({id:e.id,selected:i===e.id})));l(this.endpoint,this.documentId,e.name,{prepared:false,value:{options:t}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"dropdown":l(this.endpoint,this.documentId,e.name,{prepared:false,value:o.detail}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"initial":console.log("Got initial",o.detail);break;case"signature":console.log("Got signature",o.detail);break}}renderCheckboxGroupOption(e,i,t,s){const n=b(e.xScale,t.x);const r=b(e.yScale,t.y);const a={left:`${n}px`,bottom:`${r}px`,position:"absolute",transform:`scale(${e.xScale}, ${e.yScale})`,backgroundColor:g(this.recipientIndex)};return o("verdocs-field-checkbox",{style:a,order:s,value:t.checked,onFieldChange:e=>this.handleFieldChange(i,e,t.id)})}renderRadioGroupOption(e,i,t,s){const n=b(e.xScale,t.x);const r=b(e.yScale,t.y);const a={left:`${n}px`,bottom:`${r}px`,position:"absolute",transform:`scale(${e.xScale}, ${e.yScale})`,backgroundColor:g(this.recipientIndex)};return o("verdocs-field-radio-button",{style:a,order:s,value:t.id,name:i.name,checked:t.selected,onFieldChange:e=>this.handleFieldChange(i,e,t.id)})}isFieldValid(e){var o,i,t,s,n,r,a,l,d,c,h,g;switch(e.type){case"textbox":switch(((o=e.settings)===null||o===void 0?void 0:o.validator)||""){case"email":return u(((i=e.settings)===null||i===void 0?void 0:i.result)||"");case"phone":return p(((t=e.settings)===null||t===void 0?void 0:t.result)||"");default:return!!((s=e.settings)===null||s===void 0?void 0:s.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((n=e.settings)===null||n===void 0?void 0:n.result);case"dropdown":return!!((r=e.settings)===null||r===void 0?void 0:r.value);case"checkbox_group":const b=(((l=(a=e.settings)===null||a===void 0?void 0:a.options)===null||l===void 0?void 0:l.filter((e=>e.checked)))||[]).length;return b>=(((d=e.settings)===null||d===void 0?void 0:d.minimum_checked)||0)&&b<=(((c=e.settings)===null||c===void 0?void 0:c.maximum_checked)||999);case"radio_button_group":return(((g=(h=e.settings)===null||h===void 0?void 0:h.options)===null||g===void 0?void 0:g.filter((e=>e.selected)))||[]).length>0;default:return false}}getFieldId(e){return`verdocs-doc-fld-${e.name}`}handleNext(){const e=this.fields.filter((e=>e.required));console.log("required Fields",e);const o=e.findIndex((e=>e.name===this.focusedField));console.log("focused Index",o);let i=o+1;if(i>=e.length){i=0}const t=e[i];console.log("next required field",t);if(t){const e=this.getFieldId(t);const o=document.getElementById(e);console.log("focusing",e,o);o===null||o===void 0?void 0:o.focusField();this.focusedField=t.name}}setControlStyles(e,o,i){const{x:t=0,y:s=0,width:n=150,height:r=50}=o.settings;e.style.width=`${n}px`;e.style.height=`${r}px`;e.style.position="absolute";e.style.left=`${b(i.xScale,t)}px`;e.style.bottom=`${b(i.yScale,s)}px`;e.style.transform=`scale(${i.xScale}, ${i.yScale})`;e.style.backgroundColor=o["rgba"]||g(this.recipientIndex)}renderField(e,o){const i=document.getElementById(o.containerId+"-controls");if(!i){return}const t=this.getFieldId(e);const s=document.getElementById(t);if(s){this.setControlStyles(s,e,o);return}let n;switch(e.type){case"attachment":case"checkbox":case"date":case"dropdown":case"initial":case"payment":case"signature":case"textarea":case"textbox":n=document.createElement(`verdocs-field-${e.type}`);break;case"checkbox_group":break;case"radio_button_group":break;default:console.log("[SIGN] Skipping unsupported field type",e)}if(n){n.field=e;n.recipient=this.recipient;n.setAttribute("id",t);n.addEventListener("fieldChange",(o=>this.handleFieldChange(e,o)));this.setControlStyles(n,e,o);i.appendChild(n)}}handlePageRendered(e){const o=e.detail;console.log("[SIGN] Page rendered",o);const i=this.fields.filter((e=>e.page===o.renderedPage.pageNumber));console.log("[SIGN] Fields on page",i);i.forEach((e=>this.renderField(e,o.renderedPage)))}render(){var e,t,s,n;const r=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return o(i,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(e=this.recipient)===null||e===void 0?void 0:e.agreed}},o("div",{class:"header"},o("div",{class:"intro"},"Please review and act on these documents."),o("div",{class:"toolbar"},o("div",{class:"tools"},o("verdocs-dropdown",{options:r,onOptionSelected:e=>this.handleOptionSelected(e)}),!((t=this.recipient)===null||t===void 0?void 0:t.agreed)?o("div",{class:"agree"},o("div",{class:"agree-checkbox"},o("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:()=>this.handleClickAgree()}),o("label",{htmlFor:"agree-checkbox-element"})),o("span",null,"I agree to use electronic records and signatures.")):o("div",{style:{flex:"1"}}),o("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!((s=this.recipient)===null||s===void 0?void 0:s.agreed),onClick:()=>this.handleNext()})))),!((n=this.recipient)===null||n===void 0?void 0:n.agreed)?o("div",{class:"cover"}):o("div",{style:{display:"none"}}),o("div",{class:"document"},this.pdfUrl?o("verdocs-view",{source:this.pdfUrl,endpoint:this.endpoint,onPageRendered:e=>this.handlePageRendered(e),pageLayers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]}):o("verdocs-loader",null)))}};v.style=x;export{v as verdocs_sign};
|
|
2
|
+
//# sourceMappingURL=p-07f55897.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
System.register(["./p-eef0b919.system.js"],(function(t){"use strict";var e,i,o,n;return{setters:[function(t){e=t.r;i=t.c;o=t.h;n=t.H}],execute:function(){var l='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-label{display:block;color:#33354c;font-weight:400;font-size:14px;margin:0 0 4px 0}';var a=t("verdocs_text_input",function(){function t(t){e(this,t);this.fieldInput=i(this,"fieldInput",7);this.fieldFocus=i(this,"fieldFocus",7);this.fieldBlur=i(this,"fieldBlur",7);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.type="text";this.disabled=false;this._value=""}t.prototype.componentWillLoad=function(){this._value=this.value};t.prototype.componentDidLoad=function(){};t.prototype.handleInput=function(t){this._value=t.target.value;this.fieldInput.emit(this._value)};t.prototype.handleFocus=function(t){this.fieldFocus.emit(t)};t.prototype.handleBlur=function(t){this.fieldBlur.emit(t)};t.prototype.render=function(){var t=this;return o(n,{class:"input-field"},o("label",null,this.label?o("div",{class:"input-label"},this.label+":"):o("div",null),o("input",{type:this.type,placeholder:this.placeholder,autoComplete:this.autocomplete,disabled:this.disabled,value:this._value,class:"input-element",onInput:function(e){return t.handleInput(e)},onFocus:function(e){return t.handleFocus(e)},onBlur:function(e){return t.handleBlur(e)}})))};return t}());a.style=l}}}));
|
|
2
|
+
//# sourceMappingURL=p-0d6d5814.system.entry.js.map
|
package/dist/verdocs-web-sdk/{p-afde50f4.system.entry.js.map → p-0d6d5814.system.entry.js.map}
RENAMED
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
System.register(["./p-eef0b919.system.js"],(function(e,d){"use strict";var s,t;return{setters:[function(e){s=e.p;t=e.b}],execute:function(){var e=function(){var e=d.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return s(t)};e().then((function(e){return t([["p-72115808.system",[[0,"verdocs-sign",{endpoint:[16],documentId:[1,"document-id"],roleId:[1,"role-id"],inviteCode:[1,"invite-code"],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["p-1f4039a4.system",[[0,"verdocs-auth",{endpoint:[16],visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["p-fee6012f.system",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}]]],["p-a3f64ad7.system",[[0,"verdocs-field-signature",{field:[16],recipient:[16],tempSignature:[32],focusField:[64]}]]],["p-ba477710.system",[[0,"verdocs-search",{endpoint:[16]}]]],["p-b347f7d8.system",[[0,"verdocs-field-attachment",{field:[16],order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}]]],["p-e251c0ed.system",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],open:[4],response:[32]}]]],["p-5160b7bd.system",[[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["p-9660162f.system",[[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}]]],["p-a394a4ba.system",[[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}]]],["p-fa5dc225.system",[[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]],["p-a00e94fa.system",[[0,"verdocs-field-textbox",{field:[16],focused:[32],focusField:[64]}]]],["p-980bc364.system",[[0,"verdocs-field-timestamp",{field:[16],focused:[32],focusField:[64]}]]],["p-fb6927da.system",[[0,"verdocs-organization-card",{organization:[16]}]]],["p-3ce43f4b.system",[[0,"verdocs-search-tabs",{selected:[32]}]]],["p-7ea7db5c.system",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],document:[16],isOpen:[32],recipientStatusIcons:[32],containerId:[32]}]]],["p-fdb32f3f.system",[[0,"verdocs-template-card",{template:[16]}]]],["p-d61aad62.system",[[0,"verdocs-template-tags",{tags:[16]}]]],["p-cb371aae.system",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["p-0d6d5814.system",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}]]],["p-6859482c.system",[[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["p-df215940.system",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["p-99aef995.system",[[0,"verdocs-signature-dialog",{fullName:[1,"full-name"],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["p-31e5873f.system",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["p-68f4e8fc.system",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["p-c3e77379.system",[[0,"verdocs-quick-functions",{endpoint:[16]}],[0,"verdocs-search-activity",{endpoint:[16],type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}],[0,"verdocs-search-box",{endpoint:[16],placeholder:[1],type:[1],query:[1],grabsFocus:[4,"grabs-focus"],focusField:[64]}]]],["p-68fc7efc.system",[[0,"verdocs-document-page",{pageNumber:[2,"page-number"],virtualWidth:[2,"virtual-width"],virtualHeight:[2,"virtual-height"],layers:[16],containerId:[32],renderedWidth:[32],renderedHeight:[32],skipFirstNotification:[32]}],[0,"verdocs-loader"]]],["p-9d801657.system",[[0,"verdocs-view",{endpoint:[16],rotation:[2],pageLayers:[16],source:[1],loadProgress:[32],numPages:[32]}],[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}],[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}],[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}]]]],e)}))}}}));
|
|
2
|
+
//# sourceMappingURL=p-0df2b27c.system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"names":["patchBrowser","importMeta","module","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","bootstrapLazy","endpoint","documentId","roleId","inviteCode","recipient","signerToken","pdfUrl","recipientIndex","document","fields","hasSignature","nextButtonLabel","focusedField","visible","logo","debug","isAuthenticated","displayMode","username","password","loggingIn","activeSession","loginError","required","fullName","value","focusField","field","tempSignature","order","disabled","step","steps","helptitle","helptext","mode","label","placeholder","choices","open","response","focused","pageNum","roleName","fieldId","recipients","selectedRoleName","pdfPages","currentSignature","currentSignatureId","currentInitial","currentInitialId","signed","preparedMessage","signatureUrl","organization","selected","size","theme","status","isOpen","recipientStatusIcons","containerId","template","tags","autocomplete","type","_value","startIcon","endIcon","variant","fullname","fontLoaded","enteredInitials","enteredName","heading","message","cancel","draggingOver","decodedFiles","emptyMessage","authFailure","title","recent","saved","starred","query","grabsFocus","pageNumber","virtualWidth","virtualHeight","layers","renderedWidth","renderedHeight","skipFirstNotification","rotation","pageLayers","source","loadProgress","numPages","checked","name"],"mappings":"4IAMA,IAAMA,EAAe,WA6BjB,IAAMC,EAAaC,EAAAC,KAAAC,IACnB,IAAMC,EAA6D,GAenE,GAAuBJ,IAAe,GAAI,CACtCI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,KAajD,OAAOC,EAAeJ,IC9D1BL,IAAeU,MAAK,SAAAC,GAElB,OAAOC,EAAc,CAAA,CAAA,oBAAA,CAAA,CAAA,EAAA,eAAuC,CAAAC,SAAA,CAAA,IAAAC,WAAA,CAAA,EAAA,eAAAC,OAAA,CAAA,EAAA,WAAAC,WAAA,CAAA,EAAA,eAAAC,UAAA,CAAA,IAAAC,Y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encil Client Patch Browser v2.17.4 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, plt, win, doc, promiseResolve, H } from '@stencil/core';\nconst getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\\s|-/g, '_')}`;\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cssVarShim) {\n // shim css vars\n plt.$cssShim$ = win.__cssshim;\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? scriptElm['data-opts'] || {} : {};\n if (BUILD.safari10 && 'onbeforeload' in scriptElm && !history.scrollRestoration /* IS_ESM_BUILD */) {\n // Safari < v11 support: This IF is true if it's Safari below v11.\n // This fn cannot use async/await since Safari didn't support it until v11,\n // however, Safari 10 did support modules. Safari 10 also didn't support \"nomodule\",\n // so both the ESM file and nomodule file would get downloaded. Only Safari\n // has 'onbeforeload' in the script, and \"history.scrollRestoration\" was added\n // to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.\n // IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.\n return {\n then() {\n /* promise noop */\n },\n };\n }\n if (!BUILD.safari10 && importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n else if (BUILD.dynamicImportShim || BUILD.safari10) {\n opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;\n if (BUILD.dynamicImportShim) {\n patchDynamicImport(opts.resourcesUrl, scriptElm);\n }\n if (BUILD.dynamicImportShim && !win.customElements) {\n // module support, but no custom elements support (Old Edge)\n // @ts-ignore\n return import(/* webpackChunkName: \"polyfills-dom\" */ './dom.js').then(() => opts);\n }\n }\n return promiseResolve(opts);\n};\nconst patchDynamicImport = (base, orgScriptElm) => {\n const importFunctionName = getDynamicImportFunction(NAMESPACE);\n try {\n // test if this browser supports dynamic imports\n // There is a caching issue in V8, that breaks using import() in Function\n // By generating a random string, we can workaround it\n // Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info\n win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);\n }\n catch (e) {\n // this shim is specifically for browsers that do support \"esm\" imports\n // however, they do NOT support \"dynamic\" imports\n // basically this code is for old Edge, v18 and below\n const moduleMap = new Map();\n win[importFunctionName] = (src) => {\n const url = new URL(src, base).href;\n let mod = moduleMap.get(url);\n if (!mod) {\n const script = doc.createElement('script');\n script.type = 'module';\n script.crossOrigin = orgScriptElm.crossOrigin;\n script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {\n type: 'application/javascript',\n }));\n mod = new Promise((resolve) => {\n script.onload = () => {\n resolve(win[importFunctionName].m);\n script.remove();\n };\n });\n moduleMap.set(url, mod);\n doc.head.appendChild(script);\n }\n return mod;\n };\n }\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","import { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,h as i,H as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as i,H as s}from"./p-61ecdb86.js";const o='verdocs-field-payment{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:24px;height:24px;display:block;font-size:11px;position:relative;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const n=class{constructor(i){e(this,i);this.signatureComplete=t(this,"signatureComplete",7);this.initialComplete=t(this,"initialComplete",7);this.focused=false;this.signed=false;this.signatureUrl="";this._fields=[];this.signatureFile=null;this.initialFile=null;this.focusOrderNumber=-1;this.focusFieldName="";this.activeElement=null;this.showError={pageNum:-1,fieldIndex:-1,type:null};this.dialogOpened=false;this.closeAllErrors=false;this.fieldsMap={};this.fieldsForCurrentSigner=[];this.fontSize=11;this.averageFontWidth=5;this.requiredFields=[]}componentWillLoad(){console.log("sign field",this.field);if(this.recipients&&this.recipients.length>0){const e=this.recipients.find((e=>e.type==="preparer"));console.log("Found preparer",e);if(e){this.preparedMessage=`Prepared by ${e["full_name"]}`}}}render(){return i(s,{class:{focused:this.focused,storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])}},i("button",{class:{hide:this.signed}},"Payment"),this.signed?i("div",{class:"frame"}):i("div",{style:{display:"none"}}),i("img",{width:"100%",height:"100%",src:this.signatureUrl}))}};n.style=o;export{n as verdocs_field_payment};
|
|
2
|
+
//# sourceMappingURL=p-19a2aa83.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as e,H as s}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as e,H as s}from"./p-61ecdb86.js";const o='verdocs-signature-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f5f5fa}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#ffffff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-signature-dialog .tabs .tab:hover{color:#55bc81}';const a=class{constructor(e){i(this,e);this.adopt=t(this,"adopt",7);this.cancel=t(this,"cancel",7);this.fullName="";this.open=false;this.fontLoaded=false;this.enteredName="";this.mode="type"}componentWillLoad(){this.enteredName=this.fullName;const i=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");i.load().then((i=>{document.fonts.add(i);this.fontLoaded=true}))}componentDidLoad(){this.redrawSignature()}componentDidUpdate(){this.redrawSignature()}redrawSignature(){if(!this.canvasElement){return}const i=this.canvasElement.width;const t=this.canvasElement.getContext("2d");t.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);let e=100;do{e-=2;t.font=`${e}px Dancing Script`}while(t.measureText(this.enteredName).width>i-32);t.textAlign="center";t.textBaseline="middle";t.font=`${e}px Dancing Script`;t.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)}handleCancel(i){console.log("handleCancel",i.target);i.stopPropagation();this.cancel.emit()}handleNameChange(i){this.enteredName=i.detail}handleAdopt(i){i.stopPropagation();i.preventDefault();const t=this.canvasElement.toDataURL("image/png");this.adopt.emit(t)}render(){return e(s,{class:{open:this.open},onClick:i=>this.handleCancel(i)},e("div",{class:"dialog"},e("div",{class:"heading"},"Create Your Signature"),e("div",{class:"content"},e("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onFieldInput:i=>this.handleNameChange(i)}),e("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),e("div",{class:"tabs"},e("div",{class:{tab:true,active:this.mode==="type"},onClick:()=>this.mode="type"},"Type"),e("div",{class:{tab:true,active:this.mode==="draw"},onClick:()=>this.mode="draw"},"Draw")),this.fontLoaded?e("canvas",{ref:i=>this.canvasElement=i}):e("div",{style:{display:"none"}}),e("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),e("div",{class:"buttons"},e("verdocs-button",{label:"CANCEL",size:"normal",variant:"outline",onPress:i=>this.handleCancel(i)}),e("verdocs-button",{label:"Adopt & Sign",size:"normal",onPress:i=>this.handleAdopt(i)})))))}};a.style=o;export{a as verdocs_signature_dialog};
|
|
2
|
+
//# sourceMappingURL=p-1d4e0c98.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}();System.register(["./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function o(){this.constructor=e}e.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}();System.register(["./p-eef0b919.system.js","./p-64127985.system.js"],(function(t){"use strict";var e,n,o,i;return{setters:[function(t){e=t.r;n=t.c;o=t.h},function(t){i=t.V}],execute:function(){var s=function(t,e){return t.api.post("/authentication/login",e).then((function(t){return t.data}))};var r=function(t){__extends(e,t);function e(e,n,o){var i=this.constructor;var s=t.call(this,e||"SDK Error")||this;s.response=o;s.statusCode=n;Object.setPrototypeOf(s,i.prototype);return s}return e}(Error);var a='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';var l=t("verdocs_auth",function(){function t(t){e(this,t);this.authenticated=n(this,"authenticated",7);this.sdkError=n(this,"sdkError",7);this.endpoint=i.getDefault();this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.debug=false;this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}t.prototype.componentDidLoad=function(){var t,e;console.log("loaded",this);this.endpoint.loadSession();if(this.endpoint.session){this.isAuthenticated=true;this.activeSession=this.endpoint.session;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:true,session:this.endpoint.session})}else{(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:false,session:null})}};t.prototype.handleLogin=function(){var t=this;this.loggingIn=true;s(this.endpoint,{username:this.username,password:this.password}).then((function(e){var n;t.loggingIn=false;t.endpoint.setToken(e.accessToken);t.activeSession=t.endpoint.session;t.isAuthenticated=true;(n=t.authenticated)===null||n===void 0?void 0:n.emit({authenticated:true,session:t.endpoint.session})})).catch((function(e){var n,o,i,s,a;console.log("[VERDOCS] Login error",e.response,JSON.stringify(e));t.loggingIn=false;t.activeSession=null;(n=t.authenticated)===null||n===void 0?void 0:n.emit({authenticated:false,session:null});(o=t.sdkError)===null||o===void 0?void 0:o.emit(new r(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(s=e.response)===null||s===void 0?void 0:s.data));if(((a=e===null||e===void 0?void 0:e.response)===null||a===void 0?void 0:a.status)===403){t.loginError="Please check your username and password and try again."}}))};t.prototype.handleLogout=function(){this.endpoint.clearSession();this.isAuthenticated=false;this.authenticated.emit({authenticated:false,session:null})};t.prototype.handleClearError=function(){this.loginError=null};t.prototype.render=function(){var t=this;if(!this.visible){return o("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){if(this.debug){return o("div",{class:"status-result debug"},o("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:function(){return t.handleLogout()}}))}return o("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return o("div",{class:"signup-form"},o("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),o("h3",null,"Sign up for an account"),o("h4",null,"Already have an account?",o("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return t.displayMode="login"},disabled:this.loggingIn})),o("form",{onSubmit:function(){return t.handleLogin()}},o("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),o("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),o("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return o("div",{class:"login-form"},o("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),o("h3",null,"Log in to your account"),o("h4",null,"Don't have an account?",o("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn})),o("form",{onSubmit:function(){return t.handleLogin()}},o("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(e){return t.username=e.detail},disabled:this.loggingIn}),o("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(e){return t.password=e.detail},disabled:this.loggingIn}),o("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),o("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?o("verdocs-ok-dialog",{open:true,heading:"Login Error",message:this.loginError,onClosed:function(){return t.handleClearError()}}):o("div",null))};return t}());l.style=a}}}));
|
|
2
|
+
//# sourceMappingURL=p-1f4039a4.system.entry.js.map
|
package/dist/verdocs-web-sdk/{p-6247cf41.system.entry.js.map → p-1f4039a4.system.entry.js.map}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-61ecdb86.js";import{V as i}from"./p-7f162244.js";var o=function(t,s){return t.api.post("/authentication/login",s).then((function(t){return t.data}))};class n extends Error{constructor(t,s,e){super(t||"SDK Error");this.response=e;this.statusCode=s;Object.setPrototypeOf(this,new.target.prototype)}}const l='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';const a=class{constructor(e){t(this,e);this.authenticated=s(this,"authenticated",7);this.sdkError=s(this,"sdkError",7);this.endpoint=i.getDefault();this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.debug=false;this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}componentDidLoad(){var t,s;console.log("loaded",this);this.endpoint.loadSession();if(this.endpoint.session){this.isAuthenticated=true;this.activeSession=this.endpoint.session;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:true,session:this.endpoint.session})}else{(s=this.authenticated)===null||s===void 0?void 0:s.emit({authenticated:false,session:null})}}handleLogin(){this.loggingIn=true;o(this.endpoint,{username:this.username,password:this.password}).then((t=>{var s;this.loggingIn=false;this.endpoint.setToken(t.accessToken);this.activeSession=this.endpoint.session;this.isAuthenticated=true;(s=this.authenticated)===null||s===void 0?void 0:s.emit({authenticated:true,session:this.endpoint.session})})).catch((t=>{var s,e,i,o,l;console.log("[VERDOCS] Login error",t.response,JSON.stringify(t));this.loggingIn=false;this.activeSession=null;(s=this.authenticated)===null||s===void 0?void 0:s.emit({authenticated:false,session:null});(e=this.sdkError)===null||e===void 0?void 0:e.emit(new n(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(o=t.response)===null||o===void 0?void 0:o.data));if(((l=t===null||t===void 0?void 0:t.response)===null||l===void 0?void 0:l.status)===403){this.loginError="Please check your username and password and try again."}}))}handleLogout(){this.endpoint.clearSession();this.isAuthenticated=false;this.authenticated.emit({authenticated:false,session:null})}handleClearError(){this.loginError=null}render(){if(!this.visible){return e("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){if(this.debug){return e("div",{class:"status-result debug"},e("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:()=>this.handleLogout()}))}return e("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return e("div",{class:"signup-form"},e("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),e("h3",null,"Sign up for an account"),e("h4",null,"Already have an account?",e("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.loggingIn})),e("form",{onSubmit:()=>this.handleLogin()},e("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:t=>this.username=t.detail,disabled:this.loggingIn}),e("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:t=>this.password=t.detail,disabled:this.loggingIn}),e("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return e("div",{class:"login-form"},e("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),e("h3",null,"Log in to your account"),e("h4",null,"Don't have an account?",e("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn})),e("form",{onSubmit:()=>this.handleLogin()},e("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:t=>this.username=t.detail,disabled:this.loggingIn}),e("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:t=>this.password=t.detail,disabled:this.loggingIn}),e("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),e("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?e("verdocs-ok-dialog",{open:true,heading:"Login Error",message:this.loginError,onClosed:()=>this.handleClearError()}):e("div",null))}};a.style=l;export{a as verdocs_auth};
|
|
2
|
+
//# sourceMappingURL=p-24d7c3b0.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,c as t,h as o,H as e}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,c as t,h as o,H as e}from"./p-61ecdb86.js";const s='verdocs-field-initial{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;width:83px;height:36px;display:block;font-size:11px;letter-spacing:0.3px;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left;border:1px solid rgba(0, 0, 0, 0.2)}verdocs-field-initial img{display:block;max-width:100%;max-height:100%}verdocs-field-initial button{-webkit-box-sizing:border-box;box-sizing:border-box;border:none;color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-initial button.hide{display:none}verdocs-field-initial.required{border:1px solid #cc0000}verdocs-field-initial.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const n=class{constructor(o){i(this,o);this.adopt=t(this,"adopt",7);this.cancel=t(this,"cancel",7);this.required=false;this.fullName="";this.value=""}async focusField(){this.handleShow()}handleShow(){this.dialog=document.createElement("verdocs-initial-dialog");this.dialog.open=true;this.dialog.fullName=this.fullName;this.dialog.addEventListener("cancel",(()=>{var i;console.log("cancel");(i=this.dialog)===null||i===void 0?void 0:i.remove()}));document.addEventListener("adopt",(i=>{var t;console.log("adopt",i);(t=this.dialog)===null||t===void 0?void 0:t.remove()}));document.body.append(this.dialog)}render(){return o(e,{class:{required:this.required}},this.value!==""?o("img",{src:this.value,alt:"Initials"}):o("button",{class:{},onClick:()=>this.handleShow()},"Initial"))}};n.style=s;export{n as verdocs_field_initial};
|
|
2
|
+
//# sourceMappingURL=p-252d3b8b.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
System.register(["./p-eef0b919.system.js"],(function(e){"use strict";var o,s,n,i;return{setters:[function(e){o=e.r;s=e.c;n=e.h;i=e.H}],execute:function(){var t='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:#ffffff}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var l=e("verdocs_ok_dialog",function(){function e(e){o(this,e);this.closed=s(this,"closed",7);this.heading="";this.message="";this.open=false;this.cancel=false}e.prototype.handleClose=function(e){this.closed.emit(e);this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleClose("cancel")}};e.prototype.render=function(){var e=this;return n(i,{style:{display:this.open?"block":"none"}},n("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},n("div",{class:"dialog"},n("div",{class:"heading"},this.heading),n("div",{class:"content"},this.message,n("div",{class:"buttons"},this.cancel?n("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return e.handleClose("cancel")}}):n("div",{style:{display:"none"}}),n("verdocs-button",{label:"OK",onPress:function(){return e.handleClose("ok")}}))))))};return e}());l.style=t}}}));
|
|
2
|
+
//# sourceMappingURL=p-31e5873f.system.entry.js.map
|
package/dist/verdocs-web-sdk/{p-94ac8f93.system.entry.js.map → p-31e5873f.system.entry.js.map}
RENAMED
|
File without changes
|