@verdocs/web-sdk 6.9.10 → 6.9.12
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/verdocs-contact-picker.cjs.entry.js +121 -15
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/components/{p-D_8TNtkM.js → p-Bpe5Awxh.js} +2 -2
- package/dist/components/p-DeQsR41s.js +3 -0
- package/dist/components/p-DeQsR41s.js.map +1 -0
- package/dist/components/verdocs-build.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +121 -15
- package/dist/esm/verdocs-contact-picker.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/verdocs-web-sdk/p-3a542ed0.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-CT0DHyPw.js +0 -3
- package/dist/components/p-CT0DHyPw.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-b464b598.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-b464b598.entry.js.map +0 -1
- /package/dist/components/{p-D_8TNtkM.js.map → p-Bpe5Awxh.js.map} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as n,F as o}from"./p-CjTHbolG.js";import{VerdocsEndpoint as r,formatFullName as i,getActiveEntitlements as s,isValidEmail as c}from"@verdocs/js-sdk";import{c as a,g as l}from"./p-BFTU3MAI.js";import{B as f}from"./p-C_Xku1v2.js";import{f as u}from"./p-T412l3FU.js";import"./p-BglCURB-.js";import"./p-CIxfEdV7.js";
|
|
2
|
-
/*! Axios v1.16.1 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:r}=Symbol;const i=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const s=e=>{e=e.toLowerCase();return t=>i(t)===e};const c=e=>t=>typeof t===e;const{isArray:l}=Array;const 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 y=c("number");const g=e=>e!==null&&typeof e==="object";const v=e=>e===true||e===false;const x=e=>{if(i(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(r in e)&&!(o in e)};const k=e=>{if(!g(e)||u(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};const O=s("Date");const R=s("File");const S=e=>!!(e&&typeof e.uri!=="undefined");const E=e=>e&&typeof e.getParts!=="undefined";const T=s("Blob");const j=s("FileList");const _=e=>g(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 A=C();const N=typeof A.FormData!=="undefined"?A.FormData:undefined;const F=e=>{if(!e)return false;if(N&&e instanceof N)return true;const t=n(e);if(!t||t===Object.prototype)return false;if(!w(e.append))return false;const o=i(e);return o==="formdata"||o==="object"&&w(e.toString)&&e.toString()==="[object FormData]"};const P=s("URLSearchParams");const[U,B,I,D]=["ReadableStream","Request","Response","Headers"].map(s);const L=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function M(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let r;if(typeof e!=="object"){e=[e]}if(l(e)){for(o=0,r=e.length;o<r;o++){t.call(null,e[o],o,e)}}else{if(u(e)){return}const r=n?Object.getOwnPropertyNames(e):Object.keys(e);const i=r.length;let s;for(o=0;o<i;o++){s=r[o];t.call(null,e[s],s,e)}}}function q(e,t){if(u(e)){return null}t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let r;while(o-- >0){r=n[o];if(t===r.toLowerCase()){return r}}return null}const 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(...e){const{caseless:t,skipUndefined:n}=$(this)&&this||{};const o={};const r=(e,r)=>{if(r==="__proto__"||r==="constructor"||r==="prototype"){return}const i=t&&q(o,r)||r;const s=ne(o,i)?o[i]:undefined;if(x(s)&&x(e)){o[i]=H(s,e)}else if(x(e)){o[i]=H({},e)}else if(l(e)){o[i]=e.slice()}else if(!n||!f(e)){o[i]=e}};for(let t=0,n=e.length;t<n;t++){e[t]&&M(e[t],r)}return o}const K=(t,n,o,{allOwnKeys:r}={})=>{M(n,((n,r)=>{if(o&&w(n)){Object.defineProperty(t,r,{__proto__:null,value:e(n,o),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(t,r,{__proto__:null,value:n,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:r});return t};const J=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const W=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{__proto__:null,value:t.prototype});n&&Object.assign(e.prototype,n)};const X=(e,t,o,r)=>{let i;let s;let c;const a={};t=t||{};if(e==null)return t;do{i=Object.getOwnPropertyNames(e);s=i.length;while(s-- >0){c=i[s];if((!r||r(c,e,t))&&!a[c]){t[c]=e[c];a[c]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const 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(!y(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 r=n.call(e);let i;while((i=r.next())&&!i.done){const n=i.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 re=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};M(n,((n,r)=>{let i;if((i=t(n,r,e))!==false){o[r]=i||n}}));Object.defineProperties(e,o)};const ie=e=>{re(e,((t,n)=>{if(w(e)&&["arguments","caller","callee"].includes(n)){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[r]==="FormData"&&e[o])}const fe=e=>{const t=new WeakSet;const n=e=>{if(g(e)){if(t.has(e)){return}if(u(e)){return e}if(!("toJSON"in e)){t.add(e);const o=l(e)?[]:{};M(e,((e,t)=>{const r=n(e);!f(r)&&(o[t]=r)}));t.delete(e);return o}}return e};return n(e)};const ue=s("AsyncFunction");const de=e=>e&&(g(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:F,isArrayBufferView:m,isString:b,isNumber:y,isBoolean:v,isObject:g,isPlainObject:x,isEmptyObject:k,isReadableStream:U,isRequest:B,isResponse:I,isHeaders:D,isUndefined:f,isDate:O,isFile:R,isReactNativeBlob:S,isReactNative:E,isBlob:T,isRegExp:oe,isFunction:w,isStream:_,isURLSearchParams:P,isTypedArray:Z,isFileList:j,forEach:M,merge:H,extend:K,trim:L,stripBOM:J,inherits:W,toFlatObject:X,kindOf:i,kindOfTest:s,endsWith:V,toArray:G,forEachEntry:Q,matchAll:Y,isHTMLForm:ee,hasOwnProperty:ne,hasOwnProp:ne,reduceDescriptors:re,freezeMethods:ie,toObjectSet:se,toCamelCase:te,noop:ce,toFiniteNumber:ae,findKey:q,global:z,isContextDefined:$,isSpecCompliantForm:le,toJSONObject:fe,isAsyncFn:ue,isThenable:de,setImmediate:he,asap:pe,isIterable:me};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 ye=e=>{const t={};let n;let o;let r;e&&e.split("\n").forEach((function e(i){r=i.indexOf(":");n=i.substring(0,r).trim().toLowerCase();o=i.substring(r+1).trim();if(!n||t[n]&&we[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};function ge(e){let t=0;let n=e.length;while(t<n){const n=e.charCodeAt(t);if(n!==9&&n!==32){break}t+=1}while(n>t){const t=e.charCodeAt(n-1);if(t!==9&&t!==32){break}n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const ve=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g");const xe=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ke(e,t){if(be.isArray(e)){return e.map((e=>ke(e,t)))}return ge(String(e).replace(t,""))}const Oe=e=>ke(e,ve);const Re=e=>ke(e,xe);function Se(e){const t=Object.create(null);be.forEach(e.toJSON(),((e,n)=>{t[n]=Re(e)}));return t}const Ee=Symbol("internals");function Te(e){return e&&String(e).trim().toLowerCase()}function je(e){if(e===false||e==null){return e}return be.isArray(e)?e.map(je):Oe(String(e))}function _e(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 Ce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ae(e,t,n,o,r){if(be.isFunction(o)){return o.call(this,t,n)}if(r){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 Ne(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Fe(e,t){const n=be.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{__proto__:null,value:function(e,n,r){return this[o].call(this,t,e,n,r)},configurable:true})}))}class Pe{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function r(e,t,n){const r=Te(t);if(!r){throw new Error("header name must be a non-empty string")}const i=be.findKey(o,r);if(!i||o[i]===undefined||n===true||n===undefined&&o[i]!==false){o[i||t]=je(e)}}const i=(e,t)=>be.forEach(e,((e,n)=>r(e,n,t)));if(be.isPlainObject(e)||e instanceof this.constructor){i(e,t)}else if(be.isString(e)&&(e=e.trim())&&!Ce(e)){i(ye(e),t)}else if(be.isObject(e)&&be.isIterable(e)){let n={},o,r;for(const t of e){if(!be.isArray(t)){throw TypeError("Object iterator must return a key-value pair")}n[r=t[0]]=(o=n[r])?be.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}i(n,t)}else{e!=null&&r(t,e,n)}return this}get(e,t){e=Te(e);if(e){const n=be.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return _e(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=Te(e);if(e){const n=be.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Ae(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function r(e){e=Te(e);if(e){const r=be.findKey(n,e);if(r&&(!t||Ae(n,n[r],r,t))){delete n[r];o=true}}}if(be.isArray(e)){e.forEach(r)}else{r(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const r=t[n];if(!e||Ae(this,this[r],r,e,true)){delete this[r];o=true}}return o}normalize(e){const t=this;const n={};be.forEach(this,((o,r)=>{const i=be.findKey(n,r);if(i){t[i]=je(o);delete t[r];return}const s=e?Ne(r):String(r).trim();if(s!==r){delete t[r]}t[s]=je(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[Ee]=this[Ee]={accessors:{}};const n=t.accessors;const o=this.prototype;function r(e){const t=Te(e);if(!n[t]){Fe(o,e);n[t]=true}}be.isArray(e)?e.forEach(r):r(e);return this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(Pe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));be.freezeMethods(Pe);const Ue="[REDACTED ****]";function Be(e){if(be.hasOwnProp(e,"toJSON")){return true}let t=Object.getPrototypeOf(e);while(t&&t!==Object.prototype){if(be.hasOwnProp(t,"toJSON")){return true}t=Object.getPrototypeOf(t)}return false}function Ie(e,t){const n=new Set(t.map((e=>String(e).toLowerCase())));const o=[];const r=e=>{if(e===null||typeof e!=="object")return e;if(be.isBuffer(e))return e;if(o.indexOf(e)!==-1)return undefined;if(e instanceof Pe){e=e.toJSON()}o.push(e);let t;if(be.isArray(e)){t=[];e.forEach(((e,n)=>{const o=r(e);if(!be.isUndefined(o)){t[n]=o}}))}else{if(!be.isPlainObject(e)&&Be(e)){o.pop();return e}t=Object.create(null);for(const[o,i]of Object.entries(e)){const e=n.has(o.toLowerCase())?Ue:r(i);if(!be.isUndefined(e)){t[o]=e}}}o.pop();return t};return r(e)}class De extends Error{static from(e,t,n,o,r,i){const s=new De(e.message,t||e.code,n,o,r);s.cause=e;s.name=e.name;if(e.status!=null&&s.status==null){s.status=e.status}i&&Object.assign(s,i);return s}constructor(e,t,n,o,r){super(e);Object.defineProperty(this,"message",{__proto__:null,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(r){this.response=r;this.status=r.status}}toJSON(){const e=this.config;const t=e&&be.hasOwnProp(e,"redact")?e.redact:undefined;const n=be.isArray(t)&&t.length>0?Ie(e,t):be.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}De.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";De.ERR_BAD_OPTION="ERR_BAD_OPTION";De.ECONNABORTED="ECONNABORTED";De.ETIMEDOUT="ETIMEDOUT";De.ECONNREFUSED="ECONNREFUSED";De.ERR_NETWORK="ERR_NETWORK";De.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";De.ERR_DEPRECATED="ERR_DEPRECATED";De.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";De.ERR_BAD_REQUEST="ERR_BAD_REQUEST";De.ERR_CANCELED="ERR_CANCELED";De.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";De.ERR_INVALID_URL="ERR_INVALID_URL";De.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Le=null;function Me(e){return be.isPlainObject(e)||be.isArray(e)}function qe(e){return be.endsWith(e,"[]")?e.slice(0,-2):e}function ze(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=qe(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function $e(e){return be.isArray(e)&&!e.some(Me)}const He=be.toFlatObject(be,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function Ke(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 r=n.visitor||u;const i=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=n.maxDepth===undefined?100:n.maxDepth;const l=c&&be.isSpecCompliantForm(t);if(!be.isFunction(r)){throw new TypeError("visitor must be a function")}function f(e){if(e===null)return"";if(be.isDate(e)){return e.toISOString()}if(be.isBoolean(e)){return e.toString()}if(!l&&be.isBlob(e)){throw new De("Blob is not supported. Use a Buffer instead.")}if(be.isArrayBuffer(e)||be.isTypedArray(e)){return l&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,r){let c=e;if(be.isReactNative(t)&&be.isReactNativeBlob(e)){t.append(ze(r,n,i),f(e));return false}if(e&&!r&&typeof e==="object"){if(be.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(be.isArray(e)&&$e(e)||(be.isFileList(e)||be.endsWith(n,"[]"))&&(c=be.toArray(e))){n=qe(n);c.forEach((function e(o,r){!(be.isUndefined(o)||o===null)&&t.append(s===true?ze([n],r,i):s===null?n:n+"[]",f(o))}));return false}}if(Me(e)){return true}t.append(ze(r,n,i),f(e));return false}const d=[];const h=Object.assign(He,{defaultVisitor:u,convertValue:f,isVisitable:Me});function p(e,n,o=0){if(be.isUndefined(e))return;if(o>a){throw new De("Object is too deeply nested ("+o+" levels). Max depth: "+a,De.ERR_FORM_DATA_DEPTH_EXCEEDED)}if(d.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}d.push(e);be.forEach(e,(function e(i,s){const c=!(be.isUndefined(i)||i===null)&&r.call(t,i,be.isString(s)?s.trim():s,n,h);if(c===true){p(i,n?n.concat(s):[s],o+1)}}));d.pop()}if(!be.isObject(e)){throw new TypeError("data must be an object")}p(e);return t}function Je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function e(n){return t[n]}))}function We(e,t){this._pairs=[];e&&Ke(e,this,t)}const Xe=We.prototype;Xe.append=function e(t,n){this._pairs.push([t,n])};Xe.toString=function e(t){const n=t?function(e){return t.call(this,e,Je)}:Je;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function Ve(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ge(e,t,n){if(!t){return e}const o=n&&n.encode||Ve;const r=be.isFunction(n)?{serialize:n}:n;const i=r&&r.serialize;let s;if(i){s=i(t,r)}else{s=be.isURLSearchParams(t)?t.toString():new We(t,r).toString(o)}if(s){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Ze{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 Qe={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true};var Ye=typeof URLSearchParams!=="undefined"?URLSearchParams:We;var et=typeof FormData!=="undefined"?FormData:null;var tt=typeof Blob!=="undefined"?Blob:null;var nt={isBrowser:true,classes:{URLSearchParams:Ye,FormData:et,Blob:tt},protocols:["http","https","file","blob","url","data"]};const ot=typeof window!=="undefined"&&typeof document!=="undefined";const rt=typeof navigator==="object"&&navigator||undefined;const it=ot&&(!rt||["ReactNative","NativeScript","NS"].indexOf(rt.product)<0);const st=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const ct=ot&&window.location.href||"http://localhost";var at=Object.freeze({__proto__:null,hasBrowserEnv:ot,hasStandardBrowserEnv:it,hasStandardBrowserWebWorkerEnv:st,navigator:rt,origin:ct});var lt={...at,...nt};function ft(e,t){return Ke(e,new lt.classes.URLSearchParams,{visitor:function(e,t,n,o){if(lt.isNode&&be.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)},...t})}function ut(e){return be.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function dt(e){const t={};const n=Object.keys(e);let o;const r=n.length;let i;for(o=0;o<r;o++){i=n[o];t[i]=e[i]}return t}function ht(e){function t(e,n,o,r){let i=e[r++];if(i==="__proto__")return true;const s=Number.isFinite(+i);const c=r>=e.length;i=!i&&be.isArray(o)?o.length:i;if(c){if(be.hasOwnProp(o,i)){o[i]=be.isArray(o[i])?o[i].concat(n):[o[i],n]}else{o[i]=n}return!s}if(!be.hasOwnProp(o,i)||!be.isObject(o[i])){o[i]=[]}const a=t(e,n,o[i],r);if(a&&be.isArray(o[i])){o[i]=dt(o[i])}return!s}if(be.isFormData(e)&&be.isFunction(e.entries)){const n={};be.forEachEntry(e,((e,o)=>{t(ut(e),o,n,0)}));return n}return null}const pt=(e,t)=>e!=null&&be.hasOwnProp(e,t)?e[t]:undefined;function mt(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 bt={transitional:Qe,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const r=o.indexOf("application/json")>-1;const i=be.isObject(t);if(i&&be.isHTMLForm(t)){t=new FormData(t)}const s=be.isFormData(t);if(s){return r?JSON.stringify(ht(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(i){const e=pt(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1){return ft(t,e).toString()}if((c=be.isFileList(t))||o.indexOf("multipart/form-data")>-1){const n=pt(this,"env");const o=n&&n.FormData;return Ke(c?{"files[]":t}:t,o&&new o,e)}}if(i||r){n.setContentType("application/json",false);return mt(t)}return t}],transformResponse:[function e(t){const n=pt(this,"transitional")||bt.transitional;const o=n&&n.forcedJSONParsing;const r=pt(this,"responseType");const i=r==="json";if(be.isResponse(t)||be.isReadableStream(t)){return t}if(t&&be.isString(t)&&(o&&!r||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t,pt(this,"parseReviver"))}catch(e){if(o){if(e.name==="SyntaxError"){throw De.from(e,De.ERR_BAD_RESPONSE,this,null,pt(this,"response"))}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.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","query"],(e=>{bt.headers[e]={}}));function wt(e,t){const n=this||bt;const o=t||n;const r=Pe.from(o.headers);let i=o.data;be.forEach(e,(function e(o){i=o.call(n,i,r.normalize(),t?t.status:undefined)}));r.normalize();return i}function yt(e){return!!(e&&e.__CANCEL__)}class gt extends De{constructor(e,t,n){super(e==null?"canceled":e,De.ERR_CANCELED,t,n);this.name="CanceledError";this.__CANCEL__=true}}function vt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new De("Request failed with status code "+n.status,n.status>=400&&n.status<500?De.ERR_BAD_REQUEST:De.ERR_BAD_RESPONSE,n.config,n.request,n))}}function xt(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let r=0;let i=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const f=o[i];if(!s){s=l}n[r]=a;o[r]=l;let u=i;let d=0;while(u!==r){d+=n[u++];u=u%e}r=(r+1)%e;if(r===i){i=(i+1)%e}if(l-s<t){return}const h=f&&l-f;return h?Math.round(d*1e3/h):undefined}}function Ot(e,t){let n=0;let o=1e3/t;let r;let i;const s=(t,o=Date.now())=>{n=o;r=null;if(i){clearTimeout(i);i=null}e(...t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{r=e;if(!i){i=setTimeout((()=>{i=null;s(r)}),o-c)}}};const a=()=>r&&s(r);return[c,a]}const Rt=(e,t,n=3)=>{let o=0;const r=kt(50,250);return Ot((n=>{if(!n||typeof n.loaded!=="number"){return}const i=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=s!=null?Math.min(i,s):i;const a=Math.max(0,c-o);const l=r(a);o=Math.max(o,c);const f={loaded:c,total:s,progress:s?c/s:undefined,bytes:a,rate:l?l:undefined,estimated:l&&s?(s-c)/l:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(f)}),n)};const St=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const Et=e=>(...t)=>be.asap((()=>e(...t)));var Tt=lt.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,lt.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>true;var jt=lt.hasStandardBrowserEnv?{write(e,t,n,o,r,i,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(r)){c.push(`domain=${r}`)}if(i===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.split(";");for(let n=0;n<t.length;n++){const o=t[n].replace(/^\s+/,"");const r=o.indexOf("=");if(r!==-1&&o.slice(0,r)===e){return decodeURIComponent(o.slice(r+1))}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function _t(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ct(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function At(e,t,n){let o=!_t(t);if(e&&(o||n===false)){return Ct(e,t)}return t}const Nt=e=>e instanceof Pe?{...e}:e;function Ft(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:false,writable:true,configurable:true});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 r(e,t,n,r){if(!be.isUndefined(t)){return o(e,t,n,r)}else if(!be.isUndefined(e)){return o(undefined,e,n,r)}}function i(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,r,i){if(be.hasOwnProp(t,i)){return o(n,r)}else if(be.hasOwnProp(e,i)){return o(undefined,n)}}const a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(e,t,n)=>r(Nt(e),Nt(t),n,true)};be.forEach(Object.keys({...e,...t}),(function o(i){if(i==="__proto__"||i==="constructor"||i==="prototype")return;const s=be.hasOwnProp(a,i)?a[i]:r;const l=be.hasOwnProp(e,i)?e[i]:undefined;const f=be.hasOwnProp(t,i)?t[i]:undefined;const u=s(l,f,i);be.isUndefined(u)&&s!==c||(n[i]=u)}));return n}const Pt=["content-type","content-length"];function Ut(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach((([t,n])=>{if(Pt.includes(t.toLowerCase())){e.set(t,n)}}))}const Bt=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))));var It=e=>{const t=Ft({},e);const n=e=>be.hasOwnProp(t,e)?t[e]:undefined;const o=n("data");let r=n("withXSRFToken");const i=n("xsrfHeaderName");const s=n("xsrfCookieName");let c=n("headers");const a=n("auth");const l=n("baseURL");const f=n("allowAbsoluteUrls");const u=n("url");t.headers=c=Pe.from(c);t.url=Ge(At(l,u,f),e.params,e.paramsSerializer);if(a){c.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?Bt(a.password):"")))}if(be.isFormData(o)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv){c.setContentType(undefined)}else if(be.isFunction(o.getHeaders)){Ut(c,o.getHeaders(),n("formDataHeaderPolicy"))}}if(lt.hasStandardBrowserEnv){if(be.isFunction(r)){r=r(t)}const e=r===true||r==null&&Tt(t.url);if(e){const e=i&&s&&jt.read(s);if(e){c.set(i,e)}}}return t};const Dt=typeof XMLHttpRequest!=="undefined";var Lt=Dt&&function(e){return new Promise((function t(n,o){const r=It(e);let i=r.data;const s=Pe.from(r.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=r;let f;let u,d;let h,p;function m(){h&&h();p&&p();r.cancelToken&&r.cancelToken.unsubscribe(f);r.signal&&r.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(r.method.toUpperCase(),r.url,true);b.timeout=r.timeout;function w(){if(!b){return}const t=Pe.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const r=!c||c==="text"||c==="json"?b.responseText:b.response;const i={data:r,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};vt((function e(t){n(t);m()}),(function e(t){o(t);m()}),i);b=null}if("onloadend"in b){b.onloadend=w}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))){return}setTimeout(w)}}b.onabort=function t(){if(!b){return}o(new De("Request aborted",De.ECONNABORTED,e,b));m();b=null};b.onerror=function t(n){const r=n&&n.message?n.message:"Network Error";const i=new De(r,De.ERR_NETWORK,e,b);i.event=n||null;o(i);m();b=null};b.ontimeout=function t(){let n=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Qe;if(r.timeoutErrorMessage){n=r.timeoutErrorMessage}o(new De(n,i.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,e,b));m();b=null};i===undefined&&s.setContentType(null);if("setRequestHeader"in b){be.forEach(Se(s),(function e(t,n){b.setRequestHeader(n,t)}))}if(!be.isUndefined(r.withCredentials)){b.withCredentials=!!r.withCredentials}if(c&&c!=="json"){b.responseType=r.responseType}if(l){[d,p]=Rt(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[u,h]=Rt(a);b.upload.addEventListener("progress",u);b.upload.addEventListener("loadend",h)}if(r.cancelToken||r.signal){f=t=>{if(!b){return}o(!t||t.type?new gt(null,e,b):t);b.abort();m();b=null};r.cancelToken&&r.cancelToken.subscribe(f);if(r.signal){r.signal.aborted?f():r.signal.addEventListener("abort",f)}}const y=xt(r.url);if(y&&!lt.protocols.includes(y)){o(new De("Unsupported protocol "+y+":",De.ERR_BAD_REQUEST,e));return}b.send(i||null)}))};const Mt=(e,t)=>{e=e?e.filter(Boolean):[];if(!t&&!e.length){return}const n=new AbortController;let o=false;const r=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof De?t:new gt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null;r(new De(`timeout of ${t}ms exceeded`,De.ETIMEDOUT))}),t);const s=()=>{if(!e){return}i&&clearTimeout(i);i=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}));e=null};e.forEach((e=>e.addEventListener("abort",r)));const{signal:c}=n;c.unsubscribe=()=>be.asap(s);return c};const qt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let r;while(o<n){r=o+t;yield e.slice(o,r);o=r}};const zt=async function*(e,t){for await(const n of $t(e)){yield*qt(n,t)}};const $t=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 Ht=(e,t,n,o)=>{const r=zt(e,t);let i=0;let s;let c=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await r.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return r.return()}},{highWaterMark:2})};function Kt(e){if(!e||typeof e!=="string")return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t);const o=e.slice(t+1);const r=/;base64/i.test(n);if(r){let e=o.length;const t=o.length;for(let n=0;n<t;n++){if(o.charCodeAt(n)===37&&n+2<t){const t=o.charCodeAt(n+1);const r=o.charCodeAt(n+2);const i=(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102);if(i){e-=2;n+=2}}}let n=0;let r=t-1;const i=e=>e>=2&&o.charCodeAt(e-2)===37&&o.charCodeAt(e-1)===51&&(o.charCodeAt(e)===68||o.charCodeAt(e)===100);if(r>=0){if(o.charCodeAt(r)===61){n++;r--}else if(i(r)){n++;r-=3}}if(n===1&&r>=0){if(o.charCodeAt(r)===61){n++}else if(i(r)){n++}}const s=Math.floor(e/4);const c=s*3-(n||0);return c>0?c:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function"){return Buffer.byteLength(o,"utf8")}let i=0;for(let e=0,t=o.length;e<t;e++){const n=o.charCodeAt(e);if(n<128){i+=1}else if(n<2048){i+=2}else if(n>=55296&&n<=56319&&e+1<t){const t=o.charCodeAt(e+1);if(t>=56320&&t<=57343){i+=4;e++}else{i+=3}}else{i+=3}}return i}const Jt="1.16.1";const Wt=64*1024;const{isFunction:Xt}=be;const Vt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Gt=e=>{const t=be.global!==undefined&&be.global!==null?be.global:globalThis;const{ReadableStream:n,TextEncoder:o}=t;e=be.merge.call({skipUndefined:true},{Request:t.Request,Response:t.Response},e);const{fetch:r,Request:i,Response:s}=e;const c=r?Xt(r):typeof fetch==="function";const a=Xt(i);const l=Xt(s);if(!c){return false}const f=c&&Xt(n);const u=c&&(typeof o==="function"?(e=>t=>e.encode(t))(new o):async e=>new Uint8Array(await new i(e).arrayBuffer()));const d=a&&f&&Vt((()=>{let e=false;const t=new i(lt.origin,{body:new n,method:"POST",get duplex(){e=true;return"half"}});const o=t.headers.has("Content-Type");if(t.body!=null){t.body.cancel()}return e&&!o}));const h=l&&f&&Vt((()=>be.isReadableStream(new s("").body)));const p={stream:h&&(e=>e.body)};c&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!p[e]&&(p[e]=(t,n)=>{let o=t&&t[e];if(o){return o.call(t)}throw new De(`Response type '${e}' is not supported`,De.ERR_NOT_SUPPORT,n)})}))})();const m=async e=>{if(e==null){return 0}if(be.isBlob(e)){return e.size}if(be.isSpecCompliantForm(e)){const t=new i(lt.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 u(e)).byteLength}};const b=async(e,t)=>{const n=be.toFiniteNumber(e.getContentLength());return n==null?m(t):n};return async e=>{let{url:t,method:n,data:c,signal:l,cancelToken:f,timeout:u,onDownloadProgress:m,onUploadProgress:w,responseType:y,headers:g,withCredentials:v="same-origin",fetchOptions:x,maxContentLength:k,maxBodyLength:O}=It(e);const R=be.isNumber(k)&&k>-1;const S=be.isNumber(O)&&O>-1;let E=r||fetch;y=y?(y+"").toLowerCase():"text";let T=Mt([l,f&&f.toAbortSignal()],u);let j=null;const _=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let C;try{if(R&&typeof t==="string"&&t.startsWith("data:")){const n=Kt(t);if(n>k){throw new De("maxContentLength size of "+k+" exceeded",De.ERR_BAD_RESPONSE,e,j)}}if(S&&n!=="get"&&n!=="head"){const t=await b(g,c);if(typeof t==="number"&&isFinite(t)&&t>O){throw new De("Request body larger than maxBodyLength limit",De.ERR_BAD_REQUEST,e,j)}}if(w&&d&&n!=="get"&&n!=="head"&&(C=await b(g,c))!==0){let e=new i(t,{method:"POST",body:c,duplex:"half"});let n;if(be.isFormData(c)&&(n=e.headers.get("content-type"))){g.setContentType(n)}if(e.body){const[t,n]=St(C,Rt(Et(w)));c=Ht(e.body,Wt,t,n)}}if(!be.isString(v)){v=v?"include":"omit"}const r=a&&"credentials"in i.prototype;if(be.isFormData(c)){const e=g.getContentType();if(e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)){g.delete("content-type")}}g.set("User-Agent","axios/"+Jt,false);const l={...x,signal:T,method:n.toUpperCase(),headers:Se(g.normalize()),body:c,duplex:"half",credentials:r?v:undefined};j=a&&new i(t,l);let f=await(a?E(j,x):E(t,l));if(R){const t=be.toFiniteNumber(f.headers.get("content-length"));if(t!=null&&t>k){throw new De("maxContentLength size of "+k+" exceeded",De.ERR_BAD_RESPONSE,e,j)}}const u=h&&(y==="stream"||y==="response");if(h&&f.body&&(m||R||u&&_)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=f[e]}));const n=be.toFiniteNumber(f.headers.get("content-length"));const[o,r]=m&&St(n,Rt(Et(m),true))||[];let i=0;const c=t=>{if(R){i=t;if(i>k){throw new De("maxContentLength size of "+k+" exceeded",De.ERR_BAD_RESPONSE,e,j)}}o&&o(t)};f=new s(Ht(f.body,Wt,c,(()=>{r&&r();_&&_()})),t)}y=y||"text";let A=await p[be.findKey(p,y)||"text"](f,e);if(R&&!h&&!u){let t;if(A!=null){if(typeof A.byteLength==="number"){t=A.byteLength}else if(typeof A.size==="number"){t=A.size}else if(typeof A==="string"){t=typeof o==="function"?(new o).encode(A).byteLength:A.length}}if(typeof t==="number"&&t>k){throw new De("maxContentLength size of "+k+" exceeded",De.ERR_BAD_RESPONSE,e,j)}}!u&&_&&_();return await new Promise(((t,n)=>{vt(t,n,{data:A,headers:Pe.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:j})}))}catch(t){_&&_();if(T&&T.aborted&&T.reason instanceof De){const n=T.reason;n.config=e;j&&(n.request=j);t!==n&&(n.cause=t);throw n}if(t&&t.name==="TypeError"&&/Load failed|fetch/i.test(t.message)){throw Object.assign(new De("Network Error",De.ERR_NETWORK,e,j,t&&t.response),{cause:t.cause||t})}throw De.from(t,t&&t.code,e,j,t&&t.response)}}};const Zt=new Map;const Qt=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:r}=t;const i=[o,r,n];let s=i.length,c=s,a,l,f=Zt;while(c--){a=i[c];l=f.get(a);l===undefined&&f.set(a,l=c?new Map:Gt(t));f=l}return l};Qt();const Yt={http:Le,xhr:Lt,fetch:{get:Qt}};be.forEach(Yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));const en=e=>`- ${e}`;const tn=e=>be.isFunction(e)||e===null||e===false;function nn(e,t){e=be.isArray(e)?e:[e];const{length:n}=e;let o;let r;const i={};for(let s=0;s<n;s++){o=e[s];let n;r=o;if(!tn(o)){r=Yt[(n=String(o)).toLowerCase()];if(r===undefined){throw new De(`Unknown adapter '${n}'`)}}if(r&&(be.isFunction(r)||(r=r.get(t)))){break}i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(en).join("\n"):" "+en(e[0]):"as no adapter specified";throw new De(`There is no suitable adapter to dispatch the request `+t,"ERR_NOT_SUPPORT")}return r}var on={getAdapter:nn,adapters:Yt};function rn(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new gt(null,e)}}function sn(e){rn(e);e.headers=Pe.from(e.headers);e.data=wt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=on.getAdapter(e.adapter||bt.adapter,e);return t(e).then((function t(n){rn(e);e.response=n;try{n.data=wt.call(e,e.transformResponse,n)}finally{delete e.response}n.headers=Pe.from(n.headers);return n}),(function t(n){if(!yt(n)){rn(e);if(n&&n.response){e.response=n.response;try{n.response.data=wt.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=Pe.from(n.response.headers)}}return Promise.reject(n)}))}const cn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{cn[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const an={};cn.transitional=function e(t,n,o){function r(e,t){return"[Axios v"+Jt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,i)=>{if(t===false){throw new De(r(o," has been removed"+(n?" in "+n:"")),De.ERR_DEPRECATED)}if(n&&!an[o]){an[o]=true;console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,i):true}};cn.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function ln(e,t,n){if(typeof e!=="object"){throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let r=o.length;while(r-- >0){const i=o[r];const s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:undefined;if(s){const t=e[i];const n=t===undefined||s(t,i,e);if(n!==true){throw new De("option "+i+" must be "+n,De.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new De("Unknown option "+i,De.ERR_BAD_OPTION)}}}var fn={assertOptions:ln,validators:cn};const un=fn.validators;class dn{constructor(e){this.defaults=e||{};this.interceptors={request:new Ze,response:new Ze}}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 r=o===-1?"":n.slice(o+1);if(!String(e.stack).endsWith(r)){e.stack+="\n"+n}}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=Ft(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:r}=t;if(n!==undefined){fn.assertOptions(n,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean),legacyInterceptorReqResOrdering:un.transitional(un.boolean)},false)}if(o!=null){if(be.isFunction(o)){t.paramsSerializer={serialize:o}}else{fn.assertOptions(o,{encode:un.function,serialize:un.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}fn.assertOptions(t,{baseUrl:un.spelling("baseURL"),withXsrfToken:un.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&be.merge(r.common,r[t.method]);r&&be.forEach(["delete","get","head","post","put","patch","query","common"],(e=>{delete r[e]}));t.headers=Pe.concat(i,r);const s=[];let c=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}c=c&&n.synchronous;const o=t.transitional||Qe;const r=o&&o.legacyInterceptorReqResOrdering;if(r){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=[sn.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=sn.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=Ft(this.defaults,e);const t=At(e.baseURL,e.url,e.allowAbsoluteUrls);return Ge(t,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],(function e(t){dn.prototype[t]=function(e,n){return this.request(Ft(n||{},{method:t,url:e,data:(n||{}).data}))}}));be.forEach(["post","put","patch","query"],(function e(t){function n(e){return function n(o,r,i){return this.request(Ft(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}dn.prototype[t]=n();if(t!=="query"){dn.prototype[t+"Form"]=n(true)}}));class hn{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,r,i){if(n.reason){return}n.reason=new gt(o,r,i);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new hn((function t(n){e=n}));return{token:t,cancel:e}}}function pn(e){return function t(n){return e.apply(null,n)}}function mn(e){return be.isObject(e)&&e.isAxiosError===true}const bn={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(bn).forEach((([e,t])=>{bn[t]=e}));function wn(t){const n=new dn(t);const o=e(dn.prototype.request,n);be.extend(o,dn.prototype,n,{allOwnKeys:true});be.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return wn(Ft(t,n))};return o}const yn=wn(bt);yn.Axios=dn;yn.CanceledError=gt;yn.CancelToken=hn;yn.isCancel=yt;yn.VERSION=Jt;yn.toFormData=Ke;yn.AxiosError=De;yn.Cancel=yn.CanceledError;yn.all=function e(t){return Promise.all(t)};yn.spread=pn;yn.isAxiosError=mn;yn.mergeConfig=Ft;yn.AxiosHeaders=Pe;yn.formToJSON=e=>ht(be.isHTMLForm(e)?new FormData(e):e);yn.getAdapter=on.getAdapter;yn.HttpStatusCode=bn;yn.default=yn;d=yn;return d}var m=p();var b=l(m);const w=f.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const y=()=>b.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:w}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const g=()=>`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 v=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;const x=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.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=i(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.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)));y().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,r,s,a,l,f,d,h,p,m,b,w,y,g,x,k,O;const R=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 E=R&&S;const T=((r=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||r===void 0?void 0:r.enabled)===true;const j=[];if(((l=(a=(s=this.featureFlags)===null||s===void 0?void 0:s.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){j.push({label:"Passcode",value:"passcode"})}if(((h=(d=(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(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){j.push({label:"SMS (One-Time Code)",value:"sms"})}if(((g=(y=(w=this.featureFlags)===null||w===void 0?void 0:w.toggles)===null||y===void 0?void 0:y.find((e=>e.name==="kba-verification")))===null||g===void 0?void 0:g.enabled)===true&&!!this.activeEntitlements.kba_auth){j.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((O=(k=(x=this.featureFlags)===null||x===void 0?void 0:x.toggles)===null||k===void 0?void 0:k.find((e=>e.name==="id-verification")))===null||O===void 0?void 0:O.enabled)===true&&!!this.activeEntitlements.id_auth){j.push({label:"ID Check",value:"id"})}return n("form",{key:"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:v}),n("div",{class:"details"},n("div",{class:"name"},i(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"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})),T&&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=u(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:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};x.style=g();export{x as verdocs_contact_picker};
|
|
3
|
-
//# sourceMappingURL=p-b464b598.entry.js.map
|