@verdocs/web-sdk 5.0.41 → 5.0.42
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +18 -33
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +0 -2
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js +0 -1
- package/dist/cjs/verdocs-preview_7.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +114 -90
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +0 -1
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +121 -95
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +7 -8
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +0 -2
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js.map +1 -1
- package/dist/components/{p-36368807.js → p-4a04090c.js} +3 -3
- package/dist/components/{p-36368807.js.map → p-4a04090c.js.map} +1 -1
- package/dist/components/{p-c1d312d8.js → p-4a4bf38c.js} +2 -3
- package/dist/components/p-4a4bf38c.js.map +1 -0
- package/dist/components/{p-6bfb8eba.js → p-73a39d5a.js} +19 -34
- package/dist/components/p-73a39d5a.js.map +1 -0
- package/dist/components/{p-795b4192.js → p-91eae04c.js} +3 -3
- package/dist/components/{p-795b4192.js.map → p-91eae04c.js.map} +1 -1
- package/dist/components/{p-52c195dd.js → p-92cce3dc.js} +1 -3
- package/dist/components/{p-52c195dd.js.map → p-92cce3dc.js.map} +1 -1
- package/dist/components/{p-7481c7db.js → p-b474c324.js} +2 -2
- package/dist/components/{p-7481c7db.js.map → p-b474c324.js.map} +1 -1
- package/dist/components/verdocs-build.js +6 -6
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-field-date.js +1 -1
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +117 -92
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +18 -33
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm/verdocs-field-attachment_13.entry.js +0 -2
- package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm/verdocs-preview_7.entry.js +0 -1
- package/dist/esm/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +115 -91
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +4 -2
- package/dist/verdocs-web-sdk/p-02e09803.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-02e09803.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js +1 -1
- package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +1 -1
- package/dist/verdocs-web-sdk/p-46263e7a.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-46263e7a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-4d92a71b.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-4d92a71b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7f982a59.system.entry.js → p-6cfb51e3.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-6cfb51e3.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-62bde242.system.entry.js → p-89c69404.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-89c69404.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d47c58de.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-d47c58de.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-7962eb00.entry.js → p-e7ca4f15.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e7ca4f15.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-dda88c7f.entry.js → p-e8268ed9.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-e8268ed9.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/p-6bfb8eba.js.map +0 -1
- package/dist/components/p-c1d312d8.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1c8788f5.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1c8788f5.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-62bde242.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7962eb00.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7f982a59.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-a4dd8302.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-a4dd8302.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-dda88c7f.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-df6ab9e9.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-df6ab9e9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-e5684a49.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-e5684a49.system.entry.js.map +0 -1
@@ -76,7 +76,10 @@ const VerdocsSign = class {
|
|
76
76
|
this.showFinishLater = false;
|
77
77
|
this.agreed = false;
|
78
78
|
this.documentsSingularPlural = 'document';
|
79
|
-
|
79
|
+
// TODO
|
80
|
+
// @State() authStep: TRecipientAuthMethod | null = null;
|
81
|
+
this.authStep = null;
|
82
|
+
this.authDetails = null;
|
80
83
|
this.kbaQuestions = [];
|
81
84
|
this.showSpinner = false;
|
82
85
|
this.kbaChoices = [];
|
@@ -126,13 +129,26 @@ const VerdocsSign = class {
|
|
126
129
|
if (this.recipientIndex > -1) {
|
127
130
|
this.recipient = this.sortedRecipients[this.recipientIndex];
|
128
131
|
this.agreed = this.recipient.agreed;
|
132
|
+
this.submitted = this.recipient.status === 'submitted';
|
133
|
+
this.authStep = this.recipient.auth_step;
|
134
|
+
if (this.authStep) {
|
135
|
+
console.log('[SIGN] Authentication required', this.authStep);
|
136
|
+
}
|
137
|
+
const auth_method_states = (this.recipient.auth_method_states || {});
|
138
|
+
if (Object.values(auth_method_states).includes('failed')) {
|
139
|
+
this.fatalErrorHeader = 'Recipient Verification Failed';
|
140
|
+
this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
141
|
+
this.isDone = true;
|
142
|
+
}
|
143
|
+
// TODO
|
144
|
+
// this.kbaQuestions = (r as any).questions?.question || [];
|
145
|
+
// this.kbaChoices = [];
|
129
146
|
}
|
130
147
|
else {
|
131
148
|
console.warn('[SIGN] Could not find our recipient record', this.roleId, this.sortedRecipients);
|
132
149
|
}
|
133
150
|
// TODO: Envelope "complete" | "declined" | "canceled"
|
134
151
|
// TODO: Recipient "canceled"
|
135
|
-
this.submitted = this.recipient.status === 'submitted';
|
136
152
|
this.isDone = this.submitted;
|
137
153
|
this.showDone = this.submitted;
|
138
154
|
if (this.envelope.status === 'canceled') {
|
@@ -148,24 +164,6 @@ const VerdocsSign = class {
|
|
148
164
|
}
|
149
165
|
this.checkRecipientFields();
|
150
166
|
(_d = this.envelopeLoaded) === null || _d === void 0 ? void 0 : _d.emit({ endpoint: this.endpoint, envelope: this.envelope });
|
151
|
-
if (!this.isDone) {
|
152
|
-
jsSdk.getKbaStep(this.endpoint, this.envelopeId, this.roleId)
|
153
|
-
.then(r => {
|
154
|
-
var _a;
|
155
|
-
console.log('[SIGN] KBA Step', r);
|
156
|
-
this.kbaStep = r.kba_step;
|
157
|
-
if (this.kbaStep === 'failed') {
|
158
|
-
this.fatalErrorHeader = 'Identity Verification Failed';
|
159
|
-
this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
160
|
-
this.isDone = true;
|
161
|
-
}
|
162
|
-
else {
|
163
|
-
this.kbaQuestions = ((_a = r.questions) === null || _a === void 0 ? void 0 : _a.question) || [];
|
164
|
-
this.kbaChoices = [];
|
165
|
-
}
|
166
|
-
})
|
167
|
-
.catch(e => console.log('Error getting KBA step', e));
|
168
|
-
}
|
169
167
|
}
|
170
168
|
catch (e) {
|
171
169
|
console.log('[SIGN] Error with signing session', e);
|
@@ -584,6 +582,27 @@ const VerdocsSign = class {
|
|
584
582
|
});
|
585
583
|
this.checkRecipientFields();
|
586
584
|
}
|
585
|
+
handleAuthenticateSigner(params) {
|
586
|
+
console.log('[SIGN] Submitting authentication step', params);
|
587
|
+
jsSdk.authenticateSigner(this.endpoint, params)
|
588
|
+
.then(r => {
|
589
|
+
console.log('[SIGN] Authentication successful', r);
|
590
|
+
this.authStep = r.auth_step;
|
591
|
+
this.authDetails = r.auth_details;
|
592
|
+
})
|
593
|
+
.catch(e => {
|
594
|
+
var _a, _b, _c, _d, _e;
|
595
|
+
console.log('[SIGN] Error submitting authentication step', e);
|
596
|
+
if ((_c = (_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.includes('failed')) {
|
597
|
+
this.fatalErrorHeader = 'Recipient Verification Failed';
|
598
|
+
this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
599
|
+
this.isDone = true;
|
600
|
+
}
|
601
|
+
else {
|
602
|
+
Toast.VerdocsToast(((_e = (_d = e.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.error) || 'Unable to verify your identity. Please try again.', { style: 'error' });
|
603
|
+
}
|
604
|
+
});
|
605
|
+
}
|
587
606
|
render() {
|
588
607
|
if (this.showLoadError) {
|
589
608
|
return (index.h(index.Host, null, index.h("verdocs-ok-dialog", { heading: "Unable to Start Signing", message: `Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`, buttonLabel: "OK", onNext: () => {
|
@@ -607,86 +626,91 @@ const VerdocsSign = class {
|
|
607
626
|
if (!this.agreed) {
|
608
627
|
return (index.h(index.Host, { class: "agreed" }, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name))), index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("div", { class: "cover" }, index.h("div", { class: "agree" }, index.h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), index.h("ul", null, index.h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', index.h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), index.h("li", null, "Agree to Verdocs'", ' ', index.h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', index.h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), "."))))));
|
609
628
|
}
|
610
|
-
if (this.
|
611
|
-
return (index.h(index.Host, { class: "kba" }, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name))), index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("div", { class: "cover" }, index.h("div", { class: "kba" }, index.h("verdocs-kba-dialog", { mode: "text", step: 1, steps: 1, helptitle: "Document is protected by a
|
612
|
-
jsSdk.submitKbaPin(this.endpoint, this.envelopeId, this.roleId, e.detail)
|
613
|
-
.then(r => {
|
614
|
-
console.log('[SIGN] PIN code submission result', r);
|
615
|
-
if (r.kba_step === 'complete') {
|
616
|
-
this.kbaStep = '';
|
617
|
-
}
|
618
|
-
})
|
619
|
-
.catch(e => {
|
620
|
-
var _a, _b, _c, _d;
|
621
|
-
console.log('[SIGN] Error submitting PIN', e);
|
622
|
-
if (((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) === 'Rejecting PIN submission, too many attempts') {
|
623
|
-
this.fatalErrorHeader = 'PIN Verification Failed';
|
624
|
-
this.fatalErrorMessage = 'Too many failed attempts. The sender has been notified.';
|
625
|
-
this.isDone = true;
|
626
|
-
}
|
627
|
-
else {
|
628
|
-
Toast.VerdocsToast(((_d = (_c = e.response) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.error) || 'Unable to verify PIN code. Please try again.', { style: 'error' });
|
629
|
-
}
|
630
|
-
});
|
631
|
-
} })))));
|
629
|
+
if (this.authStep === 'passcode') {
|
630
|
+
return (index.h(index.Host, { class: "kba" }, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name))), index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("div", { class: "cover" }, index.h("div", { class: "kba" }, index.h("verdocs-kba-dialog", { mode: "text", step: 1, steps: 1, helptitle: "Document is protected by a Passcode", helptext: "Please enter your Passcode to proceed. If you do not have one, please contact the sender.", label: "Passcode", onNext: e => this.handleAuthenticateSigner({ auth_method: 'passcode', code: e.detail }) })))));
|
632
631
|
}
|
633
|
-
if (this.
|
632
|
+
if (this.authStep === 'kba') {
|
634
633
|
return (index.h(index.Host, { class: "kba" }, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name))), index.h("div", { class: "document", style: { paddingTop: '15px' } }, index.h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", style: { width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px' }, alt: "Placeholder page" })), index.h("div", { class: "cover" }, index.h("div", { class: "kba" }, index.h("verdocs-kba-dialog", { mode: "identity", helptitle: "Document requires identity verification", helptext: "Please complete your contact details to proceed.", recipient: this.recipient, onNext: async (e) => {
|
635
634
|
const recipDetails = e.detail;
|
636
|
-
|
637
|
-
|
638
|
-
|
635
|
+
this.handleAuthenticateSigner({
|
636
|
+
auth_method: 'kba',
|
637
|
+
first_name: recipDetails.first_name,
|
638
|
+
last_name: recipDetails.last_name,
|
639
639
|
address: recipDetails.address,
|
640
640
|
city: recipDetails.city,
|
641
641
|
state: recipDetails.state,
|
642
642
|
zip: recipDetails.zip,
|
643
|
-
|
644
|
-
|
645
|
-
.then(r => {
|
646
|
-
console.log('[SIGN] Identity submission result', r);
|
647
|
-
this.kbaStep = r.kba_step;
|
648
|
-
})
|
649
|
-
.catch(e => {
|
650
|
-
var _a, _b;
|
651
|
-
console.log('[SIGN] Error submitting identity', e);
|
652
|
-
Toast.VerdocsToast(((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unable to verify identity.', { style: 'error' });
|
643
|
+
ssn_last_4: recipDetails.ssn_last_4,
|
644
|
+
dob: recipDetails.dob,
|
653
645
|
});
|
654
646
|
} })))));
|
655
647
|
}
|
656
|
-
if (this.kbaStep === 'challenge') {
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
648
|
+
// if (this.kbaStep === 'challenge') {
|
649
|
+
// const questionNumber = this.kbaChoices.length;
|
650
|
+
// const kbaQuestion = this.kbaQuestions[questionNumber];
|
651
|
+
// return (
|
652
|
+
// <Host class="kba">
|
653
|
+
// <div id="verdocs-sign-header">
|
654
|
+
// <div class="inner">
|
655
|
+
// <img src="https://verdocs.com/assets/white-logo.svg" alt="Verdocs Logo" class="logo" />
|
656
|
+
// <div class="title">{this.envelope.name}</div>
|
657
|
+
// </div>
|
658
|
+
// </div>
|
659
|
+
//
|
660
|
+
// <div class="document" style={{paddingTop: '15px'}}>
|
661
|
+
// <img
|
662
|
+
// src="https://public-assets.verdocs.com/loading-placeholder.png"
|
663
|
+
// style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}
|
664
|
+
// alt="Placeholder page"
|
665
|
+
// />
|
666
|
+
// </div>
|
667
|
+
//
|
668
|
+
// <div class="cover">
|
669
|
+
// <div class="kba">
|
670
|
+
// {this.kbaChoices.length >= this.kbaQuestions.length ? (
|
671
|
+
// <verdocs-spinner />
|
672
|
+
// ) : (
|
673
|
+
// <verdocs-kba-dialog
|
674
|
+
// mode="choice"
|
675
|
+
// helptitle="Your identity requires additional verification"
|
676
|
+
// helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}
|
677
|
+
// choices={kbaQuestion?.answer || ['Skip Question']}
|
678
|
+
// step={questionNumber + 1}
|
679
|
+
// steps={this.kbaQuestions.length}
|
680
|
+
// onNext={async (e: any) => {
|
681
|
+
// const answer = e.detail as string;
|
682
|
+
// this.kbaChoices = [...this.kbaChoices, answer];
|
683
|
+
// if (this.kbaChoices.length >= this.kbaQuestions.length) {
|
684
|
+
// const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));
|
685
|
+
// console.log('Submitting KBA responses', this.kbaChoices, responses);
|
686
|
+
// try {
|
687
|
+
// const response = await submitKbaChallengeResponse(this.endpoint, this.envelopeId, this.roleId, responses);
|
688
|
+
// console.log('KBA challenge response', response);
|
689
|
+
// this.kbaStep = response.kba_step;
|
690
|
+
// if (this.kbaStep === 'failed') {
|
691
|
+
// this.fatalErrorHeader = 'Identity Verification Failed';
|
692
|
+
// this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
693
|
+
// this.isDone = true;
|
694
|
+
// } else {
|
695
|
+
// this.kbaQuestions = (response as any).questions?.question || [];
|
696
|
+
// this.kbaChoices = [];
|
697
|
+
// }
|
698
|
+
// } catch (e) {
|
699
|
+
// console.log('Error submitting KBA challenge', e);
|
700
|
+
// this.kbaStep = '';
|
701
|
+
// this.fatalErrorHeader = 'Unable to Verify Identity';
|
702
|
+
// this.fatalErrorMessage = e.response?.data?.error || 'Please try again later.';
|
703
|
+
// this.isDone = true;
|
704
|
+
// }
|
705
|
+
// }
|
706
|
+
// }}
|
707
|
+
// />
|
708
|
+
// )}
|
709
|
+
// </div>
|
710
|
+
// </div>
|
711
|
+
// </Host>
|
712
|
+
// );
|
713
|
+
// }
|
690
714
|
return (index.h(index.Host, null, index.h("div", { id: "verdocs-sign-header" }, index.h("div", { class: "inner" }, index.h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), index.h("div", { class: "title" }, this.envelope.name), index.h("div", { style: { flex: '1' } }), !this.finishLater && index.h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), index.h("div", { style: { marginLeft: '10px' } }), index.h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), index.h("div", { class: "document", style: { paddingTop: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
|
691
715
|
const pageNumbers = jsSdk.integerSequence(1, envelopeDocument.pages);
|
692
716
|
return (index.h(index.Fragment, null, pageNumbers.map(pageNumber => {
|