@hubsync/esign-web-sdk 6.9.16 → 6.9.18
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.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-DsDnct9q.js → utils-CrIt-iH8.js} +5 -4
- package/dist/cjs/utils-CrIt-iH8.js.map +1 -0
- package/dist/cjs/verdocs-adopt-signature-dialog_8.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +3 -2
- package/dist/cjs/verdocs-auth.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +11 -11
- package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-download-dialog_4.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-preview_6.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +20 -8
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -2
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +20 -7
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +16 -20
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
- package/dist/collection/utils/utils.js +3 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/{p-CYn5K-BZ.js → p-BbJx5d0P.js} +13 -13
- package/dist/components/{p-CYn5K-BZ.js.map → p-BbJx5d0P.js.map} +1 -1
- package/dist/components/{p-VTS_VS83.js → p-C69H1C9q.js} +3 -3
- package/dist/components/{p-VTS_VS83.js.map → p-C69H1C9q.js.map} +1 -1
- package/dist/components/{p-BaO4plGo.js → p-D5TpXhYZ.js} +3 -3
- package/dist/components/{p-BaO4plGo.js.map → p-D5TpXhYZ.js.map} +1 -1
- package/dist/components/{p-ChFp-cOQ.js → p-DEKYkRZf.js} +3 -3
- package/dist/components/{p-ChFp-cOQ.js.map → p-DEKYkRZf.js.map} +1 -1
- package/dist/components/{p-8ewXKOGW.js → p-DZrvJ_QT.js} +4 -4
- package/dist/components/{p-8ewXKOGW.js.map → p-DZrvJ_QT.js.map} +1 -1
- package/dist/components/{p-jm2NkWGW.js → p-DemYa78C.js} +3 -3
- package/dist/components/{p-jm2NkWGW.js.map → p-DemYa78C.js.map} +1 -1
- package/dist/components/{p-oGuKYCp7.js → p-Yji-KKbG.js} +3 -3
- package/dist/components/{p-oGuKYCp7.js.map → p-Yji-KKbG.js.map} +1 -1
- package/dist/components/{p-gK0uom6W.js → p-gqexdqWf.js} +3 -3
- package/dist/components/{p-gK0uom6W.js.map → p-gqexdqWf.js.map} +1 -1
- package/dist/components/{p-uDMGPNi1.js → p-oM7A1Gvt.js} +5 -4
- package/dist/components/p-oM7A1Gvt.js.map +1 -0
- package/dist/components/{p-vHtreMnt.js → p-yM0XEtHG.js} +4 -4
- package/dist/components/{p-vHtreMnt.js.map → p-yM0XEtHG.js.map} +1 -1
- package/dist/components/verdocs-auth.js +3 -2
- package/dist/components/verdocs-auth.js.map +1 -1
- package/dist/components/verdocs-build.js +5 -5
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-envelope-document-page.js +1 -1
- package/dist/components/verdocs-envelopes-list.js +2 -2
- package/dist/components/verdocs-preview.js +1 -1
- package/dist/components/verdocs-quick-filter.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +24 -11
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/components/verdocs-signing-progress.js +1 -1
- package/dist/components/verdocs-template-document-page.js +1 -1
- package/dist/components/verdocs-template-fields.js +1 -1
- package/dist/components/verdocs-templates-list.js +1 -1
- package/dist/components/verdocs-view.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-uh_j0UF0.js → utils-BNF0xNkf.js} +5 -4
- package/dist/esm/utils-BNF0xNkf.js.map +1 -0
- package/dist/esm/verdocs-adopt-signature-dialog_8.entry.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +3 -2
- package/dist/esm/verdocs-auth.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +11 -11
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm/verdocs-download-dialog_4.entry.js +1 -1
- package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm/verdocs-preview_6.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +20 -8
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/utils-BNF0xNkf.js +2 -0
- package/dist/esm-es5/utils-BNF0xNkf.js.map +1 -0
- package/dist/esm-es5/verdocs-adopt-signature-dialog_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +4 -1
- package/dist/types/components.d.ts +4 -4
- package/dist/verdocs-web-sdk/{p-cf879144.system.entry.js → p-0eafa1e3.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-2af69301.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-2af69301.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-b75776a3.entry.js → p-314cbdad.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-39feb8f2.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-39feb8f2.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-139ea366.system.entry.js → p-4b321497.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-d6d34add.entry.js → p-5a6a6147.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-430f78f9.entry.js → p-5d030925.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-60751680.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-60751680.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-13fb4096.system.entry.js → p-64844189.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-a63632b6.entry.js → p-866d81f0.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-f72fdf31.entry.js → p-8fadd122.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-393f3ba5.entry.js → p-991ddc1f.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-995b9279.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-995b9279.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-CbwELqke.system.js.map → p-9wnrF26l.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-MoANGFzv.system.js.map → p-CbqUqUv4.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-DVfiBeS0.js +2 -0
- package/dist/verdocs-web-sdk/p-DVfiBeS0.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-DkDfJddJ.system.js.map → p-DXE6EXiC.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/p-DbTkqCUh.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-DcRPq1A1.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-DesrErWD.system.js +2 -0
- package/dist/verdocs-web-sdk/p-DesrErWD.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-C9XoQGh9.system.js.map → p-DkxUbQAG.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-C4k3mJ4w.system.js.map → p-DupzcKs4.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ea72677d.system.entry.js → p-b3e679e7.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-fa8eee5b.entry.js → p-b8b5315b.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-babf7fed.system.entry.js → p-c52ab2c1.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-66bd6b6c.system.entry.js → p-c876f4f3.system.entry.js} +3 -3
- package/dist/verdocs-web-sdk/{p-CRc1Px4z.system.js.map → p-dBdGvIUa.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-b65e0c0e.system.entry.js → p-eb7be296.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-CUyag7sv.system.js.map → p-zrEYCZSF.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/verdocs-auth.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/utils-DsDnct9q.js.map +0 -1
- package/dist/components/p-uDMGPNi1.js.map +0 -1
- package/dist/esm/utils-uh_j0UF0.js.map +0 -1
- package/dist/esm-es5/utils-uh_j0UF0.js +0 -2
- package/dist/esm-es5/utils-uh_j0UF0.js.map +0 -1
- package/dist/verdocs-web-sdk/p-2eab47a9.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-2eab47a9.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-945b6e74.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-945b6e74.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-95037fa9.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-95037fa9.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-B67Th1JG.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-B_N44g5c.system.js +0 -2
- package/dist/verdocs-web-sdk/p-B_N44g5c.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-CMBZT5Qy.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-D-UAsibj.js +0 -2
- package/dist/verdocs-web-sdk/p-D-UAsibj.js.map +0 -1
- package/dist/verdocs-web-sdk/p-af8aaa52.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-af8aaa52.entry.js.map +0 -1
- /package/dist/verdocs-web-sdk/{p-cf879144.system.entry.js.map → p-0eafa1e3.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b75776a3.entry.js.map → p-314cbdad.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-139ea366.system.entry.js.map → p-4b321497.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-d6d34add.entry.js.map → p-5a6a6147.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-430f78f9.entry.js.map → p-5d030925.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-13fb4096.system.entry.js.map → p-64844189.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-a63632b6.entry.js.map → p-866d81f0.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-f72fdf31.entry.js.map → p-8fadd122.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-393f3ba5.entry.js.map → p-991ddc1f.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-ea72677d.system.entry.js.map → p-b3e679e7.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-fa8eee5b.entry.js.map → p-b8b5315b.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-babf7fed.system.entry.js.map → p-c52ab2c1.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-66bd6b6c.system.entry.js.map → p-c876f4f3.system.entry.js.map} +0 -0
- /package/dist/verdocs-web-sdk/{p-b65e0c0e.system.entry.js.map → p-eb7be296.system.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as s,h as i,H as l}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-D-UAsibj.js";import{V as v}from"./p-D97GxsI-.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-dzBXqXlK.js";import"./p-BqoC0yeA.js";const x='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const m=`<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>`;const u=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const b=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const w=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const g=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"611433a9feffcaca1874a94fce731f4d2898401f"},i("div",{key:"eb108133035825176f5b6013737ad80d54d7c8f3",class:"header"},i("div",{key:"49162b67701c65cb8fadd468110b9feacc92f9d8",class:"filter"},i("verdocs-text-input",{key:"2e24ffdd068714d876f4df52db13c79ecf94bc91",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"901a8fa8232ae5b916ab89ae3e6858282e8ecb66",label:"View",value:this.view,options:u,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"a096a0f1cb7e5e670d222e37beaa2c7f88c75bea",label:"Status",value:this.status,options:b,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"0d9ea48f80aa50db5e0cf01dbafcd8165a69aed6",label:"Sort By",value:this.sort,options:w,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"d1ae1ff162a87e65203b34b58aef048d4b4dedd3",mode:"dark",size:24}),i("div",{key:"f5130409e9986a6f9b064712be38f710e9ce20ec",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"f6be39ddf8ce0cfdb2f545df8c099b25068c1218",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:m,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,": ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"7a33fbdb5c41a07c341cda66c2b4a4468814f8b6",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"4413485f67724c33e109b625cb24e8d820a2926c",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};g.style=x;export{g as verdocs_envelopes_list};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as s,h as i,H as l}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as t,getEnvelopes as a,integerSequence as o,getRecipientsWithActions as n,userCanCancelEnvelope as d,userCanAct as r,formatFullName as c,cancelEnvelope as p}from"@verdocs/js-sdk";import{s as h}from"./p-DVfiBeS0.js";import{V as v}from"./p-D97GxsI-.js";import{S as f}from"./p-C1sRVZWv.js";import"./p-dzBXqXlK.js";import"./p-BqoC0yeA.js";const x='verdocs-envelopes-list{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}@media screen and (max-width: 800px){verdocs-envelopes-list{font-size:14px}}verdocs-envelopes-list .envelope-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-envelopes-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-envelopes-list .header .filter{width:300px}verdocs-envelopes-list .header verdocs-text-input{margin:0}verdocs-envelopes-list .header verdocs-text-input input{height:32px}verdocs-envelopes-list .filter{-ms-flex-align:center;align-items:center}verdocs-envelopes-list .envelope{width:100%;margin:3px 0;background:#ffffff}verdocs-envelopes-list .envelope:hover{cursor:pointer;background:#f5f5fa}verdocs-envelopes-list .envelope .inner{gap:12px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;container-type:inline-size}verdocs-envelopes-list .envelope .inner svg{width:24px;height:24px}verdocs-envelopes-list .vert-spacer{height:50px;display:-ms-flexbox;display:flex;-ms-flex:0 0 1px;flex:0 0 1px;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-envelopes-list .vert-spacer{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list .envelope-icon{display:none}}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-checkbox{display:none}}verdocs-envelopes-list .last-modified{color:#444;display:-ms-flexbox;display:flex;-ms-flex:0 0 180px;flex:0 0 180px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;white-space:nowrap}@media screen and (max-width: 800px){verdocs-envelopes-list .last-modified{display:none}}verdocs-envelopes-list .envelope-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:#000000;line-height:28px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .envelope-recipients{color:#4b5563;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}verdocs-envelopes-list .empty-text{text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-envelopes-list .containing{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media screen and (max-width: 800px){verdocs-envelopes-list verdocs-status-indicator{font-size:14px}}';const m=`<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>`;const u=[{value:"all",label:"All"},{value:"inbox",label:"Inbox"},{value:"sent",label:"Sent"},{value:"completed",label:"Completed"},{value:"action",label:"Action Required"},{value:"waiting",label:"Waiting on Others"}];const b=[{value:"all",label:"All"},{value:"pending",label:"Pending"},{value:"in progress",label:"In Progress"},{value:"complete",label:"Completed"},{value:"declined",label:"Declined"},{value:"canceled",label:"Canceled"}];const w=[{value:"created_at",label:"Created"},{value:"updated_at",label:"Updated"},{value:"canceled_at",label:"Canceled"},{value:"envelope_name",label:"Name"},{value:"envelope_status",label:"Status"}];const g=class{constructor(i){e(this,i);this.changeView=s(this,"changeView");this.changeStatus=s(this,"changeStatus");this.changeSort=s(this,"changeSort");this.changeMatch=s(this,"changeMatch");this.sdkError=s(this,"sdkError");this.viewEnvelope=s(this,"viewEnvelope");this.finishEnvelope=s(this,"finishEnvelope");this.endpoint=t.getDefault();this.view=undefined;this.status="all";this.sort="created_at";this.match="";this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.selectedEnvelopes=[];this.envelopes=[]}handleViewUpdated(){return this.queryEnvelopes()}handleStatusUpdated(){return this.queryEnvelopes()}handleSortUpdated(){return this.queryEnvelopes()}handleMatchUpdated(){return this.queryEnvelopes()}handlePageUpdated(){return this.queryEnvelopes()}componentWillLoad(){this.endpoint.onSessionChanged(((e,s,i)=>{console.log("[ENVELOPES_LIST] onSessionChanged",s,i)}));this.endpoint.loadSession()}async componentDidLoad(){await this.queryEnvelopes();this.initiallyLoaded=true}async queryEnvelopes(){var e,s,i;try{this.loading=true;let e={page:this.selectedPage,rows:this.rowsPerPage};switch(this.view){case"all":e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]};break;case"inbox":e={...e};break;case"sent":e={...e};break;case"action":e={...e,status:["pending","in progress"]};break;case"waiting":e={...e,status:["pending","in progress"]};break;case"completed":e={...e,status:["complete"]};break;default:e={...e,status:this.status==="all"?["pending","in progress","complete","declined","canceled"]:[this.status]}}if(this.view==="all"){if(this.status!=="all"){e.status=[this.status]}}if(this.match.trim());const s=await a(this.endpoint,e);this.envelopes=s.envelopes;this.count=s.count;this.loading=false}catch(l){this.loading=false;console.log("[ENVELOPES] Error listing envelopes",l);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new f(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(i=l.response)===null||i===void 0?void 0:i.data))}}handleDownload(){h(this.endpoint,this.selectedEnvelopes).then((()=>{this.selectedEnvelopes=[]})).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}downloadEnvelope(e){h(this.endpoint,[e]).catch((e=>{console.log("[ENVELOPES] Download error",e);v("Download error: "+e.message,{style:"error"})}))}render(){return i(l,{key:"611433a9feffcaca1874a94fce731f4d2898401f"},i("div",{key:"eb108133035825176f5b6013737ad80d54d7c8f3",class:"header"},i("div",{key:"49162b67701c65cb8fadd468110b9feacc92f9d8",class:"filter"},i("verdocs-text-input",{key:"2e24ffdd068714d876f4df52db13c79ecf94bc91",id:"verdocs-filter-name",value:this.match,clearable:true,autocomplete:"off",placeholder:"Filter by Name, Recipient, or Field...",onFocusout:e=>{var s;this.match=e.target.value.trim();(s=this.changeMatch)===null||s===void 0?void 0:s.emit(this.match)}})),i("verdocs-quick-filter",{key:"901a8fa8232ae5b916ab89ae3e6858282e8ecb66",label:"View",value:this.view,options:u,onOptionSelected:e=>{this.view=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"a096a0f1cb7e5e670d222e37beaa2c7f88c75bea",label:"Status",value:this.status,options:b,onOptionSelected:e=>{this.status=e.detail.value}}),this.view==="all"&&i("verdocs-quick-filter",{key:"0d9ea48f80aa50db5e0cf01dbafcd8165a69aed6",label:"Sort By",value:this.sort,options:w,onOptionSelected:e=>{this.sort=e.detail.value}}),this.loading&&i("verdocs-spinner",{key:"d1ae1ff162a87e65203b34b58aef048d4b4dedd3",mode:"dark",size:24}),i("div",{key:"f5130409e9986a6f9b064712be38f710e9ce20ec",style:{display:"flex",flex:"1"}}),this.selectedEnvelopes.length>0&&i("verdocs-button",{key:"f6be39ddf8ce0cfdb2f545df8c099b25068c1218",label:`Download (${this.selectedEnvelopes.length})`,onClick:()=>this.handleDownload()})),this.envelopes.map((e=>{var s;const l=n(e);const t=d(this.endpoint.profile,e);const a=l.find((e=>{var s;return e.email===((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||""}));const o=a&&t&&r(((s=this.endpoint.session)===null||s===void 0?void 0:s.email)||"",l);const h=[{label:"View Envelope",id:"view"},{label:"Finish Envelope",id:"finish",disabled:!o},{label:"Download",id:"download"},{label:"Cancel",id:"cancel",disabled:!t}];return i("div",{class:"envelope",key:e.id,onClick:()=>{var s;return(s=this.viewEnvelope)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:e})}},i("div",{class:"inner"},i("verdocs-checkbox",{checked:this.selectedEnvelopes.findIndex((s=>s.id===e.id))!==-1,onClick:e=>e.stopPropagation(),onInput:s=>{if(s.target.checked){this.selectedEnvelopes=[...this.selectedEnvelopes,e]}else{this.selectedEnvelopes=this.selectedEnvelopes.filter((s=>s.id!==e.id))}}}),i("div",{class:"vert-spacer"}),i("span",{innerHTML:m,class:"envelope-icon"}),i("div",{class:"envelope-name"},e.name,": ",i("div",{class:"envelope-recipients"},e.recipients.map((e=>c(e))))),i("div",{class:"vert-spacer"}),i("verdocs-status-indicator",{envelope:e,style:{width:"125px"}}),i("div",{class:"vert-spacer"}),i("div",{class:"last-modified"},new Date(e.updated_at).toLocaleString()),i("div",{class:"vert-spacer"}),i("verdocs-dropdown",{options:h,onOptionSelected:s=>{var i,l;switch(s.detail.id){case"view":(i=this.viewEnvelope)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:e});break;case"finish":(l=this.finishEnvelope)===null||l===void 0?void 0:l.emit({endpoint:this.endpoint,envelope:e});break;case"download":this.downloadEnvelope(e);break;case"cancel":if(window.confirm("Are you sure you want to cancel this envelope?")){p(this.endpoint,e.id).then((()=>v("Envelope canceled"))).catch((e=>v("Unable to cancel envelope: "+e.messabge,{style:"error"})));this.queryEnvelopes().catch((()=>{}))}break}}})))})),!this.initiallyLoaded&&i("div",{key:"7a33fbdb5c41a07c341cda66c2b4a4468814f8b6",style:{width:"100%"}},o(0,this.rowsPerPage).map((()=>i("div",{class:"envelope-placeholder"})))),this.initiallyLoaded&&!this.envelopes.length&&i("div",{key:"4413485f67724c33e109b625cb24e8d820a2926c",class:"empty-text"},"No matching envelopes found. Please adjust your filters and try again."),this.initiallyLoaded&&this.envelopes.length&&this.showPagination?i("div",{style:{marginTop:"20px"}},i("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):i("div",null))}static get watchers(){return{view:["handleViewUpdated"],status:["handleStatusUpdated"],sort:["handleSortUpdated"],match:["handleMatchUpdated"],selectedPage:["handlePageUpdated"]}}};g.style=x;export{g as verdocs_envelopes_list};
|
|
2
|
+
//# sourceMappingURL=p-5a6a6147.entry.js.map
|
|
@@ -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 i,formatFullName as r,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as
|
|
2
|
-
/*! Axios v1.15.0 Copyright (c) 2026 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:i}=Symbol;const r=(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=>r(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 y=e=>e!==null&&typeof e==="object";const g=e=>e===true||e===false;const x=e=>{if(r(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(i in e)&&!(o in e)};const k=e=>{if(!y(e)||f(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const R=s("Date");const O=s("File");const S=e=>!!(e&&typeof e.uri!=="undefined");const T=e=>e&&typeof e.getParts!=="undefined";const E=s("Blob");const j=s("FileList");const A=e=>y(e)&&w(e.pipe);function C(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof a!=="undefined")return a;return{}}const N=C();const F=typeof N.FormData!=="undefined"?N.FormData:undefined;const P=e=>{let t;return e&&(F&&e instanceof F||w(e.append)&&((t=r(e))==="formdata"||t==="object"&&w(e.toString)&&e.toString()==="[object FormData]"))};const U=s("URLSearchParams");const[B,I,_,q]=["ReadableStream","Request","Response","Headers"].map(s);const D=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{if(f(e)){return}const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function M(e,t){if(f(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const z=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:a})();const $=e=>!u(e)&&e!==z;function H(){const{caseless:e,skipUndefined:t}=$(this)&&this||{};const n={};const o=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype"){return}const r=e&&M(n,i)||i;if(x(n[r])&&x(o)){n[r]=H(n[r],o)}else if(x(o)){n[r]=H({},o)}else if(l(o)){n[r]=o.slice()}else if(!t||!u(o)){n[r]=o}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&L(arguments[e],o)}return n}const K=(t,n,o,{allOwnKeys:i}={})=>{L(n,((n,i)=>{if(o&&w(n)){Object.defineProperty(t,i,{value:e(n,o),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(t,i,{value:n,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:i});return t};const J=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const X=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const W=(e,t,o,i)=>{let r;let s;let c;const a={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){c=r[s];if((!i||i(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 V=(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 G=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 Z=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const Q=(e,t)=>{const n=e&&e[o];const i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}};const Y=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const ee=s("HTMLFormElement");const te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const oe=s("RegExp");const ie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};L(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const re=e=>{ie(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 se=(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 ce=()=>{};const ae=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function le(e){return!!(e&&w(e.append)&&e[i]==="FormData"&&e[o])}const ue=e=>{const t=new Array(10);const n=(e,o)=>{if(y(e)){if(t.indexOf(e)>=0){return}if(f(e)){return e}if(!("toJSON"in e)){t[o]=e;const i=l(e)?[]:{};L(e,((e,t)=>{const r=n(e,o+1);!u(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const fe=s("AsyncFunction");const de=e=>e&&(y(e)||w(e))&&w(e.then)&&w(e.catch);const he=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{z.addEventListener("message",(({source:n,data:o})=>{if(n===z&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);z.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",w(z.postMessage));const pe=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(z):typeof process!=="undefined"&&process.nextTick||he;const me=e=>e!=null&&w(e[o]);var be={isArray:l,isArrayBuffer:p,isBuffer:f,isFormData:P,isArrayBufferView:m,isString:b,isNumber:v,isBoolean:g,isObject:y,isPlainObject:x,isEmptyObject:k,isReadableStream:B,isRequest:I,isResponse:_,isHeaders:q,isUndefined:u,isDate:R,isFile:O,isReactNativeBlob:S,isReactNative:T,isBlob:E,isRegExp:oe,isFunction:w,isStream:A,isURLSearchParams:U,isTypedArray:Z,isFileList:j,forEach:L,merge:H,extend:K,trim:D,stripBOM:J,inherits:X,toFlatObject:W,kindOf:r,kindOfTest:s,endsWith:V,toArray:G,forEachEntry:Q,matchAll:Y,isHTMLForm:ee,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:ie,freezeMethods:re,toObjectSet:se,toCamelCase:te,noop:ce,toFiniteNumber:ae,findKey:M,global:z,isContextDefined:$,isSpecCompliantForm:le,toJSONObject:ue,isAsyncFn:fe,isThenable:de,setImmediate:he,asap:pe,isIterable:me};class we extends Error{static from(e,t,n,o,i,r){const s=new we(e.message,t||e.code,n,o,i);s.cause=e;s.name=e.name;if(e.status!=null&&s.status==null){s.status=e.status}r&&Object.assign(s,r);return s}constructor(e,t,n,o,i){super(e);Object.defineProperty(this,"message",{value:e,enumerable:true,writable:true,configurable:true});this.name="AxiosError";this.isAxiosError=true;t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status}}toJSON(){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:be.toJSONObject(this.config),code:this.code,status:this.status}}}we.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";we.ERR_BAD_OPTION="ERR_BAD_OPTION";we.ECONNABORTED="ECONNABORTED";we.ETIMEDOUT="ETIMEDOUT";we.ERR_NETWORK="ERR_NETWORK";we.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";we.ERR_DEPRECATED="ERR_DEPRECATED";we.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";we.ERR_BAD_REQUEST="ERR_BAD_REQUEST";we.ERR_CANCELED="ERR_CANCELED";we.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";we.ERR_INVALID_URL="ERR_INVALID_URL";var ve=null;function ye(e){return be.isPlainObject(e)||be.isArray(e)}function ge(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=ge(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function ke(e){return be.isArray(e)&&!e.some(ye)}const Re=be.toFlatObject(be,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Oe(e,t,n){if(!be.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=be.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!be.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||u;const r=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&be.isSpecCompliantForm(t);if(!be.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(be.isDate(e)){return e.toISOString()}if(be.isBoolean(e)){return e.toString()}if(!a&&be.isBlob(e)){throw new we("Blob is not supported. Use a Buffer instead.")}if(be.isArrayBuffer(e)||be.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,i){let c=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e)){t.append(xe(i,n,r),l(e));return false}if(e&&!i&&typeof e==="object"){if(be.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(be.isArray(e)&&ke(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(c=be.toArray(e))){n=ge(n);c.forEach((function e(o,i){!(be.isUndefined(o)||o===null)&&t.append(s===true?xe([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(ye(e)){return true}t.append(xe(i,n,r),l(e));return false}const f=[];const d=Object.assign(Re,{defaultVisitor:u,convertValue:l,isVisitable:ye});function h(e,n){if(be.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);be.forEach(e,(function e(o,r){const s=!(be.isUndefined(o)||o===null)&&i.call(t,o,be.isString(r)?r.trim():r,n,d);if(s===true){h(o,n?n.concat(r):[r])}}));f.pop()}if(!be.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function Se(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 Te(e,t){this._pairs=[];e&&Oe(e,this,t)}const Ee=Te.prototype;Ee.append=function e(t,n){this._pairs.push([t,n])};Ee.toString=function e(t){const n=t?function(e){return t.call(this,e,Se)}:Se;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ae(e,t,n){if(!t){return e}const o=n&&n.encode||je;const i=be.isFunction(n)?{serialize:n}:n;const r=i&&i.serialize;let s;if(r){s=r(t,i)}else{s=be.isURLSearchParams(t)?t.toString():new Te(t,i).toString(o)}if(s){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ce{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){be.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Ne={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true};var Fe=typeof URLSearchParams!=="undefined"?URLSearchParams:Te;var Pe=typeof FormData!=="undefined"?FormData:null;var Ue=typeof Blob!=="undefined"?Blob:null;var Be={isBrowser:true,classes:{URLSearchParams:Fe,FormData:Pe,Blob:Ue},protocols:["http","https","file","blob","url","data"]};const Ie=typeof window!=="undefined"&&typeof document!=="undefined";const _e=typeof navigator==="object"&&navigator||undefined;const qe=Ie&&(!_e||["ReactNative","NativeScript","NS"].indexOf(_e.product)<0);const De=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Le=Ie&&window.location.href||"http://localhost";var Me=Object.freeze({__proto__:null,hasBrowserEnv:Ie,hasStandardBrowserEnv:qe,hasStandardBrowserWebWorkerEnv:De,navigator:_e,origin:Le});var ze={...Me,...Be};function $e(e,t){return Oe(e,new ze.classes.URLSearchParams,{visitor:function(e,t,n,o){if(ze.isNode&&be.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function He(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function Ke(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Je(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const c=i>=e.length;r=!r&&be.isArray(o)?o.length:r;if(c){if(be.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!be.isObject(o[r])){o[r]=[]}const a=t(e,n,o[r],i);if(a&&be.isArray(o[r])){o[r]=Ke(o[r])}return!s}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};be.forEachEntry(e,((e,o)=>{t(He(e),o,n,0)}));return n}return null}function Xe(e,t,n){if(be.isString(e)){try{(0,JSON.parse)(e);return be.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const We={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=be.isObject(t);if(r&&be.isHTMLForm(t)){t=new FormData(t)}const s=be.isFormData(t);if(s){return i?JSON.stringify(Je(t)):t}if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t)){return t}if(be.isArrayBufferView(t)){return t.buffer}if(be.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return $e(t,this.formSerializer).toString()}if((c=be.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Oe(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return Xe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||We.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t)){return t}if(t&&be.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t,this.parseReviver)}catch(e){if(o){if(e.name==="SyntaxError"){throw we.from(e,we.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:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};be.forEach(["delete","get","head","post","put","patch"],(e=>{We.headers[e]={}}));const Ve=be.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 Ge=e=>{const t={};let n;let o;let i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+1).trim();if(!n||t[n]&&Ve[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 Ze=Symbol("internals");const Qe=e=>!/[\r\n]/.test(e);function Ye(e,t){if(e===false||e==null){return}if(be.isArray(e)){e.forEach((e=>Ye(e,t)));return}if(!Qe(String(e))){throw new Error(`Invalid character in header content ["${t}"]`)}}function et(e){return e&&String(e).trim().toLowerCase()}function tt(e){let t=e.length;while(t>0){const n=e.charCodeAt(t-1);if(n!==10&&n!==13){break}t-=1}return t===e.length?e:e.slice(0,t)}function nt(e){if(e===false||e==null){return e}return be.isArray(e)?e.map(nt):tt(String(e))}function ot(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 it=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rt(e,t,n,o,i){if(be.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!be.isString(t))return;if(be.isString(o)){return t.indexOf(o)!==-1}if(be.isRegExp(o)){return o.test(t)}}function st(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ct(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class at{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=et(t);if(!i){throw new Error("header name must be a non-empty string")}const r=be.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){Ye(e,t);o[r||t]=nt(e)}}const r=(e,t)=>be.forEach(e,((e,n)=>i(e,n,t)));if(be.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(be.isString(e)&&(e=e.trim())&&!it(e)){r(Ge(e),t)}else if(be.isObject(e)&&be.isIterable(e)){let n={},o,i;for(const t of e){if(!be.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[i=t[0]]=(o=n[i])?be.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}r(n,t)}else{e!=null&&i(t,e,n)}return this}get(e,t){e=et(e);if(e){const n=be.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return ot(e)}if(be.isFunction(t)){return t.call(this,e,n)}if(be.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=et(e);if(e){const n=be.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||rt(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=et(e);if(e){const i=be.findKey(n,e);if(i&&(!t||rt(n,n[i],i,t))){delete n[i];o=true}}}if(be.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||rt(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};be.forEach(this,((o,i)=>{const r=be.findKey(n,i);if(r){t[r]=nt(o);delete t[i];return}const s=e?st(i):String(i).trim();if(s!==i){delete t[i]}t[s]=nt(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);be.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&be.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[Ze]=this[Ze]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=et(e);if(!n[t]){ct(o,e);n[t]=true}}be.isArray(e)?e.forEach(i):i(e);return this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(at.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));be.freezeMethods(at);function lt(e,t){const n=this||We;const o=t||n;const i=at.from(o.headers);let r=o.data;be.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ut(e){return!!(e&&e.__CANCEL__)}class ft extends we{constructor(e,t,n){super(e==null?"canceled":e,we.ERR_CANCELED,t,n);this.name="CanceledError";this.__CANCEL__=true}}function dt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function ht(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pt(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[r];if(!s){s=l}n[i]=a;o[i]=l;let f=r;let d=0;while(f!==i){d+=n[f++];f=f%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function mt(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-c)}}};const a=()=>i&&s(i);return[c,a]}const bt=(e,t,n=3)=>{let o=0;const i=pt(50,250);return mt((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=r-o;const a=i(c);const l=r<=s;o=r;const u={loaded:r,total:s,progress:s?r/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-r)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const wt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const vt=e=>(...t)=>be.asap((()=>e(...t)));var yt=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var gt=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r,s){if(typeof document==="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];if(be.isNumber(n)){c.push(`expires=${new Date(n).toUTCString()}`)}if(be.isString(o)){c.push(`path=${o}`)}if(be.isString(i)){c.push(`domain=${i}`)}if(r===true){c.push("secure")}if(be.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 xt(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rt(e,t,n){let o=!xt(t);if(e&&(o||n==false)){return kt(e,t)}return t}const Ot=e=>e instanceof at?{...e}:e;function St(e,t){t=t||{};const n={};function o(e,t,n,o){if(be.isPlainObject(e)&&be.isPlainObject(t)){return be.merge.call({caseless:o},e,t)}else if(be.isPlainObject(t)){return be.merge({},t)}else if(be.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!be.isUndefined(t)){return o(e,t,n,i)}else if(!be.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!be.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!be.isUndefined(t)){return o(undefined,t)}else if(!be.isUndefined(e)){return o(undefined,e)}}function c(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const a={url:r,method:r,data:r,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)=>i(Ot(e),Ot(t),n,true)};be.forEach(Object.keys({...e,...t}),(function o(r){if(r==="__proto__"||r==="constructor"||r==="prototype")return;const s=be.hasOwnProp(a,r)?a[r]:i;const l=s(e[r],t[r],r);be.isUndefined(l)&&s!==c||(n[r]=l)}));return n}var Tt=e=>{const t=St({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:c}=t;t.headers=s=at.from(s);t.url=Ae(Rt(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(be.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if(be.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(ze.hasStandardBrowserEnv){o&&be.isFunction(o)&&(o=o(t));if(o||o!==false&&yt(t.url)){const e=i&&r&>.read(r);if(e){s.set(i,e)}}}return t};const Et=typeof XMLHttpRequest!=="undefined";var jt=Et&&function(e){return new Promise((function t(n,o){const i=Tt(e);let r=i.data;const s=at.from(i.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=i;let u;let f,d;let h,p;function m(){h&&h();p&&p();i.cancelToken&&i.cancelToken.unsubscribe(u);i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,true);b.timeout=i.timeout;function w(){if(!b){return}const t=at.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const i=!c||c==="text"||c==="json"?b.responseText:b.response;const r={data:i,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};dt((function e(t){n(t);m()}),(function e(t){o(t);m()}),r);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 we("Request aborted",we.ECONNABORTED,e,b));b=null};b.onerror=function t(n){const i=n&&n.message?n.message:"Network Error";const r=new we(i,we.ERR_NETWORK,e,b);r.event=n||null;o(r);b=null};b.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Ne;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new we(n,r.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,b));b=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in b){be.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!be.isUndefined(i.withCredentials)){b.withCredentials=!!i.withCredentials}if(c&&c!=="json"){b.responseType=i.responseType}if(l){[d,p]=bt(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[f,h]=bt(a);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(i.cancelToken||i.signal){u=t=>{if(!b){return}o(!t||t.type?new ft(null,e,b):t);b.abort();b=null};i.cancelToken&&i.cancelToken.subscribe(u);if(i.signal){i.signal.aborted?u():i.signal.addEventListener("abort",u)}}const v=ht(i.url);if(v&&ze.protocols.indexOf(v)===-1){o(new we("Unsupported protocol "+v+":",we.ERR_BAD_REQUEST,e));return}b.send(r||null)}))};const At=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof we?t:new ft(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:c}=n;c.unsubscribe=()=>be.asap(s);return c}};const Ct=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const Nt=async function*(e,t){for await(const n of Ft(e)){yield*Ct(n,t)}};const Ft=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 Pt=(e,t,n,o)=>{const i=Nt(e,t);let r=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 i.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return i.return()}},{highWaterMark:2})};const Ut=64*1024;const{isFunction:Bt}=be;const It=(({Request:e,Response:t})=>({Request:e,Response:t}))(be.global);const{ReadableStream:_t,TextEncoder:qt}=be.global;const Dt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Lt=e=>{e=be.merge.call({skipUndefined:true},It,e);const{fetch:t,Request:n,Response:o}=e;const i=t?Bt(t):typeof fetch==="function";const r=Bt(n);const s=Bt(o);if(!i){return false}const c=i&&Bt(_t);const a=i&&(typeof qt==="function"?(e=>t=>e.encode(t))(new qt):async e=>new Uint8Array(await new n(e).arrayBuffer()));const l=r&&c&&Dt((()=>{let e=false;const t=new _t;const o=new n(ze.origin,{body:t,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");t.cancel();return e&&!o}));const u=s&&c&&Dt((()=>be.isReadableStream(new o("").body)));const f={stream:u&&(e=>e.body)};i&&(()=>{["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 we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,n)})}))})();const d=async e=>{if(e==null){return 0}if(be.isBlob(e)){return e.size}if(be.isSpecCompliantForm(e)){const t=new n(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(be.isArrayBufferView(e)||be.isArrayBuffer(e)){return e.byteLength}if(be.isURLSearchParams(e)){e=e+""}if(be.isString(e)){return(await a(e)).byteLength}};const h=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n==null?d(t):n};return async e=>{let{url:i,method:s,data:c,signal:a,cancelToken:d,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:w,headers:v,withCredentials:y="same-origin",fetchOptions:g}=Tt(e);let x=t||fetch;w=w?(w+"").toLowerCase():"text";let k=At([a,d&&d.toAbortSignal()],p);let R=null;const O=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let S;try{if(b&&l&&s!=="get"&&s!=="head"&&(S=await h(v,c))!==0){let e=new n(i,{method:"POST",body:c,duplex:"half"});let t;if(be.isFormData(c)&&(t=e.headers.get("content-type"))){v.setContentType(t)}if(e.body){const[t,n]=wt(S,bt(vt(b)));c=Pt(e.body,Ut,t,n)}}if(!be.isString(y)){y=y?"include":"omit"}const t=r&&"credentials"in n.prototype;const a={...g,signal:k,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:t?y:undefined};R=r&&new n(i,a);let d=await(r?x(R,g):x(i,a));const p=u&&(w==="stream"||w==="response");if(u&&(m||p&&O)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=d[t]}));const t=be.toFiniteNumber(d.headers.get("content-length"));const[n,i]=m&&wt(t,bt(vt(m),true))||[];d=new o(Pt(d.body,Ut,n,(()=>{i&&i();O&&O()})),e)}w=w||"text";let T=await f[be.findKey(f,w)||"text"](d,e);!p&&O&&O();return await new Promise(((t,n)=>{dt(t,n,{data:T,headers:at.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:R})}))}catch(t){O&&O();if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new we("Network Error",we.ERR_NETWORK,e,R,t&&t.response),{cause:t.cause||t})}throw we.from(t,t&&t.code,e,R,t&&t.response)}}};const Mt=new Map;const zt=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:i}=t;const r=[o,i,n];let s=r.length,c=s,a,l,u=Mt;while(c--){a=r[c];l=u.get(a);l===undefined&&u.set(a,l=c?new Map:Lt(t));u=l}return l};zt();const $t={http:ve,xhr:jt,fetch:{get:zt}};be.forEach($t,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ht=e=>`- ${e}`;const Kt=e=>be.isFunction(e)||e===null||e===false;function Jt(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let o;let i;const r={};for(let s=0;s<n;s++){o=e[s];let n;i=o;if(!Kt(o)){i=$t[(n=String(o)).toLowerCase()];if(i===undefined){throw new we(`Unknown adapter '${n}'`)}}if(i&&(be.isFunction(i)||(i=i.get(t)))){break}r[n||"#"+s]=i}if(!i){const e=Object.entries(r).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(Ht).join("\n"):" "+Ht(e[0]):"as no adapter specified";throw new we(`There is no suitable adapter to dispatch the request `+t,"ERR_NOT_SUPPORT")}return i}var Xt={getAdapter:Jt,adapters:$t};function Wt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ft(null,e)}}function Vt(e){Wt(e);e.headers=at.from(e.headers);e.data=lt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Xt.getAdapter(e.adapter||We.adapter,e);return t(e).then((function t(n){Wt(e);n.data=lt.call(e,e.transformResponse,n);n.headers=at.from(n.headers);return n}),(function t(n){if(!ut(n)){Wt(e);if(n&&n.response){n.response.data=lt.call(e,e.transformResponse,n.response);n.response.headers=at.from(n.response.headers)}}return Promise.reject(n)}))}const Gt="1.15.0";const Zt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Qt={};Zt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Gt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new we(i(o," has been removed"+(n?" in "+n:"")),we.ERR_DEPRECATED)}if(n&&!Qt[o]){Qt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Zt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Yt(e,t,n){if(typeof e!=="object"){throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new we("option "+r+" must be "+n,we.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new we("Unknown option "+r,we.ERR_BAD_OPTION)}}}var en={assertOptions:Yt,validators:Zt};const tn=en.validators;class nn{constructor(e){this.defaults=e||{};this.interceptors={request:new Ce,response:new Ce}}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=(()=>{if(!t.stack){return""}const e=t.stack.indexOf("\n");return e===-1?"":t.stack.slice(e+1)})();try{if(!e.stack){e.stack=n}else if(n){const t=n.indexOf("\n");const o=t===-1?-1:n.indexOf("\n",t+1);const i=o===-1?"":n.slice(o+1);if(!String(e.stack).endsWith(i)){e.stack+="\n"+n}}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=St(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){en.assertOptions(n,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean),legacyInterceptorReqResOrdering:tn.transitional(tn.boolean)},false)}if(o!=null){if(be.isFunction(o)){t.paramsSerializer={serialize:o}}else{en.assertOptions(o,{encode:tn.function,serialize:tn.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}en.assertOptions(t,{baseUrl:tn.spelling("baseURL"),withXsrfToken:tn.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&be.merge(i.common,i[t.method]);i&&be.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=at.concat(r,i);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;const o=t.transitional||Ne;const i=o&&o.legacyInterceptorReqResOrdering;if(i){s.unshift(n.fulfilled,n.rejected)}else{s.push(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=[Vt.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=Vt.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=St(this.defaults,e);const t=Rt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ae(t,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],(function e(t){nn.prototype[t]=function(e,n){return this.request(St(n||{},{method:t,url:e,data:(n||{}).data}))}}));be.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(St(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}nn.prototype[t]=n();nn.prototype[t+"Form"]=n(true)}));class on{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,i,r){if(n.reason){return}n.reason=new ft(o,i,r);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 on((function t(n){e=n}));return{token:t,cancel:e}}}function rn(e){return function t(n){return e.apply(null,n)}}function sn(e){return be.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}));function an(t){const n=new nn(t);const o=e(nn.prototype.request,n);be.extend(o,nn.prototype,n,{allOwnKeys:true});be.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return an(St(t,n))};return o}const ln=an(We);ln.Axios=nn;ln.CanceledError=ft;ln.CancelToken=on;ln.isCancel=ut;ln.VERSION=Gt;ln.toFormData=Oe;ln.AxiosError=we;ln.Cancel=ln.CanceledError;ln.all=function e(t){return Promise.all(t)};ln.spread=rn;ln.isAxiosError=sn;ln.mergeConfig=St;ln.AxiosHeaders=at;ln.formToJSON=e=>Je(be.isHTMLForm(e)?new FormData(e):e);ln.getAdapter=Xt.getAdapter;ln.HttpStatusCode=cn;ln.default=ln;d=ln;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 y='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:start;align-items:flex-start;-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 g=`<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=i.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=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=r(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.name_locked=this.delegator?false:this.templateRole.name_locked||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,name_locked:this.name_locked,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,i,s,a,l,u,d,h,p,m,b,w,v,y,x,k,R;const O=this.first_name&&this.last_name&&c(this.email);const S=!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 T=O&&S;const E=((i=(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||i===void 0?void 0:i.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(E&&((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(((y=(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||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(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||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"374d6f0907e09a4c312bcd666eaabf578f8671b5",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"bbdb01e7229992ff75b3b124fde6a8606769d53c",class:"row"},n("label",{key:"546da7ec599b17cc2e514dcaf47fe41d7107ec11",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"e5819a8cb2c261c302a4923561578c5928063e64",class:"names-row"},n("input",{key:"05a471f19b8018993d50f4ba9776864392c13c9d",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{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:"4e56ab4161e6bd7894c636619282915243c8aeec",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:"0a856517832b4dc417627675a0327e5a5e9e4710",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"6c0c1747e5ed512ad463c26f220b34db395e8f2c",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:g}),n("div",{class:"details"},n("div",{class:"name"},r(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"85552b20424fb4884fa88d22c78375fe5c6513e0",class:"row"},n("label",{key:"2b438ee30f3c0115d0445e3f5bfe4ae8b7635073",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"a349fb9e534ed7786268d9aac9184fc38a8a102e",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),E&&n("div",{key:"f015a535d0a37d94eb73b145342d00dde7b63a50",class:"row"},n("label",{key:"eff877e183e38de65ca11e535b81e11b5ee1bd92",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"41db6e4607189c0b0da0ef658b1fbafcfeab92ba",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=f(e.target.value)}})),n(o,{key:"c037e234e206b1cd45bf91649f211ebe42f885fe"},j.length>0&&n("div",{key:"23fa9db672498199d7c053b258669e0676852322",class:"row pin-code"},n("label",{key:"d5208d3cd083716589aa6c18dbd85ba88ca208b3"},"Verification Methods:"),n("div",{key:"f239551b28d2ca51b8f9ab5ec64bfdfdce4bf823"},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:"d57e7078dfefb1c816a15c52a8aa44eae62a5557",class:"row pin-code"},n("label",{key:"df97978ae0e4c176c7d6ca38850537d3d6db5ce3",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"7791e5a2d856bdd9dbbfcf8c339531e3e5c5e52b",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"7de2d50963399db273bd1d38941ea967a2d92827",class:"row pin-code"},n("label",{key:"d0202a6e0969b405d303cdc291dee95048460b43",style:{marginTop:"6px"}},"Options:"),n("div",{key:"52f68972a5fee697972fa9baa284ca6a37830ab9"},n("div",{key:"8e15a3caa1e4ce0cbb943fb7bfaaf274d4410de3",class:"option"},n("verdocs-checkbox",{key:"7d21cafec340458f1c6a06b577fad30bbd5680eb",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:e=>{this.delegator=e.target.checked;if(this.delegator)this.name_locked=false}}),n("label",{key:"2b96fb477ce41038cf9d115e9fabf102d670d801",htmlFor:"verdocs-delegator"},"May delegate signing")),n("div",{key:"7f616562ee03e6026bf09b355ae20720b45655b0",class:"option"},n("verdocs-checkbox",{key:"47bfa40e403ddf6da8cba33fda8ebff05625d353",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:e=>{this.name_locked=e.target.checked;if(this.name_locked)this.delegator=false}}),n("label",{key:"382d0b92f8999dc1a0adaa91d00c6c0f95a17552",htmlFor:"verdocs-name-locked"},"Name locked")))),n("div",{key:"6797886d95d1e08dc0c018e89cf6040aa60b02ff",class:"row message"},n("label",{key:"cb6f04c40e1b6601d0292e248b26cb4f2519e7d9",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"018a9162f52e73650283a7f2271a99352008085c",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"d2f04563ad450f4c6c0c19735a064d01182cf458",class:"buttons"},n("div",{key:"43f240077f3c5b3e252c60a277668c94c9163b24",class:"flex-fill"}),n("verdocs-button",{key:"f758cb6d10b3deb58d13aaf54c212e6455933104",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"3aa451a2d6d23ada4a7a5ddb5843b22954b69161",label:"OK",size:"small",disabled:!T,onClick:!T?()=>{}:e=>this.handleSubmit(e)})))}};x.style=y;export{x as verdocs_contact_picker};
|
|
3
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,h as n,F as o}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as i,formatFullName as r,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as f}from"./p-C_Xku1v2.js";import{e as u}from"./p-DVfiBeS0.js";import"./p-dzBXqXlK.js";import"./p-BqoC0yeA.js";
|
|
2
|
+
/*! Axios v1.15.0 Copyright (c) 2026 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:i}=Symbol;const r=(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=>r(t)===e};const c=e=>t=>typeof t===e;const{isArray:l}=Array;const f=c("undefined");function u(e){return e!==null&&!f(e)&&e.constructor!==null&&!f(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 y=e=>e!==null&&typeof e==="object";const g=e=>e===true||e===false;const x=e=>{if(r(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(i in e)&&!(o in e)};const k=e=>{if(!y(e)||u(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const R=s("Date");const O=s("File");const S=e=>!!(e&&typeof e.uri!=="undefined");const T=e=>e&&typeof e.getParts!=="undefined";const E=s("Blob");const j=s("FileList");const A=e=>y(e)&&w(e.pipe);function C(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof a!=="undefined")return a;return{}}const N=C();const F=typeof N.FormData!=="undefined"?N.FormData:undefined;const P=e=>{let t;return e&&(F&&e instanceof F||w(e.append)&&((t=r(e))==="formdata"||t==="object"&&w(e.toString)&&e.toString()==="[object FormData]"))};const U=s("URLSearchParams");const[B,I,_,q]=["ReadableStream","Request","Response","Headers"].map(s);const D=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function L(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{if(u(e)){return}const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function M(e,t){if(u(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const z=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:a})();const $=e=>!f(e)&&e!==z;function H(){const{caseless:e,skipUndefined:t}=$(this)&&this||{};const n={};const o=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype"){return}const r=e&&M(n,i)||i;if(x(n[r])&&x(o)){n[r]=H(n[r],o)}else if(x(o)){n[r]=H({},o)}else if(l(o)){n[r]=o.slice()}else if(!t||!f(o)){n[r]=o}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&L(arguments[e],o)}return n}const K=(t,n,o,{allOwnKeys:i}={})=>{L(n,((n,i)=>{if(o&&w(n)){Object.defineProperty(t,i,{value:e(n,o),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(t,i,{value:n,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:i});return t};const J=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const X=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const V=(e,t,o,i)=>{let r;let s;let c;const a={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){c=r[s];if((!i||i(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 W=(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 G=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 Z=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const Q=(e,t)=>{const n=e&&e[o];const i=n.call(e);let r;while((r=i.next())&&!r.done){const n=r.value;t.call(e,n[0],n[1])}};const Y=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const ee=s("HTMLFormElement");const te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const ne=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const oe=s("RegExp");const ie=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};L(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const re=e=>{ie(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 se=(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 ce=()=>{};const ae=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function le(e){return!!(e&&w(e.append)&&e[i]==="FormData"&&e[o])}const fe=e=>{const t=new Array(10);const n=(e,o)=>{if(y(e)){if(t.indexOf(e)>=0){return}if(u(e)){return e}if(!("toJSON"in e)){t[o]=e;const i=l(e)?[]:{};L(e,((e,t)=>{const r=n(e,o+1);!f(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const ue=s("AsyncFunction");const de=e=>e&&(y(e)||w(e))&&w(e.then)&&w(e.catch);const he=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{z.addEventListener("message",(({source:n,data:o})=>{if(n===z&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);z.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",w(z.postMessage));const pe=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(z):typeof process!=="undefined"&&process.nextTick||he;const me=e=>e!=null&&w(e[o]);var be={isArray:l,isArrayBuffer:p,isBuffer:u,isFormData:P,isArrayBufferView:m,isString:b,isNumber:v,isBoolean:g,isObject:y,isPlainObject:x,isEmptyObject:k,isReadableStream:B,isRequest:I,isResponse:_,isHeaders:q,isUndefined:f,isDate:R,isFile:O,isReactNativeBlob:S,isReactNative:T,isBlob:E,isRegExp:oe,isFunction:w,isStream:A,isURLSearchParams:U,isTypedArray:Z,isFileList:j,forEach:L,merge:H,extend:K,trim:D,stripBOM:J,inherits:X,toFlatObject:V,kindOf:r,kindOfTest:s,endsWith:W,toArray:G,forEachEntry:Q,matchAll:Y,isHTMLForm:ee,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:ie,freezeMethods:re,toObjectSet:se,toCamelCase:te,noop:ce,toFiniteNumber:ae,findKey:M,global:z,isContextDefined:$,isSpecCompliantForm:le,toJSONObject:fe,isAsyncFn:ue,isThenable:de,setImmediate:he,asap:pe,isIterable:me};class we extends Error{static from(e,t,n,o,i,r){const s=new we(e.message,t||e.code,n,o,i);s.cause=e;s.name=e.name;if(e.status!=null&&s.status==null){s.status=e.status}r&&Object.assign(s,r);return s}constructor(e,t,n,o,i){super(e);Object.defineProperty(this,"message",{value:e,enumerable:true,writable:true,configurable:true});this.name="AxiosError";this.isAxiosError=true;t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status}}toJSON(){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:be.toJSONObject(this.config),code:this.code,status:this.status}}}we.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";we.ERR_BAD_OPTION="ERR_BAD_OPTION";we.ECONNABORTED="ECONNABORTED";we.ETIMEDOUT="ETIMEDOUT";we.ERR_NETWORK="ERR_NETWORK";we.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";we.ERR_DEPRECATED="ERR_DEPRECATED";we.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";we.ERR_BAD_REQUEST="ERR_BAD_REQUEST";we.ERR_CANCELED="ERR_CANCELED";we.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";we.ERR_INVALID_URL="ERR_INVALID_URL";var ve=null;function ye(e){return be.isPlainObject(e)||be.isArray(e)}function ge(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=ge(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function ke(e){return be.isArray(e)&&!e.some(ye)}const Re=be.toFlatObject(be,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Oe(e,t,n){if(!be.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=be.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!be.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||f;const r=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&be.isSpecCompliantForm(t);if(!be.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(be.isDate(e)){return e.toISOString()}if(be.isBoolean(e)){return e.toString()}if(!a&&be.isBlob(e)){throw new we("Blob is not supported. Use a Buffer instead.")}if(be.isArrayBuffer(e)||be.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,n,i){let c=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e)){t.append(xe(i,n,r),l(e));return false}if(e&&!i&&typeof e==="object"){if(be.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(be.isArray(e)&&ke(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(c=be.toArray(e))){n=ge(n);c.forEach((function e(o,i){!(be.isUndefined(o)||o===null)&&t.append(s===true?xe([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(ye(e)){return true}t.append(xe(i,n,r),l(e));return false}const u=[];const d=Object.assign(Re,{defaultVisitor:f,convertValue:l,isVisitable:ye});function h(e,n){if(be.isUndefined(e))return;if(u.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}u.push(e);be.forEach(e,(function e(o,r){const s=!(be.isUndefined(o)||o===null)&&i.call(t,o,be.isString(r)?r.trim():r,n,d);if(s===true){h(o,n?n.concat(r):[r])}}));u.pop()}if(!be.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function Se(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 Te(e,t){this._pairs=[];e&&Oe(e,this,t)}const Ee=Te.prototype;Ee.append=function e(t,n){this._pairs.push([t,n])};Ee.toString=function e(t){const n=t?function(e){return t.call(this,e,Se)}:Se;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function je(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ae(e,t,n){if(!t){return e}const o=n&&n.encode||je;const i=be.isFunction(n)?{serialize:n}:n;const r=i&&i.serialize;let s;if(r){s=r(t,i)}else{s=be.isURLSearchParams(t)?t.toString():new Te(t,i).toString(o)}if(s){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ce{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){be.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Ne={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true};var Fe=typeof URLSearchParams!=="undefined"?URLSearchParams:Te;var Pe=typeof FormData!=="undefined"?FormData:null;var Ue=typeof Blob!=="undefined"?Blob:null;var Be={isBrowser:true,classes:{URLSearchParams:Fe,FormData:Pe,Blob:Ue},protocols:["http","https","file","blob","url","data"]};const Ie=typeof window!=="undefined"&&typeof document!=="undefined";const _e=typeof navigator==="object"&&navigator||undefined;const qe=Ie&&(!_e||["ReactNative","NativeScript","NS"].indexOf(_e.product)<0);const De=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Le=Ie&&window.location.href||"http://localhost";var Me=Object.freeze({__proto__:null,hasBrowserEnv:Ie,hasStandardBrowserEnv:qe,hasStandardBrowserWebWorkerEnv:De,navigator:_e,origin:Le});var ze={...Me,...Be};function $e(e,t){return Oe(e,new ze.classes.URLSearchParams,{visitor:function(e,t,n,o){if(ze.isNode&&be.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function He(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function Ke(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Je(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const c=i>=e.length;r=!r&&be.isArray(o)?o.length:r;if(c){if(be.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!be.isObject(o[r])){o[r]=[]}const a=t(e,n,o[r],i);if(a&&be.isArray(o[r])){o[r]=Ke(o[r])}return!s}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};be.forEachEntry(e,((e,o)=>{t(He(e),o,n,0)}));return n}return null}function Xe(e,t,n){if(be.isString(e)){try{(0,JSON.parse)(e);return be.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Ve={transitional:Ne,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=be.isObject(t);if(r&&be.isHTMLForm(t)){t=new FormData(t)}const s=be.isFormData(t);if(s){return i?JSON.stringify(Je(t)):t}if(be.isArrayBuffer(t)||be.isBuffer(t)||be.isStream(t)||be.isFile(t)||be.isBlob(t)||be.isReadableStream(t)){return t}if(be.isArrayBufferView(t)){return t.buffer}if(be.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return $e(t,this.formSerializer).toString()}if((c=be.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Oe(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return Xe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Ve.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(be.isResponse(t)||be.isReadableStream(t)){return t}if(t&&be.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t,this.parseReviver)}catch(e){if(o){if(e.name==="SyntaxError"){throw we.from(e,we.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:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};be.forEach(["delete","get","head","post","put","patch"],(e=>{Ve.headers[e]={}}));const We=be.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 Ge=e=>{const t={};let n;let o;let i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+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 Ze=Symbol("internals");const Qe=e=>!/[\r\n]/.test(e);function Ye(e,t){if(e===false||e==null){return}if(be.isArray(e)){e.forEach((e=>Ye(e,t)));return}if(!Qe(String(e))){throw new Error(`Invalid character in header content ["${t}"]`)}}function et(e){return e&&String(e).trim().toLowerCase()}function tt(e){let t=e.length;while(t>0){const n=e.charCodeAt(t-1);if(n!==10&&n!==13){break}t-=1}return t===e.length?e:e.slice(0,t)}function nt(e){if(e===false||e==null){return e}return be.isArray(e)?e.map(nt):tt(String(e))}function ot(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 it=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rt(e,t,n,o,i){if(be.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!be.isString(t))return;if(be.isString(o)){return t.indexOf(o)!==-1}if(be.isRegExp(o)){return o.test(t)}}function st(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function ct(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class at{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=et(t);if(!i){throw new Error("header name must be a non-empty string")}const r=be.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){Ye(e,t);o[r||t]=nt(e)}}const r=(e,t)=>be.forEach(e,((e,n)=>i(e,n,t)));if(be.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(be.isString(e)&&(e=e.trim())&&!it(e)){r(Ge(e),t)}else if(be.isObject(e)&&be.isIterable(e)){let n={},o,i;for(const t of e){if(!be.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[i=t[0]]=(o=n[i])?be.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}r(n,t)}else{e!=null&&i(t,e,n)}return this}get(e,t){e=et(e);if(e){const n=be.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return ot(e)}if(be.isFunction(t)){return t.call(this,e,n)}if(be.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=et(e);if(e){const n=be.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||rt(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=et(e);if(e){const i=be.findKey(n,e);if(i&&(!t||rt(n,n[i],i,t))){delete n[i];o=true}}}if(be.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||rt(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};be.forEach(this,((o,i)=>{const r=be.findKey(n,i);if(r){t[r]=nt(o);delete t[i];return}const s=e?st(i):String(i).trim();if(s!==i){delete t[i]}t[s]=nt(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);be.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&be.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[Ze]=this[Ze]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=et(e);if(!n[t]){ct(o,e);n[t]=true}}be.isArray(e)?e.forEach(i):i(e);return this}}at.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(at.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));be.freezeMethods(at);function lt(e,t){const n=this||Ve;const o=t||n;const i=at.from(o.headers);let r=o.data;be.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ft(e){return!!(e&&e.__CANCEL__)}class ut extends we{constructor(e,t,n){super(e==null?"canceled":e,we.ERR_CANCELED,t,n);this.name="CanceledError";this.__CANCEL__=true}}function dt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new we("Request failed with status code "+n.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function ht(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pt(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const f=o[r];if(!s){s=l}n[i]=a;o[i]=l;let u=r;let d=0;while(u!==i){d+=n[u++];u=u%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const h=f&&l-f;return h?Math.round(d*1e3/h):undefined}}function mt(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-c)}}};const a=()=>i&&s(i);return[c,a]}const bt=(e,t,n=3)=>{let o=0;const i=pt(50,250);return mt((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=r-o;const a=i(c);const l=r<=s;o=r;const f={loaded:r,total:s,progress:s?r/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-r)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(f)}),n)};const wt=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const vt=e=>(...t)=>be.asap((()=>e(...t)));var yt=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var gt=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r,s){if(typeof document==="undefined")return;const c=[`${e}=${encodeURIComponent(t)}`];if(be.isNumber(n)){c.push(`expires=${new Date(n).toUTCString()}`)}if(be.isString(o)){c.push(`path=${o}`)}if(be.isString(i)){c.push(`domain=${i}`)}if(r===true){c.push("secure")}if(be.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 xt(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rt(e,t,n){let o=!xt(t);if(e&&(o||n==false)){return kt(e,t)}return t}const Ot=e=>e instanceof at?{...e}:e;function St(e,t){t=t||{};const n={};function o(e,t,n,o){if(be.isPlainObject(e)&&be.isPlainObject(t)){return be.merge.call({caseless:o},e,t)}else if(be.isPlainObject(t)){return be.merge({},t)}else if(be.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!be.isUndefined(t)){return o(e,t,n,i)}else if(!be.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!be.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!be.isUndefined(t)){return o(undefined,t)}else if(!be.isUndefined(e)){return o(undefined,e)}}function c(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const a={url:r,method:r,data:r,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)=>i(Ot(e),Ot(t),n,true)};be.forEach(Object.keys({...e,...t}),(function o(r){if(r==="__proto__"||r==="constructor"||r==="prototype")return;const s=be.hasOwnProp(a,r)?a[r]:i;const l=s(e[r],t[r],r);be.isUndefined(l)&&s!==c||(n[r]=l)}));return n}var Tt=e=>{const t=St({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:c}=t;t.headers=s=at.from(s);t.url=Ae(Rt(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(be.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if(be.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(ze.hasStandardBrowserEnv){o&&be.isFunction(o)&&(o=o(t));if(o||o!==false&&yt(t.url)){const e=i&&r&>.read(r);if(e){s.set(i,e)}}}return t};const Et=typeof XMLHttpRequest!=="undefined";var jt=Et&&function(e){return new Promise((function t(n,o){const i=Tt(e);let r=i.data;const s=at.from(i.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=i;let f;let u,d;let h,p;function m(){h&&h();p&&p();i.cancelToken&&i.cancelToken.unsubscribe(f);i.signal&&i.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,true);b.timeout=i.timeout;function w(){if(!b){return}const t=at.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const i=!c||c==="text"||c==="json"?b.responseText:b.response;const r={data:i,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};dt((function e(t){n(t);m()}),(function e(t){o(t);m()}),r);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 we("Request aborted",we.ECONNABORTED,e,b));b=null};b.onerror=function t(n){const i=n&&n.message?n.message:"Network Error";const r=new we(i,we.ERR_NETWORK,e,b);r.event=n||null;o(r);b=null};b.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Ne;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new we(n,r.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,b));b=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in b){be.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!be.isUndefined(i.withCredentials)){b.withCredentials=!!i.withCredentials}if(c&&c!=="json"){b.responseType=i.responseType}if(l){[d,p]=bt(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[u,h]=bt(a);b.upload.addEventListener("progress",u);b.upload.addEventListener("loadend",h)}if(i.cancelToken||i.signal){f=t=>{if(!b){return}o(!t||t.type?new ut(null,e,b):t);b.abort();b=null};i.cancelToken&&i.cancelToken.subscribe(f);if(i.signal){i.signal.aborted?f():i.signal.addEventListener("abort",f)}}const v=ht(i.url);if(v&&ze.protocols.indexOf(v)===-1){o(new we("Unsupported protocol "+v+":",we.ERR_BAD_REQUEST,e));return}b.send(r||null)}))};const At=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof we?t:new ut(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new we(`timeout of ${t}ms exceeded`,we.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:c}=n;c.unsubscribe=()=>be.asap(s);return c}};const Ct=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const Nt=async function*(e,t){for await(const n of Ft(e)){yield*Ct(n,t)}};const Ft=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 Pt=(e,t,n,o)=>{const i=Nt(e,t);let r=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 i.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return i.return()}},{highWaterMark:2})};const Ut=64*1024;const{isFunction:Bt}=be;const It=(({Request:e,Response:t})=>({Request:e,Response:t}))(be.global);const{ReadableStream:_t,TextEncoder:qt}=be.global;const Dt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Lt=e=>{e=be.merge.call({skipUndefined:true},It,e);const{fetch:t,Request:n,Response:o}=e;const i=t?Bt(t):typeof fetch==="function";const r=Bt(n);const s=Bt(o);if(!i){return false}const c=i&&Bt(_t);const a=i&&(typeof qt==="function"?(e=>t=>e.encode(t))(new qt):async e=>new Uint8Array(await new n(e).arrayBuffer()));const l=r&&c&&Dt((()=>{let e=false;const t=new _t;const o=new n(ze.origin,{body:t,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");t.cancel();return e&&!o}));const f=s&&c&&Dt((()=>be.isReadableStream(new o("").body)));const u={stream:f&&(e=>e.body)};i&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!u[e]&&(u[e]=(t,n)=>{let o=t&&t[e];if(o){return o.call(t)}throw new we(`Response type '${e}' is not supported`,we.ERR_NOT_SUPPORT,n)})}))})();const d=async e=>{if(e==null){return 0}if(be.isBlob(e)){return e.size}if(be.isSpecCompliantForm(e)){const t=new n(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(be.isArrayBufferView(e)||be.isArrayBuffer(e)){return e.byteLength}if(be.isURLSearchParams(e)){e=e+""}if(be.isString(e)){return(await a(e)).byteLength}};const h=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n==null?d(t):n};return async e=>{let{url:i,method:s,data:c,signal:a,cancelToken:d,timeout:p,onDownloadProgress:m,onUploadProgress:b,responseType:w,headers:v,withCredentials:y="same-origin",fetchOptions:g}=Tt(e);let x=t||fetch;w=w?(w+"").toLowerCase():"text";let k=At([a,d&&d.toAbortSignal()],p);let R=null;const O=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let S;try{if(b&&l&&s!=="get"&&s!=="head"&&(S=await h(v,c))!==0){let e=new n(i,{method:"POST",body:c,duplex:"half"});let t;if(be.isFormData(c)&&(t=e.headers.get("content-type"))){v.setContentType(t)}if(e.body){const[t,n]=wt(S,bt(vt(b)));c=Pt(e.body,Ut,t,n)}}if(!be.isString(y)){y=y?"include":"omit"}const t=r&&"credentials"in n.prototype;const a={...g,signal:k,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:t?y:undefined};R=r&&new n(i,a);let d=await(r?x(R,g):x(i,a));const p=f&&(w==="stream"||w==="response");if(f&&(m||p&&O)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=d[t]}));const t=be.toFiniteNumber(d.headers.get("content-length"));const[n,i]=m&&wt(t,bt(vt(m),true))||[];d=new o(Pt(d.body,Ut,n,(()=>{i&&i();O&&O()})),e)}w=w||"text";let T=await u[be.findKey(u,w)||"text"](d,e);!p&&O&&O();return await new Promise(((t,n)=>{dt(t,n,{data:T,headers:at.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:R})}))}catch(t){O&&O();if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new we("Network Error",we.ERR_NETWORK,e,R,t&&t.response),{cause:t.cause||t})}throw we.from(t,t&&t.code,e,R,t&&t.response)}}};const Mt=new Map;const zt=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:i}=t;const r=[o,i,n];let s=r.length,c=s,a,l,f=Mt;while(c--){a=r[c];l=f.get(a);l===undefined&&f.set(a,l=c?new Map:Lt(t));f=l}return l};zt();const $t={http:ve,xhr:jt,fetch:{get:zt}};be.forEach($t,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ht=e=>`- ${e}`;const Kt=e=>be.isFunction(e)||e===null||e===false;function Jt(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let o;let i;const r={};for(let s=0;s<n;s++){o=e[s];let n;i=o;if(!Kt(o)){i=$t[(n=String(o)).toLowerCase()];if(i===undefined){throw new we(`Unknown adapter '${n}'`)}}if(i&&(be.isFunction(i)||(i=i.get(t)))){break}r[n||"#"+s]=i}if(!i){const e=Object.entries(r).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(Ht).join("\n"):" "+Ht(e[0]):"as no adapter specified";throw new we(`There is no suitable adapter to dispatch the request `+t,"ERR_NOT_SUPPORT")}return i}var Xt={getAdapter:Jt,adapters:$t};function Vt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ut(null,e)}}function Wt(e){Vt(e);e.headers=at.from(e.headers);e.data=lt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Xt.getAdapter(e.adapter||Ve.adapter,e);return t(e).then((function t(n){Vt(e);n.data=lt.call(e,e.transformResponse,n);n.headers=at.from(n.headers);return n}),(function t(n){if(!ft(n)){Vt(e);if(n&&n.response){n.response.data=lt.call(e,e.transformResponse,n.response);n.response.headers=at.from(n.response.headers)}}return Promise.reject(n)}))}const Gt="1.15.0";const Zt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Qt={};Zt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Gt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new we(i(o," has been removed"+(n?" in "+n:"")),we.ERR_DEPRECATED)}if(n&&!Qt[o]){Qt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Zt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Yt(e,t,n){if(typeof e!=="object"){throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new we("option "+r+" must be "+n,we.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new we("Unknown option "+r,we.ERR_BAD_OPTION)}}}var en={assertOptions:Yt,validators:Zt};const tn=en.validators;class nn{constructor(e){this.defaults=e||{};this.interceptors={request:new Ce,response:new Ce}}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=(()=>{if(!t.stack){return""}const e=t.stack.indexOf("\n");return e===-1?"":t.stack.slice(e+1)})();try{if(!e.stack){e.stack=n}else if(n){const t=n.indexOf("\n");const o=t===-1?-1:n.indexOf("\n",t+1);const i=o===-1?"":n.slice(o+1);if(!String(e.stack).endsWith(i)){e.stack+="\n"+n}}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=St(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){en.assertOptions(n,{silentJSONParsing:tn.transitional(tn.boolean),forcedJSONParsing:tn.transitional(tn.boolean),clarifyTimeoutError:tn.transitional(tn.boolean),legacyInterceptorReqResOrdering:tn.transitional(tn.boolean)},false)}if(o!=null){if(be.isFunction(o)){t.paramsSerializer={serialize:o}}else{en.assertOptions(o,{encode:tn.function,serialize:tn.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}en.assertOptions(t,{baseUrl:tn.spelling("baseURL"),withXsrfToken:tn.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&be.merge(i.common,i[t.method]);i&&be.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=at.concat(r,i);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;const o=t.transitional||Ne;const i=o&&o.legacyInterceptorReqResOrdering;if(i){s.unshift(n.fulfilled,n.rejected)}else{s.push(n.fulfilled,n.rejected)}}));const a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));let l;let f=0;let u;if(!c){const e=[Wt.bind(this),undefined];e.unshift(...s);e.push(...a);u=e.length;l=Promise.resolve(t);while(f<u){l=l.then(e[f++],e[f++])}return l}u=s.length;let d=t;while(f<u){const e=s[f++];const t=s[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Wt.call(this,d)}catch(e){return Promise.reject(e)}f=0;u=a.length;while(f<u){l=l.then(a[f++],a[f++])}return l}getUri(e){e=St(this.defaults,e);const t=Rt(e.baseURL,e.url,e.allowAbsoluteUrls);return Ae(t,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],(function e(t){nn.prototype[t]=function(e,n){return this.request(St(n||{},{method:t,url:e,data:(n||{}).data}))}}));be.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(St(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}nn.prototype[t]=n();nn.prototype[t+"Form"]=n(true)}));class on{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,i,r){if(n.reason){return}n.reason=new ut(o,i,r);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 on((function t(n){e=n}));return{token:t,cancel:e}}}function rn(e){return function t(n){return e.apply(null,n)}}function sn(e){return be.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}));function an(t){const n=new nn(t);const o=e(nn.prototype.request,n);be.extend(o,nn.prototype,n,{allOwnKeys:true});be.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return an(St(t,n))};return o}const ln=an(Ve);ln.Axios=nn;ln.CanceledError=ut;ln.CancelToken=on;ln.isCancel=ft;ln.VERSION=Gt;ln.toFormData=Oe;ln.AxiosError=we;ln.Cancel=ln.CanceledError;ln.all=function e(t){return Promise.all(t)};ln.spread=rn;ln.isAxiosError=sn;ln.mergeConfig=St;ln.AxiosHeaders=at;ln.formToJSON=e=>Je(be.isHTMLForm(e)?new FormData(e):e);ln.getAdapter=Xt.getAdapter;ln.HttpStatusCode=cn;ln.default=ln;d=ln;return d}var m=p();var b=l(m);const w=f.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 y='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:start;align-items:flex-start;-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 g=`<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=i.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=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=r(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.name_locked=this.delegator?false:this.templateRole.name_locked||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,name_locked:this.name_locked,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,i,s,a,l,f,d,h,p,m,b,w,v,y,x,k,R;const O=this.first_name&&this.last_name&&c(this.email);const S=!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 T=O&&S;const E=((i=(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||i===void 0?void 0:i.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=(f=this.featureFlags)===null||f===void 0?void 0:f.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(E&&((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(((y=(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||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(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||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"60b3c7e1d51fc5e59ce2296a2502e8051369f924",onSubmit:e=>e.preventDefault(),autocomplete:"off"},n("div",{key:"5219f8b28cfa0c0c7c6fdc4aa8f8741b85f15288",class:"row"},n("label",{key:"8b7c606bedbf657f2d97cba51c49cb13773aed06",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"d9cbd5fdb7774f6707aeff10f979ecd77814497d",class:"names-row"},n("input",{key:"7df20c0da6bc2d77e853abbefa1568151606d2dc",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{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:"7f36af6f66659d43d8c566dc7734b6779d005e87",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:"539687898a19421dbe509f82ed114685db4a0536",anchor:this.firstNameFieldId,onClickAway:()=>{this.showSuggestions=false;document.querySelectorAll(`.verdocs-portal-wrapper`).forEach((e=>e.remove()))},id:"verdocs-contact-picker-suggestions"},n("div",{key:"1be1bfceea545bd2e138748cb1e675b1731fb496",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:g}),n("div",{class:"details"},n("div",{class:"name"},r(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"25f883e6e75bf2f9d79e02b8116751b0e66c081d",class:"row"},n("label",{key:"52a05b7c85512b6e32c53a39979ce05c811cec8a",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"7ce56d531a35d6a985bc256ababab83daa68e36b",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),E&&n("div",{key:"0c6143171cf7577e455654ed7cdcdce55c97d259",class:"row"},n("label",{key:"62b0a2ebf82ebfe9c74fe9f1bfda54e704243676",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"c1f8cb49deedd8330fee755419a9034661173fc5",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=u(e.target.value)}})),n(o,{key:"c68bd8d3e4184325fd96548fca5e1f25df4a90ba"},j.length>0&&n("div",{key:"184acacfa5e048562c153349108e164208878365",class:"row pin-code"},n("label",{key:"898d06cb4c7856ac0e603526a7526a9468a236e2"},"Verification Methods:"),n("div",{key:"db7765295ecba0eafe6849601adfcedf0dd8710a"},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:"09454b62bdbc05293dfd398f7174a573907e8ae0",class:"row pin-code"},n("label",{key:"2efe93bb07e93e510df6a3fbb47bf0877fb4e50e",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"5cf1a0555d219b524df8765738c14569aa645fc2",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"21af48b52a051730edecf6b5e4c48ca969774a94",class:"row pin-code"},n("label",{key:"0ff47e209674b8a1b48f31570b8dd207cf0ec99f",style:{marginTop:"6px"}},"Options:"),n("div",{key:"0f76797112a98e826ed29fa606ab90a9dc9c80cb"},n("div",{key:"25341b98161fc25fc94228f21123a393b39b9e6a",class:"option"},n("verdocs-checkbox",{key:"a8e699c364d4711a7ff895e8a14d9c62653be24d",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:e=>{this.delegator=e.target.checked;if(this.delegator)this.name_locked=false}}),n("label",{key:"69e79816be35fda253d6aa87eb17d555388bfabd",htmlFor:"verdocs-delegator"},"May delegate signing")),n("div",{key:"f7a272f4026c37e50735fad5bc2d2703be14ea07",class:"option"},n("verdocs-checkbox",{key:"e3b4321591a9284387ba06f4f5cf9a4b2ad4fc4b",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:e=>{this.name_locked=e.target.checked;if(this.name_locked)this.delegator=false}}),n("label",{key:"3a7a83510b408f0b3958bf3672d2d3faafff5936",htmlFor:"verdocs-name-locked"},"Name locked")))),n("div",{key:"b4264c8ba14c2fad3c3042e5ebcc5b5b65ed9ff3",class:"row message"},n("label",{key:"135343e32137c8a81bb90ae5033b148bd46e3723",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"5ed4d8cc6135335967784586053adecef8d5fdad",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"430cf10e784514811edeb23dfc212cc299293df8",class:"buttons"},n("div",{key:"2c3e117bc385528fec01fc2e55902fe7b2565d0f",class:"flex-fill"}),n("verdocs-button",{key:"6ed0e9b64bfedf5998decd0e7104c26b4a9d00f4",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"8f879cb74029c15454f812336ea1cc917a9622a4",label:"OK",size:"small",disabled:!T,onClick:!T?()=>{}:e=>this.handleSubmit(e)})))}};x.style=y;export{x as verdocs_contact_picker};
|
|
3
|
+
//# sourceMappingURL=p-5d030925.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-BIRwgFLv.js";import{VerdocsEndpoint as i,convertToE164 as o,createProfile as a,verifyEmail as r,authenticate as l,getMyUser as n,resendVerification as d,resetPassword as h}from"@verdocs/js-sdk";import{V as c}from"./p-D97GxsI-.js";import{S as u}from"./p-C1sRVZWv.js";const p='verdocs-auth{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{width:320px;display:-ms-flexbox;display:flex;padding:20px;max-width:90%;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-pack:center;justify-content:center;background:#ffffff}verdocs-auth .logo{width:128px;max-width:100%;margin:20px 0 30px}verdocs-auth h3{color:#092c4c;text-align:center;font-weight:400;font-size:18px;line-height:1.75;margin:0}verdocs-auth em{font-size:14px;margin:15px 0}verdocs-auth .buttons{gap:20px;margin:20px 0 0 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p{color:#092c4c;margin:1em 0;font-size:14px}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}verdocs-auth .already-have{color:#092c4c;margin:0.5em 0;font-size:14px}';const f=class{constructor(s){e(this,s);this.authenticated=t(this,"authenticated");this.sdkError=t(this,"sdkError");this.endpoint=i.getDefault();this.visible=true;this.logo="https://app.verdocs.com/assets/blue-logo.svg";this.displayMode="login";this.org_name="";this.first_name="";this.last_name="";this.email="";this.phone="";this.verificationCode="";this.newPassword="";this.password="";this.confirmpass="";this.submitting=false;this.resendDisabled=false;this.session=null;this.profile=null;this.resendDisabledTimer=null;this.tempAuthEndpoint=new i({baseURL:i.getDefault().getBaseURL(),persist:false});this.handleHashChange=()=>{this.applyHashDisplayMode()}}componentWillLoad(){this.endpoint.loadSession();this.applyHashDisplayMode();if(typeof window!=="undefined"){window.addEventListener("hashchange",this.handleHashChange)}i.getDefault().onSessionChanged(((e,t,s)=>{var i,o;this.session=t;this.profile=s;if(t){(i=this.authenticated)===null||i===void 0?void 0:i.emit({authenticated:true,session:t,profile:s})}else{(o=this.authenticated)===null||o===void 0?void 0:o.emit({authenticated:false,session:t,profile:s})}}))}disconnectedCallback(){if(typeof window!=="undefined"){window.removeEventListener("hashchange",this.handleHashChange)}}applyHashDisplayMode(){if(typeof window==="undefined"){return}const e=(window.location.hash||"").replace(/^#/,"").toLowerCase();if(e==="forgot"){this.displayMode="forgot"}}isPasswordComplex(e){const t=e=>/[A-Z]/.test(e);const s=e=>/[a-z]/.test(e);const i=e=>/[`!@#$%^&*()_\-+=\[\]{};':"\\|,.<>\/?~ ]/.test(e);let o=0,a=0,r=0;for(let l=0;l<e.length;l++){let n=e.charAt(l);if(t(n))o++;else if(s(n))a++;else if(i(n))r++}return e.length>=8&&a>0&&o>0&&r>0}handleSignup(){if(!this.isPasswordComplex(this.password)){c("Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.",{style:"error"});return}if(this.password!==this.confirmpass){c("Passwords do not match.",{style:"error"});return}this.submitting=true;this.tempAuthEndpoint.clearSession();const e=o(this.phone);const t={email:this.email,password:this.password,first_name:this.first_name,last_name:this.last_name,org_name:this.org_name,phone:e};a(this.tempAuthEndpoint,t).then((e=>{console.log("[AUTH] Profile creation result",e);this.tempAuthEndpoint.setToken(e.access_token);this.password="";this.phone="";this.first_name="";this.last_name="";this.org_name="";this.displayMode="verify";this.submitting=false})).catch((e=>{var t,s,i,o,a,r;console.log("[AUTH] Signup error",e.response);this.submitting=false;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,profile:null,session:null});(s=this.sdkError)===null||s===void 0?void 0:s.emit(new u(e.message,(i=e.response)===null||i===void 0?void 0:i.status,(o=e.response)===null||o===void 0?void 0:o.data));c("Signup failed: "+((r=(a=e.response)===null||a===void 0?void 0:a.data)===null||r===void 0?void 0:r.error)||"Unknown Error",{style:"error"})}))}async handleVerification(){this.submitting=true;try{this.submitting=false;const e=await r(this.tempAuthEndpoint,{email:this.email,token:this.verificationCode});c("Thank you for verifying your email address.",{style:"success"});this.completeLogin(e)}catch(e){this.submitting=false;console.log("Verification error",e);c("Verification error, please check the code and try again.")}}completeLogin(e){this.clearForms();this.tempAuthEndpoint.clearSession();this.endpoint.setToken(e.access_token)}async loginAndCheckVerification(){var e;if(this.submitting){return}this.submitting=true;this.tempAuthEndpoint.clearSession();try{this.submitting=false;const e=await l(this.tempAuthEndpoint,{username:this.email.trim(),password:this.password,grant_type:"password"});console.log("[AUTH] Authenticated, checking email verification");this.tempAuthEndpoint.setToken(e.access_token);const t=await n(this.tempAuthEndpoint);if(!t.email_verified){console.log("[AUTH] Logged in, pending email address verification");this.displayMode="verify"}else{console.log("[AUTH] Email address is verified, completing login");this.completeLogin(e)}}catch(t){this.submitting=false;console.log("[AUTH] Auth failure",((e=t.response)===null||e===void 0?void 0:e.data)||t);c("Login failed. Please check your credentials and try again.",{style:"error"})}}clearForms(){this.submitting=false;this.resendDisabled=false;this.email="";this.phone="";this.password="";this.newPassword="";this.confirmpass="";this.verificationCode="";this.first_name="";this.last_name="";this.org_name=""}handleLogout(){console.log("logging out");this.endpoint.clearSession();this.tempAuthEndpoint.clearSession();this.clearForms();this.displayMode="login"}handleResendVerification(){this.resendDisabled=true;this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=false;this.resendDisabledTimer=null}),3e4);d(this.tempAuthEndpoint).then((e=>{console.log("[AUTH] Verification request resent",e);c("Please check your email for a verification code.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e);c("Unable to resend code. Please try again later.",{style:"error"})}))}handleResendReset(){this.resendDisabled=true;this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=false;this.resendDisabledTimer=null}),3e4);h(this.tempAuthEndpoint,{email:this.email}).then((e=>{console.log("[AUTH] Resend-code request resent",e);c("Please check your email again for a verification code.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend reset request",e);c("Unable to resend code. Please try again later.",{style:"error"})}))}async handleResetGetCode(){this.submitting=true;this.confirmpass="";this.newPassword="";try{this.submitting=false;const e=await h(this.endpoint,{email:this.email});console.log("[AUTH] Reset result",e);c("Please check your email inbox for a password reset code.",{style:"success"});this.verificationCode="";this.confirmpass="";this.newPassword="";this.displayMode="reset"}catch(e){this.submitting=false;console.log("Reset request error",e);c("Request failed. Please check your email address and try again.")}}async handleResetPassword(){if(!this.isPasswordComplex(this.newPassword)){c("Password must be at least 8 characters long and contain at least one uppercase, one lowercase, and one special character.",{style:"error"});return}if(this.newPassword!==this.confirmpass){c("Passwords do not match.",{style:"error"});return}this.submitting=true;try{this.submitting=false;const e=await h(this.endpoint,{email:this.email,code:this.verificationCode,new_password:this.newPassword});console.log("reset result",e);c("Your password has been reset. You may now use your new password to login.",{style:"success"});this.verificationCode="";this.confirmpass="";this.newPassword="";this.password="";this.displayMode="login"}catch(e){this.submitting=false;console.log("Verification error",e);c("Verification error, please check the code and try again.")}}async handleReset(){this.submitting=true;try{const e=await h(this.endpoint,{email:this.email});console.log("[AUTH] Reset sent",e);this.submitting=false;this.displayMode="login";c("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})}catch(e){console.log("[AUTH] Unable to reset password",e);this.submitting=false;c("Unable to reset password. Please check your email address and try again.",{style:"error"})}}render(){if(!this.visible){return s("div",{style:{display:"none"}},"Authenticated")}if(this.session){return s("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})}if(this.displayMode==="signup"){const e=this.submitting||!this.first_name||!this.last_name||!this.email||!this.password||!this.confirmpass||!this.org_name;return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Sign up for a free account"),s("div",{class:"already-have"},"Already have an account?",s("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),s("form",{onSubmit:()=>this.handleSignup()},s("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},s("verdocs-text-input",{label:"First Name",autocomplete:"first",required:true,value:this.first_name,onInput:e=>this.first_name=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:true,value:this.last_name,onInput:e=>this.last_name=e.target.value,disabled:this.submitting})),s("verdocs-text-input",{label:"Email Address",autocomplete:"email",required:true,value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"new-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Confirm Password",type:"password",required:true,autocomplete:"off",value:this.confirmpass,onInput:e=>this.confirmpass=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Phone Number",type:"tel",required:true,autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:true,value:this.org_name,onInput:e=>this.org_name=e.target.value,disabled:this.submitting,style:{flex:"1"}}),s("div",{style:{marginTop:"30px"}}),s("verdocs-button",{label:"Next",disabled:e,onClick:e?()=>{}:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}if(this.displayMode==="verify"){return s("div",{class:"form"},s("form",{onSubmit:()=>this.handleVerification()},s("p",null,"Please check your e-mail inbox for a verification code and enter it below."),s("verdocs-text-input",{label:"Verification Code",required:true,value:this.verificationCode,onInput:e=>this.verificationCode=e.target.value,disabled:this.submitting}),s("div",{class:"buttons"},s("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>this.handleLogout()}),s("verdocs-button",{label:"Verify",disabled:this.submitting||!this.verificationCode||this.verificationCode.length!==6,onClick:()=>this.handleVerification()})),s("div",{class:"buttons"},s("verdocs-button",{variant:"text",label:"Resend Code",disabled:this.resendDisabled||this.submitting,onClick:()=>this.handleResendVerification()}))))}if(this.displayMode==="forgot"){return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Forgot your password?"),s("p",null,"Enter your e-mail address below. If the e-mail address is valid, a password reset code will be sent to your inbox. Please allow up to 15 minutes to arrive, and check your spam folder if you do not receive the message."),s("form",{onSubmit:()=>this.handleResetGetCode()},s("verdocs-text-input",{label:"Email Address",autocomplete:"email",required:true,value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("div",{style:{marginTop:"30px"}}),s("div",{class:"buttons"},s("verdocs-button",{size:"small",label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),s("verdocs-button",{size:"small",label:"Request Code",disabled:this.submitting,onClick:()=>this.handleResetGetCode()}))))}if(this.displayMode==="reset"){return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Forgot your password?"),s("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox. Please allow up to 15 minutes to arrive. Check your spam folder if you do not receive the message."),s("form",{onSubmit:()=>this.handleResetPassword()},s("verdocs-text-input",{label:"Verification Code",required:true,value:this.verificationCode,onInput:e=>this.verificationCode=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"off",value:this.newPassword,onInput:e=>this.newPassword=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Confirm Password",type:"password",required:true,autocomplete:"off",value:this.confirmpass,onInput:e=>this.confirmpass=e.target.value,disabled:this.submitting}),s("div",{style:{marginTop:"30px"}}),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),s("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleResetPassword()})),s("div",{class:"buttons"},s("verdocs-button",{variant:"text",label:"Resend Code",disabled:this.resendDisabled||this.submitting,onClick:()=>this.handleResendReset()}))))}return s("div",{class:"form"},s("a",{href:"https://verdocs.com/en/"},s("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),s("h3",null,"Log in to your account"),s("div",{class:"already-have"},"Don't have an account?",s("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.submitting})),s("form",{onSubmit:()=>this.loginAndCheckVerification()},s("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.email,onInput:e=>this.email=e.target.value,disabled:this.submitting}),s("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),s("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),s("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};f.style=p;export{f as verdocs_auth};
|
|
2
|
+
//# sourceMappingURL=p-60751680.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["registerInstance","createEvent","h","VerdocsEndpoint","convertToE164","createProfile","verifyEmail","authenticate","getMyUser","resendVerification","resetPassword","VerdocsToast","SDKError","verdocsAuthCss","VerdocsAuth","constructor","hostRef","this","authenticated","sdkError","endpoint","getDefault","visible","logo","displayMode","org_name","first_name","last_name","email","phone","verificationCode","newPassword","password","confirmpass","submitting","resendDisabled","session","profile","resendDisabledTimer","tempAuthEndpoint","baseURL","getBaseURL","persist","handleHashChange","applyHashDisplayMode","componentWillLoad","loadSession","window","addEventListener","onSessionChanged","_endpoint","_a","_b","emit","disconnectedCallback","removeEventListener","hash","location","replace","toLowerCase","isPasswordComplex","isUppercase","ch","test","isLowercase","isSpecialChar","countOfUpperCase","countOfLowerCase","countOfSpecialChar","i","length","charAt","handleSignup","style","clearSession","formattedPhone","createProfileParams","then","r","console","log","setToken","access_token","catch","e","_c","_d","_e","_f","response","message","status","data","error","handleVerification","verificationResult","token","completeLogin","result","clearForms","loginAndCheckVerification","authResult","username","trim","grant_type","user","email_verified","handleLogout","handleResendVerification","setTimeout","handleResendReset","handleResetGetCode","handleResetPassword","resetResult","code","new_password","handleReset","render","display","label","disabled","onClick","justifyContent","margin","invalid","class","href","src","alt","variant","onSubmit","flexDirection","columnGap","autocomplete","required","value","onInput","target","type","flex","marginTop","size"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAaC,MAAS,4CAClDC,mBAAiBC,mBAAeC,iBAAeC,kBAAaC,eAAcC,wBAAWC,mBAAoBC,MAAqB,8BACzHC,MAAoB,8BACpBC,MAAgB,kBAE9B,MAAMC,EAAiB,4oDAEvB,MAAMC,EAAc,MAChB,WAAAC,CAAYC,GACRhB,EAAiBiB,KAAMD,GACvBC,KAAKC,cAAgBjB,EAAYgB,KAAM,iBACvCA,KAAKE,SAAWlB,EAAYgB,KAAM,YAIlCA,KAAKG,SAAWjB,EAAgBkB,aAMhCJ,KAAKK,QAAU,KAMfL,KAAKM,KAAO,+CAIZN,KAAKO,YAAc,QACnBP,KAAKQ,SAAW,GAChBR,KAAKS,WAAa,GAClBT,KAAKU,UAAY,GACjBV,KAAKW,MAAQ,GACbX,KAAKY,MAAQ,GACbZ,KAAKa,iBAAmB,GACxBb,KAAKc,YAAc,GACnBd,KAAKe,SAAW,GAChBf,KAAKgB,YAAc,GACnBhB,KAAKiB,WAAa,MAClBjB,KAAKkB,eAAiB,MACtBlB,KAAKmB,QAAU,KACfnB,KAAKoB,QAAU,KACfpB,KAAKqB,oBAAsB,KAI3BrB,KAAKsB,iB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