@verdocs/web-sdk 5.0.45 → 5.0.47

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 (145) hide show
  1. package/dist/cjs/Environment-241c5659.js +13 -0
  2. package/dist/cjs/Environment-241c5659.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +8 -10
  5. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
  6. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -1
  8. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +0 -1
  9. package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js.map +1 -1
  10. package/dist/cjs/verdocs-preview_7.cjs.entry.js +3 -2
  11. package/dist/cjs/verdocs-preview_7.cjs.entry.js.map +1 -1
  12. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-radio-button.cjs.entry.js.map +1 -1
  14. package/dist/cjs/verdocs-sign.cjs.entry.js +6 -6
  15. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  16. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  17. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.css +2 -2
  18. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +0 -1
  19. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -1
  20. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +5 -4
  21. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -1
  22. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +9 -8
  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 +7 -9
  25. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  26. package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.css +2 -2
  27. package/dist/collection/utils/Environment.js +6 -0
  28. package/dist/collection/utils/Environment.js.map +1 -0
  29. package/dist/collection/utils/Unleash.js +1 -1
  30. package/dist/collection/utils/Unleash.js.map +1 -1
  31. package/dist/components/{p-ccbd93c3.js → p-01c8196b.js} +8 -10
  32. package/dist/components/p-01c8196b.js.map +1 -0
  33. package/dist/components/p-0aad02d5.js +10 -0
  34. package/dist/components/p-0aad02d5.js.map +1 -0
  35. package/dist/components/{p-81e52989.js → p-162ae711.js} +2 -2
  36. package/dist/components/{p-81e52989.js.map → p-162ae711.js.map} +1 -1
  37. package/dist/components/{p-a808fcb1.js → p-4fb8b22d.js} +6 -5
  38. package/dist/components/p-4fb8b22d.js.map +1 -0
  39. package/dist/components/{p-b4eee1ed.js → p-78b63448.js} +1 -2
  40. package/dist/components/p-78b63448.js.map +1 -0
  41. package/dist/components/{p-0a14020a.js → p-956fb355.js} +3 -3
  42. package/dist/components/{p-0a14020a.js.map → p-956fb355.js.map} +1 -1
  43. package/dist/components/{p-b9ec1278.js → p-968df95c.js} +3 -3
  44. package/dist/components/{p-b9ec1278.js.map → p-968df95c.js.map} +1 -1
  45. package/dist/components/{p-bfa07825.js → p-c83a272f.js} +2 -2
  46. package/dist/components/{p-bfa07825.js.map → p-c83a272f.js.map} +1 -1
  47. package/dist/components/verdocs-build.js +6 -6
  48. package/dist/components/verdocs-contact-picker.js +1 -1
  49. package/dist/components/verdocs-field-radio.js +1 -1
  50. package/dist/components/verdocs-kba-dialog.js +1 -1
  51. package/dist/components/verdocs-preview.js +1 -1
  52. package/dist/components/verdocs-radio-button.js +1 -1
  53. package/dist/components/verdocs-radio-button.js.map +1 -1
  54. package/dist/components/verdocs-send.js +1 -1
  55. package/dist/components/verdocs-sign.js +8 -7
  56. package/dist/components/verdocs-sign.js.map +1 -1
  57. package/dist/components/verdocs-template-document-page.js +1 -1
  58. package/dist/components/verdocs-template-fields.js +1 -1
  59. package/dist/esm/Environment-3a31549a.js +10 -0
  60. package/dist/esm/Environment-3a31549a.js.map +1 -0
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/esm/verdocs-contact-picker_2.entry.js +7 -9
  63. package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
  64. package/dist/esm/verdocs-field-attachment_13.entry.js +1 -1
  65. package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -1
  66. package/dist/esm/verdocs-kba-dialog_2.entry.js +0 -1
  67. package/dist/esm/verdocs-kba-dialog_2.entry.js.map +1 -1
  68. package/dist/esm/verdocs-preview_7.entry.js +3 -2
  69. package/dist/esm/verdocs-preview_7.entry.js.map +1 -1
  70. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  71. package/dist/esm/verdocs-radio-button.entry.js.map +1 -1
  72. package/dist/esm/verdocs-sign.entry.js +6 -6
  73. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  74. package/dist/esm/verdocs-web-sdk.js +1 -1
  75. package/dist/esm-es5/Environment-3a31549a.js +2 -0
  76. package/dist/esm-es5/Environment-3a31549a.js.map +1 -0
  77. package/dist/esm-es5/loader.js +1 -1
  78. package/dist/esm-es5/loader.js.map +1 -1
  79. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  80. package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
  81. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  82. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  83. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +1 -1
  84. package/dist/esm-es5/verdocs-kba-dialog_2.entry.js.map +1 -1
  85. package/dist/esm-es5/verdocs-preview_7.entry.js +2 -2
  86. package/dist/esm-es5/verdocs-preview_7.entry.js.map +1 -1
  87. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-radio-button.entry.js.map +1 -1
  89. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  90. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  91. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  92. package/dist/esm-es5/verdocs-web-sdk.js.map +1 -1
  93. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +2 -1
  94. package/dist/types/utils/Environment.d.ts +5 -0
  95. package/dist/verdocs-web-sdk/p-05a1dce1.system.entry.js +8 -0
  96. package/dist/verdocs-web-sdk/p-05a1dce1.system.entry.js.map +1 -0
  97. package/dist/verdocs-web-sdk/p-0aad02d5.js +2 -0
  98. package/dist/verdocs-web-sdk/p-0aad02d5.js.map +1 -0
  99. package/dist/verdocs-web-sdk/p-0c1898f6.system.js +1 -1
  100. package/dist/verdocs-web-sdk/p-0c1898f6.system.js.map +1 -1
  101. package/dist/verdocs-web-sdk/p-245bdf6f.system.entry.js +2 -0
  102. package/dist/verdocs-web-sdk/{p-46263e7a.system.entry.js.map → p-245bdf6f.system.entry.js.map} +1 -1
  103. package/dist/verdocs-web-sdk/{p-9a19e851.entry.js → p-35384b77.entry.js} +2 -2
  104. package/dist/verdocs-web-sdk/{p-9a19e851.entry.js.map → p-35384b77.entry.js.map} +1 -1
  105. package/dist/verdocs-web-sdk/{p-3fc80e05.entry.js → p-4c5b836b.entry.js} +2 -2
  106. package/dist/verdocs-web-sdk/{p-3fc80e05.entry.js.map → p-4c5b836b.entry.js.map} +1 -1
  107. package/dist/verdocs-web-sdk/{p-9ccbbb22.system.entry.js → p-4f16d741.system.entry.js} +2 -2
  108. package/dist/verdocs-web-sdk/{p-9ccbbb22.system.entry.js.map → p-4f16d741.system.entry.js.map} +1 -1
  109. package/dist/verdocs-web-sdk/{p-f6bf7e6a.system.entry.js → p-5239a35e.system.entry.js} +2 -2
  110. package/dist/verdocs-web-sdk/{p-f6bf7e6a.system.entry.js.map → p-5239a35e.system.entry.js.map} +1 -1
  111. package/dist/verdocs-web-sdk/p-6074b40b.system.js +2 -0
  112. package/dist/verdocs-web-sdk/p-6074b40b.system.js.map +1 -0
  113. package/dist/verdocs-web-sdk/p-8cdf8b44.entry.js +2 -0
  114. package/dist/verdocs-web-sdk/p-8cdf8b44.entry.js.map +1 -0
  115. package/dist/verdocs-web-sdk/p-8ed58724.entry.js +2 -0
  116. package/dist/verdocs-web-sdk/p-8ed58724.entry.js.map +1 -0
  117. package/dist/verdocs-web-sdk/p-c0331d52.system.entry.js +2 -0
  118. package/dist/verdocs-web-sdk/p-c0331d52.system.entry.js.map +1 -0
  119. package/dist/verdocs-web-sdk/p-d33c2b26.entry.js +8 -0
  120. package/dist/verdocs-web-sdk/p-d33c2b26.entry.js.map +1 -0
  121. package/dist/verdocs-web-sdk/p-dad790a1.system.entry.js +2 -0
  122. package/dist/verdocs-web-sdk/p-dad790a1.system.entry.js.map +1 -0
  123. package/dist/verdocs-web-sdk/p-dcf0049c.entry.js +2 -0
  124. package/dist/verdocs-web-sdk/{p-d47c58de.entry.js.map → p-dcf0049c.entry.js.map} +1 -1
  125. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  126. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -1
  127. package/package.json +6 -6
  128. package/dist/components/p-a808fcb1.js.map +0 -1
  129. package/dist/components/p-b4eee1ed.js.map +0 -1
  130. package/dist/components/p-ccbd93c3.js.map +0 -1
  131. package/dist/custom-elements.json +0 -2231
  132. package/dist/verdocs-web-sdk/p-1f8bd27c.system.entry.js +0 -2
  133. package/dist/verdocs-web-sdk/p-1f8bd27c.system.entry.js.map +0 -1
  134. package/dist/verdocs-web-sdk/p-46263e7a.system.entry.js +0 -2
  135. package/dist/verdocs-web-sdk/p-66ca774d.entry.js +0 -2
  136. package/dist/verdocs-web-sdk/p-66ca774d.entry.js.map +0 -1
  137. package/dist/verdocs-web-sdk/p-89c69404.system.entry.js +0 -8
  138. package/dist/verdocs-web-sdk/p-89c69404.system.entry.js.map +0 -1
  139. package/dist/verdocs-web-sdk/p-c7f2bac2.system.entry.js +0 -2
  140. package/dist/verdocs-web-sdk/p-c7f2bac2.system.entry.js.map +0 -1
  141. package/dist/verdocs-web-sdk/p-cb0b6e3e.entry.js +0 -2
  142. package/dist/verdocs-web-sdk/p-cb0b6e3e.entry.js.map +0 -1
  143. package/dist/verdocs-web-sdk/p-d47c58de.entry.js +0 -2
  144. package/dist/verdocs-web-sdk/p-e8268ed9.entry.js +0 -8
  145. package/dist/verdocs-web-sdk/p-e8268ed9.entry.js.map +0 -1
