pangea-lib 4.0.196 → 4.0.197
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/main.cjs.js +1 -1
- package/dist/main.es.js +1635 -1632
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -1660,7 +1660,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1660
1660
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const c=new this(t);return a.forEach(n=>c.set(n)),c}static accessor(t){const a=(this[Vk]=this[Vk]={accessors:{}}).accessors,c=this.prototype;function n(r){const i=Yn(r);a[i]||(df2(c,r),a[i]=!0)}return T1.isArray(t)?t.forEach(n):n(t),this}}Ph.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T1.reduceDescriptors(Ph.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});T1.freezeMethods(Ph);const p0=Ph;function Qm(e,t){const a=this||Jx,c=t||a,n=p0.from(c.headers);let r=c.data;return T1.forEach(e,function(i){r=i.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function $Z(e){return!!(e&&e.__CANCEL__)}function un(e,t,a){x2.call(this,e??"canceled",x2.ERR_CANCELED,t,a),this.name="CanceledError"}T1.inherits(un,x2,{__CANCEL__:!0});function jZ(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new x2("Request failed with status code "+a.status,[x2.ERR_BAD_REQUEST,x2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function mf2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function pf2(e,t){e=e||10;const a=new Array(e),c=new Array(e);let n=0,r=0,i;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),f=c[r];i||(i=l),a[n]=s,c[n]=l;let u=r,h=0;for(;u!==n;)h+=a[u++],u=u%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),l-i<t)return;const d=f&&l-f;return d?Math.round(h*1e3/d):void 0}}function vf2(e,t){let a=0,c=1e3/t,n,r;const i=(s,l=Date.now())=>{a=l,n=null,r&&(clearTimeout(r),r=null),e.apply(null,s)};return[(...s)=>{const l=Date.now(),f=l-a;f>=c?i(s,l):(n=s,r||(r=setTimeout(()=>{r=null,i(n)},c-f)))},()=>n&&i(n)]}const Af=(e,t,a=3)=>{let c=0;const n=pf2(50,250);return vf2(r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=s;c=i;const h={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:r,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(h)},a)},wk=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},_k=e=>(...t)=>T1.asap(()=>e(...t)),gf2=de.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,de.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(de.origin),de.navigator&&/(msie|trident)/i.test(de.navigator.userAgent)):()=>!0,yf2=de.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];T1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),T1.isString(c)&&i.push("path="+c),T1.isString(n)&&i.push("domain="+n),r===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function bf2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zf2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qZ(e,t){return e&&!bf2(t)?zf2(e,t):t}const Lk=e=>e instanceof p0?{...e}:e;function ec(e,t){t=t||{};const a={};function c(f,u,h,d){return T1.isPlainObject(f)&&T1.isPlainObject(u)?T1.merge.call({caseless:d},f,u):T1.isPlainObject(u)?T1.merge({},u):T1.isArray(u)?u.slice():u}function n(f,u,h,d){if(T1.isUndefined(u)){if(!T1.isUndefined(f))return c(void 0,f,h,d)}else return c(f,u,h,d)}function r(f,u){if(!T1.isUndefined(u))return c(void 0,u)}function i(f,u){if(T1.isUndefined(u)){if(!T1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function s(f,u,h){if(h in t)return c(f,u);if(h in e)return c(void 0,f)}const l={url:r,method:r,data:r,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(f,u,h)=>n(Lk(f),Lk(u),h,!0)};return T1.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=l[f]||n,h=u(e[f],t[f],f);T1.isUndefined(h)&&u!==s||(a[f]=h)}),a}const UZ=e=>{const t=ec({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:s}=t;t.headers=i=p0.from(i),t.url=RZ(qZ(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(T1.isFormData(a)){if(de.hasStandardBrowserEnv||de.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(de.hasStandardBrowserEnv&&(c&&T1.isFunction(c)&&(c=c(t)),c||c!==!1&&gf2(t.url))){const f=n&&r&&yf2.read(r);f&&i.set(n,f)}return t},xf2=typeof XMLHttpRequest<"u",Mf2=xf2&&function(e){return new Promise(function(t,a){const c=UZ(e);let n=c.data;const r=p0.from(c.headers).normalize();let{responseType:i,onUploadProgress:s,onDownloadProgress:l}=c,f,u,h,d,m;function v(){d&&d(),m&&m(),c.cancelToken&&c.cancelToken.unsubscribe(f),c.signal&&c.signal.removeEventListener("abort",f)}let p=new XMLHttpRequest;p.open(c.method.toUpperCase(),c.url,!0),p.timeout=c.timeout;function g(){if(!p)return;const b=p0.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:b,config:e,request:p};jZ(function(z){t(z),v()},function(z){a(z),v()},x),p=null}"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(g)},p.onabort=function(){p&&(a(new x2("Request aborted",x2.ECONNABORTED,e,p)),p=null)},p.onerror=function(){a(new x2("Network Error",x2.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let b=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const x=c.transitional||FZ;c.timeoutErrorMessage&&(b=c.timeoutErrorMessage),a(new x2(b,x.clarifyTimeoutError?x2.ETIMEDOUT:x2.ECONNABORTED,e,p)),p=null},n===void 0&&r.setContentType(null),"setRequestHeader"in p&&T1.forEach(r.toJSON(),function(b,x){p.setRequestHeader(x,b)}),T1.isUndefined(c.withCredentials)||(p.withCredentials=!!c.withCredentials),i&&i!=="json"&&(p.responseType=c.responseType),l&&([h,m]=Af(l,!0),p.addEventListener("progress",h)),s&&p.upload&&([u,d]=Af(s),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",d)),(c.cancelToken||c.signal)&&(f=b=>{p&&(a(!b||b.type?new un(null,e,p):b),p.abort(),p=null)},c.cancelToken&&c.cancelToken.subscribe(f),c.signal&&(c.signal.aborted?f():c.signal.addEventListener("abort",f)));const y=mf2(c.url);if(y&&de.protocols.indexOf(y)===-1){a(new x2("Unsupported protocol "+y+":",x2.ERR_BAD_REQUEST,e));return}p.send(n||null)})},Cf2=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let c=new AbortController,n;const r=function(f){if(!n){n=!0,s();const u=f instanceof Error?f:this.reason;c.abort(u instanceof x2?u:new un(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new x2(`timeout ${t} of ms exceeded`,x2.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(r):f.removeEventListener("abort",r)}),e=null)};e.forEach(f=>f.addEventListener("abort",r));const{signal:l}=c;return l.unsubscribe=()=>T1.asap(s),l}},Hf2=Cf2,Vf2=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let c=0,n;for(;c<a;)n=c+t,yield e.slice(c,n),c=n},wf2=async function*(e,t){for await(const a of _f2(e))yield*Vf2(a,t)},_f2=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:c}=await t.read();if(a)break;yield c}}finally{await t.cancel()}},kk=(e,t,a,c)=>{const n=wf2(e,t);let r=0,i,s=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){s(),l.close();return}let h=u.byteLength;if(a){let d=r+=h;a(d)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),n.return()}},{highWaterMark:2})},Bh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",WZ=Bh&&typeof ReadableStream=="function",Lf2=Bh&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),YZ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kf2=WZ&&YZ(()=>{let e=!1;const t=new Request(de.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Sk=64*1024,Mg=WZ&&YZ(()=>T1.isReadableStream(new Response("").body)),Nf={stream:Mg&&(e=>e.body)};Bh&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Nf[t]&&(Nf[t]=T1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new x2(`Response type '${t}' is not supported`,x2.ERR_NOT_SUPPORT,c)})})})(new Response);const Sf2=async e=>{if(e==null)return 0;if(T1.isBlob(e))return e.size;if(T1.isSpecCompliantForm(e))return(await new Request(de.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(T1.isArrayBufferView(e)||T1.isArrayBuffer(e))return e.byteLength;if(T1.isURLSearchParams(e)&&(e=e+""),T1.isString(e))return(await Lf2(e)).byteLength},Af2=async(e,t)=>T1.toFiniteNumber(e.getContentLength())??Sf2(t),Nf2=Bh&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:h="same-origin",fetchOptions:d}=UZ(e);f=f?(f+"").toLowerCase():"text";let m=Hf2([n,r&&r.toAbortSignal()],i),v;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&kf2&&a!=="get"&&a!=="head"&&(g=await Af2(u,c))!==0){let M=new Request(t,{method:"POST",body:c,duplex:"half"}),V;if(T1.isFormData(c)&&(V=M.headers.get("content-type"))&&u.setContentType(V),M.body){const[C,_]=wk(g,Af(_k(l)));c=kk(M.body,Sk,C,_)}}T1.isString(h)||(h=h?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...d,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:y?h:void 0});let b=await fetch(v);const x=Mg&&(f==="stream"||f==="response");if(Mg&&(s||x&&p)){const M={};["status","statusText","headers"].forEach(k=>{M[k]=b[k]});const V=T1.toFiniteNumber(b.headers.get("content-length")),[C,_]=s&&wk(V,Af(_k(s),!0))||[];b=new Response(kk(b.body,Sk,C,()=>{_&&_(),p&&p()}),M)}f=f||"text";let z=await Nf[T1.findKey(Nf,f)||"text"](b,e);return!x&&p&&p(),await new Promise((M,V)=>{jZ(M,V,{data:z,headers:p0.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new x2("Network Error",x2.ERR_NETWORK,e,v),{cause:y.cause||y}):x2.from(y,y&&y.code,e,v)}}),Cg={http:Ul2,xhr:Mf2,fetch:Nf2};T1.forEach(Cg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ak=e=>`- ${e}`,Tf2=e=>T1.isFunction(e)||e===null||e===!1,GZ={getAdapter:e=>{e=T1.isArray(e)?e:[e];const{length:t}=e;let a,c;const n={};for(let r=0;r<t;r++){a=e[r];let i;if(c=a,!Tf2(a)&&(c=Cg[(i=String(a)).toLowerCase()],c===void 0))throw new x2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
|
|
1661
1661
|
`+r.map(Ak).join(`
|
|
1662
1662
|
`):" "+Ak(r[0]):"as no adapter specified";throw new x2("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return c},adapters:Cg};function Jm(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new un(null,e)}function Nk(e){return Jm(e),e.headers=p0.from(e.headers),e.data=Qm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),GZ.getAdapter(e.adapter||Jx.adapter)(e).then(function(t){return Jm(e),t.data=Qm.call(e,e.transformResponse,t),t.headers=p0.from(t.headers),t},function(t){return $Z(t)||(Jm(e),t&&t.response&&(t.response.data=Qm.call(e,e.transformResponse,t.response),t.response.headers=p0.from(t.response.headers))),Promise.reject(t)})}const ZZ="1.7.8",Rh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rh[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const Tk={};Rh.transitional=function(e,t,a){function c(n,r){return"[Axios v"+ZZ+"] Transitional option '"+n+"'"+r+(a?". "+a:"")}return(n,r,i)=>{if(e===!1)throw new x2(c(r," has been removed"+(t?" in "+t:"")),x2.ERR_DEPRECATED);return t&&!Tk[r]&&(Tk[r]=!0,console.warn(c(r," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(n,r,i):!0}};Rh.spelling=function(e){return(t,a)=>(console.warn(`${a} is likely a misspelling of ${e}`),!0)};function Ef2(e,t,a){if(typeof e!="object")throw new x2("options must be an object",x2.ERR_BAD_OPTION_VALUE);const c=Object.keys(e);let n=c.length;for(;n-- >0;){const r=c[n],i=t[r];if(i){const s=e[r],l=s===void 0||i(s,r,e);if(l!==!0)throw new x2("option "+r+" must be "+l,x2.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new x2("Unknown option "+r,x2.ERR_BAD_OPTION)}}const yl={assertOptions:Ef2,validators:Rh},O0=yl.validators;class Tf{constructor(t){this.defaults=t,this.interceptors={request:new Hk,response:new Hk}}async request(t,a){try{return await this._request(t,a)}catch(c){if(c instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const r=n.stack?n.stack.replace(/^.+\n/,""):"";try{c.stack?r&&!String(c.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(c.stack+=`
|
|
1663
|
-
`+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ec(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&yl.assertOptions(c,{silentJSONParsing:O0.transitional(O0.boolean),forcedJSONParsing:O0.transitional(O0.boolean),clarifyTimeoutError:O0.transitional(O0.boolean)},!1),n!=null&&(T1.isFunction(n)?a.paramsSerializer={serialize:n}:yl.assertOptions(n,{encode:O0.function,serialize:O0.function},!0)),yl.assertOptions(a,{baseUrl:O0.spelling("baseURL"),withXsrfToken:O0.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&T1.merge(r.common,r[a.method]);r&&T1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p0.concat(i,r);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,h=0,d;if(!l){const v=[Nk.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),d=v.length,u=Promise.resolve(a);h<d;)u=u.then(v[h++],v[h++]);return u}d=s.length;let m=a;for(h=0;h<d;){const v=s[h++],p=s[h++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=Nk.call(this,m)}catch(v){return Promise.reject(v)}for(h=0,d=f.length;h<d;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=ec(this.defaults,t);const a=qZ(t.baseURL,t.url);return RZ(a,t.params,t.paramsSerializer)}}T1.forEach(["delete","get","head","options"],function(e){Tf.prototype[e]=function(t,a){return this.request(ec(a||{},{method:e,url:t,data:(a||{}).data}))}});T1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(ec(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}Tf.prototype[e]=t(),Tf.prototype[e+"Form"]=t(!0)});const bl=Tf;class eM{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const c=this;this.promise.then(n=>{if(!c._listeners)return;let r=c._listeners.length;for(;r-- >0;)c._listeners[r](n);c._listeners=null}),this.promise.then=n=>{let r;const i=new Promise(s=>{c.subscribe(s),r=s}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new un(n,r,i),a(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=c=>{t.abort(c)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new eM(function(a){t=a}),cancel:t}}}const Of2=eM;function Df2(e){return function(t){return e.apply(null,t)}}function Pf2(e){return T1.isObject(e)&&e.isAxiosError===!0}const Hg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hg).forEach(([e,t])=>{Hg[t]=e});const Bf2=Hg;function XZ(e){const t=new bl(e),a=_Z(bl.prototype.request,t);return T1.extend(a,bl.prototype,t,{allOwnKeys:!0}),T1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return XZ(ec(e,c))},a}const j4=XZ(Jx);j4.Axios=bl;j4.CanceledError=un;j4.CancelToken=Of2;j4.isCancel=$Z;j4.VERSION=ZZ;j4.toFormData=Dh;j4.AxiosError=x2;j4.Cancel=j4.CanceledError;j4.all=function(e){return Promise.all(e)};j4.spread=Df2;j4.isAxiosError=Pf2;j4.mergeConfig=ec;j4.AxiosHeaders=p0;j4.formToJSON=e=>IZ(T1.isHTMLForm(e)?new FormData(e):e);j4.getAdapter=GZ.getAdapter;j4.HttpStatusCode=Bf2;j4.default=j4;const Rf2={timeFrom:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(0),lessEqualRule:Dm(23)},timeTo:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(1),lessEqualRule:Dm(24)},timeStep:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(1),lessEqualRule:Dm(60)}},Ff2=o.defineComponent({__name:"ConfigModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{},config:{required:!0},configModifiers:{}},emits:["update:modelValue","update:config"],setup(e){const t=o.useModel(e,"modelValue"),a=o.useModel(e,"config"),c=I2("pgaCalendar"),n=o.ref({...a.value}),r=QO(Rf2,n);async function i(){if(await r.value.$validate()){if(n.value.timeTo<=n.value.timeFrom){w6("danger",c("errorTimeRange"));return}a.value={...n.value},t.value=!1}}return(s,l)=>{const f=o.resolveComponent("PgaSwitch"),u=o.resolveComponent("PgaInput"),h=o.resolveComponent("PgaForm"),d=o.resolveComponent("PgaModal");return o.openBlock(),o.createBlock(d,{modelValue:t.value,"onUpdate:modelValue":l[4]||(l[4]=m=>t.value=m),title:o.unref(c)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:o.unref(c)("applyBtn"),acceptIcon:"check",onAccept:l[5]||(l[5]=m=>i())},{default:o.withCtx(()=>[o.createVNode(h,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:n.value.displayWeekends,"onUpdate:modelValue":l[0]||(l[0]=m=>n.value.displayWeekends=m),label:o.unref(c)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),o.createVNode(u,{modelValue:n.value.timeFrom,"onUpdate:modelValue":l[1]||(l[1]=m=>n.value.timeFrom=m),type:"number",integer:"",label:o.unref(c)("timeFrom"),description:o.unref(c)("timeFromDescription"),errors:o.unref(r).timeFrom.$errors},null,8,["modelValue","label","description","errors"]),o.createVNode(u,{modelValue:n.value.timeTo,"onUpdate:modelValue":l[2]||(l[2]=m=>n.value.timeTo=m),type:"number",integer:"",label:o.unref(c)("timeTo"),description:o.unref(c)("timeToDescription"),errors:o.unref(r).timeTo.$errors},null,8,["modelValue","label","description","errors"]),o.createVNode(u,{modelValue:n.value.timeStep,"onUpdate:modelValue":l[3]||(l[3]=m=>n.value.timeStep=m),type:"number",integer:"",label:o.unref(c)("timeStep"),description:o.unref(c)("timeStepDescription"),errors:o.unref(r).timeStep.$errors},null,8,["modelValue","label","description","errors"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),If2={class:"pga-calendar"},$f2={class:"calendar-header"},jf2={class:"calendar-header__actions"},qf2={class:"calendar-header__navigation"},Uf2={class:"calendar-header__views"},Wf2=["onClick"],Yf2=50,Gf2=o.defineComponent({__name:"PgaCalendar",props:o.mergeModels({noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{config:{required:!0},configModifiers:{},events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:o.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:config","update:events","update:searchRange"]),setup(e,{emit:t}){const a=o.useModel(e,"config"),c=o.useModel(e,"events"),n=o.useModel(e,"searchRange"),r=e,i=t,s=I2("pgaCalendar"),l=mi(),f=o.ref(l?"day":"week"),u=o.ref([]),h=N4.getConfig().delayTime;let d=0,m;const v=o.ref(!1),p=o.computed(()=>l?["month","day"]:["month","week","day"]),g=o.computed(()=>["years","year",...l?["week"]:[]]),y=o.computed(()=>{var H;const w=((H=r.vacations)==null?void 0:H.flatMap(({start:O,end:F})=>{const N=[],B=new Date(O),I=new Date(F);for(;B<=I;){const X=B.getUTCFullYear(),Y=B.getUTCMonth(),q=B.getUTCDate(),D=new Date(Date.UTC(X,Y,q));N.push(D.toISOString().split("T")[0]),B.setUTCDate(B.getUTCDate()+1)}return N}))||[];return[...r.holidays||[],...w]}),b=o.computed(()=>a.value.timeStep*6e4);o.watch(a,()=>i("configChanged"));function x(w){const H=new Date(w);H.setMinutes(0,0,0);const O=w.getTime()-H.getTime(),F=Math.floor(O/b.value);return new Date(H.getTime()+F*b.value)}function z({start:w,end:H}){const O=w.getFullYear(),F=H.getFullYear(),N=[O];O!==F&&N.push(F),u.value=N}function M(w){n.value&&w.start>=n.value.start&&w.end<=n.value.end||(n.value=w,i("refreshList",w))}function V(w){const{startDate:H,endDate:O}=w;z({start:H,end:O}),M({start:H,end:O})}function C(w){if(f.value==="month")return;const H=Date.now();if(H-d<h){m&&clearTimeout(m);return}d=H;const O=x(w),F=new Date(O.getTime()+b.value);m=setTimeout(()=>i("createEvent",{start:O,end:F}),h)}async function _(w){const H=c.value.find(O=>O.id===w.event.id);H.start=x(w.event.start),H.end=x(w.event.end);try{await r.updateDatesFn(H)}catch{H.start=new Date(w.originalEvent.start),H.end=new Date(w.originalEvent.end)}}function k(w){setTimeout(()=>i("eventClicked",w),h)}function S(){const w=x(new Date),H=new Date(w.getTime()+b.value);i("createEvent",{start:w,end:H})}return(w,H)=>{const O=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",If2,[o.createElementVNode("div",$f2,[o.createElementVNode("div",jf2,[o.createVNode(P2,{variant:"filled",size:"s",icon:"plus",text:o.unref(s)("createEvent"),onClick:H[0]||(H[0]=F=>S())},null,8,["text"]),o.createVNode(P2,{variant:"flat",size:"s",icon:"cog",text:o.unref(s)("configBtn"),onClick:H[1]||(H[1]=F=>v.value=!0)},null,8,["text"]),o.createVNode(Ff2,{modelValue:v.value,"onUpdate:modelValue":H[2]||(H[2]=F=>v.value=F),config:a.value,"onUpdate:config":H[3]||(H[3]=F=>a.value=F)},null,8,["modelValue","config"])]),o.createElementVNode("div",qf2,[o.createElementVNode("div",Uf2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,F=>(o.openBlock(),o.createBlock(P2,{key:F,variant:f.value===F?"filled":"flat",size:"s",text:o.unref(s)(F),onClick:N=>f.value=F},null,8,["variant","text","onClick"]))),128))])])]),o.createVNode(o.unref(ah1),{ref:"vuecalRef",activeView:f.value,"onUpdate:activeView":H[4]||(H[4]=F=>f.value=F),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:c.value,locale:o.unref(b0)().language,disableViews:g.value,disableDays:y.value,hideWeekends:!a.value.displayWeekends,timeFrom:a.value.timeFrom*60,timeTo:a.value.timeTo*60,timeStep:a.value.timeStep,timeCellHeight:Yf2,editableEvents:{drag:!!w.updateDatesFn},style:{"min-height":"22.5rem"},onReady:H[5]||(H[5]=F=>V(F)),onViewChange:H[6]||(H[6]=F=>V(F)),onCellClick:H[7]||(H[7]=F=>C(F)),onEventDrop:H[8]||(H[8]=F=>_(F))},o.createSlots({"previous-button":o.withCtx(()=>[o.createVNode(P2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":o.withCtx(()=>[o.createVNode(P2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:o.withCtx(({event:F})=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"cal-event-container",onClick:N=>k(F)},[o.renderSlot(w.$slots,"event",{event:F},void 0,!0)],8,Wf2)),[[O,F.toStringFull()]])]),_:2},[w.isLoading?{name:"title",fn:o.withCtx(()=>[o.createVNode(y8,{size:"m"})]),key:"0"}:void 0,w.noEventsLabel?{name:"no-event",fn:o.withCtx(()=>[o.createVNode(E3,{text:w.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])])}}});const Zf2=K1(Gf2,[["__scopeId","data-v-f5c19d81"]]);/*!
|
|
1663
|
+
`+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=ec(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&yl.assertOptions(c,{silentJSONParsing:O0.transitional(O0.boolean),forcedJSONParsing:O0.transitional(O0.boolean),clarifyTimeoutError:O0.transitional(O0.boolean)},!1),n!=null&&(T1.isFunction(n)?a.paramsSerializer={serialize:n}:yl.assertOptions(n,{encode:O0.function,serialize:O0.function},!0)),yl.assertOptions(a,{baseUrl:O0.spelling("baseURL"),withXsrfToken:O0.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&T1.merge(r.common,r[a.method]);r&&T1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p0.concat(i,r);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,h=0,d;if(!l){const v=[Nk.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),d=v.length,u=Promise.resolve(a);h<d;)u=u.then(v[h++],v[h++]);return u}d=s.length;let m=a;for(h=0;h<d;){const v=s[h++],p=s[h++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=Nk.call(this,m)}catch(v){return Promise.reject(v)}for(h=0,d=f.length;h<d;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=ec(this.defaults,t);const a=qZ(t.baseURL,t.url);return RZ(a,t.params,t.paramsSerializer)}}T1.forEach(["delete","get","head","options"],function(e){Tf.prototype[e]=function(t,a){return this.request(ec(a||{},{method:e,url:t,data:(a||{}).data}))}});T1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(ec(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}Tf.prototype[e]=t(),Tf.prototype[e+"Form"]=t(!0)});const bl=Tf;class eM{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const c=this;this.promise.then(n=>{if(!c._listeners)return;let r=c._listeners.length;for(;r-- >0;)c._listeners[r](n);c._listeners=null}),this.promise.then=n=>{let r;const i=new Promise(s=>{c.subscribe(s),r=s}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new un(n,r,i),a(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=c=>{t.abort(c)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new eM(function(a){t=a}),cancel:t}}}const Of2=eM;function Df2(e){return function(t){return e.apply(null,t)}}function Pf2(e){return T1.isObject(e)&&e.isAxiosError===!0}const Hg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hg).forEach(([e,t])=>{Hg[t]=e});const Bf2=Hg;function XZ(e){const t=new bl(e),a=_Z(bl.prototype.request,t);return T1.extend(a,bl.prototype,t,{allOwnKeys:!0}),T1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return XZ(ec(e,c))},a}const j4=XZ(Jx);j4.Axios=bl;j4.CanceledError=un;j4.CancelToken=Of2;j4.isCancel=$Z;j4.VERSION=ZZ;j4.toFormData=Dh;j4.AxiosError=x2;j4.Cancel=j4.CanceledError;j4.all=function(e){return Promise.all(e)};j4.spread=Df2;j4.isAxiosError=Pf2;j4.mergeConfig=ec;j4.AxiosHeaders=p0;j4.formToJSON=e=>IZ(T1.isHTMLForm(e)?new FormData(e):e);j4.getAdapter=GZ.getAdapter;j4.HttpStatusCode=Bf2;j4.default=j4;const Rf2={timeFrom:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(0),lessEqualRule:Dm(23)},timeTo:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(1),lessEqualRule:Dm(24)},timeStep:{requiredRule:Em,integerRule:Om,greaterEqualRule:Pm(1),lessEqualRule:Dm(60)}},Ff2=o.defineComponent({__name:"ConfigModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{},config:{required:!0},configModifiers:{}},emits:["update:modelValue","update:config"],setup(e){const t=o.useModel(e,"modelValue"),a=o.useModel(e,"config"),c=I2("pgaCalendar"),n=o.ref({...a.value}),r=QO(Rf2,n);async function i(){if(await r.value.$validate()){if(n.value.timeTo<=n.value.timeFrom){w6("danger",c("errorTimeRange"));return}a.value={...n.value},t.value=!1}}return(s,l)=>{const f=o.resolveComponent("PgaSwitch"),u=o.resolveComponent("PgaInput"),h=o.resolveComponent("PgaForm"),d=o.resolveComponent("PgaModal");return o.openBlock(),o.createBlock(d,{modelValue:t.value,"onUpdate:modelValue":l[7]||(l[7]=m=>t.value=m),title:o.unref(c)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:o.unref(c)("applyBtn"),acceptIcon:"check",onAccept:l[8]||(l[8]=m=>i())},{default:o.withCtx(()=>[o.createVNode(h,null,{default:o.withCtx(()=>[o.createVNode(f,{modelValue:n.value.displayWeekends,"onUpdate:modelValue":l[0]||(l[0]=m=>n.value.displayWeekends=m),label:o.unref(c)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),o.createVNode(u,{modelValue:n.value.timeFrom,"onUpdate:modelValue":l[1]||(l[1]=m=>n.value.timeFrom=m),type:"number",integer:"",label:o.unref(c)("timeFrom"),description:o.unref(c)("timeFromDescription"),errors:o.unref(r).timeFrom.$errors,onKeyup:l[2]||(l[2]=o.withKeys(m=>i(),["enter"]))},null,8,["modelValue","label","description","errors"]),o.createVNode(u,{modelValue:n.value.timeTo,"onUpdate:modelValue":l[3]||(l[3]=m=>n.value.timeTo=m),type:"number",integer:"",label:o.unref(c)("timeTo"),description:o.unref(c)("timeToDescription"),errors:o.unref(r).timeTo.$errors,onKeyup:l[4]||(l[4]=o.withKeys(m=>i(),["enter"]))},null,8,["modelValue","label","description","errors"]),o.createVNode(u,{modelValue:n.value.timeStep,"onUpdate:modelValue":l[5]||(l[5]=m=>n.value.timeStep=m),type:"number",integer:"",label:o.unref(c)("timeStep"),description:o.unref(c)("timeStepDescription"),errors:o.unref(r).timeStep.$errors,onKeyup:l[6]||(l[6]=o.withKeys(m=>i(),["enter"]))},null,8,["modelValue","label","description","errors"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),If2={class:"pga-calendar"},$f2={class:"calendar-header"},jf2={class:"calendar-header__actions"},qf2={class:"calendar-header__navigation"},Uf2={class:"calendar-header__views"},Wf2=["onClick"],Yf2=50,Gf2=o.defineComponent({__name:"PgaCalendar",props:o.mergeModels({noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{config:{required:!0},configModifiers:{},events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:o.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:config","update:events","update:searchRange"]),setup(e,{emit:t}){const a=o.useModel(e,"config"),c=o.useModel(e,"events"),n=o.useModel(e,"searchRange"),r=e,i=t,s=I2("pgaCalendar"),l=mi(),f=o.ref(l?"day":"week"),u=o.ref([]),h=N4.getConfig().delayTime;let d=0,m;const v=o.ref(!1),p=o.computed(()=>l?["month","day"]:["month","week","day"]),g=o.computed(()=>["years","year",...l?["week"]:[]]),y=o.computed(()=>{var H;const w=((H=r.vacations)==null?void 0:H.flatMap(({start:O,end:F})=>{const N=[],B=new Date(O),I=new Date(F);for(;B<=I;){const X=B.getUTCFullYear(),Y=B.getUTCMonth(),q=B.getUTCDate(),D=new Date(Date.UTC(X,Y,q));N.push(D.toISOString().split("T")[0]),B.setUTCDate(B.getUTCDate()+1)}return N}))||[];return[...r.holidays||[],...w]}),b=o.computed(()=>a.value.timeStep*6e4);o.watch(a,()=>i("configChanged"));function x(w){const H=new Date(w);H.setMinutes(0,0,0);const O=w.getTime()-H.getTime(),F=Math.floor(O/b.value);return new Date(H.getTime()+F*b.value)}function z({start:w,end:H}){const O=w.getFullYear(),F=H.getFullYear(),N=[O];O!==F&&N.push(F),u.value=N}function M(w){n.value&&w.start>=n.value.start&&w.end<=n.value.end||(n.value=w,i("refreshList",w))}function V(w){const{startDate:H,endDate:O}=w;z({start:H,end:O}),M({start:H,end:O})}function C(w){if(f.value==="month")return;const H=Date.now();if(H-d<h){m&&clearTimeout(m);return}d=H;const O=x(w),F=new Date(O.getTime()+b.value);m=setTimeout(()=>i("createEvent",{start:O,end:F}),h)}async function _(w){const H=c.value.find(O=>O.id===w.event.id);H.start=x(w.event.start),H.end=x(w.event.end);try{await r.updateDatesFn(H)}catch{H.start=new Date(w.originalEvent.start),H.end=new Date(w.originalEvent.end)}}function k(w){setTimeout(()=>i("eventClicked",w),h)}function S(){const w=x(new Date),H=new Date(w.getTime()+b.value);i("createEvent",{start:w,end:H})}return(w,H)=>{const O=o.resolveDirective("tooltip");return o.openBlock(),o.createElementBlock("div",If2,[o.createElementVNode("div",$f2,[o.createElementVNode("div",jf2,[o.createVNode(P2,{variant:"filled",size:"s",icon:"plus",text:o.unref(s)("createEvent"),onClick:H[0]||(H[0]=F=>S())},null,8,["text"]),o.createVNode(P2,{variant:"flat",size:"s",icon:"cog",text:o.unref(s)("configBtn"),onClick:H[1]||(H[1]=F=>v.value=!0)},null,8,["text"]),o.createVNode(Ff2,{modelValue:v.value,"onUpdate:modelValue":H[2]||(H[2]=F=>v.value=F),config:a.value,"onUpdate:config":H[3]||(H[3]=F=>a.value=F)},null,8,["modelValue","config"])]),o.createElementVNode("div",qf2,[o.createElementVNode("div",Uf2,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.value,F=>(o.openBlock(),o.createBlock(P2,{key:F,variant:f.value===F?"filled":"flat",size:"s",text:o.unref(s)(F),onClick:N=>f.value=F},null,8,["variant","text","onClick"]))),128))])])]),o.createVNode(o.unref(ah1),{ref:"vuecalRef",activeView:f.value,"onUpdate:activeView":H[4]||(H[4]=F=>f.value=F),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:c.value,locale:o.unref(b0)().language,disableViews:g.value,disableDays:y.value,hideWeekends:!a.value.displayWeekends,timeFrom:a.value.timeFrom*60,timeTo:a.value.timeTo*60,timeStep:a.value.timeStep,timeCellHeight:Yf2,editableEvents:{drag:!!w.updateDatesFn},style:{"min-height":"22.5rem"},onReady:H[5]||(H[5]=F=>V(F)),onViewChange:H[6]||(H[6]=F=>V(F)),onCellClick:H[7]||(H[7]=F=>C(F)),onEventDrop:H[8]||(H[8]=F=>_(F))},o.createSlots({"previous-button":o.withCtx(()=>[o.createVNode(P2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":o.withCtx(()=>[o.createVNode(P2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:o.withCtx(({event:F})=>[o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:"cal-event-container",onClick:N=>k(F)},[o.renderSlot(w.$slots,"event",{event:F},void 0,!0)],8,Wf2)),[[O,F.toStringFull()]])]),_:2},[w.isLoading?{name:"title",fn:o.withCtx(()=>[o.createVNode(y8,{size:"m"})]),key:"0"}:void 0,w.noEventsLabel?{name:"no-event",fn:o.withCtx(()=>[o.createVNode(E3,{text:w.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])])}}});const Zf2=K1(Gf2,[["__scopeId","data-v-f5c19d81"]]);/*!
|
|
1664
1664
|
* @kurkle/color v0.3.4
|
|
1665
1665
|
* https://github.com/kurkle/color#readme
|
|
1666
1666
|
* (c) 2024 Jukka Kurkela
|