@verdocs/web-sdk 1.4.0 → 1.4.7
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-4ec35ac7.js +97 -0
- package/dist/cjs/{Token-b86e5335.js → Token-ac80819a.js} +3 -135
- package/dist/{verdocs-web-sdk/buffer-es6-5cef4368.js → cjs/buffer-es6-bc8199b1.js} +47 -14
- package/dist/cjs/index-589f3be8.js +1356 -0
- package/dist/cjs/loader.cjs.js +3 -19
- package/dist/cjs/{index-9c6e5f50.js → popper-71bf3058.js} +0 -186
- package/dist/cjs/verdocs-auth.cjs.entry.js +10 -206
- package/dist/cjs/verdocs-button_2.cjs.entry.js +104 -0
- package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-dropdown_12.cjs.entry.js} +3314 -51
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +228 -0
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +4 -1512
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +4 -90
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +5 -117
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +0 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -2
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +4 -4
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +2 -2
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +7 -9
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -1
- package/dist/components/Auth.js +23 -88
- package/dist/components/Token.js +2 -135
- package/dist/components/buffer-es6.js +39 -14
- package/dist/components/index.js +0 -4
- package/dist/components/{index3.js → popper.js} +0 -186
- package/dist/components/verdocs-auth.js +6 -201
- package/dist/components/verdocs-button2.js +2 -3
- package/dist/components/verdocs-dropdown2.js +2 -2
- package/dist/components/verdocs-field-attachment2.js +2 -2
- package/dist/components/verdocs-field-checkbox2.js +2 -2
- package/dist/components/verdocs-field-date2.js +2 -214
- package/dist/components/verdocs-field-dropdown2.js +2 -2
- package/dist/components/verdocs-field-initial2.js +2 -2
- package/dist/components/verdocs-field-payment2.js +2 -2
- package/dist/components/verdocs-field-radio-button2.js +2 -2
- package/dist/components/verdocs-field-signature2.js +2 -2
- package/dist/components/verdocs-field-textarea2.js +2 -2
- package/dist/components/verdocs-field-textbox2.js +2 -2
- package/dist/components/verdocs-initial-dialog2.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +2 -2
- package/dist/components/verdocs-loader2.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +2 -2
- package/dist/components/verdocs-organization-card.js +1 -1
- package/dist/components/verdocs-quick-functions.js +2 -2
- package/dist/components/verdocs-search-activity2.js +16 -104
- package/dist/components/verdocs-search-box2.js +2 -2
- package/dist/components/verdocs-search-tabs.js +2 -2
- package/dist/components/verdocs-search.js +2 -2
- package/dist/components/verdocs-sign.js +2 -1509
- package/dist/components/verdocs-signature-dialog2.js +2 -2
- package/dist/components/verdocs-status-indicator.js +3 -88
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-text-input2.js +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +2 -2
- package/dist/components/verdocs-view2.js +7 -34
- package/dist/docs.json +3 -3
- package/dist/esm/Auth-15cd42a8.js +92 -0
- package/dist/{verdocs-web-sdk/Token-29eea56d.js → esm/Token-ce37bd9d.js} +2 -135
- package/dist/{cjs/buffer-es6-b2c1c885.js → esm/buffer-es6-136673c8.js} +38 -15
- package/dist/esm/index-859bc689.js +1327 -0
- package/dist/esm/loader.js +3 -19
- package/dist/esm/{index-432c65a6.js → popper-93ecb064.js} +0 -186
- package/dist/esm/verdocs-auth.entry.js +7 -203
- package/dist/esm/verdocs-button_2.entry.js +99 -0
- package/dist/esm/{verdocs-view.entry.js → verdocs-dropdown_12.entry.js} +3287 -35
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +2 -2
- package/dist/esm/verdocs-search-activity_2.entry.js +223 -0
- package/dist/esm/verdocs-search-tabs.entry.js +2 -2
- package/dist/esm/verdocs-search.entry.js +2 -2
- package/dist/esm/verdocs-sign.entry.js +4 -1512
- package/dist/esm/verdocs-signature-dialog.entry.js +2 -2
- package/dist/esm/verdocs-status-indicator.entry.js +3 -89
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-upload-dialog.entry.js +2 -2
- package/dist/esm/verdocs-web-sdk.js +5 -117
- package/dist/esm-es5/Auth-15cd42a8.js +1 -0
- package/dist/esm-es5/Token-ce37bd9d.js +1 -0
- package/dist/esm-es5/buffer-es6-136673c8.js +7 -0
- 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 -0
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +23 -0
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-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 -0
- 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 -11
- 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/embeds/verdocs-auth/verdocs-auth.d.ts +4 -2
- package/dist/verdocs-web-sdk/index.esm.js +0 -1
- package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0c0b4a10.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-144e0842.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1f55d8ac.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2b57857d.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-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/{index.system.js → p-50ea2036.system.js} +0 -0
- package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -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-69ef22bd.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-737b2e99.js +1 -0
- package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8730dc92.system.js +1 -0
- package/dist/verdocs-web-sdk/p-88a300c5.system.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-a7cfe6fc.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-b9164c4b.system.entry.js +1 -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-cec13589.system.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-e2e643c5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e6e2894e.js +1 -0
- package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ea6d6dc7.entry.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.css +1 -57
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -129
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
- package/package.json +4 -4
- package/dist/cjs/Auth-0146ddd8.js +0 -161
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-e9231523.js +0 -6
- package/dist/cjs/dom-7fb93981.js +0 -75
- package/dist/cjs/index-a24f3b6a.js +0 -3096
- package/dist/cjs/index-b5a86b04.js +0 -4
- package/dist/cjs/index-c4be37e1.js +0 -54
- package/dist/cjs/shadow-css-abc19485.js +0 -389
- package/dist/cjs/verdocs-button.cjs.entry.js +0 -49
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -80
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +0 -59
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +0 -39
- package/dist/cjs/verdocs-field-date.cjs.entry.js +0 -2968
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +0 -59
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +0 -52
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +0 -86
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +0 -48
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +0 -52
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +0 -63
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +0 -63
- package/dist/cjs/verdocs-search-activity.cjs.entry.js +0 -263
- package/dist/cjs/verdocs-search-box.cjs.entry.js +0 -60
- package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -62
- package/dist/components/index2.js +0 -1
- package/dist/components/index4.js +0 -47
- package/dist/custom-elements.json +0 -830
- package/dist/esm/Auth-4b21fced.js +0 -157
- package/dist/esm/Token-29eea56d.js +0 -2458
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/buffer-es6-5cef4368.js +0 -1985
- package/dist/esm/css-shim-60f618b9.js +0 -4
- package/dist/esm/dom-4eeb3fee.js +0 -73
- package/dist/esm/index-97ec070b.js +0 -47
- package/dist/esm/index-ddbd60b5.js +0 -3059
- package/dist/esm/index-ef172650.js +0 -1
- package/dist/esm/shadow-css-02866686.js +0 -387
- package/dist/esm/verdocs-button.entry.js +0 -45
- package/dist/esm/verdocs-dropdown.entry.js +0 -76
- package/dist/esm/verdocs-field-attachment.entry.js +0 -55
- package/dist/esm/verdocs-field-checkbox.entry.js +0 -35
- package/dist/esm/verdocs-field-date.entry.js +0 -2964
- package/dist/esm/verdocs-field-dropdown.entry.js +0 -55
- package/dist/esm/verdocs-field-initial.entry.js +0 -48
- package/dist/esm/verdocs-field-payment.entry.js +0 -82
- package/dist/esm/verdocs-field-radio-button.entry.js +0 -44
- package/dist/esm/verdocs-field-signature.entry.js +0 -48
- package/dist/esm/verdocs-field-textarea.entry.js +0 -59
- package/dist/esm/verdocs-field-textbox.entry.js +0 -59
- package/dist/esm/verdocs-search-activity.entry.js +0 -259
- package/dist/esm/verdocs-search-box.entry.js +0 -56
- package/dist/esm/verdocs-text-input.entry.js +0 -58
- package/dist/esm-es5/Auth-4b21fced.js +0 -1
- package/dist/esm-es5/Token-29eea56d.js +0 -1
- package/dist/esm-es5/app-globals-0f993ce5.js +0 -1
- package/dist/esm-es5/buffer-es6-5cef4368.js +0 -7
- package/dist/esm-es5/css-shim-60f618b9.js +0 -1
- package/dist/esm-es5/dom-4eeb3fee.js +0 -21
- package/dist/esm-es5/index-432c65a6.js +0 -1
- package/dist/esm-es5/index-97ec070b.js +0 -1
- package/dist/esm-es5/index-ddbd60b5.js +0 -2
- package/dist/esm-es5/index-ef172650.js +0 -1
- package/dist/esm-es5/shadow-css-02866686.js +0 -12
- package/dist/esm-es5/verdocs-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +0 -1
- package/dist/esm-es5/verdocs-search-activity.entry.js +0 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +0 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
- package/dist/esm-es5/verdocs-view.entry.js +0 -23
- package/dist/verdocs-web-sdk/Auth-4b21fced.js +0 -157
- package/dist/verdocs-web-sdk/Auth-82e38539.system.js +0 -1
- package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +0 -1
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +0 -3
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +0 -1
- package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +0 -7
- package/dist/verdocs-web-sdk/css-shim-60f618b9.js +0 -4
- package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +0 -1
- package/dist/verdocs-web-sdk/dom-4eeb3fee.js +0 -73
- package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +0 -21
- package/dist/verdocs-web-sdk/index-027b383e.system.js +0 -1
- package/dist/verdocs-web-sdk/index-06e036a1.system.js +0 -1
- package/dist/verdocs-web-sdk/index-432c65a6.js +0 -1974
- package/dist/verdocs-web-sdk/index-5d49316f.system.js +0 -1
- package/dist/verdocs-web-sdk/index-6465280a.system.js +0 -2
- package/dist/verdocs-web-sdk/index-97ec070b.js +0 -47
- package/dist/verdocs-web-sdk/index-ddbd60b5.js +0 -3059
- package/dist/verdocs-web-sdk/index-ef172650.js +0 -1
- package/dist/verdocs-web-sdk/shadow-css-02866686.js +0 -387
- package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +0 -13
- package/dist/verdocs-web-sdk/verdocs-auth.entry.js +0 -302
- package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-button.entry.js +0 -45
- package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +0 -76
- package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +0 -55
- package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +0 -35
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +0 -2964
- package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +0 -55
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +0 -48
- package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +0 -82
- package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +0 -44
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +0 -48
- package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +0 -59
- package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +0 -59
- package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +0 -239
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +0 -77
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-loader.entry.js +0 -15
- package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +0 -44
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +0 -18
- package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +0 -27
- package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +0 -259
- package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +0 -56
- package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +0 -16
- package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search.entry.js +0 -15
- package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.js +0 -1995
- package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +0 -235
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +0 -7611
- package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +0 -34
- package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +0 -16
- package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +0 -58
- package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +0 -32
- package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +0 -119
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-view.entry.js +0 -16118
- package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as o}from"./p-2bc58746.js";import{a as i,d as n,V as r,s}from"./p-737b2e99.js";import{B as a}from"./p-ef932a87.js";function c(e){switch(e%10){case 0:return 0===e?"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 l(e,t){return e*t}var d=function(){return(d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},u=new RegExp(/\+[1-9]\d{6,14}/g),h=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,p=function(e,t,o,i){return new(o||(o=Promise))((function(n,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},f=function(e,t){var o,i,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},v=function(e,t,o){return p(void 0,void 0,void 0,(function(){return f(this,(function(){return[2,i().api.put("/documents/".concat(e,"/fields/").concat(t),o).then((function(e){return e.data}))]}))}))};const b="https://stage-api.verdocs.com",g=class{constructor(t){e(this,t),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=!1,this.nextButtonLabel="Start",this.focusedField=""}componentWillLoad(){const e=(new r).setBaseURL(b);s(e)}async componentDidLoad(){try{console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);const{session:o,recipient:r,signerToken:s}=await(t={documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode},p(void 0,void 0,void 0,(function(){return f(this,(function(){return[2,i().api.get("/documents/".concat(t.documentId,"/recipients/").concat(encodeURIComponent(t.roleId),"/invitation/").concat(t.inviteCode)).then((function(e){var t,o,r=(null===(t=e.headers)||void 0===t?void 0:t.signer_token)||"",s=n(r);return i().setAuthorization(null===(o=e.headers)||void 0===o?void 0:o.signer_token),{recipient:e.data,session:s,signerToken:r}}))]}))})));console.log("[SIGN] Got signing session",o),console.log("[SIGN] Recipient",r),this.recipient=r,this.signerToken=s,i().setSigningAuthorization(s),this.recipient.agreed&&(this.nextButtonLabel="Next");const a=await(e=this.documentid,p(void 0,void 0,void 0,(function(){return f(this,(function(){return[2,i().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))})));this.document=a,console.log("[SIGN] Document",a),this.pdfUrl=`${b}/documents/${this.documentid}/envelope_documents/${a.envelope_document_id}?file=true`,this.recipientIndex=this.document.recipients.findIndex((e=>e.role_name==this.roleid)),this.recipientIndex>-1&&console.log("Found recipient",this.document.recipients[this.recipientIndex]),this.fields=this.document.fields.filter((e=>e.recipient_role===this.roleid)),console.log("Loaded fields",this.fields)}catch(e){console.log("Error with signing session",e)}var e,t}handleClickAgree(){var e,t,o,n,r,s,a;console.log("agree clicked"),(e=this.documentid,t=this.roleid,"update",o={agreed:!0},n=void 0,r=void 0,s=void 0,a=function(){return function(e,t){var o,i,n,r,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!((n=(n=s.trys).length>0&&n[n.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}}(this,(function(){return[2,i().api.put("/documents/".concat(e,"/recipients/").concat(t),d({role_name:t,action:"update"},o||{})).then((function(e){return e.data}))]}))},new(s||(s=Promise))((function(e,t){function o(e){try{c(a.next(e))}catch(e){t(e)}}function i(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(o,i)}c((a=a.apply(n,r||[])).next())}))).then((e=>{console.log("update result",e),this.nextButtonLabel="Next",this.recipient=e})).catch((e=>{console.log("update failure",e)}))}async savePDF(){const e=`${this.document.name} - ${this.document.updated_at.split("T")[0]}.pdf`,t=await(o=this.documentid,n=this.document.envelope_document_id,p(void 0,void 0,void 0,(function(){return f(this,(function(){return[2,i().api.get("/documents/".concat(o,"/envelope_documents/").concat(n,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return a.from(e.data,"binary").toString("base64")}))]}))})));var o,n;let r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){let t=document.createElement("a");t.href=window.URL.createObjectURL(r.response),t.download=e,t.style.display="none",document.body.appendChild(t),t.click(),t.remove()};const s=`data:application/pdf;base64,${t}`;console.log("url",s.length,s),r.open("GET",`data:application/pdf;base64,${t}`),r.send()}async handleOptionSelected(e){switch(e.detail.id){case"later":(null===window||void 0===window?void 0:window.STORYBOOK_ENV)||window.alert("User intends to sign later.");break;case"claim":case"decline":case"print":break;case"download":this.savePDF().catch((()=>{}))}}async handleFieldChange(e,t,o){switch(console.log("fieldChange",e,t.detail),e.type){case"textbox":v(this.documentid,e.name,{prepared:!1,value:t.detail}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"checkbox_group":v(this.documentid,e.name,{prepared:!1,value:{options:[{id:o,checked:t.detail}]}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"radio_button_group":const i=e.settings.options.map((e=>({id:e.id,selected:o===e.id})));v(this.documentid,e.name,{prepared:!1,value:{options:i}}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"dropdown":v(this.documentid,e.name,{prepared:!1,value:t.detail}).then((e=>console.log("Update result",e))).catch((e=>console.log("Error updating",e)));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail)}}renderCheckboxGroupOption(e,o,i,n){const r={left:`${l(e.xRatio,i.x)}px`,bottom:`${l(e.yRatio,i.y)}px`,position:"absolute",transform:`scale(${e.xRatio}, ${e.yRatio})`,backgroundColor:c(this.recipientIndex)};return t("verdocs-field-checkbox",{style:r,order:n,value:i.checked,onFieldChange:e=>this.handleFieldChange(o,e,i.id)})}renderRadioGroupOption(e,o,i,n){const r={left:`${l(e.xRatio,i.x)}px`,bottom:`${l(e.yRatio,i.y)}px`,position:"absolute",transform:`scale(${e.xRatio}, ${e.yRatio})`,backgroundColor:c(this.recipientIndex)};return t("verdocs-field-radio-button",{style:r,order:n,value:i.id,name:o.name,checked:i.selected,onFieldChange:e=>this.handleFieldChange(o,e,i.id)})}renderField(e,o){const{required:i=!1,settings:n={}}=e,{x:r=0,y:s=0,base64:a="",placeholder:d="",options:u=[],value:h="",result:p=""}=n,f=this.pdfPageInfo.pages.find((t=>t.pageNumber===e.page));if(!f)return console.log("Unable to render invalid field",e),t("div",{class:"invalid-field"},"Invalid field.");const v={left:`${l(f.xRatio,r)}px`,bottom:`${l(f.yRatio,s)}px`,position:"absolute",transform:`scale(${f.xRatio}, ${f.yRatio})`,backgroundColor:e.settings.rgba||c(this.recipientIndex)};e.settings.height&&(v.height=`${e.settings.height}px`),e.settings.width&&(v.width=`${e.settings.width}px`),console.log("rendering field",e.type,e);const b=`field-${e.name}`;switch(e.type){case"signature":return t("verdocs-field-signature",{style:v,value:a,required:i,id:b});case"initial":return t("verdocs-field-initial",{style:v,required:i,id:b});case"textbox":return t("verdocs-field-textbox",{style:v,order:o,value:p||"",placeholder:d,id:b,onFieldChange:t=>this.handleFieldChange(e,t)});case"textarea":return t("verdocs-field-textarea",{style:v,placeholder:d||"",id:b});case"date":return t("verdocs-field-date",{style:v,order:o,value:p||"",placeholder:d,required:i,id:b});case"dropdown":return t("verdocs-field-dropdown",{style:v,options:u,value:h,required:i,id:b,onFieldChange:t=>this.handleFieldChange(e,t)});case"checkbox":return t("verdocs-field-checkbox",{style:v,value:p||"",id:b});case"checkbox_group":return e.settings.options.map(((t,o)=>this.renderCheckboxGroupOption(f,e,t,o)));case"radio_button_group":return e.settings.options.map(((t,o)=>this.renderRadioGroupOption(f,e,t,o)));case"attachment":return t("verdocs-field-attachment",{style:v,value:p||"",id:b});case"payment":return t("verdocs-field-payment",{style:v,field:e,id:b});default:console.log("[SIGN] Skipping unsupported field type",e)}return t("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')}isFieldValid(e){var t,o,i,n,r,s,a,c,l,d,p,f,v;switch(e.type){case"textbox":switch((null===(t=e.settings)||void 0===t?void 0:t.validator)||""){case"email":return v=(null===(o=e.settings)||void 0===o?void 0:o.result)||"",h.test(v);case"phone":return function(e){return null!==(t=e)&&t.length<16&&t.length>6&&u.test(t)||""===t||null===t;var t}((null===(i=e.settings)||void 0===i?void 0:i.result)||"");default:return!!(null===(n=e.settings)||void 0===n?void 0:n.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!(null===(r=e.settings)||void 0===r?void 0:r.result);case"dropdown":return!!(null===(s=e.settings)||void 0===s?void 0:s.value);case"checkbox_group":const b=((null===(c=null===(a=e.settings)||void 0===a?void 0:a.options)||void 0===c?void 0:c.filter((e=>e.checked)))||[]).length;return b>=((null===(l=e.settings)||void 0===l?void 0:l.minimum_checked)||0)&&b<=((null===(d=e.settings)||void 0===d?void 0:d.maximum_checked)||999);case"radio_button_group":return((null===(f=null===(p=e.settings)||void 0===p?void 0:p.options)||void 0===f?void 0:f.filter((e=>e.selected)))||[]).length>0;default:return!1}}handleDocumentRendered(e){console.log("[SIGN] Document rendered",e.detail),this.pdfPageInfo=e.detail}handleNext(){const e=this.fields.filter((e=>e.required));console.log("required Fields",e);const t=e.findIndex((e=>e.name===this.focusedField));console.log("focused Index",t);let o=t+1;o>=e.length&&(o=0);const i=e[o];if(console.log("next required fielod",i),i){const e=document.getElementById(`field-${i.name}`);null==e||e.focusField(),this.focusedField=i.name}}render(){var e,i,n,r,s;return t(o,{class:{storybook:!!(null===window||void 0===window?void 0:window.STORYBOOK_ENV),agreed:null===(e=this.recipient)||void 0===e?void 0:e.agreed}},t("div",{class:"header"},t("div",{class:"intro"},"Please review and act on these documents."),t("div",{class:"toolbar"},t("div",{class:"tools"},t("verdocs-dropdown",{options:[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:!0},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}],onOptionSelected:e=>this.handleOptionSelected(e)}),(null===(i=this.recipient)||void 0===i?void 0:i.agreed)?t("div",{style:{flex:"1"}}):t("div",{style:{flex:"1",flexDirection:"row",display:"flex",alignItems:"center"}},t("div",{class:"agree-checkbox"},t("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:()=>this.handleClickAgree()}),t("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."),t("verdocs-button",{label:this.nextButtonLabel,disabled:!(null===(n=this.recipient)||void 0===n?void 0:n.agreed),onClick:()=>this.handleNext()})))),(null===(r=this.recipient)||void 0===r?void 0:r.agreed)?t("div",{style:{display:"none"}}):t("div",{class:"cover"}),t("div",{class:"document"},this.pdfUrl?t("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:e=>this.handleDocumentRendered(e)}):t("verdocs-loader",null),((null===(s=this.pdfPageInfo)||void 0===s?void 0:s.pages)||[]).map((e=>{var o;return t("div",{class:"page-controls",style:{height:`${e.height}px`,width:`${e.width}px`,top:`${e.canvasTop}px`,margin:"0 auto"}},(null===(o=this.pdfPageInfo)||void 0===o?void 0:o.numRendered)>0?this.fields.filter((t=>t.page===e.pageNumber)).map(((e,t)=>this.renderField(e,t))):t("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))}};g.style='verdocs-sign{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;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;display:-ms-flexbox;display:flex;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}';export{g as verdocs_sign}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js","./p-8730dc92.system.js","./p-cec13589.system.js","./p-5dfd73f9.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.a},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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}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 p="verdocs-stage";var f=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(p);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"".concat(e," Page")}else{return"".concat(e," Pages")}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return"".concat(e," Recipients")}else{return"".concat(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}());f.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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}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}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as o,H as s}from"./p-2bc58746.js";const e=class{constructor(o){r(this,o)}render(){var r;return o(s,null,null===(r=this.tags)||void 0===r?void 0:r.map((r=>o("span",null,r))))}};e.style='verdocs-template-tags{font-family:"Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';export{e as verdocs_template_tags}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.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:"Barlow", sans-serif;-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:#f5f5fa}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#ffffff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-signature-dialog .tabs .tab:hover{color:#55bc81}';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="".concat(n,"px Dancing Script")}while(t.measureText(this.enteredName).width>e-32);t.textAlign="center";t.textBaseline="middle";t.font="".concat(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",size:"normal",variant:"outline",onPress:function(){return e.handleCancel()}}),i("verdocs-button",{label:"Adopt & Sign",size:"normal",onPress:function(){return e.handleAdopt()}}))))))};return e}());s.style=o}}}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=function(r,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))e[n]=r[n]};return e(r,n)};return function(r,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(r,n);function t(){this.constructor=r}r.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,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?n(e.value):a(e.value).then(l,s)}u((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={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(r){return u([e,r])}}function u(l){if(t)throw new TypeError("Generator is already executing.");while(n)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:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}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,r,n){if(n||arguments.length===2)for(var t=0,a=r.length,i;t<a;t++){if(i||!(t in r)){if(!i)i=Array.prototype.slice.call(r,0,t);i[t]=r[t]}}return e.concat(i||Array.prototype.slice.call(r))};System.register([],(function(e,r){"use strict";return{execute:function(){var n=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,r,n,t){return e.addEventListener(r,n,t)},rel:function(e,r,n,t){return e.removeEventListener(r,n,t)},ce:function(e,r){return new CustomEvent(e,r)}};var f=e("p",(function(e){return Promise.resolve(e)}));var o=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var $=function(e,r,n,t){if(n){n.map((function(n){var t=n[0],a=n[1],i=n[2];var l=v(e,t);var s=c(r,i);var f=p(t);u.ael(l,a,s,f);(r.$rmListeners$=r.$rmListeners$||[]).push((function(){return u.rel(l,a,s,f)}))}))}};var c=function(e,r){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[r](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([r,n])}}}catch(e){he(e)}}};var v=function(e,r){if(r&4)return s;return e};var p=function(e){return(e&2)!==0};var d="{visibility:hidden}.hydrated{visibility:inherit}";var m=function(e,r){if(r===void 0){r=""}{return function(){return}}};var h=function(e,r){{return function(){return}}};var y=new WeakMap;var g=function(e,r,n){var t=be.get(e);if(o&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=r}else{t.replaceSync(r)}}else{t=r}be.set(e,t)};var b=function(e,r,n,t){var a=_(r);var i=be.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,true),[i],false)}}return a};var w=function(e){var r=e.$cmpMeta$;var n=e.$hostElement$;var t=m("attachStyles",r.$tagName$);b(n.getRootNode(),r);t()};var _=function(e,r){return"sc-"+e.$tagName$};var k={};var S=function(e){e=typeof e;return e==="object"||e==="function"};var x=e("h",(function(e,r){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var a=null;var i=null;var l=false;var s=false;var u=[];var f=function(r){for(var n=0;n<r.length;n++){a=r[n];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!S(a)){a=String(a)}if(l&&s){u[u.length-1].$text$+=a}else{u.push(l?N(null,a):a)}s=l}}};f(n);if(r){if(r.key){i=r.key}{var o=r.className||r.class;if(o){r.class=typeof o!=="object"?o:Object.keys(o).filter((function(e){return o[e]})).join(" ")}}}if(typeof e==="function"){return e(r===null?{}:r,u,L)}var $=N(e,null);$.$attrs$=r;if(u.length>0){$.$children$=u}{$.$key$=i}return $}));var N=function(e,r){var n={$flags$:0,$tag$:e,$text$:r,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}return n};var E=e("H",{});var R=function(e){return e&&e.$tag$===E};var L={forEach:function(e,r){return e.map(P).forEach(r)},map:function(e,r){return e.map(P).map(r).map(j)}};var P=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var j=function(e){if(typeof e.vtag==="function"){var r=Object.assign({},e.vattrs);if(e.vkey){r.key=e.vkey}if(e.vname){r.name=e.vname}return x.apply(void 0,__spreadArray([e.vtag,r],e.vchildren||[],false))}var n=N(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var C=function(e,r,n,t,a,i){if(n!==t){var s=me(e,r);var f=r.toLowerCase();if(r==="class"){var o=e.classList;var $=M(n);var c=M(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(r==="style"){{for(var v in n){if(!t||t[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in t){if(!n||t[v]!==n[v]){if(v.includes("-")){e.style.setProperty(v,t[v])}else{e.style[v]=t[v]}}}}else if(r==="key");else if(r==="ref"){if(t){t(e)}}else if(!s&&r[0]==="o"&&r[1]==="n"){if(r[2]==="-"){r=r.slice(3)}else if(me(l,f)){r=f.slice(2)}else{r=f[2]+r.slice(3)}if(n){u.rel(e,r,n,false)}if(t){u.ael(e,r,t,false)}}else{var p=S(t);if((s||p&&t!==null)&&!a){try{if(!e.tagName.includes("-")){var d=t==null?"":t;if(r==="list"){s=false}else if(n==null||e[r]!=d){e[r]=d}}else{e[r]=t}}catch(e){}}if(t==null||t===false){if(t!==false||e.getAttribute(r)===""){{e.removeAttribute(r)}}}else if((!s||i&4||a)&&!p){t=t===true?"":t;{e.setAttribute(r,t)}}}}};var A=/\s/;var M=function(e){return!e?[]:e.split(A)};var O=function(e,r,n,t){var a=r.$elm$.nodeType===11&&r.$elm$.host?r.$elm$.host:r.$elm$;var i=e&&e.$attrs$||k;var l=r.$attrs$||k;{for(t in i){if(!(t in l)){C(a,t,i[t],undefined,n,r.$flags$)}}}for(t in l){C(a,t,i[t],l[t],n,r.$flags$)}};var I=function(e,r,n,t){var i=r.$children$[n];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$);{O(null,i,a)}if(i.$children$){for(l=0;l<i.$children$.length;++l){f=I(e,i,l);if(f){u.appendChild(f)}}}}return u};var T=function(e,r,n,t,a,i){var l=e;var s;for(;a<=i;++a){if(t[a]){s=I(null,n,a);if(s){t[a].$elm$=s;l.insertBefore(s,r)}}}};var q=function(e,r,n,t,a){for(;r<=n;++r){if(t=e[r]){a=t.$elm$;H(t);a.remove()}}};var z=function(e,r,n,t){var a=0;var i=0;var l=0;var s=0;var u=r.length-1;var f=r[0];var o=r[u];var $=t.length-1;var c=t[0];var v=t[$];var p;var d;while(a<=u&&i<=$){if(f==null){f=r[++a]}else if(o==null){o=r[--u]}else if(c==null){c=t[++i]}else if(v==null){v=t[--$]}else if(B(f,c)){U(f,c);f=r[++a];c=t[++i]}else if(B(o,v)){U(o,v);o=r[--u];v=t[--$]}else if(B(f,v)){U(f,v);e.insertBefore(f.$elm$,o.$elm$.nextSibling);f=r[++a];v=t[--$]}else if(B(o,c)){U(o,c);e.insertBefore(o.$elm$,f.$elm$);o=r[--u];c=t[++i]}else{l=-1;{for(s=a;s<=u;++s){if(r[s]&&r[s].$key$!==null&&r[s].$key$===c.$key$){l=s;break}}}if(l>=0){d=r[l];if(d.$tag$!==c.$tag$){p=I(r&&r[i],n,l)}else{U(d,c);r[l]=undefined;p=d.$elm$}c=t[++i]}else{p=I(r&&r[i],n,i);c=t[++i]}if(p){{f.$elm$.parentNode.insertBefore(p,f.$elm$)}}}}if(a>u){T(e,t[$+1]==null?null:t[$+1].$elm$,n,t,i,$)}else if(i>$){q(r,a,u)}};var B=function(e,r){if(e.$tag$===r.$tag$){{return e.$key$===r.$key$}}return false};var U=function(e,r){var n=r.$elm$=e.$elm$;var t=e.$children$;var i=r.$children$;var l=r.$text$;if(l===null){{{O(e,r,a)}}if(t!==null&&i!==null){z(n,t,r,i)}else if(i!==null){if(e.$text$!==null){n.textContent=""}T(n,null,r,i,0,i.length-1)}else if(t!==null){q(t,0,t.length-1)}}else if(e.$text$!==l){n.data=l}};var H=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(H)}};var V=function(e,r){var n=e.$hostElement$;var t=e.$vnode$||N(null,null);var a=R(r)?r:x(null,null,r);a.$tag$=null;a.$flags$|=4;e.$vnode$=a;a.$elm$=t.$elm$=n;U(t,a)};var F=e("g",(function(e){return ve(e).$hostElement$}));var W=e("c",(function(e,r,n){var t=F(e);return{emit:function(e){return D(t,r,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var D=function(e,r,n){var t=u.ce(r,n);e.dispatchEvent(t);return t};var G=function(e,r){if(r&&!e.$onRenderResolve$&&r["s-p"]){r["s-p"].push(new Promise((function(r){return e.$onRenderResolve$=r})))}};var J=function(e,r){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}G(e,e.$ancestorComponent$);var n=function(){return K(e,r)};return Ee(n)};var K=function(e,r){var n=m("scheduleUpdate",e.$cmpMeta$.$tagName$);var t=e.$lazyInstance$;var a;if(r){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var r=e[0],n=e[1];return ee(t,r,n)}));e.$queuedListeners$=null}}{a=ee(t,"componentWillLoad")}}n();return re(a,(function(){return Q(e,t,r)}))};var Q=function(e,r,t){return __awaiter(n,void 0,void 0,(function(){var n,a,i,l,s,u;return __generator(this,(function(f){n=e.$hostElement$;a=m("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(t){w(e)}l=m("render",e.$cmpMeta$.$tagName$);{X(e,r)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}l();a();{s=n["s-p"];u=function(){return Y(e)};if(s.length===0){u()}else{Promise.all(s).then(u);e.$flags$|=4;s.length=0}}return[2]}))}))};var X=function(e,r,n){try{r=r.render();{e.$flags$&=~16}{e.$flags$|=2}{{{V(e,r)}}}}catch(r){he(r,e.$hostElement$)}return null};var Y=function(e){var r=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var t=m("postUpdate",r);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{ne(n)}{ee(a,"componentDidLoad")}t();{e.$onReadyResolve$(n);if(!i){Z()}}}else{{ee(a,"componentDidUpdate")}t()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){Ne((function(){return J(e,false)}))}e.$flags$&=~(4|512)}};var Z=function(e){{ne(s.documentElement)}Ne((function(){return D(l,"appload",{detail:{namespace:t}})}))};var ee=function(e,r,n){if(e&&e[r]){try{return e[r](n)}catch(e){he(e)}}return undefined};var re=function(e,r){return e&&e.then?e.then(r):r()};var ne=function(e){return e.classList.add("hydrated")};var te=function(e,r){if(e!=null&&!S(e)){if(r&4){return e==="false"?false:e===""||!!e}if(r&2){return parseFloat(e)}if(r&1){return String(e)}return e}return e};var ae=function(e,r){return ve(e).$instanceValues$.get(r)};var ie=function(e,r,n,t){var a=ve(e);var i=a.$hostElement$;var l=a.$instanceValues$.get(r);var s=a.$flags$;var u=a.$lazyInstance$;n=te(n,t.$members$[r][0]);var f=Number.isNaN(l)&&Number.isNaN(n);var o=n!==l&&!f;if((!(s&8)||l===undefined)&&o){a.$instanceValues$.set(r,n);if(u){if(t.$watchers$&&s&128){var $=t.$watchers$[r];if($){$.map((function(e){try{u[e](n,l,r)}catch(e){he(e,i)}}))}}if((s&(2|16))===2){J(a,false)}}}};var le=function(e,r,n){if(r.$members$){if(e.watchers){r.$watchers$=e.watchers}var t=Object.entries(r.$members$);var a=e.prototype;t.map((function(e){var t=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,t,{get:function(){return ae(this,t)},set:function(e){ie(this,t,e,r)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}var n=ve(this);return n.$onInstancePromise$.then((function(){var r;return(r=n.$lazyInstance$)[t].apply(r,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,r,n){var t=this;u.jmp((function(){var r=i.get(e);if(t.hasOwnProperty(r)){n=t[r];delete t[r]}else if(a.hasOwnProperty(r)&&typeof t[r]==="number"&&t[r]==n){return}t[r]=n===null&&typeof t[r]==="boolean"?false:n}))};e.observedAttributes=t.filter((function(e){var r=e[0],n=e[1];return n[0]&15})).map((function(e){var r=e[0],n=e[1];var t=n[1]||r;i.set(t,r);return t}))}}return e};var se=function(e,r,t,a,i){return __awaiter(n,void 0,void 0,(function(){var e,n,a,l,s,u,f;return __generator(this,(function(o){switch(o.label){case 0:if(!((r.$flags$&32)===0))return[3,3];r.$flags$|=32;i=ge(t);if(!i.then)return[3,2];e=h();return[4,i];case 1:i=o.sent();e();o.label=2;case 2:if(!i.isProxied){{t.$watchers$=i.watchers}le(i,t,2);i.isProxied=true}n=m("createInstance",t.$tagName$);{r.$flags$|=8}try{new i(r)}catch(e){he(e)}{r.$flags$&=~8}{r.$flags$|=128}n();if(i.style){a=i.style;l=_(t);if(!be.has(l)){s=m("registerStyles",t.$tagName$);g(l,a,!!(t.$flags$&1));s()}}o.label=3;case 3:u=r.$ancestorComponent$;f=function(){return J(r,true)};if(u&&u["s-rc"]){u["s-rc"].push(f)}else{f()}return[2]}}))}))};var ue=function(e){if((u.$flags$&1)===0){var r=ve(e);var n=r.$cmpMeta$;var t=m("connectedCallback",n.$tagName$);if(!(r.$flags$&1)){r.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){G(r,r.$ancestorComponent$=a);break}}}if(n.$members$){Object.entries(n.$members$).map((function(r){var n=r[0],t=r[1][0];if(t&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{se(e,r,n)}}else{$(e,r,n.$listeners$)}t()}};var fe=function(e){if((u.$flags$&1)===0){var r=ve(e);{if(r.$rmListeners$){r.$rmListeners$.map((function(e){return e()}));r.$rmListeners$=undefined}}}};var oe=e("b",(function(e,r){if(r===void 0){r={}}var n=m();var t=[];var a=r.exclude||[];var i=l.customElements;var f=s.head;var o=f.querySelector("meta[charset]");var $=s.createElement("style");var c=[];var v;var p=true;Object.assign(u,r);u.$resourcesUrl$=new URL(r.resourcesUrl||"./",s.baseURI).href;e.map((function(e){e[1].map((function(r){var n={$flags$:r[0],$tagName$:r[1],$members$:r[2],$listeners$:r[3]};{n.$members$=r[2]}{n.$listeners$=r[3]}{n.$watchers$={}}var l=n.$tagName$;var s=function(e){__extends(r,e);function r(r){var t=e.call(this,r)||this;r=t;de(r,n);return t}r.prototype.connectedCallback=function(){var e=this;if(v){clearTimeout(v);v=null}if(p){c.push(this)}else{u.jmp((function(){return ue(e)}))}};r.prototype.disconnectedCallback=function(){var e=this;u.jmp((function(){return fe(e)}))};r.prototype.componentOnReady=function(){return ve(this).$onReadyPromise$};return r}(HTMLElement);n.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){t.push(l);i.define(l,le(s,n,1))}}))}));{$.innerHTML=t+d;$.setAttribute("data-styles","");f.insertBefore($,o?o.nextSibling:f.firstChild)}p=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{u.jmp((function(){return v=setTimeout(Z,30)}))}}n()}));var $e=e("F",(function(e,r){return r}));var ce=new WeakMap;var ve=function(e){return ce.get(e)};var pe=e("r",(function(e,r){return ce.set(r.$lazyInstance$=e,r)}));var de=function(e,r){var n={$flags$:0,$hostElement$:e,$cmpMeta$:r,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}$(e,n,r.$listeners$);return ce.set(e,n)};var me=function(e,r){return r in e};var he=function(e,r){return(0,console.error)(e,r)};var ye=new Map;var ge=function(e,n,t){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=ye.get(i);if(l){return l[a]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return r.import("./".concat(i,".entry.js").concat("")).then((function(e){{ye.set(i,e)}return e[a]}),he)};var be=new Map;var we=[];var _e=[];var ke=function(e,r){return function(n){e.push(n);if(!i){i=true;if(r&&u.$flags$&4){Ne(xe)}else{u.raf(xe)}}}};var Se=function(e){for(var r=0;r<e.length;r++){try{e[r](performance.now())}catch(e){he(e)}}e.length=0};var xe=function(){Se(we);{Se(_e);if(i=we.length>0){u.raf(xe)}}};var Ne=function(e){return f().then(e)};var Ee=ke(_e,true)}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(t){"use strict";var e,r,n;return{setters:[function(t){e=t.r;r=t.h;n=t.H}],execute:function(){var o='verdocs-template-tags{font-family:"Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var s=t("verdocs_template_tags",function(){function t(t){e(this,t)}t.prototype.render=function(){var t;return r(n,null,(t=this.tags)===null||t===void 0?void 0:t.map((function(t){return r("span",null,t)})))};return t}());s.style=o}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(t){"use strict";var e,n,o,i;return{setters:[function(t){e=t.r;n=t.c;o=t.h;i=t.H}],execute:function(){var r='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .label{padding:0 12px}verdocs-button button:disabled{cursor:none}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999;cursor:none}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;cursor:none;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var s=t("verdocs_button",function(){function t(t){e(this,t);this.press=n(this,"press",7);this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.handleClick=function(t){t.preventDefault();this.press.emit()};t.prototype.render=function(){var t=this;return o("button",{disabled:this.disabled,type:this.type,onClick:function(e){return t.handleClick(e)},class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?o("span",{class:"icon start",innerHTML:this.startIcon}):null,o("span",{class:"label"},this.label),this.endIcon?o("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());s.style=r;var a='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-label{display:block;color:#33354c;font-weight:400;font-size:14px;margin:0 0 4px 0}';var l=t("verdocs_text_input",function(){function t(t){e(this,t);this.fieldInput=n(this,"fieldInput",7);this.fieldFocus=n(this,"fieldFocus",7);this.fieldBlur=n(this,"fieldBlur",7);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.type="text";this.disabled=false;this._value=""}t.prototype.componentWillLoad=function(){this._value=this.value};t.prototype.componentDidLoad=function(){};t.prototype.handleInput=function(t){this._value=t.target.value;this.fieldInput.emit(this._value)};t.prototype.handleFocus=function(t){this.fieldFocus.emit(t)};t.prototype.handleBlur=function(t){this.fieldBlur.emit(t)};t.prototype.render=function(){var t=this;return o(i,{class:"input-field"},o("label",null,this.label?o("div",{class:"input-label"},this.label+":"):o("div",null),o("input",{type:this.type,placeholder:this.placeholder,autoComplete:this.autocomplete,disabled:this.disabled,value:this._value,class:"input-element",onInput:function(e){return t.handleInput(e)},onFocus:function(e){return t.handleFocus(e)},onBlur:function(e){return t.handleBlur(e)}})))};return t}());l.style=a}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-5dfd73f9.system.js"],(function(e){"use strict";var t,r;return{setters:[function(e){t=e.B;r=e.p}],execute:function(){var n=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 i=Object.prototype.toString;var o=function(e){return function(t){var r=i.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function a(e){e=e.toLowerCase();return function t(r){return o(r)===e}}function s(e){return Array.isArray(e)}function u(e){return typeof e==="undefined"}function f(e){return e!==null&&!u(e)&&e.constructor!==null&&!u(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}var c=a("ArrayBuffer");function l(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&c(e.buffer)}return t}function d(e){return typeof e==="string"}function p(e){return typeof e==="number"}function h(e){return e!==null&&typeof e==="object"}function v(e){if(o(e)!=="object"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var m=a("Date");var g=a("File");var y=a("Blob");var b=a("FileList");function E(e){return i.call(e)==="[object Function]"}function w(e){return h(e)&&E(e.pipe)}function O(e){var t="[object FormData]";return e&&(typeof FormData==="function"&&e instanceof FormData||i.call(e)===t||E(e.toString)&&e.toString()===t)}var R=a("URLSearchParams");function A(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function _(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(s(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 j(){var e={};function t(t,r){if(v(e[r])&&v(t)){e[r]=j(e[r],t)}else if(v(t)){e[r]=j({},t)}else if(s(t)){e[r]=t.slice()}else{e[r]=t}}for(var r=0,n=arguments.length;r<n;r++){_(arguments[r],t)}return e}function C(e,t,r){_(t,(function t(i,o){if(r&&typeof i==="function"){e[o]=n(i,r)}else{e[o]=i}}));return e}function T(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}function N(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;r&&Object.assign(e.prototype,r)}function x(e,t,r){var n;var i;var o;var a={};t=t||{};do{n=Object.getOwnPropertyNames(e);i=n.length;while(i-- >0){o=n[i];if(!a[o]){t[o]=e[o];a[o]=true}}e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function U(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function P(e){if(!e)return null;var t=e.length;if(u(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r}var B=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&Object.getPrototypeOf(Uint8Array));var D={isArray:s,isArrayBuffer:c,isBuffer:f,isFormData:O,isArrayBufferView:l,isString:d,isNumber:p,isObject:h,isPlainObject:v,isUndefined:u,isDate:m,isFile:g,isBlob:y,isFunction:E,isStream:w,isURLSearchParams:R,isStandardBrowserEnv:S,forEach:_,merge:j,extend:C,trim:A,stripBOM:T,inherits:N,toFlatObject:x,kindOf:o,kindOfTest:a,endsWith:U,toArray:P,isTypedArray:B,isFileList:b};function L(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var k=function e(t,r,n){if(!r){return t}var i;if(n){i=n(r)}else if(D.isURLSearchParams(r)){i=r.toString()}else{var o=[];D.forEach(r,(function e(t,r){if(t===null||typeof t==="undefined"){return}if(D.isArray(t)){r=r+"[]"}else{t=[t]}D.forEach(t,(function e(t){if(D.isDate(t)){t=t.toISOString()}else if(D.isObject(t)){t=JSON.stringify(t)}o.push(L(r)+"="+L(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 q(){this.handlers=[]}q.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};q.prototype.eject=function e(t){if(this.handlers[t]){this.handlers[t]=null}};q.prototype.forEach=function e(t){D.forEach(this.handlers,(function e(r){if(r!==null){t(r)}}))};var F=q;var I=function e(t,r){D.forEach(t,(function e(n,i){if(i!==r&&i.toUpperCase()===r.toUpperCase()){t[r]=n;delete t[i]}}))};function z(e,t,r,n,i){Error.call(this);this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);i&&(this.response=i)}D.inherits(z,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var J=z.prototype;var M={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){M[e]={value:e}}));Object.defineProperties(z,M);Object.defineProperty(J,"isAxiosError",{value:true});z.from=function(e,t,r,n,i,o){var a=Object.create(J);D.toFlatObject(e,a,(function e(t){return t!==Error.prototype}));z.call(a,e.message,t,r,n,i);a.name=e.name;o&&Object.assign(a,o);return a};var W=z;var H={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};function V(e,r){r=r||new FormData;var n=[];function i(e){if(e===null)return"";if(D.isDate(e)){return e.toISOString()}if(D.isArrayBuffer(e)||D.isTypedArray(e)){return typeof Blob==="function"?new Blob([e]):t.from(e)}return e}function o(e,t){if(D.isPlainObject(e)||D.isArray(e)){if(n.indexOf(e)!==-1){throw Error("Circular reference detected in "+t)}n.push(e);D.forEach(e,(function e(n,a){if(D.isUndefined(n))return;var s=t?t+"."+a:a;var u;if(n&&!t&&typeof n==="object"){if(D.endsWith(a,"{}")){n=JSON.stringify(n)}else if(D.endsWith(a,"[]")&&(u=D.toArray(n))){u.forEach((function(e){!D.isUndefined(e)&&r.append(s,i(e))}));return}}o(n,s)}));n.pop()}else{r.append(t,i(e))}}o(e);return r}var X=V;var K=function e(t,r,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){t(n)}else{r(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}};var $=D.isStandardBrowserEnv()?function e(){return{write:function e(t,r,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(r));if(D.isNumber(n)){s.push("expires="+new Date(n).toGMTString())}if(D.isString(i)){s.push("path="+i)}if(D.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 Q=function e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)};var Z=function e(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t};var G=function e(t,r){if(t&&!Q(r)){return Z(t,r)}return r};var Y=["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 ee=function e(t){var r={};var n;var i;var o;if(!t){return r}D.forEach(t.split("\n"),(function e(t){o=t.indexOf(":");n=D.trim(t.substr(0,o)).toLowerCase();i=D.trim(t.substr(o+1));if(n){if(r[n]&&Y.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 te=D.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=D.isString(t)?i(t):t;return r.protocol===n.protocol&&r.host===n.host}}():function e(){return function e(){return true}}();function re(e){W.call(this,e==null?"canceled":e,W.ERR_CANCELED);this.name="CanceledError"}D.inherits(re,W,{__CANCEL__:true});var ne=re;var ie=function e(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""};var oe=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(D.isFormData(i)&&D.isStandardBrowserEnv()){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=G(t.baseURL,t.url);f.open(t.method.toUpperCase(),k(d,t.params,t.paramsSerializer),true);f.timeout=t.timeout;function p(){if(!f){return}var e="getAllResponseHeaders"in f?ee(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};K((function e(t){r(t);u()}),(function e(t){n(t);u()}),o);f=null}if("onloadend"in f){f.onloadend=p}else{f.onreadystatechange=function e(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(p)}}f.onabort=function e(){if(!f){return}n(new W("Request aborted",W.ECONNABORTED,t,f));f=null};f.onerror=function e(){n(new W("Network Error",W.ERR_NETWORK,t,f,f));f=null};f.ontimeout=function e(){var r=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";var i=t.transitional||H;if(t.timeoutErrorMessage){r=t.timeoutErrorMessage}n(new W(r,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,f));f=null};if(D.isStandardBrowserEnv()){var h=(t.withCredentials||te(d))&&t.xsrfCookieName?$.read(t.xsrfCookieName):undefined;if(h){o[t.xsrfHeaderName]=h}}if("setRequestHeader"in f){D.forEach(o,(function e(t,r){if(typeof i==="undefined"&&r.toLowerCase()==="content-type"){delete o[r]}else{f.setRequestHeader(r,t)}}))}if(!D.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 ne: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}var v=ie(d);if(v&&["http","https","file"].indexOf(v)===-1){n(new W("Unsupported protocol "+v+":",W.ERR_BAD_REQUEST,t));return}f.send(i)}))};var ae=null;var se={"Content-Type":"application/x-www-form-urlencoded"};function ue(e,t){if(!D.isUndefined(e)&&D.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function fe(){var e;if(typeof XMLHttpRequest!=="undefined"){e=oe}else if(typeof r!=="undefined"&&Object.prototype.toString.call(r)==="[object process]"){e=oe}return e}function ce(e,t,r){if(D.isString(e)){try{(t||JSON.parse)(e);return D.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var le={transitional:H,adapter:fe(),transformRequest:[function e(t,r){I(r,"Accept");I(r,"Content-Type");if(D.isFormData(t)||D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)){return t}if(D.isArrayBufferView(t)){return t.buffer}if(D.isURLSearchParams(t)){ue(r,"application/x-www-form-urlencoded;charset=utf-8");return t.toString()}var n=D.isObject(t);var i=r&&r["Content-Type"];var o;if((o=D.isFileList(t))||n&&i==="multipart/form-data"){var a=this.env&&this.env.FormData;return X(o?{"files[]":t}:t,a&&new a)}else if(n||i==="application/json"){ue(r,"application/json");return ce(t)}return t}],transformResponse:[function e(t){var r=this.transitional||le.transitional;var n=r&&r.silentJSONParsing;var i=r&&r.forcedJSONParsing;var o=!n&&this.responseType==="json";if(o||i&&D.isString(t)&&t.length){try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw W.from(e,W.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};D.forEach(["delete","get","head"],(function e(t){le.headers[t]={}}));D.forEach(["post","put","patch"],(function e(t){le.headers[t]=D.merge(se)}));var de=le;var pe=function e(t,r,n){var i=this||de;D.forEach(n,(function e(n){t=n.call(i,t,r)}));return t};var he=function e(t){return!!(t&&t.__CANCEL__)};function ve(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ne}}var me=function e(t){ve(t);t.headers=t.headers||{};t.data=pe.call(t,t.data,t.headers,t.transformRequest);t.headers=D.merge(t.headers.common||{},t.headers[t.method]||{},t.headers);D.forEach(["delete","get","head","post","put","patch","common"],(function e(r){delete t.headers[r]}));var r=t.adapter||de.adapter;return r(t).then((function e(r){ve(t);r.data=pe.call(t,r.data,r.headers,t.transformResponse);return r}),(function e(r){if(!he(r)){ve(t);if(r&&r.response){r.response.data=pe.call(t,r.response.data,r.response.headers,t.transformResponse)}}return Promise.reject(r)}))};var ge=function e(t,r){r=r||{};var n={};function i(e,t){if(D.isPlainObject(e)&&D.isPlainObject(t)){return D.merge(e,t)}else if(D.isPlainObject(t)){return D.merge({},t)}else if(D.isArray(t)){return t.slice()}return t}function o(e){if(!D.isUndefined(r[e])){return i(t[e],r[e])}else if(!D.isUndefined(t[e])){return i(undefined,t[e])}}function a(e){if(!D.isUndefined(r[e])){return i(undefined,r[e])}}function s(e){if(!D.isUndefined(r[e])){return i(undefined,r[e])}else if(!D.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,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};D.forEach(Object.keys(t).concat(Object.keys(r)),(function e(t){var r=f[t]||o;var i=r(t);D.isUndefined(i)&&r!==u||(n[t]=i)}));return n};var ye={version:"0.27.2"};var be=ye.version;var Ee={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ee[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var we={};Ee.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+be+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new W(i(n," has been removed"+(r?" in "+r:"")),W.ERR_DEPRECATED)}if(r&&!we[n]){we[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 Oe(e,t,r){if(typeof e!=="object"){throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new W("option "+o+" must be "+u,W.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}}}var Re={assertOptions:Oe,validators:Ee};var Ae=Re.validators;function Se(e){this.defaults=e;this.interceptors={request:new F,response:new F}}Se.prototype.request=function e(t,r){if(typeof t==="string"){r=r||{};r.url=t}else{r=t||{}}r=ge(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){Re.assertOptions(n,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.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=[me,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=me(f)}catch(e){return Promise.reject(e)}while(a.length){s=s.then(a.shift(),a.shift())}return s};Se.prototype.getUri=function e(t){t=ge(this.defaults,t);var r=G(t.baseURL,t.url);return k(r,t.params,t.paramsSerializer)};D.forEach(["delete","get","head","options"],(function e(t){Se.prototype[t]=function(e,r){return this.request(ge(r||{},{method:t,url:e,data:(r||{}).data}))}}));D.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(ge(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Se.prototype[t]=r();Se.prototype[t+"Form"]=r(true)}));var _e=Se;function je(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 ne(n);t(r.reason)}))}je.prototype.throwIfRequested=function e(){if(this.reason){throw this.reason}};je.prototype.subscribe=function e(t){if(this.reason){t(this.reason);return}if(this._listeners){this._listeners.push(t)}else{this._listeners=[t]}};je.prototype.unsubscribe=function e(t){if(!this._listeners){return}var r=this._listeners.indexOf(t);if(r!==-1){this._listeners.splice(r,1)}};je.source=function e(){var t;var r=new je((function e(r){t=r}));return{token:r,cancel:t}};var Ce=je;var Te=function e(t){return function e(r){return t.apply(null,r)}};var Ne=function e(t){return D.isObject(t)&&t.isAxiosError===true};function xe(e){var t=new _e(e);var r=n(_e.prototype.request,t);D.extend(r,_e.prototype,t);D.extend(r,t);r.create=function t(r){return xe(ge(e,r))};return r}var Ue=xe(de);Ue.Axios=_e;Ue.CanceledError=ne;Ue.CancelToken=Ce;Ue.isCancel=he;Ue.VERSION=ye.version;Ue.toFormData=X;Ue.AxiosError=W;Ue.Cancel=Ue.CanceledError;Ue.all=function e(t){return Promise.all(t)};Ue.spread=Te;Ue.isAxiosError=Ne;var Pe=Ue;var Be=Ue;Pe.default=Be;var De=Pe;var Le=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 ke=e("V",function(){function e(){this.requestLoggerId=null;this.api=De.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(Le)}else if(!e&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};return e}());var qe=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var Fe=e("g",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 qe()}try{if(!__global__)return qe();return __global__}finally{delete Object.prototype.__global__}}());var Ie=Symbol.for("verdocs-api-endpoint");if(!Fe[Ie]){Fe[Ie]=new ke}var ze=Fe[Ie];var Je=ze;var Me=e("a",(function(){return Je}));var We=e("s",(function(e){Je=e||ze}));var He="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var Ve=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;var Xe=function(e){e=String(e).replace(/[\t\n\f\r ]+/g,"");if(!Ve.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=He.indexOf(e.charAt(o++))<<18|He.indexOf(e.charAt(o++))<<12|(n=He.indexOf(e.charAt(o++)))<<6|(i=He.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 Ke=function(e){return JSON.parse(Xe((e||"").split(".")[1]||""))};var $e=e("d",(function(e){var t;try{t=Ke(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}))}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(e){"use strict";var t,s;return{setters:[function(e){t=e.r;s=e.h}],execute:function(){var r='verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';var n=e("verdocs_search_tabs",function(){function e(e){t(this,e);this.selected="all"}e.prototype.render=function(){return s("div",null," ")};return e}());n.style=r}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(t){"use strict";var e,i,n,a;return{setters:[function(t){e=t.r;i=t.c;n=t.h;a=t.H}],execute:function(){var o='verdocs-initial-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-initial-dialog.open{display:block}verdocs-initial-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-initial-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-initial-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-initial-dialog .content{font-size:14px;padding:20px}verdocs-initial-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-initial-dialog .buttons verdocs-button{margin-left:16px}verdocs-initial-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-initial-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-initial-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-initial-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-initial-dialog .tabs .tab:hover{color:#55bc81}';var s=t("verdocs_initial_dialog",function(){function t(t){e(this,t);this.adopt=i(this,"adopt",7);this.cancel=i(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredInitials="";this.mode="type"}t.prototype.componentWillLoad=function(){var t=this;this.enteredInitials=this.fullname.split(" ").map((function(t){return t.substring(0,1)})).join("").toUpperCase();var e=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");e.load().then((function(e){document.fonts.add(e);t.fontLoaded=true}))};t.prototype.componentDidLoad=function(){this.redrawSignature()};t.prototype.componentDidUpdate=function(){this.redrawSignature()};t.prototype.redrawSignature=function(){if(!this.canvasElement){return}var t=this.canvasElement.width;var e=this.canvasElement.getContext("2d");e.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var i=100;do{i-=2;e.font="".concat(i,"px Dancing Script")}while(e.measureText(this.enteredInitials).width>t-32);e.textAlign="center";e.textBaseline="middle";e.font="".concat(i,"px Dancing Script");e.fillText(this.enteredInitials,this.canvasElement.width/2,this.canvasElement.height/2)};t.prototype.handleDismiss=function(t){if(t.target.className==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleNameChange=function(t){this.enteredInitials=t.detail};t.prototype.handleAdopt=function(){var t=this.canvasElement.toDataURL("image/png");this.adopt.emit(t);this.open=false};t.prototype.handleCancel=function(){this.cancel.emit();this.open=false};t.prototype.render=function(){var t=this;return n(a,{class:{open:this.open}},n("div",{class:"background-overlay",onClick:function(e){return t.handleDismiss(e)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Create Your Initial"),n("div",{class:"content"},n("verdocs-text-input",{placeholder:"Initials...",label:"Initials",value:this.enteredInitials,onFieldInput:function(e){return t.handleNameChange(e)}}),n("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),n("div",{class:"tabs"},n("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return t.mode="type"}},"Type"),n("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return t.mode="draw"}},"Draw")),this.fontLoaded?n("canvas",{ref:function(e){return t.canvasElement=e}}):n("div",{style:{display:"none"}}),n("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."),n("div",{class:"buttons"},n("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return t.handleCancel()}}),n("verdocs-button",{label:"Adopt & Sign",onPress:function(){return t.handleAdopt()}}))))))};return t}());s.style=o}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as s,H as o}from"./p-2bc58746.js";const a=class{constructor(s){e(this,s)}render(){return console.log("org",JSON.stringify(this.organization,null,2)),s(o,null,s("span",{class:"icon",innerHTML:'<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>'}),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"))))}};a.style='verdocs-organization-card{font-family:"Barlow", sans-serif;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:#33354c}verdocs-organization-card .icon{-ms-flex:0;flex:0;margin:0 7px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;width:24px;margin-bottom:-5px}verdocs-organization-card .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid #1e2031;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%}';export{a as verdocs_organization_card}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(e){"use strict";var i,o,t,s,l;return{setters:[function(e){i=e.r;o=e.c;t=e.h;s=e.F;l=e.H}],execute:function(){var n='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n';var a='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:#707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-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-kba-dialog .buttons verdocs-button{margin-left:16px}';var r=e("verdocs_kba_dialog",function(){function e(e){i(this,e);this.cancel=o(this,"cancel",7);this.done=o(this,"done",7);this.step=1;this.steps=3;this.helptitle="One Time Code";this.helptext="Please check your text messages for a security code, and enter the code below.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.open=false;this.response=""}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.response);this.open=false};e.prototype.render=function(){var e=this;return t(l,{style:{display:this.open?"block":"none"}},t("div",{class:"background-overlay",onClick:function(i){return e.handleDismiss(i)}},t("div",{class:"dialog"},t("div",{class:"heading"},"Confirm Your Identity",this.steps>1?t("span",{class:"step"},"(",this.step,"/",this.steps,")"):t(s,null)),t("div",{class:"help-box"},t("div",{class:"help-icon",innerHTML:n}),t("div",{class:"help-details"},t("div",{class:"help-title"},this.helptitle),t("div",{class:"help-text"},this.helptext))),this.mode==="choice"?t("div",{class:"choices"},this.choices.map((function(i){return t("div",{class:"choice ".concat(i===e.response?"selected":""),onClick:function(){e.response=i}},i)}))):t("div",{class:"input"},t("label",{htmlFor:"verdocs-kba-input"},this.label),t("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),t("div",{class:"buttons"},t("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),t("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:!this.response})))))};return e}());r.style=a}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as n,a as r,d as e}from"./p-737b2e99.js";var t=function(n){return r().api.post("/authentication/login",n).then((function(n){return n.data}))},l=function(n,e){return r().setAuthorization(null),e&&localStorage.removeItem(n),c(n,null),null},a=function(n,t,a){if(void 0===a&&(a=!1),null===t)return l(n,a);var o=e(t||"");return null===o||o.exp&&1e3*o.exp<(new Date).getTime()?l(n,a):(a&&localStorage.setItem(n,t),r().setAuthorization(t),c(n,o),o)},o=function(n){var t=localStorage.getItem(n);if(!t)return null;var l=e(t);return l?l.exp&&1e3*l.exp<(new Date).getTime()?(localStorage.removeItem(n),null):(r().setAuthorization(t),c(n,l),l):null},u=function(n,r){return void 0===r&&(r=!1),l(n,r)},i=Symbol.for("verdocs-session-listeners");n[i]||(n[i]=new Map);var s=Symbol.for("verdocs-session-listener-id");n[s]||(n[s]=0);var c=function(r,e){n[i].forEach((function(n){try{n(r,e)}catch(n){}}))};export{t as a,u as e,o as l,a as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-caed7818.system.js"],(function(e){"use strict";var s,o,n;return{setters:[function(e){s=e.r;o=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:"Barlow", sans-serif;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:#33354c}verdocs-organization-card .icon{-ms-flex:0;flex:0;margin:0 7px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;width:24px;margin-bottom:-5px}verdocs-organization-card .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid #1e2031;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){s(this,e)}e.prototype.render=function(){console.log("org",JSON.stringify(this.organization,null,2));return o(n,null,o("span",{class:"icon",innerHTML:a}),o("span",{class:"content"},this.organization.name),o("div",{class:"popup"},o("div",{class:"popup-header"},o("span",{class:"status"}),o("span",{class:"title"},this.organization.name)),o("div",{class:"popup-body"},o("span",{class:"joined"},o("b",null,"Joined")," ","Jan 1 2022"),o("span",{class:"followers"},o("b",null,"Followers")," 57"),o("span",{class:"website"},o("b",null,"Website")),o("span",{class:"templates"},o("b",null,"Templates")," 7"),o("span",null,"https://www.google.com"))))};return e}());r.style=i}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-2bc58746.js";import{l as i,a as o,s as n,e as a}from"./p-e6e2894e.js";import{V as l,s as r}from"./p-737b2e99.js";import"./p-ef932a87.js";const d="verdocs-stage",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 l).setBaseURL("https://stage-api.verdocs.com/");r(t)}componentDidLoad(){const t=i(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;const s=n(d,t.accessToken,!0);this.activeSession=s,this.isAuthenticated=!0,this.authenticated.emit({authenticated:!0,session:s})})).catch((t=>{var s;console.log("[VERDOCS] 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(){a(d),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:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;background-color:#4c56cb;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:#f5f5fa;-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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as i,h as s,F as o,H as l}from"./p-2bc58746.js";const t=class{constructor(s){e(this,s),this.cancel=i(this,"cancel",7),this.done=i(this,"done",7),this.step=1,this.steps=3,this.helptitle="One Time Code",this.helptext="Please check your text messages for a security code, and enter the code below.",this.mode="choice",this.label="PIN",this.placeholder="Enter your PIN...",this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"],this.open=!1,this.response=""}handleCancel(){this.cancel.emit(),this.open=!1}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.done.emit(this.response),this.open=!1}render(){return s(l,{style:{display:this.open?"block":"none"}},s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(o,null)),s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n'}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),"choice"===this.mode?s("div",{class:"choices"},this.choices.map((e=>s("div",{class:"choice "+(e===this.response?"selected":""),onClick:()=>{this.response=e}},e)))):s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onPress:()=>this.handleCancel()}),s("verdocs-button",{label:"Done",onPress:()=>this.handleDone(),disabled:!this.response})))))}};t.style='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:#707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-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-kba-dialog .buttons verdocs-button{margin-left:16px}';export{t as verdocs_kba_dialog}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function n(r,t,n){return r(n={path:t,exports:{},require:function(){return e()}},n.exports),n.exports}function i(r){if(r.__esModule)return r;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(r).forEach((function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})})),t}function e(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var u=r.process;const f="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var o=[],s=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,h=!1;function c(){h=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=r.length;t<n;++t)o[t]=r[t],s[r.charCodeAt(t)]=t;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63}function v(r,t,n){for(var i,e=[],u=t;u<n;u+=3)e.push(o[(i=(r[u]<<16)+(r[u+1]<<8)+r[u+2])>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return e.join("")}function w(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 l(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,l=i?1:-1,g=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+=l,o/=256,e-=8);for(f=f<<e|o,a+=e;a>0;r[n+w]=255&f,w+=l,f/=256,a-=8);r[n+w-l]|=128*g}var g={}.toString,y=Array.isArray||function(r){return"[object Array]"==g.call(r)};function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(r,t){if(d()<t)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t)).__proto__=p.prototype:(null===r&&(r=new p(t)),r.length=t),r}function p(r,t,n){if(!(p.TYPED_ARRAY_SUPPORT||this instanceof p))return new p(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 A(this,r)}return m(this,r,t,n)}function m(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),p.TYPED_ARRAY_SUPPORT?(r=t).__proto__=p.prototype:r=M(r,t),r}(r,t,n,i):"string"==typeof t?function(r,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!p.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|T(t,n),e=(r=b(r,i)).write(t,n);return e!==i&&(r=r.slice(0,e)),r}(r,t,n):function(r,t){if(R(t)){var n=0|B(t.length);return 0===(r=b(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?b(r,0):M(r,t);if("Buffer"===t.type&&y(t.data))return M(r,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(r,t)}function E(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 A(r,t){if(E(t),r=b(r,t<0?0:0|B(t)),!p.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)r[n]=0;return r}function M(r,t){var n=t.length<0?0:0|B(t.length);r=b(r,n);for(var i=0;i<n;i+=1)r[i]=255&t[i];return r}function B(r){if(r>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|r}function R(r){return!(null==r||!r._isBuffer)}function T(r,t){if(R(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 X(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(r).length;default:if(i)return X(r).length;t=(""+t).toLowerCase(),i=!0}}function x(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 Z(this,t,n);case"utf8":case"utf-8":return q(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),i=!0}}function U(r,t,n){var i=r[t];r[t]=r[n],r[n]=i}function k(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=p.from(t,i)),R(t))return 0===t.length?-1:N(r,t,n,i,e);if("number"==typeof t)return t&=255,p.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?e?Uint8Array.prototype.indexOf.call(r,t,n):Uint8Array.prototype.lastIndexOf.call(r,t,n):N(r,[t],n,i,e);throw new TypeError("val must be string, number or Buffer")}function N(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 S(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 I(r,t,n,i){return $(X(t,r.length-n),r,n,i)}function j(r,t,n,i){return $(function(r){for(var t=[],n=0;n<r.length;++n)t.push(255&r.charCodeAt(n));return t}(t),r,n,i)}function z(r,t,n,i){return j(r,t,n,i)}function O(r,t,n,i){return $(Y(t),r,n,i)}function F(r,t,n,i){return $(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 _(r,t,n){return function(r){var t;h||c();for(var n=r.length,i=n%3,e="",u=[],f=16383,s=0,a=n-i;s<a;s+=f)u.push(v(r,s,s+f>a?a:s+f));return 1===i?(e+=o[(t=r[n-1])>>2],e+=o[t<<4&63],e+="=="):2===i&&(e+=o[(t=(r[n-2]<<8)+r[n-1])>>10],e+=o[t>>4&63],e+=o[t<<2&63],e+="="),u.push(e),u.join("")}(0===t&&n===r.length?r:r.slice(t,n))}function q(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 D(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 L(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 Z(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 C(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 G(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 H(r,t,n,i,e,u){if(!R(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 J(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 K(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 P(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 Q(r,t,n,i,e){return e||P(r,0,n,4),l(r,t,n,i,23,4),n+4}function V(r,t,n,i,e){return e||P(r,0,n,8),l(r,t,n,i,52,8),n+8}p.TYPED_ARRAY_SUPPORT=void 0===f.TYPED_ARRAY_SUPPORT||f.TYPED_ARRAY_SUPPORT,p.poolSize=8192,p._augment=function(r){return r.__proto__=p.prototype,r},p.from=function(r,t,n){return m(null,r,t,n)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array),p.alloc=function(r,t,n){return function(r,t,n,i){return E(t),t<=0?b(r,t):void 0!==n?"string"==typeof i?b(r,t).fill(n,i):b(r,t).fill(n):b(r,t)}(null,r,t,n)},p.allocUnsafe=function(r){return A(null,r)},p.allocUnsafeSlow=function(r){return A(null,r)},p.isBuffer=function(r){return null!=r&&(!!r._isBuffer||rr(r)||function(r){return"function"==typeof r.readFloatLE&&"function"==typeof r.slice&&rr(r.slice(0,0))}(r))},p.compare=function(r,t){if(!R(r)||!R(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},p.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}},p.concat=function(r,t){if(!y(r))throw new TypeError('"list" argument must be an Array of Buffers');if(0===r.length)return p.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<r.length;++n)t+=r[n].length;var i=p.allocUnsafe(t),e=0;for(n=0;n<r.length;++n){var u=r[n];if(!R(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,e),e+=u.length}return i},p.byteLength=T,p.prototype._isBuffer=!0,p.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)U(this,t,t+1);return this},p.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)U(this,t,t+3),U(this,t+1,t+2);return this},p.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)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this},p.prototype.toString=function(){var r=0|this.length;return 0===r?"":0===arguments.length?q(this,0,r):x.apply(this,arguments)},p.prototype.equals=function(r){if(!R(r))throw new TypeError("Argument must be a Buffer");return this===r||0===p.compare(this,r)},p.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+">"},p.prototype.compare=function(r,t,n,i,e){if(!R(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},p.prototype.includes=function(r,t,n){return-1!==this.indexOf(r,t,n)},p.prototype.indexOf=function(r,t,n){return k(this,r,t,n,!0)},p.prototype.lastIndexOf=function(r,t,n){return k(this,r,t,n,!1)},p.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 S(this,r,t,n);case"utf8":case"utf-8":return I(this,r,t,n);case"ascii":return j(this,r,t,n);case"latin1":case"binary":return z(this,r,t,n);case"base64":return O(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,r,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},p.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),p.TYPED_ARRAY_SUPPORT)(n=this.subarray(r,t)).__proto__=p.prototype;else{var e=t-r;n=new p(e,void 0);for(var u=0;u<e;++u)n[u]=this[u+r]}return n},p.prototype.readUIntLE=function(r,t,n){r|=0,t|=0,n||G(r,t,this.length);for(var i=this[r],e=1,u=0;++u<t&&(e*=256);)i+=this[r+u]*e;return i},p.prototype.readUIntBE=function(r,t,n){r|=0,t|=0,n||G(r,t,this.length);for(var i=this[r+--t],e=1;t>0&&(e*=256);)i+=this[r+--t]*e;return i},p.prototype.readUInt8=function(r,t){return t||G(r,1,this.length),this[r]},p.prototype.readUInt16LE=function(r,t){return t||G(r,2,this.length),this[r]|this[r+1]<<8},p.prototype.readUInt16BE=function(r,t){return t||G(r,2,this.length),this[r]<<8|this[r+1]},p.prototype.readUInt32LE=function(r,t){return t||G(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},p.prototype.readUInt32BE=function(r,t){return t||G(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},p.prototype.readIntLE=function(r,t,n){r|=0,t|=0,n||G(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},p.prototype.readIntBE=function(r,t,n){r|=0,t|=0,n||G(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},p.prototype.readInt8=function(r,t){return t||G(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},p.prototype.readInt16LE=function(r,t){t||G(r,2,this.length);var n=this[r]|this[r+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(r,t){t||G(r,2,this.length);var n=this[r+1]|this[r]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(r,t){return t||G(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},p.prototype.readInt32BE=function(r,t){return t||G(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},p.prototype.readFloatLE=function(r,t){return t||G(r,4,this.length),w(this,r,!0,23,4)},p.prototype.readFloatBE=function(r,t){return t||G(r,4,this.length),w(this,r,!1,23,4)},p.prototype.readDoubleLE=function(r,t){return t||G(r,8,this.length),w(this,r,!0,52,8)},p.prototype.readDoubleBE=function(r,t){return t||G(r,8,this.length),w(this,r,!1,52,8)},p.prototype.writeUIntLE=function(r,t,n,i){r=+r,t|=0,n|=0,i||H(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},p.prototype.writeUIntBE=function(r,t,n,i){r=+r,t|=0,n|=0,i||H(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},p.prototype.writeUInt8=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,1,255,0),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[t]=255&r,t+1},p.prototype.writeUInt16LE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):J(this,r,t,!0),t+2},p.prototype.writeUInt16BE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):J(this,r,t,!1),t+2},p.prototype.writeUInt32LE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t+3]=r>>>24,this[t+2]=r>>>16,this[t+1]=r>>>8,this[t]=255&r):K(this,r,t,!0),t+4},p.prototype.writeUInt32BE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):K(this,r,t,!1),t+4},p.prototype.writeIntLE=function(r,t,n,i){if(r=+r,t|=0,!i){var e=Math.pow(2,8*n-1);H(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},p.prototype.writeIntBE=function(r,t,n,i){if(r=+r,t|=0,!i){var e=Math.pow(2,8*n-1);H(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},p.prototype.writeInt8=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,1,127,-128),p.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[t]=255&r,t+1},p.prototype.writeInt16LE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8):J(this,r,t,!0),t+2},p.prototype.writeInt16BE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[t]=r>>>8,this[t+1]=255&r):J(this,r,t,!1),t+2},p.prototype.writeInt32LE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[t]=255&r,this[t+1]=r>>>8,this[t+2]=r>>>16,this[t+3]=r>>>24):K(this,r,t,!0),t+4},p.prototype.writeInt32BE=function(r,t,n){return r=+r,t|=0,n||H(this,r,t,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),p.TYPED_ARRAY_SUPPORT?(this[t]=r>>>24,this[t+1]=r>>>16,this[t+2]=r>>>8,this[t+3]=255&r):K(this,r,t,!1),t+4},p.prototype.writeFloatLE=function(r,t,n){return Q(this,r,t,!0,n)},p.prototype.writeFloatBE=function(r,t,n){return Q(this,r,t,!1,n)},p.prototype.writeDoubleLE=function(r,t,n){return V(this,r,t,!0,n)},p.prototype.writeDoubleBE=function(r,t,n){return V(this,r,t,!1,n)},p.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||!p.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},p.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&&!p.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=R(r)?r:X(new p(r,i).toString()),o=f.length;for(u=0;u<n-t;++u)this[u+t]=f[u%o]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function X(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 Y(r){return function(r){var t,n,i,e,u,f;h||c();var o=r.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");f=new a(3*o/4-(u="="===r[o-2]?2:"="===r[o-1]?1:0)),i=u>0?o-4:o;var v=0;for(t=0,n=0;t<i;t+=4,n+=3)e=s[r.charCodeAt(t)]<<18|s[r.charCodeAt(t+1)]<<12|s[r.charCodeAt(t+2)]<<6|s[r.charCodeAt(t+3)],f[v++]=e>>16&255,f[v++]=e>>8&255,f[v++]=255&e;return 2===u?(e=s[r.charCodeAt(t)]<<2|s[r.charCodeAt(t+1)]>>4,f[v++]=255&e):1===u&&(e=s[r.charCodeAt(t)]<<10|s[r.charCodeAt(t+1)]<<4|s[r.charCodeAt(t+2)]>>2,f[v++]=e>>8&255,f[v++]=255&e),f}(function(r){if((r=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(r).replace(W,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function $(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 rr(r){return!!r.constructor&&"function"==typeof r.constructor.isBuffer&&r.constructor.isBuffer(r)}export{p as B,t as a,r as b,n as c,e as d,i as g,u as p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):r(e.value).then(a,l)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,i;o<r;o++){if(i||!(o in t)){if(!i)i=Array.prototype.slice.call(t,0,o);i[o]=t[o]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-caed7818.system.js"],(function(e){"use strict";var t,n,o,r;return{setters:[function(e){t=e.r;n=e.c;o=e.h;r=e.H}],execute:function(){var i=function(e){return new Promise((function(t,n){var o=new FileReader;o.onload=function(){return t({lastModified:e.lastModified,size:e.size,type:e.type,name:e.name,data:o.result})};o.onerror=n;if(e){o.readAsDataURL(e)}else{n(new Error("Invalid file"))}}))};var a='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13" />\n</svg>\n';var l='<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">\n <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />\n</svg>\n';var s='verdocs-upload-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}';var d=e("verdocs_upload_dialog",function(){function e(e){t(this,e);this.cancel=n(this,"cancel",7);this.done=n(this,"done",7);this.open=false;this.draggingOver=false;this.decodedFiles=[]}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.decodedFiles);this.open=false};e.prototype.handleDragOver=function(e){e.preventDefault();this.draggingOver=true};e.prototype.handleDragLeave=function(e){e.preventDefault();this.draggingOver=false};e.prototype.handleDrop=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r;return __generator(this,(function(a){switch(a.label){case 0:e.preventDefault();this.draggingOver=false;t=[];if(e.dataTransfer.items){for(n=0;n<e.dataTransfer.items.length;n++){if(e.dataTransfer.items[n].kind==="file"){o=e.dataTransfer.items[n].getAsFile();t.push(o)}}}else{t=e.dataTransfer.files}r=this;return[4,Promise.all(t.map(i))];case 1:r.decodedFiles=a.sent();return[2]}}))}))};e.prototype.handleRemoveAttachment=function(e){var t=__spreadArray([],this.decodedFiles,true);t.splice(e,1);this.decodedFiles=t};e.prototype.handleSelectFile=function(){var e;(e=this.fileInput)===null||e===void 0?void 0:e.click()};e.prototype.handleFileChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,r,a,l;return __generator(this,(function(s){switch(s.label){case 0:console.log("fileChange",e);console.log("files",(t=this.fileInput)===null||t===void 0?void 0:t.files);r=[];for(a=0;a<((n=this.fileInput)===null||n===void 0?void 0:n.files.length);a++){r.push((o=this.fileInput)===null||o===void 0?void 0:o.files[a])}l=this;return[4,Promise.all(r.map(i))];case 1:l.decodedFiles=s.sent();return[2]}}))}))};e.prototype.render=function(){var e=this;return o(r,{style:{display:this.open?"block":"none"}},o("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},o("div",{class:"dialog"},o("div",{class:"heading"},"Upload attachment"),this.decodedFiles.length<1?o("div",{class:{"drop-target":true,"dragging-over":this.draggingOver},onDragOver:function(t){return e.handleDragOver(t)},onDragLeave:function(t){return e.handleDragLeave(t)},onDrop:function(t){return e.handleDrop(t)}},o("p",null,"Drag and drop a file here..."),o("p",null,"- or -"),o("verdocs-button",{label:"Select a file...",onPress:function(){return e.handleSelectFile()}}),o("input",{type:"file",ref:function(t){return e.fileInput=t},style:{display:"none"},onChange:function(t){return e.handleFileChange(t)}})):o("div",{class:"attachments"},this.decodedFiles.map((function(t,n){return o("div",{class:"attachment"},o("div",{class:"icon",innerHTML:a}),o("div",{class:"name"},t.name),o("div",{class:"icon trash",innerHTML:l,onClick:function(){return e.handleRemoveAttachment(n)}}))}))),o("div",{class:"buttons"},o("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),o("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:this.decodedFiles.length<1})))))};return e}());d.style=s}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as n}from"./p-2bc58746.js";const i=class{constructor(n){e(this,n),this.createTemplate=t(this,"createTemplate",7),this.createDocument=t(this,"createDocument",7)}handleCreateTemplate(){this.createTemplate.emit()}handleCreateDocument(){this.createDocument.emit()}render(){return n("div",{class:"container"},n("p",{class:"title"},"Quick Create"),n("button",{onClick:()=>this.handleCreateTemplate(),innerHTML:'<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>'},"Template"),n("button",{onClick:()=>this.handleCreateDocument(),innerHTML:'<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>'},"Document"))}};i.style='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}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}';export{i as verdocs_quick_functions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as n,H as e}from"./p-2bc58746.js";const i=class{constructor(n){t(this,n),this.press=o(this,"press",7),this.startIcon=null,this.endIcon=null,this.size="normal",this.type="button",this.variant="standard",this.disabled=!1}handleClick(t){t.preventDefault(),this.press.emit()}render(){return n("button",{disabled:this.disabled,type:this.type,onClick:t=>this.handleClick(t),class:`${this.variant} ${this.size} ${this.type}`},this.startIcon?n("span",{class:"icon start",innerHTML:this.startIcon}):null,n("span",{class:"label"},this.label),this.endIcon?n("span",{class:"icon end",innerHTML:this.endIcon}):null)}};i.style='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .label{padding:0 12px}verdocs-button button:disabled{cursor:none}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999;cursor:none}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;cursor:none;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';const s=class{constructor(n){t(this,n),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 n(e,{class:"input-field"},n("label",null,this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("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)})))}};s.style='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-label{display:block;color:#33354c;font-weight:400;font-size:14px;margin:0 0 4px 0}';export{i as verdocs_button,s as verdocs_text_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as o,h as i,H as t}from"./p-2bc58746.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"))}))};const 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:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-upload-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-upload-dialog .dialog{width:300px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-upload-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-upload-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-upload-dialog .buttons verdocs-button{margin-left:16px}verdocs-upload-dialog .drop-target{padding:30px 15px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5f5;border:2px dashed #979797;min-height:260px;text-align:center;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:rgba(0, 0, 0, 0.54);opacity:1;margin:20px 0}verdocs-upload-dialog .drop-target p{margin:12px 0}verdocs-upload-dialog .drop-target.dragging-over{border:5px solid #4c56cb}verdocs-upload-dialog .drop-target>verdocs-button{margin:12px 0;display:inline-block}verdocs-upload-dialog .attachments{height:56px;font-size:0;margin:20px 0;padding:0 16px;line-height:56px;white-space:normal;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)}verdocs-upload-dialog .attachments .attachment{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-upload-dialog .attachments .attachment .icon{width:18px;height:18px;line-height:18px}verdocs-upload-dialog .attachments .attachment .icon.trash{cursor:pointer}verdocs-upload-dialog .attachments .attachment .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:0 8px;font-size:14px;font-weight:400}';export{s as verdocs_upload_dialog}
|