@verdocs/web-sdk 6.5.0-beta.2 → 6.5.0-beta.3

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 (177) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/{utils-4rWXSNpE.js → utils-LPO6l9nR.js} +2 -3
  3. package/dist/{components/p-Btmt1DxH.js.map → cjs/utils-LPO6l9nR.js.map} +1 -1
  4. package/dist/cjs/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.cjs.js.map +1 -1
  5. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +11 -10
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -1
  7. package/dist/cjs/verdocs-envelope-document-page_3.cjs.entry.js +1 -1
  8. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
  9. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +39 -2
  10. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-preview_7.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-sign.cjs.entry.js +76 -17
  13. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  14. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  16. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js +11 -10
  17. package/dist/collection/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.js.map +1 -1
  18. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
  19. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +77 -17
  20. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  21. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +38 -1
  22. package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js.map +1 -1
  23. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +39 -1
  24. package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js.map +1 -1
  25. package/dist/collection/utils/utils.js +0 -1
  26. package/dist/collection/utils/utils.js.map +1 -1
  27. package/dist/components/{p-kbW0me2Y.js → p-0lrmfxFN.js} +3 -3
  28. package/dist/components/{p-kbW0me2Y.js.map → p-0lrmfxFN.js.map} +1 -1
  29. package/dist/components/{p-Btmt1DxH.js → p-B3TbYvlU.js} +2 -3
  30. package/dist/components/p-B3TbYvlU.js.map +1 -0
  31. package/dist/components/{p-0p8NaKpS.js → p-B9DM7wD0.js} +23 -3
  32. package/dist/components/p-B9DM7wD0.js.map +1 -0
  33. package/dist/components/{p-C5xpynM2.js → p-BXwiCpEb.js} +3 -3
  34. package/dist/components/{p-C5xpynM2.js.map → p-BXwiCpEb.js.map} +1 -1
  35. package/dist/components/{p-QjwQw9ZJ.js → p-C7xRBNX9.js} +3 -3
  36. package/dist/components/{p-QjwQw9ZJ.js.map → p-C7xRBNX9.js.map} +1 -1
  37. package/dist/components/{p-DqqO4T0y.js → p-DCXdeiPc.js} +13 -12
  38. package/dist/components/p-DCXdeiPc.js.map +1 -0
  39. package/dist/components/{p-C1KzzI_w.js → p-DNGq3wZS.js} +3 -3
  40. package/dist/components/{p-C1KzzI_w.js.map → p-DNGq3wZS.js.map} +1 -1
  41. package/dist/components/{p-Z1wZ6-IT.js → p-DZv79sQs.js} +5 -5
  42. package/dist/components/{p-Z1wZ6-IT.js.map → p-DZv79sQs.js.map} +1 -1
  43. package/dist/components/{p-BToCx2ri.js → p-Dl45UNf-.js} +22 -3
  44. package/dist/components/p-Dl45UNf-.js.map +1 -0
  45. package/dist/components/{p-Dr4C7GlH.js → p-DzLB0MYu.js} +6 -6
  46. package/dist/components/{p-Dr4C7GlH.js.map → p-DzLB0MYu.js.map} +1 -1
  47. package/dist/components/{p-IcDkT207.js → p-INlr_V_p.js} +5 -5
  48. package/dist/components/{p-IcDkT207.js.map → p-INlr_V_p.js.map} +1 -1
  49. package/dist/components/{p-_CWDgKqX.js → p-rWeRsA_5.js} +3 -3
  50. package/dist/components/{p-_CWDgKqX.js.map → p-rWeRsA_5.js.map} +1 -1
  51. package/dist/components/verdocs-adopt-signature-dialog.js +1 -1
  52. package/dist/components/verdocs-build.js +7 -7
  53. package/dist/components/verdocs-contact-picker.js +1 -1
  54. package/dist/components/verdocs-envelope-document-page.js +1 -1
  55. package/dist/components/verdocs-envelopes-list.js +2 -2
  56. package/dist/components/verdocs-field-initial.js +1 -1
  57. package/dist/components/verdocs-field-signature.js +1 -1
  58. package/dist/components/verdocs-preview.js +1 -1
  59. package/dist/components/verdocs-quick-filter.js +1 -1
  60. package/dist/components/verdocs-send.js +1 -1
  61. package/dist/components/verdocs-sign.js +82 -22
  62. package/dist/components/verdocs-sign.js.map +1 -1
  63. package/dist/components/verdocs-template-document-page.js +1 -1
  64. package/dist/components/verdocs-template-fields.js +1 -1
  65. package/dist/components/verdocs-templates-list.js +1 -1
  66. package/dist/components/verdocs-view.js +1 -1
  67. package/dist/custom-elements.json +2422 -0
  68. package/dist/esm/loader.js +1 -1
  69. package/dist/esm/{utils-NHDsmnv8.js → utils-UeubfAI_.js} +2 -3
  70. package/dist/{esm-es5/utils-NHDsmnv8.js.map → esm/utils-UeubfAI_.js.map} +1 -1
  71. package/dist/esm/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  72. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +11 -10
  73. package/dist/esm/verdocs-contact-picker.entry.js +1 -1
  74. package/dist/esm/verdocs-envelope-document-page_3.entry.js +1 -1
  75. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  76. package/dist/esm/verdocs-field-attachment_13.entry.js +39 -2
  77. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  78. package/dist/esm/verdocs-preview_7.entry.js +1 -1
  79. package/dist/esm/verdocs-sign.entry.js +76 -17
  80. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  81. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  82. package/dist/esm/verdocs-web-sdk.js +1 -1
  83. package/dist/esm-es5/loader.js +1 -1
  84. package/dist/esm-es5/{utils-NHDsmnv8.js → utils-UeubfAI_.js} +2 -2
  85. package/dist/{esm/utils-NHDsmnv8.js.map → esm-es5/utils-UeubfAI_.js.map} +1 -1
  86. package/dist/esm-es5/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.js.map +1 -1
  87. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  88. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js.map +1 -1
  89. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  90. package/dist/esm-es5/verdocs-envelope-document-page_3.entry.js +1 -1
  91. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  92. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  93. package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -1
  94. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  95. package/dist/esm-es5/verdocs-preview_7.entry.js +1 -1
  96. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  97. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  98. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  99. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  100. package/dist/types/components/dialogs/verdocs-adopt-signature-dialog/verdocs-adopt-signature-dialog.d.ts +1 -0
  101. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +3 -2
  102. package/dist/types/components/fields/verdocs-field-initial/verdocs-field-initial.d.ts +5 -0
  103. package/dist/types/components/fields/verdocs-field-signature/verdocs-field-signature.d.ts +5 -0
  104. package/dist/types/components.d.ts +16 -0
  105. package/dist/verdocs-web-sdk/p-0029decb.entry.js +2 -0
  106. package/dist/verdocs-web-sdk/p-0029decb.entry.js.map +1 -0
  107. package/dist/verdocs-web-sdk/p-2439e530.entry.js +2 -0
  108. package/dist/verdocs-web-sdk/p-2439e530.entry.js.map +1 -0
  109. package/dist/verdocs-web-sdk/{p-7e580691.entry.js → p-2898f573.entry.js} +2 -2
  110. package/dist/verdocs-web-sdk/{p-94e4d921.system.entry.js → p-2ecec6ed.system.entry.js} +2 -2
  111. package/dist/verdocs-web-sdk/{p-2adc75a7.system.entry.js → p-415fa16f.system.entry.js} +2 -2
  112. package/dist/verdocs-web-sdk/{p-0c567c7d.entry.js → p-464ef358.entry.js} +2 -2
  113. package/dist/verdocs-web-sdk/{p-fe64576a.system.entry.js → p-46991fe7.system.entry.js} +2 -2
  114. package/dist/verdocs-web-sdk/{p-9a7a9d7b.system.entry.js → p-4a19fbe3.system.entry.js} +2 -2
  115. package/dist/verdocs-web-sdk/{p-0b57c1ef.system.entry.js → p-605b48fa.system.entry.js} +2 -2
  116. package/dist/verdocs-web-sdk/p-64d8ea72.entry.js +2 -0
  117. package/dist/verdocs-web-sdk/p-64d8ea72.entry.js.map +1 -0
  118. package/dist/verdocs-web-sdk/p-64e896e9.system.entry.js +2 -0
  119. package/dist/verdocs-web-sdk/p-64e896e9.system.entry.js.map +1 -0
  120. package/dist/verdocs-web-sdk/{p-0709e936.system.entry.js → p-78e8e398.system.entry.js} +3 -3
  121. package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js +2 -0
  122. package/dist/verdocs-web-sdk/p-99ba5e3b.system.entry.js.map +1 -0
  123. package/dist/verdocs-web-sdk/{p-303ed47f.entry.js → p-9cdc0980.entry.js} +3 -3
  124. package/dist/verdocs-web-sdk/{p-BRVQ3Epx.system.js.map → p-B0XOGp0Z.system.js.map} +1 -1
  125. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  126. package/dist/verdocs-web-sdk/{p-BU5y2rcs.system.js → p-BAU98X36.system.js} +2 -2
  127. package/dist/verdocs-web-sdk/{p-BU5y2rcs.system.js.map → p-BAU98X36.system.js.map} +1 -1
  128. package/dist/verdocs-web-sdk/p-BgTW-H9_.system.js.map +1 -0
  129. package/dist/verdocs-web-sdk/p-CAlOUHPb.system.js.map +1 -0
  130. package/dist/verdocs-web-sdk/{p-nK4J4UFK.js → p-CmnR51jO.js} +2 -2
  131. package/dist/verdocs-web-sdk/{p-nK4J4UFK.js.map → p-CmnR51jO.js.map} +1 -1
  132. package/dist/verdocs-web-sdk/{p-CogJ52UV.system.js.map → p-D-LZAEE-.system.js.map} +1 -1
  133. package/dist/verdocs-web-sdk/p-Dj3cajbH.system.js.map +1 -0
  134. package/dist/verdocs-web-sdk/{p-B_fwtKg3.system.js.map → p-O_JBau3u.system.js.map} +1 -1
  135. package/dist/verdocs-web-sdk/{p-B8lqLcUJ.system.js.map → p-XPySISfx.system.js.map} +1 -1
  136. package/dist/verdocs-web-sdk/{p-831ff4eb.entry.js → p-ab8ba727.entry.js} +2 -2
  137. package/dist/verdocs-web-sdk/{p-d06e0bce.entry.js → p-ae75565d.entry.js} +2 -2
  138. package/dist/verdocs-web-sdk/{p-acc245e6.entry.js → p-d5fc15ee.entry.js} +3 -3
  139. package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js +2 -0
  140. package/dist/verdocs-web-sdk/p-db5c9ec4.system.entry.js.map +1 -0
  141. package/dist/verdocs-web-sdk/{p-CyjSP4tG.system.js.map → p-k2jmkyZp.system.js.map} +1 -1
  142. package/dist/verdocs-web-sdk/{p-C9hmmFhm.system.js.map → p-xFl_XV91.system.js.map} +1 -1
  143. package/dist/verdocs-web-sdk/verdocs-adopt-signature-dialog.verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-signing-progress.verdocs-view.entry.esm.js.map +1 -1
  144. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  145. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  146. package/package.json +2 -2
  147. package/dist/cjs/utils-4rWXSNpE.js.map +0 -1
  148. package/dist/components/p-0p8NaKpS.js.map +0 -1
  149. package/dist/components/p-BToCx2ri.js.map +0 -1
  150. package/dist/components/p-DqqO4T0y.js.map +0 -1
  151. package/dist/verdocs-web-sdk/p-0dfacde9.system.entry.js +0 -2
  152. package/dist/verdocs-web-sdk/p-0dfacde9.system.entry.js.map +0 -1
  153. package/dist/verdocs-web-sdk/p-3c45dd79.entry.js +0 -2
  154. package/dist/verdocs-web-sdk/p-3c45dd79.entry.js.map +0 -1
  155. package/dist/verdocs-web-sdk/p-8ad09d97.system.entry.js +0 -2
  156. package/dist/verdocs-web-sdk/p-8ad09d97.system.entry.js.map +0 -1
  157. package/dist/verdocs-web-sdk/p-BcrrIlhF.system.js.map +0 -1
  158. package/dist/verdocs-web-sdk/p-DZW111-z.system.js.map +0 -1
  159. package/dist/verdocs-web-sdk/p-c676d027.entry.js +0 -2
  160. package/dist/verdocs-web-sdk/p-c676d027.entry.js.map +0 -1
  161. package/dist/verdocs-web-sdk/p-dc1eaf38.entry.js +0 -2
  162. package/dist/verdocs-web-sdk/p-dc1eaf38.entry.js.map +0 -1
  163. package/dist/verdocs-web-sdk/p-fef8b6b5.system.entry.js +0 -2
  164. package/dist/verdocs-web-sdk/p-fef8b6b5.system.entry.js.map +0 -1
  165. package/dist/verdocs-web-sdk/p-gCoMHihf.system.js.map +0 -1
  166. /package/dist/verdocs-web-sdk/{p-7e580691.entry.js.map → p-2898f573.entry.js.map} +0 -0
  167. /package/dist/verdocs-web-sdk/{p-94e4d921.system.entry.js.map → p-2ecec6ed.system.entry.js.map} +0 -0
  168. /package/dist/verdocs-web-sdk/{p-2adc75a7.system.entry.js.map → p-415fa16f.system.entry.js.map} +0 -0
  169. /package/dist/verdocs-web-sdk/{p-0c567c7d.entry.js.map → p-464ef358.entry.js.map} +0 -0
  170. /package/dist/verdocs-web-sdk/{p-fe64576a.system.entry.js.map → p-46991fe7.system.entry.js.map} +0 -0
  171. /package/dist/verdocs-web-sdk/{p-9a7a9d7b.system.entry.js.map → p-4a19fbe3.system.entry.js.map} +0 -0
  172. /package/dist/verdocs-web-sdk/{p-0b57c1ef.system.entry.js.map → p-605b48fa.system.entry.js.map} +0 -0
  173. /package/dist/verdocs-web-sdk/{p-0709e936.system.entry.js.map → p-78e8e398.system.entry.js.map} +0 -0
  174. /package/dist/verdocs-web-sdk/{p-303ed47f.entry.js.map → p-9cdc0980.entry.js.map} +0 -0
  175. /package/dist/verdocs-web-sdk/{p-831ff4eb.entry.js.map → p-ab8ba727.entry.js.map} +0 -0
  176. /package/dist/verdocs-web-sdk/{p-d06e0bce.entry.js.map → p-ae75565d.entry.js.map} +0 -0
  177. /package/dist/verdocs-web-sdk/{p-acc245e6.entry.js.map → p-d5fc15ee.entry.js.map} +0 -0
