@verdocs/web-sdk 4.2.149 → 4.2.151

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.
Files changed (43) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +11 -7
  3. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +1 -0
  4. package/dist/cjs/verdocs-sign.cjs.entry.js +38 -52
  5. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  6. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +1 -0
  7. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +45 -0
  8. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +41 -57
  9. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +11 -7
  10. package/dist/components/{p-285791f0.js → p-8cd2e08d.js} +1 -1
  11. package/dist/components/{p-302ff525.js → p-b11eb119.js} +11 -7
  12. package/dist/components/{p-ce71f0a7.js → p-e4ac6259.js} +1 -0
  13. package/dist/components/verdocs-build.js +2 -2
  14. package/dist/components/verdocs-contact-picker.js +1 -1
  15. package/dist/components/verdocs-kba-dialog.js +1 -1
  16. package/dist/components/verdocs-send.js +1 -1
  17. package/dist/components/verdocs-sign.js +41 -58
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/verdocs-contact-picker_2.entry.js +11 -7
  20. package/dist/esm/verdocs-kba-dialog_2.entry.js +1 -0
  21. package/dist/esm/verdocs-sign.entry.js +38 -52
  22. package/dist/esm/verdocs-web-sdk.js +1 -1
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  25. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  26. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  27. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  28. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +2 -5
  29. package/dist/verdocs-web-sdk/p-2a81604a.entry.js +1 -0
  30. package/dist/verdocs-web-sdk/{p-413b1dc1.system.entry.js → p-4266e717.system.entry.js} +1 -1
  31. package/dist/verdocs-web-sdk/p-569434fb.system.js +1 -1
  32. package/dist/verdocs-web-sdk/p-77ec43a3.system.entry.js +1 -0
  33. package/dist/verdocs-web-sdk/p-b1fcc883.entry.js +1 -0
  34. package/dist/verdocs-web-sdk/p-c2d9d942.system.entry.js +1 -0
  35. package/dist/verdocs-web-sdk/p-d1e64207.entry.js +1 -0
  36. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  37. package/package.json +1 -1
  38. package/dist/custom-elements.json +0 -2013
  39. package/dist/verdocs-web-sdk/p-04cc3a32.system.entry.js +0 -1
  40. package/dist/verdocs-web-sdk/p-6bafa602.system.entry.js +0 -1
  41. package/dist/verdocs-web-sdk/p-c26e9f70.entry.js +0 -1
  42. package/dist/verdocs-web-sdk/p-e3101db8.entry.js +0 -1
  43. package/dist/verdocs-web-sdk/p-f695ade2.entry.js +0 -1
@@ -1,5 +1,6 @@
1
1
  import { Host, Fragment, h } from "@stencil/core";
2
- import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, updateEnvelopeField, sortFields, submitKbaIdentity, submitKbaChallengeResponse, } from "@verdocs/js-sdk";
2
+ import { updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint } from "@verdocs/js-sdk";
3
+ import { updateEnvelopeField, sortFields, submitKbaIdentity, submitKbaChallengeResponse } from "@verdocs/js-sdk";
3
4
  import { fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, getKbaStep } from "@verdocs/js-sdk";
4
5
  import { getEnvelope, integerSequence, isValidEmail, isValidPhone, submitKbaPin, updateEnvelopeFieldInitials } from "@verdocs/js-sdk";
5
6
  import { createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit, formatFullName } from "@verdocs/js-sdk";
