@verdocs/web-sdk 4.2.142 → 4.2.144

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 (116) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  3. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  4. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +2 -2
  5. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +20 -3
  6. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-sign.cjs.entry.js +47 -0
  10. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  11. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-template-role-properties.cjs.entry.js +8 -8
  14. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  17. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +28 -0
  18. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +77 -10
  19. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  20. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  21. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  22. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  23. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  24. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +48 -1
  25. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  26. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  27. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  28. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  29. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  30. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -8
  31. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  32. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  33. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  34. package/dist/components/verdocs-envelopes-list.js +6 -6
  35. package/dist/components/verdocs-kba-dialog2.js +24 -4
  36. package/dist/components/verdocs-ok-dialog2.js +1 -1
  37. package/dist/components/verdocs-quick-functions.js +1 -1
  38. package/dist/components/verdocs-search-tabs.js +1 -1
  39. package/dist/components/verdocs-sign.js +48 -1
  40. package/dist/components/verdocs-signature-dialog2.js +1 -1
  41. package/dist/components/verdocs-status-indicator2.js +2 -2
  42. package/dist/components/verdocs-template-card.js +1 -1
  43. package/dist/components/verdocs-template-document-page2.js +1 -1
  44. package/dist/components/verdocs-template-role-properties2.js +8 -8
  45. package/dist/components/verdocs-template-star2.js +1 -1
  46. package/dist/components/verdocs-template-tags.js +1 -1
  47. package/dist/components/verdocs-upload-dialog2.js +1 -1
  48. package/dist/esm/loader.js +1 -1
  49. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  50. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  51. package/dist/esm/verdocs-field-attachment_13.entry.js +2 -2
  52. package/dist/esm/verdocs-kba-dialog_2.entry.js +20 -3
  53. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  54. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  55. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  56. package/dist/esm/verdocs-sign.entry.js +48 -1
  57. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  58. package/dist/esm/verdocs-template-card.entry.js +1 -1
  59. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  60. package/dist/esm/verdocs-template-role-properties.entry.js +8 -8
  61. package/dist/esm/verdocs-template-star.entry.js +1 -1
  62. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  63. package/dist/esm/verdocs-web-sdk.js +1 -1
  64. package/dist/esm-es5/loader.js +1 -1
  65. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  66. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  67. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  68. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  69. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  70. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  71. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  72. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  73. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  74. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  75. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  76. package/dist/esm-es5/verdocs-template-role-properties.entry.js +1 -1
  77. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  78. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  79. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  80. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +19 -4
  81. package/dist/types/components.d.ts +20 -7
  82. package/dist/verdocs-web-sdk/{p-06448ac6.system.entry.js → p-0732ddc0.system.entry.js} +1 -1
  83. package/dist/verdocs-web-sdk/{p-f0bc99ba.entry.js → p-0f7fc1f2.entry.js} +1 -1
  84. package/dist/verdocs-web-sdk/{p-6c9514db.system.entry.js → p-1c105fac.system.entry.js} +1 -1
  85. package/dist/verdocs-web-sdk/{p-0cf80242.system.entry.js → p-1c69fc09.system.entry.js} +1 -1
  86. package/dist/verdocs-web-sdk/p-2657ed1c.system.entry.js +1 -0
  87. package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
  88. package/dist/verdocs-web-sdk/p-2ed9357a.entry.js +1 -0
  89. package/dist/verdocs-web-sdk/{p-79aa0c7b.entry.js → p-316ac232.entry.js} +1 -1
  90. package/dist/verdocs-web-sdk/{p-9745c048.entry.js → p-3bf8832b.entry.js} +1 -1
  91. package/dist/verdocs-web-sdk/{p-b12dc865.system.entry.js → p-40f8ef4c.system.entry.js} +1 -1
  92. package/dist/verdocs-web-sdk/{p-47a6b7b0.system.entry.js → p-4d21cd21.system.entry.js} +1 -1
  93. package/dist/verdocs-web-sdk/p-4f3c90a2.entry.js +1 -0
  94. package/dist/verdocs-web-sdk/{p-90c60846.entry.js → p-5d22eb2b.entry.js} +1 -1
  95. package/dist/verdocs-web-sdk/{p-1129b2c6.system.entry.js → p-7e5508dd.system.entry.js} +1 -1
  96. package/dist/verdocs-web-sdk/p-8006acba.system.entry.js +1 -0
  97. package/dist/verdocs-web-sdk/{p-b5763ec0.system.entry.js → p-809e435e.system.entry.js} +1 -1
  98. package/dist/verdocs-web-sdk/{p-7f33a64f.system.entry.js → p-8b860709.system.entry.js} +1 -1
  99. package/dist/verdocs-web-sdk/{p-5ac7e3d0.entry.js → p-9103ecfa.entry.js} +1 -1
  100. package/dist/verdocs-web-sdk/{p-cad5ac82.entry.js → p-abafffee.entry.js} +1 -1
  101. package/dist/verdocs-web-sdk/{p-3457d011.entry.js → p-b3196d65.entry.js} +1 -1
  102. package/dist/verdocs-web-sdk/{p-5a267f30.system.entry.js → p-b44e3ba8.system.entry.js} +1 -1
  103. package/dist/verdocs-web-sdk/{p-585fd9ff.entry.js → p-c009b3b0.entry.js} +1 -1
  104. package/dist/verdocs-web-sdk/{p-aedfa605.system.entry.js → p-c4438847.system.entry.js} +1 -1
  105. package/dist/verdocs-web-sdk/{p-f9858e4a.system.entry.js → p-e2a7d811.system.entry.js} +1 -1
  106. package/dist/verdocs-web-sdk/{p-ff50e207.entry.js → p-e32ddb8e.entry.js} +1 -1
  107. package/dist/verdocs-web-sdk/{p-a39695ed.entry.js → p-eeb4dbad.entry.js} +1 -1
  108. package/dist/verdocs-web-sdk/{p-2becc4f4.entry.js → p-f8000c6c.entry.js} +1 -1
  109. package/dist/verdocs-web-sdk/{p-1537c6d4.entry.js → p-f9841ee1.entry.js} +1 -1
  110. package/dist/verdocs-web-sdk/{p-5f3f22ad.system.entry.js → p-fcb12513.system.entry.js} +1 -1
  111. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  112. package/package.json +1 -1
  113. package/dist/verdocs-web-sdk/p-86ccec71.entry.js +0 -1
  114. package/dist/verdocs-web-sdk/p-937e21ca.system.entry.js +0 -1
  115. package/dist/verdocs-web-sdk/p-97fa9395.entry.js +0 -1
  116. package/dist/verdocs-web-sdk/p-f5a065e0.system.entry.js +0 -1