@@ -1,3 +1,3 @@
1
- import{r as e,c as t,h as n,F as o}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as r,formatFullName as i,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as u}from"./p-C_Xku1v2.js";import{f}from"./p-nK4J4UFK.js";import"./p-dzBXqXlK.js";import"./p-dqxNbm_b.js";
2
- /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */var d;var h;function p(){if(h)return d;h=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const{iterator:o,toStringTag:r}=Symbol;const i=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const s=e=>{e=e.toLowerCase();return t=>i(t)===e};const c=e=>t=>typeof t===e;const{isArray:l}=Array;const u=c("undefined");function f(e){return e!==null&&!u(e)&&e.constructor!==null&&!u(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=s("ArrayBuffer");function m(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&p(e.buffer)}return t}const b=c("string");const w=c("function");const v=c("number");const g=e=>e!==null&&typeof e==="object";const y=e=>e===true||e===false;const x=e=>{if(i(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(r in e)&&!(o in e)};const k=e=>{if(!g(e)||f(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const O=s("Date");const R=s("File");const E=s("Blob");const S=s("FileList");const T=e=>g(e)&&w(e.pipe);const j=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||w(e.append)&&((t=i(e))==="formdata"||t==="object"&&w(e.toString)&&e.toString()==="[object FormData]"))};const A=s("URLSearchParams");const[C,F,N,P]=["ReadableStream","Request","Response","Headers"].map(s);const U=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let r;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,r=e.length;o<r;o++){t.call(null,e[o],o,e)}}else{if(f(e)){return}const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=r.length;let s;for(o=0;o<i;o++){s=r[o];t.call(null,e[s],s,e)}}}function I(e,t){if(f(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let r;while(o-- >0){r=n[o];if(t===r.toLowerCase()){return r}}return null}const _=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:a})();const D=e=>!u(e)&&e!==_;function L(){const{caseless:e,skipUndefined:t}=D(this)&&this||{};const n={};const o=(o,r)=>{const i=e&&I(n,r)||r;if(x(n[i])&&x(o)){n[i]=L(n[i],o)}else if(x(o)){n[i]=L({},o)}else if(l(o)){n[i]=o.slice()}else if(!t||!u(o)){n[i]=o}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&B(arguments[e],o)}return n}const M=(t,n,o,{allOwnKeys:r}={})=>{B(n,((n,r)=>{if(o&&w(n)){t[r]=e(n,o)}else{t[r]=n}}),{allOwnKeys:r});return t};const q=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const z=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const $=(e,t,o,r)=>{let i;let s;let c;const a={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);s=i.length;while(s-- >0){c=i[s];if((!r||r(c,e,t))&&!a[c]){t[c]=e[c];a[c]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const H=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const K=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const J=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const X=(e,t)=>{const n=e&&e[o];const r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const W=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const V=s("HTMLFormElement");const G=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const Q=s("RegExp");const Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};B(n,((n,r)=>{let i;if((i=t(n,r,e))!==false){o[r]=i||n}}));Object.defineProperties(e,o)};const ee=e=>{Y(e,((t,n)=>{if(w(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!w(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const te=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};l(e)?o(e):o(String(e).split(t));return n};const ne=()=>{};const oe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function re(e){return!!(e&&w(e.append)&&e[r]==="FormData"&&e[o])}const ie=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(f(e)){return e}if(!("toJSON"in e)){t[o]=e;const r=l(e)?[]:{};B(e,((e,t)=>{const i=n(e,o+1);!u(i)&&(r[t]=i)}));t[o]=undefined;return r}}return e};return n(e,0)};const se=s("AsyncFunction");const ce=e=>e&&(g(e)||w(e))&&w(e.then)&&w(e.catch);const ae=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{_.addEventListener("message",(({source:n,data:o})=>{if(n===_&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);_.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",w(_.postMessage));const le=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(_):typeof process!=="undefined"&&process.nextTick||ae;const ue=e=>e!=null&&w(e[o]);var fe={isArray:l,isArrayBuffer:p,isBuffer:f,isFormData:j,isArrayBufferView:m,isString:b,isNumber:v,isBoolean:y,isObject:g,isPlainObject:x,isEmptyObject:k,isReadableStream:C,isRequest:F,isResponse:N,isHeaders:P,isUndefined:u,isDate:O,isFile:R,isBlob:E,isRegExp:Q,isFunction:w,isStream:T,isURLSearchParams:A,isTypedArray:J,isFileList:S,forEach:B,merge:L,extend:M,trim:U,stripBOM:q,inherits:z,toFlatObject:$,kindOf:i,kindOfTest:s,endsWith:H,toArray:K,forEachEntry:X,matchAll:W,isHTMLForm:V,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:Y,freezeMethods:ee,toObjectSet:te,toCamelCase:G,noop:ne,toFiniteNumber:oe,findKey:I,global:_,isContextDefined:D,isSpecCompliantForm:re,toJSONObject:ie,isAsyncFn:se,isThenable:ce,setImmediate:ae,asap:le,isIterable:ue};function de(e,t,n,o,r){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);n&&(this.config=n);o&&(this.request=o);if(r){this.response=r;this.status=r.status?r.status:null}}fe.inherits(de,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:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const he=de.prototype;const pe={};["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((e=>{pe[e]={value:e}}));Object.defineProperties(de,pe);Object.defineProperty(he,"isAxiosError",{value:true});de.from=(e,t,n,o,r,i)=>{const s=Object.create(he);fe.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));const c=e&&e.message?e.message:"Error";const a=t==null&&e?e.code:t;de.call(s,c,a,n,o,r);if(e&&s.cause==null){Object.defineProperty(s,"cause",{value:e,configurable:true})}s.name=e&&e.name||"Error";i&&Object.assign(s,i);return s};var me=null;function be(e){return fe.isPlainObject(e)||fe.isArray(e)}function we(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=we(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function ge(e){return fe.isArray(e)&&!e.some(be)}const ye=fe.toFlatObject(fe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function xe(e,t,n){if(!fe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=fe.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!fe.isUndefined(n[t])}));const o=n.metaTokens;const r=n.visitor||u;const i=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&fe.isSpecCompliantForm(t);if(!fe.isFunction(r)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(fe.isDate(e)){return e.toISOString()}if(fe.isBoolean(e)){return e.toString()}if(!a&&fe.isBlob(e)){throw new de("Blob is not supported. Use a Buffer instead.")}if(fe.isArrayBuffer(e)||fe.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,r){let c=e;if(e&&!r&&typeof e==="object"){if(fe.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(fe.isArray(e)&&ge(e)||(fe.isFileList(e)||fe.endsWith(n,"[]"))&&(c=fe.toArray(e))){n=we(n);c.forEach((function e(o,r){!(fe.isUndefined(o)||o===null)&&t.append(s===true?ve([n],r,i):s===null?n:n+"[]",l(o))}));return false}}if(be(e)){return true}t.append(ve(r,n,i),l(e));return false}const f=[];const d=Object.assign(ye,{defaultVisitor:u,convertValue:l,isVisitable:be});function h(e,n){if(fe.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);fe.forEach(e,(function e(o,i){const s=!(fe.isUndefined(o)||o===null)&&r.call(t,o,fe.isString(i)?i.trim():i,n,d);if(s===true){h(o,n?n.concat(i):[i])}}));f.pop()}if(!fe.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function Oe(e,t){this._pairs=[];e&&xe(e,this,t)}const Re=Oe.prototype;Re.append=function e(t,n){this._pairs.push([t,n])};Re.toString=function e(t){const n=t?function(e){return t.call(this,e,ke)}:ke;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Se(e,t,n){if(!t){return e}const o=n&&n.encode||Ee;if(fe.isFunction(n)){n={serialize:n}}const r=n&&n.serialize;let i;if(r){i=r(t,n)}else{i=fe.isURLSearchParams(t)?t.toString():new Oe(t,n).toString(o)}if(i){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Te{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){fe.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var je=Te;var Ae={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ce=typeof URLSearchParams!=="undefined"?URLSearchParams:Oe;var Fe=typeof FormData!=="undefined"?FormData:null;var Ne=typeof Blob!=="undefined"?Blob:null;var Pe={isBrowser:true,classes:{URLSearchParams:Ce,FormData:Fe,Blob:Ne},protocols:["http","https","file","blob","url","data"]};const Ue=typeof window!=="undefined"&&typeof document!=="undefined";const Be=typeof navigator==="object"&&navigator||undefined;const Ie=Ue&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0);const _e=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const De=Ue&&window.location.href||"http://localhost";var Le=Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:_e,hasStandardBrowserEnv:Ie,navigator:Be,origin:De});var Me={...Le,...Pe};function qe(e,t){return xe(e,new Me.classes.URLSearchParams,{visitor:function(e,t,n,o){if(Me.isNode&&fe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function ze(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function $e(e){const t={};const n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++){i=n[o];t[i]=e[i]}return t}function He(e){function t(e,n,o,r){let i=e[r++];if(i==="__proto__")return true;const s=Number.isFinite(+i);const c=r>=e.length;i=!i&&fe.isArray(o)?o.length:i;if(c){if(fe.hasOwnProp(o,i)){o[i]=[o[i],n]}else{o[i]=n}return!s}if(!o[i]||!fe.isObject(o[i])){o[i]=[]}const a=t(e,n,o[i],r);if(a&&fe.isArray(o[i])){o[i]=$e(o[i])}return!s}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};fe.forEachEntry(e,((e,o)=>{t(ze(e),o,n,0)}));return n}return null}function Ke(e,t,n){if(fe.isString(e)){try{(0,JSON.parse)(e);return fe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Je={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const r=o.indexOf("application/json")>-1;const i=fe.isObject(t);if(i&&fe.isHTMLForm(t)){t=new FormData(t)}const s=fe.isFormData(t);if(s){return r?JSON.stringify(He(t)):t}if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t)){return t}if(fe.isArrayBufferView(t)){return t.buffer}if(fe.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1){return qe(t,this.formSerializer).toString()}if((c=fe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return xe(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(i||r){n.setContentType("application/json",false);return Ke(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Je.transitional;const o=n&&n.forcedJSONParsing;const r=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t)){return t}if(t&&fe.isString(t)&&(o&&!this.responseType||r)){const e=n&&n.silentJSONParsing;const o=!e&&r;try{return JSON.parse(t,this.parseReviver)}catch(e){if(o){if(e.name==="SyntaxError"){throw de.from(e,de.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:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};fe.forEach(["delete","get","head","post","put","patch"],(e=>{Je.headers[e]={}}));var Xe=Je;const We=fe.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 Ve=e=>{const t={};let n;let o;let r;e&&e.split("\n").forEach((function e(i){r=i.indexOf(":");n=i.substring(0,r).trim().toLowerCase();o=i.substring(r+1).trim();if(!n||t[n]&&We[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};const Ge=Symbol("internals");function Ze(e){return e&&String(e).trim().toLowerCase()}function Qe(e){if(e===false||e==null){return e}return fe.isArray(e)?e.map(Qe):String(e)}function Ye(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tt(e,t,n,o,r){if(fe.isFunction(o)){return o.call(this,t,n)}if(r){t=n}if(!fe.isString(t))return;if(fe.isString(o)){return t.indexOf(o)!==-1}if(fe.isRegExp(o)){return o.test(t)}}function nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ot(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:true})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ze(t);if(!r){throw new Error("header name must be a non-empty string")}const i=fe.findKey(o,r);if(!i||o[i]===undefined||n===true||n===undefined&&o[i]!==false){o[i||t]=Qe(e)}}const i=(e,t)=>fe.forEach(e,((e,n)=>r(e,n,t)));if(fe.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(fe.isString(e)&&(e=e.trim())&&!et(e)){i(Ve(e),t)}else if(fe.isObject(e)&&fe.isIterable(e)){let n={},o,r;for(const t of e){if(!fe.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[r=t[0]]=(o=n[r])?fe.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}i(n,t)}else{e!=null&&r(t,e,n)}return this}get(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ye(e)}if(fe.isFunction(t)){return t.call(this,e,n)}if(fe.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||tt(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function r(e){e=Ze(e);if(e){const r=fe.findKey(n,e);if(r&&(!t||tt(n,n[r],r,t))){delete n[r];o=true}}}if(fe.isArray(e)){e.forEach(r)}else{r(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const r=t[n];if(!e||tt(this,this[r],r,e,true)){delete this[r];o=true}}return o}normalize(e){const t=this;const n={};fe.forEach(this,((o,r)=>{const i=fe.findKey(n,r);if(i){t[i]=Qe(o);delete t[r];return}const s=e?nt(r):String(r).trim();if(s!==r){delete t[r]}t[s]=Qe(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);fe.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&fe.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Ge]=this[Ge]={accessors:{}};const n=t.accessors;const o=this.prototype;function r(e){const t=Ze(e);if(!n[t]){ot(o,e);n[t]=true}}fe.isArray(e)?e.forEach(r):r(e);return this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));fe.freezeMethods(rt);var it=rt;function st(e,t){const n=this||Xe;const o=t||n;const r=it.from(o.headers);let i=o.data;fe.forEach(e,(function e(o){i=o.call(n,i,r.normalize(),t?t.status:undefined)}));r.normalize();return i}function ct(e){return!!(e&&e.__CANCEL__)}function at(e,t,n){de.call(this,e==null?"canceled":e,de.ERR_CANCELED,t,n);this.name="CanceledError"}fe.inherits(at,de,{__CANCEL__:true});function lt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function ut(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let r=0;let i=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[i];if(!s){s=l}n[r]=a;o[r]=l;let f=i;let d=0;while(f!==r){d+=n[f++];f=f%e}r=(r+1)%e;if(r===i){i=(i+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function dt(e,t){let n=0;let o=1e3/t;let r;let i;const s=(t,o=Date.now())=>{n=o;r=null;if(i){clearTimeout(i);i=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{r=e;if(!i){i=setTimeout((()=>{i=null;s(r)}),o-c)}}};const a=()=>r&&s(r);return[c,a]}const ht=(e,t,n=3)=>{let o=0;const r=ft(50,250);return dt((n=>{const i=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=i-o;const a=r(c);const l=i<=s;o=i;const u={loaded:i,total:s,progress:s?i/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-i)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const pt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const mt=e=>(...t)=>fe.asap((()=>e(...t)));var bt=Me.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,Me.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>true;var wt=Me.hasStandardBrowserEnv?{write(e,t,n,o,r,i,s){if(typeof document==="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];if(fe.isNumber(n)){c.push(`expires=${new Date(n).toUTCString()}`)}if(fe.isString(o)){c.push(`path=${o}`)}if(fe.isString(r)){c.push(`domain=${r}`)}if(i===true){c.push("secure")}if(fe.isString(s)){c.push(`SameSite=${s}`)}document.cookie=c.join("; ")},read(e){if(typeof document==="undefined")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,n){let o=!vt(t);if(e&&(o||n==false)){return gt(e,t)}return t}const xt=e=>e instanceof it?{...e}:e;function kt(e,t){t=t||{};const n={};function o(e,t,n,o){if(fe.isPlainObject(e)&&fe.isPlainObject(t)){return fe.merge.call({caseless:o},e,t)}else if(fe.isPlainObject(t)){return fe.merge({},t)}else if(fe.isArray(t)){return t.slice()}return t}function r(e,t,n,r){if(!fe.isUndefined(t)){return o(e,t,n,r)}else if(!fe.isUndefined(e)){return o(undefined,e,n,r)}}function i(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}else if(!fe.isUndefined(e)){return o(undefined,e)}}function c(n,r,i){if(i in t){return o(n,r)}else if(i in e){return o(undefined,n)}}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t,n)=>r(xt(e),xt(t),n,true)};fe.forEach(Object.keys({...e,...t}),(function o(i){const s=a[i]||r;const l=s(e[i],t[i],i);fe.isUndefined(l)&&s!==c||(n[i]=l)}));return n}var Ot=e=>{const t=kt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:c}=t;t.headers=s=it.from(s);t.url=Se(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(c){s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")))}if(fe.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if(fe.isFunction(n.getHeaders)){const e=n.getHeaders();const t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{if(t.includes(e.toLowerCase())){s.set(e,n)}}))}}if(Me.hasStandardBrowserEnv){o&&fe.isFunction(o)&&(o=o(t));if(o||o!==false&&bt(t.url)){const e=r&&i&&wt.read(i);if(e){s.set(r,e)}}}return t};const Rt=typeof XMLHttpRequest!=="undefined";var Et=Rt&&function(e){return new Promise((function t(n,o){const r=Ot(e);let i=r.data;const s=it.from(r.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=r;let u;let f,d;let h,p;function m(){h&&h();p&&p();r.cancelToken&&r.cancelToken.unsubscribe(u);r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,true);b.timeout=r.timeout;function w(){if(!b){return}const t=it.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const r=!c||c==="text"||c==="json"?b.responseText:b.response;const i={data:r,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};lt((function e(t){n(t);m()}),(function e(t){o(t);m()}),i);b=null}if("onloadend"in b){b.onloadend=w}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(w)}}b.onabort=function t(){if(!b){return}o(new de("Request aborted",de.ECONNABORTED,e,b));b=null};b.onerror=function t(n){const r=n&&n.message?n.message:"Network Error";const i=new de(r,de.ERR_NETWORK,e,b);i.event=n||null;o(i);b=null};b.ontimeout=function t(){let n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ae;if(r.timeoutErrorMessage){n=r.timeoutErrorMessage}o(new de(n,i.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,b));b=null};i===undefined&&s.setContentType(null);if("setRequestHeader"in b){fe.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!fe.isUndefined(r.withCredentials)){b.withCredentials=!!r.withCredentials}if(c&&c!=="json"){b.responseType=r.responseType}if(l){[d,p]=ht(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[f,h]=ht(a);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(r.cancelToken||r.signal){u=t=>{if(!b){return}o(!t||t.type?new at(null,e,b):t);b.abort();b=null};r.cancelToken&&r.cancelToken.subscribe(u);if(r.signal){r.signal.aborted?u():r.signal.addEventListener("abort",u)}}const v=ut(r.url);if(v&&Me.protocols.indexOf(v)===-1){o(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,e));return}b.send(i||null)}))};const St=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const r=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof de?t:new at(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null;r(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))}),t);const s=()=>{if(e){i&&clearTimeout(i);i=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}));e=null}};e.forEach((e=>e.addEventListener("abort",r)));const{signal:c}=n;c.unsubscribe=()=>fe.asap(s);return c}};var Tt=St;const jt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let r;while(o<n){r=o+t;yield e.slice(o,r);o=r}};const At=async function*(e,t){for await(const n of Ct(e)){yield*jt(n,t)}};const Ct=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const Ft=(e,t,n,o)=>{const r=At(e,t);let i=0;let s;let c=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return r.return()}},{highWaterMark:2})};const Nt=64*1024;const{isFunction:Pt}=fe;const Ut=(({Request:e,Response:t})=>({Request:e,Response:t}))(fe.global);const{ReadableStream:Bt,TextEncoder:It}=fe.global;const _t=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Dt=e=>{e=fe.merge.call({skipUndefined:true},Ut,e);const{fetch:t,Request:n,Response:o}=e;const r=t?Pt(t):typeof fetch==="function";const i=Pt(n);const s=Pt(o);if(!r){return false}const c=r&&Pt(Bt);const a=r&&(typeof It==="function"?(e=>t=>e.encode(t))(new It):async e=>new Uint8Array(await new n(e).arrayBuffer()));const l=i&&c&&_t((()=>{let e=false;const t=new n(Me.origin,{body:new Bt,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const u=s&&c&&_t((()=>fe.isReadableStream(new o("").body)));const f={stream:u&&(e=>e.body)};r&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!f[e]&&(f[e]=(t,n)=>{let o=t&&t[e];if(o){return o.call(t)}throw new de(`Response type '${e}' is not supported`,de.ERR_NOT_SUPPORT,n)})}))})();const d=async e=>{if(e==null){return 0}if(fe.isBlob(e)){return e.size}if(fe.isSpecCompliantForm(e)){const t=new n(Me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e)){return e.byteLength}if(fe.isURLSearchParams(e)){e=e+""}if(fe.isString(e)){return(await a(e)).byteLength}};const h=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n==null?d(t):n};return async e=>{let{url:r,method:s,data:c,signal:a,cancelToken:d,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:w,headers:v,withCredentials:g="same-origin",fetchOptions:y}=Ot(e);let x=t||fetch;w=w?(w+"").toLowerCase():"text";let k=Tt([a,d&&d.toAbortSignal()],p);let O=null;const R=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let E;try{if(b&&l&&s!=="get"&&s!=="head"&&(E=await h(v,c))!==0){let e=new n(r,{method:"POST",body:c,duplex:"half"});let t;if(fe.isFormData(c)&&(t=e.headers.get("content-type"))){v.setContentType(t)}if(e.body){const[t,n]=pt(E,ht(mt(b)));c=Ft(e.body,Nt,t,n)}}if(!fe.isString(g)){g=g?"include":"omit"}const t=i&&"credentials"in n.prototype;const a={...y,signal:k,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:t?g:undefined};O=i&&new n(r,a);let d=await(i?x(O,y):x(r,a));const p=u&&(w==="stream"||w==="response");if(u&&(m||p&&R)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=d[t]}));const t=fe.toFiniteNumber(d.headers.get("content-length"));const[n,r]=m&&pt(t,ht(mt(m),true))||[];d=new o(Ft(d.body,Nt,n,(()=>{r&&r();R&&R()})),e)}w=w||"text";let S=await f[fe.findKey(f,w)||"text"](d,e);!p&&R&&R();return await new Promise(((t,n)=>{lt(t,n,{data:S,headers:it.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:O})}))}catch(t){R&&R();if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,O),{cause:t.cause||t})}throw de.from(t,t&&t.code,e,O)}}};const Lt=new Map;const Mt=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t;const i=[o,r,n];let s=i.length,c=s,a,l,u=Lt;while(c--){a=i[c];l=u.get(a);l===undefined&&u.set(a,l=c?new Map:Dt(t));u=l}return l};Mt();const qt={http:me,xhr:Et,fetch:{get:Mt}};fe.forEach(qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const zt=e=>`- ${e}`;const $t=e=>fe.isFunction(e)||e===null||e===false;function Ht(e,t){e=fe.isArray(e)?e:[e];const{length:n}=e;let o;let r;const i={};for(let s=0;s<n;s++){o=e[s];let n;r=o;if(!$t(o)){r=qt[(n=String(o)).toLowerCase()];if(r===undefined){throw new de(`Unknown adapter '${n}'`)}}if(r&&(fe.isFunction(r)||(r=r.get(t)))){break}i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(zt).join("\n"):" "+zt(e[0]):"as no adapter specified";throw new de(`There is no suitable adapter to dispatch the request `+t,"ERR_NOT_SUPPORT")}return r}var Kt={getAdapter:Ht,adapters:qt};function Jt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new at(null,e)}}function Xt(e){Jt(e);e.headers=it.from(e.headers);e.data=st.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Kt.getAdapter(e.adapter||Xe.adapter,e);return t(e).then((function t(n){Jt(e);n.data=st.call(e,e.transformResponse,n);n.headers=it.from(n.headers);return n}),(function t(n){if(!ct(n)){Jt(e);if(n&&n.response){n.response.data=st.call(e,e.transformResponse,n.response);n.response.headers=it.from(n.response.headers)}}return Promise.reject(n)}))}const Wt="1.13.2";const Vt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Gt={};Vt.transitional=function e(t,n,o){function r(e,t){return"[Axios v"+Wt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,i)=>{if(t===false){throw new de(r(o," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED)}if(n&&!Gt[o]){Gt[o]=true;console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,i):true}};Vt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Zt(e,t,n){if(typeof e!=="object"){throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let r=o.length;while(r-- >0){const i=o[r];const s=t[i];if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new de("option "+i+" must be "+n,de.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}}var Qt={assertOptions:Zt,validators:Vt};const Yt=Qt.validators;class en{constructor(e){this.defaults=e||{};this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=kt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;if(n!==undefined){Qt.assertOptions(n,{silentJSONParsing:Yt.transitional(Yt.boolean),forcedJSONParsing:Yt.transitional(Yt.boolean),clarifyTimeoutError:Yt.transitional(Yt.boolean)},false)}if(o!=null){if(fe.isFunction(o)){t.paramsSerializer={serialize:o}}else{Qt.assertOptions(o,{encode:Yt.function,serialize:Yt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Qt.assertOptions(t,{baseUrl:Yt.spelling("baseURL"),withXsrfToken:Yt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&fe.merge(r.common,r[t.method]);r&&fe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]}));t.headers=it.concat(i,r);const s=[];let c=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}c=c&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!c){const e=[Xt.bind(this),undefined];e.unshift(...s);e.push(...a);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Xt.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=a.length;while(u<f){l=l.then(a[u++],a[u++])}return l}getUri(e){e=kt(this.defaults,e);const t=yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Se(t,e.params,e.paramsSerializer)}}fe.forEach(["delete","get","head","options"],(function e(t){en.prototype[t]=function(e,n){return this.request(kt(n||{},{method:t,url:e,data:(n||{}).data}))}}));fe.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,r,i){return this.request(kt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}en.prototype[t]=n();en.prototype[t+"Form"]=n(true)}));var tn=en;class nn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,r,i){if(n.reason){return}n.reason=new at(o,r,i);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new nn((function t(n){e=n}));return{token:t,cancel:e}}}var on=nn;function rn(e){return function t(n){return e.apply(null,n)}}function sn(e){return fe.isObject(e)&&e.isAxiosError===true}const cn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cn).forEach((([e,t])=>{cn[t]=e}));var an=cn;function ln(t){const n=new tn(t);const o=e(tn.prototype.request,n);fe.extend(o,tn.prototype,n,{allOwnKeys:true});fe.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return ln(kt(t,n))};return o}const un=ln(Xe);un.Axios=tn;un.CanceledError=at;un.CancelToken=on;un.isCancel=ct;un.VERSION=Wt;un.toFormData=xe;un.AxiosError=de;un.Cancel=un.CanceledError;un.all=function e(t){return Promise.all(t)};un.spread=rn;un.isAxiosError=sn;un.mergeConfig=kt;un.AxiosHeaders=it;un.formToJSON=e=>He(fe.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Kt.getAdapter;un.HttpStatusCode=an;un.default=un;d=un;return d}var m=p();var b=l(m);const w=u.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const v=()=>b.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:w}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const g='@-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:var(--verdocs-primary-font, "Inter", "Barlow", 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:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}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:var(--verdocs-primary-font, "Inter", "Barlow", 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:var(--verdocs-primary-font, "Inter", "Barlow", 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}';const y=`<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>`;const x=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.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-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=i(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;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||""}s(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));v().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(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})}handleSelectSuggestion(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}render(){var e,t,r,s,a,l,u,d,h,p,m,b,w,v,g,x,k,O;const R=this.first_name&&this.last_name&&c(this.email);const E=!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;const S=R&&E;const T=((r=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||r===void 0?void 0:r.enabled)===true;const j=[];if(((l=(a=(s=this.featureFlags)===null||s===void 0?void 0:s.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){j.push({label:"Passcode",value:"passcode"})}if(((h=(d=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||d===void 0?void 0:d.find((e=>e.name==="email-verification")))===null||h===void 0?void 0:h.enabled)===true){j.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){j.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(v=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||v===void 0?void 0:v.find((e=>e.name==="kba-verification")))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((O=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((e=>e.name==="id-verification")))===null||O===void 0?void 0:O.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},n("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},n("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:y}),n("div",{class:"details"},n("div",{class:"name"},i(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},n("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),T&&n("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},n("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=f(e.target.value)}})),n(o,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},j.length>0&&n("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},n("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Verification Methods:"),n("div",{key:"51370acfa10be18fa7783ee28849caaf9ad11fcb"},j.map(((e,t)=>n("div",{class:"option"},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.auth_methods.includes(e.value),onInput:t=>{if(t.target.checked){this.auth_methods=[...this.auth_methods,e.value]}else{this.auth_methods=this.auth_methods.filter((t=>t!==e.value))}}}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label)))))),this.auth_methods.includes("passcode")&&n("div",{key:"37cc47ae07fcee96a90ca0684307b2fa12436fbd",class:"row pin-code"},n("label",{key:"57b9975fcdf609ebcfd709f2cc646f74163eda15",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"5c9f4d7f4757512fa7c87e91adf731fe256050da",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"7bed0f7befff14122e821680fce895d64889212c",class:"row pin-code"},n("label",{key:"295f03231ca15e2a25895d8f6dca7b7507fc58fa"},"Delegation:"),n("div",{key:"21d03961df0853b3f1e4a4b3e9445e8a3ecf80ee"},n("div",{key:"1e70e144d4e678e9697039468549ef38606dc3b7",class:"option"},n("verdocs-checkbox",{key:"8f94ea2d0b3f1bc8831c8666d379ebc2a22fbb95",size:"small",id:"verdocs-delegator",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked}}),n("label",{key:"9ea3f9f359f7045aebd80367af0a7431d1e850e4",htmlFor:"verdocs-delegator"},"May delegate signing")))),n("div",{key:"90e07660115c7f41ade3aad5fe4eb93d7d8cb4fd",class:"row message"},n("label",{key:"0268f3ecd123de3c8d0e27b345253385157bfce6",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"526671a3e768cc6280e82d04fe4f86d0fd5678bd",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"9bfb44085c94a08a9d2957d031e263d398ab170b",class:"buttons"},n("div",{key:"2b21510d850071094dd7005c26de4e8cd14c992d",class:"flex-fill"}),n("verdocs-button",{key:"881527d8167c31490622f3e9f0252cfdd3139d58",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"3dbc5efa49eb696eedb2d50c06837b70abea5e80",label:"OK",size:"small",disabled:!S,onClick:!S?()=>{}:e=>this.handleSubmit(e)})))}};x.style=g;export{x as verdocs_contact_picker};
3
- //# sourceMappingURL=p-303ed47f.entry.js.map
1
+ import{r as e,c as t,h as n,F as o}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as r,formatFullName as i,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as u}from"./p-C_Xku1v2.js";import{f}from"./p-CmnR51jO.js";import"./p-dzBXqXlK.js";import"./p-dqxNbm_b.js";
2
+ /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */var d;var h;function p(){if(h)return d;h=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const{iterator:o,toStringTag:r}=Symbol;const i=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const s=e=>{e=e.toLowerCase();return t=>i(t)===e};const c=e=>t=>typeof t===e;const{isArray:l}=Array;const u=c("undefined");function f(e){return e!==null&&!u(e)&&e.constructor!==null&&!u(e.constructor)&&w(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=s("ArrayBuffer");function m(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&p(e.buffer)}return t}const b=c("string");const w=c("function");const v=c("number");const g=e=>e!==null&&typeof e==="object";const y=e=>e===true||e===false;const x=e=>{if(i(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(r in e)&&!(o in e)};const k=e=>{if(!g(e)||f(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const O=s("Date");const R=s("File");const E=s("Blob");const S=s("FileList");const T=e=>g(e)&&w(e.pipe);const j=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||w(e.append)&&((t=i(e))==="formdata"||t==="object"&&w(e.toString)&&e.toString()==="[object FormData]"))};const A=s("URLSearchParams");const[C,N,F,P]=["ReadableStream","Request","Response","Headers"].map(s);const U=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function B(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let r;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,r=e.length;o<r;o++){t.call(null,e[o],o,e)}}else{if(f(e)){return}const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=r.length;let s;for(o=0;o<i;o++){s=r[o];t.call(null,e[s],s,e)}}}function I(e,t){if(f(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let r;while(o-- >0){r=n[o];if(t===r.toLowerCase()){return r}}return null}const _=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:a})();const D=e=>!u(e)&&e!==_;function L(){const{caseless:e,skipUndefined:t}=D(this)&&this||{};const n={};const o=(o,r)=>{const i=e&&I(n,r)||r;if(x(n[i])&&x(o)){n[i]=L(n[i],o)}else if(x(o)){n[i]=L({},o)}else if(l(o)){n[i]=o.slice()}else if(!t||!u(o)){n[i]=o}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&B(arguments[e],o)}return n}const M=(t,n,o,{allOwnKeys:r}={})=>{B(n,((n,r)=>{if(o&&w(n)){t[r]=e(n,o)}else{t[r]=n}}),{allOwnKeys:r});return t};const q=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const z=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const $=(e,t,o,r)=>{let i;let s;let c;const a={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);s=i.length;while(s-- >0){c=i[s];if((!r||r(c,e,t))&&!a[c]){t[c]=e[c];a[c]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const H=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const K=e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const J=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const X=(e,t)=>{const n=e&&e[o];const r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const W=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const V=s("HTMLFormElement");const G=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const Q=s("RegExp");const Y=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};B(n,((n,r)=>{let i;if((i=t(n,r,e))!==false){o[r]=i||n}}));Object.defineProperties(e,o)};const ee=e=>{Y(e,((t,n)=>{if(w(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!w(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const te=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};l(e)?o(e):o(String(e).split(t));return n};const ne=()=>{};const oe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function re(e){return!!(e&&w(e.append)&&e[r]==="FormData"&&e[o])}const ie=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(f(e)){return e}if(!("toJSON"in e)){t[o]=e;const r=l(e)?[]:{};B(e,((e,t)=>{const i=n(e,o+1);!u(i)&&(r[t]=i)}));t[o]=undefined;return r}}return e};return n(e,0)};const se=s("AsyncFunction");const ce=e=>e&&(g(e)||w(e))&&w(e.then)&&w(e.catch);const ae=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{_.addEventListener("message",(({source:n,data:o})=>{if(n===_&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);_.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",w(_.postMessage));const le=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(_):typeof process!=="undefined"&&process.nextTick||ae;const ue=e=>e!=null&&w(e[o]);var fe={isArray:l,isArrayBuffer:p,isBuffer:f,isFormData:j,isArrayBufferView:m,isString:b,isNumber:v,isBoolean:y,isObject:g,isPlainObject:x,isEmptyObject:k,isReadableStream:C,isRequest:N,isResponse:F,isHeaders:P,isUndefined:u,isDate:O,isFile:R,isBlob:E,isRegExp:Q,isFunction:w,isStream:T,isURLSearchParams:A,isTypedArray:J,isFileList:S,forEach:B,merge:L,extend:M,trim:U,stripBOM:q,inherits:z,toFlatObject:$,kindOf:i,kindOfTest:s,endsWith:H,toArray:K,forEachEntry:X,matchAll:W,isHTMLForm:V,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:Y,freezeMethods:ee,toObjectSet:te,toCamelCase:G,noop:ne,toFiniteNumber:oe,findKey:I,global:_,isContextDefined:D,isSpecCompliantForm:re,toJSONObject:ie,isAsyncFn:se,isThenable:ce,setImmediate:ae,asap:le,isIterable:ue};function de(e,t,n,o,r){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);n&&(this.config=n);o&&(this.request=o);if(r){this.response=r;this.status=r.status?r.status:null}}fe.inherits(de,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:fe.toJSONObject(this.config),code:this.code,status:this.status}}});const he=de.prototype;const pe={};["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((e=>{pe[e]={value:e}}));Object.defineProperties(de,pe);Object.defineProperty(he,"isAxiosError",{value:true});de.from=(e,t,n,o,r,i)=>{const s=Object.create(he);fe.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));const c=e&&e.message?e.message:"Error";const a=t==null&&e?e.code:t;de.call(s,c,a,n,o,r);if(e&&s.cause==null){Object.defineProperty(s,"cause",{value:e,configurable:true})}s.name=e&&e.name||"Error";i&&Object.assign(s,i);return s};var me=null;function be(e){return fe.isPlainObject(e)||fe.isArray(e)}function we(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function ve(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=we(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function ge(e){return fe.isArray(e)&&!e.some(be)}const ye=fe.toFlatObject(fe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function xe(e,t,n){if(!fe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=fe.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!fe.isUndefined(n[t])}));const o=n.metaTokens;const r=n.visitor||u;const i=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&fe.isSpecCompliantForm(t);if(!fe.isFunction(r)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(fe.isDate(e)){return e.toISOString()}if(fe.isBoolean(e)){return e.toString()}if(!a&&fe.isBlob(e)){throw new de("Blob is not supported. Use a Buffer instead.")}if(fe.isArrayBuffer(e)||fe.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,r){let c=e;if(e&&!r&&typeof e==="object"){if(fe.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(fe.isArray(e)&&ge(e)||(fe.isFileList(e)||fe.endsWith(n,"[]"))&&(c=fe.toArray(e))){n=we(n);c.forEach((function e(o,r){!(fe.isUndefined(o)||o===null)&&t.append(s===true?ve([n],r,i):s===null?n:n+"[]",l(o))}));return false}}if(be(e)){return true}t.append(ve(r,n,i),l(e));return false}const f=[];const d=Object.assign(ye,{defaultVisitor:u,convertValue:l,isVisitable:be});function h(e,n){if(fe.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);fe.forEach(e,(function e(o,i){const s=!(fe.isUndefined(o)||o===null)&&r.call(t,o,fe.isString(i)?i.trim():i,n,d);if(s===true){h(o,n?n.concat(i):[i])}}));f.pop()}if(!fe.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function ke(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function Oe(e,t){this._pairs=[];e&&xe(e,this,t)}const Re=Oe.prototype;Re.append=function e(t,n){this._pairs.push([t,n])};Re.toString=function e(t){const n=t?function(e){return t.call(this,e,ke)}:ke;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function Ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Se(e,t,n){if(!t){return e}const o=n&&n.encode||Ee;if(fe.isFunction(n)){n={serialize:n}}const r=n&&n.serialize;let i;if(r){i=r(t,n)}else{i=fe.isURLSearchParams(t)?t.toString():new Oe(t,n).toString(o)}if(i){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Te{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){fe.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var je=Te;var Ae={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ce=typeof URLSearchParams!=="undefined"?URLSearchParams:Oe;var Ne=typeof FormData!=="undefined"?FormData:null;var Fe=typeof Blob!=="undefined"?Blob:null;var Pe={isBrowser:true,classes:{URLSearchParams:Ce,FormData:Ne,Blob:Fe},protocols:["http","https","file","blob","url","data"]};const Ue=typeof window!=="undefined"&&typeof document!=="undefined";const Be=typeof navigator==="object"&&navigator||undefined;const Ie=Ue&&(!Be||["ReactNative","NativeScript","NS"].indexOf(Be.product)<0);const _e=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const De=Ue&&window.location.href||"http://localhost";var Le=Object.freeze({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserWebWorkerEnv:_e,hasStandardBrowserEnv:Ie,navigator:Be,origin:De});var Me={...Le,...Pe};function qe(e,t){return xe(e,new Me.classes.URLSearchParams,{visitor:function(e,t,n,o){if(Me.isNode&&fe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function ze(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function $e(e){const t={};const n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++){i=n[o];t[i]=e[i]}return t}function He(e){function t(e,n,o,r){let i=e[r++];if(i==="__proto__")return true;const s=Number.isFinite(+i);const c=r>=e.length;i=!i&&fe.isArray(o)?o.length:i;if(c){if(fe.hasOwnProp(o,i)){o[i]=[o[i],n]}else{o[i]=n}return!s}if(!o[i]||!fe.isObject(o[i])){o[i]=[]}const a=t(e,n,o[i],r);if(a&&fe.isArray(o[i])){o[i]=$e(o[i])}return!s}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};fe.forEachEntry(e,((e,o)=>{t(ze(e),o,n,0)}));return n}return null}function Ke(e,t,n){if(fe.isString(e)){try{(0,JSON.parse)(e);return fe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Je={transitional:Ae,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const r=o.indexOf("application/json")>-1;const i=fe.isObject(t);if(i&&fe.isHTMLForm(t)){t=new FormData(t)}const s=fe.isFormData(t);if(s){return r?JSON.stringify(He(t)):t}if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t)){return t}if(fe.isArrayBufferView(t)){return t.buffer}if(fe.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1){return qe(t,this.formSerializer).toString()}if((c=fe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return xe(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(i||r){n.setContentType("application/json",false);return Ke(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Je.transitional;const o=n&&n.forcedJSONParsing;const r=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t)){return t}if(t&&fe.isString(t)&&(o&&!this.responseType||r)){const e=n&&n.silentJSONParsing;const o=!e&&r;try{return JSON.parse(t,this.parseReviver)}catch(e){if(o){if(e.name==="SyntaxError"){throw de.from(e,de.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:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};fe.forEach(["delete","get","head","post","put","patch"],(e=>{Je.headers[e]={}}));var Xe=Je;const We=fe.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 Ve=e=>{const t={};let n;let o;let r;e&&e.split("\n").forEach((function e(i){r=i.indexOf(":");n=i.substring(0,r).trim().toLowerCase();o=i.substring(r+1).trim();if(!n||t[n]&&We[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};const Ge=Symbol("internals");function Ze(e){return e&&String(e).trim().toLowerCase()}function Qe(e){if(e===false||e==null){return e}return fe.isArray(e)?e.map(Qe):String(e)}function Ye(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const et=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tt(e,t,n,o,r){if(fe.isFunction(o)){return o.call(this,t,n)}if(r){t=n}if(!fe.isString(t))return;if(fe.isString(o)){return t.indexOf(o)!==-1}if(fe.isRegExp(o)){return o.test(t)}}function nt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ot(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:true})}))}class rt{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Ze(t);if(!r){throw new Error("header name must be a non-empty string")}const i=fe.findKey(o,r);if(!i||o[i]===undefined||n===true||n===undefined&&o[i]!==false){o[i||t]=Qe(e)}}const i=(e,t)=>fe.forEach(e,((e,n)=>r(e,n,t)));if(fe.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(fe.isString(e)&&(e=e.trim())&&!et(e)){i(Ve(e),t)}else if(fe.isObject(e)&&fe.isIterable(e)){let n={},o,r;for(const t of e){if(!fe.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[r=t[0]]=(o=n[r])?fe.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}i(n,t)}else{e!=null&&r(t,e,n)}return this}get(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return Ye(e)}if(fe.isFunction(t)){return t.call(this,e,n)}if(fe.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Ze(e);if(e){const n=fe.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||tt(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function r(e){e=Ze(e);if(e){const r=fe.findKey(n,e);if(r&&(!t||tt(n,n[r],r,t))){delete n[r];o=true}}}if(fe.isArray(e)){e.forEach(r)}else{r(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const r=t[n];if(!e||tt(this,this[r],r,e,true)){delete this[r];o=true}}return o}normalize(e){const t=this;const n={};fe.forEach(this,((o,r)=>{const i=fe.findKey(n,r);if(i){t[i]=Qe(o);delete t[r];return}const s=e?nt(r):String(r).trim();if(s!==r){delete t[r]}t[s]=Qe(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);fe.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&fe.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Ge]=this[Ge]={accessors:{}};const n=t.accessors;const o=this.prototype;function r(e){const t=Ze(e);if(!n[t]){ot(o,e);n[t]=true}}fe.isArray(e)?e.forEach(r):r(e);return this}}rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(rt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));fe.freezeMethods(rt);var it=rt;function st(e,t){const n=this||Xe;const o=t||n;const r=it.from(o.headers);let i=o.data;fe.forEach(e,(function e(o){i=o.call(n,i,r.normalize(),t?t.status:undefined)}));r.normalize();return i}function ct(e){return!!(e&&e.__CANCEL__)}function at(e,t,n){de.call(this,e==null?"canceled":e,de.ERR_CANCELED,t,n);this.name="CanceledError"}fe.inherits(at,de,{__CANCEL__:true});function lt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function ut(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let r=0;let i=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[i];if(!s){s=l}n[r]=a;o[r]=l;let f=i;let d=0;while(f!==r){d+=n[f++];f=f%e}r=(r+1)%e;if(r===i){i=(i+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function dt(e,t){let n=0;let o=1e3/t;let r;let i;const s=(t,o=Date.now())=>{n=o;r=null;if(i){clearTimeout(i);i=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{r=e;if(!i){i=setTimeout((()=>{i=null;s(r)}),o-c)}}};const a=()=>r&&s(r);return[c,a]}const ht=(e,t,n=3)=>{let o=0;const r=ft(50,250);return dt((n=>{const i=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=i-o;const a=r(c);const l=i<=s;o=i;const u={loaded:i,total:s,progress:s?i/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-i)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const pt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const mt=e=>(...t)=>fe.asap((()=>e(...t)));var bt=Me.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,Me.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>true;var wt=Me.hasStandardBrowserEnv?{write(e,t,n,o,r,i,s){if(typeof document==="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];if(fe.isNumber(n)){c.push(`expires=${new Date(n).toUTCString()}`)}if(fe.isString(o)){c.push(`path=${o}`)}if(fe.isString(r)){c.push(`domain=${r}`)}if(i===true){c.push("secure")}if(fe.isString(s)){c.push(`SameSite=${s}`)}document.cookie=c.join("; ")},read(e){if(typeof document==="undefined")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function vt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,n){let o=!vt(t);if(e&&(o||n==false)){return gt(e,t)}return t}const xt=e=>e instanceof it?{...e}:e;function kt(e,t){t=t||{};const n={};function o(e,t,n,o){if(fe.isPlainObject(e)&&fe.isPlainObject(t)){return fe.merge.call({caseless:o},e,t)}else if(fe.isPlainObject(t)){return fe.merge({},t)}else if(fe.isArray(t)){return t.slice()}return t}function r(e,t,n,r){if(!fe.isUndefined(t)){return o(e,t,n,r)}else if(!fe.isUndefined(e)){return o(undefined,e,n,r)}}function i(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!fe.isUndefined(t)){return o(undefined,t)}else if(!fe.isUndefined(e)){return o(undefined,e)}}function c(n,r,i){if(i in t){return o(n,r)}else if(i in e){return o(undefined,n)}}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t,n)=>r(xt(e),xt(t),n,true)};fe.forEach(Object.keys({...e,...t}),(function o(i){const s=a[i]||r;const l=s(e[i],t[i],i);fe.isUndefined(l)&&s!==c||(n[i]=l)}));return n}var Ot=e=>{const t=kt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:c}=t;t.headers=s=it.from(s);t.url=Se(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(c){s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")))}if(fe.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if(fe.isFunction(n.getHeaders)){const e=n.getHeaders();const t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{if(t.includes(e.toLowerCase())){s.set(e,n)}}))}}if(Me.hasStandardBrowserEnv){o&&fe.isFunction(o)&&(o=o(t));if(o||o!==false&&bt(t.url)){const e=r&&i&&wt.read(i);if(e){s.set(r,e)}}}return t};const Rt=typeof XMLHttpRequest!=="undefined";var Et=Rt&&function(e){return new Promise((function t(n,o){const r=Ot(e);let i=r.data;const s=it.from(r.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=r;let u;let f,d;let h,p;function m(){h&&h();p&&p();r.cancelToken&&r.cancelToken.unsubscribe(u);r.signal&&r.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,true);b.timeout=r.timeout;function w(){if(!b){return}const t=it.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const r=!c||c==="text"||c==="json"?b.responseText:b.response;const i={data:r,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};lt((function e(t){n(t);m()}),(function e(t){o(t);m()}),i);b=null}if("onloadend"in b){b.onloadend=w}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(w)}}b.onabort=function t(){if(!b){return}o(new de("Request aborted",de.ECONNABORTED,e,b));b=null};b.onerror=function t(n){const r=n&&n.message?n.message:"Network Error";const i=new de(r,de.ERR_NETWORK,e,b);i.event=n||null;o(i);b=null};b.ontimeout=function t(){let n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ae;if(r.timeoutErrorMessage){n=r.timeoutErrorMessage}o(new de(n,i.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,b));b=null};i===undefined&&s.setContentType(null);if("setRequestHeader"in b){fe.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!fe.isUndefined(r.withCredentials)){b.withCredentials=!!r.withCredentials}if(c&&c!=="json"){b.responseType=r.responseType}if(l){[d,p]=ht(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[f,h]=ht(a);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(r.cancelToken||r.signal){u=t=>{if(!b){return}o(!t||t.type?new at(null,e,b):t);b.abort();b=null};r.cancelToken&&r.cancelToken.subscribe(u);if(r.signal){r.signal.aborted?u():r.signal.addEventListener("abort",u)}}const v=ut(r.url);if(v&&Me.protocols.indexOf(v)===-1){o(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,e));return}b.send(i||null)}))};const St=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const r=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof de?t:new at(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null;r(new de(`timeout ${t} of ms exceeded`,de.ETIMEDOUT))}),t);const s=()=>{if(e){i&&clearTimeout(i);i=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}));e=null}};e.forEach((e=>e.addEventListener("abort",r)));const{signal:c}=n;c.unsubscribe=()=>fe.asap(s);return c}};var Tt=St;const jt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let r;while(o<n){r=o+t;yield e.slice(o,r);o=r}};const At=async function*(e,t){for await(const n of Ct(e)){yield*jt(n,t)}};const Ct=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const Nt=(e,t,n,o)=>{const r=At(e,t);let i=0;let s;let c=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return r.return()}},{highWaterMark:2})};const Ft=64*1024;const{isFunction:Pt}=fe;const Ut=(({Request:e,Response:t})=>({Request:e,Response:t}))(fe.global);const{ReadableStream:Bt,TextEncoder:It}=fe.global;const _t=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Dt=e=>{e=fe.merge.call({skipUndefined:true},Ut,e);const{fetch:t,Request:n,Response:o}=e;const r=t?Pt(t):typeof fetch==="function";const i=Pt(n);const s=Pt(o);if(!r){return false}const c=r&&Pt(Bt);const a=r&&(typeof It==="function"?(e=>t=>e.encode(t))(new It):async e=>new Uint8Array(await new n(e).arrayBuffer()));const l=i&&c&&_t((()=>{let e=false;const t=new n(Me.origin,{body:new Bt,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const u=s&&c&&_t((()=>fe.isReadableStream(new o("").body)));const f={stream:u&&(e=>e.body)};r&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!f[e]&&(f[e]=(t,n)=>{let o=t&&t[e];if(o){return o.call(t)}throw new de(`Response type '${e}' is not supported`,de.ERR_NOT_SUPPORT,n)})}))})();const d=async e=>{if(e==null){return 0}if(fe.isBlob(e)){return e.size}if(fe.isSpecCompliantForm(e)){const t=new n(Me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(fe.isArrayBufferView(e)||fe.isArrayBuffer(e)){return e.byteLength}if(fe.isURLSearchParams(e)){e=e+""}if(fe.isString(e)){return(await a(e)).byteLength}};const h=async(e,t)=>{const n=fe.toFiniteNumber(e.getContentLength());return n==null?d(t):n};return async e=>{let{url:r,method:s,data:c,signal:a,cancelToken:d,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:w,headers:v,withCredentials:g="same-origin",fetchOptions:y}=Ot(e);let x=t||fetch;w=w?(w+"").toLowerCase():"text";let k=Tt([a,d&&d.toAbortSignal()],p);let O=null;const R=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let E;try{if(b&&l&&s!=="get"&&s!=="head"&&(E=await h(v,c))!==0){let e=new n(r,{method:"POST",body:c,duplex:"half"});let t;if(fe.isFormData(c)&&(t=e.headers.get("content-type"))){v.setContentType(t)}if(e.body){const[t,n]=pt(E,ht(mt(b)));c=Nt(e.body,Ft,t,n)}}if(!fe.isString(g)){g=g?"include":"omit"}const t=i&&"credentials"in n.prototype;const a={...y,signal:k,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:t?g:undefined};O=i&&new n(r,a);let d=await(i?x(O,y):x(r,a));const p=u&&(w==="stream"||w==="response");if(u&&(m||p&&R)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=d[t]}));const t=fe.toFiniteNumber(d.headers.get("content-length"));const[n,r]=m&&pt(t,ht(mt(m),true))||[];d=new o(Nt(d.body,Ft,n,(()=>{r&&r();R&&R()})),e)}w=w||"text";let S=await f[fe.findKey(f,w)||"text"](d,e);!p&&R&&R();return await new Promise(((t,n)=>{lt(t,n,{data:S,headers:it.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:O})}))}catch(t){R&&R();if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new de("Network Error",de.ERR_NETWORK,e,O),{cause:t.cause||t})}throw de.from(t,t&&t.code,e,O)}}};const Lt=new Map;const Mt=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t;const i=[o,r,n];let s=i.length,c=s,a,l,u=Lt;while(c--){a=i[c];l=u.get(a);l===undefined&&u.set(a,l=c?new Map:Dt(t));u=l}return l};Mt();const qt={http:me,xhr:Et,fetch:{get:Mt}};fe.forEach(qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const zt=e=>`- ${e}`;const $t=e=>fe.isFunction(e)||e===null||e===false;function Ht(e,t){e=fe.isArray(e)?e:[e];const{length:n}=e;let o;let r;const i={};for(let s=0;s<n;s++){o=e[s];let n;r=o;if(!$t(o)){r=qt[(n=String(o)).toLowerCase()];if(r===undefined){throw new de(`Unknown adapter '${n}'`)}}if(r&&(fe.isFunction(r)||(r=r.get(t)))){break}i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(zt).join("\n"):" "+zt(e[0]):"as no adapter specified";throw new de(`There is no suitable adapter to dispatch the request `+t,"ERR_NOT_SUPPORT")}return r}var Kt={getAdapter:Ht,adapters:qt};function Jt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new at(null,e)}}function Xt(e){Jt(e);e.headers=it.from(e.headers);e.data=st.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Kt.getAdapter(e.adapter||Xe.adapter,e);return t(e).then((function t(n){Jt(e);n.data=st.call(e,e.transformResponse,n);n.headers=it.from(n.headers);return n}),(function t(n){if(!ct(n)){Jt(e);if(n&&n.response){n.response.data=st.call(e,e.transformResponse,n.response);n.response.headers=it.from(n.response.headers)}}return Promise.reject(n)}))}const Wt="1.13.2";const Vt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Gt={};Vt.transitional=function e(t,n,o){function r(e,t){return"[Axios v"+Wt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,i)=>{if(t===false){throw new de(r(o," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED)}if(n&&!Gt[o]){Gt[o]=true;console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,i):true}};Vt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Zt(e,t,n){if(typeof e!=="object"){throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let r=o.length;while(r-- >0){const i=o[r];const s=t[i];if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new de("option "+i+" must be "+n,de.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new de("Unknown option "+i,de.ERR_BAD_OPTION)}}}var Qt={assertOptions:Zt,validators:Vt};const Yt=Qt.validators;class en{constructor(e){this.defaults=e||{};this.interceptors={request:new je,response:new je}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=kt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;if(n!==undefined){Qt.assertOptions(n,{silentJSONParsing:Yt.transitional(Yt.boolean),forcedJSONParsing:Yt.transitional(Yt.boolean),clarifyTimeoutError:Yt.transitional(Yt.boolean)},false)}if(o!=null){if(fe.isFunction(o)){t.paramsSerializer={serialize:o}}else{Qt.assertOptions(o,{encode:Yt.function,serialize:Yt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Qt.assertOptions(t,{baseUrl:Yt.spelling("baseURL"),withXsrfToken:Yt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&fe.merge(r.common,r[t.method]);r&&fe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]}));t.headers=it.concat(i,r);const s=[];let c=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}c=c&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!c){const e=[Xt.bind(this),undefined];e.unshift(...s);e.push(...a);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Xt.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=a.length;while(u<f){l=l.then(a[u++],a[u++])}return l}getUri(e){e=kt(this.defaults,e);const t=yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Se(t,e.params,e.paramsSerializer)}}fe.forEach(["delete","get","head","options"],(function e(t){en.prototype[t]=function(e,n){return this.request(kt(n||{},{method:t,url:e,data:(n||{}).data}))}}));fe.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,r,i){return this.request(kt(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}en.prototype[t]=n();en.prototype[t+"Form"]=n(true)}));var tn=en;class nn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,r,i){if(n.reason){return}n.reason=new at(o,r,i);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new nn((function t(n){e=n}));return{token:t,cancel:e}}}var on=nn;function rn(e){return function t(n){return e.apply(null,n)}}function sn(e){return fe.isObject(e)&&e.isAxiosError===true}const cn={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(cn).forEach((([e,t])=>{cn[t]=e}));var an=cn;function ln(t){const n=new tn(t);const o=e(tn.prototype.request,n);fe.extend(o,tn.prototype,n,{allOwnKeys:true});fe.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return ln(kt(t,n))};return o}const un=ln(Xe);un.Axios=tn;un.CanceledError=at;un.CancelToken=on;un.isCancel=ct;un.VERSION=Wt;un.toFormData=xe;un.AxiosError=de;un.Cancel=un.CanceledError;un.all=function e(t){return Promise.all(t)};un.spread=rn;un.isAxiosError=sn;un.mergeConfig=kt;un.AxiosHeaders=it;un.formToJSON=e=>He(fe.isHTMLForm(e)?new FormData(e):e);un.getAdapter=Kt.getAdapter;un.HttpStatusCode=an;un.default=un;d=un;return d}var m=p();var b=l(m);const w=u.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const v=()=>b.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:w}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const g='@-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:var(--verdocs-primary-font, "Inter", "Barlow", 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:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}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:var(--verdocs-primary-font, "Inter", "Barlow", 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:var(--verdocs-primary-font, "Inter", "Barlow", 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}';const y=`<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>`;const x=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.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-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=i(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;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||""}s(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));v().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(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})}handleSelectSuggestion(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}render(){var e,t,r,s,a,l,u,d,h,p,m,b,w,v,g,x,k,O;const R=this.first_name&&this.last_name&&c(this.email);const E=!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;const S=R&&E;const T=((r=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||r===void 0?void 0:r.enabled)===true;const j=[];if(((l=(a=(s=this.featureFlags)===null||s===void 0?void 0:s.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){j.push({label:"Passcode",value:"passcode"})}if(((h=(d=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||d===void 0?void 0:d.find((e=>e.name==="email-verification")))===null||h===void 0?void 0:h.enabled)===true){j.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){j.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(v=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||v===void 0?void 0:v.find((e=>e.name==="kba-verification")))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((O=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((e=>e.name==="id-verification")))===null||O===void 0?void 0:O.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},n("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},n("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:y}),n("div",{class:"details"},n("div",{class:"name"},i(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},n("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),T&&n("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},n("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=f(e.target.value)}})),n(o,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},j.length>0&&n("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},n("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Verification Methods:"),n("div",{key:"51370acfa10be18fa7783ee28849caaf9ad11fcb"},j.map(((e,t)=>n("div",{class:"option"},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.auth_methods.includes(e.value),onInput:t=>{if(t.target.checked){this.auth_methods=[...this.auth_methods,e.value]}else{this.auth_methods=this.auth_methods.filter((t=>t!==e.value))}}}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label)))))),this.auth_methods.includes("passcode")&&n("div",{key:"37cc47ae07fcee96a90ca0684307b2fa12436fbd",class:"row pin-code"},n("label",{key:"57b9975fcdf609ebcfd709f2cc646f74163eda15",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"5c9f4d7f4757512fa7c87e91adf731fe256050da",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"7bed0f7befff14122e821680fce895d64889212c",class:"row pin-code"},n("label",{key:"295f03231ca15e2a25895d8f6dca7b7507fc58fa"},"Delegation:"),n("div",{key:"21d03961df0853b3f1e4a4b3e9445e8a3ecf80ee"},n("div",{key:"1e70e144d4e678e9697039468549ef38606dc3b7",class:"option"},n("verdocs-checkbox",{key:"8f94ea2d0b3f1bc8831c8666d379ebc2a22fbb95",size:"small",id:"verdocs-delegator",checked:this.delegator,onInput:e=>{this.delegator=e.target.checked}}),n("label",{key:"9ea3f9f359f7045aebd80367af0a7431d1e850e4",htmlFor:"verdocs-delegator"},"May delegate signing")))),n("div",{key:"90e07660115c7f41ade3aad5fe4eb93d7d8cb4fd",class:"row message"},n("label",{key:"0268f3ecd123de3c8d0e27b345253385157bfce6",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"526671a3e768cc6280e82d04fe4f86d0fd5678bd",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"9bfb44085c94a08a9d2957d031e263d398ab170b",class:"buttons"},n("div",{key:"2b21510d850071094dd7005c26de4e8cd14c992d",class:"flex-fill"}),n("verdocs-button",{key:"881527d8167c31490622f3e9f0252cfdd3139d58",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"3dbc5efa49eb696eedb2d50c06837b70abea5e80",label:"OK",size:"small",disabled:!S,onClick:!S?()=>{}:e=>this.handleSubmit(e)})))}};x.style=g;export{x as verdocs_contact_picker};
3
+ //# sourceMappingURL=p-9cdc0980.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-BRVQ3Epx.system.js","sources":["src/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.scss?tag=verdocs-envelopes-list","src/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-envelopes-list {\n display: flex;\n padding: 10px;\n font-size: 18px;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: $label-color;\n flex-direction: column;\n font-family: $primary-font;\n\n @media screen and (max-width: 800px) {\n font-size: 14px;\n }\n\n .envelope-placeholder {\n height: 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: $verdocs-grey-3;\n }\n\n .header {\n width: 100%;\n row-gap: 4px;\n display: flex;\n flex-wrap: wrap;\n column-gap: 12px;\n margin: 0 0 10px 0;\n align-items: center;\n flex-direction: row;\n\n .filter {\n width: 300px;\n }\n\n verdocs-text-input {\n margin: 0;\n\n input {\n height: 32px;\n }\n }\n }\n\n .filter {\n align-items: center;\n }\n\n .envelope {\n width: 100%;\n margin: 3px 0;\n background: $verdocs-grey-4;\n\n &:hover {\n cursor: pointer;\n background: $verdocs-grey-3;\n }\n\n .inner {\n gap: 12px;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n flex-direction: row;\n align-items: center;\n container-type: inline-size;\n\n svg {\n width: 24px;\n height: 24px;\n }\n }\n }\n\n .vert-spacer {\n height: 50px;\n display: flex;\n flex: 0 0 1px;\n border-right: 1px solid #dad8dd;\n\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .envelope-icon {\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n verdocs-checkbox {\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .last-modified {\n color: #444;\n display: flex;\n flex: 0 0 180px;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .envelope-name {\n flex: 1;\n display: flex;\n color: #000000;\n line-height: 28px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .envelope-recipients {\n color: #4b5563;\n font-weight: 700;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .empty-text {\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n }\n\n .containing {\n gap: 12px;\n display: flex;\n align-items: center;\n flex-direction: row;\n }\n\n verdocs-status-indicator {\n @media screen and (max-width: 800px) {\n font-size: 14px;\n }\n }\n}\n","import {Component, Prop, Host, h, State, Event, EventEmitter, Watch} from '@stencil/core';\nimport {userCanCancelEnvelope, userCanAct, cancelEnvelope, integerSequence, formatFullName} from '@verdocs/js-sdk';\nimport {IEnvelope, IListEnvelopesParams, TEnvelopeStatus, VerdocsEndpoint, getEnvelopes, getRecipientsWithActions} from '@verdocs/js-sdk';\nimport {IFilterOption} from '../../controls/verdocs-quick-filter/verdocs-quick-filter';\nimport {saveEnvelopesAsZip} from '../../../utils/utils';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\n\nconst DocumentIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"#000000\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z\" /></svg>`;\n\nconst ViewFilters: IFilterOption[] = [\n {value: 'all', label: 'All'},\n {value: 'inbox', label: 'Inbox'},\n {value: 'sent', label: 'Sent'},\n {value: 'completed', label: 'Completed'},\n {value: 'action', label: 'Action Required'},\n {value: 'waiting', label: 'Waiting on Others'},\n];\n\nconst StatusFilters: IFilterOption[] = [\n {value: 'all', label: 'All'},\n {value: 'pending', label: 'Pending'},\n {value: 'in progress', label: 'In Progress'},\n {value: 'complete', label: 'Completed'},\n {value: 'declined', label: 'Declined'},\n {value: 'canceled', label: 'Canceled'},\n];\n\nconst SortFilters: IFilterOption[] = [\n {value: 'created_at', label: 'Created'},\n {value: 'updated_at', label: 'Updated'},\n {value: 'canceled_at', label: 'Canceled'},\n {value: 'envelope_name', label: 'Name'},\n {value: 'envelope_status', label: 'Status'},\n];\n\n/**\n * Displays a list of envelopes matching specified conditions.\n */\n@Component({\n tag: 'verdocs-envelopes-list',\n styleUrl: 'verdocs-envelopes-list.scss',\n})\nexport class VerdocsEnvelopesList {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The filtered view to display. \"completed\" will show envelopes that have been submitted. \"action\" will\n * show envelopes where the user is a recipient and the envelope is not completed. \"waiting\" will show\n * only envelopes where the user is the sender and the envelope is not completed.\n */\n @Prop({reflect: true, mutable: true}) view?: 'all' | 'inbox' | 'sent' | 'completed' | 'action' | 'waiting' = undefined;\n\n /**\n * The status value to filter by\n */\n @Prop({reflect: true, mutable: true}) status: TEnvelopeStatus | 'all' = 'all';\n\n /**\n * The sort field to use\n */\n @Prop({reflect: true, mutable: true}) sort: 'name' | 'created_at' | 'updated_at' | 'canceled_at' | 'status' = 'created_at';\n\n /**\n * If set, filter envelopes by the specified string.\n */\n @Prop({reflect: true, mutable: true}) match: string = '';\n\n /**\n * If set, filter envelopes by the specified \"containing\" value.\n */\n // @Prop({reflect: true, mutable: true}) containing: string = '';\n\n /**\n * Whether or not pagination should be enabled.\n */\n @Prop() showPagination = true;\n\n /**\n * The number of rows to display per page.\n */\n @Prop() rowsPerPage = 10;\n\n /**\n * The initial page number to select. Pagination is internally controlled but may be overriden by the\n * host applicaiton.\n */\n @Prop() selectedPage = 0;\n\n /**\n * Event fired when the user changes their view. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeView: EventEmitter<'all' | 'inbox' | 'sent' | 'completed' | 'action' | 'waiting'>;\n\n /**\n * Event fired when the user changes their status filter. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeStatus: EventEmitter<TEnvelopeStatus | 'all'>;\n\n /**\n * Event fired when the user changes their sort order. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeSort: EventEmitter<'name' | 'created_at' | 'updated_at' | 'canceled_at' | 'status'>;\n\n /**\n * Event fired when the user changes the match filter. This is fired for every inputChange event (every character\n * typed). This event is provided for balance with the other events, but host applications should generally not\n * save this value. Users might appreciate applications remembering their sorting or filtering preferences, but\n * probably not their search terms.\n */\n @Event({composed: true}) changeMatch: EventEmitter<string>;\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 user clicks an activity entry. Typically the host application will use this to navigate\n * to the envelope detail view.\n */\n @Event({composed: true}) viewEnvelope: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the user clicks to finish the envelope.\n */\n @Event({composed: true}) finishEnvelope: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n @State() count = 0;\n @State() initiallyLoaded = false;\n @State() loading = true;\n @State() selectedEnvelopes: IEnvelope[] = [];\n @State() envelopes: IEnvelope[] = [];\n\n @Watch('view')\n handleViewUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('status')\n handleStatusUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('sort')\n handleSortUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('match')\n handleMatchUpdated() {\n return this.queryEnvelopes();\n }\n\n // @Watch('containing')\n // handleContainingUpdated() {\n // return this.queryEnvelopes();\n // }\n\n @Watch('selectedPage')\n handlePageUpdated() {\n return this.queryEnvelopes();\n }\n\n componentWillLoad() {\n this.endpoint.onSessionChanged((_, session, profile) => {\n console.log('[ENVELOPES_LIST] onSessionChanged', session, profile);\n });\n this.endpoint.loadSession();\n }\n\n async componentDidLoad() {\n await this.queryEnvelopes();\n this.initiallyLoaded = true;\n }\n\n async queryEnvelopes() {\n try {\n this.loading = true;\n let queryParams: IListEnvelopesParams = {\n page: this.selectedPage,\n // sort: this.sort,\n rows: this.rowsPerPage,\n };\n\n switch (this.view) {\n case 'all':\n queryParams = {\n ...queryParams,\n // sort: this.sort,\n // direction: this.sort === 'name' ? 'asc' : 'desc',\n status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]) as TEnvelopeStatus[],\n };\n break;\n\n case 'inbox':\n queryParams = {\n ...queryParams,\n // is_recipient: true,\n // sort: 'updated_at',\n // recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],\n };\n break;\n\n case 'sent':\n queryParams = {\n ...queryParams,\n // FIXME\n // is_owner: true,\n // sort: 'updated_at',\n };\n break;\n\n case 'action':\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // is_recipient: true,\n status: ['pending', 'in progress'],\n // recipient_status: ['invited', 'opened', 'signed'],\n };\n break;\n\n case 'waiting':\n queryParams = {\n ...queryParams,\n // FIXME\n // is_owner: true,\n // sort: 'updated_at',\n // direction: 'desc',\n status: ['pending', 'in progress'],\n };\n break;\n\n case 'completed':\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // direction: 'desc',\n status: ['complete'],\n };\n break;\n\n default:\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // direction: 'desc',\n status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]) as TEnvelopeStatus[],\n };\n }\n\n // These filters should only be applied in \"View All\" mode. Otherwise the user could have set them to something\n // then changed the view e.g. to Inbox and the filter could break the view (e.g. View:Inbox, Status:Declined\n // would never return anything).\n if (this.view === 'all') {\n if (this.status !== 'all') {\n queryParams.status = [this.status as TEnvelopeStatus];\n }\n }\n\n if (this.sort !== 'updated_at') {\n // queryParams.sort = this.sort;\n // queryParams.direction = this.sort === 'name' ? 'asc' : 'desc';\n }\n\n if (this.match.trim()) {\n // queryParams.match = this.match.trim();\n }\n\n // if (this.containing.trim()) {\n // queryParams.field_value = this.containing.trim();\n // }\n\n const response = await getEnvelopes(this.endpoint, queryParams);\n this.envelopes = response.envelopes;\n this.count = response.count;\n this.loading = false;\n } catch (e) {\n this.loading = false;\n console.log('[ENVELOPES] Error listing envelopes', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n handleDownload() {\n saveEnvelopesAsZip(this.endpoint, this.selectedEnvelopes)\n .then(() => {\n this.selectedEnvelopes = [];\n })\n .catch(e => {\n console.log('[ENVELOPES] Download error', e);\n VerdocsToast('Download error: ' + e.message, {style: 'error'});\n });\n }\n\n downloadEnvelope(envelope: IEnvelope) {\n saveEnvelopesAsZip(this.endpoint, [envelope]).catch(e => {\n console.log('[ENVELOPES] Download error', e);\n VerdocsToast('Download error: ' + e.message, {style: 'error'});\n });\n }\n\n render() {\n return (\n <Host>\n <div class=\"header\">\n <div class=\"filter\">\n <verdocs-text-input\n id=\"verdocs-filter-name\"\n value={this.match}\n clearable={true}\n autocomplete=\"off\"\n placeholder=\"Filter by Name, Recipient, or Field...\"\n onFocusout={(e: any) => {\n // We don't locally filter envelopes because there are too many fields to match against efficiently.\n this.match = e.target.value.trim();\n this.changeMatch?.emit(this.match);\n }}\n />\n </div>\n\n <verdocs-quick-filter\n label=\"View\"\n value={this.view}\n options={ViewFilters}\n onOptionSelected={e => {\n this.view = e.detail.value as any;\n }}\n />\n\n {this.view === 'all' && (\n <verdocs-quick-filter\n label=\"Status\"\n value={this.status}\n options={StatusFilters}\n onOptionSelected={e => {\n this.status = e.detail.value as any;\n }}\n />\n )}\n\n {this.view === 'all' && (\n <verdocs-quick-filter\n label=\"Sort By\"\n value={this.sort}\n options={SortFilters}\n onOptionSelected={e => {\n this.sort = e.detail.value as any;\n }}\n />\n )}\n\n {/*<div class=\"containing\">*/}\n {/* <div class=\"filter\">*/}\n {/* <verdocs-text-input*/}\n {/* id=\"verdocs-filter-containing\"*/}\n {/* value={this.containing}*/}\n {/* autocomplete=\"off\"*/}\n {/* placeholder=\"Fields Containing...\"*/}\n {/* onInput={(e: any) => {*/}\n {/* this.containing = e.target.value;*/}\n {/* }}*/}\n {/* />*/}\n {/* </div>*/}\n {/*</div>*/}\n\n {this.loading && <verdocs-spinner mode=\"dark\" size={24} />}\n\n <div style={{display: 'flex', flex: '1'}} />\n\n {this.selectedEnvelopes.length > 0 && <verdocs-button label={`Download (${this.selectedEnvelopes.length})`} onClick={() => this.handleDownload()} />}\n </div>\n\n {this.envelopes.map(envelope => {\n const recipientsWithActions = getRecipientsWithActions(envelope);\n const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);\n const userRole = recipientsWithActions.find(recipient => recipient.email === this.endpoint.session?.email || '');\n const userCanFinish = userRole && userCanCancel && userCanAct(this.endpoint.session?.email || '', recipientsWithActions);\n\n const menuOptions = [\n {label: 'View Envelope', id: 'view'},\n {label: 'Finish Envelope', id: 'finish', disabled: !userCanFinish},\n {label: 'Download', id: 'download'},\n {label: 'Cancel', id: 'cancel', disabled: !userCanCancel},\n ];\n\n return (\n <div class=\"envelope\" key={envelope.id} onClick={() => this.viewEnvelope?.emit({endpoint: this.endpoint, envelope})}>\n <div class=\"inner\">\n <verdocs-checkbox\n checked={this.selectedEnvelopes.findIndex(e => e.id === envelope.id) !== -1}\n onClick={e => e.stopPropagation()} // So this doesn't trigger navigation\n onInput={(e: any) => {\n if (e.target.checked) {\n this.selectedEnvelopes = [...this.selectedEnvelopes, envelope];\n } else {\n this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);\n }\n }}\n />\n\n <div class=\"vert-spacer\" />\n <span innerHTML={DocumentIcon} class=\"envelope-icon\" />\n\n <div class=\"envelope-name\">\n {envelope.name}:&nbsp; <div class=\"envelope-recipients\">{envelope.recipients.map(r => formatFullName(r))}</div>\n </div>\n\n <div class=\"vert-spacer\" />\n <verdocs-status-indicator envelope={envelope} style={{width: '125px'}} />\n\n <div class=\"vert-spacer\" />\n <div class=\"last-modified\">{new Date(envelope.updated_at).toLocaleString()}</div>\n\n <div class=\"vert-spacer\" />\n <verdocs-dropdown\n options={menuOptions}\n onOptionSelected={e => {\n switch (e.detail.id) {\n case 'view':\n this.viewEnvelope?.emit({endpoint: this.endpoint, envelope});\n break;\n case 'finish':\n this.finishEnvelope?.emit({endpoint: this.endpoint, envelope});\n break;\n case 'download':\n this.downloadEnvelope(envelope);\n break;\n case 'cancel':\n if (window.confirm('Are you sure you want to cancel this envelope?')) {\n cancelEnvelope(this.endpoint, envelope.id)\n .then(() => VerdocsToast('Envelope canceled'))\n .catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, {style: 'error'}));\n this.queryEnvelopes().catch(() => {});\n }\n break;\n }\n }}\n />\n </div>\n </div>\n );\n })}\n\n {!this.initiallyLoaded && (\n <div style={{width: '100%'}}>\n {integerSequence(0, this.rowsPerPage).map(() => (\n <div class=\"envelope-placeholder\" />\n ))}\n </div>\n )}\n\n {this.initiallyLoaded && !this.envelopes.length && <div class=\"empty-text\">No matching envelopes found. Please adjust your filters and try again.</div>}\n\n {this.initiallyLoaded && this.envelopes.length && this.showPagination ? (\n <div style={{marginTop: '20px'}}>\n <verdocs-pagination\n selectedPage={this.selectedPage}\n perPage={this.rowsPerPage}\n itemCount={this.count}\n onSelectPage={e => {\n this.selectedPage = e.detail.selectedPage;\n }}\n />\n </div>\n ) : (\n <div />\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA,MAAM,uBAAuB,GAAG,+kGAA+kG;;MCQ/mG,MAAM,YAAY,GAAG,CAAA,0vBAAA,CAA4vB;MAEjxB,MAAM,WAAW,GAAoB;MACnC,IAAA,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;MAC5B,IAAA,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC;MAChC,IAAA,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAC;MAC9B,IAAA,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAC;MACxC,IAAA,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAC;MAC3C,IAAA,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,mBAAmB,EAAC;OAC/C;MAED,MAAM,aAAa,GAAoB;MACrC,IAAA,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;MAC5B,IAAA,EAAC,KAAK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,CACI;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"p-B0XOGp0Z.system.js","sources":["src/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.scss?tag=verdocs-envelopes-list","src/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-envelopes-list {\n display: flex;\n padding: 10px;\n font-size: 18px;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: $label-color;\n flex-direction: column;\n font-family: $primary-font;\n\n @media screen and (max-width: 800px) {\n font-size: 14px;\n }\n\n .envelope-placeholder {\n height: 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: $verdocs-grey-3;\n }\n\n .header {\n width: 100%;\n row-gap: 4px;\n display: flex;\n flex-wrap: wrap;\n column-gap: 12px;\n margin: 0 0 10px 0;\n align-items: center;\n flex-direction: row;\n\n .filter {\n width: 300px;\n }\n\n verdocs-text-input {\n margin: 0;\n\n input {\n height: 32px;\n }\n }\n }\n\n .filter {\n align-items: center;\n }\n\n .envelope {\n width: 100%;\n margin: 3px 0;\n background: $verdocs-grey-4;\n\n &:hover {\n cursor: pointer;\n background: $verdocs-grey-3;\n }\n\n .inner {\n gap: 12px;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n flex-direction: row;\n align-items: center;\n container-type: inline-size;\n\n svg {\n width: 24px;\n height: 24px;\n }\n }\n }\n\n .vert-spacer {\n height: 50px;\n display: flex;\n flex: 0 0 1px;\n border-right: 1px solid #dad8dd;\n\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .envelope-icon {\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n verdocs-checkbox {\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .last-modified {\n color: #444;\n display: flex;\n flex: 0 0 180px;\n flex-direction: row;\n align-items: center;\n white-space: nowrap;\n\n @media screen and (max-width: 800px) {\n display: none;\n }\n }\n\n .envelope-name {\n flex: 1;\n display: flex;\n color: #000000;\n line-height: 28px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .envelope-recipients {\n color: #4b5563;\n font-weight: 700;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .empty-text {\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n }\n\n .containing {\n gap: 12px;\n display: flex;\n align-items: center;\n flex-direction: row;\n }\n\n verdocs-status-indicator {\n @media screen and (max-width: 800px) {\n font-size: 14px;\n }\n }\n}\n","import {Component, Prop, Host, h, State, Event, EventEmitter, Watch} from '@stencil/core';\nimport {userCanCancelEnvelope, userCanAct, cancelEnvelope, integerSequence, formatFullName} from '@verdocs/js-sdk';\nimport {IEnvelope, IListEnvelopesParams, TEnvelopeStatus, VerdocsEndpoint, getEnvelopes, getRecipientsWithActions} from '@verdocs/js-sdk';\nimport {IFilterOption} from '../../controls/verdocs-quick-filter/verdocs-quick-filter';\nimport {saveEnvelopesAsZip} from '../../../utils/utils';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\n\nconst DocumentIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"#000000\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z\" /></svg>`;\n\nconst ViewFilters: IFilterOption[] = [\n {value: 'all', label: 'All'},\n {value: 'inbox', label: 'Inbox'},\n {value: 'sent', label: 'Sent'},\n {value: 'completed', label: 'Completed'},\n {value: 'action', label: 'Action Required'},\n {value: 'waiting', label: 'Waiting on Others'},\n];\n\nconst StatusFilters: IFilterOption[] = [\n {value: 'all', label: 'All'},\n {value: 'pending', label: 'Pending'},\n {value: 'in progress', label: 'In Progress'},\n {value: 'complete', label: 'Completed'},\n {value: 'declined', label: 'Declined'},\n {value: 'canceled', label: 'Canceled'},\n];\n\nconst SortFilters: IFilterOption[] = [\n {value: 'created_at', label: 'Created'},\n {value: 'updated_at', label: 'Updated'},\n {value: 'canceled_at', label: 'Canceled'},\n {value: 'envelope_name', label: 'Name'},\n {value: 'envelope_status', label: 'Status'},\n];\n\n/**\n * Displays a list of envelopes matching specified conditions.\n */\n@Component({\n tag: 'verdocs-envelopes-list',\n styleUrl: 'verdocs-envelopes-list.scss',\n})\nexport class VerdocsEnvelopesList {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The filtered view to display. \"completed\" will show envelopes that have been submitted. \"action\" will\n * show envelopes where the user is a recipient and the envelope is not completed. \"waiting\" will show\n * only envelopes where the user is the sender and the envelope is not completed.\n */\n @Prop({reflect: true, mutable: true}) view?: 'all' | 'inbox' | 'sent' | 'completed' | 'action' | 'waiting' = undefined;\n\n /**\n * The status value to filter by\n */\n @Prop({reflect: true, mutable: true}) status: TEnvelopeStatus | 'all' = 'all';\n\n /**\n * The sort field to use\n */\n @Prop({reflect: true, mutable: true}) sort: 'name' | 'created_at' | 'updated_at' | 'canceled_at' | 'status' = 'created_at';\n\n /**\n * If set, filter envelopes by the specified string.\n */\n @Prop({reflect: true, mutable: true}) match: string = '';\n\n /**\n * If set, filter envelopes by the specified \"containing\" value.\n */\n // @Prop({reflect: true, mutable: true}) containing: string = '';\n\n /**\n * Whether or not pagination should be enabled.\n */\n @Prop() showPagination = true;\n\n /**\n * The number of rows to display per page.\n */\n @Prop() rowsPerPage = 10;\n\n /**\n * The initial page number to select. Pagination is internally controlled but may be overriden by the\n * host applicaiton.\n */\n @Prop() selectedPage = 0;\n\n /**\n * Event fired when the user changes their view. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeView: EventEmitter<'all' | 'inbox' | 'sent' | 'completed' | 'action' | 'waiting'>;\n\n /**\n * Event fired when the user changes their status filter. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeStatus: EventEmitter<TEnvelopeStatus | 'all'>;\n\n /**\n * Event fired when the user changes their sort order. Host applications can use this to save the user's preferences.\n */\n @Event({composed: true}) changeSort: EventEmitter<'name' | 'created_at' | 'updated_at' | 'canceled_at' | 'status'>;\n\n /**\n * Event fired when the user changes the match filter. This is fired for every inputChange event (every character\n * typed). This event is provided for balance with the other events, but host applications should generally not\n * save this value. Users might appreciate applications remembering their sorting or filtering preferences, but\n * probably not their search terms.\n */\n @Event({composed: true}) changeMatch: EventEmitter<string>;\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 user clicks an activity entry. Typically the host application will use this to navigate\n * to the envelope detail view.\n */\n @Event({composed: true}) viewEnvelope: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the user clicks to finish the envelope.\n */\n @Event({composed: true}) finishEnvelope: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n @State() count = 0;\n @State() initiallyLoaded = false;\n @State() loading = true;\n @State() selectedEnvelopes: IEnvelope[] = [];\n @State() envelopes: IEnvelope[] = [];\n\n @Watch('view')\n handleViewUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('status')\n handleStatusUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('sort')\n handleSortUpdated() {\n return this.queryEnvelopes();\n }\n\n @Watch('match')\n handleMatchUpdated() {\n return this.queryEnvelopes();\n }\n\n // @Watch('containing')\n // handleContainingUpdated() {\n // return this.queryEnvelopes();\n // }\n\n @Watch('selectedPage')\n handlePageUpdated() {\n return this.queryEnvelopes();\n }\n\n componentWillLoad() {\n this.endpoint.onSessionChanged((_, session, profile) => {\n console.log('[ENVELOPES_LIST] onSessionChanged', session, profile);\n });\n this.endpoint.loadSession();\n }\n\n async componentDidLoad() {\n await this.queryEnvelopes();\n this.initiallyLoaded = true;\n }\n\n async queryEnvelopes() {\n try {\n this.loading = true;\n let queryParams: IListEnvelopesParams = {\n page: this.selectedPage,\n // sort: this.sort,\n rows: this.rowsPerPage,\n };\n\n switch (this.view) {\n case 'all':\n queryParams = {\n ...queryParams,\n // sort: this.sort,\n // direction: this.sort === 'name' ? 'asc' : 'desc',\n status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]) as TEnvelopeStatus[],\n };\n break;\n\n case 'inbox':\n queryParams = {\n ...queryParams,\n // is_recipient: true,\n // sort: 'updated_at',\n // recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],\n };\n break;\n\n case 'sent':\n queryParams = {\n ...queryParams,\n // FIXME\n // is_owner: true,\n // sort: 'updated_at',\n };\n break;\n\n case 'action':\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // is_recipient: true,\n status: ['pending', 'in progress'],\n // recipient_status: ['invited', 'opened', 'signed'],\n };\n break;\n\n case 'waiting':\n queryParams = {\n ...queryParams,\n // FIXME\n // is_owner: true,\n // sort: 'updated_at',\n // direction: 'desc',\n status: ['pending', 'in progress'],\n };\n break;\n\n case 'completed':\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // direction: 'desc',\n status: ['complete'],\n };\n break;\n\n default:\n queryParams = {\n ...queryParams,\n // sort: 'updated_at',\n // direction: 'desc',\n status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]) as TEnvelopeStatus[],\n };\n }\n\n // These filters should only be applied in \"View All\" mode. Otherwise the user could have set them to something\n // then changed the view e.g. to Inbox and the filter could break the view (e.g. View:Inbox, Status:Declined\n // would never return anything).\n if (this.view === 'all') {\n if (this.status !== 'all') {\n queryParams.status = [this.status as TEnvelopeStatus];\n }\n }\n\n if (this.sort !== 'updated_at') {\n // queryParams.sort = this.sort;\n // queryParams.direction = this.sort === 'name' ? 'asc' : 'desc';\n }\n\n if (this.match.trim()) {\n // queryParams.match = this.match.trim();\n }\n\n // if (this.containing.trim()) {\n // queryParams.field_value = this.containing.trim();\n // }\n\n const response = await getEnvelopes(this.endpoint, queryParams);\n this.envelopes = response.envelopes;\n this.count = response.count;\n this.loading = false;\n } catch (e) {\n this.loading = false;\n console.log('[ENVELOPES] Error listing envelopes', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n }\n }\n\n handleDownload() {\n saveEnvelopesAsZip(this.endpoint, this.selectedEnvelopes)\n .then(() => {\n this.selectedEnvelopes = [];\n })\n .catch(e => {\n console.log('[ENVELOPES] Download error', e);\n VerdocsToast('Download error: ' + e.message, {style: 'error'});\n });\n }\n\n downloadEnvelope(envelope: IEnvelope) {\n saveEnvelopesAsZip(this.endpoint, [envelope]).catch(e => {\n console.log('[ENVELOPES] Download error', e);\n VerdocsToast('Download error: ' + e.message, {style: 'error'});\n });\n }\n\n render() {\n return (\n <Host>\n <div class=\"header\">\n <div class=\"filter\">\n <verdocs-text-input\n id=\"verdocs-filter-name\"\n value={this.match}\n clearable={true}\n autocomplete=\"off\"\n placeholder=\"Filter by Name, Recipient, or Field...\"\n onFocusout={(e: any) => {\n // We don't locally filter envelopes because there are too many fields to match against efficiently.\n this.match = e.target.value.trim();\n this.changeMatch?.emit(this.match);\n }}\n />\n </div>\n\n <verdocs-quick-filter\n label=\"View\"\n value={this.view}\n options={ViewFilters}\n onOptionSelected={e => {\n this.view = e.detail.value as any;\n }}\n />\n\n {this.view === 'all' && (\n <verdocs-quick-filter\n label=\"Status\"\n value={this.status}\n options={StatusFilters}\n onOptionSelected={e => {\n this.status = e.detail.value as any;\n }}\n />\n )}\n\n {this.view === 'all' && (\n <verdocs-quick-filter\n label=\"Sort By\"\n value={this.sort}\n options={SortFilters}\n onOptionSelected={e => {\n this.sort = e.detail.value as any;\n }}\n />\n )}\n\n {/*<div class=\"containing\">*/}\n {/* <div class=\"filter\">*/}\n {/* <verdocs-text-input*/}\n {/* id=\"verdocs-filter-containing\"*/}\n {/* value={this.containing}*/}\n {/* autocomplete=\"off\"*/}\n {/* placeholder=\"Fields Containing...\"*/}\n {/* onInput={(e: any) => {*/}\n {/* this.containing = e.target.value;*/}\n {/* }}*/}\n {/* />*/}\n {/* </div>*/}\n {/*</div>*/}\n\n {this.loading && <verdocs-spinner mode=\"dark\" size={24} />}\n\n <div style={{display: 'flex', flex: '1'}} />\n\n {this.selectedEnvelopes.length > 0 && <verdocs-button label={`Download (${this.selectedEnvelopes.length})`} onClick={() => this.handleDownload()} />}\n </div>\n\n {this.envelopes.map(envelope => {\n const recipientsWithActions = getRecipientsWithActions(envelope);\n const userCanCancel = userCanCancelEnvelope(this.endpoint.profile, envelope);\n const userRole = recipientsWithActions.find(recipient => recipient.email === this.endpoint.session?.email || '');\n const userCanFinish = userRole && userCanCancel && userCanAct(this.endpoint.session?.email || '', recipientsWithActions);\n\n const menuOptions = [\n {label: 'View Envelope', id: 'view'},\n {label: 'Finish Envelope', id: 'finish', disabled: !userCanFinish},\n {label: 'Download', id: 'download'},\n {label: 'Cancel', id: 'cancel', disabled: !userCanCancel},\n ];\n\n return (\n <div class=\"envelope\" key={envelope.id} onClick={() => this.viewEnvelope?.emit({endpoint: this.endpoint, envelope})}>\n <div class=\"inner\">\n <verdocs-checkbox\n checked={this.selectedEnvelopes.findIndex(e => e.id === envelope.id) !== -1}\n onClick={e => e.stopPropagation()} // So this doesn't trigger navigation\n onInput={(e: any) => {\n if (e.target.checked) {\n this.selectedEnvelopes = [...this.selectedEnvelopes, envelope];\n } else {\n this.selectedEnvelopes = this.selectedEnvelopes.filter(e => e.id !== envelope.id);\n }\n }}\n />\n\n <div class=\"vert-spacer\" />\n <span innerHTML={DocumentIcon} class=\"envelope-icon\" />\n\n <div class=\"envelope-name\">\n {envelope.name}:&nbsp; <div class=\"envelope-recipients\">{envelope.recipients.map(r => formatFullName(r))}</div>\n </div>\n\n <div class=\"vert-spacer\" />\n <verdocs-status-indicator envelope={envelope} style={{width: '125px'}} />\n\n <div class=\"vert-spacer\" />\n <div class=\"last-modified\">{new Date(envelope.updated_at).toLocaleString()}</div>\n\n <div class=\"vert-spacer\" />\n <verdocs-dropdown\n options={menuOptions}\n onOptionSelected={e => {\n switch (e.detail.id) {\n case 'view':\n this.viewEnvelope?.emit({endpoint: this.endpoint, envelope});\n break;\n case 'finish':\n this.finishEnvelope?.emit({endpoint: this.endpoint, envelope});\n break;\n case 'download':\n this.downloadEnvelope(envelope);\n break;\n case 'cancel':\n if (window.confirm('Are you sure you want to cancel this envelope?')) {\n cancelEnvelope(this.endpoint, envelope.id)\n .then(() => VerdocsToast('Envelope canceled'))\n .catch(e => VerdocsToast('Unable to cancel envelope: ' + e.messabge, {style: 'error'}));\n this.queryEnvelopes().catch(() => {});\n }\n break;\n }\n }}\n />\n </div>\n </div>\n );\n })}\n\n {!this.initiallyLoaded && (\n <div style={{width: '100%'}}>\n {integerSequence(0, this.rowsPerPage).map(() => (\n <div class=\"envelope-placeholder\" />\n ))}\n </div>\n )}\n\n {this.initiallyLoaded && !this.envelopes.length && <div class=\"empty-text\">No matching envelopes found. Please adjust your filters and try again.</div>}\n\n {this.initiallyLoaded && this.envelopes.length && this.showPagination ? (\n <div style={{marginTop: '20px'}}>\n <verdocs-pagination\n selectedPage={this.selectedPage}\n perPage={this.rowsPerPage}\n itemCount={this.count}\n onSelectPage={e => {\n this.selectedPage = e.detail.selectedPage;\n }}\n />\n </div>\n ) : (\n <div />\n )}\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;MAAA,MAAM,uBAAuB,GAAG,+kGAA+kG;;MCQ/mG,MAAM,YAAY,GAAG,CAAA,0vBAAA,CAA4vB;MAEjxB,MAAM,WAAW,GAAoB;MACnC,IAAA,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;MAC5B,IAAA,EAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAC;MAChC,IAAA,EAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAC;MAC9B,IAAA,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAC;MACxC,IAAA,EAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,iBAAiB,EAAC;MAC3C,IAAA,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,mBAAmB,EAAC;OAC/C;MAED,MAAM,aAAa,GAAoB;MACrC,IAAA,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC;MAC5B,IAAA,EAAC,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAC;MACpC,IAAA,EAAC,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAC;MAC5C,IAAA,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAC;MACvC,IAAA,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAC;MACtC,IAAA,EAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAC;OACvC;MAED,MAAM,WAAW,GAAoB;MACnC,IAAA,EAAC,KAAK,EAAE,YA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