@verdocs/web-sdk 4.2.13 → 4.2.25
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/{Toast-bb6f20af.js → Toast-818b7b3e.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +98 -103
- package/dist/cjs/verdocs-button_3.cjs.entry.js +9 -4
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_10.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +8 -8
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +12 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +12 -2
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -2
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +13 -8
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +101 -109
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
- package/dist/collection/utils/Toast.js +2 -2
- package/dist/components/Toast.js +2 -2
- package/dist/components/verdocs-auth.js +102 -110
- package/dist/components/verdocs-dialog.js +1 -1
- package/dist/components/verdocs-envelope-document-page2.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +6 -6
- package/dist/components/verdocs-initial-dialog2.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +2 -2
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-quick-functions2.js +1 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-search.js +1 -1
- package/dist/components/verdocs-signature-dialog2.js +1 -1
- package/dist/components/verdocs-status-indicator2.js +2 -2
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-document-page2.js +1 -1
- package/dist/components/verdocs-template-role-properties2.js +7 -7
- package/dist/components/verdocs-template-sender2.js +1 -1
- package/dist/components/verdocs-template-star2.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-text-input2.js +10 -4
- package/dist/components/verdocs-toggle-button2.js +1 -1
- package/dist/components/verdocs-toolbar-icon2.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +1 -1
- package/dist/esm/{Toast-b71de686.js → Toast-3e2645fc.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +99 -104
- package/dist/esm/verdocs-button_3.entry.js +9 -4
- package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm/verdocs-dialog.entry.js +1 -1
- package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +7 -7
- package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
- package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-preview_10.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm/verdocs-radio-button_3.entry.js +8 -8
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +1 -1
- package/dist/esm/verdocs-status-indicator.entry.js +2 -2
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -2
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Toast-b71de686.js → Toast-3e2645fc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_10.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +1 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +10 -13
- package/dist/verdocs-web-sdk/{p-b3017cd6.entry.js → p-0349f360.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-20593762.entry.js → p-0ff14c4d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-67e9f8a5.entry.js → p-1dd1d686.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ee31f33.system.entry.js → p-1fec2d1e.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f9b5a02.entry.js → p-3093ede7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9ce9d353.system.entry.js → p-314321b8.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-322fa613.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-51544250.system.entry.js → p-3a4dcc93.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8ca0c8c2.system.entry.js → p-3a8b2213.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d6f6f255.entry.js → p-402a35bf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71f53fd6.entry.js → p-40d811fe.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0d54abe5.entry.js → p-4145b69a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-48fce604.system.entry.js → p-420fc040.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7a4930b1.entry.js → p-4291db9f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-62af2ee6.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-62d7e050.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0713ab8d.entry.js → p-67c3b3d1.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ee08c75b.system.entry.js → p-72ae790a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-65df6ef0.entry.js → p-748ed4ef.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-71efd549.system.entry.js → p-7b222135.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cef88396.system.entry.js → p-7bfe3ed2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3f246894.entry.js → p-7e6fa885.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e1679e5b.system.entry.js → p-7ef593c3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a7dac539.entry.js → p-8092bd81.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-cf1ae7bf.entry.js → p-82f7b16a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fd2c9b30.entry.js → p-83c81948.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2be9ba53.system.entry.js → p-8c3c0869.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f632ffac.entry.js → p-8ce594b2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d2feac5b.system.entry.js → p-96e5a460.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-aed8139a.system.entry.js → p-99510d53.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fc5e568d.system.entry.js → p-9c955106.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6bbea733.system.entry.js → p-a908ebeb.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1b6664c9.entry.js → p-ad2814b4.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8d0807ab.system.entry.js → p-ad474154.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-b2b16ce8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-08210588.system.entry.js → p-bb0ed696.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7ce23c90.system.js → p-c8915559.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4bb08486.entry.js → p-d61235cf.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-77ec3348.entry.js → p-dda420e7.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a1289b75.system.entry.js → p-e772c022.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-10947d22.entry.js → p-eaf4de2f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1030a0b7.system.entry.js → p-ebc3ed52.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-fdb77c22.system.entry.js → p-f2f6c646.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6fc92b73.system.entry.js → p-f54b4cc0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-78908c67.entry.js → p-f978550e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-026b3103.js → p-fa58907b.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f80e65ce.entry.js → p-fe246d59.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/verdocs-web-sdk/p-3d0ceb71.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-50aa20d5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dd426399.system.entry.js +0 -1
@@ -1,44 +1,43 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-b89cf6a4.js';
|
2
|
-
import { VerdocsEndpoint, createProfile, authenticate,
|
3
|
-
import { V as VerdocsToast } from './Toast-
|
2
|
+
import { VerdocsEndpoint, createProfile, verifyEmail, authenticate, getMyUser, resendVerification, resetPassword } from '@verdocs/js-sdk';
|
3
|
+
import { V as VerdocsToast } from './Toast-3e2645fc.js';
|
4
4
|
import { S as SDKError } from './errors-887f1e88.js';
|
5
5
|
|
6
|
-
const verdocsAuthCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-auth{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-
|
6
|
+
const verdocsAuthCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-auth{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{width:320px;display:-ms-flexbox;display:flex;padding:20px;max-width:90%;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-pack:center;justify-content:center;background:#ffffff}verdocs-auth .logo{width:128px;max-width:100%;margin:20px 0 30px}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 h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth h6{text-align:center;font-weight:500;font-size:16px;line-height:1.75;margin:0 0 20px 0}verdocs-auth em{font-size:14px;margin:15px 0}verdocs-auth .buttons{gap:20px;margin:20px 0 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}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}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p{margin:0 0 1em 0}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}";
|
7
7
|
const VerdocsAuthStyle0 = verdocsAuthCss;
|
8
8
|
|
9
|
-
const RECHECK_INTERVAL = 5000;
|
10
9
|
const VerdocsAuth = class {
|
11
10
|
constructor(hostRef) {
|
12
11
|
registerInstance(this, hostRef);
|
13
12
|
this.authenticated = createEvent(this, "authenticated", 7);
|
14
13
|
this.sdkError = createEvent(this, "sdkError", 7);
|
15
|
-
this.recheckTimer = null;
|
16
14
|
this.resendDisabledTimer = null;
|
17
|
-
|
15
|
+
// We can't instantly log in on the default endpoint because other listeners might see
|
16
|
+
// its events and incorrectly trigger before we're done. So we manage our own temp
|
17
|
+
// endpoint and pass the final tokens to the default once we're ready.
|
18
|
+
this.tempAuthEndpoint = new VerdocsEndpoint({
|
19
|
+
baseURL: VerdocsEndpoint.getDefault().getBaseURL(),
|
20
|
+
persist: false,
|
21
|
+
});
|
18
22
|
this.endpoint = VerdocsEndpoint.getDefault();
|
19
23
|
this.visible = true;
|
20
24
|
this.logo = 'https://app.verdocs.com/assets/blue-logo.svg';
|
21
|
-
this.isAuthenticated = false;
|
22
25
|
this.displayMode = 'login';
|
23
26
|
this.org_name = '';
|
24
27
|
this.first_name = '';
|
25
28
|
this.last_name = '';
|
26
|
-
this.
|
29
|
+
this.email = '';
|
30
|
+
this.verificationCode = '';
|
27
31
|
this.password = '';
|
32
|
+
this.confirmpass = '';
|
28
33
|
this.submitting = false;
|
29
|
-
this.activeSession = null;
|
30
|
-
this.accountType = 'org';
|
31
|
-
this.signupStep = 1;
|
32
34
|
this.resendDisabled = false;
|
33
|
-
this.checkingOrg = false;
|
34
35
|
}
|
35
36
|
componentWillLoad() {
|
36
37
|
var _a, _b;
|
37
38
|
this.endpoint.loadSession();
|
38
39
|
if (this.endpoint.session) {
|
39
40
|
console.log('[AUTH] Authenticated');
|
40
|
-
this.isAuthenticated = true;
|
41
|
-
this.activeSession = this.endpoint.session;
|
42
41
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
43
42
|
}
|
44
43
|
else {
|
@@ -46,29 +45,6 @@ const VerdocsAuth = class {
|
|
46
45
|
(_b = this.authenticated) === null || _b === void 0 ? void 0 : _b.emit({ authenticated: false, session: null });
|
47
46
|
}
|
48
47
|
}
|
49
|
-
disconnectedCallback() {
|
50
|
-
this.cancelRecheckTimer();
|
51
|
-
}
|
52
|
-
cancelRecheckTimer() {
|
53
|
-
if (this.recheckTimer) {
|
54
|
-
try {
|
55
|
-
clearTimeout(this.recheckTimer);
|
56
|
-
}
|
57
|
-
catch (e) {
|
58
|
-
// NOP
|
59
|
-
}
|
60
|
-
this.recheckTimer = null;
|
61
|
-
}
|
62
|
-
if (this.resendDisabledTimer) {
|
63
|
-
try {
|
64
|
-
clearTimeout(this.resendDisabledTimer);
|
65
|
-
}
|
66
|
-
catch (e) {
|
67
|
-
// NOP
|
68
|
-
}
|
69
|
-
this.resendDisabledTimer = null;
|
70
|
-
}
|
71
|
-
}
|
72
48
|
isPasswordComplex(password) {
|
73
49
|
const isUppercase = (ch) => /[A-Z]/.test(ch);
|
74
50
|
const isLowercase = (ch) => /[a-z]/.test(ch);
|
@@ -86,14 +62,18 @@ const VerdocsAuth = class {
|
|
86
62
|
return password.length >= 8 && countOfLowerCase > 0 && countOfUpperCase > 0 && countOfSpecialChar > 0;
|
87
63
|
}
|
88
64
|
handleSignup() {
|
89
|
-
this.submitting = true;
|
90
|
-
this.accessTokenForVerification = null;
|
91
65
|
if (!this.isPasswordComplex(this.password)) {
|
92
|
-
|
66
|
+
VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', { style: 'error' });
|
93
67
|
return;
|
94
68
|
}
|
95
|
-
|
96
|
-
|
69
|
+
if (this.password !== this.confirmpass) {
|
70
|
+
VerdocsToast('Passwords do not match.', { style: 'error' });
|
71
|
+
return;
|
72
|
+
}
|
73
|
+
this.submitting = true;
|
74
|
+
this.tempAuthEndpoint.clearSession();
|
75
|
+
createProfile(this.tempAuthEndpoint, {
|
76
|
+
email: this.email,
|
97
77
|
password: this.password,
|
98
78
|
first_name: this.first_name,
|
99
79
|
last_name: this.last_name,
|
@@ -101,62 +81,85 @@ const VerdocsAuth = class {
|
|
101
81
|
})
|
102
82
|
.then(r => {
|
103
83
|
console.log('Profile creation result', r);
|
104
|
-
this.
|
84
|
+
this.tempAuthEndpoint.setToken(r.access_token);
|
85
|
+
this.clearForms();
|
86
|
+
this.displayMode = 'verify';
|
105
87
|
})
|
106
88
|
.catch(e => {
|
107
89
|
var _a, _b, _c, _d, _e, _f;
|
108
90
|
console.log('[AUTH] Signup error', e.response);
|
109
91
|
this.submitting = false;
|
110
|
-
this.activeSession = null;
|
111
92
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
112
93
|
(_b = this.sdkError) === null || _b === void 0 ? void 0 : _b.emit(new SDKError(e.message, (_c = e.response) === null || _c === void 0 ? void 0 : _c.status, (_d = e.response) === null || _d === void 0 ? void 0 : _d.data));
|
113
94
|
VerdocsToast('Signup failed: ' + ((_f = (_e = e.response) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.message) || 'Unknown Error', { style: 'error' });
|
114
95
|
});
|
115
96
|
}
|
116
|
-
|
97
|
+
async handleVerification() {
|
117
98
|
this.submitting = true;
|
118
|
-
|
119
|
-
authenticate(this.endpoint, { username: this.username, password: this.password, grant_type: 'password' })
|
120
|
-
.then(r => {
|
121
|
-
var _a;
|
122
|
-
this.cancelRecheckTimer();
|
99
|
+
try {
|
123
100
|
this.submitting = false;
|
124
|
-
const
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
101
|
+
const verificationResult = await verifyEmail(this.tempAuthEndpoint, { email: this.email, token: this.verificationCode });
|
102
|
+
VerdocsToast('Thank you for verifying your email address.', { style: 'success' });
|
103
|
+
this.completeLogin(verificationResult);
|
104
|
+
}
|
105
|
+
catch (e) {
|
106
|
+
this.submitting = false;
|
107
|
+
console.log('Verification error', e);
|
108
|
+
VerdocsToast('Verification error, please check the code and try again.');
|
109
|
+
}
|
110
|
+
}
|
111
|
+
completeLogin(result) {
|
112
|
+
var _a;
|
113
|
+
this.clearForms();
|
114
|
+
this.tempAuthEndpoint.clearSession();
|
115
|
+
this.endpoint.setToken(result.access_token);
|
116
|
+
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: true, session: this.endpoint.session });
|
117
|
+
}
|
118
|
+
async loginAndCheckVerification() {
|
119
|
+
var _a;
|
120
|
+
this.submitting = true;
|
121
|
+
this.tempAuthEndpoint.clearSession();
|
122
|
+
try {
|
123
|
+
this.submitting = false;
|
124
|
+
const authResult = await authenticate(this.tempAuthEndpoint, { username: this.email, password: this.password, grant_type: 'password' });
|
125
|
+
console.log('[AUTH] Authenticated, checking email verification');
|
126
|
+
this.tempAuthEndpoint.setToken(authResult.access_token);
|
127
|
+
const user = await getMyUser(this.tempAuthEndpoint);
|
128
|
+
console.log('Got user', user);
|
129
|
+
if (!user.email_verified) {
|
136
130
|
console.log('[AUTH] Logged in, pending email address verification');
|
137
131
|
this.displayMode = 'verify';
|
138
|
-
this.accessTokenForVerification = r.access_token;
|
139
|
-
this.recheckTimer = setTimeout(this.loginAndCheckVerification, RECHECK_INTERVAL);
|
140
132
|
}
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
133
|
+
else {
|
134
|
+
console.log('[AUTH] Email address is verified, completing login');
|
135
|
+
this.completeLogin(authResult);
|
136
|
+
}
|
137
|
+
}
|
138
|
+
catch (e) {
|
147
139
|
this.submitting = false;
|
148
|
-
|
149
|
-
(
|
150
|
-
|
151
|
-
|
152
|
-
|
140
|
+
console.log('[AUTH] Auth failure', ((_a = e.response) === null || _a === void 0 ? void 0 : _a.data) || e);
|
141
|
+
VerdocsToast('Login failed. Please check your credentials and try again.', { style: 'error' });
|
142
|
+
}
|
143
|
+
}
|
144
|
+
clearForms() {
|
145
|
+
this.submitting = false;
|
146
|
+
this.resendDisabled = false;
|
147
|
+
this.email = '';
|
148
|
+
this.password = '';
|
149
|
+
this.confirmpass = '';
|
150
|
+
this.verificationCode = '';
|
151
|
+
this.first_name = '';
|
152
|
+
this.last_name = '';
|
153
|
+
this.org_name = '';
|
153
154
|
}
|
154
155
|
handleLogout() {
|
155
156
|
var _a;
|
157
|
+
console.log('logging out');
|
156
158
|
this.endpoint.clearSession();
|
157
|
-
this.
|
158
|
-
this.accessTokenForVerification = null;
|
159
|
+
this.tempAuthEndpoint.clearSession();
|
159
160
|
(_a = this.authenticated) === null || _a === void 0 ? void 0 : _a.emit({ authenticated: false, session: null });
|
161
|
+
this.clearForms();
|
162
|
+
this.displayMode = 'login';
|
160
163
|
}
|
161
164
|
handleResend() {
|
162
165
|
// Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a
|
@@ -166,57 +169,49 @@ const VerdocsAuth = class {
|
|
166
169
|
this.resendDisabled = false;
|
167
170
|
this.resendDisabledTimer = null;
|
168
171
|
}, 30000);
|
169
|
-
resendVerification(this.
|
172
|
+
resendVerification(this.tempAuthEndpoint)
|
170
173
|
.then(r => {
|
171
174
|
console.log('[AUTH] Verification request resent', r);
|
172
|
-
VerdocsToast('Please check your email for a
|
175
|
+
VerdocsToast('Please check your email for a verification code.', { style: 'info' });
|
173
176
|
})
|
174
177
|
.catch((e) => {
|
175
178
|
console.log('[AUTH] Unable to resend verification', e);
|
179
|
+
VerdocsToast('Unable to resend code. Please try again later.', { style: 'error' });
|
176
180
|
});
|
177
181
|
}
|
178
|
-
handleReset() {
|
182
|
+
async handleReset() {
|
179
183
|
this.submitting = true;
|
180
|
-
|
181
|
-
.
|
182
|
-
console.log('[AUTH] Reset sent',
|
184
|
+
try {
|
185
|
+
const result = await resetPassword(this.endpoint, { email: this.email });
|
186
|
+
console.log('[AUTH] Reset sent', result);
|
183
187
|
this.submitting = false;
|
184
188
|
this.displayMode = 'login';
|
185
189
|
VerdocsToast('If your email address is registered, you will receive instructions on resetting your password shortly.', { style: 'info' });
|
186
|
-
}
|
187
|
-
|
190
|
+
}
|
191
|
+
catch (e) {
|
188
192
|
console.log('[AUTH] Unable to reset password', e);
|
189
193
|
this.submitting = false;
|
190
|
-
|
194
|
+
VerdocsToast('Unable to reset password. Please check your email address and try again.', { style: 'error' });
|
195
|
+
}
|
191
196
|
}
|
192
197
|
render() {
|
193
198
|
if (!this.visible) {
|
194
199
|
return h("div", { style: { display: 'none' } }, "Authenticated");
|
195
200
|
}
|
196
|
-
if (this.
|
201
|
+
if (this.endpoint.session) {
|
197
202
|
return (h("verdocs-button", { label: "Sign Out", disabled: this.submitting, onClick: () => this.handleLogout(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }));
|
198
203
|
}
|
199
204
|
if (this.displayMode === 'signup') {
|
200
|
-
const
|
201
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })),
|
202
|
-
|
203
|
-
|
205
|
+
const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.confirmpass || !this.org_name;
|
206
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a free account"), h("h5", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first_name, onInput: (e) => (this.first_name = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last_name, onInput: (e) => (this.last_name = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "new-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Confirm Password", type: "password", required: true, autocomplete: "off", value: this.confirmpass, onInput: (e) => (this.confirmpass = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.org_name, onInput: (e) => (this.org_name = e.target.value), disabled: this.submitting, style: { flex: '1' } }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: invalid, onClick: invalid ? () => { } : () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))));
|
207
|
+
}
|
208
|
+
if (this.displayMode === 'verify') {
|
209
|
+
return (h("div", { class: "form" }, h("form", { onSubmit: () => this.handleVerification() }, h("p", null, "Please check your e-mail inbox for a verification code and enter it below."), h("verdocs-text-input", { label: "Verification Code", required: true, value: this.verificationCode, onInput: (e) => (this.verificationCode = e.target.value), disabled: this.submitting }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => this.handleLogout() }), h("verdocs-button", { label: "Verify", disabled: this.submitting || !this.verificationCode || this.verificationCode.length !== 6, onClick: () => this.handleVerification() })), h("div", { class: "buttons" }, h("verdocs-button", { variant: "text", label: "Resend Code", disabled: this.resendDisabled || this.submitting, onClick: () => this.handleResend() })))));
|
204
210
|
}
|
205
211
|
if (this.displayMode === 'forgot') {
|
206
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox.
|
212
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not receive the message."), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email Address", autocomplete: "email", required: true, value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
207
213
|
}
|
208
|
-
|
209
|
-
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h6", null, "Please Verify your Email Address"), h("p", null, "Check your e-mail inbox for a verification email, and follow the instructions provided."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => {
|
210
|
-
this.username = '';
|
211
|
-
this.password = '';
|
212
|
-
this.cancelRecheckTimer();
|
213
|
-
this.displayMode = 'login';
|
214
|
-
} }), h("verdocs-button", { label: "Resend Email", disabled: this.resendDisabled, onClick: () => this.handleResend() }))));
|
215
|
-
}
|
216
|
-
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
|
217
|
-
this.displayMode = 'signup';
|
218
|
-
this.signupStep = 1;
|
219
|
-
}, disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
214
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => (this.displayMode = 'signup'), disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.email, onInput: (e) => (this.email = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
220
215
|
}
|
221
216
|
};
|
222
217
|
VerdocsAuth.style = VerdocsAuthStyle0;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-b89cf6a4.js';
|
2
2
|
import { c as createPopper } from './popper-0fbeff6d.js';
|
3
|
-
import { V as VerdocsToast } from './Toast-
|
3
|
+
import { V as VerdocsToast } from './Toast-3e2645fc.js';
|
4
4
|
|
5
5
|
const verdocsButtonCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-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:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}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 .button-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 .button-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 .button-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 .button-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}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;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}";
|
6
6
|
const VerdocsButtonStyle0 = verdocsButtonCss;
|
@@ -60,11 +60,13 @@ const VerdocsHelpIcon = class {
|
|
60
60
|
};
|
61
61
|
VerdocsHelpIcon.style = VerdocsHelpIconStyle0;
|
62
62
|
|
63
|
-
const verdocsTextInputCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 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;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}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-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}";
|
63
|
+
const verdocsTextInputCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 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;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}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-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}";
|
64
64
|
const VerdocsTextInputStyle0 = verdocsTextInputCss;
|
65
65
|
|
66
66
|
const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
|
67
67
|
const CopyIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>`;
|
68
|
+
const EyeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /></svg>`;
|
69
|
+
const EyeSlashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88" /></svg>`;
|
68
70
|
const VerdocsTextInput = class {
|
69
71
|
constructor(hostRef) {
|
70
72
|
registerInstance(this, hostRef);
|
@@ -78,6 +80,7 @@ const VerdocsTextInput = class {
|
|
78
80
|
this.type = 'text';
|
79
81
|
this.disabled = false;
|
80
82
|
this.required = false;
|
83
|
+
this.showingPw = false;
|
81
84
|
}
|
82
85
|
copyToClipboard() {
|
83
86
|
this.inputEl.select();
|
@@ -87,7 +90,7 @@ const VerdocsTextInput = class {
|
|
87
90
|
.catch(e => console.log('Error copying to clipboard', e));
|
88
91
|
}
|
89
92
|
render() {
|
90
|
-
return (h(Host, { key: '
|
93
|
+
return (h(Host, { key: '39ca7e3389e89d00c1b15adcbc949f3b260ea257', class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", { key: '1d6d01c8cb3b3ac3794b6dc26c96929685989089' }, this.label && (h("div", { key: '95a771234d7cdc4484c999144b655b6eacbe27d1', class: "input-label" }, this.label + ':', this.required && h("span", { key: 'a41ddd971cd71b61eeb37464083f29a55bf8a030', class: "required" }, "*"))), h("div", { key: '4ccb0473d02f0aee9a0bc94c4a59293eef1e3eef', class: "input-container" }, h("input", { key: '614f5193c19137c5f06ccc5173299fc3db3d99ff', type: this.type === 'password' && this.showingPw ? 'text' : this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { key: '1d750d5890434d4a6dfb1faca659d442025ad515', innerHTML: ClearIcon, class: "clear", onClick: () => {
|
91
94
|
// We need to allow the onInput event to fire first in case
|
92
95
|
// the user was focused on this field before clicking clear.
|
93
96
|
setTimeout(() => {
|
@@ -101,7 +104,9 @@ const VerdocsTextInput = class {
|
|
101
104
|
(_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
|
102
105
|
}, 50);
|
103
106
|
}, 50);
|
104
|
-
} })),
|
107
|
+
} })), this.type === 'password' && (h("span", { key: 'c9c856949e5cd6675c2f723fe0434527044db36f', innerHTML: this.showingPw ? EyeIcon : EyeSlashIcon, class: "toggle-pw", onClick: () => {
|
108
|
+
this.showingPw = !this.showingPw;
|
109
|
+
} })), !this.clearable && this.copyable && this.value && h("span", { key: 'b95ccfa39c6d2f8ec110aa282a5ec902e015de94', innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { key: 'd8b934d8038cd6f0eeb39bff7092314aed2d0029', text: this.helpText }))));
|
105
110
|
}
|
106
111
|
get hostEl() { return getElement(this); }
|
107
112
|
};
|
@@ -139,7 +139,7 @@ const VerdocsToggleButton = class {
|
|
139
139
|
(_a = this.toggle) === null || _a === void 0 ? void 0 : _a.emit({ active: newState });
|
140
140
|
}
|
141
141
|
render() {
|
142
|
-
return (h(Host, { key: '
|
142
|
+
return (h(Host, { key: '19b820fa8c54c87afebe8fbd24d70282eab6922c', class: `size-${this.size}` }, this.icon ? (h("button", { innerHTML: this.icon, class: { active: this._active }, onClick: e => this.handleToggle(e) })) : (h("button", { class: { active: this._active }, onClick: e => this.handleToggle(e) }, this.label))));
|
143
143
|
}
|
144
144
|
};
|
145
145
|
VerdocsToggleButton.style = VerdocsToggleButtonStyle0;
|
@@ -17,7 +17,7 @@ const VerdocsDialog = class {
|
|
17
17
|
}
|
18
18
|
}
|
19
19
|
render() {
|
20
|
-
return (h(Host, { key: '
|
20
|
+
return (h(Host, { key: '952c27946d1eb8552949ac29d9ffaa05222baaba' }, h("div", { key: '4721082da97c31ddb4e29b05922749b42ab38845', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '80e01d2ee87fd7ffbdd789068587d11ab4323644', class: "dialog" }, h("slot", { key: 'f55b17d75983192918a7c8b5b7df87ca22259b7b', name: "title" }, h("div", { key: '0ebb27bff2de5a06232e419cf9eeff67abddbb3a', class: "heading" }, "Please Confirm")), h("div", { key: 'c93aa214cf8f4c034611f1638dff493a9b2066e2', class: "content" }, h("slot", { key: '7473721bf10ed5dfe388e3d17aec8ee67a5e193f' }))))));
|
21
21
|
}
|
22
22
|
};
|
23
23
|
VerdocsDialog.style = VerdocsDialogStyle0;
|
@@ -77,7 +77,7 @@ const VerdocsEnvelopeDocumentPage = class {
|
|
77
77
|
}
|
78
78
|
render() {
|
79
79
|
const height = `${this.renderedHeight}px`;
|
80
|
-
return (h(Host, { key: '
|
80
|
+
return (h(Host, { key: '1626cbea713462254f8d518479181a39156fd599', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
|
81
81
|
// Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
|
82
82
|
// useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
|
83
83
|
// Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b89cf6a4.js';
|
2
2
|
import { VerdocsEndpoint, getInPersonLink, getRecipientsWithActions, recipientCanAct } from '@verdocs/js-sdk';
|
3
3
|
import { g as getEnvelopeStore } from './EnvelopeStore-1ed5dc8f.js';
|
4
|
-
import { V as VerdocsToast } from './Toast-
|
4
|
+
import { V as VerdocsToast } from './Toast-3e2645fc.js';
|
5
5
|
import { S as SDKError } from './errors-887f1e88.js';
|
6
6
|
import './index-296aabaf.js';
|
7
7
|
import './index-7588a071.js';
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host } from './index-b
|
|
2
2
|
import { VerdocsEndpoint, resendInvitation, cancelEnvelope, userIsEnvelopeOwner } from '@verdocs/js-sdk';
|
3
3
|
import { g as getEnvelopeStore } from './EnvelopeStore-1ed5dc8f.js';
|
4
4
|
import { F as FORMAT_TIMESTAMP } from './Types-e4a6eba5.js';
|
5
|
-
import { V as VerdocsToast } from './Toast-
|
5
|
+
import { V as VerdocsToast } from './Toast-3e2645fc.js';
|
6
6
|
import { S as SDKError } from './errors-887f1e88.js';
|
7
7
|
import { d as dateFns } from './index-0329eed3.js';
|
8
8
|
import './index-296aabaf.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-b89cf6a4.js';
|
2
2
|
import { VerdocsEndpoint, getEnvelopes, integerSequence, getRecipientsWithActions, userCanCancelEnvelope, userCanAct, cancelEnvelope } from '@verdocs/js-sdk';
|
3
3
|
import { s as saveEnvelopesAsZip } from './utils-d1c95309.js';
|
4
|
-
import { V as VerdocsToast } from './Toast-
|
4
|
+
import { V as VerdocsToast } from './Toast-3e2645fc.js';
|
5
5
|
import { S as SDKError } from './errors-887f1e88.js';
|
6
6
|
import './Types-e4a6eba5.js';
|
7
7
|
import './index-0329eed3.js';
|
@@ -195,18 +195,18 @@ const VerdocsEnvelopesList = class {
|
|
195
195
|
});
|
196
196
|
}
|
197
197
|
render() {
|
198
|
-
return (h(Host, { key: '
|
198
|
+
return (h(Host, { key: 'c97d8d4415fb171c1335d3fbef9a885329740613' }, h("div", { key: 'dc0117f6476648985fdad07525e3c10c0a4542d3', class: "header" }, h("div", { key: 'ebd6521d3e9afd5ff9883829c7f66c55f31e7659', class: "filter" }, h("verdocs-text-input", { key: 'a5c15206146898551ac7ec9e22385335d1215d0a', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
|
199
199
|
var _a;
|
200
200
|
// We don't locally filter envelopes because there are too many fields to match against efficiently.
|
201
201
|
this.match = e.target.value.trim();
|
202
202
|
(_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
|
203
|
-
} })), h("verdocs-quick-filter", { key: '
|
203
|
+
} })), h("verdocs-quick-filter", { key: '497b419b0789a338264523b52e6c2f15de6d02fe', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
|
204
204
|
this.view = e.detail.value;
|
205
|
-
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
205
|
+
} }), this.view === 'all' && (h("verdocs-quick-filter", { key: 'ca4c1472e25cf458699a5b3cbd7bd55156938a59', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
|
206
206
|
this.status = e.detail.value;
|
207
|
-
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '
|
207
|
+
} })), this.view === 'all' && (h("verdocs-quick-filter", { key: '232cacdc7d067961da8d1c9482d07c6e76b84d38', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
|
208
208
|
this.sort = e.detail.value;
|
209
|
-
} })), this.loading && h("verdocs-spinner", { key: '
|
209
|
+
} })), this.loading && h("verdocs-spinner", { key: '44c39036f7ac8358a9c8b658e533c393413dc4db', mode: "dark", size: 24 }), h("div", { key: 'f5b8246bf8cdfa9737b8675b59e44fc45df3cc06', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: '9c6f32a107c15af7173ae4fd2ac16265bcc8be6f', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
|
210
210
|
var _a;
|
211
211
|
const recipientsWithActions = getRecipientsWithActions(envelope);
|
212
212
|
const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
|
@@ -247,7 +247,7 @@ const VerdocsEnvelopesList = class {
|
|
247
247
|
break;
|
248
248
|
}
|
249
249
|
} }))));
|
250
|
-
}), !this.initiallyLoaded && (h("div", { key: '
|
250
|
+
}), !this.initiallyLoaded && (h("div", { key: '3008dcd8a557d2f47041455cf9fa554bbcc0b229', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'f1e6ffe23cd5c2d9cf18bafadbf0b61e70984f4d', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
|
251
251
|
this.selectedPage = e.detail.selectedPage;
|
252
252
|
} }))) : (h("div", null))));
|
253
253
|
}
|
@@ -1162,7 +1162,7 @@ const VerdocsInitialDialog = class {
|
|
1162
1162
|
}
|
1163
1163
|
*/
|
1164
1164
|
render() {
|
1165
|
-
return (h(Host, { key: '
|
1165
|
+
return (h(Host, { key: '9006cdf73a61c1d98c81bdebbdf18f4b556ddeb9', onClick: e => this.handleCancel(e) }, h("div", { key: 'cbd4bb1d98fd49e3874ddbd747c7cee69cb5c39e', class: "dialog" }, h("div", { key: 'c751dcfa414370fd1eb9adc8eb8e9b22af8383ae', class: "heading" }, "Create Your Initial"), h("div", { key: '3bf621f90c954b626c90925b50b65a08b2a5bf37', class: "content" }, h("verdocs-text-input", { key: 'f66fa605b16228d389231908825483594e3872bf', placeholder: "Initials...", label: "Initials", value: this.enteredInitials, onInput: e => this.handleNameChange(e) }), h("div", { key: '42b8206f41b9acf5220d3b132fc1ab8f038a1522', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: '64c1da383cc7f6fc6d34af5bcced3caa623eae02', 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 \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '0c8621ee304a5819607612ceeae0276a8a3f84dd', class: "buttons" }, h("verdocs-button", { key: '84b4ea8e03a58be3719d6e5c54227db2538a1753', label: "CANCEL", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '64a5480d9b29fbb1d17c5735259f486693dc6cea', label: "Adopt & Sign", onClick: e => this.handleAdopt(e) }))))));
|
1166
1166
|
}
|
1167
1167
|
};
|
1168
1168
|
VerdocsInitialDialog.style = VerdocsInitialDialogStyle0;
|
@@ -1383,7 +1383,7 @@ const VerdocsSignatureDialog = class {
|
|
1383
1383
|
}
|
1384
1384
|
*/
|
1385
1385
|
render() {
|
1386
|
-
return (h(Host, { key: '
|
1386
|
+
return (h(Host, { key: '88ef514634fef3e3773f13efeeb2b22cbaf9ff0a', onClick: e => this.handleCancel(e) }, h("div", { key: '31369669f68670330cb2f54ec9be44ff6100ac83', class: "dialog" }, h("div", { key: 'd161b9a0e0945cda909eabbd0404448a03e29198', class: "heading" }, "Create Your Signature"), h("div", { key: '9777dd4289072f0be511bb1ec828ed540011e6be', class: "content" }, h("verdocs-text-input", { key: 'afed3547dd47d4883ac84d83d4d05eca9a30d5a2', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '728f24c1a88a395f940df350169ed6ba628d2685', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'abafa624e941b6f6e758fbd75ddd7e0044a377dc', 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 \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: 'fbcc0705c21b7ed206222a9b7382a5562ee7f83d', class: "buttons" }, h("verdocs-button", { key: '5f921b4dfc7df16867071b117a9b055a8aeee8da', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'dbf88043b9deedb378181bf48d7a04428a32e653', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
|
1387
1387
|
}
|
1388
1388
|
};
|
1389
1389
|
VerdocsSignatureDialog.style = VerdocsSignatureDialogStyle0;
|
@@ -1458,7 +1458,7 @@ const VerdocsUploadDialog = class {
|
|
1458
1458
|
this.decodedFiles = await Promise.all(droppedFiles.map(fileToDataUrl));
|
1459
1459
|
}
|
1460
1460
|
render() {
|
1461
|
-
return (h(Host, { key: '
|
1461
|
+
return (h(Host, { key: '00cddffd15d81c343c9f23ca79a26fd7b7c607ec' }, h("div", { key: '30308c5289e2bed777fb8d3bcbbfa4c5da71f967', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '667874e38d9b7c4be180e6097205c829e7bc497c', class: "dialog" }, h("div", { key: '25f97a72a7541feecf123a2c7a202024220c8a19', class: "heading" }, "Upload attachment"), this.decodedFiles.length < 1 ? (h("div", { class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", null, "Drag and drop a file here..."), h("p", null, "- or -"), h("verdocs-button", { label: "Select a file...", onClick: () => this.handleSelectFile() }), h("input", { type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, onChange: () => this.handleFileChange() }))) : (h("div", { class: "attachments" }, this.decodedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), h("div", { key: 'a5fa38c5fdba79aef2f52b01a264ac9552190c78', class: "buttons" }, h("verdocs-button", { key: '07978b71c5a0293beca4eefebf3b7b280be914f8', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'c16e03120a392673aa656e7d6c6dfec599127f36', label: "Done", onClick: () => this.handleDone(), disabled: this.decodedFiles.length < 1 }))))));
|
1462
1462
|
}
|
1463
1463
|
};
|
1464
1464
|
VerdocsUploadDialog.style = VerdocsUploadDialogStyle0;
|
@@ -33,9 +33,9 @@ const VerdocsKbaDialog = class {
|
|
33
33
|
this.next.emit(this.response);
|
34
34
|
}
|
35
35
|
render() {
|
36
|
-
return (h(Host, { key: '
|
36
|
+
return (h(Host, { key: 'c82a5d8b5257732255861a67a51ed6a0b2675b77' }, h("div", { key: 'c102ab713567ed43cef7c344df8a0936274b6f6e', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'e932de4a3ca2402a965744ab02f9d6c3b8f86645', class: "dialog" }, h("div", { key: '569f5420ada83b65ecc93147aed387086f659b34', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), h("div", { key: '2ffd440933f4e7c44a72eab3fdfd36f8e8a630c8', class: "help-box" }, h("div", { key: '79b7cba2e72d7fd7e576b1f965014e67759727e5', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '5ccf156e49de25f88804641ab4b67536838f2876', class: "help-details" }, h("div", { key: '857feb344fd1ba7fdabda6c090e64b03ea1150bb', class: "help-title" }, this.helptitle), h("div", { key: 'b0f0bde18492545dcb767a6a73b70fbebb497ecb', class: "help-text" }, this.helptext))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => {
|
37
37
|
this.response = choice;
|
38
|
-
} }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder }))), h("div", { key: '
|
38
|
+
} }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder }))), h("div", { key: 'b76320da31947aa982e3d93c766e395b4133d15f', class: "buttons" }, h("verdocs-button", { key: 'bc7c181fc05366341cc4c4e2e2f00749b5ac377e', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'dbd938075496f58916586ae1ab89290ab73d129a', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
|
39
39
|
}
|
40
40
|
};
|
41
41
|
VerdocsKbaDialog.style = VerdocsKbaDialogStyle0;
|