pangea-lib 4.0.316 → 4.0.318
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 +1 -1
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -9468,7 +9468,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9468
9468
|
`)}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[z61]=this[z61]={accessors:{}}).accessors,c=this.prototype;function n(r){const i=p9(r);a[i]||(Cs3(c,r),a[i]=!0)}return E1.isArray(t)?t.forEach(n):n(t),this}}rj.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E1.reduceDescriptors(rj.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(c){this[a]=c}}});E1.freezeMethods(rj);const p6=rj;function kW(e,t){const a=this||sJ,c=t||a,n=p6.from(c.headers);let r=c.data;return E1.forEach(e,function(i){r=i.call(a,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Ov1(e){return!!(e&&e.__CANCEL__)}function Ns(e,t,a){b2.call(this,e??"canceled",b2.ERR_CANCELED,t,a),this.name="CanceledError"}E1.inherits(Ns,b2,{__CANCEL__:!0});function Iv1(e,t,a){const c=a.config.validateStatus;!a.status||!c||c(a.status)?e(a):t(new b2("Request failed with status code "+a.status,[b2.ERR_BAD_REQUEST,b2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function _s3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ws3(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(o){const l=Date.now(),f=c[r];i||(i=l),a[n]=o,c[n]=l;let u=r,d=0;for(;u!==n;)d+=a[u++],u=u%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),l-i<t)return;const h=f&&l-f;return h?Math.round(d*1e3/h):void 0}}function Hs3(e,t){let a=0,c=1e3/t,n,r;const i=(o,l=Date.now())=>{a=l,n=null,r&&(clearTimeout(r),r=null),e.apply(null,o)};return[(...o)=>{const l=Date.now(),f=l-a;f>=c?i(o,l):(n=o,r||(r=setTimeout(()=>{r=null,i(n)},c-f)))},()=>n&&i(n)]}const t$=(e,t,a=3)=>{let c=0;const n=ws3(50,250);return Hs3(r=>{const i=r.loaded,o=r.lengthComputable?r.total:void 0,l=i-c,f=n(l),u=i<=o;c=i;const d={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:f||void 0,estimated:f&&o&&u?(o-i)/f:void 0,event:r,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},a)},C61=(e,t)=>{const a=e!=null;return[c=>t[0]({lengthComputable:a,total:e,loaded:c}),t[1]]},_61=e=>(...t)=>E1.asap(()=>e(...t)),Ls3=m4.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,m4.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(m4.origin),m4.navigator&&/(msie|trident)/i.test(m4.navigator.userAgent)):()=>!0,Vs3=m4.hasStandardBrowserEnv?{write(e,t,a,c,n,r){const i=[e+"="+encodeURIComponent(t)];E1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),E1.isString(c)&&i.push("path="+c),E1.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 Ss3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ns3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bv1(e,t){return e&&!Ss3(t)?Ns3(e,t):t}const w61=e=>e instanceof p6?{...e}:e;function vi(e,t){t=t||{};const a={};function c(f,u,d,h){return E1.isPlainObject(f)&&E1.isPlainObject(u)?E1.merge.call({caseless:h},f,u):E1.isPlainObject(u)?E1.merge({},u):E1.isArray(u)?u.slice():u}function n(f,u,d,h){if(E1.isUndefined(u)){if(!E1.isUndefined(f))return c(void 0,f,d,h)}else return c(f,u,d,h)}function r(f,u){if(!E1.isUndefined(u))return c(void 0,u)}function i(f,u){if(E1.isUndefined(u)){if(!E1.isUndefined(f))return c(void 0,f)}else return c(void 0,u)}function o(f,u,d){if(d in t)return c(f,u);if(d 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:o,headers:(f,u,d)=>n(w61(f),w61(u),d,!0)};return E1.forEach(Object.keys(Object.assign({},e,t)),function(f){const u=l[f]||n,d=u(e[f],t[f],f);E1.isUndefined(d)&&u!==o||(a[f]=d)}),a}const Rv1=e=>{const t=vi({},e);let{data:a,withXSRFToken:c,xsrfHeaderName:n,xsrfCookieName:r,headers:i,auth:o}=t;t.headers=i=p6.from(i),t.url=Ev1(Bv1(t.baseURL,t.url),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(E1.isFormData(a)){if(m4.hasStandardBrowserEnv||m4.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(m4.hasStandardBrowserEnv&&(c&&E1.isFunction(c)&&(c=c(t)),c||c!==!1&&Ls3(t.url))){const f=n&&r&&Vs3.read(r);f&&i.set(n,f)}return t},As3=typeof XMLHttpRequest<"u",Ts3=As3&&function(e){return new Promise(function(t,a){const c=Rv1(e);let n=c.data;const r=p6.from(c.headers).normalize();let{responseType:i,onUploadProgress:o,onDownloadProgress:l}=c,f,u,d,h,p;function v(){h&&h(),p&&p(),c.cancelToken&&c.cancelToken.unsubscribe(f),c.signal&&c.signal.removeEventListener("abort",f)}let m=new XMLHttpRequest;m.open(c.method.toUpperCase(),c.url,!0),m.timeout=c.timeout;function y(){if(!m)return;const M=p6.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:M,config:e,request:m};Iv1(function(k){t(k),v()},function(k){a(k),v()},x),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new b2("Request aborted",b2.ECONNABORTED,e,m)),m=null)},m.onerror=function(){a(new b2("Network Error",b2.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let M=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded";const x=c.transitional||Dv1;c.timeoutErrorMessage&&(M=c.timeoutErrorMessage),a(new b2(M,x.clarifyTimeoutError?b2.ETIMEDOUT:b2.ECONNABORTED,e,m)),m=null},n===void 0&&r.setContentType(null),"setRequestHeader"in m&&E1.forEach(r.toJSON(),function(M,x){m.setRequestHeader(x,M)}),E1.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),i&&i!=="json"&&(m.responseType=c.responseType),l&&([d,p]=t$(l,!0),m.addEventListener("progress",d)),o&&m.upload&&([u,h]=t$(o),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",h)),(c.cancelToken||c.signal)&&(f=M=>{m&&(a(!M||M.type?new Ns(null,e,m):M),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(f),c.signal&&(c.signal.aborted?f():c.signal.addEventListener("abort",f)));const g=_s3(c.url);if(g&&m4.protocols.indexOf(g)===-1){a(new b2("Unsupported protocol "+g+":",b2.ERR_BAD_REQUEST,e));return}m.send(n||null)})},Es3=(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,o();const u=f instanceof Error?f:this.reason;c.abort(u instanceof b2?u:new Ns(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,r(new b2(`timeout ${t} of ms exceeded`,b2.ETIMEDOUT))},t);const o=()=>{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=()=>E1.asap(o),l}},Ds3=Es3,Ps3=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},Os3=async function*(e,t){for await(const a of Is3(e))yield*Ps3(a,t)},Is3=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()}},H61=(e,t,a,c)=>{const n=Os3(e,t);let r=0,i,o=l=>{i||(i=!0,c&&c(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){o(),l.close();return}let d=u.byteLength;if(a){let h=r+=d;a(h)}l.enqueue(new Uint8Array(u))}catch(f){throw o(f),f}},cancel(l){return o(l),n.return()}},{highWaterMark:2})},ij=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fv1=ij&&typeof ReadableStream=="function",Bs3=ij&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$v1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rs3=Fv1&&$v1(()=>{let e=!1;const t=new Request(m4.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),L61=64*1024,EG=Fv1&&$v1(()=>E1.isReadableStream(new Response("").body)),a$={stream:EG&&(e=>e.body)};ij&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!a$[t]&&(a$[t]=E1.isFunction(e[t])?a=>a[t]():(a,c)=>{throw new b2(`Response type '${t}' is not supported`,b2.ERR_NOT_SUPPORT,c)})})})(new Response);const Fs3=async e=>{if(e==null)return 0;if(E1.isBlob(e))return e.size;if(E1.isSpecCompliantForm(e))return(await new Request(m4.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E1.isArrayBufferView(e)||E1.isArrayBuffer(e))return e.byteLength;if(E1.isURLSearchParams(e)&&(e=e+""),E1.isString(e))return(await Bs3(e)).byteLength},$s3=async(e,t)=>E1.toFiniteNumber(e.getContentLength())??Fs3(t),qs3=ij&&(async e=>{let{url:t,method:a,data:c,signal:n,cancelToken:r,timeout:i,onDownloadProgress:o,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Rv1(e);f=f?(f+"").toLowerCase():"text";let p=Ds3([n,r&&r.toAbortSignal()],i),v;const m=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&Rs3&&a!=="get"&&a!=="head"&&(y=await $s3(u,c))!==0){let b=new Request(t,{method:"POST",body:c,duplex:"half"}),_;if(E1.isFormData(c)&&(_=b.headers.get("content-type"))&&u.setContentType(_),b.body){const[C,H]=C61(y,t$(_61(l)));c=H61(b.body,L61,C,H)}}E1.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;v=new Request(t,{...h,signal:p,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:c,duplex:"half",credentials:g?d:void 0});let M=await fetch(v);const x=EG&&(f==="stream"||f==="response");if(EG&&(o||x&&m)){const b={};["status","statusText","headers"].forEach(V=>{b[V]=M[V]});const _=E1.toFiniteNumber(M.headers.get("content-length")),[C,H]=o&&C61(_,t$(_61(o),!0))||[];M=new Response(H61(M.body,L61,C,()=>{H&&H(),m&&m()}),b)}f=f||"text";let k=await a$[E1.findKey(a$,f)||"text"](M,e);return!x&&m&&m(),await new Promise((b,_)=>{Iv1(b,_,{data:k,headers:p6.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:v})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new b2("Network Error",b2.ERR_NETWORK,e,v),{cause:g.cause||g}):b2.from(g,g&&g.code,e,v)}}),DG={http:as3,xhr:Ts3,fetch:qs3};E1.forEach(DG,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const V61=e=>`- ${e}`,js3=e=>E1.isFunction(e)||e===null||e===!1,qv1={getAdapter:e=>{e=E1.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,!js3(a)&&(c=DG[(i=String(a)).toLowerCase()],c===void 0))throw new b2(`Unknown adapter '${i}'`);if(c)break;n[i||"#"+r]=c}if(!c){const r=Object.entries(n).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?r.length>1?`since :
|
|
9469
9469
|
`+r.map(V61).join(`
|
|
9470
9470
|
`):" "+V61(r[0]):"as no adapter specified";throw new b2("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return c},adapters:DG};function xW(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ns(null,e)}function S61(e){return xW(e),e.headers=p6.from(e.headers),e.data=kW.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),qv1.getAdapter(e.adapter||sJ.adapter)(e).then(function(t){return xW(e),t.data=kW.call(e,e.transformResponse,t),t.headers=p6.from(t.headers),t},function(t){return Ov1(t)||(xW(e),t&&t.response&&(t.response.data=kW.call(e,e.transformResponse,t.response),t.response.headers=p6.from(t.response.headers))),Promise.reject(t)})}const jv1="1.7.8",oj={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oj[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const N61={};oj.transitional=function(e,t,a){function c(n,r){return"[Axios v"+jv1+"] Transitional option '"+n+"'"+r+(a?". "+a:"")}return(n,r,i)=>{if(e===!1)throw new b2(c(r," has been removed"+(t?" in "+t:"")),b2.ERR_DEPRECATED);return t&&!N61[r]&&(N61[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}};oj.spelling=function(e){return(t,a)=>(console.warn(`${a} is likely a misspelling of ${e}`),!0)};function Us3(e,t,a){if(typeof e!="object")throw new b2("options must be an object",b2.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 o=e[r],l=o===void 0||i(o,r,e);if(l!==!0)throw new b2("option "+r+" must be "+l,b2.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new b2("Unknown option "+r,b2.ERR_BAD_OPTION)}}const WR={assertOptions:Us3,validators:oj},D6=WR.validators;class c${constructor(t){this.defaults=t,this.interceptors={request:new b61,response:new b61}}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+=`
|
|
9471
|
-
`+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=vi(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&WR.assertOptions(c,{silentJSONParsing:D6.transitional(D6.boolean),forcedJSONParsing:D6.transitional(D6.boolean),clarifyTimeoutError:D6.transitional(D6.boolean)},!1),n!=null&&(E1.isFunction(n)?a.paramsSerializer={serialize:n}:WR.assertOptions(n,{encode:D6.function,serialize:D6.function},!0)),WR.assertOptions(a,{baseUrl:D6.spelling("baseURL"),withXsrfToken:D6.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&E1.merge(r.common,r[a.method]);r&&E1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p6.concat(i,r);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const v=[S61.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=o.length;let p=a;for(d=0;d<h;){const v=o[d++],m=o[d++];try{p=v(p)}catch(y){m.call(this,y);break}}try{u=S61.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=vi(this.defaults,t);const a=Bv1(t.baseURL,t.url);return Ev1(a,t.params,t.paramsSerializer)}}E1.forEach(["delete","get","head","options"],function(e){c$.prototype[e]=function(t,a){return this.request(vi(a||{},{method:e,url:t,data:(a||{}).data}))}});E1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(vi(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}c$.prototype[e]=t(),c$.prototype[e+"Form"]=t(!0)});const YR=c$;class lJ{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(o=>{c.subscribe(o),r=o}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new Ns(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 lJ(function(a){t=a}),cancel:t}}}const Ws3=lJ;function Ys3(e){return function(t){return e.apply(null,t)}}function Gs3(e){return E1.isObject(e)&&e.isAxiosError===!0}const PG={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(PG).forEach(([e,t])=>{PG[t]=e});const Zs3=PG;function Uv1(e){const t=new YR(e),a=bv1(YR.prototype.request,t);return E1.extend(a,YR.prototype,t,{allOwnKeys:!0}),E1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return Uv1(vi(e,c))},a}const qe=Uv1(sJ);qe.Axios=YR;qe.CanceledError=Ns;qe.CancelToken=Ws3;qe.isCancel=Ov1;qe.VERSION=jv1;qe.toFormData=nj;qe.AxiosError=b2;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=Ys3;qe.isAxiosError=Gs3;qe.mergeConfig=vi;qe.AxiosHeaders=p6;qe.formToJSON=e=>Pv1(E1.isHTMLForm(e)?new FormData(e):e);qe.getAdapter=qv1.getAdapter;qe.HttpStatusCode=Zs3;qe.default=qe;const Xs3={timeFrom:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(0),lessEqualRule:nW(23)},timeTo:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(24)},timeStep:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(60)}},Ks3=s.defineComponent({__name:"ConfigModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{},config:{required:!0},configModifiers:{}},emits:s.mergeModels(["configChanged"],["update:modelValue","update:config"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=s.useModel(e,"config"),n=t,r=$2("pgaCalendar"),i=s.ref({...c.value}),o=Yn1(Xs3,i);async function l(){if(!await o.value.$validate())return;if(i.value.timeTo<=i.value.timeFrom){H0("danger",r("errorTimeRange"));return}const f={...i.value};c.value=f,n("configChanged",f),a.value=!1}return(f,u)=>{const d=s.resolveComponent("PgaSwitch"),h=s.resolveComponent("PgaInput"),p=s.resolveComponent("PgaColorSelector"),v=s.resolveComponent("PgaForm"),m=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(m,{modelValue:a.value,"onUpdate:modelValue":u[8]||(u[8]=y=>a.value=y),title:s.unref(r)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:s.unref(r)("applyBtn"),acceptIcon:"check",onAccept:u[9]||(u[9]=y=>l())},{default:s.withCtx(()=>[s.createVNode(v,null,{default:s.withCtx(()=>[s.createVNode(d,{modelValue:i.value.displayWeekends,"onUpdate:modelValue":u[0]||(u[0]=y=>i.value.displayWeekends=y),label:s.unref(r)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),s.createVNode(h,{modelValue:i.value.timeFrom,"onUpdate:modelValue":u[1]||(u[1]=y=>i.value.timeFrom=y),type:"number",integer:"",label:s.unref(r)("timeFrom"),description:s.unref(r)("timeFromDescription"),errors:s.unref(o).timeFrom.$errors,onKeyup:u[2]||(u[2]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeTo,"onUpdate:modelValue":u[3]||(u[3]=y=>i.value.timeTo=y),type:"number",integer:"",label:s.unref(r)("timeTo"),description:s.unref(r)("timeToDescription"),errors:s.unref(o).timeTo.$errors,onKeyup:u[4]||(u[4]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeStep,"onUpdate:modelValue":u[5]||(u[5]=y=>i.value.timeStep=y),type:"number",integer:"",label:s.unref(r)("timeStep"),description:s.unref(r)("timeStepDescription"),errors:s.unref(o).timeStep.$errors,onKeyup:u[6]||(u[6]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(p,{modelValue:i.value.defaultColor,"onUpdate:modelValue":u[7]||(u[7]=y=>i.value.defaultColor=y),label:s.unref(r)("defaultColor")},null,8,["modelValue","label"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),Qs3={class:"pga-calendar"},Js3={class:"calendar-header"},e93={class:"calendar-header__actions"},t93={class:"calendar-header__navigation"},a93={class:"calendar-header__views"},c93=["onClick"],n93=50,r93=s.defineComponent({__name:"PgaCalendar",props:s.mergeModels({noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{config:{required:!0},configModifiers:{},events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:s.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:config","update:events","update:searchRange"]),setup(e,{emit:t}){const a=s.useModel(e,"config"),c=s.useModel(e,"events"),n=s.useModel(e,"searchRange"),r=e,i=t,o=$2("pgaCalendar"),l=Lo(),f=s.ref(l?"day":"week"),u=Te.getConfig().delayTime;let d=0,h;const p=s.ref(!1),v=s.computed(()=>l?["month","day"]:["month","week","day"]),m=s.computed(()=>["years","year",...l?["week"]:[]]),y=s.computed(()=>{var V;const H=((V=r.vacations)==null?void 0:V.flatMap(({start:N,end:L})=>{const w=[],P=new Date(N),j=new Date(L);for(;P<=j;){const T=P.getUTCFullYear(),B=P.getUTCMonth(),F=P.getUTCDate(),K=new Date(Date.UTC(T,B,F));w.push(K.toISOString().split("T")[0]),P.setUTCDate(P.getUTCDate()+1)}return w}))||[];return[...r.holidays||[],...H]}),g=s.computed(()=>a.value.timeStep*6e4);function M(H){const V=new Date(H);V.setMinutes(0,0,0);const N=H.getTime()-V.getTime(),L=Math.floor(N/g.value);return new Date(V.getTime()+L*g.value)}function x(H){const V={start:H.startDate,end:H.endDate};n.value&&V.start>=n.value.start&&V.end<=n.value.end||(n.value=V,i("refreshList",V))}function k(){const H=M(new Date),V=new Date(H.getTime()+g.value);i("createEvent",{start:H,end:V})}function b(H){if(f.value==="month")return;const V=Date.now();if(V-d<u){h&&clearTimeout(h);return}d=V;const N=M(H),L=new Date(N.getTime()+g.value);h=setTimeout(()=>i("createEvent",{start:N,end:L}),u)}async function _(H){const V=c.value.find(N=>N.id===H.event.id);V.start=M(H.event.start),V.end=M(H.event.end);try{await r.updateDatesFn(V)}catch{V.start=new Date(H.originalEvent.start),V.end=new Date(H.originalEvent.end)}}function C(H){setTimeout(()=>i("eventClicked",H),u)}return(H,V)=>(s.openBlock(),s.createElementBlock("div",Qs3,[s.createElementVNode("div",Js3,[s.createElementVNode("div",e93,[s.createVNode(A2,{variant:"filled",size:"s",icon:"plus",text:s.unref(o)("createEvent"),onClick:V[0]||(V[0]=N=>k())},null,8,["text"]),s.createVNode(A2,{variant:"flat",size:"s",icon:"cog",text:s.unref(o)("configBtn"),onClick:V[1]||(V[1]=N=>p.value=!0)},null,8,["text"]),s.createVNode(Ks3,{modelValue:p.value,"onUpdate:modelValue":V[2]||(V[2]=N=>p.value=N),config:a.value,"onUpdate:config":V[3]||(V[3]=N=>a.value=N),onConfigChanged:V[4]||(V[4]=N=>i("configChanged",N))},null,8,["modelValue","config"])]),s.createElementVNode("div",t93,[s.createElementVNode("div",a93,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,N=>(s.openBlock(),s.createBlock(A2,{key:N,variant:f.value===N?"filled":"flat",size:"s",text:s.unref(o)(N),onClick:L=>f.value=N},null,8,["variant","text","onClick"]))),128))])])]),s.createVNode(s.unref(ll2),{ref:"vuecalRef",activeView:f.value,"onUpdate:activeView":V[5]||(V[5]=N=>f.value=N),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:c.value,locale:s.unref(g6)().language,disableViews:m.value,disableDays:y.value,hideWeekends:!a.value.displayWeekends,timeFrom:a.value.timeFrom*60,timeTo:a.value.timeTo*60,timeStep:a.value.timeStep,timeCellHeight:n93,editableEvents:{drag:!!H.updateDatesFn},style:{"min-height":"22.5rem"},onReady:V[6]||(V[6]=N=>x(N)),onViewChange:V[7]||(V[7]=N=>x(N)),onCellClick:V[8]||(V[8]=N=>b(N)),onEventDrop:V[9]||(V[9]=N=>_(N))},s.createSlots({"previous-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:s.withCtx(({event:N})=>[s.createElementVNode("div",{class:"cal-event-container",onClick:L=>C(N)},[s.renderSlot(H.$slots,"event",{event:N},void 0,!0)],8,c93)]),_:2},[H.isLoading?{name:"title",fn:s.withCtx(()=>[s.createVNode(w8,{size:"m"})]),key:"0"}:void 0,H.noEventsLabel?{name:"no-event",fn:s.withCtx(()=>[s.createVNode(D3,{text:H.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])]))}});const i93=Q1(r93,[["__scopeId","data-v-aa6cd0c7"]]);/*!
|
|
9471
|
+
`+r):c.stack=r}catch{}}throw c}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=vi(this.defaults,a);const{transitional:c,paramsSerializer:n,headers:r}=a;c!==void 0&&WR.assertOptions(c,{silentJSONParsing:D6.transitional(D6.boolean),forcedJSONParsing:D6.transitional(D6.boolean),clarifyTimeoutError:D6.transitional(D6.boolean)},!1),n!=null&&(E1.isFunction(n)?a.paramsSerializer={serialize:n}:WR.assertOptions(n,{encode:D6.function,serialize:D6.function},!0)),WR.assertOptions(a,{baseUrl:D6.spelling("baseURL"),withXsrfToken:D6.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=r&&E1.merge(r.common,r[a.method]);r&&E1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete r[v]}),a.headers=p6.concat(i,r);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(a)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,d=0,h;if(!l){const v=[S61.bind(this),void 0];for(v.unshift.apply(v,o),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=o.length;let p=a;for(d=0;d<h;){const v=o[d++],m=o[d++];try{p=v(p)}catch(y){m.call(this,y);break}}try{u=S61.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=vi(this.defaults,t);const a=Bv1(t.baseURL,t.url);return Ev1(a,t.params,t.paramsSerializer)}}E1.forEach(["delete","get","head","options"],function(e){c$.prototype[e]=function(t,a){return this.request(vi(a||{},{method:e,url:t,data:(a||{}).data}))}});E1.forEach(["post","put","patch"],function(e){function t(a){return function(c,n,r){return this.request(vi(r||{},{method:e,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:n}))}}c$.prototype[e]=t(),c$.prototype[e+"Form"]=t(!0)});const YR=c$;class lJ{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(o=>{c.subscribe(o),r=o}).then(n);return i.cancel=function(){c.unsubscribe(r)},i},t(function(n,r,i){c.reason||(c.reason=new Ns(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 lJ(function(a){t=a}),cancel:t}}}const Ws3=lJ;function Ys3(e){return function(t){return e.apply(null,t)}}function Gs3(e){return E1.isObject(e)&&e.isAxiosError===!0}const PG={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(PG).forEach(([e,t])=>{PG[t]=e});const Zs3=PG;function Uv1(e){const t=new YR(e),a=bv1(YR.prototype.request,t);return E1.extend(a,YR.prototype,t,{allOwnKeys:!0}),E1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(c){return Uv1(vi(e,c))},a}const qe=Uv1(sJ);qe.Axios=YR;qe.CanceledError=Ns;qe.CancelToken=Ws3;qe.isCancel=Ov1;qe.VERSION=jv1;qe.toFormData=nj;qe.AxiosError=b2;qe.Cancel=qe.CanceledError;qe.all=function(e){return Promise.all(e)};qe.spread=Ys3;qe.isAxiosError=Gs3;qe.mergeConfig=vi;qe.AxiosHeaders=p6;qe.formToJSON=e=>Pv1(E1.isHTMLForm(e)?new FormData(e):e);qe.getAdapter=qv1.getAdapter;qe.HttpStatusCode=Zs3;qe.default=qe;const Xs3={timeFrom:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(0),lessEqualRule:nW(23)},timeTo:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(24)},timeStep:{requiredRule:aW,integerRule:cW,greaterEqualRule:rW(1),lessEqualRule:nW(60)}},Ks3=s.defineComponent({__name:"ConfigModal",props:{modelValue:{type:Boolean,required:!0},modelModifiers:{},config:{required:!0},configModifiers:{}},emits:s.mergeModels(["configChanged"],["update:modelValue","update:config"]),setup(e,{emit:t}){const a=s.useModel(e,"modelValue"),c=s.useModel(e,"config"),n=t,r=$2("pgaCalendar"),i=s.ref({...c.value}),o=Yn1(Xs3,i);async function l(){if(!await o.value.$validate())return;if(i.value.timeTo<=i.value.timeFrom){H0("danger",r("errorTimeRange"));return}const f={...i.value};c.value={...c.value,...f},n("configChanged",f),a.value=!1}return(f,u)=>{const d=s.resolveComponent("PgaSwitch"),h=s.resolveComponent("PgaInput"),p=s.resolveComponent("PgaColorSelector"),v=s.resolveComponent("PgaForm"),m=s.resolveComponent("PgaModal");return s.openBlock(),s.createBlock(m,{modelValue:a.value,"onUpdate:modelValue":u[8]||(u[8]=y=>a.value=y),title:s.unref(r)("configModalTitle"),width:"32rem",confirmButtons:"",acceptText:s.unref(r)("applyBtn"),acceptIcon:"check",onAccept:u[9]||(u[9]=y=>l())},{default:s.withCtx(()=>[s.createVNode(v,null,{default:s.withCtx(()=>[s.createVNode(d,{modelValue:i.value.displayWeekends,"onUpdate:modelValue":u[0]||(u[0]=y=>i.value.displayWeekends=y),label:s.unref(r)("displayWeekends"),labelInLine:""},null,8,["modelValue","label"]),s.createVNode(h,{modelValue:i.value.timeFrom,"onUpdate:modelValue":u[1]||(u[1]=y=>i.value.timeFrom=y),type:"number",integer:"",label:s.unref(r)("timeFrom"),description:s.unref(r)("timeFromDescription"),errors:s.unref(o).timeFrom.$errors,onKeyup:u[2]||(u[2]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeTo,"onUpdate:modelValue":u[3]||(u[3]=y=>i.value.timeTo=y),type:"number",integer:"",label:s.unref(r)("timeTo"),description:s.unref(r)("timeToDescription"),errors:s.unref(o).timeTo.$errors,onKeyup:u[4]||(u[4]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(h,{modelValue:i.value.timeStep,"onUpdate:modelValue":u[5]||(u[5]=y=>i.value.timeStep=y),type:"number",integer:"",label:s.unref(r)("timeStep"),description:s.unref(r)("timeStepDescription"),errors:s.unref(o).timeStep.$errors,onKeyup:u[6]||(u[6]=s.withKeys(y=>l(),["enter"]))},null,8,["modelValue","label","description","errors"]),s.createVNode(p,{modelValue:i.value.defaultColor,"onUpdate:modelValue":u[7]||(u[7]=y=>i.value.defaultColor=y),label:s.unref(r)("defaultColor")},null,8,["modelValue","label"])]),_:1})]),_:1},8,["modelValue","title","acceptText"])}}}),Qs3={class:"pga-calendar"},Js3={class:"calendar-header"},e93={class:"calendar-header__actions"},t93={class:"calendar-header__navigation"},a93={class:"calendar-header__views"},c93=["onClick"],n93=50,r93=s.defineComponent({__name:"PgaCalendar",props:s.mergeModels({noEventsLabel:{},isLoading:{type:Boolean},holidays:{},vacations:{},updateDatesFn:{type:Function}},{config:{required:!0},configModifiers:{},events:{required:!0},eventsModifiers:{},searchRange:{default:void 0},searchRangeModifiers:{}}),emits:s.mergeModels(["configChanged","createEvent","eventClicked","refreshList"],["update:config","update:events","update:searchRange"]),setup(e,{emit:t}){const a=s.useModel(e,"config"),c=s.useModel(e,"events"),n=s.useModel(e,"searchRange"),r=e,i=t,o=$2("pgaCalendar"),l=Lo(),f=s.ref(l?"day":"week"),u=Te.getConfig().delayTime;let d=0,h;const p=s.ref(!1),v=s.computed(()=>l?["month","day"]:["month","week","day"]),m=s.computed(()=>["years","year",...l?["week"]:[]]),y=s.computed(()=>{var V;const H=((V=r.vacations)==null?void 0:V.flatMap(({start:N,end:L})=>{const w=[],P=new Date(N),j=new Date(L);for(;P<=j;){const T=P.getUTCFullYear(),B=P.getUTCMonth(),F=P.getUTCDate(),K=new Date(Date.UTC(T,B,F));w.push(K.toISOString().split("T")[0]),P.setUTCDate(P.getUTCDate()+1)}return w}))||[];return[...r.holidays||[],...H]}),g=s.computed(()=>a.value.timeStep*6e4);function M(H){const V=new Date(H);V.setMinutes(0,0,0);const N=H.getTime()-V.getTime(),L=Math.floor(N/g.value);return new Date(V.getTime()+L*g.value)}function x(H){const V={start:H.startDate,end:H.endDate};n.value&&V.start>=n.value.start&&V.end<=n.value.end||(n.value=V,i("refreshList",V))}function k(){const H=M(new Date),V=new Date(H.getTime()+g.value);i("createEvent",{start:H,end:V})}function b(H){if(f.value==="month")return;const V=Date.now();if(V-d<u){h&&clearTimeout(h);return}d=V;const N=M(H),L=new Date(N.getTime()+g.value);h=setTimeout(()=>i("createEvent",{start:N,end:L}),u)}async function _(H){const V=c.value.find(N=>N.id===H.event.id);V.start=M(H.event.start),V.end=M(H.event.end);try{await r.updateDatesFn(V)}catch{V.start=new Date(H.originalEvent.start),V.end=new Date(H.originalEvent.end)}}function C(H){setTimeout(()=>i("eventClicked",H),u)}return(H,V)=>(s.openBlock(),s.createElementBlock("div",Qs3,[s.createElementVNode("div",Js3,[s.createElementVNode("div",e93,[s.createVNode(A2,{variant:"filled",size:"s",icon:"plus",text:s.unref(o)("createEvent"),onClick:V[0]||(V[0]=N=>k())},null,8,["text"]),s.createVNode(A2,{variant:"flat",size:"s",icon:"cog",text:s.unref(o)("configBtn"),onClick:V[1]||(V[1]=N=>p.value=!0)},null,8,["text"]),s.createVNode(Ks3,{modelValue:p.value,"onUpdate:modelValue":V[2]||(V[2]=N=>p.value=N),config:a.value,"onUpdate:config":V[3]||(V[3]=N=>a.value=N),onConfigChanged:V[4]||(V[4]=N=>i("configChanged",N))},null,8,["modelValue","config"])]),s.createElementVNode("div",t93,[s.createElementVNode("div",a93,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(v.value,N=>(s.openBlock(),s.createBlock(A2,{key:N,variant:f.value===N?"filled":"flat",size:"s",text:s.unref(o)(N),onClick:L=>f.value=N},null,8,["variant","text","onClick"]))),128))])])]),s.createVNode(s.unref(ll2),{ref:"vuecalRef",activeView:f.value,"onUpdate:activeView":V[5]||(V[5]=N=>f.value=N),hideViewSelector:"",showTimeInCells:"",watchRealTime:"",events:c.value,locale:s.unref(g6)().language,disableViews:m.value,disableDays:y.value,hideWeekends:!a.value.displayWeekends,timeFrom:a.value.timeFrom*60,timeTo:a.value.timeTo*60,timeStep:a.value.timeStep,timeCellHeight:n93,editableEvents:{drag:!!H.updateDatesFn},style:{"min-height":"22.5rem"},onReady:V[6]||(V[6]=N=>x(N)),onViewChange:V[7]||(V[7]=N=>x(N)),onCellClick:V[8]||(V[8]=N=>b(N)),onEventDrop:V[9]||(V[9]=N=>_(N))},s.createSlots({"previous-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-left"})]),"next-button":s.withCtx(()=>[s.createVNode(A2,{variant:"flat",size:"s",icon:"chevron-right"})]),event:s.withCtx(({event:N})=>[s.createElementVNode("div",{class:"cal-event-container",onClick:L=>C(N)},[s.renderSlot(H.$slots,"event",{event:N},void 0,!0)],8,c93)]),_:2},[H.isLoading?{name:"title",fn:s.withCtx(()=>[s.createVNode(w8,{size:"m"})]),key:"0"}:void 0,H.noEventsLabel?{name:"no-event",fn:s.withCtx(()=>[s.createVNode(D3,{text:H.noEventsLabel},null,8,["text"])]),key:"1"}:void 0]),1032,["activeView","events","locale","disableViews","disableDays","hideWeekends","timeFrom","timeTo","timeStep","editableEvents"])]))}});const i93=Q1(r93,[["__scopeId","data-v-aa6cd0c7"]]);/*!
|
|
9472
9472
|
* @kurkle/color v0.3.4
|
|
9473
9473
|
* https://github.com/kurkle/color#readme
|
|
9474
9474
|
* (c) 2024 Jukka Kurkela
|
package/dist/main.es.js
CHANGED
|
@@ -101306,7 +101306,7 @@ const tl3 = {
|
|
|
101306
101306
|
return;
|
|
101307
101307
|
}
|
|
101308
101308
|
const l = { ...i.value };
|
|
101309
|
-
c.value = l, n("configChanged", l), a.value = !1;
|
|
101309
|
+
c.value = { ...c.value, ...l }, n("configChanged", l), a.value = !1;
|
|
101310
101310
|
}
|
|
101311
101311
|
return (l, f) => {
|
|
101312
101312
|
const u = e3("PgaSwitch"), h = e3("PgaInput"), d = e3("PgaColorSelector"), m = e3("PgaForm"), p = e3("PgaModal");
|