@verdocs/web-sdk 1.2.0 → 1.4.6
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/{Auth-0ba9a04b.js → Auth-e68977a3.js} +23 -1
- package/dist/cjs/{Token-1ea6d834.js → Token-1ec62bd3.js} +424 -159
- package/dist/cjs/buffer-es6-bc8199b1.js +2018 -0
- package/dist/cjs/{index-01e27102.js → index-589f3be8.js} +78 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/popper-71bf3058.js +1790 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js +8 -12
- package/dist/cjs/verdocs-button_2.cjs.entry.js +16 -10
- package/dist/cjs/verdocs-dropdown_12.cjs.entry.js +36 -1819
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +81 -0
- package/dist/cjs/verdocs-loader.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +26 -8
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-search.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +15 -19
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +7529 -0
- package/dist/cjs/verdocs-template-card.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-toggle.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-web-sdk.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +110 -34
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +84 -13
- package/dist/collection/components/controls/verdocs-button/verdocs-button.stories.js +41 -2
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +7 -10
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -15
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +3 -0
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.css +4 -6
- package/dist/collection/components/controls/verdocs-status-indicator/accepted-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/accepted-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/arrowright.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/canceled-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/canceled-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/complete-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/complete-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/declined-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/declined-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/in-progress-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/in-progress-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/opened-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/opened-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/pending-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/pending-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/recipient-flow.js +218 -0
- package/dist/collection/components/controls/verdocs-status-indicator/signed-dark.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/signed-light.svg +4 -0
- package/dist/collection/components/controls/verdocs-status-indicator/some-signed-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/some-signed-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/submitted-dark.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/submitted-light.svg +3 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.css +48 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.js +344 -0
- package/dist/collection/components/controls/verdocs-status-indicator/verdocs-status-indicator.stories.js +69 -0
- package/dist/collection/components/controls/verdocs-template-card/verdocs-template-card.css +5 -7
- package/dist/collection/components/controls/verdocs-template-tags/verdocs-template-tags.css +5 -7
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +4 -6
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.css +4 -6
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.stories.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.css +3 -4
- package/dist/collection/components/dialogs/verdocs-kba-dialog/question.svg +4 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +95 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +292 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.js +36 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +3 -4
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +5 -6
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +2 -2
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +3 -4
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.stories.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +3 -5
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +7 -9
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +2 -4
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +2 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +2 -5
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +2 -2
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -3
- package/dist/{esm/Auth-16761ea6.js → components/Auth.js} +23 -2
- package/dist/{esm/Token-b82a8ea3.js → components/Token.js} +423 -158
- package/dist/{cjs/buffer-es6-ce0cdd81.js → components/buffer-es6.js} +38 -2
- package/dist/components/index.d.ts +53 -0
- package/dist/components/index.js +33 -0
- package/dist/components/popper.js +1788 -0
- package/dist/components/verdocs-auth.d.ts +11 -0
- package/dist/components/verdocs-auth.js +152 -0
- package/dist/components/verdocs-button.d.ts +11 -0
- package/dist/components/verdocs-button.js +6 -0
- package/dist/components/verdocs-button2.js +67 -0
- package/dist/components/verdocs-dropdown.d.ts +11 -0
- package/dist/components/verdocs-dropdown.js +6 -0
- package/dist/components/verdocs-dropdown2.js +94 -0
- package/dist/components/verdocs-field-attachment.d.ts +11 -0
- package/dist/components/verdocs-field-attachment.js +6 -0
- package/dist/components/verdocs-field-attachment2.js +88 -0
- package/dist/components/verdocs-field-checkbox.d.ts +11 -0
- package/dist/components/verdocs-field-checkbox.js +6 -0
- package/dist/components/verdocs-field-checkbox2.js +55 -0
- package/dist/components/verdocs-field-date.d.ts +11 -0
- package/dist/components/verdocs-field-date.js +6 -0
- package/dist/components/verdocs-field-date2.js +2775 -0
- package/dist/components/verdocs-field-dropdown.d.ts +11 -0
- package/dist/components/verdocs-field-dropdown.js +6 -0
- package/dist/components/verdocs-field-dropdown2.js +78 -0
- package/dist/components/verdocs-field-initial.d.ts +11 -0
- package/dist/components/verdocs-field-initial.js +6 -0
- package/dist/components/verdocs-field-initial2.js +86 -0
- package/dist/components/verdocs-field-payment.d.ts +11 -0
- package/dist/components/verdocs-field-payment.js +6 -0
- package/dist/components/verdocs-field-payment2.js +114 -0
- package/dist/components/verdocs-field-radio-button.d.ts +11 -0
- package/dist/components/verdocs-field-radio-button.js +6 -0
- package/dist/components/verdocs-field-radio-button2.js +66 -0
- package/dist/components/verdocs-field-signature.d.ts +11 -0
- package/dist/components/verdocs-field-signature.js +6 -0
- package/dist/components/verdocs-field-signature2.js +86 -0
- package/dist/components/verdocs-field-textarea.d.ts +11 -0
- package/dist/components/verdocs-field-textarea.js +6 -0
- package/dist/components/verdocs-field-textarea2.js +82 -0
- package/dist/components/verdocs-field-textbox.d.ts +11 -0
- package/dist/components/verdocs-field-textbox.js +6 -0
- package/dist/components/verdocs-field-textbox2.js +82 -0
- package/dist/components/verdocs-initial-dialog.d.ts +11 -0
- package/dist/components/verdocs-initial-dialog.js +6 -0
- package/dist/components/verdocs-initial-dialog2.js +272 -0
- package/dist/components/verdocs-kba-dialog.d.ts +11 -0
- package/dist/components/verdocs-kba-dialog.js +112 -0
- package/dist/components/verdocs-loader.d.ts +11 -0
- package/dist/components/verdocs-loader.js +6 -0
- package/dist/components/verdocs-loader2.js +30 -0
- package/dist/components/verdocs-ok-dialog.d.ts +11 -0
- package/dist/components/verdocs-ok-dialog.js +6 -0
- package/dist/components/verdocs-ok-dialog2.js +70 -0
- package/dist/components/verdocs-organization-card.d.ts +11 -0
- package/dist/components/verdocs-organization-card.js +38 -0
- package/dist/components/verdocs-quick-functions.d.ts +11 -0
- package/dist/components/verdocs-quick-functions.js +45 -0
- package/dist/components/verdocs-search-activity.d.ts +11 -0
- package/dist/components/verdocs-search-activity.js +6 -0
- package/dist/components/verdocs-search-activity2.js +193 -0
- package/dist/components/verdocs-search-box.d.ts +11 -0
- package/dist/components/verdocs-search-box.js +6 -0
- package/dist/components/verdocs-search-box2.js +75 -0
- package/dist/components/verdocs-search-tabs.d.ts +11 -0
- package/dist/components/verdocs-search-tabs.js +36 -0
- package/dist/components/verdocs-search.d.ts +11 -0
- package/dist/components/verdocs-search.js +45 -0
- package/dist/components/verdocs-sign.d.ts +11 -0
- package/dist/components/verdocs-sign.js +628 -0
- package/dist/components/verdocs-signature-dialog.d.ts +11 -0
- package/dist/components/verdocs-signature-dialog.js +6 -0
- package/dist/components/verdocs-signature-dialog2.js +268 -0
- package/dist/components/verdocs-status-indicator.d.ts +11 -0
- package/dist/components/verdocs-status-indicator.js +7550 -0
- package/dist/components/verdocs-template-card.d.ts +11 -0
- package/dist/components/verdocs-template-card.js +54 -0
- package/dist/components/verdocs-template-tags.d.ts +11 -0
- package/dist/components/verdocs-template-tags.js +36 -0
- package/dist/components/verdocs-text-input.d.ts +11 -0
- package/dist/components/verdocs-text-input.js +6 -0
- package/dist/components/verdocs-text-input2.js +81 -0
- package/dist/components/verdocs-toggle.d.ts +11 -0
- package/dist/components/verdocs-toggle.js +53 -0
- package/dist/components/verdocs-upload-dialog.d.ts +11 -0
- package/dist/components/verdocs-upload-dialog.js +6 -0
- package/dist/components/verdocs-upload-dialog2.js +144 -0
- package/dist/components/verdocs-view.d.ts +11 -0
- package/dist/components/verdocs-view.js +6 -0
- package/dist/{custom-elements/index.js → components/verdocs-view2.js} +32 -10997
- package/dist/docs.d.ts +3 -0
- package/dist/docs.json +408 -61
- package/dist/esm/Auth-b330f209.js +85 -0
- package/dist/esm/Token-a587e3ad.js +2325 -0
- package/dist/esm/{buffer-es6-681a33da.js → buffer-es6-136673c8.js} +39 -1
- package/dist/esm/{index-ade0ef1e.js → index-859bc689.js} +78 -10
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/popper-93ecb064.js +1788 -0
- package/dist/esm/verdocs-auth.entry.js +8 -12
- package/dist/esm/verdocs-button_2.entry.js +16 -10
- package/dist/esm/verdocs-dropdown_12.entry.js +28 -1811
- package/dist/esm/verdocs-initial-dialog.entry.js +3 -3
- package/dist/esm/verdocs-kba-dialog.entry.js +77 -0
- package/dist/esm/verdocs-loader.entry.js +2 -2
- package/dist/esm/verdocs-ok-dialog.entry.js +3 -3
- package/dist/esm/verdocs-organization-card.entry.js +3 -3
- package/dist/esm/verdocs-quick-functions.entry.js +3 -3
- package/dist/esm/verdocs-search-activity_2.entry.js +26 -8
- package/dist/esm/verdocs-search-tabs.entry.js +3 -3
- package/dist/esm/verdocs-search.entry.js +3 -3
- package/dist/esm/verdocs-sign.entry.js +15 -19
- package/dist/esm/verdocs-signature-dialog.entry.js +4 -4
- package/dist/esm/verdocs-status-indicator.entry.js +7525 -0
- package/dist/esm/verdocs-template-card.entry.js +3 -3
- package/dist/esm/verdocs-template-tags.entry.js +3 -3
- package/dist/esm/verdocs-toggle.entry.js +3 -3
- package/dist/esm/verdocs-upload-dialog.entry.js +3 -3
- package/dist/esm/verdocs-web-sdk.js +3 -3
- package/dist/esm-es5/Auth-b330f209.js +1 -0
- package/dist/esm-es5/Token-a587e3ad.js +1 -0
- package/dist/esm-es5/{buffer-es6-681a33da.js → buffer-es6-136673c8.js} +2 -2
- package/dist/esm-es5/index-859bc689.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/popper-93ecb064.js +1 -0
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +2 -2
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -0
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-button/verdocs-button.d.ts +26 -6
- package/dist/types/components/controls/verdocs-button/verdocs-button.stories.d.ts +4 -1
- package/dist/types/components/controls/verdocs-dropdown/verdocs-dropdown.d.ts +0 -14
- package/dist/types/components/controls/verdocs-loader/verdocs-loader.d.ts +3 -0
- package/dist/types/components/controls/verdocs-status-indicator/recipient-flow.d.ts +4 -0
- package/dist/types/components/controls/verdocs-status-indicator/verdocs-status-indicator.d.ts +42 -0
- package/dist/types/components/controls/{verdocs-document-status/verdocs-document-status.stories.d.ts → verdocs-status-indicator/verdocs-status-indicator.stories.d.ts} +4 -1
- package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +57 -0
- package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.stories.d.ts +15 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +4 -2
- package/dist/types/components.d.ts +307 -74
- package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0b1fb53f.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0c30002e.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-cfb1cad1.system.entry.js → p-144e0842.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a0fcbe6e.system.entry.js → p-1f55d8ac.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-203fd748.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-216a4759.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2bc58746.js +2 -0
- package/dist/verdocs-web-sdk/p-2c161242.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3820c9a2.js +1 -0
- package/dist/verdocs-web-sdk/p-39633a02.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-432c3151.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4368df79.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/p-4c66f794.js +1 -0
- package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -0
- package/dist/verdocs-web-sdk/p-6348272c.js +1 -0
- package/dist/verdocs-web-sdk/p-6393b2b4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-66b19637.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6802ef91.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -0
- package/dist/verdocs-web-sdk/p-9428614b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-96c0bf40.system.js +1 -0
- package/dist/verdocs-web-sdk/p-9b34c794.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9d8d8c78.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a1143ddb.entry.js +23 -0
- package/dist/verdocs-web-sdk/p-bf2620cb.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c2f97ef9.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-caed7818.system.js +2 -0
- package/dist/verdocs-web-sdk/p-cc127684.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-cd6a2c40.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d14a6057.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d6206c17.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-da667373.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-da850d97.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e2e643c5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e3659c64.system.js +1 -0
- package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e93ac86f.system.js +1 -0
- package/dist/verdocs-web-sdk/p-ed5baeb4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ef932a87.js +1 -0
- package/dist/verdocs-web-sdk/p-f0d0f959.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f0e6fde0.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f4219236.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f7e26fbd.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f814d5cc.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fd853e54.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
- package/package.json +34 -31
- package/dist/cjs/index-4bf5cc66.js +0 -46
- package/dist/cjs/verdocs-document-status.cjs.entry.js +0 -54
- package/dist/collection/components/controls/verdocs-document-status/check.svg +0 -3
- package/dist/collection/components/controls/verdocs-document-status/pending.svg +0 -1
- package/dist/collection/components/controls/verdocs-document-status/stop.svg +0 -1
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.css +0 -18
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.js +0 -70
- package/dist/collection/components/controls/verdocs-document-status/verdocs-document-status.stories.js +0 -15
- package/dist/collection/components/controls/verdocs-document-status/x.svg +0 -1
- package/dist/custom-elements/index.d.ts +0 -225
- package/dist/esm/index-2b1938ea.js +0 -39
- package/dist/esm/verdocs-document-status.entry.js +0 -50
- package/dist/esm-es5/Auth-16761ea6.js +0 -1
- package/dist/esm-es5/Token-b82a8ea3.js +0 -1
- package/dist/esm-es5/index-2b1938ea.js +0 -1
- package/dist/esm-es5/index-ade0ef1e.js +0 -1
- package/dist/esm-es5/verdocs-document-status.entry.js +0 -1
- package/dist/types/components/controls/verdocs-document-status/verdocs-document-status.d.ts +0 -11
- package/dist/verdocs-web-sdk/p-063c4c71.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-10e7c953.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-183c7338.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-25a138c4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-28b3017f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29abe078.js +0 -1
- package/dist/verdocs-web-sdk/p-2ec1d8d8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3ced6e3a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-41383ebc.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-44b75396.system.js +0 -1
- package/dist/verdocs-web-sdk/p-48b73707.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4bfe13e6.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-556f577f.system.js +0 -1
- package/dist/verdocs-web-sdk/p-6e95da9d.js +0 -1
- package/dist/verdocs-web-sdk/p-6ef8ca10.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-72ebb6e3.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-817302a8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8a1b9ad0.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91f87fa8.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-95880bac.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9e0a07a7.js +0 -1
- package/dist/verdocs-web-sdk/p-ae37b970.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b3c30059.system.js +0 -1
- package/dist/verdocs-web-sdk/p-b567001f.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b8f5af91.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bc61d0ce.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-c4add613.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ccad2089.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cec7e9ea.js +0 -1
- package/dist/verdocs-web-sdk/p-d3a4e22e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d3ae5318.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d9474f48.system.js +0 -7
- package/dist/verdocs-web-sdk/p-dc1f3572.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dcf25d2c.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-df4ae522.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e0091c19.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e1887a75.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e9f5d6a6.js +0 -1
- package/dist/verdocs-web-sdk/p-ee14709c.system.js +0 -1
- package/dist/verdocs-web-sdk/p-efffddab.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f0d20c75.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f35c796c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f5109d69.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f6938563.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-fa8ae849.entry.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var t=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,e=!1;function u(){e=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,u=r.length;i<u;++i)t[i]=r[i],n[r.charCodeAt(i)]=i;n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63}function f(r,n,i){for(var e,u=[],f=n;f<i;f+=3)u.push(t[(e=(r[f]<<16)+(r[f+1]<<8)+r[f+2])>>18&63]+t[e>>12&63]+t[e>>6&63]+t[63&e]);return u.join("")}function o(r,t,n,i,e){var u,f,o=8*e-i-1,s=(1<<o)-1,a=s>>1,h=-7,c=n?e-1:0,v=n?-1:1,w=r[t+c];for(c+=v,u=w&(1<<-h)-1,w>>=-h,h+=o;h>0;u=256*u+r[t+c],c+=v,h-=8);for(f=u&(1<<-h)-1,u>>=-h,h+=i;h>0;f=256*f+r[t+c],c+=v,h-=8);if(0===u)u=1-a;else{if(u===s)return f?NaN:1/0*(w?-1:1);f+=Math.pow(2,i),u-=a}return(w?-1:1)*f*Math.pow(2,u-i)}function s(r,t,n,i,e,u){var f,o,s,a=8*u-e-1,h=(1<<a)-1,c=h>>1,v=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,w=i?0:u-1,g=i?1:-1,l=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,f=h):(f=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-f))<1&&(f--,s*=2),(t+=f+c>=1?v/s:v*Math.pow(2,1-c))*s>=2&&(f++,s/=2),f+c>=h?(o=0,f=h):f+c>=1?(o=(t*s-1)*Math.pow(2,e),f+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,e),f=0));e>=8;r[n+w]=255&o,w+=g,o/=256,e-=8);for(f=f<<e|o,a+=e;a>0;r[n+w]=255&f,w+=g,f/=256,a-=8);r[n+w-g]|=128*l}var a={}.toString,h=Array.isArray||function(r){return"[object Array]"==a.call(r)};function c(){return w.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(r,t){if(c()<t)throw new RangeError("Invalid typed array length");return w.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=w.prototype:(null===r&&(r=new w(t)),r.length=t),r}function w(r,t,n){if(!(w.TYPED_ARRAY_SUPPORT||this instanceof w))return new w(r,t,n);if("number"==typeof r){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return y(this,r)}return g(this,r,t,n)}function g(r,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(r,t,n,i){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),w.TYPED_ARRAY_SUPPORT?(r=t).__proto__=w.prototype:r=d(r,t),r}(r,t,n,i):"string"==typeof t?function(r,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!w.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|m(t,n),e=(r=v(r,i)).write(t,n);return e!==i&&(r=r.slice(0,e)),r}(r,t,n):function(r,t){if(p(t)){var n=0|b(t.length);return 0===(r=v(r,n)).length||t.copy(r,0,0,n),r}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?v(r,0):d(r,t);if("Buffer"===t.type&&h(t.data))return d(r,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(r,t)}function l(r){if("number"!=typeof r)throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative')}function y(r,t){if(l(t),r=v(r,t<0?0:0|b(t)),!w.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)r[n]=0;return r}function d(r,t){var n=t.length<0?0:0|b(t.length);r=v(r,n);for(var i=0;i<n;i+=1)r[i]=255&t[i];return r}function b(r){if(r>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|r}function p(r){return!(null==r||!r._isBuffer)}function m(r,t){if(p(r))return r.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;"string"!=typeof r&&(r=""+r);var n=r.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return K(r).length;default:if(i)return J(r).length;t=(""+t).toLowerCase(),i=!0}}function E(r,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return j(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return z(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}function A(r,t,n){var i=r[t];r[t]=r[n],r[n]=i}function M(r,t,n,i,e){if(0===r.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=e?0:r.length-1),n<0&&(n=r.length+n),n>=r.length){if(e)return-1;n=r.length-1}else if(n<0){if(!e)return-1;n=0}if("string"==typeof t&&(t=w.from(t,i)),p(t))return 0===t.length?-1:B(r,t,n,i,e);if("number"==typeof t)return t&=255,w.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(r,t,n):Uint8Array.prototype.lastIndexOf.call(r,t,n):B(r,[t],n,i,e);throw new TypeError("val must be string, number or Buffer")}function B(r,t,n,i,e){var u,f=1,o=r.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(r.length<2||t.length<2)return-1;f=2,o/=2,s/=2,n/=2}function a(r,t){return 1===f?r[t]:r.readUInt16BE(t*f)}if(e){var h=-1;for(u=n;u<o;u++)if(a(r,u)===a(t,-1===h?0:u-h)){if(-1===h&&(h=u),u-h+1===s)return h*f}else-1!==h&&(u-=u-h),h=-1}else for(n+s>o&&(n=o-s),u=n;u>=0;u--){for(var c=!0,v=0;v<s;v++)if(a(r,u+v)!==a(t,v)){c=!1;break}if(c)return u}return-1}function R(r,t,n,i){n=Number(n)||0;var e=r.length-n;i?(i=Number(i))>e&&(i=e):i=e;var u=t.length;if(u%2!=0)throw new TypeError("Invalid hex string");i>u/2&&(i=u/2);for(var f=0;f<i;++f){var o=parseInt(t.substr(2*f,2),16);if(isNaN(o))return f;r[n+f]=o}return f}function T(r,t,n,i){return P(J(t,r.length-n),r,n,i)}function U(r,t,n,i){return P(function(r){for(var t=[],n=0;n<r.length;++n)t.push(255&r.charCodeAt(n));return t}(t),r,n,i)}function k(r,t,n,i){return U(r,t,n,i)}function x(r,t,n,i){return P(K(t),r,n,i)}function N(r,t,n,i){return P(function(r,t){for(var n,i,e=[],u=0;u<r.length&&!((t-=2)<0);++u)i=(n=r.charCodeAt(u))>>8,e.push(n%256),e.push(i);return e}(t,r.length-n),r,n,i)}function S(r,n,i){return function(r){var n;e||u();for(var i=r.length,o=i%3,s="",a=[],h=16383,c=0,v=i-o;c<v;c+=h)a.push(f(r,c,c+h>v?v:c+h));return 1===o?(s+=t[(n=r[i-1])>>2],s+=t[n<<4&63],s+="=="):2===o&&(s+=t[(n=(r[i-2]<<8)+r[i-1])>>10],s+=t[n>>4&63],s+=t[n<<2&63],s+="="),a.push(s),a.join("")}(0===n&&i===r.length?r:r.slice(n,i))}function I(r,t,n){n=Math.min(r.length,n);for(var i=[],e=t;e<n;){var u,f,o,s,a=r[e],h=null,c=a>239?4:a>223?3:a>191?2:1;if(e+c<=n)switch(c){case 1:a<128&&(h=a);break;case 2:128==(192&(u=r[e+1]))&&(s=(31&a)<<6|63&u)>127&&(h=s);break;case 3:f=r[e+2],128==(192&(u=r[e+1]))&&128==(192&f)&&(s=(15&a)<<12|(63&u)<<6|63&f)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:f=r[e+2],o=r[e+3],128==(192&(u=r[e+1]))&&128==(192&f)&&128==(192&o)&&(s=(15&a)<<18|(63&u)<<12|(63&f)<<6|63&o)>65535&&s<1114112&&(h=s)}null===h?(h=65533,c=1):h>65535&&(i.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),i.push(h),e+=c}return function(r){var t=r.length;if(t<=4096)return String.fromCharCode.apply(String,r);for(var n="",i=0;i<t;)n+=String.fromCharCode.apply(String,r.slice(i,i+=4096));return n}(i)}function z(r,t,n){var i="";n=Math.min(r.length,n);for(var e=t;e<n;++e)i+=String.fromCharCode(127&r[e]);return i}function F(r,t,n){var i="";n=Math.min(r.length,n);for(var e=t;e<n;++e)i+=String.fromCharCode(r[e]);return i}function j(r,t,n){var i,e=r.length;(!t||t<0)&&(t=0),(!n||n<0||n>e)&&(n=e);for(var u="",f=t;f<n;++f)u+=(i=r[f])<16?"0"+i.toString(16):i.toString(16);return u}function L(r,t,n){for(var i=r.slice(t,n),e="",u=0;u<i.length;u+=2)e+=String.fromCharCode(i[u]+256*i[u+1]);return e}function O(r,t,n){if(r%1!=0||r<0)throw new RangeError("offset is not uint");if(r+t>n)throw new RangeError("Trying to access beyond buffer length")}function Z(r,t,n,i,e,u){if(!p(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>e||t<u)throw new RangeError('"value" argument is out of bounds');if(n+i>r.length)throw new RangeError("Index out of range")}function _(r,t,n,i){t<0&&(t=65535+t+1);for(var e=0,u=Math.min(r.length-n,2);e<u;++e)r[n+e]=(t&255<<8*(i?e:1-e))>>>8*(i?e:1-e)}function q(r,t,n,i){t<0&&(t=4294967295+t+1);for(var e=0,u=Math.min(r.length-n,4);e<u;++e)r[n+e]=t>>>8*(i?e:3-e)&255}function C(r,t,n,i){if(n+i>r.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(r,t,n,i,e){return e||C(r,0,n,4),s(r,t,n,i,23,4),n+4}function G(r,t,n,i,e){return e||C(r,0,n,8),s(r,t,n,i,52,8),n+8}w.TYPED_ARRAY_SUPPORT=void 0===r.TYPED_ARRAY_SUPPORT||r.TYPED_ARRAY_SUPPORT,w.poolSize=8192,w._augment=function(r){return r.__proto__=w.prototype,r},w.from=function(r,t,n){return g(null,r,t,n)},w.TYPED_ARRAY_SUPPORT&&(w.prototype.__proto__=Uint8Array.prototype,w.__proto__=Uint8Array),w.alloc=function(r,t,n){return function(r,t,n,i){return l(t),t<=0?v(r,t):void 0!==n?"string"==typeof i?v(r,t).fill(n,i):v(r,t).fill(n):v(r,t)}(null,r,t,n)},w.allocUnsafe=function(r){return y(null,r)},w.allocUnsafeSlow=function(r){return y(null,r)},w.isBuffer=function(r){return null!=r&&(!!r._isBuffer||Q(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&Q(r.slice(0,0))}(r))},w.compare=function(r,t){if(!p(r)||!p(t))throw new TypeError("Arguments must be Buffers");if(r===t)return 0;for(var n=r.length,i=t.length,e=0,u=Math.min(n,i);e<u;++e)if(r[e]!==t[e]){n=r[e],i=t[e];break}return n<i?-1:i<n?1:0},w.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},w.concat=function(r,t){if(!h(r))throw new TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return w.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=w.allocUnsafe(t),e=0;for(n=0;n<r.length;++n){var u=r[n];if(!p(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,e),e+=u.length}return i},w.byteLength=m,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var r=this.length;if(r%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<r;t+=2)A(this,t,t+1);return this},w.prototype.swap32=function(){var r=this.length;if(r%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<r;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},w.prototype.swap64=function(){var r=this.length;if(r%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<r;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},w.prototype.toString=function(){var r=0|this.length;return 0===r?"":0===arguments.length?I(this,0,r):E.apply(this,arguments)},w.prototype.equals=function(r){if(!p(r))throw new TypeError("Argument must be a Buffer");return this===r||0===w.compare(this,r)},w.prototype.inspect=function(){var r="";return this.length>0&&(r=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(r+=" ... ")),"<Buffer "+r+">"},w.prototype.compare=function(r,t,n,i,e){if(!p(r))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=r?r.length:0),void 0===i&&(i=0),void 0===e&&(e=this.length),t<0||n>r.length||i<0||e>this.length)throw new RangeError("out of range index");if(i>=e&&t>=n)return 0;if(i>=e)return-1;if(t>=n)return 1;if(this===r)return 0;for(var u=(e>>>=0)-(i>>>=0),f=(n>>>=0)-(t>>>=0),o=Math.min(u,f),s=this.slice(i,e),a=r.slice(t,n),h=0;h<o;++h)if(s[h]!==a[h]){u=s[h],f=a[h];break}return u<f?-1:f<u?1:0},w.prototype.includes=function(r,t,n){return-1!==this.indexOf(r,t,n)},w.prototype.indexOf=function(r,t,n){return M(this,r,t,n,!0)},w.prototype.lastIndexOf=function(r,t,n){return M(this,r,t,n,!1)},w.prototype.write=function(r,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var e=this.length-t;if((void 0===n||n>e)&&(n=e),r.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return R(this,r,t,n);case"utf8":case"utf-8":return T(this,r,t,n);case"ascii":return U(this,r,t,n);case"latin1":case"binary":return k(this,r,t,n);case"base64":return x(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},w.prototype.slice=function(r,t){var n,i=this.length;if((r=~~r)<0?(r+=i)<0&&(r=0):r>i&&(r=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<r&&(t=r),w.TYPED_ARRAY_SUPPORT)(n=this.subarray(r,t)).__proto__=w.prototype;else{var e=t-r;n=new w(e,void 0);for(var u=0;u<e;++u)n[u]=this[u+r]}return n},w.prototype.readUIntLE=function(r,t,n){r|=0,t|=0,n||O(r,t,this.length);for(var i=this[r],e=1,u=0;++u<t&&(e*=256);)i+=this[r+u]*e;return i},w.prototype.readUIntBE=function(r,t,n){r|=0,t|=0,n||O(r,t,this.length);for(var i=this[r+--t],e=1;t>0&&(e*=256);)i+=this[r+--t]*e;return i},w.prototype.readUInt8=function(r,t){return t||O(r,1,this.length),this[r]},w.prototype.readUInt16LE=function(r,t){return t||O(r,2,this.length),this[r]|this[r+1]<<8},w.prototype.readUInt16BE=function(r,t){return t||O(r,2,this.length),this[r]<<8|this[r+1]},w.prototype.readUInt32LE=function(r,t){return t||O(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},w.prototype.readUInt32BE=function(r,t){return t||O(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},w.prototype.readIntLE=function(r,t,n){r|=0,t|=0,n||O(r,t,this.length);for(var i=this[r],e=1,u=0;++u<t&&(e*=256);)i+=this[r+u]*e;return i>=(e*=128)&&(i-=Math.pow(2,8*t)),i},w.prototype.readIntBE=function(r,t,n){r|=0,t|=0,n||O(r,t,this.length);for(var i=t,e=1,u=this[r+--i];i>0&&(e*=256);)u+=this[r+--i]*e;return u>=(e*=128)&&(u-=Math.pow(2,8*t)),u},w.prototype.readInt8=function(r,t){return t||O(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},w.prototype.readInt16LE=function(r,t){t||O(r,2,this.length);var n=this[r]|this[r+1]<<8;return 32768&n?4294901760|n:n},w.prototype.readInt16BE=function(r,t){t||O(r,2,this.length);var n=this[r+1]|this[r]<<8;return 32768&n?4294901760|n:n},w.prototype.readInt32LE=function(r,t){return t||O(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},w.prototype.readInt32BE=function(r,t){return t||O(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},w.prototype.readFloatLE=function(r,t){return t||O(r,4,this.length),o(this,r,!0,23,4)},w.prototype.readFloatBE=function(r,t){return t||O(r,4,this.length),o(this,r,!1,23,4)},w.prototype.readDoubleLE=function(r,t){return t||O(r,8,this.length),o(this,r,!0,52,8)},w.prototype.readDoubleBE=function(r,t){return t||O(r,8,this.length),o(this,r,!1,52,8)},w.prototype.writeUIntLE=function(r,t,n,i){r=+r,t|=0,n|=0,i||Z(this,r,t,n,Math.pow(2,8*n)-1,0);var e=1,u=0;for(this[t]=255&r;++u<n&&(e*=256);)this[t+u]=r/e&255;return t+n},w.prototype.writeUIntBE=function(r,t,n,i){r=+r,t|=0,n|=0,i||Z(this,r,t,n,Math.pow(2,8*n)-1,0);var e=n-1,u=1;for(this[t+e]=255&r;--e>=0&&(u*=256);)this[t+e]=r/u&255;return t+n},w.prototype.writeUInt8=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,1,255,0),w.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[t]=255&r,t+1},w.prototype.writeUInt16LE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,2,65535,0),w.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):_(this,r,t,!0),t+2},w.prototype.writeUInt16BE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,2,65535,0),w.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):_(this,r,t,!1),t+2},w.prototype.writeUInt32LE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,4,4294967295,0),w.TYPED_ARRAY_SUPPORT?(this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=255&r):q(this,r,t,!0),t+4},w.prototype.writeUInt32BE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,4,4294967295,0),w.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):q(this,r,t,!1),t+4},w.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t|=0,!i){var e=Math.pow(2,8*n-1);Z(this,r,t,n,e-1,-e)}var u=0,f=1,o=0;for(this[t]=255&r;++u<n&&(f*=256);)r<0&&0===o&&0!==this[t+u-1]&&(o=1),this[t+u]=(r/f>>0)-o&255;return t+n},w.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t|=0,!i){var e=Math.pow(2,8*n-1);Z(this,r,t,n,e-1,-e)}var u=n-1,f=1,o=0;for(this[t+u]=255&r;--u>=0&&(f*=256);)r<0&&0===o&&0!==this[t+u+1]&&(o=1),this[t+u]=(r/f>>0)-o&255;return t+n},w.prototype.writeInt8=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,1,127,-128),w.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[t]=255&r,t+1},w.prototype.writeInt16LE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,2,32767,-32768),w.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):_(this,r,t,!0),t+2},w.prototype.writeInt16BE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,2,32767,-32768),w.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):_(this,r,t,!1),t+2},w.prototype.writeInt32LE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,4,2147483647,-2147483648),w.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24):q(this,r,t,!0),t+4},w.prototype.writeInt32BE=function(r,t,n){return r=+r,t|=0,n||Z(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),w.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):q(this,r,t,!1),t+4},w.prototype.writeFloatLE=function(r,t,n){return D(this,r,t,!0,n)},w.prototype.writeFloatBE=function(r,t,n){return D(this,r,t,!1,n)},w.prototype.writeDoubleLE=function(r,t,n){return G(this,r,t,!0,n)},w.prototype.writeDoubleBE=function(r,t,n){return G(this,r,t,!1,n)},w.prototype.copy=function(r,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=r.length&&(t=r.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===r.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),r.length-t<i-n&&(i=r.length-t+n);var e,u=i-n;if(this===r&&n<t&&t<i)for(e=u-1;e>=0;--e)r[e+t]=this[e+n];else if(u<1e3||!w.TYPED_ARRAY_SUPPORT)for(e=0;e<u;++e)r[e+t]=this[e+n];else Uint8Array.prototype.set.call(r,this.subarray(n,n+u),t);return u},w.prototype.fill=function(r,t,n,i){if("string"==typeof r){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===r.length){var e=r.charCodeAt(0);e<256&&(r=e)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!w.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof r&&(r&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var u;if(t>>>=0,n=void 0===n?this.length:n>>>0,r||(r=0),"number"==typeof r)for(u=t;u<n;++u)this[u]=r;else{var f=p(r)?r:J(new w(r,i).toString()),o=f.length;for(u=0;u<n-t;++u)this[u+t]=f[u%o]}return this};var H=/[^+\/0-9A-Za-z-_]/g;function J(r,t){var n;t=t||1/0;for(var i=r.length,e=null,u=[],f=0;f<i;++f){if((n=r.charCodeAt(f))>55295&&n<57344){if(!e){if(n>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(f+1===i){(t-=3)>-1&&u.push(239,191,189);continue}e=n;continue}if(n<56320){(t-=3)>-1&&u.push(239,191,189),e=n;continue}n=65536+(e-55296<<10|n-56320)}else e&&(t-=3)>-1&&u.push(239,191,189);if(e=null,n<128){if((t-=1)<0)break;u.push(n)}else if(n<2048){if((t-=2)<0)break;u.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;u.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;u.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return u}function K(r){return function(r){var t,f,o,s,a,h;e||u();var c=r.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");h=new i(3*c/4-(a="="===r[c-2]?2:"="===r[c-1]?1:0)),o=a>0?c-4:c;var v=0;for(t=0,f=0;t<o;t+=4,f+=3)s=n[r.charCodeAt(t)]<<18|n[r.charCodeAt(t+1)]<<12|n[r.charCodeAt(t+2)]<<6|n[r.charCodeAt(t+3)],h[v++]=s>>16&255,h[v++]=s>>8&255,h[v++]=255&s;return 2===a?(s=n[r.charCodeAt(t)]<<2|n[r.charCodeAt(t+1)]>>4,h[v++]=255&s):1===a&&(s=n[r.charCodeAt(t)]<<10|n[r.charCodeAt(t+1)]<<4|n[r.charCodeAt(t+2)]>>2,h[v++]=s>>8&255,h[v++]=255&s),h}(function(r){if((r=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(r).replace(H,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function P(r,t,n,i){for(var e=0;e<i&&!(e+n>=t.length||e>=r.length);++e)t[e+n]=r[e];return e}function Q(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}export{w as B}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as r}from"./p-6e95da9d.js";let a=class{constructor(r){s(this,r),this.selected="all"}render(){return r("div",null," ")}};a.style="verdocs-search-tabs{display:block}";export{a as verdocs_search_tabs}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-b3c30059.system.js"],(function(t){"use strict";var e,n;return{setters:[function(t){e=t.g;n=t.d}],execute:function(){var r=t("a",(function(t){return e().api.post("/authentication/login",t).then((function(t){return t.data}))}));var u=function(t,n){e().setAuthorization(null);if(n){localStorage.removeItem(t)}return null};var i=t("s",(function(t,r,i){if(i===void 0){i=false}if(r===null){return u(t,i)}var a=n(r||"");if(a===null||a.exp&&a.exp*1e3<(new Date).getTime()){return u(t,i)}if(i){localStorage.setItem(t,r)}e().setAuthorization(r);return a}));var a=t("l",(function(t){var r=localStorage.getItem(t);if(!r){return null}var u=n(r);if(!u){return null}if(u.exp&&u.exp*1e3<(new Date).getTime()){localStorage.removeItem(t);return null}e().setAuthorization(r);return u}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js"],(function(e){"use strict";var o,s,n;return{setters:[function(e){o=e.r;s=e.h;n=e.H}],execute:function(){var a='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var i="verdocs-organization-card{font-family:sans-serif;font-family:var(--verdocs-font);width:242px;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-organization-card:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33364b}verdocs-organization-card .icon{-ms-flex:0;flex:0;margin:0 7px 0 0}verdocs-organization-card .icon svg{fill:var(--verdocs-icon-color);width:24px;margin-bottom:-5px}verdocs-organization-card .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid var(--verdocs-background-dark);border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}verdocs-organization-card .popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}verdocs-organization-card .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}verdocs-organization-card .popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}verdocs-organization-card .popup-body span:last-child{margin-top:5px}verdocs-organization-card .status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}";var r=e("verdocs_organization_card",function(){function e(e){o(this,e)}e.prototype.render=function(){console.log("org",JSON.stringify(this.organization,null,2));return s(n,null,s("span",{class:"icon",innerHTML:a}),s("span",{class:"content"},this.organization.name),s("div",{class:"popup"},s("div",{class:"popup-header"},s("span",{class:"status"}),s("span",{class:"title"},this.organization.name)),s("div",{class:"popup-body"},s("span",{class:"joined"},s("b",null,"Joined")," ","Jan 1 2022"),s("span",{class:"followers"},s("b",null,"Followers")," 57"),s("span",{class:"website"},s("b",null,"Website")),s("span",{class:"templates"},s("b",null,"Templates")," 7"),s("span",null,"https://www.google.com"))))};return e}());r.style=i}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(n,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r))e[r]=n[r]};return e(n,r)};return function(n,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(n,r);function t(){this.constructor=n}n.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,n,r,t){function a(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{u(t.next(e))}catch(e){i(e)}}function s(e){try{u(t["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(l,s)}u((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(n){return u([e,n])}}function u(l){if(t)throw new TypeError("Generator is already executing.");while(r)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=n.call(e,r)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n){for(var r=0,t=n.length,a=e.length;r<t;r++,a++)e[a]=n[r];return e};System.register([],(function(e,n){"use strict";return{execute:function(){var r=this;var t="verdocs-web-sdk";var a=false;var i=false;var l=typeof window!=="undefined"?window:{};var s=l.document||{head:{}};var u={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,n,r,t){return e.addEventListener(n,r,t)},rel:function(e,n,r,t){return e.removeEventListener(n,r,t)},ce:function(e,n){return new CustomEvent(e,n)}};var f=e("p",(function(e){return Promise.resolve(e)}));var o=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var $=function(e,n,r,t){if(r){r.map((function(r){var t=r[0],a=r[1],i=r[2];var l=v(e,t);var s=c(n,i);var f=d(t);u.ael(l,a,s,f);(n.$rmListeners$=n.$rmListeners$||[]).push((function(){return u.rel(l,a,s,f)}))}))}};var c=function(e,n){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[n](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([n,r])}}}catch(e){ve(e)}}};var v=function(e,n){if(n&4)return s;return e};var d=function(e){return(e&2)!==0};var p="{visibility:hidden}.hydrated{visibility:inherit}";var h=function(e,n){if(n===void 0){n=""}{return function(){return}}};var m=function(e,n){{return function(){return}}};var y=new WeakMap;var g=function(e,n,r){var t=he.get(e);if(o&&r){t=t||new CSSStyleSheet;t.replace(n)}else{t=n}he.set(e,t)};var b=function(e,n,r,t){var a=_(n);var i=he.get(a);e=e.nodeType===11?e:s;if(i){if(typeof i==="string"){e=e.head||e;var l=y.get(e);var u=void 0;if(!l){y.set(e,l=new Set)}if(!l.has(a)){{{u=s.createElement("style");u.innerHTML=i}e.insertBefore(u,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[i])}}return a};var w=function(e){var n=e.$cmpMeta$;var r=e.$hostElement$;var t=h("attachStyles",n.$tagName$);b(r.getRootNode(),n);t()};var _=function(e,n){return"sc-"+e.$tagName$};var S={};var k=function(e){e=typeof e;return e==="object"||e==="function"};var x=e("h",(function(e,n){var r=[];for(var t=2;t<arguments.length;t++){r[t-2]=arguments[t]}var a=null;var i=null;var l=false;var s=false;var u=[];var f=function(n){for(var r=0;r<n.length;r++){a=n[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!k(a)){a=String(a)}if(l&&s){u[u.length-1].$text$+=a}else{u.push(l?R(null,a):a)}s=l}}};f(r);if(n){if(n.key){i=n.key}{var o=n.className||n.class;if(o){n.class=typeof o!=="object"?o:Object.keys(o).filter((function(e){return o[e]})).join(" ")}}}var $=R(e,null);$.$attrs$=n;if(u.length>0){$.$children$=u}{$.$key$=i}return $}));var R=function(e,n){var r={$flags$:0,$tag$:e,$text$:n,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}return r};var L=e("H",{});var P=function(e){return e&&e.$tag$===L};var E=function(e,n,r,t,a,i){if(r!==t){var s=ce(e,n);var f=n.toLowerCase();if(n==="class"){var o=e.classList;var $=j(r);var c=j(t);o.remove.apply(o,$.filter((function(e){return e&&!c.includes(e)})));o.add.apply(o,c.filter((function(e){return e&&!$.includes(e)})))}else if(n==="style"){{for(var v in r){if(!t||t[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in t){if(!r||t[v]!==r[v]){if(v.includes("-")){e.style.setProperty(v,t[v])}else{e.style[v]=t[v]}}}}else if(n==="key");else if(n==="ref"){if(t){t(e)}}else if(!s&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(ce(l,f)){n=f.slice(2)}else{n=f[2]+n.slice(3)}if(r){u.rel(e,n,r,false)}if(t){u.ael(e,n,t,false)}}else{var d=k(t);if((s||d&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var p=t==null?"":t;if(n==="list"){s=false}else if(r==null||e[n]!=p){e[n]=p}}else{e[n]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(n)===""){{e.removeAttribute(n)}}}else if((!s||i&4||a)&&!d){t=t===true?"":t;{e.setAttribute(n,t)}}}}};var C=/\s/;var j=function(e){return!e?[]:e.split(C)};var N=function(e,n,r,t){var a=n.$elm$.nodeType===11&&n.$elm$.host?n.$elm$.host:n.$elm$;var i=e&&e.$attrs$||S;var l=n.$attrs$||S;{for(t in i){if(!(t in l)){E(a,t,i[t],undefined,r,n.$flags$)}}}for(t in l){E(a,t,i[t],l[t],r,n.$flags$)}};var M=function(e,n,r,t){var i=n.$children$[r];var l=0;var u;var f;if(i.$text$!==null){u=i.$elm$=s.createTextNode(i.$text$)}else{u=i.$elm$=s.createElement(i.$tag$);{N(null,i,a)}if(i.$children$){for(l=0;l<i.$children$.length;++l){f=M(e,i,l);if(f){u.appendChild(f)}}}}return u};var O=function(e,n,r,t,a,i){var l=e;var s;for(;a<=i;++a){if(t[a]){s=M(null,r,a);if(s){t[a].$elm$=s;l.insertBefore(s,n)}}}};var I=function(e,n,r,t,a){for(;n<=r;++n){if(t=e[n]){a=t.$elm$;z(t);a.remove()}}};var A=function(e,n,r,t){var a=0;var i=0;var l=0;var s=0;var u=n.length-1;var f=n[0];var o=n[u];var $=t.length-1;var c=t[0];var v=t[$];var d;var p;while(a<=u&&i<=$){if(f==null){f=n[++a]}else if(o==null){o=n[--u]}else if(c==null){c=t[++i]}else if(v==null){v=t[--$]}else if(T(f,c)){q(f,c);f=n[++a];c=t[++i]}else if(T(o,v)){q(o,v);o=n[--u];v=t[--$]}else if(T(f,v)){q(f,v);e.insertBefore(f.$elm$,o.$elm$.nextSibling);f=n[++a];v=t[--$]}else if(T(o,c)){q(o,c);e.insertBefore(o.$elm$,f.$elm$);o=n[--u];c=t[++i]}else{l=-1;{for(s=a;s<=u;++s){if(n[s]&&n[s].$key$!==null&&n[s].$key$===c.$key$){l=s;break}}}if(l>=0){p=n[l];if(p.$tag$!==c.$tag$){d=M(n&&n[i],r,l)}else{q(p,c);n[l]=undefined;d=p.$elm$}c=t[++i]}else{d=M(n&&n[i],r,i);c=t[++i]}if(d){{f.$elm$.parentNode.insertBefore(d,f.$elm$)}}}}if(a>u){O(e,t[$+1]==null?null:t[$+1].$elm$,r,t,i,$)}else if(i>$){I(n,a,u)}};var T=function(e,n){if(e.$tag$===n.$tag$){{return e.$key$===n.$key$}}return false};var q=function(e,n){var r=n.$elm$=e.$elm$;var t=e.$children$;var i=n.$children$;var l=n.$text$;if(l===null){{{N(e,n,a)}}if(t!==null&&i!==null){A(r,t,n,i)}else if(i!==null){if(e.$text$!==null){r.textContent=""}O(r,null,n,i,0,i.length-1)}else if(t!==null){I(t,0,t.length-1)}}else if(e.$text$!==l){r.data=l}};var z=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(z)}};var B=function(e,n){var r=e.$hostElement$;var t=e.$vnode$||R(null,null);var a=P(n)?n:x(null,null,n);a.$tag$=null;a.$flags$|=4;e.$vnode$=a;a.$elm$=t.$elm$=r;q(t,a)};var U=e("g",(function(e){return fe(e).$hostElement$}));var H=e("c",(function(e,n,r){var t=U(e);return{emit:function(e){return V(t,n,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}}));var V=function(e,n,r){var t=u.ce(n,r);e.dispatchEvent(t);return t};var W=function(e,n){if(n&&!e.$onRenderResolve$&&n["s-p"]){n["s-p"].push(new Promise((function(n){return e.$onRenderResolve$=n})))}};var D=function(e,n){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}W(e,e.$ancestorComponent$);var r=function(){return F(e,n)};return Se(r)};var F=function(e,n){var r=h("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(n){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var n=e[0],r=e[1];return X(t,n,r)}));e.$queuedListeners$=null}}{a=X(t,"componentWillLoad")}}r();return Y(a,(function(){return G(e,t,n)}))};var G=function(e,n,t){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,s,u;return __generator(this,(function(f){r=e.$hostElement$;a=h("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(t){w(e)}l=h("render",e.$cmpMeta$.$tagName$);{J(e,n)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{s=r["s-p"];u=function(){return K(e)};if(s.length===0){u()}else{Promise.all(s).then(u);e.$flags$|=4;s.length=0}}return[2]}))}))};var J=function(e,n,r){try{n=n.render();{e.$flags$&=~16}{e.$flags$|=2}{{{B(e,n)}}}}catch(n){ve(n,e.$hostElement$)}return null};var K=function(e){var n=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var t=h("postUpdate",n);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{Z(r)}{X(a,"componentDidLoad")}t();{e.$onReadyResolve$(r);if(!i){Q()}}}else{{X(a,"componentDidUpdate")}t()}{e.$onInstanceResolve$(r)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){_e((function(){return D(e,false)}))}e.$flags$&=~(4|512)}};var Q=function(e){{Z(s.documentElement)}_e((function(){return V(l,"appload",{detail:{namespace:t}})}))};var X=function(e,n,r){if(e&&e[n]){try{return e[n](r)}catch(e){ve(e)}}return undefined};var Y=function(e,n){return e&&e.then?e.then(n):n()};var Z=function(e){return e.classList.add("hydrated")};var ee=function(e,n){if(e!=null&&!k(e)){if(n&4){return e==="false"?false:e===""||!!e}if(n&2){return parseFloat(e)}if(n&1){return String(e)}return e}return e};var ne=function(e,n){return fe(e).$instanceValues$.get(n)};var re=function(e,n,r,t){var a=fe(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(n);var s=a.$flags$;var u=a.$lazyInstance$;r=ee(r,t.$members$[n][0]);if((!(s&8)||l===undefined)&&r!==l){a.$instanceValues$.set(n,r);if(u){if(t.$watchers$&&s&128){var f=t.$watchers$[n];if(f){f.map((function(e){try{u[e](r,l,n)}catch(e){ve(e,i)}}))}}if((s&(2|16))===2){D(a,false)}}}};var te=function(e,n,r){if(n.$members$){if(e.watchers){n.$watchers$=e.watchers}var t=Object.entries(n.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,t,{get:function(){return ne(this,t)},set:function(e){re(this,t,e,n)},configurable:true,enumerable:true})}else if(r&1&&i&64){Object.defineProperty(a,t,{value:function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}var r=fe(this);return r.$onInstancePromise$.then((function(){var n;return(n=r.$lazyInstance$)[t].apply(n,e)}))}})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,n,r){var t=this;u.jmp((function(){var n=i.get(e);if(t.hasOwnProperty(n)){r=t[n];delete t[n]}else if(a.hasOwnProperty(n)&&typeof t[n]==="number"&&t[n]==r){return}t[n]=r===null&&typeof t[n]==="boolean"?false:r}))};e.observedAttributes=t.filter((function(e){var n=e[0],r=e[1];return r[0]&15})).map((function(e){var n=e[0],r=e[1];var t=r[1]||n;i.set(t,n);return t}))}}return e};var ae=function(e,n,t,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,l,s,u,f;return __generator(this,(function(o){switch(o.label){case 0:if(!((n.$flags$&32)===0))return[3,3];n.$flags$|=32;i=pe(t);if(!i.then)return[3,2];e=m();return[4,i];case 1:i=o.sent();e();o.label=2;case 2:if(!i.isProxied){{t.$watchers$=i.watchers}te(i,t,2);i.isProxied=true}r=h("createInstance",t.$tagName$);{n.$flags$|=8}try{new i(n)}catch(e){ve(e)}{n.$flags$&=~8}{n.$flags$|=128}r();if(i.style){a=i.style;l=_(t);if(!he.has(l)){s=h("registerStyles",t.$tagName$);g(l,a,!!(t.$flags$&1));s()}}o.label=3;case 3:u=n.$ancestorComponent$;f=function(){return D(n,true)};if(u&&u["s-rc"]){u["s-rc"].push(f)}else{f()}return[2]}}))}))};var ie=function(e){if((u.$flags$&1)===0){var n=fe(e);var r=n.$cmpMeta$;var t=h("connectedCallback",r.$tagName$);if(!(n.$flags$&1)){n.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){W(n,n.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(n){var r=n[0],t=n[1][0];if(t&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{ae(e,n,r)}}else{$(e,n,r.$listeners$)}t()}};var le=function(e){if((u.$flags$&1)===0){var n=fe(e);{if(n.$rmListeners$){n.$rmListeners$.map((function(e){return e()}));n.$rmListeners$=undefined}}}};var se=e("b",(function(e,n){if(n===void 0){n={}}var r=h();var t=[];var a=n.exclude||[];var i=l.customElements;var f=s.head;var o=f.querySelector("meta[charset]");var $=s.createElement("style");var c=[];var v;var d=true;Object.assign(u,n);u.$resourcesUrl$=new URL(n.resourcesUrl||"./",s.baseURI).href;e.map((function(e){e[1].map((function(n){var r={$flags$:n[0],$tagName$:n[1],$members$:n[2],$listeners$:n[3]};{r.$members$=n[2]}{r.$listeners$=n[3]}{r.$watchers$={}}var l=r.$tagName$;var s=function(e){__extends(n,e);function n(n){var t=e.call(this,n)||this;n=t;$e(n,r);return t}n.prototype.connectedCallback=function(){var e=this;if(v){clearTimeout(v);v=null}if(d){c.push(this)}else{u.jmp((function(){return ie(e)}))}};n.prototype.disconnectedCallback=function(){var e=this;u.jmp((function(){return le(e)}))};n.prototype.componentOnReady=function(){return fe(this).$onReadyPromise$};return n}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){t.push(l);i.define(l,te(s,r,1))}}))}));{$.innerHTML=t+p;$.setAttribute("data-styles","");f.insertBefore($,o?o.nextSibling:f.firstChild)}d=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{u.jmp((function(){return v=setTimeout(Q,30)}))}}r()}));var ue=new WeakMap;var fe=function(e){return ue.get(e)};var oe=e("r",(function(e,n){return ue.set(n.$lazyInstance$=e,n)}));var $e=function(e,n){var r={$flags$:0,$hostElement$:e,$cmpMeta$:n,$instanceValues$:new Map};{r.$onInstancePromise$=new Promise((function(e){return r.$onInstanceResolve$=e}))}{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}$(e,r,n.$listeners$);return ue.set(e,r)};var ce=function(e,n){return n in e};var ve=function(e,n){return(0,console.error)(e,n)};var de=new Map;var pe=function(e,r,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=de.get(i);if(l){return l[a]}return n.import("./"+i+".entry.js"+"").then((function(e){{de.set(i,e)}return e[a]}),ve)};var he=new Map;var me=[];var ye=[];var ge=function(e,n){return function(r){e.push(r);if(!i){i=true;if(n&&u.$flags$&4){_e(we)}else{u.raf(we)}}}};var be=function(e){for(var n=0;n<e.length;n++){try{e[n](performance.now())}catch(e){ve(e)}}e.length=0};var we=function(){be(me);{be(ye);if(i=me.length>0){u.raf(we)}}};var _e=function(e){return f().then(e)};var Se=ge(ye,true)}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.r;n=e.c;i=e.h}],execute:function(){var r='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var o='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var c="verdocs-quick-functions{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}verdocs-quick-functions button svg{fill:#ffffff}";var s=e("verdocs_quick_functions",function(){function e(e){t(this,e);this.createTemplate=n(this,"createTemplate",7);this.createDocument=n(this,"createDocument",7)}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return i("div",{class:"container"},i("p",{class:"title"},"Quick Create"),i("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:r},"Template"),i("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:o},"Document"))};return e}());s.style=c}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js","./p-3ced6e3a.system.js","./p-b3c30059.system.js","./p-ee14709c.system.js"],(function(e){"use strict";var t,r,n,i,o;return{setters:[function(e){t=e.r;r=e.c;n=e.h},function(e){i=e.l},function(e){o=e.g},function(){}],execute:function(){var s=undefined&&undefined.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var a=undefined&&undefined.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var c=function(){return s(void 0,void 0,void 0,(function(){return a(this,(function(e){return[2,o().api.get("/search/history").then((function(e){return e.data}))]}))}))};var l=function(e){return o().api.get("/templates/",{params:e}).then((function(e){return e.data}))};var h='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var d="verdocs-search-activity{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:var(--verdocs-background-dark)}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#ccc}";var f="verdocs-stage";var p=e("verdocs_search_activity",function(){function e(e){t(this,e);this.entrySelected=r(this,"entrySelected",7);this.type="recent";this.emptyMessage="You do not have any starred searches.";this.authFailure=false;this.title="Recent Searches";this.recent=[];this.saved=[];this.starred=[]}e.prototype.componentWillLoad=function(){var e=this;i(f);var t=function(t){var r;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((r=t===null||t===void 0?void 0:t.response)===null||r===void 0?void 0:r.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";c().then((function(t){return e.recent=t.recent})).catch(t);break;case"saved":this.title="Saved Searches";this.emptyMessage="You do not have any saved searches.";c().then((function(t){return e.saved=t.saved})).catch(t);break;case"starred":this.title="My Starred items";this.emptyMessage="You do not have any starred templates.";l({is_starred:true}).then((function(t){return e.starred=t})).catch(t);break}};e.prototype.handleSelectEntry=function(e){this.entrySelected.emit(e)};e.prototype.computePagesText=function(e){if(e<2){return e+" Page"}else{return e+" Pages"}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return e+" Recipients"}else{return e+" Recipient"}};e.prototype.render=function(){var e=this;var t=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return n("div",{class:"container"},n("p",{class:"title"},this.title),n("div",{class:"items"},this.recent.map((function(t){return n("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},n("div",{class:"icon",innerHTML:h}),n("div",{class:"details"},n("div",{class:"item-title"},t.params.q),n("div",{class:"info"},"Test")))})),this.saved.map((function(t){return n("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},n("div",{class:"icon",innerHTML:h}),n("div",{class:"details"},n("div",{class:"item-title"},t.params.q),n("div",{class:"info"})))})),t&&n("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}());p.style=d;var u='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>\n</svg>\n';var v='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/>\n</svg>\n';var x="verdocs-search-box{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}";var y=e("verdocs_search_box",function(){function e(e){t(this,e);this.searchClicked=r(this,"searchClicked",7);this.typeChanged=r(this,"typeChanged",7);this.queryChanged=r(this,"queryChanged",7);this.placeholder="search documents, templates, people...";this.type="all";this.query=""}e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return n("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&n("span",{class:"type"},this.type,"s ",n("button",{class:"remove",innerHTML:v,onClick:function(){return e.handleClearFilter()}})),n("input",{type:"text",placeholder:this.placeholder,value:this.query,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)}}),n("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},n("span",{innerHTML:u}),"Search"))};return e}());y.style=x}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js"],(function(e,d){"use strict";var r,s;return{setters:[function(e){r=e.p;s=e.b}],execute:function(){var e=function(){var e=d.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return r(s)};e().then((function(e){return s([["p-72ebb6e3.system",[[0,"verdocs-sign",{documentid:[1],roleid:[1],invitecode:[1],endpoint:[32],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],pdfPageInfo:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["p-6ef8ca10.system",[[0,"verdocs-auth",{visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["p-e1887a75.system",[[0,"verdocs-search"]]],["p-10e7c953.system",[[0,"verdocs-document-status",{status:[1]}]]],["p-41383ebc.system",[[0,"verdocs-organization-card",{organization:[16]}]]],["p-48b73707.system",[[0,"verdocs-quick-functions"]]],["p-d3ae5318.system",[[0,"verdocs-search-tabs",{selected:[32]}]]],["p-a0fcbe6e.system",[[0,"verdocs-template-card",{template:[16]}]]],["p-ccad2089.system",[[0,"verdocs-template-tags",{tags:[16]}]]],["p-b8f5af91.system",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["p-d3a4e22e.system",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}],[0,"verdocs-button",{label:[1],type:[1],variant:[1],disabled:[4]}]]],["p-e0091c19.system",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["p-efffddab.system",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["p-91f87fa8.system",[[0,"verdocs-signature-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["p-f6938563.system",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["p-4bfe13e6.system",[[0,"verdocs-search-activity",{type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}],[0,"verdocs-search-box",{placeholder:[1],type:[1],query:[1]}]]],["p-cfb1cad1.system",[[0,"verdocs-loader"]]],["p-dcf25d2c.system",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-signature",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-attachment",{order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}],[0,"verdocs-view",{rotation:[2],source:[1],token:[1],loadProgress:[32]}],[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}],[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}],[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}],[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}],[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}],[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-textbox",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]]],e)}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let e=!1;const t="undefined"!=typeof window?window:{},n=t.document||{head:{}},l={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},s=e=>Promise.resolve(e),o=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),i=(e,t,n)=>{n&&n.map((([n,s,o])=>{const i=r(e,n),u=c(t,o),f=a(n);l.ael(i,s,u,f),(t.o=t.o||[]).push((()=>l.rel(i,s,u,f)))}))},c=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},r=(e,t)=>4&t?n:e,a=e=>0!=(2&e),u=new WeakMap,f=e=>"sc-"+e.$,d={},y=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,c=[];const r=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!y(l))&&(l+=""),o&&i?c[c.length-1].h+=l:c.push(o?h(null,l):l),i=o)};if(r(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=h(e,null);return a.p=t,c.length>0&&(a.m=c),a.S=s,a},h=(e,t)=>({t:0,g:e,h:t,v:null,m:null,p:null,S:null}),p={},m=(e,n,s,o,i,c)=>{if(s!==o){let r=G(e,n),a=n.toLowerCase();if("class"===n){const t=e.classList,n=w(s),l=w(o);t.remove(...n.filter((e=>e&&!l.includes(e)))),t.add(...l.filter((e=>e&&!n.includes(e))))}else if("style"===n){for(const t in s)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)s&&o[t]===s[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===n);else if("ref"===n)o&&o(e);else if(r||"o"!==n[0]||"n"!==n[1]){const t=y(o);if((r||t&&null!==o)&&!i)try{if(e.tagName.includes("-"))e[n]=o;else{let t=null==o?"":o;"list"===n?r=!1:null!=s&&e[n]==t||(e[n]=t)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!r||4&c||i)&&!t&&e.setAttribute(n,o=!0===o?"":o)}else n="-"===n[2]?n.slice(3):G(t,a)?a.slice(2):a[2]+n.slice(3),s&&l.rel(e,n,s,!1),o&&l.ael(e,n,o,!1)}},b=/\s/,w=e=>e?e.split(b):[],S=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.p||d,i=t.p||d;for(l in o)l in i||m(s,l,o[l],void 0,n,t.t);for(l in i)m(s,l,o[l],i[l],n,t.t)},g=(e,t,l)=>{let s,o,i=t.m[l],c=0;if(null!==i.h)s=i.v=n.createTextNode(i.h);else if(s=i.v=n.createElement(i.g),S(null,i,!1),i.m)for(c=0;c<i.m.length;++c)o=g(e,i,c),o&&s.appendChild(o);return s},v=(e,t,n,l,s,o)=>{let i,c=e;for(;s<=o;++s)l[s]&&(i=g(null,n,s),i&&(l[s].v=i,c.insertBefore(i,t)))},j=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.v,O(l),s.remove())},k=(e,t)=>e.g===t.g&&e.S===t.S,M=(e,t)=>{const n=t.v=e.v,l=e.m,s=t.m,o=t.h;null===o?(S(e,t,!1),null!==l&&null!==s?((e,t,n,l)=>{let s,o,i=0,c=0,r=0,a=0,u=t.length-1,f=t[0],d=t[u],y=l.length-1,$=l[0],h=l[y];for(;i<=u&&c<=y;)if(null==f)f=t[++i];else if(null==d)d=t[--u];else if(null==$)$=l[++c];else if(null==h)h=l[--y];else if(k(f,$))M(f,$),f=t[++i],$=l[++c];else if(k(d,h))M(d,h),d=t[--u],h=l[--y];else if(k(f,h))M(f,h),e.insertBefore(f.v,d.v.nextSibling),f=t[++i],h=l[--y];else if(k(d,$))M(d,$),e.insertBefore(d.v,f.v),d=t[--u],$=l[++c];else{for(r=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].S&&t[a].S===$.S){r=a;break}r>=0?(o=t[r],o.g!==$.g?s=g(t&&t[c],n,r):(M(o,$),t[r]=void 0,s=o.v),$=l[++c]):(s=g(t&&t[c],n,c),$=l[++c]),s&&f.v.parentNode.insertBefore(s,f.v)}i>u?v(e,null==l[y+1]?null:l[y+1].v,n,l,c,y):c>y&&j(t,i,u)})(n,l,t,s):null!==s?(null!==e.h&&(n.textContent=""),v(n,null,t,s,0,s.length-1)):null!==l&&j(l,0,l.length-1)):e.h!==o&&(n.data=o)},O=e=>{e.p&&e.p.ref&&e.p.ref(null),e.m&&e.m.map(O)},C=e=>_(e).j,P=(e,t,n)=>{const l=C(e);return{emit:e=>L(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},L=(e,t,n)=>{const s=l.ce(t,n);return e.dispatchEvent(s),s},x=(e,t)=>{t&&!e.k&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.k=t)))},E=(e,t)=>{if(e.t|=16,!(4&e.t))return x(e,e.M),le((()=>T(e,t)));e.t|=512},T=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>F(n,e,t))),e.u=null),l=F(n,"componentWillLoad")),H(l,(()=>U(e,n,t)))},U=async(e,t,l)=>{const s=e.j,o=s["s-rc"];l&&(e=>{const t=e.O;((e,t)=>{let l=f(t),s=Q.get(l);if(e=11===e.nodeType?e:n,s)if("string"==typeof s){let t,o=u.get(e=e.head||e);o||u.set(e,o=new Set),o.has(l)||(t=n.createElement("style"),t.innerHTML=s,e.insertBefore(t,e.querySelector("link")),o&&o.add(l))}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s])})(e.j.getRootNode(),t)})(e);W(e,t),o&&(o.map((e=>e())),s["s-rc"]=void 0);{const t=s["s-p"],n=()=>A(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},W=(e,t)=>{try{t=t.render(),e.t&=-17,e.t|=2,((e,t)=>{const n=e.j,l=e.C||h(null,null),s=(e=>e&&e.g===p)(t)?t:$(null,null,t);s.g=null,s.t|=4,e.C=s,s.v=l.v=n,M(l,s)})(e,t)}catch(t){I(t,e.j)}return null},A=e=>{const t=e.j,n=e.i,l=e.M;64&e.t?F(n,"componentDidUpdate"):(e.t|=64,R(t),F(n,"componentDidLoad"),e.P(t),l||D()),e.L(t),e.k&&(e.k(),e.k=void 0),512&e.t&&ne((()=>E(e,!1))),e.t&=-517},D=()=>{R(n.documentElement),ne((()=>L(t,"appload",{detail:{namespace:"verdocs-web-sdk"}})))},F=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},H=(e,t)=>e&&e.then?e.then(t):t(),R=e=>e.classList.add("hydrated"),q=(e,t,n)=>{if(t.T){e.watchers&&(t.U=e.watchers);const s=Object.entries(t.T),o=e.prototype;if(s.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>_(this).W.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.j,i=s.W.get(t),c=s.t,r=s.i;if(n=((e,t)=>null==e||y(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.T[t][0]),!(8&c&&void 0!==i||n===i)&&(s.W.set(t,n),r)){if(l.U&&128&c){const e=l.U[t];e&&e.map((e=>{try{r[e](n,i,t)}catch(e){I(e,o)}}))}2==(18&c)&&E(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=_(this);return n.A.then((()=>n.i[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,s){l.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))s=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==s)return;this[n]=(null!==s||"boolean"!=typeof this[n])&&s}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},N=(e,s={})=>{const c=[],r=s.exclude||[],a=t.customElements,u=n.head,d=u.querySelector("meta[charset]"),y=n.createElement("style"),$=[];let h,p=!0;Object.assign(l,s),l.l=new URL(s.resourcesUrl||"./",n.baseURI).href,e.map((e=>{e[1].map((t=>{const n={t:t[0],$:t[1],T:t[2],D:t[3]};n.T=t[2],n.D=t[3],n.U={};const s=n.$,u=class extends HTMLElement{constructor(e){super(e),B(e=this,n)}connectedCallback(){h&&(clearTimeout(h),h=null),p?$.push(this):l.jmp((()=>(e=>{if(0==(1&l.t)){const t=_(e),n=t.O,l=()=>{};if(1&t.t)i(e,t,n.D);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){x(t,t.M=n);break}}n.T&&Object.entries(n.T).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.U=s.watchers,q(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,t.t|=128,e()}if(s.style){let e=s.style;const t=f(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);o&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const i=t.M,c=()=>E(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(0,t,n)}l()}})(this)))}disconnectedCallback(){l.jmp((()=>(()=>{if(0==(1&l.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).F}};n.H=e[0],r.includes(s)||a.get(s)||(c.push(s),a.define(s,q(u,n,1)))}))})),y.innerHTML=c+"{visibility:hidden}.hydrated{visibility:inherit}",y.setAttribute("data-styles",""),u.insertBefore(y,d?d.nextSibling:u.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):l.jmp((()=>h=setTimeout(D,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,j:e,O:t,W:new Map};return n.A=new Promise((e=>n.L=e)),n.F=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],i(e,n,t.D),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.$.replace(/-/g,"_"),n=e.H,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(t,n)=>s=>{t.push(s),e||(e=!0,n&&4&l.t?ne(te):l.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(e=X.length>0)&&l.raf(te)},ne=e=>s().then(e),le=Z(Y,!0);export{p as H,N as b,P as c,C as g,$ as h,s as p,z as r}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js","./p-3ced6e3a.system.js","./p-b3c30059.system.js","./p-ee14709c.system.js"],(function(e){"use strict";var t,n,s,o,i,a,r,l,u;return{setters:[function(e){t=e.r;n=e.c;s=e.h},function(e){o=e.l;i=e.a;a=e.s},function(e){r=e.V;l=e.g;u=e.s},function(){}],execute:function(){var d="verdocs-auth{font-family:sans-serif;font-family:var(--verdocs-font);background-color:var(--verdocs-secondary-color);padding:40px;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:#f2f5fa;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;-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 c="https://stage-api.verdocs.com/";var g="verdocs-stage";var h=e("verdocs_auth",function(){function e(e){t(this,e);this.authenticated=n(this,"authenticated",7);this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.debug=false;this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}e.prototype.componentWillLoad=function(){var e=(new r).setBaseURL(c);u(e);console.log("Set active endpoint",l())};e.prototype.componentDidLoad=function(){var e=o(g);console.log("loaded session",e,g);if(e!==null){this.isAuthenticated=true;this.activeSession=e;this.authenticated.emit({authenticated:true,session:e})}else{this.authenticated.emit({authenticated:false,session:null})}};e.prototype.handleLogin=function(){var e=this;this.loggingIn=true;i({username:this.username,password:this.password}).then((function(t){e.loggingIn=false;console.log("Login result",t.accessToken);var n=a(g,t.accessToken,true);e.activeSession=n;e.isAuthenticated=true;console.log("set session",n);e.authenticated.emit({authenticated:true,session:n})})).catch((function(t){var n;console.log("Login error",t.response,JSON.stringify(t));e.loggingIn=false;e.activeSession=null;e.authenticated.emit({authenticated:false,session:null});if(((n=t===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.status)===403){e.loginError="Please check your username and password and try again."}}))};e.prototype.handleLogout=function(){this.isAuthenticated=false;this.authenticated.emit({authenticated:false,session:null})};e.prototype.handleClearError=function(){this.loginError=null};e.prototype.render=function(){var e=this;if(!this.visible){return s("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){if(this.debug){return s("div",{class:"status-result debug"},s("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:function(){return e.handleLogout()}}))}return s("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return s("div",{class:"signup-form"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),s("h3",null,"Sign up for an account"),s("h4",null,"Already have an account?",s("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return e.displayMode="login"},disabled:this.loggingIn})),s("form",{onSubmit:function(){return e.handleLogin()}},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(t){return e.username=t.detail},disabled:this.loggingIn}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(t){return e.password=t.detail},disabled:this.loggingIn}),s("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:function(){return e.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return s("div",{class:"login-form"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),s("h3",null,"Log in to your account"),s("h4",null,"Don't have an account?",s("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return e.displayMode="signup"},disabled:this.loggingIn})),s("form",{onSubmit:function(){return e.handleLogin()}},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:function(t){return e.username=t.detail},disabled:this.loggingIn}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:function(t){return e.password=t.detail},disabled:this.loggingIn}),s("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return e.displayMode="signup"},disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),s("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:function(){return e.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?s("verdocs-ok-dialog",{open:true,heading:"Login Error",message:this.loginError,onClosed:function(){return e.handleClearError()}}):s("div",null))};return e}());h.style=d}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-44b75396.system.js","./p-b3c30059.system.js","./p-d9474f48.system.js","./p-ee14709c.system.js"],(function(e){"use strict";var t,n,i,o,r,a,s,l;return{setters:[function(e){t=e.r;n=e.h;i=e.H},function(e){o=e.g;r=e.d;a=e.V;s=e.s},function(e){l=e.B},function(){}],execute:function(){function c(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function d(e,t){return e*t}var u=undefined&&undefined.__assign||function(){u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return u.apply(this,arguments)};var f=undefined&&undefined.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};var p=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var h=function(e,t,n,i){return f(void 0,void 0,void 0,(function(){return p(this,(function(r){return[2,o().api.put("/documents/".concat(e,"/recipients/").concat(t),u({role_name:t,action:n},i||{})).then((function(e){return e.data}))]}))}))};var v=undefined&&undefined.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):o(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};var g=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var b=function(e){return v(void 0,void 0,void 0,(function(){return g(this,(function(t){return[2,o().api.get("/documents/".concat(e.documentId,"/recipients/").concat(encodeURIComponent(e.roleId),"/invitation/").concat(e.inviteCode)).then((function(e){var t,n;var i=((t=e.headers)===null||t===void 0?void 0:t.signer_token)||"";var a=r(i);o().setAuthorization((n=e.headers)===null||n===void 0?void 0:n.signer_token);return{recipient:e.data,session:a,signerToken:i}}))]}))}))};var x=function(e){return v(void 0,void 0,void 0,(function(){return g(this,(function(t){return[2,o().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))}))};var m=function(e,t){return v(void 0,void 0,void 0,(function(){return g(this,(function(n){return[2,o().api.get("/documents/".concat(e,"/envelope_documents/").concat(t,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return l.from(e.data,"binary").toString("base64")}))]}))}))};var y=function(e,t,n){return v(void 0,void 0,void 0,(function(){return g(this,(function(i){return[2,o().api.put("/documents/".concat(e,"/fields/").concat(t),n).then((function(e){return e.data}))]}))}))};var w=new RegExp(/\+[1-9]\d{6,14}/g);function k(e){return e!==null&&e.length<16&&e.length>6&&w.test(e)||e===""||e===null}var _=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var I=function(e){return _.test(e)};var R=function(e){return k(e)};var S='verdocs-sign{font-family:sans-serif;font-family:var(--verdocs-font);position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var C="https://stage-api.verdocs.com";var F=e("verdocs_sign",function(){function e(e){t(this,e);this.documentid=null;this.roleid=null;this.invitecode=null;this.endpoint=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentWillLoad=function(){var e=(new a).setBaseURL(C);s(e)};e.prototype.componentDidLoad=function(){return v(this,void 0,void 0,(function(){var e,t,n,i,r,a;var s=this;return g(this,(function(l){switch(l.label){case 0:l.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,b({documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=l.sent(),t=e.session,n=e.recipient,i=e.signerToken;console.log("[SIGN] Got signing session",t);console.log("[SIGN] Recipient",n);this.recipient=n;this.signerToken=i;o().setSigningAuthorization(i);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,x(this.documentid)];case 2:r=l.sent();this.document=r;console.log("[SIGN] Document",r);this.pdfUrl=C+"/documents/"+this.documentid+"/envelope_documents/"+r.envelope_document_id+"?file=true";this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==s.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===s.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:a=l.sent();console.log("Error with signing session",a);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");h(this.documentid,this.roleid,"update",{agreed:true}).then((function(t){console.log("update result",t);e.nextButtonLabel="Next";e.recipient=t})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return v(this,void 0,void 0,(function(){var e,t,n,i;return g(this,(function(o){switch(o.label){case 0:e=this.document.name+" - "+this.document.updated_at.split("T")[0]+".pdf";return[4,m(this.documentid,this.document.envelope_document_id)];case 1:t=o.sent();n=new XMLHttpRequest;n.responseType="blob";n.onload=function(){var t=document.createElement("a");t.href=window.URL.createObjectURL(n.response);t.download=e;t.style.display="none";document.body.appendChild(t);t.click();t.remove()};i="data:application/pdf;base64,"+t;console.log("url",i.length,i);n.open("GET","data:application/pdf;base64,"+t);n.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return v(this,void 0,void 0,(function(){return g(this,(function(t){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,t,n){return v(this,void 0,void 0,(function(){var i;return g(this,(function(o){console.log("fieldChange",e,t.detail);switch(e.type){case"textbox":y(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":y(this.documentid,e.name,{prepared:false,value:{options:[{id:n,checked:t.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":i=e.settings.options.map((function(e){return{id:e.id,selected:n===e.id}}));y(this.documentid,e.name,{prepared:false,value:{options:i}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":y(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,t,i,o){var r=this;var a=d(e.xRatio,i.x);var s=d(e.yRatio,i.y);var l={left:a+"px",bottom:s+"px",position:"absolute",transform:"scale("+e.xRatio+", "+e.yRatio+")",backgroundColor:c(this.recipientIndex)};return n("verdocs-field-checkbox",{style:l,order:o,value:i.checked,onFieldChange:function(e){return r.handleFieldChange(t,e,i.id)}})};e.prototype.renderRadioGroupOption=function(e,t,i,o){var r=this;var a=d(e.xRatio,i.x);var s=d(e.yRatio,i.y);var l={left:a+"px",bottom:s+"px",position:"absolute",transform:"scale("+e.xRatio+", "+e.yRatio+")",backgroundColor:c(this.recipientIndex)};return n("verdocs-field-radio-button",{style:l,order:o,value:i.id,name:t.name,checked:i.selected,onFieldChange:function(e){return r.handleFieldChange(t,e,i.id)}})};e.prototype.renderField=function(e,t){var i=this;var o=e.required,r=o===void 0?false:o,a=e.settings,s=a===void 0?{}:a;var l=s.x,u=l===void 0?0:l,f=s.y,p=f===void 0?0:f,h=s.base64,v=h===void 0?"":h,g=s.placeholder,b=g===void 0?"":g,x=s.options,m=x===void 0?[]:x,y=s.value,w=y===void 0?"":y,k=s.result,_=k===void 0?"":k;var I=this.pdfPageInfo.pages.find((function(t){return t.pageNumber===e.page}));if(!I){console.log("Unable to render invalid field",e);return n("div",{class:"invalid-field"},"Invalid field.")}var R=d(I.xRatio,u);var S=d(I.yRatio,p);var C={left:R+"px",bottom:S+"px",position:"absolute",transform:"scale("+I.xRatio+", "+I.yRatio+")",backgroundColor:e.settings.rgba||c(this.recipientIndex)};if(e.settings.height){C.height=e.settings.height+"px"}if(e.settings.width){C.width=e.settings.width+"px"}console.log("rendering field",e.type,e);var F="field-"+e.name;switch(e.type){case"signature":return n("verdocs-field-signature",{style:C,value:v,required:r,id:F});case"initial":return n("verdocs-field-initial",{style:C,required:r,id:F});case"textbox":return n("verdocs-field-textbox",{style:C,order:t,value:_||"",placeholder:b,id:F,onFieldChange:function(t){return i.handleFieldChange(e,t)}});case"textarea":return n("verdocs-field-textarea",{style:C,placeholder:b||"",id:F});case"date":return n("verdocs-field-date",{style:C,order:t,value:_||"",placeholder:b,required:r,id:F});case"dropdown":return n("verdocs-field-dropdown",{style:C,options:m,value:w,required:r,id:F,onFieldChange:function(t){return i.handleFieldChange(e,t)}});case"checkbox":return n("verdocs-field-checkbox",{style:C,value:_||"",id:F});case"checkbox_group":return e.settings.options.map((function(t,n){return i.renderCheckboxGroupOption(I,e,t,n)}));case"radio_button_group":return e.settings.options.map((function(t,n){return i.renderRadioGroupOption(I,e,t,n)}));case"attachment":return n("verdocs-field-attachment",{style:C,value:_||"",id:F});case"payment":return n("verdocs-field-payment",{style:C,field:e,id:F});default:console.log("[SIGN] Skipping unsupported field type",e)}return n("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var t,n,i,o,r,a,s,l,c,d,u,f;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return I(((n=e.settings)===null||n===void 0?void 0:n.result)||"");case"phone":return R(((i=e.settings)===null||i===void 0?void 0:i.result)||"");default:return!!((o=e.settings)===null||o===void 0?void 0:o.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((r=e.settings)===null||r===void 0?void 0:r.result);case"dropdown":return!!((a=e.settings)===null||a===void 0?void 0:a.value);case"checkbox_group":var p=(((l=(s=e.settings)===null||s===void 0?void 0:s.options)===null||l===void 0?void 0:l.filter((function(e){return e.checked})))||[]).length;return p>=(((c=e.settings)===null||c===void 0?void 0:c.minimum_checked)||0)&&p<=(((d=e.settings)===null||d===void 0?void 0:d.maximum_checked)||999);case"radio_button_group":return(((f=(u=e.settings)===null||u===void 0?void 0:u.options)===null||f===void 0?void 0:f.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var t=this.fields.filter((function(e){return e.required}));console.log("required Fields",t);var n=t.findIndex((function(t){return t.name===e.focusedField}));console.log("focused Index",n);var i=n+1;if(i>=t.length){i=0}var o=t[i];console.log("next required fielod",o);if(o){var r=document.getElementById("field-"+o.name);r===null||r===void 0?void 0:r.focusField();this.focusedField=o.name}};e.prototype.render=function(){var e=this;var t,o,r,a,s;var l=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return n(i,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(t=this.recipient)===null||t===void 0?void 0:t.agreed}},n("div",{class:"header"},n("div",{class:"intro"},"Please review and act on these documents."),n("div",{class:"toolbar"},n("div",{class:"tools"},n("verdocs-dropdown",{options:l,onOptionSelected:function(t){return e.handleOptionSelected(t)}}),!((o=this.recipient)===null||o===void 0?void 0:o.agreed)?n("div",{style:{flex:"1",flexDirection:"row"}},n("div",{class:"agree-checkbox"},n("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),n("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."):n("div",{style:{flex:"1"}}),n("verdocs-button",{label:this.nextButtonLabel,disabled:!((r=this.recipient)===null||r===void 0?void 0:r.agreed),onClick:function(){return e.handleNext()}})))),!((a=this.recipient)===null||a===void 0?void 0:a.agreed)?n("div",{class:"cover"}):n("div",{style:{display:"none"}}),n("div",{class:"document"},this.pdfUrl?n("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(t){return e.handleDocumentRendered(t)}}):n("verdocs-loader",null),(((s=this.pdfPageInfo)===null||s===void 0?void 0:s.pages)||[]).map((function(t){var i;return n("div",{class:"page-controls",style:{height:t.height+"px",width:t.width+"px",top:t.canvasTop+"px",margin:"0 auto"}},((i=e.pdfPageInfo)===null||i===void 0?void 0:i.numRendered)>0?e.fields.filter((function(e){return e.page===t.pageNumber})).map((function(t,n){return e.renderField(t,n)})):n("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}());F.style=S}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as o,h as e,H as i}from"./p-6e95da9d.js";let n=class{constructor(e){t(this,e),this.press=o(this,"press",7),this.label="",this.type="button",this.variant="standard",this.disabled=!1}componentWillLoad(){}componentDidLoad(){}handleClick(t){t.preventDefault(),this.press.emit()}render(){return e(i,{class:`${this.variant}`},e("button",{disabled:this.disabled,type:this.type,onClick:t=>this.handleClick(t)},this.label))}};n.style="verdocs-button button{font-family:sans-serif;font-family:var(--verdocs-font);text-transform:uppercase;cursor:pointer;font-weight:500}verdocs-button button:disabled{cursor:none}verdocs-button.standard button{background:var(--verdocs-primary-color);border-radius:4px;font-size:14px;color:white;border:none;outline:none;height:32px;margin:0;display:block;padding:0 20px}verdocs-button.standard button:disabled{background-color:#999;cursor:default}verdocs-button.standard button:active{-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button.text button{border:none;font-size:14px;color:var(--verdocs-secondary-color);font-weight:400;outline:none;background:transparent;padding:0 4px}verdocs-button.text button:disabled{color:#999;cursor:none}verdocs-button.text button:active{-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button.outline button{font-size:14px;border:1px solid var(--verdocs-secondary-color);color:var(--verdocs-secondary-color);outline:none;background:transparent;height:32px;border-radius:4px;padding:0 20px}verdocs-button.outline button:disabled{color:#999;cursor:none;border:1px solid #999}verdocs-button.outline button:active{background:var(--verdocs-secondary-color);color:white}";let r=class{constructor(e){t(this,e),this.fieldInput=o(this,"fieldInput",7),this.fieldFocus=o(this,"fieldFocus",7),this.fieldBlur=o(this,"fieldBlur",7),this.value="",this.label="",this.placeholder="",this.autocomplete="",this.type="text",this.disabled=!1,this._value=""}componentWillLoad(){this._value=this.value}componentDidLoad(){}handleInput(t){this._value=t.target.value,this.fieldInput.emit(this._value)}handleFocus(t){this.fieldFocus.emit(t)}handleBlur(t){this.fieldBlur.emit(t)}render(){return e(i,{class:"input-field"},e("label",null,this.label?e("div",{class:"input-label"},this.label+":"):e("div",null),e("input",{type:this.type,placeholder:this.placeholder,autoComplete:this.autocomplete,disabled:this.disabled,value:this._value,class:"input-element",onInput:t=>this.handleInput(t),onFocus:t=>this.handleFocus(t),onBlur:t=>this.handleBlur(t)})))}};r.style="verdocs-text-input{font-family:sans-serif;font-family:var(--verdocs-font);-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#fff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaa;opacity:1}verdocs-text-input .input-label{display:block;color:#333;font-weight:400;font-size:14px;margin:0 0 4px 0}";export{n as verdocs_button,r as verdocs_text_input}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-6e95da9d.js";import{l as i,a as o,s as n}from"./p-e9f5d6a6.js";import{V as a,g as l,s as r}from"./p-9e0a07a7.js";import"./p-cec7e9ea.js";const d="verdocs-stage";let c=class{constructor(e){t(this,e),this.authenticated=s(this,"authenticated",7),this.visible=!0,this.logo="https://verdocs.com/assets/blue-logo.svg",this.debug=!1,this.isAuthenticated=!1,this.displayMode="login",this.username="",this.password="",this.loggingIn=!1,this.activeSession=null,this.loginError=null}componentWillLoad(){const t=(new a).setBaseURL("https://stage-api.verdocs.com/");r(t),console.log("Set active endpoint",l())}componentDidLoad(){const t=i(d);console.log("loaded session",t,d),null!==t?(this.isAuthenticated=!0,this.activeSession=t,this.authenticated.emit({authenticated:!0,session:t})):this.authenticated.emit({authenticated:!1,session:null})}handleLogin(){this.loggingIn=!0,o({username:this.username,password:this.password}).then((t=>{this.loggingIn=!1,console.log("Login result",t.accessToken);const s=n(d,t.accessToken,!0);this.activeSession=s,this.isAuthenticated=!0,console.log("set session",s),this.authenticated.emit({authenticated:!0,session:s})})).catch((t=>{var s;console.log("Login error",t.response,JSON.stringify(t)),this.loggingIn=!1,this.activeSession=null,this.authenticated.emit({authenticated:!1,session:null}),403===(null===(s=null==t?void 0:t.response)||void 0===s?void 0:s.status)&&(this.loginError="Please check your username and password and try again.")}))}handleLogout(){this.isAuthenticated=!1,this.authenticated.emit({authenticated:!1,session:null})}handleClearError(){this.loginError=null}render(){return this.visible?this.isAuthenticated?this.debug?e("div",{class:"status-result debug"},e("verdocs-button",{label:"Logout",disabled:this.loggingIn,onPress:()=>this.handleLogout()})):e("div",{class:"status-result"},"Authenticated"):"signup"===this.displayMode?e("div",{class:"signup-form"},e("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),e("h3",null,"Sign up for an account"),e("h4",null,"Already have an account?",e("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.loggingIn})),e("form",{onSubmit:()=>this.handleLogin()},e("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:t=>this.username=t.detail,disabled:this.loggingIn}),e("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:t=>this.password=t.detail,disabled:this.loggingIn}),e("verdocs-button",{label:"Signup",disabled:this.loggingIn,onPress:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))):e("div",{class:"login-form"},e("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),e("h3",null,"Log in to your account"),e("h4",null,"Don't have an account?",e("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn})),e("form",{onSubmit:()=>this.handleLogin()},e("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onFieldInput:t=>this.username=t.detail,disabled:this.loggingIn}),e("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onFieldInput:t=>this.password=t.detail,disabled:this.loggingIn}),e("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),e("verdocs-button",{label:"Login",disabled:this.loggingIn,onPress:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?e("verdocs-ok-dialog",{open:!0,heading:"Login Error",message:this.loginError,onClosed:()=>this.handleClearError()}):e("div",null)):e("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}};c.style="verdocs-auth{font-family:sans-serif;font-family:var(--verdocs-font);background-color:var(--verdocs-secondary-color);padding:40px;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:#f2f5fa;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:8px;-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}";export{c as verdocs_auth}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js"],(function(e){"use strict";var t,n,i,a;return{setters:[function(e){t=e.r;n=e.c;i=e.h;a=e.H}],execute:function(){var o="verdocs-signature-dialog{font-family:sans-serif;font-family:var(--verdocs-font);-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-signature-dialog.open{display:block}verdocs-signature-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #ccc}verdocs-signature-dialog .tabs .tab:hover{color:var(--verdocs-primary-color)}";var s=e("verdocs_signature_dialog",function(){function e(e){t(this,e);this.adopt=n(this,"adopt",7);this.cancel=n(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredName="";this.mode="type"}e.prototype.componentWillLoad=function(){var e=this;this.enteredName=this.fullname;var t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((function(t){document.fonts.add(t);e.fontLoaded=true}))};e.prototype.componentDidLoad=function(){this.redrawSignature()};e.prototype.componentDidUpdate=function(){this.redrawSignature()};e.prototype.redrawSignature=function(){if(!this.canvasElement){return}var e=this.canvasElement.width;var t=this.canvasElement.getContext("2d");t.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var n=100;do{n-=2;t.font=n+"px Dancing Script"}while(t.measureText(this.enteredName).width>e-32);t.textAlign="center";t.textBaseline="middle";t.font=n+"px Dancing Script";t.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleNameChange=function(e){this.enteredName=e.detail};e.prototype.handleAdopt=function(){var e=this.canvasElement.toDataURL("image/png");this.adopt.emit(e);this.open=false};e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.render=function(){var e=this;return i(a,{class:{open:this.open}},i("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},i("div",{class:"dialog"},i("div",{class:"heading"},"Create Your Signature"),i("div",{class:"content"},i("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onFieldInput:function(t){return e.handleNameChange(t)}}),i("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),i("div",{class:"tabs"},i("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return e.mode="type"}},"Type"),i("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return e.mode="draw"}},"Draw")),this.fontLoaded?i("canvas",{ref:function(t){return e.canvasElement=t}}):i("div",{style:{display:"none"}}),i("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),i("div",{class:"buttons"},i("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return e.handleCancel()}}),i("verdocs-button",{label:"Adopt & Sign",onPress:function(){return e.handleAdopt()}}))))))};return e}());s.style=o}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-6e95da9d.js";let s=class{constructor(r){e(this,r)}render(){return r("div",{class:"container"},r("verdocs-search-box",null),r("div",{class:"boxes"},r("verdocs-search-activity",{type:"recent"}),r("verdocs-search-activity",{type:"saved"}),r("verdocs-search-activity",{type:"starred"}),r("search-quick-functions",null)))}};s.style="verdocs-search{font-family:sans-serif;font-family:var(--verdocs-font);display:-ms-flexbox;display:flex;background-color:var(--verdocs-background-dark)}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}";export{s as verdocs_search}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as n}from"./p-cec7e9ea.js";var t=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},e=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(n){return t()}try{return __global__||t()}finally{delete Object.prototype.__global__}}(),r=function(n,t){return function(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];return n.apply(t,e)}},o=Object.prototype.toString;function i(n){return Array.isArray(n)}function u(n){return void 0===n}function c(n){return"[object ArrayBuffer]"===o.call(n)}function f(n){return null!==n&&"object"==typeof n}function a(n){if("[object Object]"!==o.call(n))return!1;var t=Object.getPrototypeOf(n);return null===t||t===Object.prototype}function s(n){return"[object Function]"===o.call(n)}function l(n,t){if(null!=n)if("object"!=typeof n&&(n=[n]),i(n))for(var e=0,r=n.length;e<r;e++)t.call(null,n[e],e,n);else for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&t.call(null,n[o],o,n)}var h={isArray:i,isArrayBuffer:c,isBuffer:function(n){return null!==n&&!u(n)&&null!==n.constructor&&!u(n.constructor)&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)},isFormData:function(n){return"[object FormData]"===o.call(n)},isArrayBufferView:function(n){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&c(n.buffer)},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isObject:f,isPlainObject:a,isUndefined:u,isDate:function(n){return"[object Date]"===o.call(n)},isFile:function(n){return"[object File]"===o.call(n)},isBlob:function(n){return"[object Blob]"===o.call(n)},isFunction:s,isStream:function(n){return f(n)&&s(n.pipe)},isURLSearchParams:function(n){return"[object URLSearchParams]"===o.call(n)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function n(){var t={};function e(e,r){t[r]=a(t[r])&&a(e)?n(t[r],e):a(e)?n({},e):i(e)?e.slice():e}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],e);return t},extend:function(n,t,e){return l(t,(function(t,o){n[o]=e&&"function"==typeof t?r(t,e):t})),n},trim:function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},stripBOM:function(n){return 65279===n.charCodeAt(0)&&(n=n.slice(1)),n}};function d(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var p=function(n,t,e){if(!t)return n;var r;if(e)r=e(t);else if(h.isURLSearchParams(t))r=t.toString();else{var o=[];h.forEach(t,(function(n,t){null!=n&&(h.isArray(n)?t+="[]":n=[n],h.forEach(n,(function(n){h.isDate(n)?n=n.toISOString():h.isObject(n)&&(n=JSON.stringify(n)),o.push(d(t)+"="+d(n))})))})),r=o.join("&")}if(r){var i=n.indexOf("#");-1!==i&&(n=n.slice(0,i)),n+=(-1===n.indexOf("?")?"?":"&")+r}return n};function v(){this.handlers=[]}v.prototype.use=function(n,t,e){return this.handlers.push({fulfilled:n,rejected:t,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1},v.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},v.prototype.forEach=function(n){h.forEach(this.handlers,(function(t){null!==t&&n(t)}))};var m=v,b=function(n,t){h.forEach(n,(function(e,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(n[t]=e,delete n[r])}))},w=function(n,t,e,r,o){return n.config=t,e&&(n.code=e),n.request=r,n.response=o,n.isAxiosError=!0,n.toJSON=function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},n},g=function(n,t,e,r,o){var i=new Error(n);return w(i,t,e,r,o)},y=h.isStandardBrowserEnv()?{write:function(n,t,e,r,o,i){var u=[];u.push(n+"="+encodeURIComponent(t)),h.isNumber(e)&&u.push("expires="+new Date(e).toGMTString()),h.isString(r)&&u.push("path="+r),h.isString(o)&&u.push("domain="+o),!0===i&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){var t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},j=["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"],O=h.isStandardBrowserEnv()?function(){var n,t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function r(n){var r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){var e=h.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};function S(n){this.message=n}S.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},S.prototype.__CANCEL__=!0;var E=S,N={"Content-Type":"application/x-www-form-urlencoded"};function x(n,t){!h.isUndefined(n)&&h.isUndefined(n["Content-Type"])&&(n["Content-Type"]=t)}var R,A={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==n&&"[object process]"===Object.prototype.toString.call(n))&&(R=function(n){return new Promise((function(t,e){var r,o=n.data,i=n.headers,u=n.responseType;function c(){n.cancelToken&&n.cancelToken.unsubscribe(r),n.signal&&n.signal.removeEventListener("abort",r)}h.isFormData(o)&&delete i["Content-Type"];var f=new XMLHttpRequest;if(n.auth){var a=n.auth.username||"",s=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";i.Authorization="Basic "+btoa(a+":"+s)}var l,d,v=(d=n.url,(l=n.baseURL)&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)?function(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}(l,d):d);function m(){if(f){var r,o,i,a,s,l="getAllResponseHeaders"in f?(r=f.getAllResponseHeaders(),s={},r?(h.forEach(r.split("\n"),(function(n){if(a=n.indexOf(":"),o=h.trim(n.substr(0,a)).toLowerCase(),i=h.trim(n.substr(a+1)),o){if(s[o]&&j.indexOf(o)>=0)return;s[o]="set-cookie"===o?(s[o]?s[o]:[]).concat([i]):s[o]?s[o]+", "+i:i}})),s):s):null;!function(n,t,e){var r=e.config.validateStatus;e.status&&r&&!r(e.status)?t(g("Request failed with status code "+e.status,e.config,null,e.request,e)):n(e)}((function(n){t(n),c()}),(function(n){e(n),c()}),{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:l,config:n,request:f}),f=null}}if(f.open(n.method.toUpperCase(),p(v,n.params,n.paramsSerializer),!0),f.timeout=n.timeout,"onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(m)},f.onabort=function(){f&&(e(g("Request aborted",n,"ECONNABORTED",f)),f=null)},f.onerror=function(){e(g("Network Error",n,null,f)),f=null},f.ontimeout=function(){var t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),e(g(t,n,(n.transitional||T.transitional).clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},h.isStandardBrowserEnv()){var b=(n.withCredentials||O(v))&&n.xsrfCookieName?y.read(n.xsrfCookieName):void 0;b&&(i[n.xsrfHeaderName]=b)}"setRequestHeader"in f&&h.forEach(i,(function(n,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:f.setRequestHeader(t,n)})),h.isUndefined(n.withCredentials)||(f.withCredentials=!!n.withCredentials),u&&"json"!==u&&(f.responseType=n.responseType),"function"==typeof n.onDownloadProgress&&f.addEventListener("progress",n.onDownloadProgress),"function"==typeof n.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",n.onUploadProgress),(n.cancelToken||n.signal)&&(r=function(n){f&&(e(!n||n&&n.type?new E("canceled"):n),f.abort(),f=null)},n.cancelToken&&n.cancelToken.subscribe(r),n.signal&&(n.signal.aborted?r():n.signal.addEventListener("abort",r))),o||(o=null),f.send(o)}))}),R),transformRequest:[function(n,t){return b(t,"Accept"),b(t,"Content-Type"),h.isFormData(n)||h.isArrayBuffer(n)||h.isBuffer(n)||h.isStream(n)||h.isFile(n)||h.isBlob(n)?n:h.isArrayBufferView(n)?n.buffer:h.isURLSearchParams(n)?(x(t,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):h.isObject(n)||t&&"application/json"===t["Content-Type"]?(x(t,"application/json"),function(n){if(h.isString(n))try{return(0,JSON.parse)(n),h.trim(n)}catch(n){if("SyntaxError"!==n.name)throw n}return(0,JSON.stringify)(n)}(n)):n}],transformResponse:[function(n){var t=this.transitional||A.transitional,e=!(t&&t.silentJSONParsing)&&"json"===this.responseType;if(e||t&&t.forcedJSONParsing&&h.isString(n)&&n.length)try{return JSON.parse(n)}catch(n){if(e){if("SyntaxError"===n.name)throw w(n,this,"E_JSON_PARSE");throw n}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};h.forEach(["delete","get","head"],(function(n){A.headers[n]={}})),h.forEach(["post","put","patch"],(function(n){A.headers[n]=h.merge(N)}));var T=A,P=function(n,t,e){var r=this||T;return h.forEach(e,(function(e){n=e.call(r,n,t)})),n},B=function(n){return!(!n||!n.__CANCEL__)};function C(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new E("canceled")}var U=function(n){return C(n),n.headers=n.headers||{},n.data=P.call(n,n.data,n.headers,n.transformRequest),n.headers=h.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),h.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete n.headers[t]})),(n.adapter||T.adapter)(n).then((function(t){return C(n),t.data=P.call(n,t.data,t.headers,n.transformResponse),t}),(function(t){return B(t)||(C(n),t&&t.response&&(t.response.data=P.call(n,t.response.data,t.response.headers,n.transformResponse))),Promise.reject(t)}))},D=function(n,t){t=t||{};var e={};function r(n,t){return h.isPlainObject(n)&&h.isPlainObject(t)?h.merge(n,t):h.isPlainObject(t)?h.merge({},t):h.isArray(t)?t.slice():t}function o(e){return h.isUndefined(t[e])?h.isUndefined(n[e])?void 0:r(void 0,n[e]):r(n[e],t[e])}function i(n){if(!h.isUndefined(t[n]))return r(void 0,t[n])}function u(e){return h.isUndefined(t[e])?h.isUndefined(n[e])?void 0:r(void 0,n[e]):r(void 0,t[e])}function c(e){return e in t?r(n[e],t[e]):e in n?r(void 0,n[e]):void 0}var f={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return h.forEach(Object.keys(n).concat(Object.keys(t)),(function(n){var t=f[n]||o,r=t(n);h.isUndefined(r)&&t!==c||(e[n]=r)})),e},J={};["object","boolean","number","function","string","symbol"].forEach((function(n,t){J[n]=function(e){return typeof e===n||"a"+(t<1?"n ":" ")+n}}));var k={};J.transitional=function(n,t,e){function r(n,t){return"[Axios v0.25.0] Transitional option '"+n+"'"+t+(e?". "+e:"")}return function(e,o,i){if(!1===n)throw new Error(r(o," has been removed"+(t?" in "+t:"")));return t&&!k[o]&&(k[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!n||n(e,o,i)}};var L={assertOptions:function(n,t,e){if("object"!=typeof n)throw new TypeError("options must be an object");for(var r=Object.keys(n),o=r.length;o-- >0;){var i=r[o],u=t[i];if(u){var c=n[i],f=void 0===c||u(c,i,n);if(!0!==f)throw new TypeError("option "+i+" must be "+f)}else if(!0!==e)throw Error("Unknown option "+i)}},validators:J},q=L.validators;function F(n){this.defaults=n,this.interceptors={request:new m,response:new m}}F.prototype.request=function(n,t){if("string"==typeof n?(t=t||{}).url=n:t=n||{},!t.url)throw new Error("Provided config url is not valid");(t=D(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=t.transitional;void 0!==e&&L.assertOptions(e,{silentJSONParsing:q.transitional(q.boolean),forcedJSONParsing:q.transitional(q.boolean),clarifyTimeoutError:q.transitional(q.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(n){"function"==typeof n.runWhen&&!1===n.runWhen(t)||(o=o&&n.synchronous,r.unshift(n.fulfilled,n.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(n){u.push(n.fulfilled,n.rejected)})),!o){var c=[U,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(u),i=Promise.resolve(t);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=t;r.length;){var a=r.shift(),s=r.shift();try{f=a(f)}catch(n){s(n);break}}try{i=U(f)}catch(n){return Promise.reject(n)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},F.prototype.getUri=function(n){if(!n.url)throw new Error("Provided config url is not valid");return n=D(this.defaults,n),p(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")},h.forEach(["delete","get","head","options"],(function(n){F.prototype[n]=function(t,e){return this.request(D(e||{},{method:n,url:t,data:(e||{}).data}))}})),h.forEach(["post","put","patch"],(function(n){F.prototype[n]=function(t,e,r){return this.request(D(r||{},{method:n,url:t,data:e}))}}));var _=F;function z(n){if("function"!=typeof n)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(n){t=n}));var e=this;this.promise.then((function(n){if(e._listeners){var t,r=e._listeners.length;for(t=0;t<r;t++)e._listeners[t](n);e._listeners=null}})),this.promise.then=function(n){var t,r=new Promise((function(n){e.subscribe(n),t=n})).then(n);return r.cancel=function(){e.unsubscribe(t)},r},n((function(n){e.reason||(e.reason=new E(n),t(e.reason))}))}z.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},z.prototype.subscribe=function(n){this.reason?n(this.reason):this._listeners?this._listeners.push(n):this._listeners=[n]},z.prototype.unsubscribe=function(n){if(this._listeners){var t=this._listeners.indexOf(n);-1!==t&&this._listeners.splice(t,1)}},z.source=function(){var n;return{token:new z((function(t){n=t})),cancel:n}};var H=z,I=function n(t){var e=new _(t),o=r(_.prototype.request,e);return h.extend(o,_.prototype,e),h.extend(o,e),o.create=function(e){return n(D(t,e))},o}(T);I.Axios=_,I.Cancel=E,I.CancelToken=H,I.isCancel=B,I.VERSION="0.25.0",I.all=function(n){return Promise.all(n)},I.spread=function(n){return function(t){return n.apply(null,t)}},I.isAxiosError=function(n){return h.isObject(n)&&!0===n.isAxiosError};var M=I;M.default=I;var X=M,$=function(n){return console.debug("[JS-SDK] ".concat(n.method.toUpperCase()," ").concat(n.baseURL).concat(n.url),n.data?JSON.stringify(n.data):""),n},K=function(){function n(){this.requestLoggerId=null,this.api=X.create({baseURL:"https://api.verdocs.com",timeout:3e3})}return n.prototype.setTimeout=function(n){return this.api.defaults.timeout=n,this},n.prototype.setClientID=function(n){return this.api.defaults.headers.common["X-Client-ID"]=n,this},n.prototype.setAuthorization=function(n){return n?this.api.defaults.headers.common.Authorization="Bearer ".concat(n):delete this.api.defaults.headers.common.Authorization,this},n.prototype.setSigningAuthorization=function(n){return n?this.api.defaults.headers.common.signer="Bearer ".concat(n):delete this.api.defaults.headers.common.signer,this},n.prototype.setBaseURL=function(n){return this.api.defaults.baseURL=n,this},n.prototype.logRequests=function(n){return n&&null===this.requestLoggerId?this.requestLoggerId=this.api.interceptors.request.use($):n||null===this.requestLoggerId||this.api.interceptors.request.eject(this.requestLoggerId),this},n}(),Z=Symbol.for("verdocs-api-endpoint");e[Z]||(e[Z]=new K);var V=e[Z],W=V,G=function(){return W},Q=function(n){W=n||V},Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",nn=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,tn=function(n){var t;try{if(null===(t=function(n){return JSON.parse(function(n){if(n=String(n).replace(/[\t\n\f\r ]+/g,""),!nn.test(n))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;n+="==".slice(2-(3&n.length));for(var e,r,o="",i=0;i<n.length;)t=Y.indexOf(n.charAt(i++))<<18|Y.indexOf(n.charAt(i++))<<12|(e=Y.indexOf(n.charAt(i++)))<<6|(r=Y.indexOf(n.charAt(i++))),o+=64===e?String.fromCharCode(t>>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}((n||"").split(".")[1]||""))}(n)))return null}catch(n){return null}return Object.keys(t).forEach((function(n){"string"==typeof n&&n.startsWith("https://verdocs.com/")&&(t[n.replace("https://verdocs.com/","")]=t[n],delete t[n])})),t};export{K as V,tn as d,G as g,Q as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as o,h as i,H as t}from"./p-6e95da9d.js";var a=function(e){return new Promise((function(o,i){var t=new FileReader;t.onload=function(){return o({lastModified:e.lastModified,size:e.size,type:e.type,name:e.name,data:t.result})},t.onerror=i,e?t.readAsDataURL(e):i(new Error("Invalid file"))}))};let s=class{constructor(i){e(this,i),this.cancel=o(this,"cancel",7),this.done=o(this,"done",7),this.open=!1,this.draggingOver=!1,this.decodedFiles=[]}handleCancel(){this.cancel.emit(),this.open=!1}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.done.emit(this.decodedFiles),this.open=!1}handleDragOver(e){e.preventDefault(),this.draggingOver=!0}handleDragLeave(e){e.preventDefault(),this.draggingOver=!1}async handleDrop(e){e.preventDefault(),this.draggingOver=!1;let o=[];if(e.dataTransfer.items){for(let i=0;i<e.dataTransfer.items.length;i++)if("file"===e.dataTransfer.items[i].kind){const t=e.dataTransfer.items[i].getAsFile();o.push(t)}}else o=e.dataTransfer.files;this.decodedFiles=await Promise.all(o.map(a))}handleRemoveAttachment(e){const o=[...this.decodedFiles];o.splice(e,1),this.decodedFiles=o}handleSelectFile(){var e;null===(e=this.fileInput)||void 0===e||e.click()}async handleFileChange(e){var o,i,t;console.log("fileChange",e),console.log("files",null===(o=this.fileInput)||void 0===o?void 0:o.files);let s=[];for(let e=0;e<(null===(i=this.fileInput)||void 0===i?void 0:i.files.length);e++)s.push(null===(t=this.fileInput)||void 0===t?void 0:t.files[e]);this.decodedFiles=await Promise.all(s.map(a))}render(){return i(t,{style:{display:this.open?"block":"none"}},i("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},i("div",{class:"dialog"},i("div",{class:"heading"},"Upload attachment"),this.decodedFiles.length<1?i("div",{class:{"drop-target":!0,"dragging-over":this.draggingOver},onDragOver:e=>this.handleDragOver(e),onDragLeave:e=>this.handleDragLeave(e),onDrop:e=>this.handleDrop(e)},i("p",null,"Drag and drop a file here..."),i("p",null,"- or -"),i("verdocs-button",{label:"Select a file...",onPress:()=>this.handleSelectFile()}),i("input",{type:"file",ref:e=>this.fileInput=e,style:{display:"none"},onChange:e=>this.handleFileChange(e)})):i("div",{class:"attachments"},this.decodedFiles.map(((e,o)=>i("div",{class:"attachment"},i("div",{class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n'}),i("div",{class:"name"},e.name),i("div",{class:"icon trash",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n</svg>\n',onClick:()=>this.handleRemoveAttachment(o)}))))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onPress:()=>this.handleCancel()}),i("verdocs-button",{label:"Done",onPress:()=>this.handleDone(),disabled:this.decodedFiles.length<1})))))}};s.style="verdocs-upload-dialog{font-family:sans-serif;font-family:var(--verdocs-font);-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid blue}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}";export{s as verdocs_upload_dialog}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-ee14709c.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.p}],execute:function(){var r=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var n=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(e){return r()}try{if(!__global__)return r();return __global__}finally{delete Object.prototype.__global__}}();var i=function e(t,r){return function e(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}return t.apply(r,n)}};var o=Object.prototype.toString;function a(e){return Array.isArray(e)}function s(e){return typeof e==="undefined"}function u(e){return e!==null&&!s(e)&&e.constructor!==null&&!s(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function f(e){return o.call(e)==="[object ArrayBuffer]"}function c(e){return o.call(e)==="[object FormData]"}function l(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&f(e.buffer)}return t}function d(e){return typeof e==="string"}function h(e){return typeof e==="number"}function p(e){return e!==null&&typeof e==="object"}function v(e){if(o.call(e)!=="[object Object]"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function m(e){return o.call(e)==="[object Date]"}function g(e){return o.call(e)==="[object File]"}function y(e){return o.call(e)==="[object Blob]"}function b(e){return o.call(e)==="[object Function]"}function w(e){return p(e)&&b(e.pipe)}function E(e){return o.call(e)==="[object URLSearchParams]"}function S(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function O(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function j(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(a(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){t.call(null,e[i],i,e)}}}}function A(){var e={};function t(t,r){if(v(e[r])&&v(t)){e[r]=A(e[r],t)}else if(v(t)){e[r]=A({},t)}else if(a(t)){e[r]=t.slice()}else{e[r]=t}}for(var r=0,n=arguments.length;r<n;r++){j(arguments[r],t)}return e}function C(e,t,r){j(t,(function t(n,o){if(r&&typeof n==="function"){e[o]=i(n,r)}else{e[o]=n}}));return e}function x(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}var T={isArray:a,isArrayBuffer:f,isBuffer:u,isFormData:c,isArrayBufferView:l,isString:d,isNumber:h,isObject:p,isPlainObject:v,isUndefined:s,isDate:m,isFile:g,isBlob:y,isFunction:b,isStream:w,isURLSearchParams:E,isStandardBrowserEnv:O,forEach:j,merge:A,extend:C,trim:S,stripBOM:x};function N(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var R=function e(t,r,n){if(!r){return t}var i;if(n){i=n(r)}else if(T.isURLSearchParams(r)){i=r.toString()}else{var o=[];T.forEach(r,(function e(t,r){if(t===null||typeof t==="undefined"){return}if(T.isArray(t)){r=r+"[]"}else{t=[t]}T.forEach(t,(function e(t){if(T.isDate(t)){t=t.toISOString()}else if(T.isObject(t)){t=JSON.stringify(t)}o.push(N(r)+"="+N(t))}))}));i=o.join("&")}if(i){var a=t.indexOf("#");if(a!==-1){t=t.slice(0,a)}t+=(t.indexOf("?")===-1?"?":"&")+i}return t};function U(){this.handlers=[]}U.prototype.use=function e(t,r,n){this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};U.prototype.eject=function e(t){if(this.handlers[t]){this.handlers[t]=null}};U.prototype.forEach=function e(t){T.forEach(this.handlers,(function e(r){if(r!==null){t(r)}}))};var _=U;var P=function e(t,r){T.forEach(t,(function e(n,i){if(i!==r&&i.toUpperCase()===r.toUpperCase()){t[r]=n;delete t[i]}}))};var L=function e(t,r,n,i,o){t.config=r;if(n){t.code=n}t.request=i;t.response=o;t.isAxiosError=true;t.toJSON=function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}};return t};var B=function e(t,r,n,i,o){var a=new Error(t);return L(a,r,n,i,o)};var q=function e(t,r,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){t(n)}else{r(B("Request failed with status code "+n.status,n.config,null,n.request,n))}};var k=T.isStandardBrowserEnv()?function e(){return{write:function e(t,r,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(r));if(T.isNumber(n)){s.push("expires="+new Date(n).toGMTString())}if(T.isString(i)){s.push("path="+i)}if(T.isString(o)){s.push("domain="+o)}if(a===true){s.push("secure")}document.cookie=s.join("; ")},read:function e(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function e(t){this.write(t,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();var D=function e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)};var I=function e(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t};var z=function e(t,r){if(t&&!D(r)){return I(t,r)}return r};var J=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];var F=function e(t){var r={};var n;var i;var o;if(!t){return r}T.forEach(t.split("\n"),(function e(t){o=t.indexOf(":");n=T.trim(t.substr(0,o)).toLowerCase();i=T.trim(t.substr(o+1));if(n){if(r[n]&&J.indexOf(n)>=0){return}if(n==="set-cookie"){r[n]=(r[n]?r[n]:[]).concat([i])}else{r[n]=r[n]?r[n]+", "+i:i}}}));return r};var H=T.isStandardBrowserEnv()?function e(){var t=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function i(e){var n=e;if(t){r.setAttribute("href",n);n=r.href}r.setAttribute("href",n);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=i(window.location.href);return function e(t){var r=T.isString(t)?i(t):t;return r.protocol===n.protocol&&r.host===n.host}}():function e(){return function e(){return true}}();function M(e){this.message=e}M.prototype.toString=function e(){return"Cancel"+(this.message?": "+this.message:"")};M.prototype.__CANCEL__=true;var V=M;var W=function e(t){return new Promise((function e(r,n){var i=t.data;var o=t.headers;var a=t.responseType;var s;function u(){if(t.cancelToken){t.cancelToken.unsubscribe(s)}if(t.signal){t.signal.removeEventListener("abort",s)}}if(T.isFormData(i)){delete o["Content-Type"]}var f=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"";var l=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var d=z(t.baseURL,t.url);f.open(t.method.toUpperCase(),R(d,t.params,t.paramsSerializer),true);f.timeout=t.timeout;function h(){if(!f){return}var e="getAllResponseHeaders"in f?F(f.getAllResponseHeaders()):null;var i=!a||a==="text"||a==="json"?f.responseText:f.response;var o={data:i,status:f.status,statusText:f.statusText,headers:e,config:t,request:f};q((function e(t){r(t);u()}),(function e(t){n(t);u()}),o);f=null}if("onloadend"in f){f.onloadend=h}else{f.onreadystatechange=function e(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(h)}}f.onabort=function e(){if(!f){return}n(B("Request aborted",t,"ECONNABORTED",f));f=null};f.onerror=function e(){n(B("Network Error",t,null,f));f=null};f.ontimeout=function e(){var r=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";var i=t.transitional||Q.transitional;if(t.timeoutErrorMessage){r=t.timeoutErrorMessage}n(B(r,t,i.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f));f=null};if(T.isStandardBrowserEnv()){var p=(t.withCredentials||H(d))&&t.xsrfCookieName?k.read(t.xsrfCookieName):undefined;if(p){o[t.xsrfHeaderName]=p}}if("setRequestHeader"in f){T.forEach(o,(function e(t,r){if(typeof i==="undefined"&&r.toLowerCase()==="content-type"){delete o[r]}else{f.setRequestHeader(r,t)}}))}if(!T.isUndefined(t.withCredentials)){f.withCredentials=!!t.withCredentials}if(a&&a!=="json"){f.responseType=t.responseType}if(typeof t.onDownloadProgress==="function"){f.addEventListener("progress",t.onDownloadProgress)}if(typeof t.onUploadProgress==="function"&&f.upload){f.upload.addEventListener("progress",t.onUploadProgress)}if(t.cancelToken||t.signal){s=function(e){if(!f){return}n(!e||e&&e.type?new V("canceled"):e);f.abort();f=null};t.cancelToken&&t.cancelToken.subscribe(s);if(t.signal){t.signal.aborted?s():t.signal.addEventListener("abort",s)}}if(!i){i=null}f.send(i)}))};var X={"Content-Type":"application/x-www-form-urlencoded"};function $(e,t){if(!T.isUndefined(e)&&T.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function K(){var e;if(typeof XMLHttpRequest!=="undefined"){e=W}else if(typeof t!=="undefined"&&Object.prototype.toString.call(t)==="[object process]"){e=W}return e}function Z(e,t,r){if(T.isString(e)){try{(t||JSON.parse)(e);return T.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var G={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:K(),transformRequest:[function e(t,r){P(r,"Accept");P(r,"Content-Type");if(T.isFormData(t)||T.isArrayBuffer(t)||T.isBuffer(t)||T.isStream(t)||T.isFile(t)||T.isBlob(t)){return t}if(T.isArrayBufferView(t)){return t.buffer}if(T.isURLSearchParams(t)){$(r,"application/x-www-form-urlencoded;charset=utf-8");return t.toString()}if(T.isObject(t)||r&&r["Content-Type"]==="application/json"){$(r,"application/json");return Z(t)}return t}],transformResponse:[function e(t){var r=this.transitional||G.transitional;var n=r&&r.silentJSONParsing;var i=r&&r.forcedJSONParsing;var o=!n&&this.responseType==="json";if(o||i&&T.isString(t)&&t.length){try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw L(e,this,"E_JSON_PARSE")}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};T.forEach(["delete","get","head"],(function e(t){G.headers[t]={}}));T.forEach(["post","put","patch"],(function e(t){G.headers[t]=T.merge(X)}));var Q=G;var Y=function e(t,r,n){var i=this||Q;T.forEach(n,(function e(n){t=n.call(i,t,r)}));return t};var ee=function e(t){return!!(t&&t.__CANCEL__)};function te(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new V("canceled")}}var re=function e(t){te(t);t.headers=t.headers||{};t.data=Y.call(t,t.data,t.headers,t.transformRequest);t.headers=T.merge(t.headers.common||{},t.headers[t.method]||{},t.headers);T.forEach(["delete","get","head","post","put","patch","common"],(function e(r){delete t.headers[r]}));var r=t.adapter||Q.adapter;return r(t).then((function e(r){te(t);r.data=Y.call(t,r.data,r.headers,t.transformResponse);return r}),(function e(r){if(!ee(r)){te(t);if(r&&r.response){r.response.data=Y.call(t,r.response.data,r.response.headers,t.transformResponse)}}return Promise.reject(r)}))};var ne=function e(t,r){r=r||{};var n={};function i(e,t){if(T.isPlainObject(e)&&T.isPlainObject(t)){return T.merge(e,t)}else if(T.isPlainObject(t)){return T.merge({},t)}else if(T.isArray(t)){return t.slice()}return t}function o(e){if(!T.isUndefined(r[e])){return i(t[e],r[e])}else if(!T.isUndefined(t[e])){return i(undefined,t[e])}}function a(e){if(!T.isUndefined(r[e])){return i(undefined,r[e])}}function s(e){if(!T.isUndefined(r[e])){return i(undefined,r[e])}else if(!T.isUndefined(t[e])){return i(undefined,t[e])}}function u(e){if(e in r){return i(t[e],r[e])}else if(e in t){return i(undefined,t[e])}}var f={url:a,method:a,data:a,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,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};T.forEach(Object.keys(t).concat(Object.keys(r)),(function e(t){var r=f[t]||o;var i=r(t);T.isUndefined(i)&&r!==u||(n[t]=i)}));return n};var ie={version:"0.25.0"};var oe=ie.version;var ae={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){ae[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var se={};ae.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+oe+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new Error(i(n," has been removed"+(r?" in "+r:"")))}if(r&&!se[n]){se[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};function ue(e,t,r){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new TypeError("option "+o+" must be "+u)}continue}if(r!==true){throw Error("Unknown option "+o)}}}var fe={assertOptions:ue,validators:ae};var ce=fe.validators;function le(e){this.defaults=e;this.interceptors={request:new _,response:new _}}le.prototype.request=function e(t,r){if(typeof t==="string"){r=r||{};r.url=t}else{r=t||{}}if(!r.url){throw new Error("Provided config url is not valid")}r=ne(this.defaults,r);if(r.method){r.method=r.method.toLowerCase()}else if(this.defaults.method){r.method=this.defaults.method.toLowerCase()}else{r.method="get"}var n=r.transitional;if(n!==undefined){fe.assertOptions(n,{silentJSONParsing:ce.transitional(ce.boolean),forcedJSONParsing:ce.transitional(ce.boolean),clarifyTimeoutError:ce.transitional(ce.boolean)},false)}var i=[];var o=true;this.interceptors.request.forEach((function e(t){if(typeof t.runWhen==="function"&&t.runWhen(r)===false){return}o=o&&t.synchronous;i.unshift(t.fulfilled,t.rejected)}));var a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));var s;if(!o){var u=[re,undefined];Array.prototype.unshift.apply(u,i);u=u.concat(a);s=Promise.resolve(r);while(u.length){s=s.then(u.shift(),u.shift())}return s}var f=r;while(i.length){var c=i.shift();var l=i.shift();try{f=c(f)}catch(e){l(e);break}}try{s=re(f)}catch(e){return Promise.reject(e)}while(a.length){s=s.then(a.shift(),a.shift())}return s};le.prototype.getUri=function e(t){if(!t.url){throw new Error("Provided config url is not valid")}t=ne(this.defaults,t);return R(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};T.forEach(["delete","get","head","options"],(function e(t){le.prototype[t]=function(e,r){return this.request(ne(r||{},{method:t,url:e,data:(r||{}).data}))}}));T.forEach(["post","put","patch"],(function e(t){le.prototype[t]=function(e,r,n){return this.request(ne(n||{},{method:t,url:e,data:r}))}}));var de=le;function he(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n){if(r.reason){return}r.reason=new V(n);t(r.reason)}))}he.prototype.throwIfRequested=function e(){if(this.reason){throw this.reason}};he.prototype.subscribe=function e(t){if(this.reason){t(this.reason);return}if(this._listeners){this._listeners.push(t)}else{this._listeners=[t]}};he.prototype.unsubscribe=function e(t){if(!this._listeners){return}var r=this._listeners.indexOf(t);if(r!==-1){this._listeners.splice(r,1)}};he.source=function e(){var t;var r=new he((function e(r){t=r}));return{token:r,cancel:t}};var pe=he;var ve=function e(t){return function e(r){return t.apply(null,r)}};var me=function e(t){return T.isObject(t)&&t.isAxiosError===true};function ge(e){var t=new de(e);var r=i(de.prototype.request,t);T.extend(r,de.prototype,t);T.extend(r,t);r.create=function t(r){return ge(ne(e,r))};return r}var ye=ge(Q);ye.Axios=de;ye.Cancel=V;ye.CancelToken=pe;ye.isCancel=ee;ye.VERSION=ie.version;ye.all=function e(t){return Promise.all(t)};ye.spread=ve;ye.isAxiosError=me;var be=ye;var we=ye;be.default=we;var Ee=be;var Se=function(e){console.debug("[JS-SDK] ".concat(e.method.toUpperCase()," ").concat(e.baseURL).concat(e.url),e.data?JSON.stringify(e.data):"");return e};var Oe=e("V",function(){function e(){this.requestLoggerId=null;this.api=Ee.create({baseURL:"https://api.verdocs.com",timeout:3e3})}e.prototype.setTimeout=function(e){this.api.defaults.timeout=e;return this};e.prototype.setClientID=function(e){this.api.defaults.headers.common["X-Client-ID"]=e;return this};e.prototype.setAuthorization=function(e){if(e){this.api.defaults.headers.common.Authorization="Bearer ".concat(e)}else{delete this.api.defaults.headers.common.Authorization}return this};e.prototype.setSigningAuthorization=function(e){if(e){this.api.defaults.headers.common.signer="Bearer ".concat(e)}else{delete this.api.defaults.headers.common.signer}return this};e.prototype.setBaseURL=function(e){this.api.defaults.baseURL=e;return this};e.prototype.logRequests=function(e){if(e&&this.requestLoggerId===null){this.requestLoggerId=this.api.interceptors.request.use(Se)}else if(!e&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};return e}());var je=Symbol.for("verdocs-api-endpoint");if(!n[je]){n[je]=new Oe}var Ae=n[je];var Ce=Ae;var xe=e("g",(function(){return Ce}));var Te=e("s",(function(e){Ce=e||Ae}));var Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var Re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;var Ue=function(e){e=String(e).replace(/[\t\n\f\r ]+/g,"");if(!Re.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(e.length&3));var t;var r="";var n;var i;var o=0;for(;o<e.length;){t=Ne.indexOf(e.charAt(o++))<<18|Ne.indexOf(e.charAt(o++))<<12|(n=Ne.indexOf(e.charAt(o++)))<<6|(i=Ne.indexOf(e.charAt(o++)));r+=n===64?String.fromCharCode(t>>16&255):i===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,t&255)}return r};var _e=function(e){return JSON.parse(Ue((e||"").split(".")[1]||""))};var Pe=e("d",(function(e){var t;try{t=_e(e);if(t===null){return null}}catch(e){return null}Object.keys(t).forEach((function(e){if(typeof e==="string"&&e.startsWith("https://verdocs.com/")){t[e.replace("https://verdocs.com/","")]=t[e];delete t[e]}}));return t}))}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-6e95da9d.js";let o=class{constructor(e){t(this,e)}handleClick(t){t.preventDefault();let e=t.target;if(e.matches("toggle-icon-buttons")){e=t.target.shadowRoot;const o=e.activeElement;Array.from(o.parentElement.children).filter((t=>t!==o)).map((t=>t.classList.remove("selected"))),o.classList.contains("selected")||o.classList.add("selected")}}render(){return e("div",{class:"container"},e("span",{class:"label"},`${this.options.label}:`),e("div",{class:"buttons"},this.options.buttons.map(((t,o)=>e("button",{id:t.id,key:t.id,innerHTML:t.icon,class:o===this.options.defaultSelection?"selected":""})))))}};o.style="verdocs-toggle{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f2f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33364b;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f2f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";export{o as verdocs_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-44b75396.system.js"],(function(t){"use strict";var e,o;return{setters:[function(t){e=t.r;o=t.h}],execute:function(){var s="verdocs-toggle{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f2f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33364b;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f2f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";var n=t("verdocs_toggle",function(){function t(t){e(this,t)}t.prototype.handleClick=function(t){t.preventDefault();var e=t.target;if(e.matches("toggle-icon-buttons")){e=t.target.shadowRoot;var o=e.activeElement;var s=Array.from(o.parentElement.children).filter((function(t){return t!==o}));s.map((function(t){return t.classList.remove("selected")}));if(!o.classList.contains("selected")){o.classList.add("selected")}}};t.prototype.render=function(){var t=this;return o("div",{class:"container"},o("span",{class:"label"},this.options.label+":"),o("div",{class:"buttons"},this.options.buttons.map((function(e,s){return o("button",{id:e.id,key:e.id,innerHTML:e.icon,class:s===t.options.defaultSelection?"selected":""})}))))};return t}());n.style=s}}}));
|