@@ -1,2 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,t=1,n=arguments.length;t<n;t++){i=arguments[t];for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o))e[o]=i[o]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,i,t,n){function o(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,s){function r(e){try{a(n.next(e))}catch(e){s(e)}}function l(e){try{a(n["throw"](e))}catch(e){s(e)}}function a(e){e.done?t(e.value):o(e.value).then(r,l)}a((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,o,s,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(i){return a([e,i])}}function a(l){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(t=0)),t)try{if(n=1,o&&(s=l[0]&2?o["return"]:l[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;if(o=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;o=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(s=t.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){t.label=l[1];break}if(l[0]===6&&t.label<s[1]){t.label=s[1];s=l;break}if(s&&t.label<s[2]){t.label=s[2];t.ops.push(l);break}if(s[2])t.ops.pop();t.trys.pop();continue}l=i.call(e,t)}catch(e){l=[6,e];o=0}finally{n=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-60387e15.system.js","@verdocs/js-sdk","./p-f29eb00a.system.js","./p-c8a15cb7.system.js","./p-ebd42be0.system.js","./p-21b1acec.system.js","./p-d738b5db.system.js","./p-2c5350ec.system.js"],(function(e){"use strict";var i,t,n,o,s,r,l,a,d,c,u,h,f,p,v;return{setters:[function(e){i=e.r;t=e.c;n=e.h;o=e.F;s=e.H;r=e.g},function(e){l=e.VerdocsEndpoint;a=e.getEnvelope;d=e.getDocumentDownloadLink;c=e.cancelEnvelope;u=e.userCanCancelEnvelope;h=e.integerSequence},function(e){f=e.s},function(e){p=e.S},function(e){v=e.S},function(){},function(){},function(){}],execute:function(){var x='@-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:10px;-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:5px 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 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 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;font-size:14px;padding:0 5px;-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}';var b=x;var g='<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>';var m=e("verdocs_kba_dialog",function(){function e(e){i(this,e);this.exit=t(this,"exit",7);this.pinEntered=t(this,"pinEntered",7);this.next=t(this,"next",7);this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.response="";this.updatedRecipient=null;this.dobContainerId="verdocs-date-input-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentWillLoad=function(){this.updatedRecipient=__assign({},this.recipient||{})};e.prototype.componentDidLoad=function(){};e.prototype.handleCancel=function(){this.exit.emit()};e.prototype.handleDismiss=function(e){if(e.target.class==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.next.emit(this.response);this.response=""};e.prototype.handleConfirmID=function(){this.next.emit(this.updatedRecipient)};e.prototype.render=function(){var e=this;var i,t,r,l,a,d,c,u,h,f,p,v;if(this.mode==="choice"){return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return e.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(o,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:g}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"choices"},this.choices.map((function(i){return n("div",{class:"choice ".concat(i===e.response?"selected":""),onClick:function(){console.log("Selected",i);e.response=i}},i)}))),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return e.handleCancel()}}),n("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:function(){return e.handleDone()},disabled:!this.response})))))}if(this.mode==="identity"){console.log("ur",this.updatedRecipient);return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return e.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity"),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:g}),n("div",{class:"help-details"},n("div",{class:"help-title"},"Identity verification is required"),n("div",{class:"help-text"},"NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly."))),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-first"},"Your Name:",n("span",{class:"required"},"*")),n("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.first_name,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{first_name:i.target.value})}}),n("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(t=this.updatedRecipient)===null||t===void 0?void 0:t.last_name,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{last_name:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-address"},"Address:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(r=this.updatedRecipient)===null||r===void 0?void 0:r.address,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{address:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-city"},"City:"),n("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.city,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{city:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-state"},"State:"),n("input",{type:"text",id:"verdocs-kba-state",name:"verdocs-kba-state",placeholder:"State...",value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{state:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(d=this.updatedRecipient)===null||d===void 0?void 0:d.zip,onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{zip:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:this.dobContainerId},"Date of Birth:",n("span",{class:"required"},"*")),n("input",{type:"text",value:((c=this.updatedRecipient)===null||c===void 0?void 0:c.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:function(i){return e.updatedRecipient=__assign(__assign({},e.updatedRecipient),{dob:i.target.value})}})),n("div",{class:"buttons"},n("verdocs-button",{label:"Submit",onClick:function(){return e.handleConfirmID()},disabled:!((u=this.updatedRecipient)===null||u===void 0?void 0:u.first_name)||!((h=this.updatedRecipient)===null||h===void 0?void 0:h.last_name)||!((f=this.updatedRecipient)===null||f===void 0?void 0:f.address)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.zip)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.dob)})))))}return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return e.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(o,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:g}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"input"},n("label",{htmlFor:"verdocs-kba-input"},this.label),n("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:function(i){return e.response=i.target.value}})),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return e.handleCancel()}}),n("verdocs-button",{label:"Submit",onClick:function(){return e.handleDone()},disabled:!this.response})))))};return e}());m.style=b;var w='@-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-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';var k=w;var y=e("verdocs_view",function(){function e(e){i(this,e);this.sdkError=t(this,"sdkError",7);this.envelopeUpdated=t(this,"envelopeUpdated",7);this.another=t(this,"another",7);this.view=t(this,"view",7);this.next=t(this,"next",7);this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t,n,o;return __generator(this,(function(s){switch(s.label){case 0:if(!this.endpoint){this.endpoint=l.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error("[VIEW] Missing required envelopeId");return[2]}this.listenToEnvelope();if(!!this.envelope)return[3,4];s.label=1;case 1:s.trys.push([1,3,,4]);console.log("[VIEW] Loading envelope...");n=this;return[4,a(this.endpoint,this.envelopeId)];case 2:n.envelope=s.sent();console.log("[VIEW] Loaded envelope",this.envelope);return[3,4];case 3:o=s.sent();this.showLoadError=true;(e=this.sdkError)===null||e===void 0?void 0:e.emit(new p(o.message,(i=o.response)===null||i===void 0?void 0:i.status,(t=o.response)===null||t===void 0?void 0:t.data));return[3,4];case 4:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var i=document.getElementById("verdocs-view-header");if(e&&i){console.log("[VIEW] Moving header");i.remove();e.append(i)}};e.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};e.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();v.subscribe("envelopes",this.envelopeId,(function(){return a(e.endpoint,e.envelopeId)}),true,(function(i){e.envelope=i;e.loading=false}));return[2]}))}))};e.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){v.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};e.prototype.handlePageRendered=function(e){};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var i,t,n,o,s,r,s;var l=this;return __generator(this,(function(u){switch(u.label){case 0:n=e.detail.id;switch(n){case"cancel":return[3,1];case"print":return[3,2];case"download-attachments":return[3,3];case"download-certificate":return[3,6];case"download-all":return[3,9]}return[3,10];case 1:if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;c(this.endpoint,this.envelopeId).then((function(e){l.canceling=false;console.log("[VIEW] Envelope canceled",e);return a(l.endpoint,l.envelopeId)})).then((function(e){console.log("[VIEW] Loaded new envelope details",e);l.envelope=e})).catch((function(e){var i,t,n;l.canceling=false;console.log("[VIEW] Error canceling envelope",e);(i=l.sdkError)===null||i===void 0?void 0:i.emit(new p(e.message,(t=e.response)===null||t===void 0?void 0:t.status,(n=e.response)===null||n===void 0?void 0:n.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}return[3,10];case 2:window.print();(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,10];case 3:o=this.envelope.documents.find((function(e){return e.type==="attachment"}));if(!o)return[3,5];return[4,d(this.endpoint,this.envelopeId,o.id)];case 4:s=u.sent();window.open(s,"_blank");u.label=5;case 5:return[3,10];case 6:r=this.envelope.documents.find((function(e){return e.type==="certificate"}));if(!r)return[3,8];return[4,d(this.endpoint,this.envelopeId,r.id)];case 7:s=u.sent();window.open(s,"_blank");u.label=8;case 8:return[3,10];case 9:f(this.endpoint,[this.envelope]).then((function(){var e;(e=l.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:l.endpoint,envelope:l.envelope,event:"downloaded"})})).catch((function(e){console.log("Error downloading Zip",e)}));return[3,10];case 10:return[2]}}))}))};e.prototype.render=function(){var e=this;var i;if(this.loading){return n(s,null,n("verdocs-loader",null))}if(this.showLoadError){return n(s,null,n("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:"Sorry, that envelope is not valid.",buttonLabel:"OK",onNext:function(){e.showLoadError=false}}))}if(!this.envelope){return n(s,null,n("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"}))}var t=[{id:"print",label:"Print"}];if(u(this.endpoint.profile,this.envelope)){t.push({id:"cancel",label:"Cancel"})}var r=this.envelope.documents.length>0;var l=this.envelope.documents.filter((function(e){return e.type==="attachment"})).length;var a=this.envelope.documents.find((function(e){return e.type==="certificate"}))!==undefined;if(r||a){t.push({label:""});if(r){t.push({id:"download-attachments",label:l>1?"Download Documents":"Download Document"})}if(a){t.push({id:"download-certificate",label:"Download Certificate"})}if(r&&a){t.push({id:"download-all",label:"Download All Files"})}}return n(s,null,n("div",{id:"verdocs-view-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:t,onOptionSelected:function(i){return e.handleOptionSelected(i)}}))),n("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((i=this.envelope)===null||i===void 0?void 0:i.documents)||[]).filter((function(e){return e.type!=="certificate"})).map((function(i){var t=h(1,i.pages);return n(o,null,t.map((function(t){var o;var s=((o=i.page_sizes)===null||o===void 0?void 0:o[t])||{width:612,height:792};return n("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:i.id,endpoint:e.endpoint,type:"filled",virtualWidth:s.width,virtualHeight:s.height,pageNumber:t,onPageRendered:function(i){return e.handlePageRendered(i)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&n("verdocs-ok-dialog",{heading:"Cancelled",message:"This envelope has been cancelled successfully.",onNext:function(){e.showCancelDone=false}}),this.canceling&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))};Object.defineProperty(e.prototype,"component",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());y.style=k}}}));
2
- //# sourceMappingURL=p-1f8bd27c.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["verdocsKbaDialogCss","VerdocsKbaDialogStyle0","QuestionIcon","VerdocsKbaDialog","exports","class_1","hostRef","this","step","steps","helptitle","helptext","mode","label","placeholder","recipient","choices","response","updatedRecipient","dobContainerId","concat","Math","random","toString","substring","prototype","componentWillLoad","__assign","componentDidLoad","handleCancel","exit","emit","handleDismiss","e","target","class","preventDefault","handleDone","next","handleConfirmID","render","_this","h","Host","onClick","Fragment","innerHTML","map","choice","console","log","variant","disabled","htmlFor","required","type","id","name","value","_a","first_name","onInput","_b","last_name","_c","address","_d","city","_e","state","_f","zip","_g","dob","_h","_j","_k","_l","_m","verdocsViewCss","VerdocsViewStyle0","VerdocsView","class_2","envelopeListenerId","endpoint","envelopeId","headerTargetId","canceling","showCancelDone","showLoadError","loading","envelope","VerdocsEndpoint","getDefault","loadSession","error","listenToEnvelope","_o","getEnvelope","_p","sent","sdkError","SDKError","e_1","message","status","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","disconnectedCallback","unlistenToEnvelope","Store","subscribe","store","delListener","handlePageRendered","handleOptionSelected","detail","confirm","cancelEnvelope","then","r","env","catch","envelopeUpdated","event","window","print","firstDoc","documents","find","doc","getDocumentDownloadLink","url","open","firstCert","saveEnvelopesAsZip","heading","buttonLabel","onNext","src","style","width","height","boxShadow","marginTop","alt","menuOptions","userCanCancelEnvelope","profile","push","hasAttachments","length","normalDocCount","filter","hasCertificate","undefined","flex","marginLeft","options","onOptionSelected","paddingTop","envelopeDocument","pageNumbers","integerSequence","pages","pageNumber","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.scss?tag=verdocs-kba-dialog","src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.tsx","src/components/embeds/verdocs-view/verdocs-view.scss?tag=verdocs-view","src/components/embeds/verdocs-view/verdocs-view.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-kba-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n div {\n box-sizing: border-box;\n }\n\n .background-overlay {\n position: fixed;\n z-index: 10000;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #0000007f;\n }\n\n .dialog {\n width: 440px;\n display: flex;\n flex-direction: column;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n padding: 16px;\n gap: 10px;\n box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);\n }\n\n .heading {\n display: flex;\n flex-direction: row;\n font-size: 20px;\n font-weight: 500;\n }\n\n .step {\n margin-left: 6px;\n color: #666;\n }\n\n .help-box {\n background-color: $border-color;\n display: flex;\n flex-direction: row;\n padding: 14px;\n align-items: center;\n color: white;\n }\n\n .help-details {\n display: flex;\n flex-direction: column;\n margin-left: 15px;\n font-size: 14px;\n }\n\n .help-icon {\n width: 40px;\n height: 40px;\n }\n\n .help-title {\n font-weight: 600;\n margin-bottom: 4px;\n }\n\n .help-text {\n font-weight: 400;\n }\n\n .input {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n margin: 16px 0 32px;\n\n label {\n flex: 0;\n line-height: 10px;\n font-weight: 500;\n white-space: nowrap;\n }\n\n input {\n flex: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .field {\n gap: 10px;\n margin: 0;\n display: flex;\n align-items: center;\n flex-direction: row;\n max-width: 100%;\n\n .required {\n color: red;\n position: relative;\n top: -0.5em;\n font-size: 80%;\n }\n\n label {\n flex: 0 0 120px;\n font-weight: 500;\n line-height: 10px;\n text-align: right;\n white-space: nowrap;\n }\n\n verdocs-date-input {\n width: 40%;\n flex-grow: 1;\n\n input {\n width: 100%;\n box-sizing: border-box;\n }\n }\n\n input {\n width: 40%;\n flex-grow: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .choices {\n display: grid;\n gap: 15px;\n grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));\n margin: 0 0 15px 0;\n }\n\n .choice {\n border: 1px solid $border-color;\n border-radius: 5px;\n display: flex;\n height: 60px;\n font-size: 14px;\n padding: 0 5px;\n justify-content: center;\n align-items: center;\n text-align: center;\n color: $choice-available-color;\n cursor: pointer;\n\n &.selected {\n background-color: $border-color;\n color: $verdocs-grey-4;\n }\n }\n\n .buttons {\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: flex-end;\n\n verdocs-button {\n margin-left: 16px;\n }\n }\n}\n","import {Component, Prop, h, Event, EventEmitter, Fragment, Host, State} from '@stencil/core';\nimport {IRecipient} from '@verdocs/js-sdk';\n// import AirDatepicker from 'air-datepicker';\n// import localeEn from 'air-datepicker/locale/en';\n\nconst 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>`;\n\n/**\n * Prompt the user to confirm their identity with a PIN or a series of questions.\n */\n@Component({\n tag: 'verdocs-kba-dialog',\n styleUrl: 'verdocs-kba-dialog.scss',\n})\nexport class VerdocsKbaDialog {\n // private picker: AirDatepicker<HTMLElement> | null = null;\n\n /**\n * Which step this confirmation is for, in a multi-step process. Ignored if `steps` is < 2.\n */\n @Prop() step: number = 1;\n\n /**\n * How many steps exist in a multi-step process. Set to 1 for a single-step process (hides the indicator).\n */\n @Prop() steps: number = 3;\n\n /**\n * If set, a help/instructions box will be displayed with this title\n */\n @Prop() helptitle: string = 'Previous Addresses';\n\n /**\n * If set, a help/instructions box will be displayed with this text\n */\n @Prop() helptext: string = 'Please select the address below that you have most recently lived at.';\n\n /**\n * The type of dialog to display. Three modes are supported.\n */\n @Prop() mode: 'text' | 'choice' | 'identity' = 'choice';\n\n /**\n * For text input challenges, the label to display next to the input field.\n */\n @Prop() label: string = 'PIN';\n\n /**\n * For text input challenges, the placeholder to display inside the input field.\n */\n @Prop() placeholder: string = 'Enter your PIN...';\n\n /**\n * For identity confirmation, the current recipient details.\n */\n @Prop() recipient: IRecipient | null = null;\n\n /**\n * For choice challenges, a set of choices to choose from. 6 choices is recommended to fit most screen sizes.\n */\n @Prop() choices: string[] = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) pinEntered: EventEmitter<string | IRecipient>;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) next: EventEmitter<string | IRecipient | string[]>;\n\n @State() response = '';\n @State() updatedRecipient: IRecipient = null;\n @State() dobContainerId = `verdocs-date-input-${Math.random().toString(36).substring(2, 11)}`;\n\n componentWillLoad() {\n this.updatedRecipient = {...(this.recipient || {})} as IRecipient;\n }\n\n componentDidLoad() {\n // this.picker = new AirDatepicker<HTMLElement>(`#${this.dobContainerId}`, {\n // locale: localeEn,\n // isMobile: true,\n // autoClose: true,\n // onSelect: ({date, formattedDate}) => {\n // console.log('onselect', date, formattedDate);\n // // const event = new CustomEvent('input', {detail: {date, formattedDate}});\n // // this.hostEl.dispatchEvent(event);\n // },\n // });\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n if (e.target.class === 'background-overlay') {\n e.preventDefault();\n this.handleCancel();\n }\n }\n\n handleDone() {\n this.next.emit(this.response);\n this.response = '';\n }\n\n handleConfirmID() {\n this.next.emit(this.updatedRecipient);\n }\n\n render() {\n if (this.mode === 'choice') {\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"choices\">\n {this.choices.map(choice => (\n <div\n class={`choice ${choice === this.response ? 'selected' : ''}`}\n onClick={() => {\n console.log('Selected', choice);\n this.response = choice;\n }}\n >\n {choice}\n </div>\n ))}\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label={this.step < this.steps ? 'Next' : 'Submit'} onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.mode === 'identity') {\n console.log('ur', this.updatedRecipient);\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">Confirm Your Identity</div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">Identity verification is required</div>\n <div class=\"help-text\">NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly.</div>\n </div>\n </div>\n )}\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-first\">\n Your Name:<span class=\"required\">*</span>\n </label>\n <input\n required\n type=\"text\"\n id=\"verdocs-kba-first\"\n name=\"verdocs-kba-first\"\n placeholder=\"First name...\"\n value={this.updatedRecipient?.first_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, first_name: e.target.value})}\n />\n\n <input\n type=\"text\"\n id=\"verdocs-kba-last\"\n name=\"verdocs-kba-last\"\n placeholder=\"Last name...\"\n required\n value={this.updatedRecipient?.last_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, last_name: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-address\">\n Address:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-address\"\n name=\"verdocs-kba-address\"\n placeholder=\"Address...\"\n value={this.updatedRecipient?.address}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, address: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-city\">City:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-city\"\n name=\"verdocs-kba-city\"\n placeholder=\"City...\"\n value={this.updatedRecipient?.city}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, city: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-state\">State:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-state\"\n name=\"verdocs-kba-state\"\n placeholder=\"State...\"\n value={this.updatedRecipient?.state}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, state: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-zip\">\n Zip Code:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-zip\"\n name=\"verdocs-kba-zip\"\n placeholder=\"Zip Code...\"\n required\n value={this.updatedRecipient?.zip}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, zip: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n {/* TODO: Also allow typed entry */}\n <label htmlFor={this.dobContainerId}>\n Date of Birth:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n value={this.updatedRecipient?.dob || ''}\n id={this.dobContainerId}\n placeholder=\"DOB...\"\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, dob: e.target.value})}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button\n label=\"Submit\"\n onClick={() => this.handleConfirmID()}\n disabled={\n !this.updatedRecipient?.first_name ||\n !this.updatedRecipient?.last_name ||\n !this.updatedRecipient?.address ||\n !this.updatedRecipient?.zip ||\n !this.updatedRecipient?.dob\n }\n />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Please Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"input\">\n <label htmlFor=\"verdocs-kba-input\">{this.label}</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-input\"\n name=\"verdocs-kba-input\"\n placeholder={this.placeholder}\n value={this.response}\n onInput={(e: any) => (this.response = e.target.value)}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label=\"Submit\" onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-view {\n display: flex;\n overflow: hidden;\n min-height: 600px;\n position: relative;\n align-items: center;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div,\n canvas {\n box-sizing: border-box;\n }\n\n .document {\n flex: 1;\n width: 100%;\n height: 100%;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n min-height: 200px;\n max-width: 1200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n}\n\n// Styled separately because the header is often re-parented\n#verdocs-view-header {\n width: 100%;\n color: #fff;\n display: flex;\n z-index: 1000;\n flex: 0 0 56px;\n padding: 0 20px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 20px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n","import {cancelEnvelope, getDocumentDownloadLink, getEnvelope, IEnvelope, integerSequence, userCanCancelEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Element, Event, Host, Prop, EventEmitter, Fragment, State} from '@stencil/core';\nimport {saveEnvelopesAsZip} from '../../../utils/utils';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Render the documents attached to an envelope in read-only (view) mode. All documents are\n * displayed in order.\n *\n * ```ts\n * <verdocs-view\n * envelopeId={envelopeId}\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-view',\n styleUrl: 'verdocs-view.scss',\n shadow: false,\n})\nexport class VerdocsView {\n private envelopeListenerId = null;\n\n @Element() component: HTMLElement;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint | null = null;\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\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 /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) another: EventEmitter;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) view: EventEmitter;\n\n /**\n * Event fired when the user clicks Done to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) next: EventEmitter;\n @State() canceling = false;\n @State() showCancelDone = false;\n @State() showLoadError = false;\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n if (!this.endpoint) {\n this.endpoint = VerdocsEndpoint.getDefault();\n this.endpoint.loadSession();\n }\n\n if (!this.envelopeId) {\n console.error(`[VIEW] Missing required envelopeId`);\n return;\n }\n\n this.listenToEnvelope();\n if (!this.envelope) {\n try {\n console.log('[VIEW] Loading envelope...');\n this.envelope = await getEnvelope(this.endpoint, this.envelopeId);\n console.log('[VIEW] Loaded envelope', this.envelope);\n } catch (e) {\n this.showLoadError = true;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-view-header');\n if (headerTarget && headerEl) {\n console.log('[VIEW] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[SIDEBAR] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n true,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n handlePageRendered(_e: any) {\n // const pageInfo = e.detail as IDocumentPageInfo;\n // console.log('[VIEW] Page rendered', pageInfo);\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'cancel':\n // TODO: Better option for inline-flow confirmation and alert dialogs.\n if (confirm('Are you sure you wish to cancel this envelope? This action cannot be undone.')) {\n this.canceling = true;\n cancelEnvelope(this.endpoint, this.envelopeId)\n .then(r => {\n this.canceling = false;\n console.log('[VIEW] Envelope canceled', r);\n return getEnvelope(this.endpoint, this.envelopeId);\n })\n .then(env => {\n console.log('[VIEW] Loaded new envelope details', env);\n this.envelope = env;\n })\n .catch(e => {\n this.canceling = false;\n console.log('[VIEW] Error canceling envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n this.showCancelDone = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'canceled'});\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download-attachments':\n // TODO: Multiple document support\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstDoc.id);\n window.open(url, '_blank');\n }\n }\n break;\n\n case 'download-certificate':\n // TODO: Multiple certificate support\n {\n const firstCert = this.envelope.documents.find(doc => doc.type === 'certificate');\n if (firstCert) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstCert.id);\n window.open(url, '_blank');\n }\n }\n // saveCertificate(this.endpoint, this.envelope, this.envelope.certificate_document_id)\n // .then(() => {\n // this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n // })\n // .catch(e => {\n // console.log('Error downloading PDF', e);\n // });\n break;\n\n case 'download-all':\n saveEnvelopesAsZip(this.endpoint, [this.envelope])\n .then(() => {\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n })\n .catch(e => {\n console.log('Error downloading Zip', e);\n });\n break;\n }\n }\n\n render() {\n if (this.loading) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to View Envelope\"\n message={`Sorry, that envelope is not valid.`}\n buttonLabel=\"OK\"\n onNext={() => {\n this.showLoadError = false;\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </Host>\n );\n }\n\n const menuOptions: any[] = [{id: 'print', label: 'Print'}];\n\n if (userCanCancelEnvelope(this.endpoint.profile, this.envelope)) {\n menuOptions.push({id: 'cancel', label: 'Cancel'});\n }\n\n // Add download options to the menu\n const hasAttachments = this.envelope.documents.length > 0;\n const normalDocCount = this.envelope.documents.filter(doc => doc.type === 'attachment').length;\n const hasCertificate = this.envelope.documents.find(doc => doc.type === 'certificate') !== undefined;\n if (hasAttachments || hasCertificate) {\n menuOptions.push({label: ''});\n if (hasAttachments) {\n menuOptions.push({id: 'download-attachments', label: normalDocCount > 1 ? 'Download Documents' : 'Download Document'});\n }\n if (hasCertificate) {\n menuOptions.push({id: 'download-certificate', label: 'Download Certificate'});\n }\n if (hasAttachments && hasCertificate) {\n menuOptions.push({id: 'download-all', label: 'Download All Files'});\n }\n }\n\n return (\n <Host>\n <div id=\"verdocs-view-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={menuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: this.headerTargetId ? '70px' : '15px'}}>\n {(this.envelope?.documents || [])\n .filter(document => document.type !== 'certificate')\n .map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n type=\"filled\"\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n {this.showCancelDone && (\n <verdocs-ok-dialog\n heading=\"Cancelled\"\n message={`This envelope has been cancelled successfully.`}\n onNext={() => {\n this.showCancelDone = false;\n }}\n />\n )}\n {this.canceling && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n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KwG,MAAO,CAACiB,WAAY,UACzBzH,EAAA,oBAAkB0H,QAASZ,EAAaa,iBAAkB,SAAApI,GAAK,OAAAQ,EAAKgF,qBAAqBxF,EAA1B,MAInES,EAAA,OAAKP,MAAM,WAAW+G,MAAO,CAACoB,WAAY/J,KAAK+E,eAAiB,OAAS,YACrE3B,EAAApD,KAAKoF,YAAQ,MAAAhC,SAAA,SAAAA,EAAE2E,YAAa,IAC3ByB,QAAO,SAAAlD,GAAY,OAAAA,EAAStD,OAAS,aAAlB,IACnBR,KAAI,SAAAwH,GACH,IAAMC,EAAcC,EAAgB,EAAGF,EAAiBG,OAExD,OACEhI,EAACG,EAAQ,KACN2H,EAAYzH,KAAI,SAAA4H,G,MACf,IAAMC,IAAWjH,EAAA4G,EAAiBM,cAAU,MAAAlH,SAAA,SAAAA,EAAGgH,KAAe,CAACxB,MAAO,IAAKC,OAAQ,KAEnF,OACE1G,EAAA,kCACE2C,WAAY5C,EAAK4C,WACjByF,WAAYP,EAAiB/G,GAC7B4B,SAAU3C,EAAK2C,SACf7B,KAAK,SACLwH,aAAcH,EAASzB,MACvB6B,cAAeJ,EAASxB,OACxBuB,WAAYA,EACZM,eAAgB,SAAAhJ,GAAK,OAAAQ,EAAK+E,mBAAmBvF,EAAxB,EACrBiJ,OAAQ,CACN,CAACzH,KAAM,OAAQF,KAAM,UACrB,CAACE,KAAM,WAAYF,KAAM,S,SAS1ChD,KAAKiF,gBACJ9C,EAAA,qBACEoG,QAAQ,YACRtC,QAAS,iDACTwC,OAAQ,WACNvG,EAAK+C,eAAiB,K,IAI3BjF,KAAKgF,WACJ7C,EAAA,OAAKP,MAAM,qBACTO,EAAA,wB,8HAxTY,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?r(e.value):i(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(r=0)),r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i={},s("next"),s("throw"),s("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function s(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||u(e,t)}))};if(t)i[e]=t(i[e])}}function u(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){u("next",e)}function l(e){u("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)u(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};System.register(["./p-60387e15.system.js","@verdocs/js-sdk","./p-f29eb00a.system.js","./p-21b1acec.system.js","./p-d738b5db.system.js","./p-2c5350ec.system.js"],(function(e){"use strict";var t,r,n,i,o,a,s,u,c,f,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;i=e.F;o=e.H},function(e){a=e.VerdocsEndpoint;s=e.formatFullName;u=e.getActiveEntitlements;c=e.isValidEmail;f=e.randomString},function(e){l=e.h},function(){},function(){},function(){}],execute:function(){var d=this;function v(e,t){return function r(){return e.apply(t,arguments)}}var h=Object.prototype.toString;var p=Object.getPrototypeOf;var b=function(e){return function(t){var r=h.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));var m=function(e){e=e.toLowerCase();return function(t){return b(t)===e}};var w=function(e){return function(t){return typeof t===e}};var g=Array.isArray;var y=w("undefined");function x(e){return e!==null&&!y(e)&&e.constructor!==null&&!y(e.constructor)&&O(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var k=m("ArrayBuffer");function _(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&k(e.buffer)}return t}var R=w("string");var O=w("function");var S=w("number");var E=function(e){return e!==null&&typeof e==="object"};var T=function(e){return e===true||e===false};var A=function(e){if(b(e)!=="object"){return false}var t=p(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};var j=m("Date");var C=m("File");var N=m("Blob");var P=m("FileList");var F=function(e){return E(e)&&O(e.pipe)};var U=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||O(e.append)&&((t=b(e))==="formdata"||t==="object"&&O(e.toString)&&e.toString()==="[object FormData]"))};var B=m("URLSearchParams");var I=["ReadableStream","Request","Response","Headers"].map(m),z=I[0],D=I[1],L=I[2],q=I[3];var M=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function H(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var s;if(typeof e!=="object"){e=[e]}if(g(e)){for(a=0,s=e.length;a<s;a++){t.call(null,e[a],a,e)}}else{var u=o?Object.getOwnPropertyNames(e):Object.keys(e);var c=u.length;var f=void 0;for(a=0;a<c;a++){f=u[a];t.call(null,e[f],f,e)}}}function K(e,t){t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var V=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global}();var J=function(e){return!y(e)&&e!==V};function G(){var e=(J(this)&&this||{}).caseless;var t={};var r=function(r,n){var i=e&&K(t,n)||n;if(A(t[i])&&A(r)){t[i]=G(t[i],r)}else if(A(r)){t[i]=G({},r)}else if(g(r)){t[i]=r.slice()}else{t[i]=r}};for(var n=0,i=arguments.length;n<i;n++){arguments[n]&&H(arguments[n],r)}return t}var W=function(e,t,r,n){var i=n===void 0?{}:n,o=i.allOwnKeys;H(t,(function(t,n){if(r&&O(t)){e[n]=v(t,r)}else{e[n]=t}}),{allOwnKeys:o});return e};var X=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var $=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var Z=function(e,t,r,n){var i;var o;var a;var s={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);o=i.length;while(o-- >0){a=i[o];if((!n||n(a,e,t))&&!s[a]){t[a]=e[a];s[a]=true}}e=r!==false&&p(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var Q=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var Y=function(e){if(!e)return null;if(g(e))return e;var t=e.length;if(!S(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var ee=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&p(Uint8Array));var te=function(e,t){var r=e&&e[Symbol.iterator];var n=r.call(e);var i;while((i=n.next())&&!i.done){var o=i.value;t.call(e,o[0],o[1])}};var re=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var ne=m("HTMLFormElement");var ie=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var oe=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var ae=m("RegExp");var se=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};H(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var ue=function(e){se(e,(function(t,r){if(O(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!O(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ce=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};g(e)?n(e):n(String(e).split(t));return r};var fe=function(){};var le=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function de(e){return!!(e&&O(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var ve=function(e){var t=new Array(10);var r=function(e,n){if(E(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[n]=e;var i=g(e)?[]:{};H(e,(function(e,t){var o=r(e,n+1);!y(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var he=m("AsyncFunction");var pe=function(e){return e&&(E(e)||O(e))&&O(e.then)&&O(e.catch)};var be=function(e,t){if(e){return setImmediate}return t?function(e,t){V.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===V&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);V.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",O(V.postMessage));var me=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(V):typeof process!=="undefined"&&process.nextTick||be;var we={isArray:g,isArrayBuffer:k,isBuffer:x,isFormData:U,isArrayBufferView:_,isString:R,isNumber:S,isBoolean:T,isObject:E,isPlainObject:A,isReadableStream:z,isRequest:D,isResponse:L,isHeaders:q,isUndefined:y,isDate:j,isFile:C,isBlob:N,isRegExp:ae,isFunction:O,isStream:F,isURLSearchParams:B,isTypedArray:ee,isFileList:P,forEach:H,merge:G,extend:W,trim:M,stripBOM:X,inherits:$,toFlatObject:Z,kindOf:b,kindOfTest:m,endsWith:Q,toArray:Y,forEachEntry:te,matchAll:re,isHTMLForm:ne,hasOwnProperty:oe,hasOwnProp:oe,reduceDescriptors:se,freezeMethods:ue,toObjectSet:ce,toCamelCase:ie,noop:fe,toFiniteNumber:le,findKey:K,global:V,isContextDefined:J,isSpecCompliantForm:de,toJSONObject:ve,isAsyncFn:he,isThenable:pe,setImmediate:be,asap:me};function ge(e,t,r,n,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);if(i){this.response=i;this.status=i.status?i.status:null}}we.inherits(ge,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:we.toJSONObject(this.config),code:this.code,status:this.status}}});var ye=ge.prototype;var xe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){xe[e]={value:e}}));Object.defineProperties(ge,xe);Object.defineProperty(ye,"isAxiosError",{value:true});ge.from=function(e,t,r,n,i,o){var a=Object.create(ye);we.toFlatObject(e,a,(function e(t){return t!==Error.prototype}),(function(e){return e!=="isAxiosError"}));ge.call(a,e.message,t,r,n,i);a.cause=e;a.name=e.name;o&&Object.assign(a,o);return a};var ke=null;function _e(e){return we.isPlainObject(e)||we.isArray(e)}function Re(e){return we.endsWith(e,"[]")?e.slice(0,-2):e}function Oe(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=Re(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function Se(e){return we.isArray(e)&&!e.some(_e)}var Ee=we.toFlatObject(we,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Te(e,t,r){if(!we.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=we.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!we.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var s=r.Blob||typeof Blob!=="undefined"&&Blob;var u=s&&we.isSpecCompliantForm(t);if(!we.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(we.isDate(e)){return e.toISOString()}if(!u&&we.isBlob(e)){throw new ge("Blob is not supported. Use a Buffer instead.")}if(we.isArrayBuffer(e)||we.isTypedArray(e)){return u&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var s=e;if(e&&!i&&typeof e==="object"){if(we.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(we.isArray(e)&&Se(e)||(we.isFileList(e)||we.endsWith(r,"[]"))&&(s=we.toArray(e))){r=Re(r);s.forEach((function e(n,i){!(we.isUndefined(n)||n===null)&&t.append(a===true?Oe([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(_e(e)){return true}t.append(Oe(i,r,o),c(e));return false}var l=[];var d=Object.assign(Ee,{defaultVisitor:f,convertValue:c,isVisitable:_e});function v(e,r){if(we.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);we.forEach(e,(function e(n,o){var a=!(we.isUndefined(n)||n===null)&&i.call(t,n,we.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!we.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function Ae(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function je(e,t){this._pairs=[];e&&Te(e,this,t)}var Ce=je.prototype;Ce.append=function e(t,r){this._pairs.push([t,r])};Ce.toString=function e(t){var r=t?function(e){return t.call(this,e,Ae)}:Ae;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function Ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pe(e,t,r){if(!t){return e}var n=r&&r.encode||Ne;if(we.isFunction(r)){r={serialize:r}}var i=r&&r.serialize;var o;if(i){o=i(t,r)}else{o=we.isURLSearchParams(t)?t.toString():new je(t,r).toString(n)}if(o){var a=e.indexOf("#");if(a!==-1){e=e.slice(0,a)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Fe=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){we.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Ue=Fe;var Be={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ie=typeof URLSearchParams!=="undefined"?URLSearchParams:je;var ze=typeof FormData!=="undefined"?FormData:null;var De=typeof Blob!=="undefined"?Blob:null;var Le={isBrowser:true,classes:{URLSearchParams:Ie,FormData:ze,Blob:De},protocols:["http","https","file","blob","url","data"]};var qe=typeof window!=="undefined"&&typeof document!=="undefined";var Me=typeof navigator==="object"&&navigator||undefined;var He=qe&&(!Me||["ReactNative","NativeScript","NS"].indexOf(Me.product)<0);var Ke=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Ve=qe&&window.location.href||"http://localhost";var Je=Object.freeze({__proto__:null,hasBrowserEnv:qe,hasStandardBrowserWebWorkerEnv:Ke,hasStandardBrowserEnv:He,navigator:Me,origin:Ve});var Ge=__assign(__assign({},Je),Le);function We(e,t){return Te(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){if(Ge.isNode&&we.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Xe(e){return we.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function $e(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function Ze(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var s=i>=e.length;o=!o&&we.isArray(n)?n.length:o;if(s){if(we.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!we.isObject(n[o])){n[o]=[]}var u=t(e,r,n[o],i);if(u&&we.isArray(n[o])){n[o]=$e(n[o])}return!a}if(we.isFormData(e)&&we.isFunction(e.entries)){var r={};we.forEachEntry(e,(function(e,n){t(Xe(e),n,r,0)}));return r}return null}function Qe(e,t,r){if(we.isString(e)){try{(t||JSON.parse)(e);return we.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var Ye={transitional:Be,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=we.isObject(t);if(o&&we.isHTMLForm(t)){t=new FormData(t)}var a=we.isFormData(t);if(a){return i?JSON.stringify(Ze(t)):t}if(we.isArrayBuffer(t)||we.isBuffer(t)||we.isStream(t)||we.isFile(t)||we.isBlob(t)||we.isReadableStream(t)){return t}if(we.isArrayBufferView(t)){return t.buffer}if(we.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return We(t,this.formSerializer).toString()}if((s=we.isFileList(t))||n.indexOf("multipart/form-data")>-1){var u=this.env&&this.env.FormData;return Te(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return Qe(t)}return t}],transformResponse:[function e(t){var r=this.transitional||Ye.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(we.isResponse(t)||we.isReadableStream(t)){return t}if(t&&we.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t)}catch(e){if(a){if(e.name==="SyntaxError"){throw ge.from(e,ge.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};we.forEach(["delete","get","head","post","put","patch"],(function(e){Ye.headers[e]={}}));var et=Ye;var tt=we.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var rt=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&tt[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var nt=Symbol("internals");function it(e){return e&&String(e).trim().toLowerCase()}function ot(e){if(e===false||e==null){return e}return we.isArray(e)?e.map(ot):String(e)}function at(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var st=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function ut(e,t,r,n,i){if(we.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!we.isString(t))return;if(we.isString(n)){return t.indexOf(n)!==-1}if(we.isRegExp(n)){return n.test(t)}}function ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function ft(e,t){var r=we.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var lt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=it(t);if(!i){throw new Error("header name must be a non-empty string")}var o=we.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=ot(e)}}var o=function(e,t){return we.forEach(e,(function(e,r){return i(e,r,t)}))};if(we.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(we.isString(e)&&(e=e.trim())&&!st(e)){o(rt(e),t)}else if(we.isHeaders(e)){for(var a=0,s=e.entries();a<s.length;a++){var u=s[a],c=u[0],f=u[1];i(f,c,r)}}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=it(e);if(e){var r=we.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return at(n)}if(we.isFunction(t)){return t.call(this,n,r)}if(we.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=it(e);if(e){var r=we.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||ut(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=it(e);if(e){var i=we.findKey(r,e);if(i&&(!t||ut(r,r[i],i,t))){delete r[i];n=true}}}if(we.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||ut(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};we.forEach(this,(function(n,i){var o=we.findKey(r,i);if(o){t[o]=ot(n);delete t[i];return}var a=e?ct(i):String(i).trim();if(a!==i){delete t[i]}t[a]=ot(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);we.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&we.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[nt]=this[nt]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=it(e);if(!r[t]){ft(n,e);r[t]=true}}we.isArray(e)?e.forEach(i):i(e);return this};return e}();lt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);we.reduceDescriptors(lt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));we.freezeMethods(lt);var dt=lt;function vt(e,t){var r=this||et;var n=t||r;var i=dt.from(n.headers);var o=n.data;we.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function ht(e){return!!(e&&e.__CANCEL__)}function pt(e,t,r){ge.call(this,e==null?"canceled":e,ge.ERR_CANCELED,t,r);this.name="CanceledError"}we.inherits(pt,ge,{__CANCEL__:true});function bt(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new ge("Request failed with status code "+r.status,[ge.ERR_BAD_REQUEST,ge.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function mt(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wt(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function s(u){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=u;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function gt(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(null,t)};var s=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=Date.now();var u=s-r;if(u>=n){a(e,s)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-u)}}};var u=function(){return i&&a(i)};return[s,u]}var yt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=wt(50,250);return gt((function(r){var o;var a=r.loaded;var s=r.lengthComputable?r.total:undefined;var u=a-n;var c=i(u);var f=a<=s;n=a;var l=(o={loaded:a,total:s,progress:s?a/s:undefined,bytes:u,rate:c?c:undefined,estimated:c&&s&&f?(s-a)/c:undefined,event:r,lengthComputable:s!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var xt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var kt=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return we.asap((function(){return e.apply(void 0,t)}))}};var _t=Ge.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,Ge.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):function(){return true};var Rt=Ge.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o){var a=[e+"="+encodeURIComponent(t)];we.isNumber(r)&&a.push("expires="+new Date(r).toGMTString());we.isString(n)&&a.push("path="+n);we.isString(i)&&a.push("domain="+i);o===true&&a.push("secure");document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ot(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function St(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Et(e,t,r){var n=!Ot(t);if(e&&n||r==false){return St(e,t)}return t}var Tt=function(e){return e instanceof dt?__assign({},e):e};function At(e,t){t=t||{};var r={};function n(e,t,r,n){if(we.isPlainObject(e)&&we.isPlainObject(t)){return we.merge.call({caseless:n},e,t)}else if(we.isPlainObject(t)){return we.merge({},t)}else if(we.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!we.isUndefined(t)){return n(e,t,r,i)}else if(!we.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!we.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!we.isUndefined(t)){return n(undefined,t)}else if(!we.isUndefined(e)){return n(undefined,e)}}function s(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t,r){return i(Tt(e),Tt(t),r,true)}};we.forEach(Object.keys(Object.assign({},e,t)),(function n(o){var a=u[o]||i;var c=a(e[o],t[o],o);we.isUndefined(c)&&a!==s||(r[o]=c)}));return r}var jt=function(e){var t=At({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,s=t.auth;t.headers=a=dt.from(a);t.url=Pe(Et(t.baseURL,t.url),e.params,e.paramsSerializer);if(s){a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")))}var u;if(we.isFormData(r)){if(Ge.hasStandardBrowserEnv||Ge.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if((u=a.getContentType())!==false){var c=u?u.split(";").map((function(e){return e.trim()})).filter(Boolean):[],f=c[0],l=c.slice(1);a.setContentType(__spreadArray([f||"multipart/form-data"],l,true).join("; "))}}if(Ge.hasStandardBrowserEnv){n&&we.isFunction(n)&&(n=n(t));if(n||n!==false&&_t(t.url)){var d=i&&o&&Rt.read(o);if(d){a.set(i,d)}}}return t};var Ct=typeof XMLHttpRequest!=="undefined";var Nt=Ct&&function(e){return new Promise((function t(r,n){var i,o;var a=jt(e);var s=a.data;var u=dt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,b;function m(){p&&p();b&&b();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function g(){if(!w){return}var t=dt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};bt((function e(t){r(t);m()}),(function e(t){n(t);m()}),o);w=null}if("onloadend"in w){w.onloadend=g}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}w.onabort=function t(){if(!w){return}n(new ge("Request aborted",ge.ECONNABORTED,e,w));w=null};w.onerror=function t(){n(new ge("Network Error",ge.ERR_NETWORK,e,w));w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Be;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new ge(r,i.clarifyTimeoutError?ge.ETIMEDOUT:ge.ECONNABORTED,e,w));w=null};s===undefined&&u.setContentType(null);if("setRequestHeader"in w){we.forEach(u.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!we.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=yt(l,true),h=i[0],b=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=yt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new pt(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var y=mt(a.url);if(y&&Ge.protocols.indexOf(y)===-1){n(new ge("Unsupported protocol "+y+":",ge.ERR_BAD_REQUEST,e));return}w.send(s||null)}))};var Pt=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;s();var t=e instanceof Error?e:this.reason;n.abort(t instanceof ge?t:new pt(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new ge("timeout ".concat(t," of ms exceeded"),ge.ETIMEDOUT))}),t);var s=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var u=n.signal;u.unsubscribe=function(){return we.asap(s)};return u}};var Ft=Pt;var Ut=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(!t||r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var Bt=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var s,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(It(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),s=i.done,!s))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(Ut(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();u={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!s&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(u)throw u.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var It=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var zt=function(e,t,r,n){var i=Bt(e,t);var o=0;var a;var s=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,u,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){s();e.close();return[2]}u=a.byteLength;if(r){c=o+=u;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();s(f);throw f;case 3:return[2]}}))}))},cancel:function(e){s(e);return i.return()}},{highWaterMark:2})};var Dt=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";var Lt=Dt&&typeof ReadableStream==="function";var qt=Dt&&(typeof TextEncoder==="function"?function(e){return function(t){return e.encode(t)}}(new TextEncoder):function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:t=Uint8Array.bind;return[4,new Response(e).arrayBuffer()];case 1:return[2,new(t.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var Mt=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Ht=Lt&&Mt((function(){var e=false;var t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var Kt=64*1024;var Vt=Lt&&Mt((function(){return we.isReadableStream(new Response("").body)}));var Jt={stream:Vt&&function(e){return e.body}};Dt&&function(e){["text","arrayBuffer","blob","formData","stream"].forEach((function(t){!Jt[t]&&(Jt[t]=we.isFunction(e[t])?function(e){return e[t]()}:function(e,r){throw new ge("Response type '".concat(t,"' is not supported"),ge.ERR_NOT_SUPPORT,r)})}))}(new Response);var Gt=function(e){return __awaiter(d,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:if(e==null){return[2,0]}if(we.isBlob(e)){return[2,e.size]}if(!we.isSpecCompliantForm(e))return[3,2];t=new Request(Ge.origin,{method:"POST",body:e});return[4,t.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(we.isArrayBufferView(e)||we.isArrayBuffer(e)){return[2,e.byteLength]}if(we.isURLSearchParams(e)){e=e+""}if(!we.isString(e))return[3,4];return[4,qt(e)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var Wt=function(e,t){return __awaiter(d,void 0,void 0,(function(){var r;return __generator(this,(function(n){r=we.toFiniteNumber(e.getContentLength());return[2,r==null?Gt(t):r]}))}))};var Xt=Dt&&function(e){return __awaiter(d,void 0,void 0,(function(){var t,r,n,i,o,a,s,u,c,f,l,d,v,h,p,b,m,w,g,y,x,k,_,R,O,S,E,T,A,j,_,C,N,P;return __generator(this,(function(F){switch(F.label){case 0:t=jt(e),r=t.url,n=t.method,i=t.data,o=t.signal,a=t.cancelToken,s=t.timeout,u=t.onDownloadProgress,c=t.onUploadProgress,f=t.responseType,l=t.headers,d=t.withCredentials,v=d===void 0?"same-origin":d,h=t.fetchOptions;f=f?(f+"").toLowerCase():"text";p=Ft([o,a&&a.toAbortSignal()],s);m=p&&p.unsubscribe&&function(){p.unsubscribe()};F.label=1;case 1:F.trys.push([1,7,,8]);g=c&&Ht&&n!=="get"&&n!=="head";if(!g)return[3,3];return[4,Wt(l,i)];case 2:g=(w=F.sent())!==0;F.label=3;case 3:if(g){y=new Request(r,{method:"POST",body:i,duplex:"half"});x=void 0;if(we.isFormData(i)&&(x=y.headers.get("content-type"))){l.setContentType(x)}if(y.body){k=xt(w,yt(kt(c))),_=k[0],R=k[1];i=zt(y.body,Kt,_,R)}}if(!we.isString(v)){v=v?"include":"omit"}O="credentials"in Request.prototype;b=new Request(r,__assign(__assign({},h),{signal:p,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:i,duplex:"half",credentials:O?v:undefined}));return[4,fetch(b)];case 4:S=F.sent();E=Vt&&(f==="stream"||f==="response");if(Vt&&(u||E&&m)){T={};["status","statusText","headers"].forEach((function(e){T[e]=S[e]}));A=we.toFiniteNumber(S.headers.get("content-length"));j=u&&xt(A,yt(kt(u),true))||[],_=j[0],C=j[1];S=new Response(zt(S.body,Kt,_,(function(){C&&C();m&&m()})),T)}f=f||"text";return[4,Jt[we.findKey(Jt,f)||"text"](S,e)];case 5:N=F.sent();!E&&m&&m();return[4,new Promise((function(t,r){bt(t,r,{data:N,headers:dt.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:b})}))];case 6:return[2,F.sent()];case 7:P=F.sent();m&&m();if(P&&P.name==="TypeError"&&/fetch/i.test(P.message)){throw Object.assign(new ge("Network Error",ge.ERR_NETWORK,e,b),{cause:P.cause||P})}throw ge.from(P,P&&P.code,e,b);case 8:return[2]}}))}))};var $t={http:ke,xhr:Nt,fetch:Xt};we.forEach($t,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Zt=function(e){return"- ".concat(e)};var Qt=function(e){return we.isFunction(e)||e===null||e===false};var Yt={getAdapter:function(e){e=we.isArray(e)?e:[e];var t=e.length;var r;var n;var i={};for(var o=0;o<t;o++){r=e[o];var a=void 0;n=r;if(!Qt(r)){n=$t[(a=String(r)).toLowerCase()];if(n===undefined){throw new ge("Unknown adapter '".concat(a,"'"))}}if(n){break}i[a||"#"+o]=n}if(!n){var s=Object.entries(i).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var u=t?s.length>1?"since :\n"+s.map(Zt).join("\n"):" "+Zt(s[0]):"as no adapter specified";throw new ge("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n},adapters:$t};function er(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new pt(null,e)}}function tr(e){er(e);e.headers=dt.from(e.headers);e.data=vt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Yt.getAdapter(e.adapter||et.adapter);return t(e).then((function t(r){er(e);r.data=vt.call(e,e.transformResponse,r);r.headers=dt.from(r.headers);return r}),(function t(r){if(!ht(r)){er(e);if(r&&r.response){r.response.data=vt.call(e,e.transformResponse,r.response);r.response.headers=dt.from(r.response.headers)}}return Promise.reject(r)}))}var rr="1.8.1";var nr={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){nr[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var ir={};nr.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+rr+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new ge(i(n," has been removed"+(r?" in "+r:"")),ge.ERR_DEPRECATED)}if(r&&!ir[n]){ir[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};nr.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function or(e,t,r){if(typeof e!=="object"){throw new ge("options must be an object",ge.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var s=e[o];var u=s===undefined||a(s,o,e);if(u!==true){throw new ge("option "+o+" must be "+u,ge.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new ge("Unknown option "+o,ge.ERR_BAD_OPTION)}}}var ar={assertOptions:or,validators:nr};var sr=ar.validators;var ur=function(){function e(e){this.defaults=e;this.interceptors={request:new Ue,response:new Ue}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=At(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){ar.assertOptions(r,{silentJSONParsing:sr.transitional(sr.boolean),forcedJSONParsing:sr.transitional(sr.boolean),clarifyTimeoutError:sr.transitional(sr.boolean)},false)}if(n!=null){if(we.isFunction(n)){t.paramsSerializer={serialize:n}}else{ar.assertOptions(n,{encode:sr.function,serialize:sr.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}ar.assertOptions(t,{baseUrl:sr.spelling("baseURL"),withXsrfToken:sr.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&we.merge(i.common,i[t.method]);i&&we.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=dt.concat(o,i);var a=[];var s=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}s=s&&r.synchronous;a.unshift(r.fulfilled,r.rejected)}));var u=[];this.interceptors.response.forEach((function e(t){u.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!s){var d=[tr.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,u);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;f=0;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=tr.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=u.length;while(f<l){c=c.then(u[f++],u[f++])}return c};e.prototype.getUri=function(e){e=At(this.defaults,e);var t=Et(e.baseURL,e.url,e.allowAbsoluteUrls);return Pe(t,e.params,e.paramsSerializer)};return e}();we.forEach(["delete","get","head","options"],(function e(t){ur.prototype[t]=function(e,r){return this.request(At(r||{},{method:t,url:e,data:(r||{}).data}))}}));we.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(At(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ur.prototype[t]=r();ur.prototype[t+"Form"]=r(true)}));var cr=ur;var fr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new pt(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var lr=fr;function dr(e){return function t(r){return e.apply(null,r)}}function vr(e){return we.isObject(e)&&e.isAxiosError===true}var hr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hr).forEach((function(e){var t=e[0],r=e[1];hr[r]=t}));var pr=hr;function br(e){var t=new cr(e);var r=v(cr.prototype.request,t);we.extend(r,cr.prototype,t,{allOwnKeys:true});we.extend(r,t,null,{allOwnKeys:true});r.create=function t(r){return br(At(e,r))};return r}var mr=br(et);mr.Axios=cr;mr.CanceledError=pt;mr.CancelToken=lr;mr.isCancel=ht;mr.VERSION=rr;mr.toFormData=Te;mr.AxiosError=ge;mr.Cancel=mr.CanceledError;mr.all=function e(t){return Promise.all(t)};mr.spread=dr;mr.isAxiosError=vr;mr.mergeConfig=At;mr.AxiosHeaders=dt;mr.formToJSON=function(e){return Ze(we.isHTMLForm(e)?new FormData(e):e)};mr.getAdapter=Yt.getAdapter;mr.HttpStatusCode=pr;mr.default=mr;var wr=mr;var gr=["https://beta.verdocs.com","https://stage.verdocs.com","http://localhost:6006","http://localhost:5173"];var yr=gr.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var xr=function(){return wr.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:yr}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var kr='@-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-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var _r=kr;var Rr='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var Or=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=r(this,"searchContacts",7);this.exit=r(this,"exit",7);this.next=r(this,"next",7);this.endpoint=a.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=s(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}u(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));xr().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();console.log("cxl");this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,o,a,u,f,d,v,h,p,b,m,w,g,y,x,k,_;var R=this.first_name&&this.last_name&&c(this.email);var O=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var S=R&&O;var E=((o=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||o===void 0?void 0:o.enabled)===true;var T=[];if(((f=(u=(a=this.featureFlags)===null||a===void 0?void 0:a.toggles)===null||u===void 0?void 0:u.find((function(e){return e.name==="passcode-verification"})))===null||f===void 0?void 0:f.enabled)===true){T.push({label:"Passcode",value:"passcode"})}if(((h=(v=(d=this.featureFlags)===null||d===void 0?void 0:d.toggles)===null||v===void 0?void 0:v.find((function(e){return e.name==="email-verification"})))===null||h===void 0?void 0:h.enabled)===true){T.push({label:"Email",value:"email"})}if(E&&((m=(b=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||b===void 0?void 0:b.find((function(e){return e.name==="sms-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.sms_auth){T.push({label:"SMS (One-Time Code)",value:"sms"})}if(((y=(g=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||g===void 0?void 0:g.find((function(e){return e.name==="kba-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.kba_auth){T.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((_=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((function(e){return e.name==="id-verification"})))===null||_===void 0?void 0:_.enabled)===true&&!!this.activeEntitlements.id_auth){T.push({label:"ID Check",value:"id"})}return n("form",{key:"04692a50db278a08b263fa5343a90f832b7a39ee",onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},n("div",{key:"49c73586ee2a3b55284c7060578ce2f76442eb7f",class:"row"},n("label",{key:"c14e09c5fafc682f8e84409cabb8c16080a542ef",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"64d1f1411604edaab598852ecccbd2e81cac5d01",class:"names-row"},n("input",{key:"ab738a6d5fb36378c6cae917ffc0cce34eefc251",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),n("input",{key:"e78173446c9eb0d24125b1e9a614948b2c0dea34",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&n("verdocs-portal",{key:"9947a7f8ab42d1790df06e579796d4a2e93245d1",anchor:this.firstNameFieldId,onClickAway:function(){return e.showSuggestions=false},id:"verdocs-contact-picker-suggestions"},n("div",{key:"fbc62ab9fe1d080bd24cdcd6d06af7608957566c",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return n("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?n("img",{alt:"Avatar",class:"avatar",src:t.picture}):n("div",{class:"avatar",innerHTML:Rr}),n("div",{class:"details"},n("div",{class:"name"},s(t)),t.email&&n("div",{class:"destination"},t.email),t.phone&&n("div",{class:"destination"},t.phone)))}))))),n("div",{key:"e8e70c9c0eb9aac2949ea3f1cdcad31a0109b1e6",class:"row"},n("label",{key:"1a0446066a2337a8317e4f1a30a7b4bbaac8e9d9",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"700f23efdcdad3569e37f68beb87254768997476",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:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),E&&n("div",{key:"e10b121fcc2c612b95a9e8ebd35fbbaba78f31ff",class:"row"},n("label",{key:"924df4057ae82c1a42a060f6457999e9e7be3e9d",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"be1707e6c04744891626dd14ce7beee679e33b95",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:function(){return e.showSuggestions=false},onInput:function(t){e.phone=l(t.target.value)}})),n(i,{key:"a27e49219aed619f6ce094ca91d7bdb8ee4bd361"},T.length>0&&n("div",{key:"3c2eb231a5e10223a0554b2661f7902a7343ff14",class:"row"},n("label",{key:"2424d844f6c54d6898aff3746c665e8f0028393f"},"Recipient Verification:"),n("verdocs-multiselect",{key:"15e4fdff72818343d016749c83a10602083c19db",label:"",placeholder:"None",options:T,selectedOptions:this.auth_methods,onSelectionChanged:function(t){console.log("selectedOptions changed",t.detail);e.auth_methods=t.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"cb92bbf38b29b81dd443ea63ee52f5c38ca3e462",class:"row pin-code"},n("label",{key:"a31d6aa08952a78774e0f7d6fc89a0c992fff0ce",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"416d22a451995e318fed41b36feda632b7324231",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:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),n("div",{key:"12d5f81d3750dfbec08c01d9f9e5ef8ff4e4ab61",class:"row message"},n("label",{key:"c5d2265df1203c2f1cb09e4ef99ece909a11c3d1",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"875a4a055860497d1b5f270fe9e4f76fd1594d86",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),n("div",{key:"fc5dc7ca853d00fbeb22b912f7da5db32c394bdb",class:"buttons"},n("div",{key:"cb19eed74dcc4a093d0420352e31b50c252ca857",class:"flex-fill"}),n("verdocs-button",{key:"b94abf0ba4e07bdb661aee267a2d23bd1e5f9555",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),n("verdocs-button",{key:"2ad4cf79ebbac22818caee6fd732cf4cbf01436b",label:"OK",size:"small",disabled:!S,onClick:!S?function(){}:function(t){return e.handleSubmit(t)}})))};return e}());Or.style=_r;var Sr='@-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-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect.open .input-wrapper .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';var Er=Sr;var Tr='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>';var Ar=e("verdocs_multiselect",function(){function e(e){t(this,e);this.selectionChanged=r(this,"selectionChanged",7);this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}e.prototype.handleToggleOption=function(e,t){var r;if(e.target.checked){this.selectedOptions=__spreadArray(__spreadArray([],this.selectedOptions,true),[t.value],false)}else{this.selectedOptions=this.selectedOptions.filter((function(e){return e!==t.value}))}(r=this.selectionChanged)===null||r===void 0?void 0:r.emit({selectedOptions:this.selectedOptions})};e.prototype.render=function(){var e=this;var t="verdocs-dropdown-".concat(f(8));return n(o,{key:"7fa4d31d423894e8caa3dffd1fb46752b7b87ee5",class:this.showPicker?"open":"closed"},n("label",{key:"891a7d7ee2867d598f2f3ea6609148a47a9a7166"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"c165f68315aec9d1aca6e9f2214ece090f496363",class:"input-wrapper"},n("button",{key:"2297bfb9c84abd5da4c73dfcbae15fe2f5f04c1c",id:t,class:"trigger",value:"",onClick:function(){return e.showPicker=true}},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((function(t){var r;return n("span",{class:"selected-option"},((r=e.options.find((function(e){return e.value===t})))===null||r===void 0?void 0:r.label)||"Unknown")}))),n("div",{key:"e4929befc449d9be400305ee3e0aeb1c171583fd",class:"icon",innerHTML:Tr}),this.showPicker&&n("verdocs-portal",{key:"42016ae18aa4acd4c5aac8f2ea3a7d6126116aa6",anchor:t,voffset:2,onClickAway:function(){return e.showPicker=false},id:"verdocs-multiselect-menu-items"},this.options.map((function(t,r){return n("div",{class:"option",onClick:function(){return e.showPicker=false}},n("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.selectedOptions.includes(t.value),onInput:function(r){return e.handleToggleOption(r,t)}}),n("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))}))))))};return e}());Ar.style=Er}}}));
2
- //# sourceMappingURL=p-46263e7a.system.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as e,c as i,h as s,F as t,H as o,g as l}from"./p-ddadabfb.js";import{VerdocsEndpoint as d,getEnvelope as a,getDocumentDownloadLink as n,cancelEnvelope as r,userCanCancelEnvelope as c,integerSequence as h}from"@verdocs/js-sdk";import{s as p}from"./p-0c45b79c.js";import{S as v}from"./p-fd97809c.js";import{S as x}from"./p-33300e3a.js";import"./p-85aa8e05.js";import"./p-c7ee88c7.js";import"./p-12bab948.js";const b='@-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:10px;-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:5px 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 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 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;font-size:14px;padding:0 5px;-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}';const u=b;const f=`<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>`;const g=class{constructor(s){e(this,s);this.exit=i(this,"exit",7);this.pinEntered=i(this,"pinEntered",7);this.next=i(this,"next",7);this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.response="";this.updatedRecipient=null;this.dobContainerId=`verdocs-date-input-${Math.random().toString(36).substring(2,11)}`}componentWillLoad(){this.updatedRecipient={...this.recipient||{}}}componentDidLoad(){}handleCancel(){this.exit.emit()}handleDismiss(e){if(e.target.class==="background-overlay"){e.preventDefault();this.handleCancel()}}handleDone(){this.next.emit(this.response);this.response=""}handleConfirmID(){this.next.emit(this.updatedRecipient)}render(){var e,i,l,d,a,n,r,c,h,p,v,x;if(this.mode==="choice"){return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(t,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"choices"},this.choices.map((e=>s("div",{class:`choice ${e===this.response?"selected":""}`,onClick:()=>{console.log("Selected",e);this.response=e}},e)))),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}if(this.mode==="identity"){console.log("ur",this.updatedRecipient);return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity"),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},"Identity verification is required"),s("div",{class:"help-text"},"NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly."))),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-first"},"Your Name:",s("span",{class:"required"},"*")),s("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.first_name,onInput:e=>this.updatedRecipient={...this.updatedRecipient,first_name:e.target.value}}),s("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.last_name,onInput:e=>this.updatedRecipient={...this.updatedRecipient,last_name:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-address"},"Address:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(l=this.updatedRecipient)===null||l===void 0?void 0:l.address,onInput:e=>this.updatedRecipient={...this.updatedRecipient,address:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-city"},"City:"),s("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}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-state"},"State:"),s("input",{type:"text",id:"verdocs-kba-state",name:"verdocs-kba-state",placeholder:"State...",value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:e=>this.updatedRecipient={...this.updatedRecipient,state:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",s("span",{class:"required"},"*")),s("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(n=this.updatedRecipient)===null||n===void 0?void 0:n.zip,onInput:e=>this.updatedRecipient={...this.updatedRecipient,zip:e.target.value}})),s("div",{class:"field"},s("label",{htmlFor:this.dobContainerId},"Date of Birth:",s("span",{class:"required"},"*")),s("input",{type:"text",value:((r=this.updatedRecipient)===null||r===void 0?void 0:r.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:e=>this.updatedRecipient={...this.updatedRecipient,dob:e.target.value}})),s("div",{class:"buttons"},s("verdocs-button",{label:"Submit",onClick:()=>this.handleConfirmID(),disabled:!((c=this.updatedRecipient)===null||c===void 0?void 0:c.first_name)||!((h=this.updatedRecipient)===null||h===void 0?void 0:h.last_name)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.address)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.zip)||!((x=this.updatedRecipient)===null||x===void 0?void 0:x.dob)})))))}return s(o,null,s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(t,null)),!!this.helptitle&&s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:f}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:e=>this.response=e.target.value})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),s("verdocs-button",{label:"Submit",onClick:()=>this.handleDone(),disabled:!this.response})))))}};g.style=u;const m='@-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-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';const w=m;const k=class{constructor(s){e(this,s);this.sdkError=i(this,"sdkError",7);this.envelopeUpdated=i(this,"envelopeUpdated",7);this.another=i(this,"another",7);this.view=i(this,"view",7);this.next=i(this,"next",7);this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}async componentWillLoad(){var e,i,s;if(!this.endpoint){this.endpoint=d.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error(`[VIEW] Missing required envelopeId`);return}this.listenToEnvelope();if(!this.envelope){try{console.log("[VIEW] Loading envelope...");this.envelope=await a(this.endpoint,this.envelopeId);console.log("[VIEW] Loaded envelope",this.envelope)}catch(t){this.showLoadError=true;(e=this.sdkError)===null||e===void 0?void 0:e.emit(new v(t.message,(i=t.response)===null||i===void 0?void 0:i.status,(s=t.response)===null||s===void 0?void 0:s.data))}}}componentDidRender(){const e=this.headerTargetId?document.getElementById(this.headerTargetId):null;const i=document.getElementById("verdocs-view-header");if(e&&i){console.log("[VIEW] Moving header");i.remove();e.append(i)}}disconnectedCallback(){this.unlistenToEnvelope()}async listenToEnvelope(){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();x.subscribe("envelopes",this.envelopeId,(()=>a(this.endpoint,this.envelopeId)),true,(e=>{this.envelope=e;this.loading=false}))}unlistenToEnvelope(){if(this.envelopeListenerId){x.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}}handlePageRendered(e){}async handleOptionSelected(e){var i,s;switch(e.detail.id){case"cancel":if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;r(this.endpoint,this.envelopeId).then((e=>{this.canceling=false;console.log("[VIEW] Envelope canceled",e);return a(this.endpoint,this.envelopeId)})).then((e=>{console.log("[VIEW] Loaded new envelope details",e);this.envelope=e})).catch((e=>{var i,s,t;this.canceling=false;console.log("[VIEW] Error canceling envelope",e);(i=this.sdkError)===null||i===void 0?void 0:i.emit(new v(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(t=e.response)===null||t===void 0?void 0:t.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}break;case"print":window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download-attachments":{const e=this.envelope.documents.find((e=>e.type==="attachment"));if(e){const i=await n(this.endpoint,this.envelopeId,e.id);window.open(i,"_blank")}}break;case"download-certificate":{const e=this.envelope.documents.find((e=>e.type==="certificate"));if(e){const i=await n(this.endpoint,this.envelopeId,e.id);window.open(i,"_blank")}}break;case"download-all":p(this.endpoint,[this.envelope]).then((()=>{var e;(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})})).catch((e=>{console.log("Error downloading Zip",e)}));break}}render(){var e;if(this.loading){return s(o,null,s("verdocs-loader",null))}if(this.showLoadError){return s(o,null,s("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:`Sorry, that envelope is not valid.`,buttonLabel:"OK",onNext:()=>{this.showLoadError=false}}))}if(!this.envelope){return s(o,null,s("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"}))}const i=[{id:"print",label:"Print"}];if(c(this.endpoint.profile,this.envelope)){i.push({id:"cancel",label:"Cancel"})}const l=this.envelope.documents.length>0;const d=this.envelope.documents.filter((e=>e.type==="attachment")).length;const a=this.envelope.documents.find((e=>e.type==="certificate"))!==undefined;if(l||a){i.push({label:""});if(l){i.push({id:"download-attachments",label:d>1?"Download Documents":"Download Document"})}if(a){i.push({id:"download-certificate",label:"Download Certificate"})}if(l&&a){i.push({id:"download-all",label:"Download All Files"})}}return s(o,null,s("div",{id:"verdocs-view-header"},s("div",{class:"inner"},s("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),s("div",{class:"title"},this.envelope.name),s("div",{style:{flex:"1"}}),s("div",{style:{marginLeft:"10px"}}),s("verdocs-dropdown",{options:i,onOptionSelected:e=>this.handleOptionSelected(e)}))),s("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((e=this.envelope)===null||e===void 0?void 0:e.documents)||[]).filter((e=>e.type!=="certificate")).map((e=>{const i=h(1,e.pages);return s(t,null,i.map((i=>{var t;const o=((t=e.page_sizes)===null||t===void 0?void 0:t[i])||{width:612,height:792};return s("verdocs-envelope-document-page",{envelopeId:this.envelopeId,documentId:e.id,endpoint:this.endpoint,type:"filled",virtualWidth:o.width,virtualHeight:o.height,pageNumber:i,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&s("verdocs-ok-dialog",{heading:"Cancelled",message:`This envelope has been cancelled successfully.`,onNext:()=>{this.showCancelDone=false}}),this.canceling&&s("div",{class:"loading-indicator"},s("verdocs-loader",null)))}get component(){return l(this)}};k.style=w;export{g as verdocs_kba_dialog,k as verdocs_view};
2
- //# sourceMappingURL=p-66ca774d.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["verdocsKbaDialogCss","VerdocsKbaDialogStyle0","QuestionIcon","VerdocsKbaDialog","constructor","hostRef","this","step","steps","helptitle","helptext","mode","label","placeholder","recipient","choices","response","updatedRecipient","dobContainerId","Math","random","toString","substring","componentWillLoad","componentDidLoad","handleCancel","exit","emit","handleDismiss","e","target","class","preventDefault","handleDone","next","handleConfirmID","render","h","Host","onClick","Fragment","innerHTML","map","choice","console","log","variant","disabled","htmlFor","required","type","id","name","value","_a","first_name","onInput","_b","last_name","_c","address","_d","city","_e","state","_f","zip","_g","dob","_h","_j","_k","_l","_m","verdocsViewCss","VerdocsViewStyle0","VerdocsView","envelopeListenerId","endpoint","envelopeId","headerTargetId","canceling","showCancelDone","showLoadError","loading","envelope","VerdocsEndpoint","getDefault","loadSession","error","listenToEnvelope","getEnvelope","sdkError","SDKError","message","status","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","disconnectedCallback","unlistenToEnvelope","Store","subscribe","store","delListener","handlePageRendered","handleOptionSelected","detail","confirm","cancelEnvelope","then","r","env","catch","envelopeUpdated","event","window","print","firstDoc","documents","find","doc","url","getDocumentDownloadLink","open","firstCert","saveEnvelopesAsZip","heading","buttonLabel","onNext","src","style","width","height","boxShadow","marginTop","alt","menuOptions","userCanCancelEnvelope","profile","push","hasAttachments","length","normalDocCount","filter","hasCertificate","undefined","flex","marginLeft","options","onOptionSelected","paddingTop","envelopeDocument","pageNumbers","integerSequence","pages","pageNumber","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.scss?tag=verdocs-kba-dialog","src/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.tsx","src/components/embeds/verdocs-view/verdocs-view.scss?tag=verdocs-view","src/components/embeds/verdocs-view/verdocs-view.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-kba-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n div {\n box-sizing: border-box;\n }\n\n .background-overlay {\n position: fixed;\n z-index: 10000;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #0000007f;\n }\n\n .dialog {\n width: 440px;\n display: flex;\n flex-direction: column;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n padding: 16px;\n gap: 10px;\n box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);\n }\n\n .heading {\n display: flex;\n flex-direction: row;\n font-size: 20px;\n font-weight: 500;\n }\n\n .step {\n margin-left: 6px;\n color: #666;\n }\n\n .help-box {\n background-color: $border-color;\n display: flex;\n flex-direction: row;\n padding: 14px;\n align-items: center;\n color: white;\n }\n\n .help-details {\n display: flex;\n flex-direction: column;\n margin-left: 15px;\n font-size: 14px;\n }\n\n .help-icon {\n width: 40px;\n height: 40px;\n }\n\n .help-title {\n font-weight: 600;\n margin-bottom: 4px;\n }\n\n .help-text {\n font-weight: 400;\n }\n\n .input {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n margin: 16px 0 32px;\n\n label {\n flex: 0;\n line-height: 10px;\n font-weight: 500;\n white-space: nowrap;\n }\n\n input {\n flex: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .field {\n gap: 10px;\n margin: 0;\n display: flex;\n align-items: center;\n flex-direction: row;\n max-width: 100%;\n\n .required {\n color: red;\n position: relative;\n top: -0.5em;\n font-size: 80%;\n }\n\n label {\n flex: 0 0 120px;\n font-weight: 500;\n line-height: 10px;\n text-align: right;\n white-space: nowrap;\n }\n\n verdocs-date-input {\n width: 40%;\n flex-grow: 1;\n\n input {\n width: 100%;\n box-sizing: border-box;\n }\n }\n\n input {\n width: 40%;\n flex-grow: 1;\n padding: 5px 8px;\n border-radius: 3px;\n border: 1px solid #cccccc;\n }\n }\n\n .choices {\n display: grid;\n gap: 15px;\n grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));\n margin: 0 0 15px 0;\n }\n\n .choice {\n border: 1px solid $border-color;\n border-radius: 5px;\n display: flex;\n height: 60px;\n font-size: 14px;\n padding: 0 5px;\n justify-content: center;\n align-items: center;\n text-align: center;\n color: $choice-available-color;\n cursor: pointer;\n\n &.selected {\n background-color: $border-color;\n color: $verdocs-grey-4;\n }\n }\n\n .buttons {\n display: flex;\n align-items: center;\n flex-direction: row;\n justify-content: flex-end;\n\n verdocs-button {\n margin-left: 16px;\n }\n }\n}\n","import {Component, Prop, h, Event, EventEmitter, Fragment, Host, State} from '@stencil/core';\nimport {IRecipient} from '@verdocs/js-sdk';\n// import AirDatepicker from 'air-datepicker';\n// import localeEn from 'air-datepicker/locale/en';\n\nconst 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>`;\n\n/**\n * Prompt the user to confirm their identity with a PIN or a series of questions.\n */\n@Component({\n tag: 'verdocs-kba-dialog',\n styleUrl: 'verdocs-kba-dialog.scss',\n})\nexport class VerdocsKbaDialog {\n // private picker: AirDatepicker<HTMLElement> | null = null;\n\n /**\n * Which step this confirmation is for, in a multi-step process. Ignored if `steps` is < 2.\n */\n @Prop() step: number = 1;\n\n /**\n * How many steps exist in a multi-step process. Set to 1 for a single-step process (hides the indicator).\n */\n @Prop() steps: number = 3;\n\n /**\n * If set, a help/instructions box will be displayed with this title\n */\n @Prop() helptitle: string = 'Previous Addresses';\n\n /**\n * If set, a help/instructions box will be displayed with this text\n */\n @Prop() helptext: string = 'Please select the address below that you have most recently lived at.';\n\n /**\n * The type of dialog to display. Three modes are supported.\n */\n @Prop() mode: 'text' | 'choice' | 'identity' = 'choice';\n\n /**\n * For text input challenges, the label to display next to the input field.\n */\n @Prop() label: string = 'PIN';\n\n /**\n * For text input challenges, the placeholder to display inside the input field.\n */\n @Prop() placeholder: string = 'Enter your PIN...';\n\n /**\n * For identity confirmation, the current recipient details.\n */\n @Prop() recipient: IRecipient | null = null;\n\n /**\n * For choice challenges, a set of choices to choose from. 6 choices is recommended to fit most screen sizes.\n */\n @Prop() choices: string[] = ['553 Arbor Dr', '18 Lacey Ln', '23A Ball Ct', '2375 Cavallo Blvd', '23-1 RR-7', '151 Boulder Rd'];\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) pinEntered: EventEmitter<string | IRecipient>;\n\n /**\n * Event fired when the dialog is closed. The event data will contain the value selected,\n * or the new recipient details if the mode is 'identity'.\n */\n @Event({composed: true}) next: EventEmitter<string | IRecipient | string[]>;\n\n @State() response = '';\n @State() updatedRecipient: IRecipient = null;\n @State() dobContainerId = `verdocs-date-input-${Math.random().toString(36).substring(2, 11)}`;\n\n componentWillLoad() {\n this.updatedRecipient = {...(this.recipient || {})} as IRecipient;\n }\n\n componentDidLoad() {\n // this.picker = new AirDatepicker<HTMLElement>(`#${this.dobContainerId}`, {\n // locale: localeEn,\n // isMobile: true,\n // autoClose: true,\n // onSelect: ({date, formattedDate}) => {\n // console.log('onselect', date, formattedDate);\n // // const event = new CustomEvent('input', {detail: {date, formattedDate}});\n // // this.hostEl.dispatchEvent(event);\n // },\n // });\n }\n\n handleCancel() {\n this.exit.emit();\n }\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n if (e.target.class === 'background-overlay') {\n e.preventDefault();\n this.handleCancel();\n }\n }\n\n handleDone() {\n this.next.emit(this.response);\n this.response = '';\n }\n\n handleConfirmID() {\n this.next.emit(this.updatedRecipient);\n }\n\n render() {\n if (this.mode === 'choice') {\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"choices\">\n {this.choices.map(choice => (\n <div\n class={`choice ${choice === this.response ? 'selected' : ''}`}\n onClick={() => {\n console.log('Selected', choice);\n this.response = choice;\n }}\n >\n {choice}\n </div>\n ))}\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label={this.step < this.steps ? 'Next' : 'Submit'} onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.mode === 'identity') {\n console.log('ur', this.updatedRecipient);\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">Confirm Your Identity</div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">Identity verification is required</div>\n <div class=\"help-text\">NOTE: Only four fields are required, but providing more details will allow us to complete the verification process more quickly.</div>\n </div>\n </div>\n )}\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-first\">\n Your Name:<span class=\"required\">*</span>\n </label>\n <input\n required\n type=\"text\"\n id=\"verdocs-kba-first\"\n name=\"verdocs-kba-first\"\n placeholder=\"First name...\"\n value={this.updatedRecipient?.first_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, first_name: e.target.value})}\n />\n\n <input\n type=\"text\"\n id=\"verdocs-kba-last\"\n name=\"verdocs-kba-last\"\n placeholder=\"Last name...\"\n required\n value={this.updatedRecipient?.last_name}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, last_name: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-address\">\n Address:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-address\"\n name=\"verdocs-kba-address\"\n placeholder=\"Address...\"\n value={this.updatedRecipient?.address}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, address: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-city\">City:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-city\"\n name=\"verdocs-kba-city\"\n placeholder=\"City...\"\n value={this.updatedRecipient?.city}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, city: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-state\">State:</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-state\"\n name=\"verdocs-kba-state\"\n placeholder=\"State...\"\n value={this.updatedRecipient?.state}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, state: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n <label htmlFor=\"verdocs-kba-zip\">\n Zip Code:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n id=\"verdocs-kba-zip\"\n name=\"verdocs-kba-zip\"\n placeholder=\"Zip Code...\"\n required\n value={this.updatedRecipient?.zip}\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, zip: e.target.value})}\n />\n </div>\n\n <div class=\"field\">\n {/* TODO: Also allow typed entry */}\n <label htmlFor={this.dobContainerId}>\n Date of Birth:<span class=\"required\">*</span>\n </label>\n <input\n type=\"text\"\n value={this.updatedRecipient?.dob || ''}\n id={this.dobContainerId}\n placeholder=\"DOB...\"\n onInput={(e: any) => (this.updatedRecipient = {...this.updatedRecipient, dob: e.target.value})}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button\n label=\"Submit\"\n onClick={() => this.handleConfirmID()}\n disabled={\n !this.updatedRecipient?.first_name ||\n !this.updatedRecipient?.last_name ||\n !this.updatedRecipient?.address ||\n !this.updatedRecipient?.zip ||\n !this.updatedRecipient?.dob\n }\n />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <div class=\"heading\">\n Please Confirm Your Identity\n {this.steps > 1 ? (\n <span class=\"step\">\n ({this.step}/{this.steps})\n </span>\n ) : (\n <Fragment />\n )}\n </div>\n\n {!!this.helptitle && (\n <div class=\"help-box\">\n <div class=\"help-icon\" innerHTML={QuestionIcon} />\n <div class=\"help-details\">\n <div class=\"help-title\">{this.helptitle}</div>\n <div class=\"help-text\">{this.helptext}</div>\n </div>\n </div>\n )}\n\n <div class=\"input\">\n <label htmlFor=\"verdocs-kba-input\">{this.label}</label>\n <input\n type=\"text\"\n id=\"verdocs-kba-input\"\n name=\"verdocs-kba-input\"\n placeholder={this.placeholder}\n value={this.response}\n onInput={(e: any) => (this.response = e.target.value)}\n />\n </div>\n\n <div class=\"buttons\">\n <verdocs-button label=\"Cancel\" variant=\"outline\" onClick={() => this.handleCancel()} />\n <verdocs-button label=\"Submit\" onClick={() => this.handleDone()} disabled={!this.response} />\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-view {\n display: flex;\n overflow: hidden;\n min-height: 600px;\n position: relative;\n align-items: center;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div,\n canvas {\n box-sizing: border-box;\n }\n\n .document {\n flex: 1;\n width: 100%;\n height: 100%;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n min-height: 200px;\n max-width: 1200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n}\n\n// Styled separately because the header is often re-parented\n#verdocs-view-header {\n width: 100%;\n color: #fff;\n display: flex;\n z-index: 1000;\n flex: 0 0 56px;\n padding: 0 20px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 20px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n\n @media all and (max-width: 500px) {\n padding: 0 10px;\n }\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n}\n","import {cancelEnvelope, getDocumentDownloadLink, getEnvelope, IEnvelope, integerSequence, userCanCancelEnvelope, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Element, Event, Host, Prop, EventEmitter, Fragment, State} from '@stencil/core';\nimport {saveEnvelopesAsZip} from '../../../utils/utils';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Render the documents attached to an envelope in read-only (view) mode. All documents are\n * displayed in order.\n *\n * ```ts\n * <verdocs-view\n * envelopeId={envelopeId}\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-view',\n styleUrl: 'verdocs-view.scss',\n shadow: false,\n})\nexport class VerdocsView {\n private envelopeListenerId = null;\n\n @Element() component: HTMLElement;\n\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint | null = null;\n\n /**\n * The envelope ID to render. Set ONE OF templateId or envelopeId. If both are set, envelopeId will be ignored.\n */\n @Prop() envelopeId: string = '';\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\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 /**\n * Event fired when the envelope is updated in any way. May be used for tasks such as cache invalidation or reporting to other systems.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) another: EventEmitter;\n\n /**\n * Event fired when the user clicks Send Another to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) view: EventEmitter;\n\n /**\n * Event fired when the user clicks Done to proceed. It is up to the host application\n * to redirect the user to the appropriate next workflow step.\n */\n @Event({composed: true}) next: EventEmitter;\n @State() canceling = false;\n @State() showCancelDone = false;\n @State() showLoadError = false;\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n async componentWillLoad() {\n if (!this.endpoint) {\n this.endpoint = VerdocsEndpoint.getDefault();\n this.endpoint.loadSession();\n }\n\n if (!this.envelopeId) {\n console.error(`[VIEW] Missing required envelopeId`);\n return;\n }\n\n this.listenToEnvelope();\n if (!this.envelope) {\n try {\n console.log('[VIEW] Loading envelope...');\n this.envelope = await getEnvelope(this.endpoint, this.envelopeId);\n console.log('[VIEW] Loaded envelope', this.envelope);\n } catch (e) {\n this.showLoadError = true;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-view-header');\n if (headerTarget && headerEl) {\n console.log('[VIEW] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n disconnectedCallback() {\n this.unlistenToEnvelope();\n }\n\n async listenToEnvelope() {\n console.log('[SIDEBAR] Loading envelope', this.envelopeId);\n this.unlistenToEnvelope();\n Store.subscribe(\n 'envelopes',\n this.envelopeId,\n () => getEnvelope(this.endpoint, this.envelopeId),\n true,\n (envelope: IEnvelope) => {\n this.envelope = envelope;\n this.loading = false;\n },\n );\n }\n\n unlistenToEnvelope() {\n if (this.envelopeListenerId) {\n Store.store.delListener(this.envelopeListenerId);\n this.envelopeListenerId = null;\n }\n }\n\n handlePageRendered(_e: any) {\n // const pageInfo = e.detail as IDocumentPageInfo;\n // console.log('[VIEW] Page rendered', pageInfo);\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'cancel':\n // TODO: Better option for inline-flow confirmation and alert dialogs.\n if (confirm('Are you sure you wish to cancel this envelope? This action cannot be undone.')) {\n this.canceling = true;\n cancelEnvelope(this.endpoint, this.envelopeId)\n .then(r => {\n this.canceling = false;\n console.log('[VIEW] Envelope canceled', r);\n return getEnvelope(this.endpoint, this.envelopeId);\n })\n .then(env => {\n console.log('[VIEW] Loaded new envelope details', env);\n this.envelope = env;\n })\n .catch(e => {\n this.canceling = false;\n console.log('[VIEW] Error canceling envelope', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n this.showCancelDone = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'canceled'});\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download-attachments':\n // TODO: Multiple document support\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstDoc.id);\n window.open(url, '_blank');\n }\n }\n break;\n\n case 'download-certificate':\n // TODO: Multiple certificate support\n {\n const firstCert = this.envelope.documents.find(doc => doc.type === 'certificate');\n if (firstCert) {\n const url = await getDocumentDownloadLink(this.endpoint, this.envelopeId, firstCert.id);\n window.open(url, '_blank');\n }\n }\n // saveCertificate(this.endpoint, this.envelope, this.envelope.certificate_document_id)\n // .then(() => {\n // this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n // })\n // .catch(e => {\n // console.log('Error downloading PDF', e);\n // });\n break;\n\n case 'download-all':\n saveEnvelopesAsZip(this.endpoint, [this.envelope])\n .then(() => {\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n })\n .catch(e => {\n console.log('Error downloading Zip', e);\n });\n break;\n }\n }\n\n render() {\n if (this.loading) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to View Envelope\"\n message={`Sorry, that envelope is not valid.`}\n buttonLabel=\"OK\"\n onNext={() => {\n this.showLoadError = false;\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </Host>\n );\n }\n\n const menuOptions: any[] = [{id: 'print', label: 'Print'}];\n\n if (userCanCancelEnvelope(this.endpoint.profile, this.envelope)) {\n menuOptions.push({id: 'cancel', label: 'Cancel'});\n }\n\n // Add download options to the menu\n const hasAttachments = this.envelope.documents.length > 0;\n const normalDocCount = this.envelope.documents.filter(doc => doc.type === 'attachment').length;\n const hasCertificate = this.envelope.documents.find(doc => doc.type === 'certificate') !== undefined;\n if (hasAttachments || hasCertificate) {\n menuOptions.push({label: ''});\n if (hasAttachments) {\n menuOptions.push({id: 'download-attachments', label: normalDocCount > 1 ? 'Download Documents' : 'Download Document'});\n }\n if (hasCertificate) {\n menuOptions.push({id: 'download-certificate', label: 'Download Certificate'});\n }\n if (hasAttachments && hasCertificate) {\n menuOptions.push({id: 'download-all', label: 'Download All Files'});\n }\n }\n\n return (\n <Host>\n <div id=\"verdocs-view-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={menuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: this.headerTargetId ? '70px' : '15px'}}>\n {(this.envelope?.documents || [])\n .filter(document => document.type !== 'certificate')\n .map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n type=\"filled\"\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n {this.showCancelDone && (\n <verdocs-ok-dialog\n heading=\"Cancelled\"\n message={`This envelope has been cancelled successfully.`}\n onNext={() => {\n this.showCancelDone = false;\n }}\n />\n )}\n {this.canceling && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"+ZAAA,MAAMA,EAAsB,mgHAC5B,MAAAC,EAAeD,ECIf,MAAME,EAAe,+lC,MASRC,EAAgB,MAJ7B,WAAAC,CAAAC,G,uGAUUC,KAAAC,KAAe,EAKfD,KAAAE,MAAgB,EAKhBF,KAAAG,UAAoB,qBAKpBH,KAAAI,SAAmB,wEAKnBJ,KAAAK,KAAuC,SAKvCL,KAAAM,MAAgB,MAKhBN,KAAAO,YAAsB,oBAKtBP,KAAAQ,UAA+B,KAK/BR,KAAAS,QAAoB,CAAC,eAAgB,cAAe,cAAe,oBAAqB,YAAa,kBAmBpGT,KAAAU,SAAW,GACXV,KAAAW,iBAA+B,KAC/BX,KAAAY,eAAiB,sBAAsBC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,K,CAExF,iBAAAC,GACEjB,KAAKW,iBAAmB,IAAKX,KAAKQ,WAAa,G,CAGjD,gBAAAU,G,CAaA,YAAAC,GACEnB,KAAKoB,KAAKC,M,CAIZ,aAAAC,CAAcC,GACZ,GAAIA,EAAEC,OAAOC,QAAU,qBAAsB,CAC3CF,EAAEG,iBACF1B,KAAKmB,c,EAIT,UAAAQ,GACE3B,KAAK4B,KAAKP,KAAKrB,KAAKU,UACpBV,KAAKU,SAAW,E,CAGl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