@verdocs/web-sdk 5.0.41 → 5.0.43
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 +116 -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 +123 -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 +119 -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 +117 -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-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-56170f1d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-56170f1d.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-b232ef42.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-b232ef42.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/custom-elements.json +0 -2198
- 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 = [];
|
@@ -124,15 +127,29 @@ const VerdocsSign = class {
|
|
124
127
|
}
|
125
128
|
this.recipientIndex = this.roleNames.findIndex(roleName => roleName == this.roleId);
|
126
129
|
if (this.recipientIndex > -1) {
|
130
|
+
console.log('[SIGN] Processing recipient', this.authStep);
|
127
131
|
this.recipient = this.sortedRecipients[this.recipientIndex];
|
128
132
|
this.agreed = this.recipient.agreed;
|
133
|
+
this.submitted = this.recipient.status === 'submitted';
|
134
|
+
this.authStep = this.recipient.auth_step;
|
135
|
+
if (this.authStep) {
|
136
|
+
console.log('[SIGN] Authentication required', this.authStep);
|
137
|
+
}
|
138
|
+
const auth_method_states = (this.recipient.auth_method_states || {});
|
139
|
+
if (Object.values(auth_method_states).includes('failed')) {
|
140
|
+
this.fatalErrorHeader = 'Recipient Verification Failed';
|
141
|
+
this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
142
|
+
this.isDone = true;
|
143
|
+
}
|
144
|
+
// TODO
|
145
|
+
// this.kbaQuestions = (r as any).questions?.question || [];
|
146
|
+
// this.kbaChoices = [];
|
129
147
|
}
|
130
148
|
else {
|
131
149
|
console.warn('[SIGN] Could not find our recipient record', this.roleId, this.sortedRecipients);
|
132
150
|
}
|
133
151
|
// TODO: Envelope "complete" | "declined" | "canceled"
|
134
152
|
// TODO: Recipient "canceled"
|
135
|
-
this.submitted = this.recipient.status === 'submitted';
|
136
153
|
this.isDone = this.submitted;
|
137
154
|
this.showDone = this.submitted;
|
138
155
|
if (this.envelope.status === 'canceled') {
|
@@ -148,24 +165,6 @@ const VerdocsSign = class {
|
|
148
165
|
}
|
149
166
|
this.checkRecipientFields();
|
150
167
|
(_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
168
|
}
|
170
169
|
catch (e) {
|
171
170
|
console.log('[SIGN] Error with signing session', e);
|
@@ -584,7 +583,29 @@ const VerdocsSign = class {
|
|
584
583
|
});
|
585
584
|
this.checkRecipientFields();
|
586
585
|
}
|
586
|
+
handleAuthenticateSigner(params) {
|
587
|
+
console.log('[SIGN] Submitting authentication step', params);
|
588
|
+
jsSdk.authenticateSigner(this.endpoint, params)
|
589
|
+
.then(r => {
|
590
|
+
console.log('[SIGN] Authentication successful', r);
|
591
|
+
this.authStep = r.auth_step;
|
592
|
+
this.authDetails = r.auth_details;
|
593
|
+
})
|
594
|
+
.catch(e => {
|
595
|
+
var _a, _b, _c, _d, _e;
|
596
|
+
console.log('[SIGN] Error submitting authentication step', e);
|
597
|
+
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')) {
|
598
|
+
this.fatalErrorHeader = 'Recipient Verification Failed';
|
599
|
+
this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
600
|
+
this.isDone = true;
|
601
|
+
}
|
602
|
+
else {
|
603
|
+
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' });
|
604
|
+
}
|
605
|
+
});
|
606
|
+
}
|
587
607
|
render() {
|
608
|
+
console.log('[SIGN] Rendering', { authStep: this.authStep });
|
588
609
|
if (this.showLoadError) {
|
589
610
|
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: () => {
|
590
611
|
window.location.reload();
|
@@ -607,86 +628,91 @@ const VerdocsSign = class {
|
|
607
628
|
if (!this.agreed) {
|
608
629
|
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
630
|
}
|
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
|
-
} })))));
|
631
|
+
if (this.authStep === 'passcode') {
|
632
|
+
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
633
|
}
|
633
|
-
if (this.
|
634
|
+
if (this.authStep === 'kba') {
|
634
635
|
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
636
|
const recipDetails = e.detail;
|
636
|
-
|
637
|
-
|
638
|
-
|
637
|
+
this.handleAuthenticateSigner({
|
638
|
+
auth_method: 'kba',
|
639
|
+
first_name: recipDetails.first_name,
|
640
|
+
last_name: recipDetails.last_name,
|
639
641
|
address: recipDetails.address,
|
640
642
|
city: recipDetails.city,
|
641
643
|
state: recipDetails.state,
|
642
644
|
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' });
|
645
|
+
ssn_last_4: recipDetails.ssn_last_4,
|
646
|
+
dob: recipDetails.dob,
|
653
647
|
});
|
654
648
|
} })))));
|
655
649
|
}
|
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
|
-
|
650
|
+
// if (this.kbaStep === 'challenge') {
|
651
|
+
// const questionNumber = this.kbaChoices.length;
|
652
|
+
// const kbaQuestion = this.kbaQuestions[questionNumber];
|
653
|
+
// return (
|
654
|
+
// <Host class="kba">
|
655
|
+
// <div id="verdocs-sign-header">
|
656
|
+
// <div class="inner">
|
657
|
+
// <img src="https://verdocs.com/assets/white-logo.svg" alt="Verdocs Logo" class="logo" />
|
658
|
+
// <div class="title">{this.envelope.name}</div>
|
659
|
+
// </div>
|
660
|
+
// </div>
|
661
|
+
//
|
662
|
+
// <div class="document" style={{paddingTop: '15px'}}>
|
663
|
+
// <img
|
664
|
+
// src="https://public-assets.verdocs.com/loading-placeholder.png"
|
665
|
+
// style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}
|
666
|
+
// alt="Placeholder page"
|
667
|
+
// />
|
668
|
+
// </div>
|
669
|
+
//
|
670
|
+
// <div class="cover">
|
671
|
+
// <div class="kba">
|
672
|
+
// {this.kbaChoices.length >= this.kbaQuestions.length ? (
|
673
|
+
// <verdocs-spinner />
|
674
|
+
// ) : (
|
675
|
+
// <verdocs-kba-dialog
|
676
|
+
// mode="choice"
|
677
|
+
// helptitle="Your identity requires additional verification"
|
678
|
+
// helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}
|
679
|
+
// choices={kbaQuestion?.answer || ['Skip Question']}
|
680
|
+
// step={questionNumber + 1}
|
681
|
+
// steps={this.kbaQuestions.length}
|
682
|
+
// onNext={async (e: any) => {
|
683
|
+
// const answer = e.detail as string;
|
684
|
+
// this.kbaChoices = [...this.kbaChoices, answer];
|
685
|
+
// if (this.kbaChoices.length >= this.kbaQuestions.length) {
|
686
|
+
// const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));
|
687
|
+
// console.log('Submitting KBA responses', this.kbaChoices, responses);
|
688
|
+
// try {
|
689
|
+
// const response = await submitKbaChallengeResponse(this.endpoint, this.envelopeId, this.roleId, responses);
|
690
|
+
// console.log('KBA challenge response', response);
|
691
|
+
// this.kbaStep = response.kba_step;
|
692
|
+
// if (this.kbaStep === 'failed') {
|
693
|
+
// this.fatalErrorHeader = 'Identity Verification Failed';
|
694
|
+
// this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';
|
695
|
+
// this.isDone = true;
|
696
|
+
// } else {
|
697
|
+
// this.kbaQuestions = (response as any).questions?.question || [];
|
698
|
+
// this.kbaChoices = [];
|
699
|
+
// }
|
700
|
+
// } catch (e) {
|
701
|
+
// console.log('Error submitting KBA challenge', e);
|
702
|
+
// this.kbaStep = '';
|
703
|
+
// this.fatalErrorHeader = 'Unable to Verify Identity';
|
704
|
+
// this.fatalErrorMessage = e.response?.data?.error || 'Please try again later.';
|
705
|
+
// this.isDone = true;
|
706
|
+
// }
|
707
|
+
// }
|
708
|
+
// }}
|
709
|
+
// />
|
710
|
+
// )}
|
711
|
+
// </div>
|
712
|
+
// </div>
|
713
|
+
// </Host>
|
714
|
+
// );
|
715
|
+
// }
|
690
716
|
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
717
|
const pageNumbers = jsSdk.integerSequence(1, envelopeDocument.pages);
|
692
718
|
return (index.h(index.Fragment, null, pageNumbers.map(pageNumber => {
|