@@ -50,16 +51,13 @@ export class VerdocsSign {
50
51
  this.hasSignature = false;
51
52
  this.nextButtonLabel = 'Start';
52
53
  this.nextSubmits = false;
53
- this.errorMessage = '';
54
+ this.fatalErrorHeader = '';
55
+ this.fatalErrorMessage = '';
54
56
  this.focusedField = '';
55
57
  this.submitting = false;
56
58
  this.submitted = false;
57
- this.canceled = false;
58
- this.declined = false;
59
59
  this.isDone = false;
60
60
  this.showDone = false;
61
- this.showCanceled = false;
62
- this.showDeclined = false;
63
61
  this.showLoadError = false;
64
62
  this.finishLater = false;
65
63
  this.showFinishLater = false;
@@ -116,13 +114,17 @@ export class VerdocsSign {
116
114
  // TODO: Envelope "complete" | "declined" | "canceled"
117
115
  // TODO: Recipient "canceled"
118
116
  this.submitted = this.recipient.status === 'submitted';
119
- this.declined = this.recipient.status === 'declined';
120
- this.canceled = this.envelope.status === 'canceled';
121
- this.isDone = this.submitted || this.declined || this.canceled;
117
+ this.isDone = this.submitted;
122
118
  this.showDone = this.submitted;
123
- this.showCanceled = this.canceled;
124
- this.showDeclined = this.declined;
125
- if (this.agreed) {
119
+ if (this.envelope.status === 'canceled') {
120
+ this.fatalErrorHeader = 'Unable to Start Signing Session';
121
+ this.fatalErrorMessage = 'This envelope has been canceled. Please contact its sender for more information.';
122
+ }
123
+ else if (this.recipient.status === 'declined') {
124
+ this.fatalErrorHeader = 'Unable to Start Signing Session';
125
+ this.fatalErrorMessage = 'You have declined to sign this envelope.';
126
+ }
127
+ else if (this.agreed) {
126
128
  this.nextButtonLabel = 'Next';
127
129
  }
128
130
  this.checkRecipientFields();
@@ -191,18 +193,8 @@ export class VerdocsSign {
191
193
  console.log('[SIGN] Decline result', declineResult);
192
194
  (_c = this.envelopeUpdated) === null || _c === void 0 ? void 0 : _c.emit({ endpoint: this.endpoint, envelope: this.envelope, event: 'declined' });
193
195
  this.submitting = false;
194
- this.declined = true;
195
- this.showDeclined = true;
196
- // console.log('[SIGN] Reloading envelope');
197
- // getEnvelope(this.endpoint, this.envelopeId)
198
- // .then(envelope => {
199
- // this.envelope = envelope;
200
- // this.isDone = true;
201
- // })
202
- // .catch(e => {
203
- // this.isDone = true;
204
- // console.log('[SIGN] Error reloading envelope', e);
205
- // });
196
+ this.fatalErrorHeader = 'Unable to Start Signing Session';
197
+ this.fatalErrorMessage = 'You have declined to sign this envelope.';
206
198
  }
207
199
  break;
208
200
  case 'print':
@@ -242,7 +234,8 @@ export class VerdocsSign {
242
234
  var _a, _b, _c, _d, _e, _f;
243
235
  if (((_a = e.response) === null || _a === void 0 ? void 0 : _a.status) === 401 && ((_c = (_b = e.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.error) === 'jwt expired') {
244
236
  console.log('[SIGN] Signing session expired');
245
- this.errorMessage = 'Signing session expired. Please reload your browser to continue.';
237
+ this.fatalErrorHeader = 'Signing Session Expired';
238
+ this.fatalErrorMessage = 'Please reload your browser to continue.';
246
239
  }
247
240
  else {
248
241
  console.log('[SIGN] Server error', e);
@@ -573,24 +566,18 @@ export class VerdocsSign {
573
566
  if (!this.envelope) {
574
567
  return (h(Host, null, h("verdocs-loader", null)));
575
568
  }
569
+ if (this.fatalErrorMessage) {
570
+ return (h(Host, { class: { agreed: this.agreed } }, h("div", { class: "fatal-error" }, h("img", { src: "https://public-assets.verdocs.com/loading-placeholder.png", class: "placeholder", alt: "Placeholder page" }), h("div", { class: "message" }, h("div", { class: "header" }, this.fatalErrorHeader), h("p", null, this.fatalErrorMessage)))));
571
+ }
576
572
  if (this.isDone) {
577
- return (h(Host, { class: { agreed: this.agreed } }, h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, envelope: this.envelope, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), this.errorMessage && h("verdocs-ok-dialog", { heading: "Unable to Sign Document", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: (e) => {
573
+ return (h(Host, { class: { agreed: this.agreed } }, h("verdocs-view", { endpoint: this.endpoint, envelopeId: this.envelopeId, envelope: this.envelope, onSdkError: e => { var _a; return (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e.detail); } }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: (e) => {
578
574
  e.preventDefault();
579
575
  e.stopPropagation();
580
576
  this.showDone = false;
581
577
  this.isDone = true;
582
- } })), this.showCanceled && (h("verdocs-ok-dialog", { heading: "Document Canceled", message: `This envelope has been canceled. Please contact the sender.`, onNext: (e) => {
583
- e.preventDefault();
584
- e.stopPropagation();
585
- // We don't allow this to be hidden
586
- // this.showCanceled = false;
587
- } })), this.showDeclined && (h("verdocs-ok-dialog", { heading: "Declined to Sign", message: `You have declined to sign this document. Please contact the sender.`, onNext: (e) => {
588
- e.preventDefault();
589
- e.stopPropagation();
590
- // We don't allow this to be hidden
591
- // this.showDeclined = false;
592
578
  } })), this.submitting && (h("div", { class: "loading-indicator" }, h("verdocs-loader", null)))));
593
579
  }
580
+ // @ts-ignore
594
581
  if (!this.agreed) {
595
582
  return (h(Host, { class: "agreed" }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name))), h("div", { class: "document", style: { paddingTop: '15px' } }, 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" })), h("div", { class: "cover" }, h("div", { class: "agree" }, h("verdocs-checkbox", { name: "agree", label: "By checking this box, you:", onInput: () => this.handleClickAgree() }), h("ul", null, h("li", null, "Agree to use electronic records and signatures, and confirm you have read the", ' ', h("a", { href: "https://verdocs.com/en/electronic-record-signature-disclosure/", target: "_blank" }, "Electronic Record and Signatures Disclosure"), "."), h("li", null, "Agree to Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/eula", target: "_blank" }, "End User License Agreement"), ' ', "and confirm you have read Verdocs'", ' ', h("a", { href: "https://verdocs.com/en/privacy-policy/", target: "_blank" }, "Privacy Policy"), "."))))));
596
583
  }
@@ -637,8 +624,8 @@ export class VerdocsSign {
637
624
  const questionNumber = this.kbaChoices.length;
638
625
  const kbaQuestion = this.kbaQuestions[questionNumber];
639
626
  console.log('Showing KBA question', { questionNumber, kbaQuestion }, this.kbaChoices);
640
- return (h(Host, { class: "kba" }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name))), h("div", { class: "document", style: { paddingTop: '15px' } }, 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" })), h("div", { class: "cover" }, h("div", { class: "kba" }, h("verdocs-kba-dialog", { mode: "choice", helptitle: "Your identity requires additional verification", helptext: (kbaQuestion === null || kbaQuestion === void 0 ? void 0 : kbaQuestion.prompt) || 'Please select one of the options below.', choices: (kbaQuestion === null || kbaQuestion === void 0 ? void 0 : kbaQuestion.answer) || ['Skip Question'], step: questionNumber + 1, steps: this.kbaQuestions.length, onNext: async (e) => {
641
- var _a, _b;
627
+ return (h(Host, { class: "kba" }, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name))), h("div", { class: "document", style: { paddingTop: '15px' } }, 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" })), h("div", { class: "cover" }, h("div", { class: "kba" }, this.kbaChoices.length >= this.kbaQuestions.length ? (h("verdocs-spinner", null)) : (h("verdocs-kba-dialog", { mode: "choice", helptitle: "Your identity requires additional verification", helptext: (kbaQuestion === null || kbaQuestion === void 0 ? void 0 : kbaQuestion.prompt) || 'Please select one of the options below.', choices: (kbaQuestion === null || kbaQuestion === void 0 ? void 0 : kbaQuestion.answer) || ['Skip Question'], step: questionNumber + 1, steps: this.kbaQuestions.length, onNext: async (e) => {
628
+ var _a, _b, _c;
642
629
  const answer = e.detail;
643
630
  this.kbaChoices = [...this.kbaChoices, answer];
644
631
  if (this.kbaChoices.length >= this.kbaQuestions.length) {
@@ -647,16 +634,26 @@ export class VerdocsSign {
647
634
  try {
648
635
  const response = await submitKbaChallengeResponse(this.endpoint, this.envelopeId, this.roleId, responses);
649
636
  console.log('KBA challenge response', response);
650
- this.kbaStep = '';
637
+ this.kbaStep = response.kba_step;
638
+ if (this.kbaStep === 'failed') {
639
+ this.fatalErrorHeader = 'Identity Verification Failed';
640
+ this.fatalErrorMessage = "We were unable to verify your identity. Please contact the document's sender.";
641
+ this.isDone = true;
642
+ }
643
+ else {
644
+ this.kbaQuestions = ((_a = response.questions) === null || _a === void 0 ? void 0 : _a.question) || [];
645
+ this.kbaChoices = [];
646
+ }
651
647
  }
652
648
  catch (e) {
653
649
  console.log('Error submitting KBA challenge', e);
654
650
  this.kbaStep = '';
655
- this.errorMessage = ((_b = (_a = e.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.error) || 'Unable to verify identity.';
651
+ this.fatalErrorHeader = 'Unable to Verify Identity';
652
+ this.fatalErrorMessage = ((_c = (_b = e.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.error) || 'Please try again later.';
656
653
  this.isDone = true;
657
654
  }
658
655
  }
659
- } })))));
656
+ } }))))));
660
657
  }
