@hubsync/esign-web-sdk 6.9.17 → 6.9.19

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 (179) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{utils-DsDnct9q.js → utils-CrIt-iH8.js} +5 -4
  3. package/dist/cjs/utils-CrIt-iH8.js.map +1 -0
  4. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
  5. package/dist/cjs/verdocs-adopt-signature-dialog_8.cjs.entry.js +9 -5
  6. package/dist/cjs/verdocs-auth.cjs.entry.js +3 -2
  7. package/dist/cjs/verdocs-auth.entry.cjs.js.map +1 -1
  8. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +11 -11
  9. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  10. package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-preview_6.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-sign.cjs.entry.js +7 -4
  15. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  16. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  18. package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js +26 -4
  19. package/dist/collection/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.js.map +1 -1
  20. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -2
  21. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
  22. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +6 -3
  23. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  24. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +16 -20
  25. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  26. package/dist/collection/utils/utils.js +3 -2
  27. package/dist/collection/utils/utils.js.map +1 -1
  28. package/dist/components/{p-CYn5K-BZ.js → p-BbJx5d0P.js} +13 -13
  29. package/dist/components/{p-CYn5K-BZ.js.map → p-BbJx5d0P.js.map} +1 -1
  30. package/dist/components/{p-VTS_VS83.js → p-C69H1C9q.js} +3 -3
  31. package/dist/components/{p-VTS_VS83.js.map → p-C69H1C9q.js.map} +1 -1
  32. package/dist/components/{p-ChFp-cOQ.js → p-DEKYkRZf.js} +3 -3
  33. package/dist/components/{p-ChFp-cOQ.js.map → p-DEKYkRZf.js.map} +1 -1
  34. package/dist/components/{p-8ewXKOGW.js → p-DZrvJ_QT.js} +4 -4
  35. package/dist/components/{p-8ewXKOGW.js.map → p-DZrvJ_QT.js.map} +1 -1
  36. package/dist/components/{p-jm2NkWGW.js → p-DemYa78C.js} +3 -3
  37. package/dist/components/{p-jm2NkWGW.js.map → p-DemYa78C.js.map} +1 -1
  38. package/dist/components/{p-BaO4plGo.js → p-F-bI1_bW.js} +13 -8
  39. package/dist/components/p-F-bI1_bW.js.map +1 -0
  40. package/dist/components/{p-oGuKYCp7.js → p-Yji-KKbG.js} +3 -3
  41. package/dist/components/{p-oGuKYCp7.js.map → p-Yji-KKbG.js.map} +1 -1
  42. package/dist/components/{p-gK0uom6W.js → p-gqexdqWf.js} +3 -3
  43. package/dist/components/{p-gK0uom6W.js.map → p-gqexdqWf.js.map} +1 -1
  44. package/dist/components/{p-uDMGPNi1.js → p-oM7A1Gvt.js} +5 -4
  45. package/dist/components/p-oM7A1Gvt.js.map +1 -0
  46. package/dist/components/{p-vHtreMnt.js → p-yM0XEtHG.js} +4 -4
  47. package/dist/components/{p-vHtreMnt.js.map → p-yM0XEtHG.js.map} +1 -1
  48. package/dist/components/verdocs-auth.js +3 -2
  49. package/dist/components/verdocs-auth.js.map +1 -1
  50. package/dist/components/verdocs-build.js +5 -5
  51. package/dist/components/verdocs-contact-picker.js +1 -1
  52. package/dist/components/verdocs-envelope-document-page.js +1 -1
  53. package/dist/components/verdocs-envelopes-list.js +2 -2
  54. package/dist/components/verdocs-preview.js +1 -1
  55. package/dist/components/verdocs-quick-filter.js +1 -1
  56. package/dist/components/verdocs-send.js +1 -1
  57. package/dist/components/verdocs-sign.js +10 -7
  58. package/dist/components/verdocs-sign.js.map +1 -1
  59. package/dist/components/verdocs-signing-progress.js +1 -1
  60. package/dist/components/verdocs-template-document-page.js +1 -1
  61. package/dist/components/verdocs-template-fields.js +1 -1
  62. package/dist/components/verdocs-templates-list.js +1 -1
  63. package/dist/components/verdocs-view.js +1 -1
  64. package/dist/esm/loader.js +1 -1
  65. package/dist/esm/{utils-uh_j0UF0.js → utils-BNF0xNkf.js} +5 -4
  66. package/dist/esm/utils-BNF0xNkf.js.map +1 -0
  67. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  68. package/dist/esm/verdocs-adopt-signature-dialog_8.entry.js +9 -5
  69. package/dist/esm/verdocs-auth.entry.js +3 -2
  70. package/dist/esm/verdocs-auth.entry.js.map +1 -1
  71. package/dist/esm/verdocs-contact-picker.entry.js +11 -11
  72. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  73. package/dist/esm/verdocs-download-dialog_4.entry.js +1 -1
  74. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  75. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  76. package/dist/esm/verdocs-preview_6.entry.js +1 -1
  77. package/dist/esm/verdocs-sign.entry.js +7 -4
  78. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  79. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  80. package/dist/esm/verdocs-web-sdk.js +1 -1
  81. package/dist/esm-es5/loader.js +1 -1
  82. package/dist/esm-es5/utils-BNF0xNkf.js +2 -0
  83. package/dist/esm-es5/utils-BNF0xNkf.js.map +1 -0
  84. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  85. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +1 -1
  86. package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js.map +1 -1
  87. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
  89. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  90. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  91. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  92. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  93. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  94. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
  95. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  96. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  97. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  98. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  99. package/dist/types/components/dialogs/verdocs-signing-progress/verdocs-signing-progress.d.ts +5 -1
  100. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +4 -1
  101. package/dist/types/components.d.ts +14 -4
  102. package/dist/verdocs-web-sdk/{p-139ea366.system.entry.js → p-0446ad96.system.entry.js} +2 -2
  103. package/dist/verdocs-web-sdk/p-0446ad96.system.entry.js.map +1 -0
  104. package/dist/verdocs-web-sdk/{p-cf879144.system.entry.js → p-0eafa1e3.system.entry.js} +2 -2
  105. package/dist/verdocs-web-sdk/{p-b75776a3.entry.js → p-314cbdad.entry.js} +2 -2
  106. package/dist/verdocs-web-sdk/p-39feb8f2.system.entry.js +2 -0
  107. package/dist/verdocs-web-sdk/p-39feb8f2.system.entry.js.map +1 -0
  108. package/dist/verdocs-web-sdk/{p-d6d34add.entry.js → p-5a6a6147.entry.js} +2 -2
  109. package/dist/verdocs-web-sdk/{p-430f78f9.entry.js → p-5d030925.entry.js} +3 -3
  110. package/dist/verdocs-web-sdk/p-60751680.entry.js +2 -0
  111. package/dist/verdocs-web-sdk/p-60751680.entry.js.map +1 -0
  112. package/dist/verdocs-web-sdk/{p-13fb4096.system.entry.js → p-64844189.system.entry.js} +3 -3
  113. package/dist/verdocs-web-sdk/{p-a63632b6.entry.js → p-866d81f0.entry.js} +2 -2
  114. package/dist/verdocs-web-sdk/{p-f72fdf31.entry.js → p-8fadd122.entry.js} +2 -2
  115. package/dist/verdocs-web-sdk/{p-393f3ba5.entry.js → p-991ddc1f.entry.js} +2 -2
  116. package/dist/verdocs-web-sdk/{p-CbwELqke.system.js.map → p-9wnrF26l.system.js.map} +1 -1
  117. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  118. package/dist/verdocs-web-sdk/{p-MoANGFzv.system.js.map → p-CbqUqUv4.system.js.map} +1 -1
  119. package/dist/verdocs-web-sdk/p-D1zZZuKX.system.js.map +1 -0
  120. package/dist/verdocs-web-sdk/{p-C9XoQGh9.system.js.map → p-D5z9lxeg.system.js.map} +1 -1
  121. package/dist/verdocs-web-sdk/p-DVfiBeS0.js +2 -0
  122. package/dist/verdocs-web-sdk/p-DVfiBeS0.js.map +1 -0
  123. package/dist/verdocs-web-sdk/{p-DkDfJddJ.system.js.map → p-DXE6EXiC.system.js.map} +1 -1
  124. package/dist/verdocs-web-sdk/p-DbTkqCUh.system.js.map +1 -0
  125. package/dist/verdocs-web-sdk/p-DesrErWD.system.js +2 -0
  126. package/dist/verdocs-web-sdk/p-DesrErWD.system.js.map +1 -0
  127. package/dist/verdocs-web-sdk/{p-C4k3mJ4w.system.js.map → p-DupzcKs4.system.js.map} +1 -1
  128. package/dist/verdocs-web-sdk/{p-ea72677d.system.entry.js → p-b3e679e7.system.entry.js} +2 -2
  129. package/dist/verdocs-web-sdk/{p-babf7fed.system.entry.js → p-c52ab2c1.system.entry.js} +2 -2
  130. package/dist/verdocs-web-sdk/{p-66bd6b6c.system.entry.js → p-c876f4f3.system.entry.js} +3 -3
  131. package/dist/verdocs-web-sdk/p-ce2911f5.entry.js +2 -0
  132. package/dist/verdocs-web-sdk/p-ce2911f5.entry.js.map +1 -0
  133. package/dist/verdocs-web-sdk/{p-CRc1Px4z.system.js.map → p-dBdGvIUa.system.js.map} +1 -1
  134. package/dist/verdocs-web-sdk/{p-fa8eee5b.entry.js → p-e64cfe67.entry.js} +2 -2
  135. package/dist/verdocs-web-sdk/p-e64cfe67.entry.js.map +1 -0
  136. package/dist/verdocs-web-sdk/{p-b65e0c0e.system.entry.js → p-eb7be296.system.entry.js} +2 -2
  137. package/dist/verdocs-web-sdk/p-ed324b71.system.entry.js +2 -0
  138. package/dist/verdocs-web-sdk/p-ed324b71.system.entry.js.map +1 -0
  139. package/dist/verdocs-web-sdk/{p-CUyag7sv.system.js.map → p-zrEYCZSF.system.js.map} +1 -1
  140. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-passcode-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
  141. package/dist/verdocs-web-sdk/verdocs-auth.entry.esm.js.map +1 -1
  142. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  143. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  144. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  145. package/package.json +1 -1
  146. package/dist/cjs/utils-DsDnct9q.js.map +0 -1
  147. package/dist/components/p-BaO4plGo.js.map +0 -1
  148. package/dist/components/p-uDMGPNi1.js.map +0 -1
  149. package/dist/esm/utils-uh_j0UF0.js.map +0 -1
  150. package/dist/esm-es5/utils-uh_j0UF0.js +0 -2
  151. package/dist/esm-es5/utils-uh_j0UF0.js.map +0 -1
  152. package/dist/verdocs-web-sdk/p-139ea366.system.entry.js.map +0 -1
  153. package/dist/verdocs-web-sdk/p-3b395384.system.entry.js +0 -2
  154. package/dist/verdocs-web-sdk/p-3b395384.system.entry.js.map +0 -1
  155. package/dist/verdocs-web-sdk/p-72bc05c0.entry.js +0 -2
  156. package/dist/verdocs-web-sdk/p-72bc05c0.entry.js.map +0 -1
  157. package/dist/verdocs-web-sdk/p-945b6e74.system.entry.js +0 -2
  158. package/dist/verdocs-web-sdk/p-945b6e74.system.entry.js.map +0 -1
  159. package/dist/verdocs-web-sdk/p-95037fa9.entry.js +0 -2
  160. package/dist/verdocs-web-sdk/p-95037fa9.entry.js.map +0 -1
  161. package/dist/verdocs-web-sdk/p-B_N44g5c.system.js +0 -2
  162. package/dist/verdocs-web-sdk/p-B_N44g5c.system.js.map +0 -1
  163. package/dist/verdocs-web-sdk/p-CMBZT5Qy.system.js.map +0 -1
  164. package/dist/verdocs-web-sdk/p-D-UAsibj.js +0 -2
  165. package/dist/verdocs-web-sdk/p-D-UAsibj.js.map +0 -1
  166. package/dist/verdocs-web-sdk/p-D9tCA59Y.system.js.map +0 -1
  167. package/dist/verdocs-web-sdk/p-fa8eee5b.entry.js.map +0 -1
  168. /package/dist/verdocs-web-sdk/{p-cf879144.system.entry.js.map → p-0eafa1e3.system.entry.js.map} +0 -0
  169. /package/dist/verdocs-web-sdk/{p-b75776a3.entry.js.map → p-314cbdad.entry.js.map} +0 -0
  170. /package/dist/verdocs-web-sdk/{p-d6d34add.entry.js.map → p-5a6a6147.entry.js.map} +0 -0
  171. /package/dist/verdocs-web-sdk/{p-430f78f9.entry.js.map → p-5d030925.entry.js.map} +0 -0
  172. /package/dist/verdocs-web-sdk/{p-13fb4096.system.entry.js.map → p-64844189.system.entry.js.map} +0 -0
  173. /package/dist/verdocs-web-sdk/{p-a63632b6.entry.js.map → p-866d81f0.entry.js.map} +0 -0
  174. /package/dist/verdocs-web-sdk/{p-f72fdf31.entry.js.map → p-8fadd122.entry.js.map} +0 -0
  175. /package/dist/verdocs-web-sdk/{p-393f3ba5.entry.js.map → p-991ddc1f.entry.js.map} +0 -0
  176. /package/dist/verdocs-web-sdk/{p-ea72677d.system.entry.js.map → p-b3e679e7.system.entry.js.map} +0 -0
  177. /package/dist/verdocs-web-sdk/{p-babf7fed.system.entry.js.map → p-c52ab2c1.system.entry.js.map} +0 -0
  178. /package/dist/verdocs-web-sdk/{p-66bd6b6c.system.entry.js.map → p-c876f4f3.system.entry.js.map} +0 -0
  179. /package/dist/verdocs-web-sdk/{p-b65e0c0e.system.entry.js.map → p-eb7be296.system.entry.js.map} +0 -0
