@verdocs/web-sdk 1.9.24 → 1.9.26
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/{Envelopes-a9646e09.js → Envelopes-d44c4a28.js} +3 -2
- package/dist/cjs/Envelopes-d44c4a28.js.map +1 -0
- package/dist/cjs/{VerdocsEndpoint-a9bf9d59.js → VerdocsEndpoint-257ebdb3.js} +7 -5
- package/dist/cjs/VerdocsEndpoint-257ebdb3.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-build.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js +154 -0
- package/dist/cjs/verdocs-dropdown_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-date.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-preview.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +10 -8
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-template-create_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -0
- package/dist/collection/components/elements/verdocs-field-checkbox/verdocs-field-checkbox.css +1 -1
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +903 -0
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +3 -0
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -0
- package/dist/collection/components/elements/verdocs-field-timestamp/verdocs-field-timestamp.css +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +6 -11
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +7 -5
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +2 -170
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -1
- package/dist/collection/utils/Envelopes.js +2 -1
- package/dist/collection/utils/Envelopes.js.map +1 -1
- package/dist/components/VerdocsEndpoint.js +6 -4
- package/dist/components/VerdocsEndpoint.js.map +1 -1
- package/dist/components/templateStore.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/verdocs-field-checkbox.js +1 -1
- package/dist/components/verdocs-field-checkbox.js.map +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-field-date.js.map +1 -1
- package/dist/components/verdocs-field-radio-button.js +1 -1
- package/dist/components/verdocs-field-radio-button.js.map +1 -1
- package/dist/components/verdocs-field-textbox.js +1 -1
- package/dist/components/verdocs-field-textbox.js.map +1 -1
- package/dist/components/verdocs-field-timestamp.js +1 -1
- package/dist/components/verdocs-field-timestamp.js.map +1 -1
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js.map +1 -1
- package/dist/components/verdocs-sign.js +26 -19
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-view.js +1 -259
- package/dist/components/verdocs-view.js.map +1 -1
- package/dist/components/verdocs-view2.js +152 -0
- package/dist/components/verdocs-view2.js.map +1 -0
- package/dist/docs.json +13 -2
- package/dist/esm/{Envelopes-bd915f3e.js → Envelopes-28a4c67f.js} +3 -2
- package/dist/esm/Envelopes-28a4c67f.js.map +1 -0
- package/dist/esm/{VerdocsEndpoint-76dbf9b9.js → VerdocsEndpoint-28ba21cc.js} +7 -5
- package/dist/esm/VerdocsEndpoint-28ba21cc.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +1 -1
- package/dist/esm/verdocs-build.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm/verdocs-dropdown_2.entry.js +149 -0
- package/dist/esm/verdocs-dropdown_2.entry.js.map +1 -0
- package/dist/esm/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm/verdocs-field-checkbox.entry.js.map +1 -1
- package/dist/esm/verdocs-field-date.entry.js +1 -1
- package/dist/esm/verdocs-field-date.entry.js.map +1 -1
- package/dist/esm/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm/verdocs-field-radio-button.entry.js.map +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-field-textbox.entry.js.map +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm/verdocs-field-timestamp.entry.js.map +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js.map +1 -1
- package/dist/esm/verdocs-preview.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +10 -8
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-template-create_4.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/Envelopes-28a4c67f.js +2 -0
- package/dist/esm-es5/Envelopes-28a4c67f.js.map +1 -0
- package/dist/esm-es5/{VerdocsEndpoint-76dbf9b9.js → VerdocsEndpoint-28ba21cc.js} +2 -2
- package/dist/esm-es5/{VerdocsEndpoint-76dbf9b9.js.map → VerdocsEndpoint-28ba21cc.js.map} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_2.entry.js +2 -0
- package/dist/esm-es5/verdocs-dropdown_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-template-create_4.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/embeds/verdocs-view/verdocs-view.d.ts +0 -1
- package/dist/verdocs-web-sdk/p-070ba589.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-070ba589.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-75f6a179.system.entry.js → p-0ca01601.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-75f6a179.system.entry.js.map → p-0ca01601.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-1058c062.system.js +2 -0
- package/dist/verdocs-web-sdk/p-1058c062.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-15aa525d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-15aa525d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-6524809d.entry.js → p-1cb6f31a.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-6524809d.entry.js.map → p-1cb6f31a.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-93ada77f.system.entry.js → p-1f18d214.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-93ada77f.system.entry.js.map → p-1f18d214.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-8251b9eb.entry.js → p-23e0d562.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-8251b9eb.entry.js.map → p-23e0d562.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-4363499a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-4363499a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-4b516c47.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-4b516c47.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-61e0f6dd.system.entry.js → p-4d371bfe.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-61e0f6dd.system.entry.js.map → p-4d371bfe.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-a0259b33.system.entry.js → p-5597170d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a0259b33.system.entry.js.map → p-5597170d.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-71de4718.entry.js → p-577d46e3.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-71de4718.entry.js.map → p-577d46e3.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d5af4c62.entry.js → p-5a08e378.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d5af4c62.entry.js.map → p-5a08e378.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-1f1127dd.js → p-5e67c42f.js} +2 -2
- package/dist/verdocs-web-sdk/{p-1f1127dd.js.map → p-5e67c42f.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-5f036dfe.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-5f036dfe.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-27f3e394.entry.js → p-619a388e.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-27f3e394.entry.js.map → p-619a388e.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-19435eaf.entry.js → p-695a3cce.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-19435eaf.entry.js.map → p-695a3cce.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-6ec79ddc.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-6ec79ddc.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-74401f2e.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-74401f2e.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-cf1ed6b8.system.js → p-7a6c829f.system.js} +2 -2
- package/dist/verdocs-web-sdk/{p-cf1ed6b8.system.js.map → p-7a6c829f.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-08110f98.entry.js → p-7fd610f5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-08110f98.entry.js.map → p-7fd610f5.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-a9413269.entry.js → p-87a424a0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a9413269.entry.js.map → p-87a424a0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-2557ce63.system.entry.js → p-9dc3b579.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-2557ce63.system.entry.js.map → p-9dc3b579.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d2c1dcf9.system.entry.js → p-a42a5853.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d2c1dcf9.system.entry.js.map → p-a42a5853.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-a526fa66.system.entry.js → p-a98ced34.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-a526fa66.system.entry.js.map → p-a98ced34.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-b5f64429.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b5f64429.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-d9b9a354.system.entry.js → p-ba6c3671.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d9b9a354.system.entry.js.map → p-ba6c3671.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js.map +1 -1
- package/dist/verdocs-web-sdk/{p-d4afe7a5.entry.js → p-c41d9fc0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d4afe7a5.entry.js.map → p-c41d9fc0.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/{p-d86dc6d1.system.entry.js → p-c6de4457.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d86dc6d1.system.entry.js.map → p-c6de4457.system.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-c731755d.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c731755d.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-da9f0046.system.entry.js → p-db837a46.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-da9f0046.system.entry.js.map → p-db837a46.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-de06e0c6.js +2 -0
- package/dist/verdocs-web-sdk/p-de06e0c6.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e02e05a2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-e02e05a2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-474155b8.system.entry.js → p-f47224c8.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-474155b8.system.entry.js.map → p-f47224c8.system.entry.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-958a833f.entry.js → p-f68306f5.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-958a833f.entry.js.map → p-f68306f5.entry.js.map} +0 -0
- package/dist/verdocs-web-sdk/p-f9103136.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-f9103136.entry.js.map +1 -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/package.json +2 -2
- package/dist/cjs/Envelopes-a9646e09.js.map +0 -1
- package/dist/cjs/VerdocsEndpoint-a9bf9d59.js.map +0 -1
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -91
- package/dist/cjs/verdocs-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +0 -239
- package/dist/cjs/verdocs-view.cjs.entry.js.map +0 -1
- package/dist/components/Envelopes.js +0 -62
- package/dist/components/Envelopes.js.map +0 -1
- package/dist/esm/Envelopes-bd915f3e.js.map +0 -1
- package/dist/esm/VerdocsEndpoint-76dbf9b9.js.map +0 -1
- package/dist/esm/verdocs-dropdown.entry.js +0 -87
- package/dist/esm/verdocs-dropdown.entry.js.map +0 -1
- package/dist/esm/verdocs-view.entry.js +0 -235
- package/dist/esm/verdocs-view.entry.js.map +0 -1
- package/dist/esm-es5/Envelopes-bd915f3e.js +0 -2
- package/dist/esm-es5/Envelopes-bd915f3e.js.map +0 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +0 -2
- package/dist/esm-es5/verdocs-dropdown.entry.js.map +0 -1
- package/dist/esm-es5/verdocs-view.entry.js +0 -2
- package/dist/esm-es5/verdocs-view.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-05433ef8.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-05433ef8.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-3622cb3c.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-3622cb3c.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4e1fc08d.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-4e1fc08d.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-4e775928.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-4e775928.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7e140c6b.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-7e140c6b.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-89641895.system.js +0 -2
- package/dist/verdocs-web-sdk/p-89641895.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-abd01c86.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-abd01c86.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-be67bcbf.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-be67bcbf.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-c314c231.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-c314c231.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d5c00a37.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d5c00a37.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d774ad24.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d774ad24.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-d942510c.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-d942510c.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-dbb4398c.js +0 -2
- package/dist/verdocs-web-sdk/p-dbb4398c.js.map +0 -1
- package/dist/verdocs-web-sdk/p-e7295a17.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-e7295a17.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-eeabb91a.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-eeabb91a.entry.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-7a6c829f.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js"],(function(t){"use strict";var e,n,i,s,o;return{setters:[function(t){e=t.r;n=t.c;i=t.h},function(){},function(t){s=t.V},function(t){o=t.S},function(){}],execute:function(){var a=function(t,e){return t.api.post("/authentication/login",e).then((function(t){return t.data}))};var r='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=s.getDefault();this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}t.prototype.componentWillLoad=function(){var t,e;this.endpoint.loadSession();if(this.endpoint.session){console.log("[AUTH] Authenticated");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{console.log("[AUTH] Anonymous");(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;a(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,i,s,a,r;console.log("[AUTH] Authentication 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});(i=t.sdkError)===null||i===void 0?void 0:i.emit(new o(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(a=e.response)===null||a===void 0?void 0:a.data));if(((r=e===null||e===void 0?void 0:e.response)===null||r===void 0?void 0:r.status)===403){t.loginError="Please check your username and password and try again."}}))};t.prototype.handleLogout=function(){var t;this.endpoint.clearSession();this.isAuthenticated=false;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,session:null})};t.prototype.handleClearError=function(){this.loginError=null};t.prototype.render=function(){var t=this;if(!this.visible){return i("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){return i("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return i("div",{class:"signup-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for an account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return t.displayMode="login"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(e){return t.username=e.target.value},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(e){return t.password=e.target.value},disabled:this.loggingIn}),i("verdocs-button",{label:"Signup",disabled:this.loggingIn,onClick:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return i("div",{class:"login-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(e){return t.username=e.target.value},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(e){return t.password=e.target.value},disabled:this.loggingIn}),i("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"}}),i("verdocs-button",{label:"Login",disabled:this.loggingIn,onClick:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?i("verdocs-ok-dialog",{heading:"Login Error",message:this.loginError,onNext:function(){return t.handleClearError()}}):i("div",null))};return t}());l.style=r}}}));
|
|
2
|
+
//# sourceMappingURL=p-5597170d.system.entry.js.map
|
package/dist/verdocs-web-sdk/{p-a0259b33.system.entry.js.map → p-5597170d.system.entry.js.map}
RENAMED
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as o,h as t}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as o,h as t}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as i}from"./p-5e67c42f.js";import"./p-21603661.js";const s='verdocs-contact-picker{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;background-color:#ffffff}verdocs-contact-picker form{background-color:#f5f5fa;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .row{width:300px;display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-contact-picker form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker form .dropdown{left:0;right:0;top:49px;z-index:100;position:absolute;background:#ffffff;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .dropdown .suggestion svg{fill:#666666}verdocs-contact-picker form .dropdown .suggestion .avatar{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:8px;border-radius:100%}verdocs-contact-picker form .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}verdocs-contact-picker form .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}verdocs-contact-picker form .dropdown .suggestion:hover{background:#eee;cursor:pointer}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}';const c='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiBox-root css-1om0hkc" focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></svg>';const a='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AssignmentIndIcon" tabindex="-1" title="AssignmentInd"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></svg>';const n='<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AccountCircleIcon" tabindex="-1" title="AccountCircle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"></path></svg>';const r=class{constructor(t){e(this,t);this.searchContacts=o(this,"searchContacts",7);this.cancel=o(this,"cancel",7);this.next=o(this,"next",7);this.endpoint=i.getDefault();this.templateRole=null;this.contactSuggestions=[];this.name=undefined;this.email=undefined;this.phone=undefined;this.message=undefined;this.showSuggestions=false;this.showMessage=false;this.delegator=false}componentWillLoad(){if(this.templateRole){this.name=this.templateRole.full_name||"";this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!==""}}handleNameChange(e){var o;this.name=e.target.value;(o=this.searchContacts)===null||o===void 0?void 0:o.emit({query:this.name})}handleEmailChange(e){this.email=e.target.value}handlePhoneChange(e){this.phone=e.target.value}handleMessageChange(e){this.message=e.target.value}handleCancel(e){var o;e.stopPropagation();this.showSuggestions=false;(o=this.cancel)===null||o===void 0?void 0:o.emit()}handleSubmit(e){var o;e.stopPropagation();this.showSuggestions=false;(o=this.next)===null||o===void 0?void 0:o.emit({full_name:this.name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator})}handleSelectSuggestion(e,o){e.stopPropagation();this.name=o.name;this.email=o.email;this.phone=o.phone;this.showSuggestions=false}render(){return t("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("div",{class:"row"},t("label",{htmlFor:"verdocs-contact-picker-name"},"Name:"),t("input",{id:"verdocs-contact-picker-name",name:"verdocs-contact-picker-name",type:"text","data-lpignore":"true",autocomplete:"off",value:this.name,placeholder:"Recipient Name...",onFocus:()=>{var e;return this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0},onInput:e=>this.handleNameChange(e)}),this.showSuggestions&&t("div",{class:"dropdown"},this.contactSuggestions.map((e=>{var o;return t("div",{key:(o=e.id)!==null&&o!==void 0?o:e.name,class:"suggestion",onClick:o=>this.handleSelectSuggestion(o,e)},e.avatar?t("img",{alt:"Avatar",class:"avatar",src:e.avatar}):t("div",{class:"avatar",innerHTML:n}),t("div",{class:"details"},t("div",{class:"name"},e.name),e.email&&t("div",{class:"destination"},e.email),e.phone&&t("div",{class:"destination"},e.phone)))})))),t("div",{class:"row"},t("label",{htmlFor:"verdocs-contact-picker-email"},"Email:"),t("input",{id:"verdocs-contact-picker-email",name:"verdocs-contact-picker-email",type:"text","data-lpignore":"true",autoComplete:"off",value:this.email,placeholder:"Email Address...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.handleEmailChange(e)})),t("div",{class:"row"},t("label",{htmlFor:"verdocs-contact-picker-phone"},"Phone:"),t("input",{id:"verdocs-contact-picker-phone",name:"verdocs-contact-picker-phone",type:"text","data-lpignore":"true",autocomplete:"off",value:this.phone,placeholder:"Phone Number...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.handlePhoneChange(e)})),this.showMessage&&t("div",{class:"row"},t("label",{htmlFor:"verdocs-contact-picker-message"},"Message:"),t("input",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message",type:"text","data-lpignore":"true",autocomplete:"off",value:this.message,placeholder:"Invitation Message...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.handleMessageChange(e)})),t("div",{class:"buttons"},t("verdocs-toggle-button",{icon:c,size:"small",active:this.showMessage,onToggle:e=>{this.showMessage=e.detail.active;this.showSuggestions=false}}),t("verdocs-toggle-button",{icon:a,size:"small",active:this.delegator,onToggle:e=>{this.delegator=e.detail.active;this.showSuggestions=false}}),t("div",{class:"flex-fill"}),t("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),t("verdocs-button",{label:"OK",size:"small",onClick:e=>this.handleSubmit(e)})))}};r.style=s;export{r as verdocs_contact_picker};
|
|
2
|
+
//# sourceMappingURL=p-577d46e3.entry.js.map
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,h as o,H as c}from"./p-ff1278ed.js";import{g as s}from"./p-6de76553.js";import{g as t}from"./p-fcc3041d.js";import"./p-21603661.js";const i='@charset "UTF-8";verdocs-field-checkbox{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;font-size:
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,h as o,H as c}from"./p-ff1278ed.js";import{g as s}from"./p-6de76553.js";import{g as t}from"./p-fcc3041d.js";import"./p-21603661.js";const i='@charset "UTF-8";verdocs-field-checkbox{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;font-size:14px;position:relative;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-checkbox.disabled{opacity:0.5}verdocs-field-checkbox label>input[type=checkbox]{display:none}verdocs-field-checkbox label>input[type=checkbox]+*::before{content:"";position:absolute;display:block;top:1px;left:1px;width:10px;height:10px;border-radius:2px;border:1px solid rgba(0, 0, 0, 0.7)}verdocs-field-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-field-checkbox label>input[type=checkbox]:checked+*::before{content:"✓";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-field-checkbox.required label>input[type=checkbox]+*::before{border:1px solid #cc0000}verdocs-field-checkbox.hide{display:none}verdocs-field-checkbox.focused{-webkit-animation:verdocs-field-pulse 0.75s 2;animation:verdocs-field-pulse 0.75s 2}';const l=class{constructor(o){e(this,o);this.field=null;this.option=0;this.disabled=false;this.done=false;this.roleindex=0}render(){var e,i,l,r;const d=t(this.field);const n=(i=(e=d.options)===null||e===void 0?void 0:e[this.option])!==null&&i!==void 0?i:{checked:false};const a=(r=(l=this.disabled)!==null&&l!==void 0?l:d.disabled)!==null&&r!==void 0?r:false;const b=this.field["rgba"]||s(this.roleindex);if(this.done){return o(c,{class:{done:this.done}},n.checked?"✓":"☐")}return o(c,{class:{required:d.required,disabled:a},style:{backgroundColor:b}},o("label",null,o("input",{type:"checkbox",tabIndex:d.order,checked:n.checked,disabled:a,required:d.required,value:n.id}),o("span",null)))}};l.style=i;export{l as verdocs_field_checkbox};
|
|
2
|
+
//# sourceMappingURL=p-5a08e378.entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["src/components/elements/verdocs-field-checkbox/verdocs-field-checkbox.scss?tag=verdocs-field-checkbox","src/components/elements/verdocs-field-checkbox/verdocs-field-checkbox.tsx"],"names":["verdocsFieldCheckboxCss","VerdocsFieldCheckbox","[object Object]","settings","getFieldSettings","this","field","option","_b","_a","options","checked","disabled","_d","_c","backgroundColor","getRGBA","roleindex","done","h","Host","class","required","style","type","tabIndex","order","value","id"],"mappings":"kJAAA,MAAMA,EAA0B,khCCcnBC,EAAoB,0CAIyB,iBAK/B,gBAKI,gBAKJ,qBAKI,EAE7BC,qBACE,MAAMC,EAAWC,EAAiBC,KAAKC,OACvC,MAAMC,GAASC,GAAAC,EAAAN,EAASO,WAAO,MAAAD,SAAA,OAAA,EAAAA,EAAGJ,KAAKE,WAAO,MAAAC,SAAA,EAAAA,EAAI,CAACG,QAAS,OAC5D,MAAMC,GAAWC,GAAAC,EAAAT,KAAKO,YAAQ,MAAAE,SAAA,EAAAA,EAAIX,EAASS,YAAQ,MAAAC,SAAA,EAAAA,EAAI,MACvD,MAAME,EAAkBV,KAAKC,MAAM,SAAWU,EAAQX,KAAKY,WAE3D,GAAIZ,KAAKa,KAAM,CACb,OAAOC,EAACC,EAAI,CAACC,MAAO,CAACH,KAAMb,KAAKa,OAAQX,EAAOI,QAAU,IAAM,KAGjE,OACEQ,EAACC,EAAI,CAACC,MAAO,CAACC,SAAUnB,EAASmB,SAAUV,SAAAA,GAAWW,MAAO,CAACR,gBAAAA,IAC5DI,EAAA,QAAA,KACEA,EAAA,QAAA,CAAOK,KAAK,WAAWC,SAAUtB,EAASuB,MAAOf,QAASJ,EAAOI,QAASC,SAAUA,EAAUU,SAAUnB,EAASmB,SAAUK,MAAOpB,EAAOqB,KACzIT,EAAA,OAAA","sourcesContent":["@import '../../../theme.scss';\n\n// See https://www.kallmanation.com/styling-a-checkbox-with-only-css\nverdocs-field-checkbox {\n font-family: $verdocs-primary-font;\n font-size:
|
|
1
|
+
{"version":3,"sources":["src/components/elements/verdocs-field-checkbox/verdocs-field-checkbox.scss?tag=verdocs-field-checkbox","src/components/elements/verdocs-field-checkbox/verdocs-field-checkbox.tsx"],"names":["verdocsFieldCheckboxCss","VerdocsFieldCheckbox","[object Object]","settings","getFieldSettings","this","field","option","_b","_a","options","checked","disabled","_d","_c","backgroundColor","getRGBA","roleindex","done","h","Host","class","required","style","type","tabIndex","order","value","id"],"mappings":"kJAAA,MAAMA,EAA0B,khCCcnBC,EAAoB,0CAIyB,iBAK/B,gBAKI,gBAKJ,qBAKI,EAE7BC,qBACE,MAAMC,EAAWC,EAAiBC,KAAKC,OACvC,MAAMC,GAASC,GAAAC,EAAAN,EAASO,WAAO,MAAAD,SAAA,OAAA,EAAAA,EAAGJ,KAAKE,WAAO,MAAAC,SAAA,EAAAA,EAAI,CAACG,QAAS,OAC5D,MAAMC,GAAWC,GAAAC,EAAAT,KAAKO,YAAQ,MAAAE,SAAA,EAAAA,EAAIX,EAASS,YAAQ,MAAAC,SAAA,EAAAA,EAAI,MACvD,MAAME,EAAkBV,KAAKC,MAAM,SAAWU,EAAQX,KAAKY,WAE3D,GAAIZ,KAAKa,KAAM,CACb,OAAOC,EAACC,EAAI,CAACC,MAAO,CAACH,KAAMb,KAAKa,OAAQX,EAAOI,QAAU,IAAM,KAGjE,OACEQ,EAACC,EAAI,CAACC,MAAO,CAACC,SAAUnB,EAASmB,SAAUV,SAAAA,GAAWW,MAAO,CAACR,gBAAAA,IAC5DI,EAAA,QAAA,KACEA,EAAA,QAAA,CAAOK,KAAK,WAAWC,SAAUtB,EAASuB,MAAOf,QAASJ,EAAOI,QAASC,SAAUA,EAAUU,SAAUnB,EAASmB,SAAUK,MAAOpB,EAAOqB,KACzIT,EAAA,OAAA","sourcesContent":["@import '../../../theme.scss';\n\n// See https://www.kallmanation.com/styling-a-checkbox-with-only-css\nverdocs-field-checkbox {\n font-family: $verdocs-primary-font;\n font-size: 14px;\n position: relative;\n background-color: transparent;\n transform-origin: bottom left;\n\n &.disabled {\n opacity: 0.5;\n }\n\n label > input[type='checkbox'] {\n display: none;\n }\n\n label > input[type='checkbox'] + *::before {\n content: '';\n position: absolute;\n display: block;\n top: 1px;\n left: 1px;\n width: 10px;\n height: 10px;\n border-radius: 2px;\n //background: $verdocs-grey-3;\n border: 1px solid rgba(0, 0, 0, 0.7);\n }\n\n label > input[type='checkbox']:checked + * {\n color: $verdocs-green;\n }\n\n label > input[type='checkbox']:checked + *::before {\n content: '✓';\n color: white;\n text-align: center;\n background: $verdocs-green;\n border-color: $verdocs-green;\n }\n\n &.required {\n label > input[type='checkbox'] + *::before {\n border: 1px solid $verdocs-red-1;\n }\n }\n\n &.hide {\n display: none;\n }\n\n &.focused {\n animation: verdocs-field-pulse 0.75s 2;\n }\n}\n","import {getRGBA} from '@verdocs/js-sdk/Utils/Colors';\nimport {Component, h, Host, Prop} from '@stencil/core';\nimport {ITemplateField} from '@verdocs/js-sdk/Templates/Types';\nimport {IDocumentField} from '@verdocs/js-sdk/Envelopes/Types';\nimport {getFieldSettings} from '../../../utils/utils';\n\n/**\n * Displays a checkbox.\n */\n@Component({\n tag: 'verdocs-field-checkbox',\n styleUrl: 'verdocs-field-checkbox.scss',\n shadow: false,\n})\nexport class VerdocsFieldCheckbox {\n /**\n * The document or template field to display.\n */\n @Prop() field: IDocumentField | ITemplateField | null = null;\n\n /**\n * The index of the settings option this particular checkbox is for\n */\n @Prop() option: number = 0;\n\n /**\n * If set, overrides the field's settings object. Primarily used to support \"preview\" modes where all fields are disabled.\n */\n @Prop() disabled?: boolean = false;\n\n /**\n * If set, the field is considered \"done\" and is drawn in a display-final-value state.\n */\n @Prop() done?: boolean = false;\n\n /**\n * If set, the field will be colored using this index value to select the background color.\n */\n @Prop() roleindex?: number = 0;\n\n render() {\n const settings = getFieldSettings(this.field);\n const option = settings.options?.[this.option] ?? {checked: false};\n const disabled = this.disabled ?? settings.disabled ?? false;\n const backgroundColor = this.field['rgba'] || getRGBA(this.roleindex);\n\n if (this.done) {\n return <Host class={{done: this.done}}>{option.checked ? '✓' : '☐'}</Host>;\n }\n\n return (\n <Host class={{required: settings.required, disabled}} style={{backgroundColor}}>\n <label>\n <input type=\"checkbox\" tabIndex={settings.order} checked={option.checked} disabled={disabled} required={settings.required} value={option.id} />\n <span />\n </label>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as t}from"./p-21603661.js";function e(t,e){return function n(){return t.apply(e,arguments)}}const{toString:n}=Object.prototype;const{getPrototypeOf:r}=Object;const o=(t=>e=>{const r=n.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null));const i=t=>{t=t.toLowerCase();return e=>o(e)===t};const s=t=>e=>typeof e===t;const{isArray:u}=Array;const c=s("undefined");function f(t){return t!==null&&!c(t)&&t.constructor!==null&&!c(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const l=i("ArrayBuffer");function a(t){let e;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){e=ArrayBuffer.isView(t)}else{e=t&&t.buffer&&l(t.buffer)}return e}const h=s("string");const d=s("function");const p=s("number");const m=t=>t!==null&&typeof t==="object";const w=t=>t===true||t===false;const b=t=>{if(o(t)!=="object"){return false}const e=r(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};const y=i("Date");const g=i("File");const O=i("Blob");const R=i("FileList");const E=t=>m(t)&&d(t.pipe);const S=t=>{const e="[object FormData]";return t&&(typeof FormData==="function"&&t instanceof FormData||n.call(t)===e||d(t.toString)&&t.toString()===e)};const j=i("URLSearchParams");const v=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function A(t,e,{allOwnKeys:n=false}={}){if(t===null||typeof t==="undefined"){return}let r;let o;if(typeof t!=="object"){t=[t]}if(u(t)){for(r=0,o=t.length;r<o;r++){e.call(null,t[r],r,t)}}else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t);const i=o.length;let s;for(r=0;r<i;r++){s=o[r];e.call(null,t[s],s,t)}}}function N(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length;let o;while(r-- >0){o=n[r];if(e===o.toLowerCase()){return o}}return null}const T=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const x=t=>!c(t)&&t!==T;function P(){const{caseless:t}=x(this)&&this||{};const e={};const n=(n,r)=>{const o=t&&N(e,r)||r;if(b(e[o])&&b(n)){e[o]=P(e[o],n)}else if(b(n)){e[o]=P({},n)}else if(u(n)){e[o]=n.slice()}else{e[o]=n}};for(let t=0,e=arguments.length;t<e;t++){arguments[t]&&A(arguments[t],n)}return e}const _=(t,n,r,{allOwnKeys:o}={})=>{A(n,((n,o)=>{if(r&&d(n)){t[o]=e(n,r)}else{t[o]=n}}),{allOwnKeys:o});return t};const U=t=>{if(t.charCodeAt(0)===65279){t=t.slice(1)}return t};const F=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r);t.prototype.constructor=t;Object.defineProperty(t,"super",{value:e.prototype});n&&Object.assign(t.prototype,n)};const B=(t,e,n,o)=>{let i;let s;let u;const c={};e=e||{};if(t==null)return e;do{i=Object.getOwnPropertyNames(t);s=i.length;while(s-- >0){u=i[s];if((!o||o(u,t,e))&&!c[u]){e[u]=t[u];c[u]=true}}t=n!==false&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e};const D=(t,e,n)=>{t=String(t);if(n===undefined||n>t.length){n=t.length}n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n};const C=t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!p(e))return null;const n=new Array(e);while(e-- >0){n[e]=t[e]}return n};const L=(t=>e=>t&&e instanceof t)(typeof Uint8Array!=="undefined"&&r(Uint8Array));const k=(t,e)=>{const n=t&&t[Symbol.iterator];const r=n.call(t);let o;while((o=r.next())&&!o.done){const n=o.value;e.call(t,n[0],n[1])}};const q=(t,e)=>{let n;const r=[];while((n=t.exec(e))!==null){r.push(n)}return r};const M=i("HTMLFormElement");const I=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function t(e,n,r){return n.toUpperCase()+r}));const J=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype);const z=i("RegExp");const H=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t);const r={};A(n,((n,o)=>{if(e(n,o,t)!==false){r[o]=n}}));Object.defineProperties(t,r)};const K=t=>{H(t,((e,n)=>{if(d(t)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const r=t[n];if(!d(r))return;e.enumerable=false;if("writable"in e){e.writable=false;return}if(!e.set){e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const V=(t,e)=>{const n={};const r=t=>{t.forEach((t=>{n[t]=true}))};u(t)?r(t):r(String(t).split(e));return n};const $=()=>{};const W=(t,e)=>{t=+t;return Number.isFinite(t)?t:e};const G=t=>{const e=new Array(10);const n=(t,r)=>{if(m(t)){if(e.indexOf(t)>=0){return}if(!("toJSON"in t)){e[r]=t;const o=u(t)?[]:{};A(t,((t,e)=>{const i=n(t,r+1);!c(i)&&(o[e]=i)}));e[r]=undefined;return o}}return t};return n(t,0)};const X={isArray:u,isArrayBuffer:l,isBuffer:f,isFormData:S,isArrayBufferView:a,isString:h,isNumber:p,isBoolean:w,isObject:m,isPlainObject:b,isUndefined:c,isDate:y,isFile:g,isBlob:O,isRegExp:z,isFunction:d,isStream:E,isURLSearchParams:j,isTypedArray:L,isFileList:R,forEach:A,merge:P,extend:_,trim:v,stripBOM:U,inherits:F,toFlatObject:B,kindOf:o,kindOfTest:i,endsWith:D,toArray:C,forEachEntry:k,matchAll:q,isHTMLForm:M,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:H,freezeMethods:K,toObjectSet:V,toCamelCase:I,noop:$,toFiniteNumber:W,findKey:N,global:T,isContextDefined:x,toJSONObject:G};function Z(t,e,n,r,o){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=t;this.name="AxiosError";e&&(this.code=e);n&&(this.config=n);r&&(this.request=r);o&&(this.response=o)}X.inherits(Z,Error,{toJSON:function t(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=Z.prototype;const Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Y[t]={value:t}}));Object.defineProperties(Z,Y);Object.defineProperty(Q,"isAxiosError",{value:true});Z.from=(t,e,n,r,o,i)=>{const s=Object.create(Q);X.toFlatObject(t,s,(function t(e){return e!==Error.prototype}),(t=>t!=="isAxiosError"));Z.call(s,t.message,e,n,r,o);s.cause=t;s.name=t.name;i&&Object.assign(s,i);return s};var tt=typeof self=="object"?self.FormData:window.FormData;function et(t){return X.isPlainObject(t)||X.isArray(t)}function nt(t){return X.endsWith(t,"[]")?t.slice(0,-2):t}function rt(t,e,n){if(!t)return e;return t.concat(e).map((function t(e,r){e=nt(e);return!n&&r?"["+e+"]":e})).join(n?".":"")}function ot(t){return X.isArray(t)&&!t.some(et)}const it=X.toFlatObject(X,{},null,(function t(e){return/^is[A-Z]/.test(e)}));function st(t){return t&&X.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function ut(t,e,n){if(!X.isObject(t)){throw new TypeError("target must be an object")}e=e||new(tt||FormData);n=X.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function t(e,n){return!X.isUndefined(n[e])}));const r=n.metaTokens;const o=n.visitor||l;const i=n.dots;const s=n.indexes;const u=n.Blob||typeof Blob!=="undefined"&&Blob;const c=u&&st(e);if(!X.isFunction(o)){throw new TypeError("visitor must be a function")}function f(t){if(t===null)return"";if(X.isDate(t)){return t.toISOString()}if(!c&&X.isBlob(t)){throw new Z("Blob is not supported. Use a Buffer instead.")}if(X.isArrayBuffer(t)||X.isTypedArray(t)){return c&&typeof Blob==="function"?new Blob([t]):Buffer.from(t)}return t}function l(t,n,o){let u=t;if(t&&!o&&typeof t==="object"){if(X.endsWith(n,"{}")){n=r?n:n.slice(0,-2);t=JSON.stringify(t)}else if(X.isArray(t)&&ot(t)||(X.isFileList(t)||X.endsWith(n,"[]")&&(u=X.toArray(t)))){n=nt(n);u.forEach((function t(r,o){!(X.isUndefined(r)||r===null)&&e.append(s===true?rt([n],o,i):s===null?n:n+"[]",f(r))}));return false}}if(et(t)){return true}e.append(rt(o,n,i),f(t));return false}const a=[];const h=Object.assign(it,{defaultVisitor:l,convertValue:f,isVisitable:et});function d(t,n){if(X.isUndefined(t))return;if(a.indexOf(t)!==-1){throw Error("Circular reference detected in "+n.join("."))}a.push(t);X.forEach(t,(function t(r,i){const s=!(X.isUndefined(r)||r===null)&&o.call(e,r,X.isString(i)?i.trim():i,n,h);if(s===true){d(r,n?n.concat(i):[i])}}));a.pop()}if(!X.isObject(t)){throw new TypeError("data must be an object")}d(t);return e}function ct(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function t(n){return e[n]}))}function ft(t,e){this._pairs=[];t&&ut(t,this,e)}const lt=ft.prototype;lt.append=function t(e,n){this._pairs.push([e,n])};lt.toString=function t(e){const n=e?function(t){return e.call(this,t,ct)}:ct;return this._pairs.map((function t(e){return n(e[0])+"="+n(e[1])}),"").join("&")};function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ht(t,e,n){if(!e){return t}const r=n&&n.encode||at;const o=n&&n.serialize;let i;if(o){i=o(e,n)}else{i=X.isURLSearchParams(e)?e.toString():new ft(e,n).toString(r)}if(i){const e=t.indexOf("#");if(e!==-1){t=t.slice(0,e)}t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dt{constructor(){this.handlers=[]}use(t,e,n){this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(t){if(this.handlers[t]){this.handlers[t]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(t){X.forEach(this.handlers,(function e(n){if(n!==null){t(n)}}))}}const pt={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const mt=typeof URLSearchParams!=="undefined"?URLSearchParams:ft;const wt=FormData;const bt=(()=>{let t;if(typeof navigator!=="undefined"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"})();const yt=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const gt={isBrowser:true,classes:{URLSearchParams:mt,FormData:wt,Blob},isStandardBrowserEnv:bt,isStandardBrowserWebWorkerEnv:yt,protocols:["http","https","file","blob","url","data"]};function Ot(t,e){return ut(t,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return r.defaultVisitor.apply(this,arguments)}},e))}function Rt(t){return X.matchAll(/\w+|\[(\w*)]/g,t).map((t=>t[0]==="[]"?"":t[1]||t[0]))}function Et(t){const e={};const n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++){i=n[r];e[i]=t[i]}return e}function St(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i);const u=o>=t.length;i=!i&&X.isArray(r)?r.length:i;if(u){if(X.hasOwnProp(r,i)){r[i]=[r[i],n]}else{r[i]=n}return!s}if(!r[i]||!X.isObject(r[i])){r[i]=[]}const c=e(t,n,r[i],o);if(c&&X.isArray(r[i])){r[i]=Et(r[i])}return!s}if(X.isFormData(t)&&X.isFunction(t.entries)){const n={};X.forEachEntry(t,((t,r)=>{e(Rt(t),r,n,0)}));return n}return null}const jt={"Content-Type":undefined};function vt(t,e,n){if(X.isString(t)){try{(e||JSON.parse)(t);return X.trim(t)}catch(t){if(t.name!=="SyntaxError"){throw t}}}return(n||JSON.stringify)(t)}const At={transitional:pt,adapter:["xhr","http"],transformRequest:[function t(e,n){const r=n.getContentType()||"";const o=r.indexOf("application/json")>-1;const i=X.isObject(e);if(i&&X.isHTMLForm(e)){e=new FormData(e)}const s=X.isFormData(e);if(s){if(!o){return e}return o?JSON.stringify(St(e)):e}if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)){return e}if(X.isArrayBufferView(e)){return e.buffer}if(X.isURLSearchParams(e)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return e.toString()}let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){return Ot(e,this.formSerializer).toString()}if((u=X.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ut(u?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(i||o){n.setContentType("application/json",false);return vt(e)}return e}],transformResponse:[function t(e){const n=this.transitional||At.transitional;const r=n&&n.forcedJSONParsing;const o=this.responseType==="json";if(e&&X.isString(e)&&(r&&!this.responseType||o)){const t=n&&n.silentJSONParsing;const r=!t&&o;try{return JSON.parse(e)}catch(t){if(r){if(t.name==="SyntaxError"){throw Z.from(t,Z.ERR_BAD_RESPONSE,this,null,this.response)}throw t}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function t(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};X.forEach(["delete","get","head"],(function t(e){At.headers[e]={}}));X.forEach(["post","put","patch"],(function t(e){At.headers[e]=X.merge(jt)}));const Nt=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Tt=t=>{const e={};let n;let r;let o;t&&t.split("\n").forEach((function t(i){o=i.indexOf(":");n=i.substring(0,o).trim().toLowerCase();r=i.substring(o+1).trim();if(!n||e[n]&&Nt[n]){return}if(n==="set-cookie"){if(e[n]){e[n].push(r)}else{e[n]=[r]}}else{e[n]=e[n]?e[n]+", "+r:r}}));return e};const xt=Symbol("internals");function Pt(t){return t&&String(t).trim().toLowerCase()}function _t(t){if(t===false||t==null){return t}return X.isArray(t)?t.map(_t):String(t)}function Ut(t){const e=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(t)){e[r[1]]=r[2]}return e}function Ft(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function Bt(t,e,n,r){if(X.isFunction(r)){return r.call(this,e,n)}if(!X.isString(e))return;if(X.isString(r)){return e.indexOf(r)!==-1}if(X.isRegExp(r)){return r.test(e)}}function Dt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function Ct(t,e){const n=X.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:true})}))}class Lt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Pt(e);if(!o){throw new Error("header name must be a non-empty string")}const i=X.findKey(r,o);if(!i||r[i]===undefined||n===true||n===undefined&&r[i]!==false){r[i||e]=_t(t)}}const i=(t,e)=>X.forEach(t,((t,n)=>o(t,n,e)));if(X.isPlainObject(t)||t instanceof this.constructor){i(t,e)}else if(X.isString(t)&&(t=t.trim())&&!Ft(t)){i(Tt(t),e)}else{t!=null&&o(e,t,n)}return this}get(t,e){t=Pt(t);if(t){const n=X.findKey(this,t);if(n){const t=this[n];if(!e){return t}if(e===true){return Ut(t)}if(X.isFunction(e)){return e.call(this,t,n)}if(X.isRegExp(e)){return e.exec(t)}throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){t=Pt(t);if(t){const n=X.findKey(this,t);return!!(n&&(!e||Bt(this,this[n],n,e)))}return false}delete(t,e){const n=this;let r=false;function o(t){t=Pt(t);if(t){const o=X.findKey(n,t);if(o&&(!e||Bt(n,n[o],o,e))){delete n[o];r=true}}}if(X.isArray(t)){t.forEach(o)}else{o(t)}return r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const e=this;const n={};X.forEach(this,((r,o)=>{const i=X.findKey(n,o);if(i){e[i]=_t(r);delete e[o];return}const s=t?Dt(o):String(o).trim();if(s!==o){delete e[o]}e[s]=_t(r);n[s]=true}));return this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);X.forEach(this,((n,r)=>{n!=null&&n!==false&&(e[r]=t&&X.isArray(n)?n.join(", "):n)}));return e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);e.forEach((t=>n.set(t)));return n}static accessor(t){const e=this[xt]=this[xt]={accessors:{}};const n=e.accessors;const r=this.prototype;function o(t){const e=Pt(t);if(!n[e]){Ct(r,t);n[e]=true}}X.isArray(t)?t.forEach(o):o(t);return this}}Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);X.freezeMethods(Lt.prototype);X.freezeMethods(Lt);function kt(t,e){const n=this||At;const r=e||n;const o=Lt.from(r.headers);let i=r.data;X.forEach(t,(function t(r){i=r.call(n,i,o.normalize(),e?e.status:undefined)}));o.normalize();return i}function qt(t){return!!(t&&t.__CANCEL__)}function Mt(t,e,n){Z.call(this,t==null?"canceled":t,Z.ERR_CANCELED,e,n);this.name="CanceledError"}X.inherits(Mt,Z,{__CANCEL__:true});const It=null;function Jt(t,e,n){const r=n.config.validateStatus;if(!n.status||!r||r(n.status)){t(n)}else{e(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}const zt=gt.isStandardBrowserEnv?function t(){return{write:function t(e,n,r,o,i,s){const u=[];u.push(e+"="+encodeURIComponent(n));if(X.isNumber(r)){u.push("expires="+new Date(r).toGMTString())}if(X.isString(o)){u.push("path="+o)}if(X.isString(i)){u.push("domain="+i)}if(s===true){u.push("secure")}document.cookie=u.join("; ")},read:function t(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function t(e){this.write(e,"",Date.now()-864e5)}}}():function t(){return{write:function t(){},read:function t(){return null},remove:function t(){}}}();function Ht(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Kt(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Vt(t,e){if(t&&!Ht(e)){return Kt(t,e)}return e}const $t=gt.isStandardBrowserEnv?function t(){const e=/(msie|trident)/i.test(navigator.userAgent);const n=document.createElement("a");let r;function o(t){let r=t;if(e){n.setAttribute("href",r);r=n.href}n.setAttribute("href",r);return{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}r=o(window.location.href);return function t(e){const n=X.isString(e)?o(e):e;return n.protocol===r.protocol&&n.host===r.host}}():function t(){return function t(){return true}}();function Wt(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Gt(t,e){t=t||10;const n=new Array(t);const r=new Array(t);let o=0;let i=0;let s;e=e!==undefined?e:1e3;return function u(c){const f=Date.now();const l=r[i];if(!s){s=f}n[o]=c;r[o]=f;let a=i;let h=0;while(a!==o){h+=n[a++];a=a%t}o=(o+1)%t;if(o===i){i=(i+1)%t}if(f-s<e){return}const d=l&&f-l;return d?Math.round(h*1e3/d):undefined}}function Xt(t,e){let n=0;const r=Gt(50,250);return o=>{const i=o.loaded;const s=o.lengthComputable?o.total:undefined;const u=i-n;const c=r(u);const f=i<=s;n=i;const l={loaded:i,total:s,progress:s?i/s:undefined,bytes:u,rate:c?c:undefined,estimated:c&&s&&f?(s-i)/c:undefined,event:o};l[e?"download":"upload"]=true;t(l)}}const Zt=typeof XMLHttpRequest!=="undefined";const Qt=Zt&&function(t){return new Promise((function e(n,r){let o=t.data;const i=Lt.from(t.headers).normalize();const s=t.responseType;let u;function c(){if(t.cancelToken){t.cancelToken.unsubscribe(u)}if(t.signal){t.signal.removeEventListener("abort",u)}}if(X.isFormData(o)&&(gt.isStandardBrowserEnv||gt.isStandardBrowserWebWorkerEnv)){i.setContentType(false)}let f=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"";const n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const l=Vt(t.baseURL,t.url);f.open(t.method.toUpperCase(),ht(l,t.params,t.paramsSerializer),true);f.timeout=t.timeout;function a(){if(!f){return}const e=Lt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());const o=!s||s==="text"||s==="json"?f.responseText:f.response;const i={data:o,status:f.status,statusText:f.statusText,headers:e,config:t,request:f};Jt((function t(e){n(e);c()}),(function t(e){r(e);c()}),i);f=null}if("onloadend"in f){f.onloadend=a}else{f.onreadystatechange=function t(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(a)}}f.onabort=function e(){if(!f){return}r(new Z("Request aborted",Z.ECONNABORTED,t,f));f=null};f.onerror=function e(){r(new Z("Network Error",Z.ERR_NETWORK,t,f));f=null};f.ontimeout=function e(){let n=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const o=t.transitional||pt;if(t.timeoutErrorMessage){n=t.timeoutErrorMessage}r(new Z(n,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,t,f));f=null};if(gt.isStandardBrowserEnv){const e=(t.withCredentials||$t(l))&&t.xsrfCookieName&&zt.read(t.xsrfCookieName);if(e){i.set(t.xsrfHeaderName,e)}}o===undefined&&i.setContentType(null);if("setRequestHeader"in f){X.forEach(i.toJSON(),(function t(e,n){f.setRequestHeader(n,e)}))}if(!X.isUndefined(t.withCredentials)){f.withCredentials=!!t.withCredentials}if(s&&s!=="json"){f.responseType=t.responseType}if(typeof t.onDownloadProgress==="function"){f.addEventListener("progress",Xt(t.onDownloadProgress,true))}if(typeof t.onUploadProgress==="function"&&f.upload){f.upload.addEventListener("progress",Xt(t.onUploadProgress))}if(t.cancelToken||t.signal){u=e=>{if(!f){return}r(!e||e.type?new Mt(null,t,f):e);f.abort();f=null};t.cancelToken&&t.cancelToken.subscribe(u);if(t.signal){t.signal.aborted?u():t.signal.addEventListener("abort",u)}}const h=Wt(l);if(h&>.protocols.indexOf(h)===-1){r(new Z("Unsupported protocol "+h+":",Z.ERR_BAD_REQUEST,t));return}f.send(o||null)}))};const Yt={http:It,xhr:Qt};X.forEach(Yt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const te={getAdapter:t=>{t=X.isArray(t)?t:[t];const{length:e}=t;let n;let r;for(let o=0;o<e;o++){n=t[o];if(r=X.isString(n)?Yt[n.toLowerCase()]:n){break}}if(!r){if(r===false){throw new Z(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT")}throw new Error(X.hasOwnProp(Yt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!X.isFunction(r)){throw new TypeError("adapter is not a function")}return r},adapters:Yt};function ee(t){if(t.cancelToken){t.cancelToken.throwIfRequested()}if(t.signal&&t.signal.aborted){throw new Mt(null,t)}}function ne(t){ee(t);t.headers=Lt.from(t.headers);t.data=kt.call(t,t.transformRequest);if(["post","put","patch"].indexOf(t.method)!==-1){t.headers.setContentType("application/x-www-form-urlencoded",false)}const e=te.getAdapter(t.adapter||At.adapter);return e(t).then((function e(n){ee(t);n.data=kt.call(t,t.transformResponse,n);n.headers=Lt.from(n.headers);return n}),(function e(n){if(!qt(n)){ee(t);if(n&&n.response){n.response.data=kt.call(t,t.transformResponse,n.response);n.response.headers=Lt.from(n.response.headers)}}return Promise.reject(n)}))}const re=t=>t instanceof Lt?t.toJSON():t;function oe(t,e){e=e||{};const n={};function r(t,e,n){if(X.isPlainObject(t)&&X.isPlainObject(e)){return X.merge.call({caseless:n},t,e)}else if(X.isPlainObject(e)){return X.merge({},e)}else if(X.isArray(e)){return e.slice()}return e}function o(t,e,n){if(!X.isUndefined(e)){return r(t,e,n)}else if(!X.isUndefined(t)){return r(undefined,t,n)}}function i(t,e){if(!X.isUndefined(e)){return r(undefined,e)}}function s(t,e){if(!X.isUndefined(e)){return r(undefined,e)}else if(!X.isUndefined(t)){return r(undefined,t)}}function u(n,o,i){if(i in e){return r(n,o)}else if(i in t){return r(undefined,n)}}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(re(t),re(e),true)};X.forEach(Object.keys(t).concat(Object.keys(e)),(function r(i){const s=c[i]||o;const f=s(t[i],e[i],i);X.isUndefined(f)&&s!==u||(n[i]=f)}));return n}const ie="1.2.2";const se={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{se[t]=function n(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const ue={};se.transitional=function t(e,n,r){function o(t,e){return"[Axios v"+ie+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(t,r,i)=>{if(e===false){throw new Z(o(r," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED)}if(n&&!ue[r]){ue[r]=true;console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))}return e?e(t,r,i):true}};function ce(t,e,n){if(typeof t!=="object"){throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE)}const r=Object.keys(t);let o=r.length;while(o-- >0){const i=r[o];const s=e[i];if(s){const e=t[i];const n=e===undefined||s(e,i,t);if(n!==true){throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}}}const fe={assertOptions:ce,validators:se};const le=fe.validators;class ae{constructor(t){this.defaults=t;this.interceptors={request:new dt,response:new dt}}request(t,e){if(typeof t==="string"){e=e||{};e.url=t}else{e=t||{}}e=oe(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;if(n!==undefined){fe.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},false)}if(r!==undefined){fe.assertOptions(r,{encode:le.function,serialize:le.function},true)}e.method=(e.method||this.defaults.method||"get").toLowerCase();let i;i=o&&X.merge(o.common,o[e.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]}));e.headers=Lt.concat(i,o);const s=[];let u=true;this.interceptors.request.forEach((function t(n){if(typeof n.runWhen==="function"&&n.runWhen(e)===false){return}u=u&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const c=[];this.interceptors.response.forEach((function t(e){c.push(e.fulfilled,e.rejected)}));let f;let l=0;let a;if(!u){const t=[ne.bind(this),undefined];t.unshift.apply(t,s);t.push.apply(t,c);a=t.length;f=Promise.resolve(e);while(l<a){f=f.then(t[l++],t[l++])}return f}a=s.length;let h=e;l=0;while(l<a){const t=s[l++];const e=s[l++];try{h=t(h)}catch(t){e.call(this,t);break}}try{f=ne.call(this,h)}catch(t){return Promise.reject(t)}l=0;a=c.length;while(l<a){f=f.then(c[l++],c[l++])}return f}getUri(t){t=oe(this.defaults,t);const e=Vt(t.baseURL,t.url);return ht(e,t.params,t.paramsSerializer)}}X.forEach(["delete","get","head","options"],(function t(e){ae.prototype[e]=function(t,n){return this.request(oe(n||{},{method:e,url:t,data:(n||{}).data}))}}));X.forEach(["post","put","patch"],(function t(e){function n(t){return function n(r,o,i){return this.request(oe(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ae.prototype[e]=n();ae.prototype[e+"Form"]=n(true)}));class he{constructor(t){if(typeof t!=="function"){throw new TypeError("executor must be a function.")}let e;this.promise=new Promise((function t(n){e=n}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0){n._listeners[e](t)}n._listeners=null}));this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t);e=t})).then(t);r.cancel=function t(){n.unsubscribe(e)};return r};t((function t(r,o,i){if(n.reason){return}n.reason=new Mt(r,o,i);e(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(t){if(this.reason){t(this.reason);return}if(this._listeners){this._listeners.push(t)}else{this._listeners=[t]}}unsubscribe(t){if(!this._listeners){return}const e=this._listeners.indexOf(t);if(e!==-1){this._listeners.splice(e,1)}}static source(){let t;const e=new he((function e(n){t=n}));return{token:e,cancel:t}}}function de(t){return function e(n){return t.apply(null,n)}}function pe(t){return X.isObject(t)&&t.isAxiosError===true}const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(me).forEach((([t,e])=>{me[e]=t}));function we(t){const n=new ae(t);const r=e(ae.prototype.request,n);X.extend(r,ae.prototype,n,{allOwnKeys:true});X.extend(r,n,null,{allOwnKeys:true});r.create=function e(n){return we(oe(t,n))};return r}const be=we(At);be.Axios=ae;be.CanceledError=Mt;be.CancelToken=he;be.isCancel=qt;be.VERSION=ie;be.toFormData=ut;be.AxiosError=Z;be.Cancel=be.CanceledError;be.all=function t(e){return Promise.all(e)};be.spread=de;be.isAxiosError=pe;be.mergeConfig=oe;be.AxiosHeaders=Lt;be.formToJSON=t=>St(X.isHTMLForm(t)?new FormData(t):t);be.HttpStatusCode=me;be.default=be;var ye=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var ge=function(){if(this)return this;if(typeof globalThis==="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:true})}catch(t){return ye()}try{if(!__global__)return ye();return __global__}finally{delete Object.prototype.__global__}}();var Oe=Symbol.for("verdocs-default-endpoint");var Re=function(t){console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):"");return t};var Ee=function(){function e(t){this.environment="verdocs";this.sessionType="user";this.baseURL="https://api.verdocs.com";this.clientID="not-set";this.timeout=3e3;this.token=null;this.nextListenerId=0;this.sessionListeners=new Map;this.requestLoggerId=null;this.session=null;this.baseURL=(t===null||t===void 0?void 0:t.baseURL)||"https://api.verdocs.com";this.timeout=(t===null||t===void 0?void 0:t.timeout)||3e3;this.environment=(t===null||t===void 0?void 0:t.environment)||"verdocs";this.sessionType=(t===null||t===void 0?void 0:t.sessionType)||"user";this.clientID=(t===null||t===void 0?void 0:t.clientID)||"not-set";this.api=be.create({baseURL:this.baseURL,timeout:this.timeout})}e.prototype.setDefault=function(){ge[Oe]=this};e.getDefault=function(){if(!ge[Oe]){ge[Oe]=new e;window.console.debug("[JS_SDK] Created default endpoint",ge[Oe])}return ge[Oe]};e.prototype.getEnvironment=function(){return this.environment};e.prototype.getSessionType=function(){return this.sessionType};e.prototype.getBaseURL=function(){return this.baseURL};e.prototype.getClientID=function(){return this.clientID};e.prototype.getTimeout=function(){return this.timeout};e.prototype.getSession=function(){return this.session};e.prototype.setEnvironment=function(t){this.environment=t;return this};e.prototype.setSessionType=function(t){this.sessionType=t;return this};e.prototype.setBaseURL=function(t){this.api.defaults.baseURL=t;return this};e.prototype.setClientID=function(t){this.clientID=t;this.api.defaults.headers.common["X-Client-ID"]=t;return this};e.prototype.setTimeout=function(t){this.timeout=t;this.api.defaults.timeout=t;return this};e.prototype.logRequests=function(t){if(t&&this.requestLoggerId===null){this.requestLoggerId=this.api.interceptors.request.use(Re)}else if(!t&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};e.prototype.setToken=function(e){if(!e){return this.clearSession()}var n=t(e);if(n===null||n.exp&&n.exp*1e3<(new Date).getTime()){window.console.warn("[JS_SDK] Ignoring attempt to use expired session token");return this.clearSession()}this.token=e;this.session=n;if(this.sessionType==="user"){this.api.defaults.headers.common.Authorization="Bearer ".concat(e)}else{this.api.defaults.headers.common.signer="Bearer ".concat(e)}localStorage.setItem(this.sessionStorageKey(),e);this.notifySessionListeners();return this};e.prototype.getToken=function(){return this.token};e.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())};e.prototype.clearSession=function(){localStorage.removeItem(this.sessionStorageKey());delete this.api.defaults.headers.common.Authorization;delete this.api.defaults.headers.common.signer;this.session=null;this.token=null;this.notifySessionListeners();return this};e.prototype.clearSignerSession=function(){localStorage.removeItem(this.sessionStorageKey());delete this.api.defaults.headers.common.Authorization;this.session=null;this.token=null;this.notifySessionListeners();return this};e.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(e){try{e(t,t.session)}catch(t){}}))};e.prototype.onSessionChanged=function(t){var e=this;this.nextListenerId++;var n=Symbol.for(""+this.nextListenerId);this.sessionListeners.set(n,t);return function(){e.sessionListeners.delete(n)}};e.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());if(!t){return this.clearSession()}return this.setToken(t)};return e}();export{Ee as V};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{d as t}from"./p-21603661.js";function e(t,e){return function n(){return t.apply(e,arguments)}}const{toString:n}=Object.prototype;const{getPrototypeOf:r}=Object;const o=(t=>e=>{const r=n.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null));const i=t=>{t=t.toLowerCase();return e=>o(e)===t};const s=t=>e=>typeof e===t;const{isArray:u}=Array;const c=s("undefined");function f(t){return t!==null&&!c(t)&&t.constructor!==null&&!c(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const l=i("ArrayBuffer");function a(t){let e;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){e=ArrayBuffer.isView(t)}else{e=t&&t.buffer&&l(t.buffer)}return e}const h=s("string");const d=s("function");const p=s("number");const m=t=>t!==null&&typeof t==="object";const w=t=>t===true||t===false;const b=t=>{if(o(t)!=="object"){return false}const e=r(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};const y=i("Date");const g=i("File");const O=i("Blob");const R=i("FileList");const E=t=>m(t)&&d(t.pipe);const S=t=>{const e="[object FormData]";return t&&(typeof FormData==="function"&&t instanceof FormData||n.call(t)===e||d(t.toString)&&t.toString()===e)};const j=i("URLSearchParams");const v=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function A(t,e,{allOwnKeys:n=false}={}){if(t===null||typeof t==="undefined"){return}let r;let o;if(typeof t!=="object"){t=[t]}if(u(t)){for(r=0,o=t.length;r<o;r++){e.call(null,t[r],r,t)}}else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t);const i=o.length;let s;for(r=0;r<i;r++){s=o[r];e.call(null,t[s],s,t)}}}function N(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length;let o;while(r-- >0){o=n[r];if(e===o.toLowerCase()){return o}}return null}const T=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})();const x=t=>!c(t)&&t!==T;function P(){const{caseless:t}=x(this)&&this||{};const e={};const n=(n,r)=>{const o=t&&N(e,r)||r;if(b(e[o])&&b(n)){e[o]=P(e[o],n)}else if(b(n)){e[o]=P({},n)}else if(u(n)){e[o]=n.slice()}else{e[o]=n}};for(let t=0,e=arguments.length;t<e;t++){arguments[t]&&A(arguments[t],n)}return e}const _=(t,n,r,{allOwnKeys:o}={})=>{A(n,((n,o)=>{if(r&&d(n)){t[o]=e(n,r)}else{t[o]=n}}),{allOwnKeys:o});return t};const U=t=>{if(t.charCodeAt(0)===65279){t=t.slice(1)}return t};const F=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r);t.prototype.constructor=t;Object.defineProperty(t,"super",{value:e.prototype});n&&Object.assign(t.prototype,n)};const B=(t,e,n,o)=>{let i;let s;let u;const c={};e=e||{};if(t==null)return e;do{i=Object.getOwnPropertyNames(t);s=i.length;while(s-- >0){u=i[s];if((!o||o(u,t,e))&&!c[u]){e[u]=t[u];c[u]=true}}t=n!==false&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e};const D=(t,e,n)=>{t=String(t);if(n===undefined||n>t.length){n=t.length}n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n};const C=t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!p(e))return null;const n=new Array(e);while(e-- >0){n[e]=t[e]}return n};const L=(t=>e=>t&&e instanceof t)(typeof Uint8Array!=="undefined"&&r(Uint8Array));const k=(t,e)=>{const n=t&&t[Symbol.iterator];const r=n.call(t);let o;while((o=r.next())&&!o.done){const n=o.value;e.call(t,n[0],n[1])}};const q=(t,e)=>{let n;const r=[];while((n=t.exec(e))!==null){r.push(n)}return r};const M=i("HTMLFormElement");const I=t=>t.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function t(e,n,r){return n.toUpperCase()+r}));const J=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype);const z=i("RegExp");const H=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t);const r={};A(n,((n,o)=>{if(e(n,o,t)!==false){r[o]=n}}));Object.defineProperties(t,r)};const K=t=>{H(t,((e,n)=>{if(d(t)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const r=t[n];if(!d(r))return;e.enumerable=false;if("writable"in e){e.writable=false;return}if(!e.set){e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const V=(t,e)=>{const n={};const r=t=>{t.forEach((t=>{n[t]=true}))};u(t)?r(t):r(String(t).split(e));return n};const $=()=>{};const W=(t,e)=>{t=+t;return Number.isFinite(t)?t:e};const G=t=>{const e=new Array(10);const n=(t,r)=>{if(m(t)){if(e.indexOf(t)>=0){return}if(!("toJSON"in t)){e[r]=t;const o=u(t)?[]:{};A(t,((t,e)=>{const i=n(t,r+1);!c(i)&&(o[e]=i)}));e[r]=undefined;return o}}return t};return n(t,0)};const X={isArray:u,isArrayBuffer:l,isBuffer:f,isFormData:S,isArrayBufferView:a,isString:h,isNumber:p,isBoolean:w,isObject:m,isPlainObject:b,isUndefined:c,isDate:y,isFile:g,isBlob:O,isRegExp:z,isFunction:d,isStream:E,isURLSearchParams:j,isTypedArray:L,isFileList:R,forEach:A,merge:P,extend:_,trim:v,stripBOM:U,inherits:F,toFlatObject:B,kindOf:o,kindOfTest:i,endsWith:D,toArray:C,forEachEntry:k,matchAll:q,isHTMLForm:M,hasOwnProperty:J,hasOwnProp:J,reduceDescriptors:H,freezeMethods:K,toObjectSet:V,toCamelCase:I,noop:$,toFiniteNumber:W,findKey:N,global:T,isContextDefined:x,toJSONObject:G};function Z(t,e,n,r,o){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=t;this.name="AxiosError";e&&(this.code=e);n&&(this.config=n);r&&(this.request=r);o&&(this.response=o)}X.inherits(Z,Error,{toJSON:function t(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Q=Z.prototype;const Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{Y[t]={value:t}}));Object.defineProperties(Z,Y);Object.defineProperty(Q,"isAxiosError",{value:true});Z.from=(t,e,n,r,o,i)=>{const s=Object.create(Q);X.toFlatObject(t,s,(function t(e){return e!==Error.prototype}),(t=>t!=="isAxiosError"));Z.call(s,t.message,e,n,r,o);s.cause=t;s.name=t.name;i&&Object.assign(s,i);return s};var tt=typeof self=="object"?self.FormData:window.FormData;function et(t){return X.isPlainObject(t)||X.isArray(t)}function nt(t){return X.endsWith(t,"[]")?t.slice(0,-2):t}function rt(t,e,n){if(!t)return e;return t.concat(e).map((function t(e,r){e=nt(e);return!n&&r?"["+e+"]":e})).join(n?".":"")}function ot(t){return X.isArray(t)&&!t.some(et)}const it=X.toFlatObject(X,{},null,(function t(e){return/^is[A-Z]/.test(e)}));function st(t){return t&&X.isFunction(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator]}function ut(t,e,n){if(!X.isObject(t)){throw new TypeError("target must be an object")}e=e||new(tt||FormData);n=X.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function t(e,n){return!X.isUndefined(n[e])}));const r=n.metaTokens;const o=n.visitor||l;const i=n.dots;const s=n.indexes;const u=n.Blob||typeof Blob!=="undefined"&&Blob;const c=u&&st(e);if(!X.isFunction(o)){throw new TypeError("visitor must be a function")}function f(t){if(t===null)return"";if(X.isDate(t)){return t.toISOString()}if(!c&&X.isBlob(t)){throw new Z("Blob is not supported. Use a Buffer instead.")}if(X.isArrayBuffer(t)||X.isTypedArray(t)){return c&&typeof Blob==="function"?new Blob([t]):Buffer.from(t)}return t}function l(t,n,o){let u=t;if(t&&!o&&typeof t==="object"){if(X.endsWith(n,"{}")){n=r?n:n.slice(0,-2);t=JSON.stringify(t)}else if(X.isArray(t)&&ot(t)||(X.isFileList(t)||X.endsWith(n,"[]")&&(u=X.toArray(t)))){n=nt(n);u.forEach((function t(r,o){!(X.isUndefined(r)||r===null)&&e.append(s===true?rt([n],o,i):s===null?n:n+"[]",f(r))}));return false}}if(et(t)){return true}e.append(rt(o,n,i),f(t));return false}const a=[];const h=Object.assign(it,{defaultVisitor:l,convertValue:f,isVisitable:et});function d(t,n){if(X.isUndefined(t))return;if(a.indexOf(t)!==-1){throw Error("Circular reference detected in "+n.join("."))}a.push(t);X.forEach(t,(function t(r,i){const s=!(X.isUndefined(r)||r===null)&&o.call(e,r,X.isString(i)?i.trim():i,n,h);if(s===true){d(r,n?n.concat(i):[i])}}));a.pop()}if(!X.isObject(t)){throw new TypeError("data must be an object")}d(t);return e}function ct(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function t(n){return e[n]}))}function ft(t,e){this._pairs=[];t&&ut(t,this,e)}const lt=ft.prototype;lt.append=function t(e,n){this._pairs.push([e,n])};lt.toString=function t(e){const n=e?function(t){return e.call(this,t,ct)}:ct;return this._pairs.map((function t(e){return n(e[0])+"="+n(e[1])}),"").join("&")};function at(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ht(t,e,n){if(!e){return t}const r=n&&n.encode||at;const o=n&&n.serialize;let i;if(o){i=o(e,n)}else{i=X.isURLSearchParams(e)?e.toString():new ft(e,n).toString(r)}if(i){const e=t.indexOf("#");if(e!==-1){t=t.slice(0,e)}t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class dt{constructor(){this.handlers=[]}use(t,e,n){this.handlers.push({fulfilled:t,rejected:e,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(t){if(this.handlers[t]){this.handlers[t]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(t){X.forEach(this.handlers,(function e(n){if(n!==null){t(n)}}))}}const pt={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};const mt=typeof URLSearchParams!=="undefined"?URLSearchParams:ft;const wt=FormData;const bt=(()=>{let t;if(typeof navigator!=="undefined"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"})();const yt=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const gt={isBrowser:true,classes:{URLSearchParams:mt,FormData:wt,Blob},isStandardBrowserEnv:bt,isStandardBrowserWebWorkerEnv:yt,protocols:["http","https","file","blob","url","data"]};function Ot(t,e){return ut(t,new gt.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return r.defaultVisitor.apply(this,arguments)}},e))}function Rt(t){return X.matchAll(/\w+|\[(\w*)]/g,t).map((t=>t[0]==="[]"?"":t[1]||t[0]))}function Et(t){const e={};const n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++){i=n[r];e[i]=t[i]}return e}function St(t){function e(t,n,r,o){let i=t[o++];const s=Number.isFinite(+i);const u=o>=t.length;i=!i&&X.isArray(r)?r.length:i;if(u){if(X.hasOwnProp(r,i)){r[i]=[r[i],n]}else{r[i]=n}return!s}if(!r[i]||!X.isObject(r[i])){r[i]=[]}const c=e(t,n,r[i],o);if(c&&X.isArray(r[i])){r[i]=Et(r[i])}return!s}if(X.isFormData(t)&&X.isFunction(t.entries)){const n={};X.forEachEntry(t,((t,r)=>{e(Rt(t),r,n,0)}));return n}return null}const jt={"Content-Type":undefined};function vt(t,e,n){if(X.isString(t)){try{(e||JSON.parse)(t);return X.trim(t)}catch(t){if(t.name!=="SyntaxError"){throw t}}}return(n||JSON.stringify)(t)}const At={transitional:pt,adapter:["xhr","http"],transformRequest:[function t(e,n){const r=n.getContentType()||"";const o=r.indexOf("application/json")>-1;const i=X.isObject(e);if(i&&X.isHTMLForm(e)){e=new FormData(e)}const s=X.isFormData(e);if(s){if(!o){return e}return o?JSON.stringify(St(e)):e}if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)){return e}if(X.isArrayBufferView(e)){return e.buffer}if(X.isURLSearchParams(e)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return e.toString()}let u;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){return Ot(e,this.formSerializer).toString()}if((u=X.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ut(u?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(i||o){n.setContentType("application/json",false);return vt(e)}return e}],transformResponse:[function t(e){const n=this.transitional||At.transitional;const r=n&&n.forcedJSONParsing;const o=this.responseType==="json";if(e&&X.isString(e)&&(r&&!this.responseType||o)){const t=n&&n.silentJSONParsing;const r=!t&&o;try{return JSON.parse(e)}catch(t){if(r){if(t.name==="SyntaxError"){throw Z.from(t,Z.ERR_BAD_RESPONSE,this,null,this.response)}throw t}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gt.classes.FormData,Blob:gt.classes.Blob},validateStatus:function t(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};X.forEach(["delete","get","head"],(function t(e){At.headers[e]={}}));X.forEach(["post","put","patch"],(function t(e){At.headers[e]=X.merge(jt)}));const Nt=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Tt=t=>{const e={};let n;let r;let o;t&&t.split("\n").forEach((function t(i){o=i.indexOf(":");n=i.substring(0,o).trim().toLowerCase();r=i.substring(o+1).trim();if(!n||e[n]&&Nt[n]){return}if(n==="set-cookie"){if(e[n]){e[n].push(r)}else{e[n]=[r]}}else{e[n]=e[n]?e[n]+", "+r:r}}));return e};const xt=Symbol("internals");function Pt(t){return t&&String(t).trim().toLowerCase()}function _t(t){if(t===false||t==null){return t}return X.isArray(t)?t.map(_t):String(t)}function Ut(t){const e=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;while(r=n.exec(t)){e[r[1]]=r[2]}return e}function Ft(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function Bt(t,e,n,r){if(X.isFunction(r)){return r.call(this,e,n)}if(!X.isString(e))return;if(X.isString(r)){return e.indexOf(r)!==-1}if(X.isRegExp(r)){return r.test(e)}}function Dt(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,n)=>e.toUpperCase()+n))}function Ct(t,e){const n=X.toCamelCase(" "+e);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:true})}))}class Lt{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=Pt(e);if(!o){throw new Error("header name must be a non-empty string")}const i=X.findKey(r,o);if(!i||r[i]===undefined||n===true||n===undefined&&r[i]!==false){r[i||e]=_t(t)}}const i=(t,e)=>X.forEach(t,((t,n)=>o(t,n,e)));if(X.isPlainObject(t)||t instanceof this.constructor){i(t,e)}else if(X.isString(t)&&(t=t.trim())&&!Ft(t)){i(Tt(t),e)}else{t!=null&&o(e,t,n)}return this}get(t,e){t=Pt(t);if(t){const n=X.findKey(this,t);if(n){const t=this[n];if(!e){return t}if(e===true){return Ut(t)}if(X.isFunction(e)){return e.call(this,t,n)}if(X.isRegExp(e)){return e.exec(t)}throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){t=Pt(t);if(t){const n=X.findKey(this,t);return!!(n&&(!e||Bt(this,this[n],n,e)))}return false}delete(t,e){const n=this;let r=false;function o(t){t=Pt(t);if(t){const o=X.findKey(n,t);if(o&&(!e||Bt(n,n[o],o,e))){delete n[o];r=true}}}if(X.isArray(t)){t.forEach(o)}else{o(t)}return r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const e=this;const n={};X.forEach(this,((r,o)=>{const i=X.findKey(n,o);if(i){e[i]=_t(r);delete e[o];return}const s=t?Dt(o):String(o).trim();if(s!==o){delete e[o]}e[s]=_t(r);n[s]=true}));return this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);X.forEach(this,((n,r)=>{n!=null&&n!==false&&(e[r]=t&&X.isArray(n)?n.join(", "):n)}));return e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);e.forEach((t=>n.set(t)));return n}static accessor(t){const e=this[xt]=this[xt]={accessors:{}};const n=e.accessors;const r=this.prototype;function o(t){const e=Pt(t);if(!n[e]){Ct(r,t);n[e]=true}}X.isArray(t)?t.forEach(o):o(t);return this}}Lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);X.freezeMethods(Lt.prototype);X.freezeMethods(Lt);function kt(t,e){const n=this||At;const r=e||n;const o=Lt.from(r.headers);let i=r.data;X.forEach(t,(function t(r){i=r.call(n,i,o.normalize(),e?e.status:undefined)}));o.normalize();return i}function qt(t){return!!(t&&t.__CANCEL__)}function Mt(t,e,n){Z.call(this,t==null?"canceled":t,Z.ERR_CANCELED,e,n);this.name="CanceledError"}X.inherits(Mt,Z,{__CANCEL__:true});const It=null;function Jt(t,e,n){const r=n.config.validateStatus;if(!n.status||!r||r(n.status)){t(n)}else{e(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}const zt=gt.isStandardBrowserEnv?function t(){return{write:function t(e,n,r,o,i,s){const u=[];u.push(e+"="+encodeURIComponent(n));if(X.isNumber(r)){u.push("expires="+new Date(r).toGMTString())}if(X.isString(o)){u.push("path="+o)}if(X.isString(i)){u.push("domain="+i)}if(s===true){u.push("secure")}document.cookie=u.join("; ")},read:function t(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function t(e){this.write(e,"",Date.now()-864e5)}}}():function t(){return{write:function t(){},read:function t(){return null},remove:function t(){}}}();function Ht(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Kt(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Vt(t,e){if(t&&!Ht(e)){return Kt(t,e)}return e}const $t=gt.isStandardBrowserEnv?function t(){const e=/(msie|trident)/i.test(navigator.userAgent);const n=document.createElement("a");let r;function o(t){let r=t;if(e){n.setAttribute("href",r);r=n.href}n.setAttribute("href",r);return{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}r=o(window.location.href);return function t(e){const n=X.isString(e)?o(e):e;return n.protocol===r.protocol&&n.host===r.host}}():function t(){return function t(){return true}}();function Wt(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Gt(t,e){t=t||10;const n=new Array(t);const r=new Array(t);let o=0;let i=0;let s;e=e!==undefined?e:1e3;return function u(c){const f=Date.now();const l=r[i];if(!s){s=f}n[o]=c;r[o]=f;let a=i;let h=0;while(a!==o){h+=n[a++];a=a%t}o=(o+1)%t;if(o===i){i=(i+1)%t}if(f-s<e){return}const d=l&&f-l;return d?Math.round(h*1e3/d):undefined}}function Xt(t,e){let n=0;const r=Gt(50,250);return o=>{const i=o.loaded;const s=o.lengthComputable?o.total:undefined;const u=i-n;const c=r(u);const f=i<=s;n=i;const l={loaded:i,total:s,progress:s?i/s:undefined,bytes:u,rate:c?c:undefined,estimated:c&&s&&f?(s-i)/c:undefined,event:o};l[e?"download":"upload"]=true;t(l)}}const Zt=typeof XMLHttpRequest!=="undefined";const Qt=Zt&&function(t){return new Promise((function e(n,r){let o=t.data;const i=Lt.from(t.headers).normalize();const s=t.responseType;let u;function c(){if(t.cancelToken){t.cancelToken.unsubscribe(u)}if(t.signal){t.signal.removeEventListener("abort",u)}}if(X.isFormData(o)&&(gt.isStandardBrowserEnv||gt.isStandardBrowserWebWorkerEnv)){i.setContentType(false)}let f=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"";const n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const l=Vt(t.baseURL,t.url);f.open(t.method.toUpperCase(),ht(l,t.params,t.paramsSerializer),true);f.timeout=t.timeout;function a(){if(!f){return}const e=Lt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());const o=!s||s==="text"||s==="json"?f.responseText:f.response;const i={data:o,status:f.status,statusText:f.statusText,headers:e,config:t,request:f};Jt((function t(e){n(e);c()}),(function t(e){r(e);c()}),i);f=null}if("onloadend"in f){f.onloadend=a}else{f.onreadystatechange=function t(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(a)}}f.onabort=function e(){if(!f){return}r(new Z("Request aborted",Z.ECONNABORTED,t,f));f=null};f.onerror=function e(){r(new Z("Network Error",Z.ERR_NETWORK,t,f));f=null};f.ontimeout=function e(){let n=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const o=t.transitional||pt;if(t.timeoutErrorMessage){n=t.timeoutErrorMessage}r(new Z(n,o.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,t,f));f=null};if(gt.isStandardBrowserEnv){const e=(t.withCredentials||$t(l))&&t.xsrfCookieName&&zt.read(t.xsrfCookieName);if(e){i.set(t.xsrfHeaderName,e)}}o===undefined&&i.setContentType(null);if("setRequestHeader"in f){X.forEach(i.toJSON(),(function t(e,n){f.setRequestHeader(n,e)}))}if(!X.isUndefined(t.withCredentials)){f.withCredentials=!!t.withCredentials}if(s&&s!=="json"){f.responseType=t.responseType}if(typeof t.onDownloadProgress==="function"){f.addEventListener("progress",Xt(t.onDownloadProgress,true))}if(typeof t.onUploadProgress==="function"&&f.upload){f.upload.addEventListener("progress",Xt(t.onUploadProgress))}if(t.cancelToken||t.signal){u=e=>{if(!f){return}r(!e||e.type?new Mt(null,t,f):e);f.abort();f=null};t.cancelToken&&t.cancelToken.subscribe(u);if(t.signal){t.signal.aborted?u():t.signal.addEventListener("abort",u)}}const h=Wt(l);if(h&>.protocols.indexOf(h)===-1){r(new Z("Unsupported protocol "+h+":",Z.ERR_BAD_REQUEST,t));return}f.send(o||null)}))};const Yt={http:It,xhr:Qt};X.forEach(Yt,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const te={getAdapter:t=>{t=X.isArray(t)?t:[t];const{length:e}=t;let n;let r;for(let o=0;o<e;o++){n=t[o];if(r=X.isString(n)?Yt[n.toLowerCase()]:n){break}}if(!r){if(r===false){throw new Z(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT")}throw new Error(X.hasOwnProp(Yt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!X.isFunction(r)){throw new TypeError("adapter is not a function")}return r},adapters:Yt};function ee(t){if(t.cancelToken){t.cancelToken.throwIfRequested()}if(t.signal&&t.signal.aborted){throw new Mt(null,t)}}function ne(t){ee(t);t.headers=Lt.from(t.headers);t.data=kt.call(t,t.transformRequest);if(["post","put","patch"].indexOf(t.method)!==-1){t.headers.setContentType("application/x-www-form-urlencoded",false)}const e=te.getAdapter(t.adapter||At.adapter);return e(t).then((function e(n){ee(t);n.data=kt.call(t,t.transformResponse,n);n.headers=Lt.from(n.headers);return n}),(function e(n){if(!qt(n)){ee(t);if(n&&n.response){n.response.data=kt.call(t,t.transformResponse,n.response);n.response.headers=Lt.from(n.response.headers)}}return Promise.reject(n)}))}const re=t=>t instanceof Lt?t.toJSON():t;function oe(t,e){e=e||{};const n={};function r(t,e,n){if(X.isPlainObject(t)&&X.isPlainObject(e)){return X.merge.call({caseless:n},t,e)}else if(X.isPlainObject(e)){return X.merge({},e)}else if(X.isArray(e)){return e.slice()}return e}function o(t,e,n){if(!X.isUndefined(e)){return r(t,e,n)}else if(!X.isUndefined(t)){return r(undefined,t,n)}}function i(t,e){if(!X.isUndefined(e)){return r(undefined,e)}}function s(t,e){if(!X.isUndefined(e)){return r(undefined,e)}else if(!X.isUndefined(t)){return r(undefined,t)}}function u(n,o,i){if(i in e){return r(n,o)}else if(i in t){return r(undefined,n)}}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,e)=>o(re(t),re(e),true)};X.forEach(Object.keys(t).concat(Object.keys(e)),(function r(i){const s=c[i]||o;const f=s(t[i],e[i],i);X.isUndefined(f)&&s!==u||(n[i]=f)}));return n}const ie="1.2.3";const se={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{se[t]=function n(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const ue={};se.transitional=function t(e,n,r){function o(t,e){return"[Axios v"+ie+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(t,r,i)=>{if(e===false){throw new Z(o(r," has been removed"+(n?" in "+n:"")),Z.ERR_DEPRECATED)}if(n&&!ue[r]){ue[r]=true;console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))}return e?e(t,r,i):true}};function ce(t,e,n){if(typeof t!=="object"){throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE)}const r=Object.keys(t);let o=r.length;while(o-- >0){const i=r[o];const s=e[i];if(s){const e=t[i];const n=e===undefined||s(e,i,t);if(n!==true){throw new Z("option "+i+" must be "+n,Z.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}}}const fe={assertOptions:ce,validators:se};const le=fe.validators;class ae{constructor(t){this.defaults=t;this.interceptors={request:new dt,response:new dt}}request(t,e){if(typeof t==="string"){e=e||{};e.url=t}else{e=t||{}}e=oe(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;if(n!==undefined){fe.assertOptions(n,{silentJSONParsing:le.transitional(le.boolean),forcedJSONParsing:le.transitional(le.boolean),clarifyTimeoutError:le.transitional(le.boolean)},false)}if(r!==undefined){fe.assertOptions(r,{encode:le.function,serialize:le.function},true)}e.method=(e.method||this.defaults.method||"get").toLowerCase();let i;i=o&&X.merge(o.common,o[e.method]);i&&X.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]}));e.headers=Lt.concat(i,o);const s=[];let u=true;this.interceptors.request.forEach((function t(n){if(typeof n.runWhen==="function"&&n.runWhen(e)===false){return}u=u&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const c=[];this.interceptors.response.forEach((function t(e){c.push(e.fulfilled,e.rejected)}));let f;let l=0;let a;if(!u){const t=[ne.bind(this),undefined];t.unshift.apply(t,s);t.push.apply(t,c);a=t.length;f=Promise.resolve(e);while(l<a){f=f.then(t[l++],t[l++])}return f}a=s.length;let h=e;l=0;while(l<a){const t=s[l++];const e=s[l++];try{h=t(h)}catch(t){e.call(this,t);break}}try{f=ne.call(this,h)}catch(t){return Promise.reject(t)}l=0;a=c.length;while(l<a){f=f.then(c[l++],c[l++])}return f}getUri(t){t=oe(this.defaults,t);const e=Vt(t.baseURL,t.url);return ht(e,t.params,t.paramsSerializer)}}X.forEach(["delete","get","head","options"],(function t(e){ae.prototype[e]=function(t,n){return this.request(oe(n||{},{method:e,url:t,data:(n||{}).data}))}}));X.forEach(["post","put","patch"],(function t(e){function n(t){return function n(r,o,i){return this.request(oe(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}ae.prototype[e]=n();ae.prototype[e+"Form"]=n(true)}));class he{constructor(t){if(typeof t!=="function"){throw new TypeError("executor must be a function.")}let e;this.promise=new Promise((function t(n){e=n}));const n=this;this.promise.then((t=>{if(!n._listeners)return;let e=n._listeners.length;while(e-- >0){n._listeners[e](t)}n._listeners=null}));this.promise.then=t=>{let e;const r=new Promise((t=>{n.subscribe(t);e=t})).then(t);r.cancel=function t(){n.unsubscribe(e)};return r};t((function t(r,o,i){if(n.reason){return}n.reason=new Mt(r,o,i);e(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(t){if(this.reason){t(this.reason);return}if(this._listeners){this._listeners.push(t)}else{this._listeners=[t]}}unsubscribe(t){if(!this._listeners){return}const e=this._listeners.indexOf(t);if(e!==-1){this._listeners.splice(e,1)}}static source(){let t;const e=new he((function e(n){t=n}));return{token:e,cancel:t}}}function de(t){return function e(n){return t.apply(null,n)}}function pe(t){return X.isObject(t)&&t.isAxiosError===true}const me={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(me).forEach((([t,e])=>{me[e]=t}));function we(t){const n=new ae(t);const r=e(ae.prototype.request,n);X.extend(r,ae.prototype,n,{allOwnKeys:true});X.extend(r,n,null,{allOwnKeys:true});r.create=function e(n){return we(oe(t,n))};return r}const be=we(At);be.Axios=ae;be.CanceledError=Mt;be.CancelToken=he;be.isCancel=qt;be.VERSION=ie;be.toFormData=ut;be.AxiosError=Z;be.Cancel=be.CanceledError;be.all=function t(e){return Promise.all(e)};be.spread=de;be.isAxiosError=pe;be.mergeConfig=oe;be.AxiosHeaders=Lt;be.formToJSON=t=>St(X.isHTMLForm(t)?new FormData(t):t);be.HttpStatusCode=me;be.default=be;var ye=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var ge=function(){if(this)return this;if(typeof globalThis==="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:true})}catch(t){return ye()}try{if(!__global__)return ye();return __global__}finally{delete Object.prototype.__global__}}();var Oe=Symbol.for("verdocs-default-endpoint");var Re=function(t){console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):"");return t};var Ee=function(){function e(t){this.environment="verdocs";this.sessionType="user";this.baseURL="https://api.verdocs.com";this.clientID="not-set";this.timeout=15e3;this.token=null;this.nextListenerId=0;this.sessionListeners=new Map;this.requestLoggerId=null;this.session=null;this.baseURL=(t===null||t===void 0?void 0:t.baseURL)||"https://api.verdocs.com";this.timeout=(t===null||t===void 0?void 0:t.timeout)||15e3;this.environment=(t===null||t===void 0?void 0:t.environment)||"verdocs";this.sessionType=(t===null||t===void 0?void 0:t.sessionType)||"user";this.clientID=(t===null||t===void 0?void 0:t.clientID)||"not-set";this.api=be.create({baseURL:this.baseURL,timeout:this.timeout})}e.prototype.setDefault=function(){ge[Oe]=this};e.getDefault=function(){if(!ge[Oe]){ge[Oe]=new e;window.console.debug("[JS_SDK] Created default endpoint",ge[Oe])}return ge[Oe]};e.prototype.getEnvironment=function(){return this.environment};e.prototype.getSessionType=function(){return this.sessionType};e.prototype.getBaseURL=function(){return this.baseURL};e.prototype.getClientID=function(){return this.clientID};e.prototype.getTimeout=function(){return this.timeout};e.prototype.getSession=function(){return this.session};e.prototype.setEnvironment=function(t){this.environment=t;return this};e.prototype.setSessionType=function(t){this.sessionType=t;return this};e.prototype.setBaseURL=function(t){this.api.defaults.baseURL=t;return this};e.prototype.setClientID=function(t){this.clientID=t;this.api.defaults.headers.common["X-Client-ID"]=t;return this};e.prototype.setTimeout=function(t){this.timeout=t;this.api.defaults.timeout=t;return this};e.prototype.logRequests=function(t){if(t&&this.requestLoggerId===null){this.requestLoggerId=this.api.interceptors.request.use(Re)}else if(!t&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};e.prototype.setToken=function(e){if(!e){return this.clearSession()}var n=t(e);if(n===null||n.exp&&n.exp*1e3<(new Date).getTime()){window.console.warn("[JS_SDK] Ignoring attempt to use expired session token");return this.clearSession()}this.token=e;this.session=n;if(this.sessionType==="user"){this.api.defaults.headers.common.Authorization="Bearer ".concat(e)}else{this.api.defaults.headers.common.signer="Bearer ".concat(e)}localStorage.setItem(this.sessionStorageKey(),e);this.notifySessionListeners();return this};e.prototype.getToken=function(){return this.token};e.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())};e.prototype.clearSession=function(){localStorage.removeItem(this.sessionStorageKey());delete this.api.defaults.headers.common.Authorization;delete this.api.defaults.headers.common.signer;this.session=null;this.token=null;this.notifySessionListeners();return this};e.prototype.clearSignerSession=function(){localStorage.removeItem(this.sessionStorageKey());delete this.api.defaults.headers.common.Authorization;this.session=null;this.token=null;this.notifySessionListeners();return this};e.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(e){try{e(t,t.session)}catch(t){}}))};e.prototype.onSessionChanged=function(t){var e=this;this.nextListenerId++;var n=Symbol.for(""+this.nextListenerId);this.sessionListeners.set(n,t);return function(){e.sessionListeners.delete(n)}};e.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());if(!t){return this.clearSession()}return this.setToken(t)};return e}();export{Ee as V};
|
|
2
|
+
//# sourceMappingURL=p-5e67c42f.js.map
|