661
658
  return (h(Host, null, h("div", { id: "verdocs-sign-header" }, h("div", { class: "inner" }, h("img", { src: "https://verdocs.com/assets/white-logo.svg", alt: "Verdocs Logo", class: "logo" }), h("div", { class: "title" }, this.envelope.name), h("div", { style: { flex: '1' } }), !this.finishLater && h("verdocs-button", { size: "xsmall", label: this.nextButtonLabel, disabled: !this.agreed, onClick: () => this.handleNext() }), h("div", { style: { marginLeft: '10px' } }), h("verdocs-dropdown", { options: !this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions, onOptionSelected: e => this.handleOptionSelected(e) }))), h("div", { class: "document", style: { paddingTop: '15px' } }, (this.envelope.documents || []).map(envelopeDocument => {
662
659
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
@@ -676,19 +673,9 @@ export class VerdocsSign {
676
673
  { name: 'controls', type: 'div' },
677
674
  ] }));
678
675
  })));
679
- })), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.errorMessage && h("verdocs-ok-dialog", { heading: "Network Error", message: this.errorMessage, onNext: () => (this.errorMessage = '') }), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
676
+ })), this.showFinishLater && (h("verdocs-ok-dialog", { heading: "You've saved your document to finish later.", message: `To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`, onNext: () => (this.showFinishLater = false) })), this.showDone && (h("verdocs-ok-dialog", { heading: "You're Done!", message: `You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`, onNext: () => {
680
677
  this.showDone = false;
681
678
  this.isDone = true;
682
- } })), this.showCanceled && (h("verdocs-ok-dialog", { heading: "Document Canceled", message: `This envelope has been canceled. Please contact the sender.`, onNext: (e) => {
683
- e.preventDefault();
684
- e.stopPropagation();
685
- // We don't allow this to be hidden
686
- // this.showCanceled = false;
687
- } })), this.showDeclined && (h("verdocs-ok-dialog", { heading: "Declined to Sign", message: `You have declined to sign this document. Please contact the sender.`, onNext: (e) => {
688
- e.preventDefault();
689
- e.stopPropagation();
690
- // We don't allow this to be hidden
691
- // this.showDeclined = false;
692
679
  } })), this.submitting ||
693
680
  (this.showSpinner && (h("verdocs-portal", null, h("div", { class: "spinner-overlay" }, h("verdocs-spinner", null)))))));
694
681
  }