@@ -5,7 +5,7 @@ var Icons = require('./Icons-TVvtZ5iL.js');
5
5
  var Environment = require('./Environment-3vWt0C1Q.js');
6
6
  var jsSdk = require('@verdocs/js-sdk');
7
7
  var Toast = require('./Toast-BgG-6jAg.js');
8
- var utils = require('./utils-DsDnct9q.js');
8
+ var utils = require('./utils-CrIt-iH8.js');
9
9
  var errors = require('./errors-D1XRvnet.js');
10
10
  var Datastore = require('./Datastore-C-Pojt3E.js');
11
11
  require('./index-CeUF44L9.js');
@@ -4456,6 +4456,10 @@ const VerdocsSigningProgress = class {
4456
4456
  * All fields for the recipient, used to check filled status (may include non-fillable)
4457
4457
  */
4458
4458
  this.recipientFields = [];
4459
+ /**
4460
+ * Names of optional fields the user has explicitly skipped
4461
+ */
4462
+ this.skippedFields = [];
4459
4463
  }
4460
4464
  renderSuccessIcon() {
4461
4465
  return (index.h("svg", { width: "24", height: "24", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M10 2C14.4183 2 18 5.58172 18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2ZM10 3C6.13401 3 3 6.13401 3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3ZM13.3584 7.64645C13.532 7.82001 13.5513 8.08944 13.4163 8.28431L13.3584 8.35355L9.35355 12.3584C9.17999 12.532 8.91056 12.5513 8.71569 12.4163L8.64645 12.3584L6.64645 10.3584C6.45118 10.1632 6.45118 9.84658 6.64645 9.65131C6.82001 9.47775 7.08944 9.45846 7.28431 9.59346L7.35355 9.65131L9 11.298L12.6513 7.64645C12.8466 7.45118 13.1632 7.45118 13.3584 7.64645Z", fill: "#107C10" })));
@@ -4469,11 +4473,11 @@ const VerdocsSigningProgress = class {
4469
4473
  }
4470
4474
  return index.h("div", { class: "field-label" }, fieldLabel);
4471
4475
  }
4472
- renderFooter(current, total, requiredRemaining) {
4476
+ renderFooter(current, total, requiredRemaining, optionalRemaining) {
4473
4477
  if (this.mode === 'start') {
4474
4478
  return (index.h("button", { class: "btn start", onClick: () => this.started.emit() }, "Start Signing"));
4475
4479
  }
4476
- return (index.h("div", { class: "nav-buttons" }, requiredRemaining === 0 ? (index.h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")) : ([
4480
+ return (index.h("div", { class: "nav-buttons" }, requiredRemaining === 0 && optionalRemaining === 0 ? (index.h("button", { class: "btn submit", onClick: () => this.exit.emit() }, "Submit")) : ([
4477
4481
  index.h("button", { class: "btn previous", disabled: current <= 1, onClick: () => this.previous.emit() }, "Previous"),
4478
4482
  index.h("button", { class: "btn next", disabled: current >= total, onClick: () => this.next.emit() }, "Next"),
4479
4483
  ])));
@@ -4489,11 +4493,11 @@ const VerdocsSigningProgress = class {
4489
4493
  const requiredFields = this.fields.filter(f => f.required);
4490
4494
  const requiredRemaining = requiredFields.filter(f => !isFilled(f)).length;
4491
4495
  const optionalFields = this.fields.filter(f => !f.required);
4492
- const optionalRemaining = optionalFields.filter(f => !isFilled(f)).length;
4496
+ const optionalRemaining = optionalFields.filter(f => !isFilled(f) && !this.skippedFields.includes(f.name)).length;
4493
4497
  const focusedFieldObj = this.fields.find(f => f.name === this.focusedField);
4494
4498
  const currentIndex = this.fields.findIndex(f => f.name === this.focusedField) + 1;
4495
4499
  const totalFields = this.fields.length;
4496
- return (index.h("div", { class: "card" }, index.h("div", { class: "header" }, index.h("div", { class: "progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (index.h("div", { class: "progress-line optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), index.h("div", { class: "body" }, this.renderContent(utils.getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), index.h("div", { class: "separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining)));
4500
+ return (index.h("div", { class: "card" }, index.h("div", { class: "header" }, index.h("div", { class: "progress-line" }, requiredRemaining, " of ", requiredFields.length, " required fields remaining"), optionalFields.length > 0 && (index.h("div", { class: "progress-line optional" }, optionalRemaining, " of ", optionalFields.length, " optional fields remaining"))), index.h("div", { class: "body" }, this.renderContent(utils.getFieldLabel(focusedFieldObj), focusedFieldObj ? !!isFilled(focusedFieldObj) : false, requiredRemaining === 0)), index.h("div", { class: "separator" }), this.renderFooter(Math.max(1, currentIndex), totalFields, requiredRemaining, optionalRemaining)));
4497
4501
  }
4498
4502
  };
4499
4503
  VerdocsSigningProgress.style = verdocsSigningProgressCss;
@@ -118,14 +118,15 @@ const VerdocsAuth = class {
118
118
  this.submitting = true;
119
119
  this.tempAuthEndpoint.clearSession();
120
120
  const formattedPhone = jsSdk.convertToE164(this.phone);
121
- jsSdk.createProfile(this.tempAuthEndpoint, {
121
+ const createProfileParams = {
122
122
  email: this.email,
123
123
  password: this.password,
124
124
  first_name: this.first_name,
125
125
  last_name: this.last_name,
126
126
  org_name: this.org_name,
127
127
  phone: formattedPhone,
128
- })
128
+ };
129
+ jsSdk.createProfile(this.tempAuthEndpoint, createProfileParams)
129
130
  .then(r => {
130
131
  console.log('[AUTH] Profile creation result', r);
131
132
  this.tempAuthEndpoint.setToken(r.access_token);
@@ -1 +1 @@
1
- {"version":3,"file":"verdocs-auth.entry.cjs.js","sources":["src/components/embeds/verdocs-auth/verdocs-auth.scss?tag=verdocs-auth","src/components/embeds/verdocs-auth/verdocs-auth.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-auth {\n font-family: $verdocs-primary-font;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n\n .form {\n width: 320px;\n display: flex;\n padding: 20px;\n max-width: 90%;\n align-items: center;\n flex-direction: column;\n box-sizing: border-box;\n justify-content: center;\n background: $verdocs-grey-4;\n }\n\n .logo {\n width: 128px;\n max-width: 100%;\n margin: 20px 0 30px;\n }\n\n h3 {\n color: $verdocs-grey-0;\n text-align: center;\n font-weight: 400;\n font-size: 18px;\n line-height: 1.75;\n margin: 0;\n }\n\n em {\n font-size: 14px;\n margin: 15px 0;\n }\n\n .buttons {\n gap: 20px;\n margin: 20px 0 0 0;\n display: flex;\n flex-direction: row;\n justify-content: center;\n }\n\n .status-result {\n display: none;\n\n &.debug {\n white-space: pre-wrap;\n font-size: 14px;\n background: #fff;\n padding: 10px;\n display: block;\n flex-direction: row;\n justify-content: center;\n }\n }\n\n form {\n width: 100%;\n }\n\n verdocs-text-input {\n margin-bottom: 10px;\n }\n\n .account-option {\n gap: 8px;\n margin: 20px 0 8px 0;\n display: flex;\n flex-direction: row;\n }\n\n p {\n color: $verdocs-grey-0;\n margin: 1em 0;\n font-size: 14px;\n }\n\n // Our <p>s are in a flex layout which prevents margins from collapsing because each item creates its own row\n p + p {\n margin-top: 0;\n }\n\n verdocs-help-icon {\n margin-top: 18px;\n display: flex;\n width: 32px;\n height: 32px;\n flex: 0 0 32px;\n }\n\n .already-have {\n color: $verdocs-grey-0;\n margin: 0.5em 0;\n font-size: 14px;\n }\n}\n","import {Component, Prop, State, h, Event, EventEmitter} from '@stencil/core';\nimport {verifyEmail, IAuthenticateResponse, getMyUser, IProfile, convertToE164} from '@verdocs/js-sdk';\nimport {TSession, VerdocsEndpoint, createProfile, authenticate, resendVerification, resetPassword} from '@verdocs/js-sdk';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\n\nexport interface IAuthStatus {\n authenticated: boolean;\n session: TSession;\n profile: IProfile | null;\n}\n\n/**\n * Display an authentication dialog that allows the user to login or sign up. If the user is\n * already authenticated with a valid session, this component will hide itself and fire the\n * success callback immediately. It is up to the host application to render the next appropriate\n * view for the application.\n *\n * To simplify UI development, a visibility flag can force this component to never display. This\n * allows you to subscribe to notifications from client apps without calling the lower-level JS SDK.\n *\n * This embed is responsive / mobile-friendly, but the calling application should provide at\n * least a 300px wide container to allow sufficient space for the required forms.\n *\n * ```ts\n * <verdocs-auth\n * onAuthenticated={({ detail }) => console.log('Authentication state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-auth',\n styleUrl: 'verdocs-auth.scss',\n shadow: false,\n})\nexport class VerdocsAuth {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * Normally, if the user has a valid session, this embed will be invisible, otherwise it will display\n * login / signup forms. If this is set to false, this embed will be invisible in both cases. Apps may\n * use this to verify if a user has a valid session without needing a separate call to Verdocs JS SDK.\n */\n @Prop() visible: boolean = true;\n\n /**\n * By default, a Verdocs logo will be displayed above the login/signup forms. This may be used to\n * override its source. (Alternatively, you may simply hide it via CSS overrides.) Logos should be\n * in SVG format for best results.\n */\n @Prop() logo: string = 'https://app.verdocs.com/assets/blue-logo.svg';\n\n /**\n * The display mode to start in.\n */\n @Prop({mutable: true}) displayMode: 'login' | 'forgot' | 'reset' | 'signup' | 'verify' = 'login';\n\n /**\n * Event fired when session authentication process has completed. Check the event\n * contents for completion status. This event will always be called at least once,\n * when the component is first rendered.\n */\n @Event({composed: true}) authenticated: EventEmitter<IAuthStatus>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n @State() org_name: string = '';\n @State() first_name: string = '';\n @State() last_name: string = '';\n @State() email: string = '';\n @State() phone: string = '';\n @State() verificationCode: string = '';\n @State() newPassword: string = '';\n @State() password: string = '';\n @State() confirmpass: string = '';\n @State() submitting: boolean = false;\n @State() resendDisabled = false;\n @State() session: TSession = null;\n @State() profile: IProfile | null = null;\n\n resendDisabledTimer = null;\n\n // We can't instantly log in on the default endpoint because other listeners might see\n // its events and incorrectly trigger before we're done. So we manage our own temp\n // endpoint and pass the final tokens to the default once we're ready.\n tempAuthEndpoint = new VerdocsEndpoint({\n baseURL: VerdocsEndpoint.getDefault().getBaseURL(),\n persist: false,\n });\n\n componentWillLoad() {\n this.endpoint.loadSession();\n this.applyHashDisplayMode();\n\n // We need to listen to the hashchange to know when we're being sent to #forgot\n if (typeof window !== 'undefined') {\n window.addEventListener('hashchange', this.handleHashChange);\n }\n\n VerdocsEndpoint.getDefault().onSessionChanged((_endpoint, session, profile) => {\n this.session = session;\n this.profile = profile;\n if (session) {\n this.authenticated?.emit({authenticated: true, session, profile});\n } else {\n this.authenticated?.emit({authenticated: false, session, profile});\n }\n });\n }\n\n disconnectedCallback() {\n if (typeof window !== 'undefined') {\n window.removeEventListener('hashchange', this.handleHashChange);\n }\n }\n\n handleHashChange = () => {\n this.applyHashDisplayMode();\n };\n\n applyHashDisplayMode() {\n if (typeof window === 'undefined') {\n return;\n }\n\n const hash = (window.location.hash || '').replace(/^#/, '').toLowerCase();\n if (hash === 'forgot') {\n this.displayMode = 'forgot';\n }\n }\n\n isPasswordComplex(password: string) {\n const isUppercase = (ch: string) => /[A-Z]/.test(ch);\n const isLowercase = (ch: string) => /[a-z]/.test(ch);\n const isSpecialChar = (ch: string) => /[`!@#$%^&*()_\\-+=\\[\\]{};':\"\\\\|,.<>\\/?~ ]/.test(ch);\n let countOfUpperCase = 0,\n countOfLowerCase = 0,\n countOfSpecialChar = 0;\n for (let i = 0; i < password.length; i++) {\n let ch = password.charAt(i);\n if (isUppercase(ch)) countOfUpperCase++;\n else if (isLowercase(ch)) countOfLowerCase++;\n else if (isSpecialChar(ch)) countOfSpecialChar++;\n }\n return password.length >= 8 && countOfLowerCase > 0 && countOfUpperCase > 0 && countOfSpecialChar > 0;\n }\n\n handleSignup() {\n if (!this.isPasswordComplex(this.password)) {\n VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', {style: 'error'});\n return;\n }\n\n if (this.password !== this.confirmpass) {\n VerdocsToast('Passwords do not match.', {style: 'error'});\n return;\n }\n\n this.submitting = true;\n this.tempAuthEndpoint.clearSession();\n const formattedPhone = convertToE164(this.phone);\n\n createProfile(this.tempAuthEndpoint, {\n email: this.email,\n password: this.password,\n first_name: this.first_name,\n last_name: this.last_name,\n org_name: this.org_name,\n phone: formattedPhone,\n })\n .then(r => {\n console.log('[AUTH] Profile creation result', r);\n this.tempAuthEndpoint.setToken(r.access_token);\n // We can't clearForms because we need email to stick around\n this.password = '';\n this.phone = '';\n this.first_name = '';\n this.last_name = '';\n this.org_name = '';\n this.displayMode = 'verify';\n this.submitting = false;\n })\n .catch(e => {\n console.log('[AUTH] Signup error', e.response);\n this.submitting = false;\n this.authenticated?.emit({authenticated: false, profile: null, session: null});\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n\n VerdocsToast('Signup failed: ' + e.response?.data?.error || 'Unknown Error', {style: 'error'});\n });\n }\n\n async handleVerification() {\n this.submitting = true;\n\n try {\n this.submitting = false;\n const verificationResult = await verifyEmail(this.tempAuthEndpoint, {email: this.email, token: this.verificationCode});\n VerdocsToast('Thank you for verifying your email address.', {style: 'success'});\n this.completeLogin(verificationResult);\n } catch (e) {\n this.submitting = false;\n console.log('Verification error', e);\n VerdocsToast('Verification error, please check the code and try again.');\n }\n }\n\n completeLogin(result: IAuthenticateResponse) {\n this.clearForms();\n this.tempAuthEndpoint.clearSession();\n this.endpoint.setToken(result.access_token);\n }\n\n async loginAndCheckVerification() {\n if (this.submitting) {\n return;\n }\n\n this.submitting = true;\n this.tempAuthEndpoint.clearSession();\n\n try {\n this.submitting = false;\n const authResult = await authenticate(this.tempAuthEndpoint, {username: this.email.trim(), password: this.password, grant_type: 'password'});\n console.log('[AUTH] Authenticated, checking email verification');\n this.tempAuthEndpoint.setToken(authResult.access_token);\n\n const user = await getMyUser(this.tempAuthEndpoint);\n\n if (!user.email_verified) {\n console.log('[AUTH] Logged in, pending email address verification');\n this.displayMode = 'verify';\n } else {\n console.log('[AUTH] Email address is verified, completing login');\n this.completeLogin(authResult);\n }\n } catch (e) {\n this.submitting = false;\n console.log('[AUTH] Auth failure', e.response?.data || e);\n VerdocsToast('Login failed. Please check your credentials and try again.', {style: 'error'});\n }\n }\n\n clearForms() {\n this.submitting = false;\n this.resendDisabled = false;\n this.email = '';\n this.phone = '';\n this.password = '';\n this.newPassword = '';\n this.confirmpass = '';\n this.verificationCode = '';\n this.first_name = '';\n this.last_name = '';\n this.org_name = '';\n }\n\n handleLogout() {\n console.log('logging out');\n this.endpoint.clearSession();\n this.tempAuthEndpoint.clearSession();\n this.clearForms();\n this.displayMode = 'login';\n }\n\n handleResendVerification() {\n // Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a\n // security issue but it's a poor user experience to allow it.\n this.resendDisabled = true;\n this.resendDisabledTimer = setTimeout(() => {\n this.resendDisabled = false;\n this.resendDisabledTimer = null;\n }, 30000);\n\n resendVerification(this.tempAuthEndpoint)\n .then(r => {\n console.log('[AUTH] Verification request resent', r);\n VerdocsToast('Please check your email for a verification code.', {style: 'info'});\n })\n .catch((e: any) => {\n console.log('[AUTH] Unable to resend verification', e);\n VerdocsToast('Unable to resend code. Please try again later.', {style: 'error'});\n });\n }\n\n handleResendReset() {\n // Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a\n // security issue but it's a poor user experience to allow it.\n this.resendDisabled = true;\n this.resendDisabledTimer = setTimeout(() => {\n this.resendDisabled = false;\n this.resendDisabledTimer = null;\n }, 30000);\n\n resetPassword(this.tempAuthEndpoint, {email: this.email})\n .then(r => {\n console.log('[AUTH] Resend-code request resent', r);\n VerdocsToast('Please check your email again for a verification code.', {style: 'info'});\n })\n .catch((e: any) => {\n console.log('[AUTH] Unable to resend reset request', e);\n VerdocsToast('Unable to resend code. Please try again later.', {style: 'error'});\n });\n }\n\n async handleResetGetCode() {\n this.submitting = true;\n this.confirmpass = '';\n this.newPassword = '';\n\n try {\n this.submitting = false;\n const result = await resetPassword(this.endpoint, {email: this.email});\n console.log('[AUTH] Reset result', result);\n VerdocsToast('Please check your email inbox for a password reset code.', {style: 'success'});\n this.verificationCode = '';\n this.confirmpass = '';\n this.newPassword = '';\n this.displayMode = 'reset';\n } catch (e) {\n this.submitting = false;\n console.log('Reset request error', e);\n VerdocsToast('Request failed. Please check your email address and try again.');\n }\n }\n\n async handleResetPassword() {\n if (!this.isPasswordComplex(this.newPassword)) {\n VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', {style: 'error'});\n return;\n }\n\n if (this.newPassword !== this.confirmpass) {\n VerdocsToast('Passwords do not match.', {style: 'error'});\n return;\n }\n\n this.submitting = true;\n try {\n this.submitting = false;\n const resetResult = await resetPassword(this.endpoint, {email: this.email, code: this.verificationCode, new_password: this.newPassword});\n console.log('reset result', resetResult);\n VerdocsToast('Your password has been reset. You may now use your new password to login.', {style: 'success'});\n this.verificationCode = '';\n this.confirmpass = '';\n this.newPassword = '';\n this.password = '';\n this.displayMode = 'login';\n } catch (e) {\n this.submitting = false;\n console.log('Verification error', e);\n VerdocsToast('Verification error, please check the code and try again.');\n }\n }\n\n async handleReset() {\n this.submitting = true;\n\n try {\n const result = await resetPassword(this.endpoint, {email: this.email});\n console.log('[AUTH] Reset sent', result);\n this.submitting = false;\n this.displayMode = 'login';\n VerdocsToast('If your email address is registered, you will receive instructions on resetting your password shortly.', {style: 'info'});\n } catch (e) {\n console.log('[AUTH] Unable to reset password', e);\n this.submitting = false;\n VerdocsToast('Unable to reset password. Please check your email address and try again.', {style: 'error'});\n }\n }\n\n render() {\n if (!this.visible) {\n return <div style={{display: 'none'}}>Authenticated</div>;\n }\n\n if (this.session) {\n return (\n <verdocs-button\n label=\"Sign Out\"\n disabled={this.submitting}\n onClick={() => this.handleLogout()}\n style={{display: 'flex', justifyContent: 'center', margin: '30px auto 0'}}\n />\n );\n }\n\n if (this.displayMode === 'signup') {\n const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.confirmpass || !this.org_name;\n\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Sign up for a free account</h3>\n <div class=\"already-have\">\n Already have an account?\n <verdocs-button label=\"Log In\" variant=\"text\" onClick={() => (this.displayMode = 'login')} disabled={this.submitting} />\n </div>\n\n <form onSubmit={() => this.handleSignup()}>\n <div style={{display: 'flex', flexDirection: 'row', columnGap: '20px'}}>\n <verdocs-text-input\n label=\"First Name\"\n autocomplete=\"first\"\n required={true}\n value={this.first_name}\n onInput={(e: any) => (this.first_name = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Last Name\"\n autocomplete=\"last\"\n required={true}\n value={this.last_name}\n onInput={(e: any) => (this.last_name = e.target.value)}\n disabled={this.submitting}\n />\n </div>\n <verdocs-text-input\n label=\"Email Address\"\n autocomplete=\"email\"\n required={true}\n value={this.email}\n onInput={(e: any) => (this.email = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n required={true}\n autocomplete=\"new-password\"\n value={this.password}\n onInput={(e: any) => (this.password = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Confirm Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.confirmpass}\n onInput={(e: any) => (this.confirmpass = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Phone Number\"\n type=\"tel\"\n required={true}\n autocomplete=\"phone\"\n value={this.phone}\n onInput={(e: any) => (this.phone = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Organization Name\"\n autocomplete=\"org\"\n required={true}\n value={this.org_name}\n onInput={(e: any) => (this.org_name = e.target.value)}\n disabled={this.submitting}\n style={{flex: '1'}}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <verdocs-button\n label=\"Next\"\n disabled={invalid}\n onClick={invalid ? () => {} : () => this.handleSignup()}\n style={{display: 'flex', justifyContent: 'center', margin: '30px auto 0'}}\n />\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'verify') {\n return (\n <div class=\"form\">\n <form onSubmit={() => this.handleVerification()}>\n <p>Please check your e-mail inbox for a verification code and enter it below.</p>\n\n <verdocs-text-input\n label=\"Verification Code\"\n required={true}\n value={this.verificationCode}\n onInput={(e: any) => (this.verificationCode = e.target.value)}\n disabled={this.submitting}\n />\n\n <div class=\"buttons\">\n <verdocs-button label=\"Sign Out\" variant=\"outline\" disabled={this.submitting} onClick={() => this.handleLogout()} />\n <verdocs-button label=\"Verify\" disabled={this.submitting || !this.verificationCode || this.verificationCode.length !== 6} onClick={() => this.handleVerification()} />\n </div>\n <div class=\"buttons\">\n <verdocs-button variant=\"text\" label=\"Resend Code\" disabled={this.resendDisabled || this.submitting} onClick={() => this.handleResendVerification()} />\n </div>\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'forgot') {\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Forgot your password?</h3>\n\n <p>\n Enter your e-mail address below. If the e-mail address is valid, a password reset code will be sent to your inbox. Please allow up to 15 minutes to arrive, and check\n your spam folder if you do not receive the message.\n </p>\n\n <form onSubmit={() => this.handleResetGetCode()}>\n <verdocs-text-input\n label=\"Email Address\"\n autocomplete=\"email\"\n required={true}\n value={this.email}\n onInput={(e: any) => (this.email = e.target.value)}\n disabled={this.submitting}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <div class=\"buttons\">\n <verdocs-button size=\"small\" label=\"Cancel\" variant=\"outline\" disabled={this.submitting} onClick={() => (this.displayMode = 'login')} />\n <verdocs-button size=\"small\" label=\"Request Code\" disabled={this.submitting} onClick={() => this.handleResetGetCode()} />\n </div>\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'reset') {\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Forgot your password?</h3>\n\n <p>\n Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not\n receive the message.\n </p>\n\n <form onSubmit={() => this.handleResetPassword()}>\n <verdocs-text-input\n label=\"Verification Code\"\n required={true}\n value={this.verificationCode}\n onInput={(e: any) => (this.verificationCode = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.newPassword}\n onInput={(e: any) => (this.newPassword = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Confirm Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.confirmpass}\n onInput={(e: any) => (this.confirmpass = e.target.value)}\n disabled={this.submitting}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" disabled={this.submitting} onClick={() => (this.displayMode = 'login')} />\n <verdocs-button label=\"Reset\" disabled={this.submitting} onClick={() => this.handleResetPassword()} />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button variant=\"text\" label=\"Resend Code\" disabled={this.resendDisabled || this.submitting} onClick={() => this.handleResendReset()} />\n </div>\n </form>\n </div>\n );\n }\n\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Log in to your account</h3>\n <div class=\"already-have\">\n Don't have an account?\n <verdocs-button label=\"Sign Up\" variant=\"text\" onClick={() => (this.displayMode = 'signup')} disabled={this.submitting} />\n </div>\n\n <form onSubmit={() => this.loginAndCheckVerification()}>\n <verdocs-text-input label=\"Email\" autocomplete=\"username\" value={this.email} onInput={(e: any) => (this.email = e.target.value)} disabled={this.submitting} />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n autocomplete=\"current-password\"\n value={this.password}\n onInput={(e: any) => (this.password = e.target.value)}\n disabled={this.submitting}\n />\n\n <verdocs-button\n label=\"Forgot Your Password?\"\n variant=\"text\"\n onClick={() => (this.displayMode = 'forgot')}\n disabled={this.submitting}\n style={{display: 'flex', justifyContent: 'center', margin: '10px auto 20px'}}\n />\n\n <verdocs-button\n label=\"Login\"\n disabled={this.submitting}\n onClick={() => this.loginAndCheckVerification()}\n style={{display: 'flex', justifyContent: 'center', margin: '10px auto 0'}}\n />\n </form>\n </div>\n );\n }\n}\n"],"names":["VerdocsEndpoint","VerdocsToast","convertToE164","createProfile","SDKError","verifyEmail","authenticate","getMyUser","resendVerification","resetPassword","h"],"mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,+oDAA+oD;;MCoCzpD,WAAW,GAAA,MAAA;AALxB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAME;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAoBA,qBAAe,CAAC,UAAU,EAAE;AAEhE;;;;AAIG;AACK,QAAA,IAAO,CAAA,OAAA,GAAY,IAAI;AAE/B;;;;AAIG;AACK,QA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AAC,MAAM,CAAC,KAAK,CAAC,EACrD,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,CAAA,EAEFA,OAAA,CAAA,gBAAA,EAAA,EACE,KAAK,EAAC,uBAAuB,EAC7B,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,OAAO,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,EAC5C,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAC,EAC5E,CAAA,EAEFA,OAAA,CAAA,gBAAA,EAAA,EACE,KAAK,EAAC,OAAO,EACb,QAAQ,EAAE,IAAI,CAAC,UAAU,EACzB,OAAO,EAAE,MAAM,IAAI,CAAC,yBAAyB,EAAE,EAC/C,KAAK,EAAE,EAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAC,GACzE,CACG,CACH;;;;;;;"}
1
+ {"version":3,"file":"verdocs-auth.entry.cjs.js","sources":["src/components/embeds/verdocs-auth/verdocs-auth.scss?tag=verdocs-auth","src/components/embeds/verdocs-auth/verdocs-auth.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-auth {\n font-family: $verdocs-primary-font;\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n\n .form {\n width: 320px;\n display: flex;\n padding: 20px;\n max-width: 90%;\n align-items: center;\n flex-direction: column;\n box-sizing: border-box;\n justify-content: center;\n background: $verdocs-grey-4;\n }\n\n .logo {\n width: 128px;\n max-width: 100%;\n margin: 20px 0 30px;\n }\n\n h3 {\n color: $verdocs-grey-0;\n text-align: center;\n font-weight: 400;\n font-size: 18px;\n line-height: 1.75;\n margin: 0;\n }\n\n em {\n font-size: 14px;\n margin: 15px 0;\n }\n\n .buttons {\n gap: 20px;\n margin: 20px 0 0 0;\n display: flex;\n flex-direction: row;\n justify-content: center;\n }\n\n .status-result {\n display: none;\n\n &.debug {\n white-space: pre-wrap;\n font-size: 14px;\n background: #fff;\n padding: 10px;\n display: block;\n flex-direction: row;\n justify-content: center;\n }\n }\n\n form {\n width: 100%;\n }\n\n verdocs-text-input {\n margin-bottom: 10px;\n }\n\n .account-option {\n gap: 8px;\n margin: 20px 0 8px 0;\n display: flex;\n flex-direction: row;\n }\n\n p {\n color: $verdocs-grey-0;\n margin: 1em 0;\n font-size: 14px;\n }\n\n // Our <p>s are in a flex layout which prevents margins from collapsing because each item creates its own row\n p + p {\n margin-top: 0;\n }\n\n verdocs-help-icon {\n margin-top: 18px;\n display: flex;\n width: 32px;\n height: 32px;\n flex: 0 0 32px;\n }\n\n .already-have {\n color: $verdocs-grey-0;\n margin: 0.5em 0;\n font-size: 14px;\n }\n}\n","import {Component, Prop, State, h, Event, EventEmitter} from '@stencil/core';\nimport {verifyEmail, IAuthenticateResponse, getMyUser, IProfile, convertToE164} from '@verdocs/js-sdk';\nimport {TSession, VerdocsEndpoint, createProfile, authenticate, resendVerification, resetPassword} from '@verdocs/js-sdk';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\n\nexport interface IAuthStatus {\n authenticated: boolean;\n session: TSession;\n profile: IProfile | null;\n}\n\n/**\n * Display an authentication dialog that allows the user to login or sign up. If the user is\n * already authenticated with a valid session, this component will hide itself and fire the\n * success callback immediately. It is up to the host application to render the next appropriate\n * view for the application.\n *\n * To simplify UI development, a visibility flag can force this component to never display. This\n * allows you to subscribe to notifications from client apps without calling the lower-level JS SDK.\n *\n * This embed is responsive / mobile-friendly, but the calling application should provide at\n * least a 300px wide container to allow sufficient space for the required forms.\n *\n * ```ts\n * <verdocs-auth\n * onAuthenticated={({ detail }) => console.log('Authentication state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-auth',\n styleUrl: 'verdocs-auth.scss',\n shadow: false,\n})\nexport class VerdocsAuth {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * Normally, if the user has a valid session, this embed will be invisible, otherwise it will display\n * login / signup forms. If this is set to false, this embed will be invisible in both cases. Apps may\n * use this to verify if a user has a valid session without needing a separate call to Verdocs JS SDK.\n */\n @Prop() visible: boolean = true;\n\n /**\n * By default, a Verdocs logo will be displayed above the login/signup forms. This may be used to\n * override its source. (Alternatively, you may simply hide it via CSS overrides.) Logos should be\n * in SVG format for best results.\n */\n @Prop() logo: string = 'https://app.verdocs.com/assets/blue-logo.svg';\n\n /**\n * The display mode to start in.\n */\n @Prop({mutable: true}) displayMode: 'login' | 'forgot' | 'reset' | 'signup' | 'verify' = 'login';\n\n /**\n * Event fired when session authentication process has completed. Check the event\n * contents for completion status. This event will always be called at least once,\n * when the component is first rendered.\n */\n @Event({composed: true}) authenticated: EventEmitter<IAuthStatus>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n @State() org_name: string = '';\n @State() first_name: string = '';\n @State() last_name: string = '';\n @State() email: string = '';\n @State() phone: string = '';\n @State() verificationCode: string = '';\n @State() newPassword: string = '';\n @State() password: string = '';\n @State() confirmpass: string = '';\n @State() submitting: boolean = false;\n @State() resendDisabled = false;\n @State() session: TSession = null;\n @State() profile: IProfile | null = null;\n\n resendDisabledTimer = null;\n\n // We can't instantly log in on the default endpoint because other listeners might see\n // its events and incorrectly trigger before we're done. So we manage our own temp\n // endpoint and pass the final tokens to the default once we're ready.\n tempAuthEndpoint = new VerdocsEndpoint({\n baseURL: VerdocsEndpoint.getDefault().getBaseURL(),\n persist: false,\n });\n\n componentWillLoad() {\n this.endpoint.loadSession();\n this.applyHashDisplayMode();\n\n // We need to listen to the hashchange to know when we're being sent to #forgot\n if (typeof window !== 'undefined') {\n window.addEventListener('hashchange', this.handleHashChange);\n }\n\n VerdocsEndpoint.getDefault().onSessionChanged((_endpoint, session, profile) => {\n this.session = session;\n this.profile = profile;\n if (session) {\n this.authenticated?.emit({authenticated: true, session, profile});\n } else {\n this.authenticated?.emit({authenticated: false, session, profile});\n }\n });\n }\n\n disconnectedCallback() {\n if (typeof window !== 'undefined') {\n window.removeEventListener('hashchange', this.handleHashChange);\n }\n }\n\n handleHashChange = () => {\n this.applyHashDisplayMode();\n };\n\n applyHashDisplayMode() {\n if (typeof window === 'undefined') {\n return;\n }\n\n const hash = (window.location.hash || '').replace(/^#/, '').toLowerCase();\n if (hash === 'forgot') {\n this.displayMode = 'forgot';\n }\n }\n\n isPasswordComplex(password: string) {\n const isUppercase = (ch: string) => /[A-Z]/.test(ch);\n const isLowercase = (ch: string) => /[a-z]/.test(ch);\n const isSpecialChar = (ch: string) => /[`!@#$%^&*()_\\-+=\\[\\]{};':\"\\\\|,.<>\\/?~ ]/.test(ch);\n let countOfUpperCase = 0,\n countOfLowerCase = 0,\n countOfSpecialChar = 0;\n for (let i = 0; i < password.length; i++) {\n let ch = password.charAt(i);\n if (isUppercase(ch)) countOfUpperCase++;\n else if (isLowercase(ch)) countOfLowerCase++;\n else if (isSpecialChar(ch)) countOfSpecialChar++;\n }\n return password.length >= 8 && countOfLowerCase > 0 && countOfUpperCase > 0 && countOfSpecialChar > 0;\n }\n\n handleSignup() {\n if (!this.isPasswordComplex(this.password)) {\n VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', {style: 'error'});\n return;\n }\n\n if (this.password !== this.confirmpass) {\n VerdocsToast('Passwords do not match.', {style: 'error'});\n return;\n }\n\n this.submitting = true;\n this.tempAuthEndpoint.clearSession();\n const formattedPhone = convertToE164(this.phone);\n\n const createProfileParams = {\n email: this.email,\n password: this.password,\n first_name: this.first_name,\n last_name: this.last_name,\n org_name: this.org_name,\n phone: formattedPhone,\n };\n\n createProfile(this.tempAuthEndpoint, createProfileParams)\n .then(r => {\n console.log('[AUTH] Profile creation result', r);\n this.tempAuthEndpoint.setToken(r.access_token);\n // We can't clearForms because we need email to stick around\n this.password = '';\n this.phone = '';\n this.first_name = '';\n this.last_name = '';\n this.org_name = '';\n this.displayMode = 'verify';\n this.submitting = false;\n })\n .catch(e => {\n console.log('[AUTH] Signup error', e.response);\n this.submitting = false;\n this.authenticated?.emit({authenticated: false, profile: null, session: null});\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n\n VerdocsToast('Signup failed: ' + e.response?.data?.error || 'Unknown Error', {style: 'error'});\n });\n }\n\n async handleVerification() {\n this.submitting = true;\n\n try {\n this.submitting = false;\n const verificationResult = await verifyEmail(this.tempAuthEndpoint, {email: this.email, token: this.verificationCode});\n VerdocsToast('Thank you for verifying your email address.', {style: 'success'});\n this.completeLogin(verificationResult);\n } catch (e) {\n this.submitting = false;\n console.log('Verification error', e);\n VerdocsToast('Verification error, please check the code and try again.');\n }\n }\n\n completeLogin(result: IAuthenticateResponse) {\n this.clearForms();\n this.tempAuthEndpoint.clearSession();\n this.endpoint.setToken(result.access_token);\n }\n\n async loginAndCheckVerification() {\n if (this.submitting) {\n return;\n }\n\n this.submitting = true;\n this.tempAuthEndpoint.clearSession();\n\n try {\n this.submitting = false;\n const authResult = await authenticate(this.tempAuthEndpoint, {username: this.email.trim(), password: this.password, grant_type: 'password'});\n console.log('[AUTH] Authenticated, checking email verification');\n this.tempAuthEndpoint.setToken(authResult.access_token);\n\n const user = await getMyUser(this.tempAuthEndpoint);\n\n if (!user.email_verified) {\n console.log('[AUTH] Logged in, pending email address verification');\n this.displayMode = 'verify';\n } else {\n console.log('[AUTH] Email address is verified, completing login');\n this.completeLogin(authResult);\n }\n } catch (e) {\n this.submitting = false;\n console.log('[AUTH] Auth failure', e.response?.data || e);\n VerdocsToast('Login failed. Please check your credentials and try again.', {style: 'error'});\n }\n }\n\n clearForms() {\n this.submitting = false;\n this.resendDisabled = false;\n this.email = '';\n this.phone = '';\n this.password = '';\n this.newPassword = '';\n this.confirmpass = '';\n this.verificationCode = '';\n this.first_name = '';\n this.last_name = '';\n this.org_name = '';\n }\n\n handleLogout() {\n console.log('logging out');\n this.endpoint.clearSession();\n this.tempAuthEndpoint.clearSession();\n this.clearForms();\n this.displayMode = 'login';\n }\n\n handleResendVerification() {\n // Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a\n // security issue but it's a poor user experience to allow it.\n this.resendDisabled = true;\n this.resendDisabledTimer = setTimeout(() => {\n this.resendDisabled = false;\n this.resendDisabledTimer = null;\n }, 30000);\n\n resendVerification(this.tempAuthEndpoint)\n .then(r => {\n console.log('[AUTH] Verification request resent', r);\n VerdocsToast('Please check your email for a verification code.', {style: 'info'});\n })\n .catch((e: any) => {\n console.log('[AUTH] Unable to resend verification', e);\n VerdocsToast('Unable to resend code. Please try again later.', {style: 'error'});\n });\n }\n\n handleResendReset() {\n // Avoid the user just click-spamming this pathway. The server rate-limits this anyway so it's not a\n // security issue but it's a poor user experience to allow it.\n this.resendDisabled = true;\n this.resendDisabledTimer = setTimeout(() => {\n this.resendDisabled = false;\n this.resendDisabledTimer = null;\n }, 30000);\n\n resetPassword(this.tempAuthEndpoint, {email: this.email})\n .then(r => {\n console.log('[AUTH] Resend-code request resent', r);\n VerdocsToast('Please check your email again for a verification code.', {style: 'info'});\n })\n .catch((e: any) => {\n console.log('[AUTH] Unable to resend reset request', e);\n VerdocsToast('Unable to resend code. Please try again later.', {style: 'error'});\n });\n }\n\n async handleResetGetCode() {\n this.submitting = true;\n this.confirmpass = '';\n this.newPassword = '';\n\n try {\n this.submitting = false;\n const result = await resetPassword(this.endpoint, {email: this.email});\n console.log('[AUTH] Reset result', result);\n VerdocsToast('Please check your email inbox for a password reset code.', {style: 'success'});\n this.verificationCode = '';\n this.confirmpass = '';\n this.newPassword = '';\n this.displayMode = 'reset';\n } catch (e) {\n this.submitting = false;\n console.log('Reset request error', e);\n VerdocsToast('Request failed. Please check your email address and try again.');\n }\n }\n\n async handleResetPassword() {\n if (!this.isPasswordComplex(this.newPassword)) {\n VerdocsToast('Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.', {style: 'error'});\n return;\n }\n\n if (this.newPassword !== this.confirmpass) {\n VerdocsToast('Passwords do not match.', {style: 'error'});\n return;\n }\n\n this.submitting = true;\n try {\n this.submitting = false;\n const resetResult = await resetPassword(this.endpoint, {email: this.email, code: this.verificationCode, new_password: this.newPassword});\n console.log('reset result', resetResult);\n VerdocsToast('Your password has been reset. You may now use your new password to login.', {style: 'success'});\n this.verificationCode = '';\n this.confirmpass = '';\n this.newPassword = '';\n this.password = '';\n this.displayMode = 'login';\n } catch (e) {\n this.submitting = false;\n console.log('Verification error', e);\n VerdocsToast('Verification error, please check the code and try again.');\n }\n }\n\n async handleReset() {\n this.submitting = true;\n\n try {\n const result = await resetPassword(this.endpoint, {email: this.email});\n console.log('[AUTH] Reset sent', result);\n this.submitting = false;\n this.displayMode = 'login';\n VerdocsToast('If your email address is registered, you will receive instructions on resetting your password shortly.', {style: 'info'});\n } catch (e) {\n console.log('[AUTH] Unable to reset password', e);\n this.submitting = false;\n VerdocsToast('Unable to reset password. Please check your email address and try again.', {style: 'error'});\n }\n }\n\n render() {\n if (!this.visible) {\n return <div style={{display: 'none'}}>Authenticated</div>;\n }\n\n if (this.session) {\n return (\n <verdocs-button\n label=\"Sign Out\"\n disabled={this.submitting}\n onClick={() => this.handleLogout()}\n style={{display: 'flex', justifyContent: 'center', margin: '30px auto 0'}}\n />\n );\n }\n\n if (this.displayMode === 'signup') {\n const invalid = this.submitting || !this.first_name || !this.last_name || !this.email || !this.password || !this.confirmpass || !this.org_name;\n\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Sign up for a free account</h3>\n <div class=\"already-have\">\n Already have an account?\n <verdocs-button label=\"Log In\" variant=\"text\" onClick={() => (this.displayMode = 'login')} disabled={this.submitting} />\n </div>\n\n <form onSubmit={() => this.handleSignup()}>\n <div style={{display: 'flex', flexDirection: 'row', columnGap: '20px'}}>\n <verdocs-text-input\n label=\"First Name\"\n autocomplete=\"first\"\n required={true}\n value={this.first_name}\n onInput={(e: any) => (this.first_name = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Last Name\"\n autocomplete=\"last\"\n required={true}\n value={this.last_name}\n onInput={(e: any) => (this.last_name = e.target.value)}\n disabled={this.submitting}\n />\n </div>\n <verdocs-text-input\n label=\"Email Address\"\n autocomplete=\"email\"\n required={true}\n value={this.email}\n onInput={(e: any) => (this.email = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n required={true}\n autocomplete=\"new-password\"\n value={this.password}\n onInput={(e: any) => (this.password = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Confirm Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.confirmpass}\n onInput={(e: any) => (this.confirmpass = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Phone Number\"\n type=\"tel\"\n required={true}\n autocomplete=\"phone\"\n value={this.phone}\n onInput={(e: any) => (this.phone = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Organization Name\"\n autocomplete=\"org\"\n required={true}\n value={this.org_name}\n onInput={(e: any) => (this.org_name = e.target.value)}\n disabled={this.submitting}\n style={{flex: '1'}}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <verdocs-button\n label=\"Next\"\n disabled={invalid}\n onClick={invalid ? () => {} : () => this.handleSignup()}\n style={{display: 'flex', justifyContent: 'center', margin: '30px auto 0'}}\n />\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'verify') {\n return (\n <div class=\"form\">\n <form onSubmit={() => this.handleVerification()}>\n <p>Please check your e-mail inbox for a verification code and enter it below.</p>\n\n <verdocs-text-input\n label=\"Verification Code\"\n required={true}\n value={this.verificationCode}\n onInput={(e: any) => (this.verificationCode = e.target.value)}\n disabled={this.submitting}\n />\n\n <div class=\"buttons\">\n <verdocs-button label=\"Sign Out\" variant=\"outline\" disabled={this.submitting} onClick={() => this.handleLogout()} />\n <verdocs-button label=\"Verify\" disabled={this.submitting || !this.verificationCode || this.verificationCode.length !== 6} onClick={() => this.handleVerification()} />\n </div>\n <div class=\"buttons\">\n <verdocs-button variant=\"text\" label=\"Resend Code\" disabled={this.resendDisabled || this.submitting} onClick={() => this.handleResendVerification()} />\n </div>\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'forgot') {\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Forgot your password?</h3>\n\n <p>\n Enter your e-mail address below. If the e-mail address is valid, a password reset code will be sent to your inbox. Please allow up to 15 minutes to arrive, and check\n your spam folder if you do not receive the message.\n </p>\n\n <form onSubmit={() => this.handleResetGetCode()}>\n <verdocs-text-input\n label=\"Email Address\"\n autocomplete=\"email\"\n required={true}\n value={this.email}\n onInput={(e: any) => (this.email = e.target.value)}\n disabled={this.submitting}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <div class=\"buttons\">\n <verdocs-button size=\"small\" label=\"Cancel\" variant=\"outline\" disabled={this.submitting} onClick={() => (this.displayMode = 'login')} />\n <verdocs-button size=\"small\" label=\"Request Code\" disabled={this.submitting} onClick={() => this.handleResetGetCode()} />\n </div>\n </form>\n </div>\n );\n }\n\n if (this.displayMode === 'reset') {\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Forgot your password?</h3>\n\n <p>\n Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not\n receive the message.\n </p>\n\n <form onSubmit={() => this.handleResetPassword()}>\n <verdocs-text-input\n label=\"Verification Code\"\n required={true}\n value={this.verificationCode}\n onInput={(e: any) => (this.verificationCode = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.newPassword}\n onInput={(e: any) => (this.newPassword = e.target.value)}\n disabled={this.submitting}\n />\n <verdocs-text-input\n label=\"Confirm Password\"\n type=\"password\"\n required={true}\n autocomplete=\"off\"\n value={this.confirmpass}\n onInput={(e: any) => (this.confirmpass = e.target.value)}\n disabled={this.submitting}\n />\n\n <div style={{marginTop: '30px'}} />\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" disabled={this.submitting} onClick={() => (this.displayMode = 'login')} />\n <verdocs-button label=\"Reset\" disabled={this.submitting} onClick={() => this.handleResetPassword()} />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button variant=\"text\" label=\"Resend Code\" disabled={this.resendDisabled || this.submitting} onClick={() => this.handleResendReset()} />\n </div>\n </form>\n </div>\n );\n }\n\n return (\n <div class=\"form\">\n <a href=\"https://verdocs.com/en/\">\n <img src={this.logo} alt=\"Verdocs Logo\" class=\"logo\" />\n </a>\n\n <h3>Log in to your account</h3>\n <div class=\"already-have\">\n Don't have an account?\n <verdocs-button label=\"Sign Up\" variant=\"text\" onClick={() => (this.displayMode = 'signup')} disabled={this.submitting} />\n </div>\n\n <form onSubmit={() => this.loginAndCheckVerification()}>\n <verdocs-text-input label=\"Email\" autocomplete=\"username\" value={this.email} onInput={(e: any) => (this.email = e.target.value)} disabled={this.submitting} />\n <verdocs-text-input\n label=\"Password\"\n type=\"password\"\n autocomplete=\"current-password\"\n value={this.password}\n onInput={(e: any) => (this.password = e.target.value)}\n disabled={this.submitting}\n />\n\n <verdocs-button\n label=\"Forgot Your Password?\"\n variant=\"text\"\n onClick={() => (this.displayMode = 'forgot')}\n disabled={this.submitting}\n style={{display: 'flex', justifyContent: 'center', margin: '10px auto 20px'}}\n />\n\n <verdocs-button\n label=\"Login\"\n disabled={this.submitting}\n onClick={() => this.loginAndCheckVerification()}\n style={{display: 'flex', justifyContent: 'center', margin: '10px auto 0'}}\n />\n </form>\n </div>\n );\n }\n}\n"],"names":["VerdocsEndpoint","VerdocsToast","convertToE164","createProfile","SDKError","verifyEmail","authenticate","getMyUser","resendVerification","resetPassword","h"],"mappings":";;;;;;;AAAA,MAAM,cAAc,GAAG,+oDAA+oD;;MCoCzpD,WAAW,GAAA,MAAA;AALxB,IAAA,WAAA,CAAA,OAAA,EAAA;;;;AAME;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAoBA,qBAAe,CAAC,UAAU,EAAE;AAEhE;;;;AAIG;AACK,QAAA,IAAO,CAAA,OAAA,GAAY,IAAI;AAE/B;;;;AAIG;AACK,QAAA,IAAI,CAAA,IAAA,GAAW,8CAA8C;AAErE;;AAEG;AACoB,QAAA,IAAW,CAAA,WAAA,GAAuD,OAAO;AAevF,QAAA,IAAQ,CAAA,QAAA,GAAW,EAAE;AACrB,QAAA,IAAU,CAAA,UAAA,GAAW,EAAE;AACvB,QAAA,IAAS,CAAA,SAAA,GAAW,EAAE;AACtB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;AAClB,QAAA,IAAK,CAAA,KAAA,GAAW,EAAE;AAClB,QAAA,IAAgB,CAAA,gBAAA,GAAW,EAAE;AAC7B,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE;AACxB,QAAA,IAAQ,CAAA,QAAA,GAAW,EAAE;AACrB,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE;AACxB,QAAA,IAAU,CAAA,UAAA,GAAY,KAAK;AAC3B,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AACtB,QAAA,IAAO,CAAA,OAAA,GAAa,IAAI;AACxB,QAAA,IAAO,CAAA,OAAA,GAAoB,IAAI;AAExC,QAAA,IAAmB,CAAA,mBAAA,GAAG,IAAI;;;;AAK1B,QAAA,IAAgB,CAAA,gBAAA,GAAG,IAAIA,qBAAe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js-sdk');
5
5
  var _commonjsHelpers = require('./_commonjsHelpers-BJu3ubxk.js');
6
6
  var Environment = require('./Environment-3vWt0C1Q.js');
7
- var utils = require('./utils-DsDnct9q.js');
7
+ var utils = require('./utils-CrIt-iH8.js');
8
8
  require('./index-CeUF44L9.js');
9
9
  require('./Types-YJQtg77a.js');
10
10
 
@@ -4449,46 +4449,46 @@ const VerdocsContactPicker = class {
4449
4449
  if (((_t = (_s = (_r = this.featureFlags) === null || _r === void 0 ? void 0 : _r.toggles) === null || _s === void 0 ? void 0 : _s.find(t => t.name === 'id-verification')) === null || _t === void 0 ? void 0 : _t.enabled) === true && !!this.activeEntitlements.id_auth) {
4450
4450
  verificationOptions.push({ label: 'ID Check', value: 'id' });
4451
4451
  }
4452
- return (index.h("form", { key: '374d6f0907e09a4c312bcd666eaabf578f8671b5', onSubmit: e => e.preventDefault(),
4452
+ return (index.h("form", { key: '60b3c7e1d51fc5e59ce2296a2502e8051369f924', onSubmit: e => e.preventDefault(),
4453
4453
  // onClick={e => e.stopPropagation()}
4454
- autocomplete: "off" }, index.h("div", { key: 'bbdb01e7229992ff75b3b124fde6a8606769d53c', class: "row" }, index.h("label", { key: '546da7ec599b17cc2e514dcaf47fe41d7107ec11', htmlFor: this.firstNameFieldId }, "Name:"), index.h("div", { key: 'e5819a8cb2c261c302a4923561578c5928063e64', class: "names-row" }, index.h("input", { key: '05a471f19b8018993d50f4ba9776864392c13c9d', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.first_name, placeholder: "First...", onFocus: () => {
4454
+ autocomplete: "off" }, index.h("div", { key: '5219f8b28cfa0c0c7c6fdc4aa8f8741b85f15288', class: "row" }, index.h("label", { key: '8b7c606bedbf657f2d97cba51c49cb13773aed06', htmlFor: this.firstNameFieldId }, "Name:"), index.h("div", { key: 'd9cbd5fdb7774f6707aeff10f979ecd77814497d', class: "names-row" }, index.h("input", { key: '7df20c0da6bc2d77e853abbefa1568151606d2dc', id: this.firstNameFieldId, name: this.firstNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.first_name, placeholder: "First...", onFocus: () => {
4455
4455
  // Give the blur event a chance to hide it first if going between first/last
4456
4456
  setTimeout(() => {
4457
4457
  var _a;
4458
4458
  this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0;
4459
4459
  }, 100);
4460
- }, onInput: e => this.handleFirstNameChange(e) }), index.h("input", { key: '4e56ab4161e6bd7894c636619282915243c8aeec', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.last_name, placeholder: "Last...", onFocus: () => {
4460
+ }, onInput: e => this.handleFirstNameChange(e) }), index.h("input", { key: '7f36af6f66659d43d8c566dc7734b6779d005e87', id: this.lastNameFieldId, name: this.lastNameFieldId, type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.last_name, placeholder: "Last...", onFocus: () => {
4461
4461
  // Give the blur event a chance to hide it first if going between first/last
4462
4462
  setTimeout(() => {
4463
4463
  var _a;
4464
4464
  this.showSuggestions = ((_a = this.contactSuggestions) === null || _a === void 0 ? void 0 : _a.length) > 0;
4465
4465
  }, 100);
4466
- }, onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (index.h("verdocs-portal", { key: '0a856517832b4dc417627675a0327e5a5e9e4710', anchor: this.firstNameFieldId, onClickAway: () => {
4466
+ }, onInput: e => this.handleLastNameChange(e) })), this.showSuggestions && (index.h("verdocs-portal", { key: '539687898a19421dbe509f82ed114685db4a0536', anchor: this.firstNameFieldId, onClickAway: () => {
4467
4467
  this.showSuggestions = false;
4468
4468
  document.querySelectorAll(`.verdocs-portal-wrapper`).forEach(el => el.remove());
4469
- }, id: "verdocs-contact-picker-suggestions" }, index.h("div", { key: '6c0c1747e5ed512ad463c26f220b34db395e8f2c', class: "dropdown" }, this.contactSuggestions
4469
+ }, id: "verdocs-contact-picker-suggestions" }, index.h("div", { key: '1be1bfceea545bd2e138748cb1e675b1731fb496', class: "dropdown" }, this.contactSuggestions
4470
4470
  .filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))
4471
4471
  .map(suggestion => {
4472
4472
  var _a;
4473
4473
  return (index.h("div", { key: (_a = suggestion.id) !== null && _a !== void 0 ? _a : suggestion.email, class: "suggestion", onClick: e => this.handleSelectSuggestion(e, suggestion) }, suggestion.picture ? index.h("img", { alt: "Avatar", class: "avatar", src: suggestion.picture }) : index.h("div", { class: "avatar", innerHTML: addrBookIcon }), index.h("div", { class: "details" }, index.h("div", { class: "name" }, jsSdk.formatFullName(suggestion)), suggestion.email && index.h("div", { class: "destination" }, suggestion.email), suggestion.phone && index.h("div", { class: "destination" }, suggestion.phone))));
4474
- }))))), index.h("div", { key: '85552b20424fb4884fa88d22c78375fe5c6513e0', class: "row" }, index.h("label", { key: '2b438ee30f3c0115d0445e3f5bfe4ae8b7635073', htmlFor: this.emailFieldId }, "Email:"), index.h("input", { key: 'a349fb9e534ed7786268d9aac9184fc38a8a102e', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.email, placeholder: "Invite/verify via email...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), globalSMS && (index.h("div", { key: 'f015a535d0a37d94eb73b145342d00dde7b63a50', class: "row" }, index.h("label", { key: 'eff877e183e38de65ca11e535b81e11b5ee1bd92', htmlFor: this.phoneFieldId }, "Phone:"), index.h("input", { key: '41db6e4607189c0b0da0ef658b1fbafcfeab92ba', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.phone, placeholder: "Invite/verify via SMS...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
4474
+ }))))), index.h("div", { key: '25f883e6e75bf2f9d79e02b8116751b0e66c081d', class: "row" }, index.h("label", { key: '52a05b7c85512b6e32c53a39979ce05c811cec8a', htmlFor: this.emailFieldId }, "Email:"), index.h("input", { key: '7ce56d531a35d6a985bc256ababab83daa68e36b', id: this.emailFieldId, name: this.emailFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.email, placeholder: "Invite/verify via email...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.email = e.target.value) })), globalSMS && (index.h("div", { key: '0c6143171cf7577e455654ed7cdcdce55c97d259', class: "row" }, index.h("label", { key: '62b0a2ebf82ebfe9c74fe9f1bfda54e704243676', htmlFor: this.phoneFieldId }, "Phone:"), index.h("input", { key: 'c1f8cb49deedd8330fee755419a9034661173fc5', id: this.phoneFieldId, name: this.phoneFieldId, type: "text", "data-lpignore": "true", autoComplete: "blocked", "aria-autocomplete": "none", value: this.phone, placeholder: "Invite/verify via SMS...", onFocus: () => (this.showSuggestions = false), onInput: (e) => {
4475
4475
  this.phone = utils.convertToE164(e.target.value);
4476
- } }))), index.h(index.Fragment, { key: 'c037e234e206b1cd45bf91649f211ebe42f885fe' }, verificationOptions.length > 0 && (index.h("div", { key: '23fa9db672498199d7c053b258669e0676852322', class: "row pin-code" }, index.h("label", { key: 'd5208d3cd083716589aa6c18dbd85ba88ca208b3' }, "Verification Methods:"), index.h("div", { key: 'f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823' }, verificationOptions.map((option, i) => (index.h("div", { class: "option" }, index.h("verdocs-checkbox", { size: "small", id: `verdocs-multi-select-opt-${i}`, value: option.value, checked: this.auth_methods.includes(option.value), onInput: (e) => {
4476
+ } }))), index.h(index.Fragment, { key: 'c68bd8d3e4184325fd96548fca5e1f25df4a90ba' }, verificationOptions.length > 0 && (index.h("div", { key: '184acacfa5e048562c153349108e164208878365', class: "row pin-code" }, index.h("label", { key: '898d06cb4c7856ac0e603526a7526a9468a236e2' }, "Verification Methods:"), index.h("div", { key: 'db7765295ecba0eafe6849601adfcedf0dd8710a' }, verificationOptions.map((option, i) => (index.h("div", { class: "option" }, index.h("verdocs-checkbox", { size: "small", id: `verdocs-multi-select-opt-${i}`, value: option.value, checked: this.auth_methods.includes(option.value), onInput: (e) => {
4477
4477
  if (e.target.checked) {
4478
4478
  this.auth_methods = [...this.auth_methods, option.value];
4479
4479
  }
4480
4480
  else {
4481
4481
  this.auth_methods = this.auth_methods.filter(selected => selected !== option.value);
4482
4482
  }
4483
- } }), index.h("label", { htmlFor: `verdocs-multi-select-option-${i}` }, option.label))))))), this.auth_methods.includes('passcode') && (index.h("div", { key: 'd57e7078dfefb1c816a15c52a8aa44eae62a5557', class: "row pin-code" }, index.h("label", { key: 'df97978ae0e4c176c7d6ca38850537d3d6db5ce3', htmlFor: this.phoneFieldId }, "Passcode:"), index.h("input", { key: '7791e5a2d856bdd9dbbfcf8c339531e3e5c5e52b', id: "verdocs-passcode", name: "verdocs-passcode", type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.passcode, placeholder: "4-8 digits recommended...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.passcode = e.target.value) })))), index.h("div", { key: '7de2d50963399db273bd1d38941ea967a2d92827', class: "row pin-code" }, index.h("label", { key: 'd0202a6e0969b405d303cdc291dee95048460b43', style: { marginTop: '6px' } }, "Options:"), index.h("div", { key: '52f68972a5fee697972fa9baa284ca6a37830ab9' }, index.h("div", { key: '8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3', class: "option" }, index.h("verdocs-checkbox", { key: '7d21cafec340458f1c6a06b577fad30bbd5680eb', size: "small", id: "verdocs-delegator", checked: this.delegator, disabled: this.name_locked, onInput: (e) => {
4483
+ } }), index.h("label", { htmlFor: `verdocs-multi-select-option-${i}` }, option.label))))))), this.auth_methods.includes('passcode') && (index.h("div", { key: '09454b62bdbc05293dfd398f7174a573907e8ae0', class: "row pin-code" }, index.h("label", { key: '2efe93bb07e93e510df6a3fbb47bf0877fb4e50e', htmlFor: this.phoneFieldId }, "Passcode:"), index.h("input", { key: '5cf1a0555d219b524df8765738c14569aa645fc2', id: "verdocs-passcode", name: "verdocs-passcode", type: "text", "data-lpignore": "true", autocomplete: "blocked", "aria-autocomplete": "none", value: this.passcode, placeholder: "4-8 digits recommended...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.passcode = e.target.value) })))), index.h("div", { key: '21af48b52a051730edecf6b5e4c48ca969774a94', class: "row pin-code" }, index.h("label", { key: '0ff47e209674b8a1b48f31570b8dd207cf0ec99f', style: { marginTop: '6px' } }, "Options:"), index.h("div", { key: '0f76797112a98e826ed29fa606ab90a9dc9c80cb' }, index.h("div", { key: '25341b98161fc25fc94228f21123a393b39b9e6a', class: "option" }, index.h("verdocs-checkbox", { key: 'a8e699c364d4711a7ff895e8a14d9c62653be24d', size: "small", id: "verdocs-delegator", checked: this.delegator, disabled: this.name_locked, onInput: (e) => {
4484
4484
  this.delegator = e.target.checked;
4485
4485
  if (this.delegator)
4486
4486
  this.name_locked = false;
4487
- } }), index.h("label", { key: '2b96fb477ce41038cf9d115e9fabf102d670d801', htmlFor: "verdocs-delegator" }, "May delegate signing")), index.h("div", { key: '7f616562ee03e6026bf09b355ae20720b45655b0', class: "option" }, index.h("verdocs-checkbox", { key: '47bfa40e403ddf6da8cba33fda8ebff05625d353', size: "small", id: "verdocs-name-locked", checked: this.name_locked, disabled: this.delegator, onInput: (e) => {
4487
+ } }), index.h("label", { key: '69e79816be35fda253d6aa87eb17d555388bfabd', htmlFor: "verdocs-delegator" }, "May delegate signing")), index.h("div", { key: 'f7a272f4026c37e50735fad5bc2d2703be14ea07', class: "option" }, index.h("verdocs-checkbox", { key: 'e3b4321591a9284387ba06f4f5cf9a4b2ad4fc4b', size: "small", id: "verdocs-name-locked", checked: this.name_locked, disabled: this.delegator, onInput: (e) => {
4488
4488
  this.name_locked = e.target.checked;
4489
4489
  if (this.name_locked)
4490
4490
  this.delegator = false;
4491
- } }), index.h("label", { key: '382d0b92f8999dc1a0adaa91d00c6c0f95a17552', htmlFor: "verdocs-name-locked" }, "Name locked")))), index.h("div", { key: '6797886d95d1e08dc0c018e89cf6040aa60b02ff', class: "row message" }, index.h("label", { key: 'cb6f04c40e1b6601d0292e248b26cb4f2519e7d9', htmlFor: "verdocs-contact-picker-message" }, "Message:"), index.h("textarea", { key: '018a9162f52e73650283a7f2271a99352008085c', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", "data-lpignore": "true", autocomplete: "blocked", placeholder: "Optional message to include in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }, this.message)), index.h("div", { key: 'd2f04563ad450f4c6c0c19735a064d01182cf458', class: "buttons" }, index.h("div", { key: '43f240077f3c5b3e252c60a277668c94c9163b24', class: "flex-fill" }), index.h("verdocs-button", { key: 'f758cb6d10b3deb58d13aaf54c212e6455933104', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { key: '3aa451a2d6d23ada4a7a5ddb5843b22954b69161', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
4491
+ } }), index.h("label", { key: '3a7a83510b408f0b3958bf3672d2d3faafff5936', htmlFor: "verdocs-name-locked" }, "Name locked")))), index.h("div", { key: 'b4264c8ba14c2fad3c3042e5ebcc5b5b65ed9ff3', class: "row message" }, index.h("label", { key: '135343e32137c8a81bb90ae5033b148bd46e3723', htmlFor: "verdocs-contact-picker-message" }, "Message:"), index.h("textarea", { key: '5ed4d8cc6135335967784586053adecef8d5fdad', id: "verdocs-contact-picker-message", name: "verdocs-contact-picker-message", "data-lpignore": "true", autocomplete: "blocked", placeholder: "Optional message to include in invitation...", onFocus: () => (this.showSuggestions = false), onInput: (e) => (this.message = e.target.value) }, this.message)), index.h("div", { key: '430cf10e784514811edeb23dfc212cc299293df8', class: "buttons" }, index.h("div", { key: '2c3e117bc385528fec01fc2e55902fe7b2565d0f', class: "flex-fill" }), index.h("verdocs-button", { key: '6ed0e9b64bfedf5998decd0e7104c26b4a9d00f4', variant: "outline", label: "Cancel", size: "small", onClick: e => this.handleCancel(e) }), index.h("verdocs-button", { key: '8f879cb74029c15454f812336ea1cc917a9622a4', label: "OK", size: "small", disabled: !canSubmit, onClick: !canSubmit ? () => { } : e => this.handleSubmit(e) }))));
4492
4492
  }
4493
4493
  };
4494
4494
  VerdocsContactPicker.style = verdocsContactPickerCss;