@@ -117,34 +117,34 @@ export class VerdocsTemplateRoleProperties {
117
117
  const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
118
118
  // Either all three should be empty, or all three need to be filled
119
119
  const isValid = (!this.email && !this.first_name && !this.last_name) || (isValidEmail(this.email) && !!this.first_name && !!this.last_name);
120
- return (h(Host, { key: '58d9b5313e75866e1fefe0dcdb8139fa8a5bb087' }, h("div", { key: '60ce08b776cbd8cedeec9a0ec5748e923c785bc9', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: '73977c5f9e90c20e6365e0423635a94dbea2b122', class: "dialog" }, h("form", { key: '3c4f7826391dfa5874cc541fb82657aefb36710b', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'de887a66aec1fe4ebc9a5ef50e32f6355b10aa0d', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
120
+ return (h(Host, { key: '74dadb6d1937768b7b22b65609383673f2ce7742' }, h("div", { key: '139cb11995cee6b65c984609c0e5fd58a80476f4', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'd5e26b91df346a565776d4a0a9aa6aa226f3b061', class: "dialog" }, h("form", { key: '339d3b836bda41653b462a64d178f1d0e84480c5', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'da65605c4a43e482bee767460cb715dcdc7abb9b', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
121
121
  ? 'This role has fields assigned and can no longer be renamed.'
122
122
  : 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
123
123
  this.name = e.target.value;
124
124
  this.dirty = true;
125
- } }), h("div", { key: 'cd7d4834a3998536c2b8c48e44ed5bf3ec804359', class: "row" }, h("div", { key: '12019f45c950a1bdd2e2579d420f6e5aefaab2c5', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: 'f4c28c4adc8c9b68303e14d09e87dcb59c36a6d1', value: this.type, options: [
125
+ } }), h("div", { key: '9442291f5be25f224a180b07da6227254ab9876e', class: "row" }, h("div", { key: 'f5242969ab36a97d8cca6ba9e5cf73d27c40c28e', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '63c93d9e1e76b8537e56505f7e3863f864688b98', value: this.type, options: [
126
126
  { label: 'Signer', value: 'signer' },
127
127
  { label: 'CC', value: 'cc' },
128
128
  { label: 'Approver', value: 'approver' },
129
129
  ], onInput: (e) => {
130
130
  this.type = e.target.value;
131
131
  this.dirty = true;
132
- } }), h("verdocs-help-icon", { key: 'f99179b5c88aeb76e55819a85bc657741c7f35cb', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: 'cd07d5ba6bf22a58c86e8b0df5e76f32f42f4150', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
132
+ } }), h("verdocs-help-icon", { key: '8f19def75f25b7f2ee71f965c56143dcc8b7c282', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: '41466e48095b4772ac8ab5bc2e9e05b0c73ca974', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
133
133
  this.first_name = e.target.value;
134
134
  this.dirty = true;
135
- } }), h("verdocs-text-input", { key: 'ffeeb3f0608dd7a03bce4705e088e0358fe55938', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
135
+ } }), h("verdocs-text-input", { key: '331c49526c26526a3ec210fa8f682f260d4c4736', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
136
136
  this.last_name = e.target.value;
137
137
  this.dirty = true;
138
- } }), h("verdocs-text-input", { key: '16a366c91abc791b1225896436f1435407948d5f', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
138
+ } }), h("verdocs-text-input", { key: 'aad65c07b5f0766ce6af3dd3a2410cfc4611e32e', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
139
139
  this.email = e.target.value;
140
140
  this.dirty = true;
141
- } }), h("verdocs-text-input", { key: '9b3085606377b915379023087f2a16048fb8d27d', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
141
+ } }), h("verdocs-text-input", { key: 'b55afcf793356e044ff697ae8091baff552a0590', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
142
142
  this.phone = e.target.value;
143
143
  this.dirty = true;
144
- } }), h("div", { key: '3d9f8ee07579f56d0e0041bca7d7ecab19765475', class: "row" }, h("div", { key: 'c425db72f627ed05f87618d0feb6d09ad74513ca', class: "input-label" }, "May Delegate:"), h("div", { key: '5d4f7ca54f88406e1ff23b05ea516ca47e45a4a6', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '8ab784e036647e39be5df5793104e81b24c5784f', checked: this.delegator, onInput: (e) => {
144
+ } }), h("div", { key: '7532437d5934f7eda0022656e0ca8a42450643c1', class: "row" }, h("div", { key: '7573e7cd0a884cdc05846e073a0d0d5b1ffd219e', class: "input-label" }, "May Delegate:"), h("div", { key: 'c9212910419bcc73325bfda8d8753c8b4fe29157', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'a5a0bda938292cf6bb705e208db3303d0f8977b3', checked: this.delegator, onInput: (e) => {
145
145
  this.delegator = e.target.checked;
146
146
  this.dirty = true;
147
- } })), h("verdocs-help-icon", { key: 'e321303aa812683bf0f12cf12e56f19b2faf82ff', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '3bc17ab02dc1cd93f81d4c68a8ebc9c26fab2361', class: "buttons" }, h("button", { key: 'b52e9fd0c1b5e1be279cfdcebbb7bb74a08abcb6', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '75554b1ae55b373c7305b84b09980edcc53a7e6a', style: { flex: '1' } }), h("verdocs-button", { key: 'b44b20fc4c5b53ad5335b26ee463db76dc25fe6b', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '536656402d4bc0c9f46aa3bdf6b4923275fa30ba', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
147
+ } })), h("verdocs-help-icon", { key: '4502304dc60abe9c1ccf982f98a4283f3cc1792b', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '6a11b6941fcad80f16a583ab8a362c3b6653adae', class: "buttons" }, h("button", { key: '4f2c667b9c3099f8fa3b2a3237e2f9d891c405de', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '56fb84118a01d750a2ee909feeb5051f393a0915', style: { flex: '1' } }), h("verdocs-button", { key: '1f506b55768bf05096dbfe2b2466eb4c5ed15f58', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '63f65b939ced94f2e8b5e1d7e4e0b10c3d5e810f', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
148
148
  }
149
149
  static get is() { return "verdocs-template-role-properties"; }
150
150
  static get originalStyleUrls() {
@@ -38,7 +38,7 @@ export class VerdocsTemplateStar {
38
38
  });
39
39
  }
40
40
  render() {
41
- return (h(Host, { key: '7003637e9953f089bf0ddf9a128ab416103f64db' }, h("div", { key: '8b53c549e72e2b8432edc6d6de7d5ec4af746b37', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '66382354cf49ca5f0b01896983d34a3d27684041', class: "count" }, this.template.star_counter || '--')));
41
+ return (h(Host, { key: '4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02' }, h("div", { key: 'cac3bad8a37bcf044e037391bee73932b95931d1', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5', class: "count" }, this.template.star_counter || '--')));
42
42
  }
43
43
  static get is() { return "verdocs-template-star"; }
44
44
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ export class VerdocsTemplateTags {
8
8
  }
9
9
  render() {
10
10
  var _a;
11
- return (h(Host, { key: '67dd899e37a2c181705a9abf3ea031869e93257b' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
11
+ return (h(Host, { key: '5b52ce24a601aa820868affd555ce4b46935938d' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
12
12
  }
13
13
  static get is() { return "verdocs-template-tags"; }
14
14
  static get originalStyleUrls() {
@@ -75,7 +75,7 @@ const VerdocsEnvelopeDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
75
75
  }
76
76
  render() {
77
77
  const height = `${this.renderedHeight}px`;
78
- return (h(Host, { key: '725aa4c47855fd5ba3594e5fcbf30cd267041f60', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
78
+ return (h(Host, { key: '219a7af5090d897342b5013084a0ee40d2336d83', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
79
79
  // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
80
80
  // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
81
81
  // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
@@ -204,18 +204,18 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
204
204
  });
205
205
  }
206
206
  render() {
207
- return (h(Host, { key: '9f1eaf7fdbf0798a8ce02946ad3c42daf60a76b0' }, h("div", { key: '620cfe52f3e75e74de3dfb17d9d0f1913ff4de46', class: "header" }, h("div", { key: 'd62a2698c22c708bf94cf8a6a3add05d5399cfe1', class: "filter" }, h("verdocs-text-input", { key: '073ffcea37379f48cf3d6609a2b996c91ed51318', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
207
+ return (h(Host, { key: '6f4f98311ffbedefc96cbc2f1208e4f471ee1b01' }, h("div", { key: '97383aa90edf3bf8cf77ab3f6986bdd7502de1a9', class: "header" }, h("div", { key: '1af40727c235e732ba7c1265be6d2a6e1d33a4a1', class: "filter" }, h("verdocs-text-input", { key: '23beddb65b55f24545f9dc812655d9c63d96e4f9', id: "verdocs-filter-name", value: this.match, clearable: true, autocomplete: "off", placeholder: "Filter by Name, Recipient, or Field...", onFocusout: (e) => {
208
208
  var _a;
209
209
  // We don't locally filter envelopes because there are too many fields to match against efficiently.
210
210
  this.match = e.target.value.trim();
211
211
  (_a = this.changeMatch) === null || _a === void 0 ? void 0 : _a.emit(this.match);
212
- } })), h("verdocs-quick-filter", { key: 'eef9479478f38926f330b4ff1489622a7c7e39b0', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
212
+ } })), h("verdocs-quick-filter", { key: '2628e51157d28b5ebe6a9aeb01c526876f6c34ef', label: "View", value: this.view, options: ViewFilters, onOptionSelected: e => {
213
213
  this.view = e.detail.value;
214
- } }), this.view === 'all' && (h("verdocs-quick-filter", { key: '5b85df2a2ac590e5a601352b1de516fa1d2fa5cc', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
214
+ } }), this.view === 'all' && (h("verdocs-quick-filter", { key: '959f6844e39181e0cddd5f616e13818e5ab47e65', label: "Status", value: this.status, options: StatusFilters, onOptionSelected: e => {
215
215
  this.status = e.detail.value;
216
- } })), this.view === 'all' && (h("verdocs-quick-filter", { key: '06446e65471a4765623114e33b8a3fc35b375040', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
216
+ } })), this.view === 'all' && (h("verdocs-quick-filter", { key: '168930d3039992fc11a6f2715562ecfe714b78f0', label: "Sort By", value: this.sort, options: SortFilters, onOptionSelected: e => {
217
217
  this.sort = e.detail.value;
218
- } })), this.loading && h("verdocs-spinner", { key: 'fca503be96b2f82fe1c70271491b5d094a804d43', mode: "dark", size: 24 }), h("div", { key: '3bdb02f99ef011100fbe7ed7f845f7c035c2a060', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: 'da857a4fbb5ce231d326c9e62b455333c596282c', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
218
+ } })), this.loading && h("verdocs-spinner", { key: '541adb9e433da92dc7bdb10a7c0945f98e5afaae', mode: "dark", size: 24 }), h("div", { key: '2642cb449ab2e21154f18d6b4e7aec445b41a953', style: { display: 'flex', flex: '1' } }), this.selectedEnvelopes.length > 0 && h("verdocs-button", { key: '98ad50d3aa6859e0415401fd883127fd8b93cc5c', label: `Download (${this.selectedEnvelopes.length})`, onClick: () => this.handleDownload() })), this.envelopes.map(envelope => {
219
219
  var _a;
220
220
  const recipientsWithActions = getRecipientsWithActions(envelope);
221
221
  const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);
@@ -256,7 +256,7 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsEnv
256
256
  break;
257
257
  }
258
258
  } }))));
259
- }), !this.initiallyLoaded && (h("div", { key: '99f0bc38e1fff5fefa09ca53b774dd3b468cfd71', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: '9c5ecb405fcdb7f6623ad8faaa3289617621f013', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
259
+ }), !this.initiallyLoaded && (h("div", { key: '163ec5137181c5a7349c74502a29696da9e8dcf2', style: { width: '100%' } }, integerSequence(0, this.rowsPerPage).map(() => (h("div", { class: "envelope-placeholder" }))))), this.initiallyLoaded && !this.envelopes.length && h("div", { key: 'dcfc7cfc78b21072662437b6020ca155ff936334', class: "empty-text" }, "No matching envelopes found. Please adjust your filters and try again."), this.initiallyLoaded && this.envelopes.length && this.showPagination ? (h("div", { style: { marginTop: '20px' } }, h("verdocs-pagination", { selectedPage: this.selectedPage, perPage: this.rowsPerPage, itemCount: this.count, onSelectPage: e => {
260
260
  this.selectedPage = e.detail.selectedPage;
261
261
  } }))) : (h("div", null))));
262
262
  }
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
2
  import { d as defineCustomElement$1 } from './verdocs-button2.js';
3
3
 
4
- const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
4
+ const verdocsKbaDialogCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:14px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{-ms-flex:0 0 100px;flex:0 0 100px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:2px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}";
5
5
  const VerdocsKbaDialogStyle0 = verdocsKbaDialogCss;
6
6
 
7
7
  const QuestionIcon = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>`;
@@ -10,6 +10,7 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
10
10
  super();
11
11
  this.__registerHost();
12
12
  this.exit = createEvent(this, "exit", 7);
13
+ this.pinEntered = createEvent(this, "pinEntered", 7);
13
14
  this.next = createEvent(this, "next", 7);
14
15
  this.step = 1;
15
16
  this.steps = 3;
@@ -18,15 +19,21 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
18
19
  this.mode = 'choice';
19
20
  this.label = 'PIN';
20
21
  this.placeholder = 'Enter your PIN...';
22
+ this.recipient = null;
21
23
  this.choices = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];
22
24
  this.response = '';
25
+ this.answers = [];
26
+ this.updatedRecipient = null;
27
+ }
28
+ componentDidLoad() {
29
+ this.updatedRecipient = { ...(this.recipient || {}) };
23
30
  }
24
31
  handleCancel() {
25
32
  this.exit.emit();
26
33
  }
27
34
  // We need a separate event handler for clicking the background because it can receive events "through" other child components
28
35
  handleDismiss(e) {
29
- if (e.target.className === 'background-overlay') {
36
+ if (e.target.class === 'background-overlay') {
30
37
  e.preventDefault();
31
38
  this.handleCancel();
32
39
  }
@@ -34,8 +41,18 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
34
41
  handleDone() {
35
42
  this.next.emit(this.response);
36
43
  }
44
+ handleConfirmID() {
45
+ this.next.emit(this.updatedRecipient);
46
+ }
37
47
  render() {
38
- return (h(Host, { key: '6a0d0f9d07455a772a6973ce057b5f7483fbccf6' }, h("div", { key: '71aa7ccd29a30edbd139d6eb1ddeeb1a5d31cafc', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'f1944ed02a20aac17a9ca6c5ac8320f2fcd8eabd', class: "dialog" }, h("div", { key: '3d3611820bd29897586122fa92c6b079cf53fd90', class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { key: '2cbe26b7fb83f1a29aa9121c16893fd435a988b4', class: "help-box" }, h("div", { key: 'dcf7560f4addc363280bbe0cbb1de63c49d180ec', class: "help-icon", innerHTML: QuestionIcon }), h("div", { key: '17fd9ba07eb279585349d8b7e9f8a3a12c14c239', class: "help-details" }, h("div", { key: '36c255b2fa80908b118b77a8e77cebe8ed9e490a', class: "help-title" }, this.helptitle), h("div", { key: '88218d1b9a792cf7dc63c329102a0d5e371c7eb6', class: "help-text" }, this.helptext)))), this.mode === 'choice' ? (h("div", { class: "choices" }, this.choices.map(choice => (h("div", { class: `choice ${choice === this.response ? 'selected' : ''}`, onClick: () => (this.response = choice) }, choice))))) : (h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) }))), h("div", { key: '0d5ab0977141dac182e9675d5bca063da6daa96e', class: "buttons" }, h("verdocs-button", { key: 'eff5f44bb3ca7cd0c4628d399e27e2d55a40ae3c', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: '4fbe8b58483b83002d6f8a7a1232d341b7f48c2e', label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
48
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
49
+ if (this.mode === 'choice') {
50
+ return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, this.helptitle), h("div", { class: "help-text" }, this.helptext)))), h("div", { class: "choices" }, this.choices.map((choice, index) => (h("div", { class: `choice ${choice === this.answers[index] ? 'selected' : ''}`, onClick: () => (this.answers[index] = choice) }, choice)))), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
51
+ }
52
+ if (this.mode === 'identity') {
53
+ return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity"), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, "Identity verification is required"), h("div", { class: "help-text" }, "NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly.")))), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-first" }, "Your Name:", h("span", { class: "required" }, "*")), h("input", { required: true, type: "text", id: "verdocs-kba-first", name: "verdocs-kba-first", placeholder: "First name...", value: (_a = this.updatedRecipient) === null || _a === void 0 ? void 0 : _a.first_name, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, first_name: e.target.value }) }), h("input", { type: "text", id: "verdocs-kba-last", name: "verdocs-kba-last", placeholder: "Last name...", required: true, value: (_b = this.updatedRecipient) === null || _b === void 0 ? void 0 : _b.last_name, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, last_name: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-address" }, "Address:", h("span", { class: "required" }, "*")), h("input", { type: "text", id: "verdocs-kba-address", name: "verdocs-kba-address", placeholder: "Address...", value: (_c = this.updatedRecipient) === null || _c === void 0 ? void 0 : _c.address, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, address: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-city" }, "City:"), h("input", { type: "text", id: "verdocs-kba-city", name: "verdocs-kba-city", placeholder: "City...", value: (_d = this.updatedRecipient) === null || _d === void 0 ? void 0 : _d.city, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, city: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-state" }, "State:"), h("input", { type: "text", id: "verdocs-kba-state", name: "verdocs-kba-state", placeholder: "State...", value: (_e = this.updatedRecipient) === null || _e === void 0 ? void 0 : _e.state, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, state: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-zip" }, "Zip Code:", h("span", { class: "required" }, "*")), h("input", { type: "text", id: "verdocs-kba-zip", name: "verdocs-kba-zip", placeholder: "Zip Code...", required: true, value: (_f = this.updatedRecipient) === null || _f === void 0 ? void 0 : _f.zip, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, zip: e.target.value }) })), h("div", { class: "field" }, h("label", { htmlFor: "verdocs-kba-address" }, "SSN Last 4:"), h("input", { type: "text", id: "verdocs-kba-state", name: "verdocs-kba-state", placeholder: "Last 4 digits of your SSN...", value: (_g = this.updatedRecipient) === null || _g === void 0 ? void 0 : _g.ssn_last_4, onInput: (e) => (this.updatedRecipient = { ...this.updatedRecipient, ssn_last_4: e.target.value }) })), h("div", { class: "buttons" }, h("verdocs-button", { label: "Submit", onClick: () => this.handleConfirmID(), disabled: !((_h = this.updatedRecipient) === null || _h === void 0 ? void 0 : _h.first_name) || !((_j = this.updatedRecipient) === null || _j === void 0 ? void 0 : _j.last_name) || !((_k = this.updatedRecipient) === null || _k === void 0 ? void 0 : _k.address) || !((_l = this.updatedRecipient) === null || _l === void 0 ? void 0 : _l.zip) }))))));
54
+ }
55
+ return (h(Host, null, h("div", { class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { class: "dialog" }, h("div", { class: "heading" }, "Confirm Your Identity", this.steps > 1 ? (h("span", { class: "step" }, "(", this.step, "/", this.steps, ")")) : (h(Fragment, null))), !!this.helptitle && (h("div", { class: "help-box" }, h("div", { class: "help-icon", innerHTML: QuestionIcon }), h("div", { class: "help-details" }, h("div", { class: "help-title" }, this.helptitle), h("div", { class: "help-text" }, this.helptext)))), h("div", { class: "input" }, h("label", { htmlFor: "verdocs-kba-input" }, this.label), h("input", { type: "text", id: "verdocs-kba-input", name: "verdocs-kba-input", placeholder: this.placeholder, value: this.response, onInput: (e) => (this.response = e.target.value) })), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { label: "Done", onClick: () => this.handleDone(), disabled: !this.response }))))));
39
56
  }
40
57
  static get style() { return VerdocsKbaDialogStyle0; }
41
58
  }, [0, "verdocs-kba-dialog", {
@@ -46,8 +63,11 @@ const VerdocsKbaDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsKbaDialog
46
63
  "mode": [1],
47
64
  "label": [1],
48
65
  "placeholder": [1],
66
+ "recipient": [16],
49
67
  "choices": [16],
50
- "response": [32]
68
+ "response": [32],
69
+ "answers": [32],
70
+ "updatedRecipient": [32]
51
71
  }]);
52
72
  function defineCustomElement() {
53
73
  if (typeof customElements === "undefined") {
@@ -31,7 +31,7 @@ const VerdocsOkDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsOkDialog e
31
31
  }
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: 'cdad366f6824ef7e31b7a0b3d275220d68246a68', class: this.closed ? 'closed' : '' }, h("div", { key: '7b7de91ae3c9776a21e75bb7742472d718714b8f', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '9a505af291a9fb814b8e8f171e2e50602e53b1d0', class: "dialog" }, h("div", { key: '2ffa7892a2f8d287359b65ee698633ce5e75d78c', class: "heading" }, this.heading), h("div", { key: '06c1eead32adf2c37dab81ac2fe725d85a2bb73a', class: "content" }, h("div", { key: '8f0ccbf6d268ba16306e7946e214abeaf9166b63', class: "message", innerHTML: this.message }), h("div", { key: 'ac3f34bff19673dbe40d54fda0b8a0ee4665b662', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: '6178b12ce93665122dfc65ad858e37db103b859f', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
34
+ return (h(Host, { key: 'f41613ca32a9471277c816d753e7f818ef427fd0', class: this.closed ? 'closed' : '' }, h("div", { key: '570538e2743b23b5f18a1ec6ea3db51dfd314f02', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '17bfc3cfaadc8d10fe27211cd4a0eb48083f7a4b', class: "dialog" }, h("div", { key: 'bc88208d6897a191ef5fda323a74acd3e3c2620e', class: "heading" }, this.heading), h("div", { key: 'bc794df180672198964f32a6c71eff9dd1180db9', class: "content" }, h("div", { key: 'd8618e9b479e64b457bca57838437f91a0677560', class: "message", innerHTML: this.message }), h("div", { key: '101f7819fa69c3cf8f8958a5582835b56cf94775', class: "buttons" }, this.showCancel ? h("verdocs-button", { label: "CANCEL", variant: "outline", onClick: () => this.handleCancel() }) : h("div", { style: { display: 'none' } }), h("verdocs-button", { key: 'e755590fdd93cb9cc7b23a3812377d5216a70aae', label: this.buttonLabel, onClick: () => this.handleOk() })))))));
35
35
  }
36
36
  static get style() { return VerdocsOkDialogStyle0; }
37
37
  }, [0, "verdocs-ok-dialog", {
@@ -21,7 +21,7 @@ const VerdocsQuickFunctions$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsQu
21
21
  this.createDocument.emit();
22
22
  }
23
23
  render() {
24
- return (h("div", { key: '203c6c824345141c0a851d59290a9c13234d5469', class: "container" }, h("p", { key: 'ea66aa5b1b0c2f1da43b8d3dd3766d8b5d35c506', class: "title" }, "Quick Create"), h("button", { key: 'f6e63849639708920c8014001da50b0bdb2dc9c2', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '5c0850fc51e648bdc59e8afa56aa19698dd4a9bb', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
24
+ return (h("div", { key: '5477198aad675bd449cd36d7511db21ed9dae613', class: "container" }, h("p", { key: 'b7e436210675f73956d2b72de2683b22e9ad1def', class: "title" }, "Quick Create"), h("button", { key: '638c4c831fc83d8d6e5c73ff67807c79b02d8c74', onClick: () => this.handleCreateTemplate(), innerHTML: TemplateIcon }, "Template"), h("button", { key: '16d21850165b9b35129d12533dbe32d958093e0b', onClick: () => this.handleCreateDocument(), innerHTML: DocumentIcon }, "Document")));
25
25
  }
26
26
  static get style() { return VerdocsQuickFunctionsStyle0; }
27
27
  }, [0, "verdocs-quick-functions", {
@@ -10,7 +10,7 @@ const VerdocsSearchTabs$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSearch
10
10
  this.selected = 'all';
11
11
  }
12
12
  render() {
13
- return h("div", { key: '1bf01d30c4826feab942e3481ce4162dbd4f096e' }, "\u00A0");
13
+ return h("div", { key: '94316e73f4d9ec80389a8442a8bb3e2b95b91840' }, "\u00A0");
14
14
  }
15
15
  static get style() { return VerdocsSearchTabsStyle0; }
16
16
  }, [0, "verdocs-search-tabs", {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
- import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, sortFields, envelopeRecipientSubmit, getEnvelope, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, submitKbaPin, integerSequence } from '@verdocs/js-sdk';
2
+ import { VerdocsEndpoint, startSigningSession, getKbaStep, envelopeRecipientAgree, envelopeRecipientDecline, updateEnvelopeField, createSignature, updateEnvelopeFieldSignature, createInitials, updateEnvelopeFieldInitials, isValidPhone, isValidEmail, sortFields, envelopeRecipientSubmit, getEnvelope, uploadEnvelopeFieldAttachment, deleteEnvelopeFieldAttachment, formatFullName, fullNameToInitials, submitKbaPin, submitKbaIdentity, integerSequence } from '@verdocs/js-sdk';
3
3
  import { a as saveAttachment, u as updateDocumentFieldValue, r as renderDocumentField, g as getFieldId } from './utils.js';
4
4
  import { c as createTemplateFieldStoreFromEnvelope } from './TemplateFieldStore.js';
5
5
  import { V as VerdocsToast } from './Toast.js';
@@ -559,6 +559,7 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
559
559
  this.checkRecipientFields();
560
560
  }
561
561
  render() {
562
+ var _a;
562
563
  if (this.showLoadError) {
563
564
  return (h(Host, null, 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: () => {
564
565
  window.location.reload();
@@ -604,6 +605,52 @@ const VerdocsSign$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsSign extends
604
605
  });
605
606
  } })))));
606
607
  }
608
+ if (this.kbaStep === 'identity') {
609
+ 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: "identity", helptitle: "Document requires identity verification", helptext: "Please complete your contact details to proceed.", recipient: this.recipient, onNext: async (e) => {
610
+ const recipDetails = e.detail;
611
+ submitKbaIdentity(this.endpoint, this.envelopeId, this.roleId, {
612
+ firstName: recipDetails.first_name,
613
+ lastName: recipDetails.last_name,
614
+ address: recipDetails.address,
615
+ city: recipDetails.city,
616
+ state: recipDetails.state,
617
+ zip: recipDetails.zip,
618
+ ssnLast4: recipDetails.ssn_last_4,
619
+ })
620
+ .then(r => {
621
+ console.log('[SIGN] Identity submission result', r);
622
+ this.kbaStep = r.kba_step;
623
+ })
624
+ .catch(e => {
625
+ var _a, _b;
626
+ console.log('[SIGN] Error submitting identity', e);
627
+ 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' });
628
+ });
629
+ } })))));
630
+ }
631
+ if (this.kbaStep === 'challenge') {
632
+ 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: "Please answer the question(s) below to proceed.", recipient: this.recipient, choices: (_a = this.recipient.kba_details) === null || _a === void 0 ? void 0 : _a.questions, onNext: async (e) => {
633
+ const recipDetails = e.detail;
634
+ submitKbaIdentity(this.endpoint, this.envelopeId, this.roleId, {
635
+ firstName: recipDetails.first_name,
636
+ lastName: recipDetails.last_name,
637
+ address: recipDetails.address,
638
+ city: recipDetails.city,
639
+ state: recipDetails.state,
640
+ zip: recipDetails.zip,
641
+ ssnLast4: recipDetails.ssn_last_4,
642
+ })
643
+ .then(r => {
644
+ console.log('[SIGN] Identity submission result', r);
645
+ this.kbaStep = r.kba_step;
646
+ })
647
+ .catch(e => {
648
+ var _a, _b;
649
+ console.log('[SIGN] Error submitting identity', e);
650
+ 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' });
651
+ });
652
+ } })))));
653
+ }
607
654
  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 => {
608
655
  const pageNumbers = integerSequence(1, envelopeDocument.pages);
609
656
  return (h(Fragment, null, pageNumbers.map(pageNumber => {
@@ -220,7 +220,7 @@ const VerdocsSignatureDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsSig
220
220
  }
221
221
  */
222
222
  render() {
223
- return (h(Host, { key: '54cff7fb088365c049eb3e390f9f6d4610cfdf9d', onClick: e => this.handleCancel(e) }, h("div", { key: 'c191e54c5e29bcd2acba9012458d19e4d0b7f1ae', class: "dialog" }, h("div", { key: '28c47b528a9e78102b073a55937cdd2d4ffc46bb', class: "heading" }, "Create Your Signature"), h("div", { key: '783fa9f11e1053291038d03eb63c078080fbe6bc', class: "content" }, h("verdocs-text-input", { key: 'f616c58ad10fc2f6b928fd935c17ad94d9ef53dd', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '94527aaedcabde82ebcea83d4427b15aa9866fd2', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'aa9e8f88b99d77948051d7f88393dd1cf94f4534', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '9da4d0c5247df04d6f48e80877f424abc6eaa2a3', class: "buttons" }, h("verdocs-button", { key: '92fb167bbd635e2b4cb736a543c4d8c0a9cced9a', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '83128b52715ee1c5b1f2a19c3f8ac4343d54645c', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
223
+ return (h(Host, { key: 'cac125a1ea43ba8780243580f8837dd6afb76b7d', onClick: e => this.handleCancel(e) }, h("div", { key: '8e3ac9bd2feccb69f1a38bb1c528ee77b3124064', class: "dialog" }, h("div", { key: '3f9c153c3e0f0d028654f1ca68d74070f07b8abe', class: "heading" }, "Create Your Signature"), h("div", { key: 'd7c19bd06774d6cd912eb22dbee61643cd9b0ef7', class: "content" }, h("verdocs-text-input", { key: 'fef1ca39e7f47f321a21dc51fa6ed78eb72227d6', placeholder: "Full Name...", label: "Full Name", value: this.enteredName, onInput: e => this.handleNameChange(e), onClick: e => e.stopPropagation() }), h("div", { key: '3f1e138c623eae8a4d1a031f9e9ac9872ed34dbe', class: "as-shown" }, "As shown on driver's license or govt. ID card."), this.fontLoaded ? h("canvas", { ref: el => (this.canvasElement = el) }) : h("div", { style: { display: 'none' } }), h("div", { key: 'a02a7459aa1ea8e85696e66d730b5613685ce793', class: "disclaimer" }, "By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts \u2014 just the same as a pen-and-paper signature or initial."), h("div", { key: '79731a3eb6f2e4c23270473d078a0f7bc8e22fd4', class: "buttons" }, h("verdocs-button", { key: '47fef903e84cdeea7245356a78c98d80d5efb970', label: "CANCEL", size: "normal", variant: "outline", onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: 'd6e5bc66a5e11d4550613cdc3c24e80dbe952370', label: "Adopt & Sign", size: "normal", onClick: e => this.handleAdopt(e) }))))));
224
224
  }
225
225
  static get style() { return VerdocsSignatureDialogStyle0; }
226
226
  }, [0, "verdocs-signature-dialog", {
@@ -7190,11 +7190,11 @@ const VerdocsStatusIndicator = /*@__PURE__*/ proxyCustomElement(class VerdocsSta
7190
7190
  }
7191
7191
  const icon = this.getStatusIcon(status);
7192
7192
  const statusMessage = this.getStatusMessage(status);
7193
- return (h(Host, { key: '6312602f7079a3c8d77671570118712d5ee4ea0f', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
7193
+ return (h(Host, { key: '0d3a55cf87f1a0dba7e235e3b3fb19b7b44e67f5', ref: el => (this.summaryComponent = el), class: `${this.theme} ${this.size} ${this.envelope ? 'has-document' : ''}`, "aria-label": "Click to View Details", onClick: e => {
7194
7194
  e.stopPropagation();
7195
7195
  e.preventDefault();
7196
7196
  this.envelope && this.toggleDropdown();
7197
- }, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '002f53e8f17930ffb75c282b3db8555578b69381', class: "icon", innerHTML: icon }), h("span", { key: 'b1c8f30923fe0b19910c692f8117d81a69eba410', class: "content" }, statusMessage), h("div", { key: 'c00a99383415570210692cdecbfd83673d18937e', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: '8067991e8781d12151e774eb761dfab613e77fe3', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
7197
+ }, onBlur: e => this.envelope && this.handleHideDropdown(e) }, h("span", { key: '9d1812f322823609640bbdcde955123f4dfb294e', class: "icon", innerHTML: icon }), h("span", { key: '3db7a2eca6b3a6894a56daace7a367726feb508e', class: "content" }, statusMessage), h("div", { key: 'a0b31ee1a68c854dc781ba6fa729fbde485db23e', class: "detail-panel", ref: el => (this.detailPanel = el) }, h("div", { key: '2eab9e497070e97fe917ccc76d7c43ab2ae508f7', id: `${this.containerId}` }), this.recipientStatusIcons.map(icon => (h("span", { innerHTML: icon.icon, style: { position: 'absolute', top: `${icon.y}px`, left: `${icon.x}px` } }))))));
7198
7198
  }
7199
7199
  static get style() { return VerdocsStatusIndicatorStyle0; }
7200
7200
  }, [0, "verdocs-status-indicator", {
@@ -15,7 +15,7 @@ const VerdocsTemplateCard$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
15
15
  }
16
16
  render() {
17
17
  var _a, _b, _c, _d;
18
- return (h(Host, { key: 'd91ad349d43b29a364e20eb2d552eda22a684bfb' }, h("span", { key: '3921cd424720786785071f698758d770a0ba3cea', class: "name" }, this.template.name), h("span", { key: '229f1190a546c8bd588b1a4588b880a70832c06a', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: '725d4d03814909199ada357874e0383d2306e34d' }), h("div", { key: 'c95f57c02bb89f14b12c1a501a241d0f799aa8bc', class: "controls" }, h("div", { key: 'ae9c7b8bf7a9e85d31aa29cfbaad1d458df50ac8', class: "control" }, h("span", { key: 'ce4ec610d9f87c2b8b6db99c89a9a25554aa46a0', class: "icon", innerHTML: StarIcon }), h("span", { key: '7b7440269617317f3a31c87d7bb4e470f9d3af06', class: "value" }, this.template.star_counter)), h("div", { key: '2edfdee2eabff9fd18d48bdcc1e9c6813dde6bcb', class: "control secondary" }, h("span", { key: 'a97c594f26a3a9550e49426a05b3a6aa40789246', class: "icon", innerHTML: PagesIcon }), h("span", { key: 'bd7425bb723624484a4550de2fca1970b53de2c9', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: '7a5e4e2bf93af1ac58140189d64762b806a4d25c', class: "control secondary" }, h("span", { key: '108128b396a7190df160120a696dfa5af51b2491', class: "icon", innerHTML: EmailIcon }), h("span", { key: 'af3b4bf2c3f3c421ed7403c61fd3ea4978322a66', class: "value" }, this.template.counter)), h("span", { key: 'ae096641db6ac975e3874e7af6bf509dd331025b', class: "additional-controls", innerHTML: ActionsIcon }))));
18
+ return (h(Host, { key: '8c1e1c635b1baa655956acdb25c0dadf7aa7fb37' }, h("span", { key: '27f70562114c4b477a39d2c592ac970958308b6a', class: "name" }, this.template.name), h("span", { key: 'e7d9da9cef9ead160a65a4cee49f030d52b20eb3', class: "org-name" }, ((_a = this.template.organization) === null || _a === void 0 ? void 0 : _a.name) || 'Public'), h("hr", { key: 'ae53a4cb7e75c6b2af578e2518b601e742aecfb8' }), h("div", { key: 'f493a7d3641fe90d6bf35649664f76b5fc1ee3d3', class: "controls" }, h("div", { key: 'f0ef5225ff60e056166eede4ba69d4999c1a9887', class: "control" }, h("span", { key: '5f3f45383a81584741ee04b1fce6b4720bab9063', class: "icon", innerHTML: StarIcon }), h("span", { key: '9faf96a64292b6529e29186a4bd1e12d9ad3b42b', class: "value" }, this.template.star_counter)), h("div", { key: '2b605818b05ddf5ea9c3ac28f1bad3d0c8a3e3fb', class: "control secondary" }, h("span", { key: 'c12a8f975614144c72060cf9213a7e8081636602', class: "icon", innerHTML: PagesIcon }), h("span", { key: '53dd14ec4e8c0c57bbff3866901d10baa61abc31', class: "value" }, ((_d = (_c = (_b = this.template) === null || _b === void 0 ? void 0 : _b.documents) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.pages) || 1)), h("div", { key: 'c2e72a02dcb918fe595f2fd7228728bd29b1c816', class: "control secondary" }, h("span", { key: '9ed65ee6703d3db204c7f9619884615d3595f9f2', class: "icon", innerHTML: EmailIcon }), h("span", { key: '805565cdc082e8d76e2dd2db98aeede1eee9810f', class: "value" }, this.template.counter)), h("span", { key: '8914f5b5d9d2395bd60f7fded9d58b4c48f85100', class: "additional-controls", innerHTML: ActionsIcon }))));
19
19
  }
20
20
  static get style() { return VerdocsTemplateCardStyle0; }
21
21
  }, [0, "verdocs-template-card", {
@@ -116,7 +116,7 @@ const VerdocsTemplateDocumentPage = /*@__PURE__*/ proxyCustomElement(class Verdo
116
116
  }
117
117
  render() {
118
118
  const height = `${this.renderedHeight}px`;
119
- return (h(Host, { key: 'a27edb5194ef483dba9825b8c04e7a334e1bba50', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
119
+ return (h(Host, { key: '1e8a98b5849ce5cc222baf9f7bcd544456c07a35', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-template-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } }, layer.name === 'controls' &&
120
120
  this.fieldStore
121
121
  .get('fields')
122
122
  .filter(field => field && field.page === this.pageNumber)
@@ -128,34 +128,34 @@ const VerdocsTemplateRoleProperties = /*@__PURE__*/ proxyCustomElement(class Ver
128
128
  const hasFields = this.fieldStore.get('fields').some(field => field.role_name === this.roleName);
129
129
  // Either all three should be empty, or all three need to be filled
130
130
  const isValid = (!this.email && !this.first_name && !this.last_name) || (isValidEmail(this.email) && !!this.first_name && !!this.last_name);
131
- return (h(Host, { key: '58d9b5313e75866e1fefe0dcdb8139fa8a5bb087' }, h("div", { key: '60ce08b776cbd8cedeec9a0ec5748e923c785bc9', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: '73977c5f9e90c20e6365e0423635a94dbea2b122', class: "dialog" }, h("form", { key: '3c4f7826391dfa5874cc541fb82657aefb36710b', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'de887a66aec1fe4ebc9a5ef50e32f6355b10aa0d', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
131
+ return (h(Host, { key: '74dadb6d1937768b7b22b65609383673f2ce7742' }, h("div", { key: '139cb11995cee6b65c984609c0e5fd58a80476f4', class: "background-overlay", onClick: e => this.handleCancel(e) }, h("div", { key: 'd5e26b91df346a565776d4a0a9aa6aa226f3b061', class: "dialog" }, h("form", { key: '339d3b836bda41653b462a64d178f1d0e84480c5', onSubmit: e => e.preventDefault(), onClick: e => e.stopPropagation(), autocomplete: "off" }, h("verdocs-text-input", { key: 'da65605c4a43e482bee767460cb715dcdc7abb9b', id: "verdocs-role-name", label: "Role Name", value: this.name, autocomplete: "off", disabled: hasFields, helpText: hasFields
132
132
  ? 'This role has fields assigned and can no longer be renamed.'
133
133
  : 'A unique name to identify the role in the workflow. Submitted data will also be tagged with this value.', placeholder: "Role Name...", onInput: (e) => {
134
134
  this.name = e.target.value;
135
135
  this.dirty = true;
136
- } }), h("div", { key: 'cd7d4834a3998536c2b8c48e44ed5bf3ec804359', class: "row" }, h("div", { key: '12019f45c950a1bdd2e2579d420f6e5aefaab2c5', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: 'f4c28c4adc8c9b68303e14d09e87dcb59c36a6d1', value: this.type, options: [
136
+ } }), h("div", { key: '9442291f5be25f224a180b07da6227254ab9876e', class: "row" }, h("div", { key: 'f5242969ab36a97d8cca6ba9e5cf73d27c40c28e', class: "input-label" }, "Type:"), h("verdocs-select-input", { key: '63c93d9e1e76b8537e56505f7e3863f864688b98', value: this.type, options: [
137
137
  { label: 'Signer', value: 'signer' },
138
138
  { label: 'CC', value: 'cc' },
139
139
  { label: 'Approver', value: 'approver' },
140
140
  ], onInput: (e) => {
141
141
  this.type = e.target.value;
142
142
  this.dirty = true;
143
- } }), h("verdocs-help-icon", { key: 'f99179b5c88aeb76e55819a85bc657741c7f35cb', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: 'cd07d5ba6bf22a58c86e8b0df5e76f32f42f4150', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
143
+ } }), h("verdocs-help-icon", { key: '8f19def75f25b7f2ee71f965c56143dcc8b7c282', text: "Most participants are Signers. CC roles are notified when documents are signed, but have no other actions. Approvers get notified when signing is completed to perform a final review." })), h("verdocs-text-input", { key: '41466e48095b4772ac8ab5bc2e9e05b0c73ca974', id: "verdocs-recipient-first", label: "First Name", value: this.first_name, autocomplete: "off", helpText: "The recipient's first name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "First Name...", onInput: (e) => {
144
144
  this.first_name = e.target.value;
145
145
  this.dirty = true;
146
- } }), h("verdocs-text-input", { key: 'ffeeb3f0608dd7a03bce4705e088e0358fe55938', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
146
+ } }), h("verdocs-text-input", { key: '331c49526c26526a3ec210fa8f682f260d4c4736', id: "verdocs-recipient-first", label: "Last Name", value: this.last_name, autocomplete: "off", helpText: "The recipient's last name, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Last Name...", onInput: (e) => {
147
147
  this.last_name = e.target.value;
148
148
  this.dirty = true;
149
- } }), h("verdocs-text-input", { key: '16a366c91abc791b1225896436f1435407948d5f', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
149
+ } }), h("verdocs-text-input", { key: 'aad65c07b5f0766ce6af3dd3a2410cfc4611e32e', id: "verdocs-recipient-email", label: "Email", value: this.email, autocomplete: "off", helpText: "The recipient's email address, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Email Address...", onInput: (e) => {
150
150
  this.email = e.target.value;
151
151
  this.dirty = true;
152
- } }), h("verdocs-text-input", { key: '9b3085606377b915379023087f2a16048fb8d27d', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
152
+ } }), h("verdocs-text-input", { key: 'b55afcf793356e044ff697ae8091baff552a0590', id: "verdocs-recipient-phone", label: "Phone", value: this.phone, autocomplete: "off", helpText: "The recipient's phone number, if it will always stay the same. Leave blank to supply this value later, when each new envelope is created from the template.", placeholder: "Phone Number...", onInput: (e) => {
153
153
  this.phone = e.target.value;
154
154
  this.dirty = true;
155
- } }), h("div", { key: '3d9f8ee07579f56d0e0041bca7d7ecab19765475', class: "row" }, h("div", { key: 'c425db72f627ed05f87618d0feb6d09ad74513ca', class: "input-label" }, "May Delegate:"), h("div", { key: '5d4f7ca54f88406e1ff23b05ea516ca47e45a4a6', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: '8ab784e036647e39be5df5793104e81b24c5784f', checked: this.delegator, onInput: (e) => {
155
+ } }), h("div", { key: '7532437d5934f7eda0022656e0ca8a42450643c1', class: "row" }, h("div", { key: '7573e7cd0a884cdc05846e073a0d0d5b1ffd219e', class: "input-label" }, "May Delegate:"), h("div", { key: 'c9212910419bcc73325bfda8d8753c8b4fe29157', class: "checkbox-wrapper" }, h("verdocs-checkbox", { key: 'a5a0bda938292cf6bb705e208db3303d0f8977b3', checked: this.delegator, onInput: (e) => {
156
156
  this.delegator = e.target.checked;
157
157
  this.dirty = true;
158
- } })), h("verdocs-help-icon", { key: 'e321303aa812683bf0f12cf12e56f19b2faf82ff', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '3bc17ab02dc1cd93f81d4c68a8ebc9c26fab2361', class: "buttons" }, h("button", { key: 'b52e9fd0c1b5e1be279cfdcebbb7bb74a08abcb6', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '75554b1ae55b373c7305b84b09980edcc53a7e6a', style: { flex: '1' } }), h("verdocs-button", { key: 'b44b20fc4c5b53ad5335b26ee463db76dc25fe6b', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '536656402d4bc0c9f46aa3bdf6b4923275fa30ba', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
158
+ } })), h("verdocs-help-icon", { key: '4502304dc60abe9c1ccf982f98a4283f3cc1792b', text: "If enabled, this recipient may delegate their actions to another individual." })), h("div", { key: '6a11b6941fcad80f16a583ab8a362c3b6653adae', class: "buttons" }, h("button", { key: '4f2c667b9c3099f8fa3b2a3237e2f9d891c405de', class: "delete-button", disabled: this.dirty, onClick: e => this.handleDelete(e), innerHTML: TrashIcon }), h("div", { key: '56fb84118a01d750a2ee909feeb5051f393a0915', style: { flex: '1' } }), h("verdocs-button", { key: '1f506b55768bf05096dbfe2b2466eb4c5ed15f58', size: "small", variant: "outline", label: "Cancel", disabled: !this.dirty, onClick: e => this.handleCancel(e) }), h("verdocs-button", { key: '63f65b939ced94f2e8b5e1d7e4e0b10c3d5e810f', size: "small", label: "Save", disabled: !this.dirty || !isValid, onClick: e => this.handleSave(e) })))))));
159
159
  }
160
160
  static get style() { return VerdocsTemplateRolePropertiesStyle0; }
161
161
  }, [0, "verdocs-template-role-properties", {
@@ -43,7 +43,7 @@ const VerdocsTemplateStar = /*@__PURE__*/ proxyCustomElement(class VerdocsTempla
43
43
  });
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '7003637e9953f089bf0ddf9a128ab416103f64db' }, h("div", { key: '8b53c549e72e2b8432edc6d6de7d5ec4af746b37', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '66382354cf49ca5f0b01896983d34a3d27684041', class: "count" }, this.template.star_counter || '--')));
46
+ return (h(Host, { key: '4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02' }, h("div", { key: 'cac3bad8a37bcf044e037391bee73932b95931d1', class: `star ${this.updating ? 'updating' : ''}`, innerHTML: this.template.star_counter ? SolidStarIcon : OutlineStarIcon, onClick: e => this.toggle(e) }), h("div", { key: '3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5', class: "count" }, this.template.star_counter || '--')));
47
47
  }
48
48
  static get style() { return VerdocsTemplateStarStyle0; }
49
49
  }, [0, "verdocs-template-star", {
@@ -11,7 +11,7 @@ const VerdocsTemplateTags$1 = /*@__PURE__*/ proxyCustomElement(class VerdocsTemp
11
11
  }
12
12
  render() {
13
13
  var _a;
14
- return (h(Host, { key: '67dd899e37a2c181705a9abf3ea031869e93257b' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
14
+ return (h(Host, { key: '5b52ce24a601aa820868affd555ce4b46935938d' }, (_a = this.tags) === null || _a === void 0 ? void 0 : _a.map(tag => (h("span", null, tag)))));
15
15
  }
16
16
  static get style() { return VerdocsTemplateTagsStyle0; }
17
17
  }, [0, "verdocs-template-tags", {
@@ -82,7 +82,7 @@ const VerdocsUploadDialog = /*@__PURE__*/ proxyCustomElement(class VerdocsUpload
82
82
  render() {
83
83
  var _a;
84
84
  const existingFile = ((_a = this.existingFile) === null || _a === void 0 ? void 0 : _a.name) ? this.existingFile : null;
85
- return (h(Host, { key: 'afa5841540ceb409766827648bcc48c7bae6cda4' }, h("div", { key: 'bd26d331ac3bc7be352ab1695373f75d69fd792c', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '705662b801d76ef3f4449d5f3722e17f466e4609', class: "upload-dialog-content" }, h("div", { key: '0816ed0a1475713aa50054ad89c65f87500de125', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: 'c373b31539252aa5b7a3d8a9192e039d7231c43f' }, h("div", { key: 'da478e822f7e03e9bb1453cf6b94253264df322a', class: "current-label" }, "Current Attachment"), h("div", { key: '7ff31b740c32fde706e8388037b104517f36dd13', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '5af9047ab932ff3896099f54498f514081e9c88e', class: "attachment" }, h("div", { key: 'b3528446f4107953a1e8bbaeda9f77f6f90d543e', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '87ef88f1d7c74ad769cbf5f0b5c79cdf8e8828d5', class: "name" }, existingFile.name), h("div", { key: 'adb89b2ef87c98a046712637a977682ae5abfa14', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: '1996a92dc8f456276e82950cfea6367308b58bf8', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: 'd9ba97f559e20d8d56a005ecc98c1a137aecb8ed' }, "Drag and drop your files here"), h("p", { key: 'a1ea9f6e83e27d0c9f849b51949faeac3dfdeadc', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), h("verdocs-button", { key: 'd9e97782f69b70da1a4362010c0fce204c0c1c37', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), h("input", { key: '3c8b9ac05bfd8199db07d0c6ef33aeda672c02a7', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: 'c700b6423d7d413b6f8039e00e6e80efc8c5e1ac', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), !!this.errorMessage && h("div", { key: '2ee3dd69b224d7b3b7063e944ad95f83f52f97e8', class: "error" }, this.errorMessage), h("div", { key: '600a733497ac38b298e3251753cd96d573ed378a', class: "buttons" }, h("verdocs-button", { key: '5783ad39ab4511d8c992f38dce78fd9c3facb6a0', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'ff2b632b963df19f298c8d1e909b4aafd42fd238', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: '21df3093619d33a599fd6b486ba57d1da4f987ec', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
85
+ return (h(Host, { key: '5c58d237aa0b9767724b819ebe12dfd959043cf6' }, h("div", { key: '51182662086e2a03a8de959832cd4ccbcf7cdc9a', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: 'bdcb311759a93b8480a6aa765f0691a9d989a533', class: "upload-dialog-content" }, h("div", { key: '2c55c393d1bca6265b9248ec69be3a7f8c264764', class: "heading" }, "Upload attachment"), this.selectedFiles.length < 1 && existingFile && (h(Fragment, { key: 'd84ac8836f527b19988abebff20405ba761bb67c' }, h("div", { key: '13386e107e319e7c23e10042cd423c834c6d4fe0', class: "current-label" }, "Current Attachment"), h("div", { key: '9a249f27b71f2bb6b705a2eb60f88d54db51c63a', class: "attachments", style: { marginTop: '0' } }, h("div", { key: '33486bd63c804320bea7a2d664241fb1c396055a', class: "attachment" }, h("div", { key: '1f7f010de68abc0e8f29ee3768b13598e0261cc0', class: "icon", innerHTML: PaperclipIcon }), h("div", { key: '957dccfd827856b62109d27aba2bd42f1ad2d695', class: "name" }, existingFile.name), h("div", { key: '86cbef13368af45a397c3b0a6d49f71a4465a8ac', class: "icon trash", innerHTML: TrashIcon, onClick: () => (this.confirmDelete = true) }))))), this.selectedFiles.length < 1 && !existingFile && (h("div", { key: 'a1b32fef7628c54d163fb4b60d5807111735d769', class: { 'drop-target': true, 'dragging-over': this.draggingOver }, onDragOver: e => this.handleDragOver(e), onDragLeave: e => this.handleDragLeave(e), onDrop: e => this.handleDrop(e) }, h("p", { key: '8d8ecd592d7e8315078f2c0319e67464b9838530' }, "Drag and drop your files here"), h("p", { key: 'de7f672655587b7d3f2c86914f89089563c01b8b', class: "subscript" }, "Supported files: PDF, Word, JPG, PNG"), h("verdocs-button", { key: '03eebfdc500e840c77b2b113d1b2820fe8a678b6', label: !!existingFile ? 'Replace files' : 'Select files', onClick: () => this.handleSelectFile() }), h("input", { key: '1e8f8da72ce228f45b515c062ea0e25f1e1b70cf', type: "file", ref: el => (this.fileInput = el), style: { display: 'none' }, accept: ".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,image/*", onChange: () => this.handleFileChange() }))), this.selectedFiles.length > 0 && (h("div", { key: '196f78245ab12c8f13300cbbf66df4d1a3226296', class: "attachments" }, this.selectedFiles.map((file, index) => (h("div", { class: "attachment" }, h("div", { class: "icon", innerHTML: PaperclipIcon }), h("div", { class: "name" }, file.name), h("div", { class: "icon trash", innerHTML: TrashIcon, onClick: () => this.handleRemoveAttachment(index) })))))), !!this.errorMessage && h("div", { key: '553b2c86f2b502a8d63e4abb856e3e2eb3112720', class: "error" }, this.errorMessage), h("div", { key: '25e7a81f406e7ff0d2f64f1cedaa24292d9f3d5f', class: "buttons" }, h("verdocs-button", { key: '350d1c821de9a51ed7ddc511b52925526c0844b1', label: "Cancel", variant: "outline", onClick: () => this.handleCancel() }), h("verdocs-button", { key: 'cc9e0d1277d60351e47a1c69b2cb1f3b0848ebac', label: "Upload", onClick: () => this.handleDone(), disabled: !!this.errorMessage || this.selectedFiles.length < 1 })))), this.confirmDelete && (h("verdocs-ok-dialog", { key: '8740bba0a7ebf6c33fa9821a02146c0ae7ab527d', heading: "Delete Attachment?", message: "Are you sure you wish to delete this attachment? This action cannot be undone.", showCancel: true, onExit: e => {
86
86
  // So we don't close the upload dialog
87
87
  e.preventDefault();
88
88
  e.stopPropagation();