@@ -810,16 +797,13 @@ export class VerdocsSign {
810
797
  "hasSignature": {},
811
798
  "nextButtonLabel": {},
812
799
  "nextSubmits": {},
813
- "errorMessage": {},
800
+ "fatalErrorHeader": {},
801
+ "fatalErrorMessage": {},
814
802
  "focusedField": {},
815
803
  "submitting": {},
816
804
  "submitted": {},
817
- "canceled": {},
818
- "declined": {},
819
805
  "isDone": {},
820
806
  "showDone": {},
821
- "showCanceled": {},
822
- "showDeclined": {},
823
807
  "showLoadError": {},
824
808
  "finishLater": {},
825
809
  "showFinishLater": {},
@@ -113,16 +113,20 @@ export class VerdocsContactPicker {
113
113
  // TODO: Re-activate this one SMS is re-enabled
114
114
  // const hasBasics = this.first_name && this.last_name && (isValidEmail(this.email) || isValidPhone(this.phone));
115
115
  const hasBasics = this.first_name && this.last_name && isValidEmail(this.email);
116
- const hasKbaRequirements = !this.kba_method || (this.kba_method === 'pin' && this.kba_pin) || (this.kba_method === 'identity' && this.address && this.zip);
116
+ const hasKbaRequirements = !this.kba_method ||
117
+ (this.kba_method === 'pin' && this.kba_pin) ||
118
+ this.kba_method === 'identity';
119
+ // TODO: For discussion
120
+ // (this.kba_method === 'identity' && this.address && this.zip)
117
121
  const canSubmit = hasBasics && hasKbaRequirements;
118
- return (h("form", { key: 'd40d7ab6926801a72fc905124323740cdcc7af82', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '1cc65cc395753e4d5de4287b09216d6e07439592', class: "row" }, h("label", { key: '7a1120950c72c4f7346b938a1f37dd1972f35df6', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: 'd627bc1a4afbe9124ac6a13d51bf302e3001ec1d', class: "names-row" }, h("input", { key: '0c253b1af4193a0be2eff1fdc37b2afd389ae628', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: '94783d62f158a900d1d500f35c9f39f104dab573', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: 'f871569070a3f5607e3105fce9fbc0556a158698', class: "dropdown" }, this.contactSuggestions
122
+ return (h("form", { key: '2ce99d1c3ae979f25dde56e4a9dc7ec56cec2542', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '6257ebf610c9ea9a8f6238311ad1b4ed0095e498', class: "row" }, h("label", { key: 'c36d51599847033b0c096c9d5de7d8af49e05c7d', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: '23cdb2afffff2ede3429c8591093eb89ca89d4b6', class: "names-row" }, h("input", { key: 'd281392383863edbcfc14440e18631b97962ea2f', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: 'eea0626eb854ae95c32ad7e98d479a614e7df81c', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: '2e3fc57f42e3281b83b03e53b92c07243dcff544', class: "dropdown" }, this.contactSuggestions
119
123
  .filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
120
124
  .map(suggestion => {
121
125
  var _a;
122
126
  return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : h("div", { class: "avatar", innerHTML: addrBookIcon }), h("div", { class: "details" }, h("div", { class: "name" }, formatFullName(suggestion)), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
123
- })))), h("div", { key: '5eacfbeefc837f28ea047bc323272b09fef575e5', class: "row" }, h("label", { key: '4bf46b0b13fa3cafd608589b042577296fdc1594', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '619e6531fe613f8f52958c76ab52776660e4534f', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), h("div", { key: 'd63956f4aa8dce0e97209be869ae8648a62b9fdb', class: "row" }, h("label", { key: '5dd9cf94ed4b8003521d5083b6553d71e9dd3dee', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '063fc3193ef9cb0955060d5cd092c7783cba5098', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone (SMS)...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
127
+ })))), h("div", { key: 'f18fd6d889ea70f8a5e51bd1780007b3ff061b56', class: "row" }, h("label", { key: '5cda3922bb705ed0d3af00644df9ef8d42042021', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '34474c4c8bbbde2802b3c2f58ea3abed4b3e27f6', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), h("div", { key: 'c757b186ca60272855ed5701c59857856dcd863f', class: "row" }, h("label", { key: '1d971705ab36609db6a4e9cb7d24281d98441cd5', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '2a516e28498a6727409ef51e61ca3fe912c65789', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone (SMS)...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
124
128
  this.phone = convertToE164(e.target.value);
125
- } })), this.showKba && (h(Fragment, { key: '48e0af03f5a249ef2c20e2df222341120a6c3b5c' }, h("div", { key: '4346ebf44c8e0c243a1f746590246c7490eea2fe', class: "kba-row" }, h("label", { key: 'd25915358b4484f75eee50018e6bda21cd70960d' }, "KBA:"), h("verdocs-select-input", { key: 'ee98c872450e200dcbfaef60d771e5af326836d0', value: this.kba_method, onInput: (e) => {
129
+ } })), this.showKba && (h(Fragment, { key: '05cdb2c78abc3156d04a012c40a52f2c6ab24a86' }, h("div", { key: '56d53a04ba6ab45ecc30f11e44669ad503400a49', class: "kba-row" }, h("label", { key: '8af91071db065071bb40e931ea92231f31e9c0c9' }, "KBA:"), h("verdocs-select-input", { key: '3f2eec31ee0078779eeed5d3f2fbd222fcdbaa42', value: this.kba_method, onInput: (e) => {
126
130
  this.kba_method = e.target.value;
127
131
  this.zip = '';
128
132
  this.address = '';
@@ -131,7 +135,7 @@ export class VerdocsContactPicker {
131
135
  { label: 'None', value: '' },
132
136
  { label: 'PIN Code', value: 'pin' },
133
137
  { label: 'Full Verification', value: 'identity' },
134
- ] }), h("div", { key: '957a356a2e8c5a1b3ee5385f9a8f5415c5a46e65', style: { flex: '1' } }), h("verdocs-help-icon", { key: 'a4f8fec22927ef6c2f128e54352698a56ce37a82', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), this.kba_method === 'pin' && (h("div", { key: 'b86ac5c7d462bcf496a798238dd5faab5b426dcc', class: "row pin-code" }, h("input", { key: '4cd823f381dcaa148f010eaa3120899a2b1e520b', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.kba_pin, placeholder: "PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.kba_pin = e.target.value) }))), this.kba_method === 'identity' && (h("div", { key: 'b4ca6e66fec7d2207e1cfea367b8634c2a846298', class: "row address" }, h("input", { key: '98797c6fa77aab7616dbc46fe4cffd2be2711443', id: "verdocs-address", name: "verdocs-address", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.address, placeholder: "Address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.address = e.target.value) }), h("verdocs-help-icon", { key: 'a25ec19d4765ce7b43018ce7fcf5818a96a7133d', text: "Pre-fill the recipient's current street address. They will still be asked ID challenge questions." }))), this.kba_method === 'identity' && (h("div", { key: '3ddd93dec30290944b8ee2810a7c61ea66cae603', class: "row zip-code" }, h("input", { key: 'eeb1c0dacec272a10886b3a6c9b7042d3c9d3c43', id: "verdocs-zip-code", name: "verdocs-zip-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.zip, placeholder: "Zip Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.zip = e.target.value) }), h("verdocs-help-icon", { key: '140e700ed613664ebb33d39c5af117c9e7969aa1', text: "Pre-fill the recipient's current zip code. They will still be asked ID challenge questions." }))))), this.showMessage && (h("div", { key: '93a84aefd533d9c2c88cb843da08fab4bd5981a8', class: "row message" }, h("label", { key: '719b04a962c48b31aab9480c22d5d81a53ed1858', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'c0931551ef1a2f3fda6cd55b155f43d22aa93852', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Message shown in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }))), h("div", { key: 'a547e03cd3054068f022f4203b823f9c0075c3d4', class: "buttons" }, h("verdocs-toggle-button", { key: '2ba5baaf63bf580d536c8823e924f786d506eab5', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
138
+ ] }), h("div", { key: '33e9efc07399e6930264b4b79f73a5497728c7c7', style: { flex: '1' } }), h("verdocs-help-icon", { key: 'bc5ec8ad3fcf22a4f9a0f4659b574e238526574a', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), this.kba_method === 'pin' && (h("div", { key: 'cd07404e1e9cd0a344c0975bdd23b2374d97ad61', class: "row pin-code" }, h("input", { key: '92909cedb50e11bffe60dcd032b2d8c3dd901834', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.kba_pin, placeholder: "PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.kba_pin = e.target.value) }))), this.kba_method === 'identity' && (h("div", { key: '6ad1983ac8f9394bb9f35a8a9bba2f16d48d7bcd', class: "row address" }, h("input", { key: 'd598a1fb52b77eb85f17bda65f1730900d1d94e5', id: "verdocs-address", name: "verdocs-address", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.address, placeholder: "Address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.address = e.target.value) }), h("verdocs-help-icon", { key: '09d3cfa8e92c6c59cda2cff599ae474296de35a0', text: "Pre-fill the recipient's current street address. They will still be asked ID challenge questions." }))), this.kba_method === 'identity' && (h("div", { key: '1ccb3caa35f5474f40245ca1fe9c11aa175b4cc2', class: "row zip-code" }, h("input", { key: 'e967aba3ffac6e25f359c56c0bd5cd057394ad82', id: "verdocs-zip-code", name: "verdocs-zip-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.zip, placeholder: "Zip Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.zip = e.target.value) }), h("verdocs-help-icon", { key: 'b4075b320d84028e8717e8383113751155a6aebf', text: "Pre-fill the recipient's current zip code. They will still be asked ID challenge questions." }))))), this.showMessage && (h("div", { key: '8212baa1274eb1dd98deeec972afeeb5bfb3c400', class: "row message" }, h("label", { key: '1b1c58c77ebd0dfd1e193e68a9bf472d93b8914f', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'd5525496367b3fa0bde52a91bad7f68964454a3c', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Message shown in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }))), h("div", { key: 'c39a19e49ea3ae82ecb287bf2acb87734237fdb9', class: "buttons" }, h("verdocs-toggle-button", { key: '311f86449b98cad74d5811473578ab223237d39e', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
135
139
  this.showKba = e.detail.active;
136
140
  if (!e.detail.active) {
137
141
  this.kba_pin = '';
@@ -139,10 +143,10 @@ export class VerdocsContactPicker {
139
143
  this.zip = '';
140
144
  }
141
145
  this.showSuggestions = false;
142
- } }), h("verdocs-toggle-button", { key: '5d5d3786fe83fc99f42061e273098bb97ff36eb0', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
146
+ } }), h("verdocs-toggle-button", { key: 'c51c8bba37758ad6ada6946d9c2df9880204b1be', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
143
147
  this.showMessage = e.detail.active;
144
148
  this.showSuggestions = false;
145
- } }), h("div", { key: 'a90c22f81cd8b13bd4646bf039693d1bc24cd95c', class: "flex-fill" }), h("verdocs-button", { key: '6ab5ef1e3f15561b44ee415f359c22bdf0a840ca', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '3b773438022361c3c04cdcad5a94d0673d887239', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
149
+ } }), h("div", { key: '747951c6d9273bf5142be1f20b6e51a2cc4239d5', class: "flex-fill" }), h("verdocs-button", { key: '12f60448cac7f6bb6804119ad620bdc77d4c0c9c', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '507b52e7904d9e5c31e1ba40c7ffa0ccba7763f2', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
146
150
  }
147
151
  static get is() { return "verdocs-contact-picker"; }
148
152
  static get originalStyleUrls() {
@@ -6,7 +6,7 @@ import { V as VerdocsToast } from './p-04c07b7b.js';
6
6
  import { S as SDKError } from './p-fd97809c.js';
7
7
  import { d as defineCustomElement$8 } from './p-ac7578f6.js';
8
8
  import { d as defineCustomElement$7 } from './p-921297ba.js';
9
- import { d as defineCustomElement$6 } from './p-302ff525.js';
9
+ import { d as defineCustomElement$6 } from './p-b11eb119.js';
10
10
  import { d as defineCustomElement$5 } from './p-69881420.js';
11
11
  import { d as defineCustomElement$4 } from './p-8b27ce22.js';
12
12
  import { d as defineCustomElement$3 } from './p-263dc67d.js';
@@ -109,16 +109,20 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
109
109
  // TODO: Re-activate this one SMS is re-enabled
110
110
  // const hasBasics = this.first_name && this.last_name && (isValidEmail(this.email) || isValidPhone(this.phone));
111
111
  const hasBasics = this.first_name && this.last_name && isValidEmail(this.email);
112
- const hasKbaRequirements = !this.kba_method || (this.kba_method === 'pin' && this.kba_pin) || (this.kba_method === 'identity' && this.address && this.zip);
112
+ const hasKbaRequirements = !this.kba_method ||
113
+ (this.kba_method === 'pin' && this.kba_pin) ||
114
+ this.kba_method === 'identity';
115
+ // TODO: For discussion
116
+ // (this.kba_method === 'identity' && this.address && this.zip)
113
117
  const canSubmit = hasBasics && hasKbaRequirements;
114
- return (h("form", { key: 'd40d7ab6926801a72fc905124323740cdcc7af82', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '1cc65cc395753e4d5de4287b09216d6e07439592', class: "row" }, h("label", { key: '7a1120950c72c4f7346b938a1f37dd1972f35df6', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: 'd627bc1a4afbe9124ac6a13d51bf302e3001ec1d', class: "names-row" }, h("input", { key: '0c253b1af4193a0be2eff1fdc37b2afd389ae628', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: '94783d62f158a900d1d500f35c9f39f104dab573', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: 'f871569070a3f5607e3105fce9fbc0556a158698', class: "dropdown" }, this.contactSuggestions
118
+ return (h("form", { key: '2ce99d1c3ae979f25dde56e4a9dc7ec56cec2542', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("div", { key: '6257ebf610c9ea9a8f6238311ad1b4ed0095e498', class: "row" }, h("label", { key: 'c36d51599847033b0c096c9d5de7d8af49e05c7d', htmlFor: this.nameFieldId }, "Name:"), h("div", { key: '23cdb2afffff2ede3429c8591093eb89ca89d4b6', class: "names-row" }, h("input", { key: 'd281392383863edbcfc14440e18631b97962ea2f', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.first_name, placeholder: "First...", onFocus: () => { var _a; return (this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0); }, onInput: e => this.handleFirstNameChange(e) }), h("input", { key: 'eea0626eb854ae95c32ad7e98d479a614e7df81c', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.last_name, placeholder: "Last...", onFocus: () => (this.showSuggestions = false), onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (h("div", { key: '2e3fc57f42e3281b83b03e53b92c07243dcff544', class: "dropdown" }, this.contactSuggestions
115
119
  .filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
116
120
  .map(suggestion => {
117
121
  var _a;
118
122
  return (h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : h("div", { class: "avatar", innerHTML: addrBookIcon }), h("div", { class: "details" }, h("div", { class: "name" }, formatFullName(suggestion)), suggestion.email && h("div", { class: "destination" }, suggestion.email), suggestion.phone && h("div", { class: "destination" }, suggestion.phone))));
119
- })))), h("div", { key: '5eacfbeefc837f28ea047bc323272b09fef575e5', class: "row" }, h("label", { key: '4bf46b0b13fa3cafd608589b042577296fdc1594', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '619e6531fe613f8f52958c76ab52776660e4534f', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), h("div", { key: 'd63956f4aa8dce0e97209be869ae8648a62b9fdb', class: "row" }, h("label", { key: '5dd9cf94ed4b8003521d5083b6553d71e9dd3dee', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '063fc3193ef9cb0955060d5cd092c7783cba5098', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone (SMS)...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
123
+ })))), h("div", { key: 'f18fd6d889ea70f8a5e51bd1780007b3ff061b56', class: "row" }, h("label", { key: '5cda3922bb705ed0d3af00644df9ef8d42042021', htmlFor: this.emailFieldId }, "Email:"), h("input", { key: '34474c4c8bbbde2802b3c2f58ea3abed4b3e27f6', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.email, placeholder: "Email address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), h("div", { key: 'c757b186ca60272855ed5701c59857856dcd863f', class: "row" }, h("label", { key: '1d971705ab36609db6a4e9cb7d24281d98441cd5', htmlFor: this.phoneFieldId }, "Phone:"), h("input", { key: '2a516e28498a6727409ef51e61ca3fe912c65789', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", value: this.phone, placeholder: "Phone (SMS)...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
120
124
  this.phone = convertToE164(e.target.value);
121
- } })), this.showKba && (h(Fragment, { key: '48e0af03f5a249ef2c20e2df222341120a6c3b5c' }, h("div", { key: '4346ebf44c8e0c243a1f746590246c7490eea2fe', class: "kba-row" }, h("label", { key: 'd25915358b4484f75eee50018e6bda21cd70960d' }, "KBA:"), h("verdocs-select-input", { key: 'ee98c872450e200dcbfaef60d771e5af326836d0', value: this.kba_method, onInput: (e) => {
125
+ } })), this.showKba && (h(Fragment, { key: '05cdb2c78abc3156d04a012c40a52f2c6ab24a86' }, h("div", { key: '56d53a04ba6ab45ecc30f11e44669ad503400a49', class: "kba-row" }, h("label", { key: '8af91071db065071bb40e931ea92231f31e9c0c9' }, "KBA:"), h("verdocs-select-input", { key: '3f2eec31ee0078779eeed5d3f2fbd222fcdbaa42', value: this.kba_method, onInput: (e) => {
122
126
  this.kba_method = e.target.value;
123
127
  this.zip = '';
124
128
  this.address = '';
@@ -127,7 +131,7 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
127
131
  { label: 'None', value: '' },
128
132
  { label: 'PIN Code', value: 'pin' },
129
133
  { label: 'Full Verification', value: 'identity' },
130
- ] }), h("div", { key: '957a356a2e8c5a1b3ee5385f9a8f5415c5a46e65', style: { flex: '1' } }), h("verdocs-help-icon", { key: 'a4f8fec22927ef6c2f128e54352698a56ce37a82', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), this.kba_method === 'pin' && (h("div", { key: 'b86ac5c7d462bcf496a798238dd5faab5b426dcc', class: "row pin-code" }, h("input", { key: '4cd823f381dcaa148f010eaa3120899a2b1e520b', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.kba_pin, placeholder: "PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.kba_pin = e.target.value) }))), this.kba_method === 'identity' && (h("div", { key: 'b4ca6e66fec7d2207e1cfea367b8634c2a846298', class: "row address" }, h("input", { key: '98797c6fa77aab7616dbc46fe4cffd2be2711443', id: "verdocs-address", name: "verdocs-address", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.address, placeholder: "Address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.address = e.target.value) }), h("verdocs-help-icon", { key: 'a25ec19d4765ce7b43018ce7fcf5818a96a7133d', text: "Pre-fill the recipient's current street address. They will still be asked ID challenge questions." }))), this.kba_method === 'identity' && (h("div", { key: '3ddd93dec30290944b8ee2810a7c61ea66cae603', class: "row zip-code" }, h("input", { key: 'eeb1c0dacec272a10886b3a6c9b7042d3c9d3c43', id: "verdocs-zip-code", name: "verdocs-zip-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.zip, placeholder: "Zip Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.zip = e.target.value) }), h("verdocs-help-icon", { key: '140e700ed613664ebb33d39c5af117c9e7969aa1', text: "Pre-fill the recipient's current zip code. They will still be asked ID challenge questions." }))))), this.showMessage && (h("div", { key: '93a84aefd533d9c2c88cb843da08fab4bd5981a8', class: "row message" }, h("label", { key: '719b04a962c48b31aab9480c22d5d81a53ed1858', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'c0931551ef1a2f3fda6cd55b155f43d22aa93852', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Message shown in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }))), h("div", { key: 'a547e03cd3054068f022f4203b823f9c0075c3d4', class: "buttons" }, h("verdocs-toggle-button", { key: '2ba5baaf63bf580d536c8823e924f786d506eab5', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
134
+ ] }), h("div", { key: '33e9efc07399e6930264b4b79f73a5497728c7c7', style: { flex: '1' } }), h("verdocs-help-icon", { key: 'bc5ec8ad3fcf22a4f9a0f4659b574e238526574a', text: "Knowledge-Based Authentication adds additional authentication for this user either via a simple PIN code or full address validation. NOTE: There may be a fee for using this feature." })), this.kba_method === 'pin' && (h("div", { key: 'cd07404e1e9cd0a344c0975bdd23b2374d97ad61', class: "row pin-code" }, h("input", { key: '92909cedb50e11bffe60dcd032b2d8c3dd901834', id: "verdocs-pin-code", name: "verdocs-pin-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.kba_pin, placeholder: "PIN Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.kba_pin = e.target.value) }))), this.kba_method === 'identity' && (h("div", { key: '6ad1983ac8f9394bb9f35a8a9bba2f16d48d7bcd', class: "row address" }, h("input", { key: 'd598a1fb52b77eb85f17bda65f1730900d1d94e5', id: "verdocs-address", name: "verdocs-address", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.address, placeholder: "Address...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.address = e.target.value) }), h("verdocs-help-icon", { key: '09d3cfa8e92c6c59cda2cff599ae474296de35a0', text: "Pre-fill the recipient's current street address. They will still be asked ID challenge questions." }))), this.kba_method === 'identity' && (h("div", { key: '1ccb3caa35f5474f40245ca1fe9c11aa175b4cc2', class: "row zip-code" }, h("input", { key: 'e967aba3ffac6e25f359c56c0bd5cd057394ad82', id: "verdocs-zip-code", name: "verdocs-zip-code", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.zip, placeholder: "Zip Code...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.zip = e.target.value) }), h("verdocs-help-icon", { key: 'b4075b320d84028e8717e8383113751155a6aebf', text: "Pre-fill the recipient's current zip code. They will still be asked ID challenge questions." }))))), this.showMessage && (h("div", { key: '8212baa1274eb1dd98deeec972afeeb5bfb3c400', class: "row message" }, h("label", { key: '1b1c58c77ebd0dfd1e193e68a9bf472d93b8914f', htmlFor: "verdocs-contact-picker-message" }, "Message:"), h("input", { key: 'd5525496367b3fa0bde52a91bad7f68964454a3c', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", type: "text", "data-lpignore": "true", autocomplete: "blocked", value: this.message, placeholder: "Message shown in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }))), h("div", { key: 'c39a19e49ea3ae82ecb287bf2acb87734237fdb9', class: "buttons" }, h("verdocs-toggle-button", { key: '311f86449b98cad74d5811473578ab223237d39e', icon: kbaIcon, size: "small", active: this.showKba, onToggle: e => {
131
135
  this.showKba = e.detail.active;
132
136
  if (!e.detail.active) {
133
137
  this.kba_pin = '';
@@ -135,10 +139,10 @@ const VerdocsContactPicker = /*@__PURE__*/ proxyCustomElement(class VerdocsConta
135
139
  this.zip = '';
136
140
  }
137
141
  this.showSuggestions = false;
138
- } }), h("verdocs-toggle-button", { key: '5d5d3786fe83fc99f42061e273098bb97ff36eb0', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
142
+ } }), h("verdocs-toggle-button", { key: 'c51c8bba37758ad6ada6946d9c2df9880204b1be', icon: messageIcon, size: "small", active: this.showMessage, onToggle: e => {
139
143
  this.showMessage = e.detail.active;
140
144
  this.showSuggestions = false;
141
- } }), h("div", { key: 'a90c22f81cd8b13bd4646bf039693d1bc24cd95c', class: "flex-fill" }), h("verdocs-button", { key: '6ab5ef1e3f15561b44ee415f359c22bdf0a840ca', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '3b773438022361c3c04cdcad5a94d0673d887239', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
145
+ } }), h("div", { key: '747951c6d9273bf5142be1f20b6e51a2cc4239d5', class: "flex-fill" }), h("verdocs-button", { key: '12f60448cac7f6bb6804119ad620bdc77d4c0c9c', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '507b52e7904d9e5c31e1ba40c7ffa0ccba7763f2', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
142
146
  }
143
147
  static get style() { return VerdocsContactPickerStyle0; }
144
148
  }, [0, "verdocs-contact-picker", {
@@ -39,6 +39,7 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
39
39
  }
40
40
  handleDone() {
41
41
  this.next.emit(this.response);
42
+ this.response = '';
42
43
  }
43
44
  handleConfirmID() {
44
45
  this.next.emit(this.updatedRecipient);
@@ -6,7 +6,7 @@ import { d as defineCustomElement$H } from './p-ac7578f6.js';
6
6
  import { d as defineCustomElement$G } from './p-3044c9cb.js';
7
7
  import { d as defineCustomElement$F } from './p-4dc4418a.js';
8
8
  import { d as defineCustomElement$E } from './p-921297ba.js';
9
- import { d as defineCustomElement$D } from './p-302ff525.js';
9
+ import { d as defineCustomElement$D } from './p-b11eb119.js';
10
10
  import { d as defineCustomElement$C } from './p-12594438.js';
11
11
  import { d as defineCustomElement$B } from './p-03660739.js';
12
12
  import { d as defineCustomElement$A } from './p-0162bdd3.js';
@@ -26,7 +26,7 @@ import { d as defineCustomElement$n } from './p-8b27ce22.js';
26
26
  import { d as defineCustomElement$m } from './p-76282bf0.js';
27
27
  import { d as defineCustomElement$l } from './p-556596e4.js';
28
28
  import { d as defineCustomElement$k } from './p-263dc67d.js';
29
- import { d as defineCustomElement$j } from './p-285791f0.js';
29
+ import { d as defineCustomElement$j } from './p-8cd2e08d.js';
30
30
  import { d as defineCustomElement$i } from './p-d3170dcd.js';
31
31
  import { d as defineCustomElement$h } from './p-6b369b14.js';
32
32
  import { d as defineCustomElement$g } from './p-ffe8b41d.js';
@@ -1,4 +1,4 @@
1
- import { V as VerdocsContactPicker$1, d as defineCustomElement$1 } from './p-302ff525.js';
1
+ import { V as VerdocsContactPicker$1, d as defineCustomElement$1 } from './p-b11eb119.js';
2
2
 
3
3
  const VerdocsContactPicker = VerdocsContactPicker$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { V as VerdocsKbaDialog$1, d as defineCustomElement$1 } from './p-ce71f0a7.js';
1
+ import { V as VerdocsKbaDialog$1, d as defineCustomElement$1 } from './p-e4ac6259.js';
2
2
 
3
3
  const VerdocsKbaDialog = VerdocsKbaDialog$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { V as VerdocsSend$1, d as defineCustomElement$1 } from './p-285791f0.js';
1
+ import { V as VerdocsSend$1, d as defineCustomElement$1 } from './p-8cd2e08d.js';
2
2
 
3
3
  const VerdocsSend = VerdocsSend$1;
4
4
  const defineCustomElement = defineCustomElement$1;