@nside/wefa 0.1.0 → 0.3.0
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/{LegalConsent-Cn3qx30k.cjs → LegalConsent-CEcXZml6.cjs} +1 -1
- package/dist/{LegalConsent-pUADprVB.js → LegalConsent-Dzq3fdnt.js} +6 -6
- package/dist/{LegalDocument-BHtPY9AH.js → LegalDocument-BhoEpJ2O.js} +282 -255
- package/dist/LegalDocument-CS3MnOcV.cjs +109 -0
- package/dist/{LoginView-CMR9q_yi.cjs → LoginView-IIkXXw3R.cjs} +1 -1
- package/dist/{LoginView-C668oczA.js → LoginView-kH440cCh.js} +1 -1
- package/dist/{LogoutView-CzsPB9d9.cjs → LogoutView-B90MA-_Q.cjs} +1 -1
- package/dist/{LogoutView-DNgS20XP.js → LogoutView-DGqh4bP7.js} +1 -1
- package/dist/{apiClient-BAzNCKuU.js → apiClient-D-kcx_S1.js} +260 -232
- package/dist/apiClient-DJdAL3tN.cjs +1 -0
- package/dist/{axios-C7yNV7KF.js → axios-ClRPr3Xn.js} +158 -140
- package/dist/{axios-BompFBxL.cjs → axios-Dcidtc2l.cjs} +6 -6
- package/dist/containers.cjs +5 -5
- package/dist/containers.js +5 -5
- package/dist/{index-D7KjmN8m.cjs → index-B4vneBZh.cjs} +3 -3
- package/dist/{index-yOMKz8lD.cjs → index-B53YL3vD.cjs} +1 -1
- package/dist/{index-52nB-rKK.cjs → index-BSfhC_wu.cjs} +1 -1
- package/dist/{index-CeYaMyhs.cjs → index-BXrnPbjr.cjs} +3 -3
- package/dist/{index-CowW14sC.js → index-Bc699sOR.js} +906 -918
- package/dist/{index-BqxW11im.cjs → index-Bl3JVLei.cjs} +1 -1
- package/dist/{index--nRVi6aV.js → index-CEz0St1t.js} +7 -7
- package/dist/{index-DDCFRGsr.cjs → index-CJmnkrIs.cjs} +1 -1
- package/dist/{index-9kXqZ0Ez.cjs → index-CL_OJMNr.cjs} +1 -1
- package/dist/index-CTNsucOq.cjs +147 -0
- package/dist/{index-Dd7rSEka.js → index-Coos428-.js} +163 -174
- package/dist/{index-B-o2K-Ca.js → index-CwLAV8WF.js} +2 -2
- package/dist/{index-CowF3j5a.js → index-DGvdYnh3.js} +2 -2
- package/dist/{index-BVwluHCk.js → index-Dj5oTSEE.js} +22 -26
- package/dist/{index-BctaqoUB.js → index-DmVIgb18.js} +1 -1
- package/dist/{index-jIUtvXF6.js → index-FS8xE7Mo.js} +3 -3
- package/dist/index-FrfvunRp.cjs +146 -0
- package/dist/{index-CXJz1iyq.js → index-bRjoenrr.js} +1 -1
- package/dist/{lib-BEVtXpEW.cjs → lib-BBJH9d11.cjs} +83 -68
- package/dist/{lib-CA1k4S8X.js → lib-Y8FPgwH4.js} +1453 -1432
- package/dist/lib.cjs +1 -1
- package/dist/lib.d.ts +6 -3
- package/dist/lib.js +2 -2
- package/dist/{libRoutes-BJftOROB.js → libRoutes-BsneoQ4G.js} +2 -2
- package/dist/{libRoutes-CZNbtm5j.cjs → libRoutes-BzeZrIaK.cjs} +1 -1
- package/dist/network.cjs +1 -1
- package/dist/network.d.ts +5 -4
- package/dist/network.js +14 -14
- package/dist/router.cjs +1 -1
- package/dist/router.js +1 -1
- package/package.json +47 -46
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.mdx +182 -108
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.spec.ts +24 -17
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.stories.ts +99 -36
- package/src/components/PlotlyComponent/PlotlyFromTableComponent.vue +18 -10
- package/src/components/TableComponent/TableComponent.spec.ts +0 -1
- package/src/demo/openapi/client/types.gen.ts +4 -3
- package/src/network/__tests__/typedApiClient.test.ts +9 -0
- package/src/network/network.mdx +8 -1
- package/src/network/typedApiClient.ts +8 -6
- package/src/plugins/legalConsent/views/__tests__/LegalConsent.test.ts +9 -4
- package/src/utils/componentRegistry.ts +0 -1
- package/dist/LegalDocument-CU8uyoKh.cjs +0 -110
- package/dist/apiClient-B6fJs4NI.cjs +0 -1
- package/dist/index-BCKqvrXF.cjs +0 -157
- package/dist/index-TM4WIzFN.cjs +0 -163
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";function ze(e,t){return function(){return e.apply(t,arguments)}}const{toString:ht}=Object.prototype,{getPrototypeOf:we}=Object,{iterator:re,toStringTag:Je}=Symbol,se=(e=>t=>{const n=ht.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>se(t)===e),oe=e=>t=>typeof t===e,{isArray:M}=Array,I=oe("undefined");function V(e){return e!==null&&!I(e)&&e.constructor!==null&&!I(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ve=P("ArrayBuffer");function mt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ve(e.buffer),t}const yt=oe("string"),A=oe("function"),We=oe("number"),W=e=>e!==null&&typeof e=="object",bt=e=>e===!0||e===!1,Y=e=>{if(se(e)!=="object")return!1;const t=we(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Je in e)&&!(re in e)},wt=e=>{if(!W(e)||V(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Et=P("Date"),gt=P("File"),Rt=P("Blob"),St=P("FileList"),Ot=e=>W(e)&&A(e.pipe),At=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=se(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},Tt=P("URLSearchParams"),[xt,Ct,Nt,Pt]=["ReadableStream","Request","Response","Headers"].map(P),Ft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(V(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function Ke(e,t){if(V(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ve=e=>!I(e)&&e!==k;function pe(){const{caseless:e,skipUndefined:t}=ve(this)&&this||{},n={},r=(s,i)=>{const o=e&&Ke(n,i)||i;Y(n[o])&&Y(s)?n[o]=pe(n[o],s):Y(s)?n[o]=pe({},s):M(s)?n[o]=s.slice():(!t||!I(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&K(arguments[s],r);return n}const _t=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,i)=>{n&&A(s)?e[i]=ze(s,n):e[i]=s},{allOwnKeys:r}),e),Ut=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&we(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kt=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!We(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&we(Uint8Array)),qt=(e,t)=>{const r=(e&&e[re]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},Ht=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},It=P("HTMLFormElement"),Mt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$t=P("RegExp"),Xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},zt=e=>{Xe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Vt=()=>{},Wt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Kt(e){return!!(e&&A(e.append)&&e[Je]==="FormData"&&e[re])}const vt=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(V(r))return r;if(!("toJSON"in r)){t[s]=r;const i=M(r)?[]:{};return K(r,(o,c)=>{const d=n(o,s+1);!I(d)&&(i[c]=d)}),t[s]=void 0,i}}return r};return n(e,0)},Xt=P("AsyncFunction"),Gt=e=>e&&(W(e)||A(e))&&A(e.then)&&A(e.catch),Ge=((e,t)=>e?setImmediate:t?((n,r)=>(k.addEventListener("message",({source:s,data:i})=>{s===k&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(k.postMessage)),Qt=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||Ge,Zt=e=>e!=null&&A(e[re]),a={isArray:M,isArrayBuffer:Ve,isBuffer:V,isFormData:At,isArrayBufferView:mt,isString:yt,isNumber:We,isBoolean:bt,isObject:W,isPlainObject:Y,isEmptyObject:wt,isReadableStream:xt,isRequest:Ct,isResponse:Nt,isHeaders:Pt,isUndefined:I,isDate:Et,isFile:gt,isBlob:Rt,isRegExp:$t,isFunction:A,isStream:Ot,isURLSearchParams:Tt,isTypedArray:jt,isFileList:St,forEach:K,merge:pe,extend:_t,trim:Ft,stripBOM:Ut,inherits:Lt,toFlatObject:Bt,kindOf:se,kindOfTest:P,endsWith:Dt,toArray:kt,forEachEntry:qt,matchAll:Ht,isHTMLForm:It,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:Xe,freezeMethods:zt,toObjectSet:Jt,toCamelCase:Mt,noop:Vt,toFiniteNumber:Wt,findKey:Ke,global:k,isContextDefined:ve,isSpecCompliantForm:Kt,toJSONObject:vt,isAsyncFn:Xt,isThenable:Gt,setImmediate:Ge,asap:Qt,isIterable:Zt};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Qe=y.prototype,Ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ze[e]={value:e}});Object.defineProperties(y,Ze);Object.defineProperty(Qe,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Qe);a.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(o,c,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Yt=null;function he(e){return a.isPlainObject(e)||a.isArray(e)}function Ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map(function(s,i){return s=Ye(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function en(e){return a.isArray(e)&&!e.some(he)}const tn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,p){let E=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&en(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(E=a.toArray(u)))return m=Ye(m),E.forEach(function(g,O){!(a.isUndefined(g)||g===null)&&t.append(o===!0?Ne([m],O,i):o===null?m:m+"[]",f(g))}),!1}return he(u)?!0:(t.append(Ne(p,m,i),f(u)),!1)}const h=[],b=Object.assign(tn,{defaultVisitor:l,convertValue:f,isVisitable:he});function R(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,b))===!0&&R(E,m?m.concat(x):[x])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return R(e),t}function Pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ee(e,t){this._pairs=[],e&&ie(e,this,t)}const et=Ee.prototype;et.append=function(t,n){this._pairs.push([t,n])};et.toString=function(t){const n=t?function(r){return t.call(this,r,Pe)}:Pe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function nn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,n){if(!t)return e;const r=n&&n.encode||nn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new Ee(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rn=typeof URLSearchParams<"u"?URLSearchParams:Ee,sn=typeof FormData<"u"?FormData:null,on=typeof Blob<"u"?Blob:null,an={isBrowser:!0,classes:{URLSearchParams:rn,FormData:sn,Blob:on},protocols:["http","https","file","blob","url","data"]},ge=typeof window<"u"&&typeof document<"u",me=typeof navigator=="object"&&navigator||void 0,cn=ge&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),ln=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",un=ge&&window.location.href||"http://localhost",fn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ge,hasStandardBrowserEnv:cn,hasStandardBrowserWebWorkerEnv:ln,navigator:me,origin:un},Symbol.toStringTag,{value:"Module"})),S={...fn,...an};function dn(e,t){return ie(e,new S.classes.URLSearchParams,{visitor:function(n,r,s,i){return S.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function pn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function rt(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,d?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=hn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(pn(r),s,n,0)}),n}return null}function mn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const v={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(rt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),mn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:S.classes.FormData,Blob:S.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const yn=a.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"]),bn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
-
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&yn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_e=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function wn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const En=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ue(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function gn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function
|
|
3
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[_e]=this[_e]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=J(o);r[c]||(Rn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(T);function fe(e,t){const n=this||v,r=t||n,s=T.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function st(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function ot(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Sn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function On(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let h=i,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const R=l&&f-l;return R?Math.round(b*1e3/R):void 0}}function An(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const ne=(e,t,n=3)=>{let r=0;const s=On(50,250);return An(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Ue=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>a.asap(()=>e(...t)),Tn=S.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,S.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(S.origin),S.navigator&&/(msie|trident)/i.test(S.navigator.userAgent)):()=>!0,xn=S.hasStandardBrowserEnv?{write(e,t,n,r,s,i){const o=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(r)&&o.push("path="+r),a.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.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 Cn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function it(e,t,n){let r=!Cn(t);return e&&(r||n==!1)?Nn(e,t):t}const Be=e=>e instanceof T?{...e}:e;function q(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function i(f,l){if(!a.isUndefined(l))return r(void 0,l)}function o(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(f,l,h)=>s(Be(f),Be(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const h=d[l]||s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const at=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=T.from(o),t.url=tt(it(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(S.hasStandardBrowserEnv||S.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&o.set(l,h)})}}if(S.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Tn(t.url))){const d=s&&i&&xn.read(i);d&&o.set(s,d)}return t},Pn=typeof XMLHttpRequest<"u",Fn=Pn&&function(e){return new Promise(function(n,r){const s=at(e);let i=s.data;const o=T.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,R,u;function m(){R&&R(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function E(){if(!p)return;const g=T.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};ot(function(C){n(C),m()},function(C){r(C),m()},N),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const N=O&&O.message?O.message:"Network Error",B=new y(N,y.ERR_NETWORK,e,p);B.event=O||null,r(B),p=null},p.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||nt;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,N.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&a.forEach(o.toJSON(),function(O,N){p.setRequestHeader(N,O)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=ne(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,R]=ne(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",R)),(s.cancelToken||s.signal)&&(l=g=>{p&&(r(!g||g.type?new $(null,e,p):g),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=Sn(s.url);if(x&&S.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},_n=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new $(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Un=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Ln=async function*(e,t){for await(const n of Bn(e))yield*Un(n,t)},Bn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},De=(e,t,n,r)=>{const s=Ln(e,t);let i=0,o,c=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=i+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},ke=64*1024,{isFunction:Z}=a,Dn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:je,TextEncoder:qe}=a.global,He=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kn=e=>{e=a.merge.call({skipUndefined:!0},Dn,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(r);if(!s)return!1;const c=s&&Z(je),d=s&&(typeof qe=="function"?(u=>m=>u.encode(m))(new qe):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&c&&He(()=>{let u=!1;const m=new n(S.origin,{body:new je,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&c&&He(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let E=m&&m[u];if(E)return E.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(S.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},R=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:E,signal:x,cancelToken:g,timeout:O,onDownloadProgress:N,onUploadProgress:B,responseType:C,headers:ce,withCredentials:X="same-origin",fetchOptions:Re}=at(u),Se=t||fetch;C=C?(C+"").toLowerCase():"text";let G=_n([x,g&&g.toAbortSignal()],O),z=null;const D=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Oe;try{if(B&&f&&p!=="get"&&p!=="head"&&(Oe=await R(ce,E))!==0){let L=new n(m,{method:"POST",body:E,duplex:"half"}),H;if(a.isFormData(E)&&(H=L.headers.get("content-type"))&&ce.setContentType(H),L.body){const[le,Q]=Ue(Oe,ne(Le(B)));E=De(L.body,ke,le,Q)}}a.isString(X)||(X=X?"include":"omit");const F=i&&"credentials"in n.prototype,Ae={...Re,signal:G,method:p.toUpperCase(),headers:ce.normalize().toJSON(),body:E,duplex:"half",credentials:F?X:void 0};z=i&&new n(m,Ae);let U=await(i?Se(z,Re):Se(m,Ae));const Te=l&&(C==="stream"||C==="response");if(l&&(N||Te&&D)){const L={};["status","statusText","headers"].forEach(xe=>{L[xe]=U[xe]});const H=a.toFiniteNumber(U.headers.get("content-length")),[le,Q]=N&&Ue(H,ne(Le(N),!0))||[];U=new r(De(U.body,ke,le,()=>{Q&&Q(),D&&D()}),L)}C=C||"text";let pt=await h[a.findKey(h,C)||"text"](U,u);return!Te&&D&&D(),await new Promise((L,H)=>{ot(L,H,{data:pt,headers:T.from(U.headers),status:U.status,statusText:U.statusText,config:u,request:z})})}catch(F){throw D&&D(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,z),{cause:F.cause||F}):y.from(F,F&&F.code,u,z)}}},jn=new Map,ct=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,d,f,l=jn;for(;c--;)d=i[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:kn(t)),l=f;return f};ct();const ye={http:Yt,xhr:Fn,fetch:{get:ct}};a.forEach(ye,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ie=e=>`- ${e}`,qn=e=>a.isFunction(e)||e===null||e===!1,lt={getAdapter:(e,t)=>{e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!qn(r)&&(s=ye[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
|
|
4
|
-
`+o.map(
|
|
5
|
-
`):" "+
|
|
6
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:_.spelling("baseURL"),withXsrfToken:_.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=T.concat(o,i);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[Me.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let
|
|
1
|
+
"use strict";function ze(e,t){return function(){return e.apply(t,arguments)}}const{toString:ht}=Object.prototype,{getPrototypeOf:be}=Object,{iterator:re,toStringTag:Je}=Symbol,se=(e=>t=>{const n=ht.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),P=e=>(e=e.toLowerCase(),t=>se(t)===e),oe=e=>t=>typeof t===e,{isArray:M}=Array,H=oe("undefined");function V(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ve=P("ArrayBuffer");function mt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ve(e.buffer),t}const yt=oe("string"),A=oe("function"),We=oe("number"),W=e=>e!==null&&typeof e=="object",bt=e=>e===!0||e===!1,Y=e=>{if(se(e)!=="object")return!1;const t=be(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Je in e)&&!(re in e)},wt=e=>{if(!W(e)||V(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Et=P("Date"),gt=P("File"),St=P("Blob"),Rt=P("FileList"),Ot=e=>W(e)&&A(e.pipe),At=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=se(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},Tt=P("URLSearchParams"),[xt,Ct,Nt,Pt]=["ReadableStream","Request","Response","Headers"].map(P),Ft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function K(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),M(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{if(V(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let c;for(r=0;r<o;r++)c=i[r],t.call(null,e[c],c,e)}}function Ke(e,t){if(V(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const k=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ve=e=>!H(e)&&e!==k;function pe(){const{caseless:e,skipUndefined:t}=ve(this)&&this||{},n={},r=(s,i)=>{const o=e&&Ke(n,i)||i;Y(n[o])&&Y(s)?n[o]=pe(n[o],s):Y(s)?n[o]=pe({},s):M(s)?n[o]=s.slice():(!t||!H(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s<i;s++)arguments[s]&&K(arguments[s],r);return n}const _t=(e,t,n,{allOwnKeys:r}={})=>(K(t,(s,i)=>{n&&A(s)?e[i]=ze(s,n):e[i]=s},{allOwnKeys:r}),e),Ut=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bt=(e,t,n,r)=>{let s,i,o;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!c[o]&&(t[o]=e[o],c[o]=!0);e=n!==!1&&be(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Dt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},kt=e=>{if(!e)return null;if(M(e))return e;let t=e.length;if(!We(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&be(Uint8Array)),qt=(e,t)=>{const r=(e&&e[re]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},It=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Ht=P("HTMLFormElement"),Mt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Ce=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),$t=P("RegExp"),Xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};K(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},zt=e=>{Xe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jt=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return M(e)?r(e):r(String(e).split(t)),n},Vt=()=>{},Wt=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Kt(e){return!!(e&&A(e.append)&&e[Je]==="FormData"&&e[re])}const vt=e=>{const t=new Array(10),n=(r,s)=>{if(W(r)){if(t.indexOf(r)>=0)return;if(V(r))return r;if(!("toJSON"in r)){t[s]=r;const i=M(r)?[]:{};return K(r,(o,c)=>{const d=n(o,s+1);!H(d)&&(i[c]=d)}),t[s]=void 0,i}}return r};return n(e,0)},Xt=P("AsyncFunction"),Gt=e=>e&&(W(e)||A(e))&&A(e.then)&&A(e.catch),Ge=((e,t)=>e?setImmediate:t?((n,r)=>(k.addEventListener("message",({source:s,data:i})=>{s===k&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),k.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(k.postMessage)),Qt=typeof queueMicrotask<"u"?queueMicrotask.bind(k):typeof process<"u"&&process.nextTick||Ge,Zt=e=>e!=null&&A(e[re]),a={isArray:M,isArrayBuffer:Ve,isBuffer:V,isFormData:At,isArrayBufferView:mt,isString:yt,isNumber:We,isBoolean:bt,isObject:W,isPlainObject:Y,isEmptyObject:wt,isReadableStream:xt,isRequest:Ct,isResponse:Nt,isHeaders:Pt,isUndefined:H,isDate:Et,isFile:gt,isBlob:St,isRegExp:$t,isFunction:A,isStream:Ot,isURLSearchParams:Tt,isTypedArray:jt,isFileList:Rt,forEach:K,merge:pe,extend:_t,trim:Ft,stripBOM:Ut,inherits:Lt,toFlatObject:Bt,kindOf:se,kindOfTest:P,endsWith:Dt,toArray:kt,forEachEntry:qt,matchAll:It,isHTMLForm:Ht,hasOwnProperty:Ce,hasOwnProp:Ce,reduceDescriptors:Xe,freezeMethods:zt,toObjectSet:Jt,toCamelCase:Mt,noop:Vt,toFiniteNumber:Wt,findKey:Ke,global:k,isContextDefined:ve,isSpecCompliantForm:Kt,toJSONObject:vt,isAsyncFn:Xt,isThenable:Gt,setImmediate:Ge,asap:Qt,isIterable:Zt};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(y,Error,{toJSON:function(){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:a.toJSONObject(this.config),code:this.code,status:this.status}}});const Qe=y.prototype,Ze={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ze[e]={value:e}});Object.defineProperties(y,Ze);Object.defineProperty(Qe,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,i)=>{const o=Object.create(Qe);a.toFlatObject(e,o,function(l){return l!==Error.prototype},f=>f!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return y.call(o,c,d,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Yt=null;function he(e){return a.isPlainObject(e)||a.isArray(e)}function Ye(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ne(e,t,n){return e?e.concat(t).map(function(s,i){return s=Ye(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function en(e){return a.isArray(e)&&!e.some(he)}const tn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ie(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!a.isUndefined(p[m])});const r=n.metaTokens,s=n.visitor||l,i=n.dots,o=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(u){if(u===null)return"";if(a.isDate(u))return u.toISOString();if(a.isBoolean(u))return u.toString();if(!d&&a.isBlob(u))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(u)||a.isTypedArray(u)?d&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function l(u,m,p){let E=u;if(u&&!p&&typeof u=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),u=JSON.stringify(u);else if(a.isArray(u)&&en(u)||(a.isFileList(u)||a.endsWith(m,"[]"))&&(E=a.toArray(u)))return m=Ye(m),E.forEach(function(g,O){!(a.isUndefined(g)||g===null)&&t.append(o===!0?Ne([m],O,i):o===null?m:m+"[]",f(g))}),!1}return he(u)?!0:(t.append(Ne(p,m,i),f(u)),!1)}const h=[],b=Object.assign(tn,{defaultVisitor:l,convertValue:f,isVisitable:he});function S(u,m){if(!a.isUndefined(u)){if(h.indexOf(u)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(u),a.forEach(u,function(E,x){(!(a.isUndefined(E)||E===null)&&s.call(t,E,a.isString(x)?x.trim():x,m,b))===!0&&S(E,m?m.concat(x):[x])}),h.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function we(e,t){this._pairs=[],e&&ie(e,this,t)}const et=we.prototype;et.append=function(t,n){this._pairs.push([t,n])};et.toString=function(t){const n=t?function(r){return t.call(this,r,Pe)}:Pe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function nn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,n){if(!t)return e;const r=n&&n.encode||nn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=a.isURLSearchParams(t)?t.toString():new we(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rn=typeof URLSearchParams<"u"?URLSearchParams:we,sn=typeof FormData<"u"?FormData:null,on=typeof Blob<"u"?Blob:null,an={isBrowser:!0,classes:{URLSearchParams:rn,FormData:sn,Blob:on},protocols:["http","https","file","blob","url","data"]},Ee=typeof window<"u"&&typeof document<"u",me=typeof navigator=="object"&&navigator||void 0,cn=Ee&&(!me||["ReactNative","NativeScript","NS"].indexOf(me.product)<0),ln=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",un=Ee&&window.location.href||"http://localhost",fn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ee,hasStandardBrowserEnv:cn,hasStandardBrowserWebWorkerEnv:ln,navigator:me,origin:un},Symbol.toStringTag,{value:"Module"})),R={...fn,...an};function dn(e,t){return ie(e,new R.classes.URLSearchParams,{visitor:function(n,r,s,i){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function pn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hn(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}function rt(e){function t(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const c=Number.isFinite(+o),d=i>=n.length;return o=!o&&a.isArray(s)?s.length:o,d?(a.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!c):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&a.isArray(s[o])&&(s[o]=hn(s[o])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(pn(r),s,n,0)}),n}return null}function mn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const v={transitional:nt,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=a.isObject(t);if(i&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(rt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return dn(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ie(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),mn(t)):t}],transformResponse:[function(t){const n=this.transitional||v.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(c){if(o)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{v.headers[e]={}});const yn=a.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"]),bn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
|
+
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&yn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},_e=Symbol("internals");function J(e){return e&&String(e).trim().toLowerCase()}function ee(e){return e===!1||e==null?e:a.isArray(e)?e.map(ee):String(e)}function wn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const En=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ue(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function gn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Sn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let T=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(c,d,f){const l=J(d);if(!l)throw new Error("header name must be a non-empty string");const h=a.findKey(s,l);(!h||s[h]===void 0||f===!0||f===void 0&&s[h]!==!1)&&(s[h||d]=ee(c))}const o=(c,d)=>a.forEach(c,(f,l)=>i(f,l,d));if(a.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(a.isString(t)&&(t=t.trim())&&!En(t))o(bn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},d,f;for(const l of t){if(!a.isArray(l))throw TypeError("Object iterator must return a key-value pair");c[f=l[0]]=(d=c[f])?a.isArray(d)?[...d,l[1]]:[d,l[1]]:l[1]}o(c,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=J(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return wn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=J(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ue(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=J(o),o){const c=a.findKey(r,o);c&&(!n||ue(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||ue(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,i)=>{const o=a.findKey(r,i);if(o){n[o]=ee(s),delete n[i];return}const c=t?gn(i):String(i).trim();c!==i&&delete n[i],n[c]=ee(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[_e]=this[_e]={accessors:{}}).accessors,s=this.prototype;function i(o){const c=J(o);r[c]||(Sn(s,o),r[c]=!0)}return a.isArray(t)?t.forEach(i):i(t),this}};T.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(T.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(T);function fe(e,t){const n=this||v,r=t||n,s=T.from(r.headers);let i=r.data;return a.forEach(e,function(c){i=c.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function st(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function ot(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function On(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),l=r[i];o||(o=f),n[s]=d,r[s]=f;let h=i,b=0;for(;h!==s;)b+=n[h++],h=h%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),f-o<t)return;const S=l&&f-l;return S?Math.round(b*1e3/S):void 0}}function An(e,t){let n=0,r=1e3/t,s,i;const o=(f,l=Date.now())=>{n=l,s=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const l=Date.now(),h=l-n;h>=r?o(f,l):(s=f,i||(i=setTimeout(()=>{i=null,o(s)},r-h)))},()=>s&&o(s)]}const ne=(e,t,n=3)=>{let r=0;const s=On(50,250);return An(i=>{const o=i.loaded,c=i.lengthComputable?i.total:void 0,d=o-r,f=s(d),l=o<=c;r=o;const h={loaded:o,total:c,progress:c?o/c:void 0,bytes:d,rate:f||void 0,estimated:f&&c&&l?(c-o)/f:void 0,event:i,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Ue=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Le=e=>(...t)=>a.asap(()=>e(...t)),Tn=R.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,R.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(R.origin),R.navigator&&/(msie|trident)/i.test(R.navigator.userAgent)):()=>!0,xn=R.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];a.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),a.isString(r)&&c.push(`path=${r}`),a.isString(s)&&c.push(`domain=${s}`),i===!0&&c.push("secure"),a.isString(o)&&c.push(`SameSite=${o}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Cn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function it(e,t,n){let r=!Cn(t);return e&&(r||n==!1)?Nn(e,t):t}const Be=e=>e instanceof T?{...e}:e;function q(e,t){t=t||{};const n={};function r(f,l,h,b){return a.isPlainObject(f)&&a.isPlainObject(l)?a.merge.call({caseless:b},f,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(f,l,h,b){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f,h,b)}else return r(f,l,h,b)}function i(f,l){if(!a.isUndefined(l))return r(void 0,l)}function o(f,l){if(a.isUndefined(l)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,l)}function c(f,l,h){if(h in t)return r(f,l);if(h in e)return r(void 0,f)}const d={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c,headers:(f,l,h)=>s(Be(f),Be(l),h,!0)};return a.forEach(Object.keys({...e,...t}),function(l){const h=d[l]||s,b=h(e[l],t[l],l);a.isUndefined(b)&&h!==c||(n[l]=b)}),n}const at=e=>{const t=q({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:c}=t;if(t.headers=o=T.from(o),t.url=tt(it(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&o.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),a.isFormData(n)){if(R.hasStandardBrowserEnv||R.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(a.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([l,h])=>{f.includes(l.toLowerCase())&&o.set(l,h)})}}if(R.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&Tn(t.url))){const d=s&&i&&xn.read(i);d&&o.set(s,d)}return t},Pn=typeof XMLHttpRequest<"u",Fn=Pn&&function(e){return new Promise(function(n,r){const s=at(e);let i=s.data;const o=T.from(s.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:f}=s,l,h,b,S,u;function m(){S&&S(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(l),s.signal&&s.signal.removeEventListener("abort",l)}let p=new XMLHttpRequest;p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout;function E(){if(!p)return;const g=T.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),N={data:!c||c==="text"||c==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:g,config:e,request:p};ot(function(C){n(C),m()},function(C){r(C),m()},N),p=null}"onloadend"in p?p.onloadend=E:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(E)},p.onabort=function(){p&&(r(new y("Request aborted",y.ECONNABORTED,e,p)),p=null)},p.onerror=function(O){const N=O&&O.message?O.message:"Network Error",B=new y(N,y.ERR_NETWORK,e,p);B.event=O||null,r(B),p=null},p.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const N=s.transitional||nt;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new y(O,N.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&a.forEach(o.toJSON(),function(O,N){p.setRequestHeader(N,O)}),a.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),c&&c!=="json"&&(p.responseType=s.responseType),f&&([b,u]=ne(f,!0),p.addEventListener("progress",b)),d&&p.upload&&([h,S]=ne(d),p.upload.addEventListener("progress",h),p.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(l=g=>{p&&(r(!g||g.type?new $(null,e,p):g),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(l),s.signal&&(s.signal.aborted?l():s.signal.addEventListener("abort",l)));const x=Rn(s.url);if(x&&R.protocols.indexOf(x)===-1){r(new y("Unsupported protocol "+x+":",y.ERR_BAD_REQUEST,e));return}p.send(i||null)})},_n=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(f){if(!s){s=!0,c();const l=f instanceof Error?f:this.reason;r.abort(l instanceof y?l:new $(l instanceof Error?l.message:l))}};let o=t&&setTimeout(()=>{o=null,i(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>a.asap(c),d}},Un=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},Ln=async function*(e,t){for await(const n of Bn(e))yield*Un(n,t)},Bn=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},De=(e,t,n,r)=>{const s=Ln(e,t);let i=0,o,c=d=>{o||(o=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:f,value:l}=await s.next();if(f){c(),d.close();return}let h=l.byteLength;if(n){let b=i+=h;n(b)}d.enqueue(new Uint8Array(l))}catch(f){throw c(f),f}},cancel(d){return c(d),s.return()}},{highWaterMark:2})},ke=64*1024,{isFunction:Z}=a,Dn=(({Request:e,Response:t})=>({Request:e,Response:t}))(a.global),{ReadableStream:je,TextEncoder:qe}=a.global,Ie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},kn=e=>{e=a.merge.call({skipUndefined:!0},Dn,e);const{fetch:t,Request:n,Response:r}=e,s=t?Z(t):typeof fetch=="function",i=Z(n),o=Z(r);if(!s)return!1;const c=s&&Z(je),d=s&&(typeof qe=="function"?(u=>m=>u.encode(m))(new qe):async u=>new Uint8Array(await new n(u).arrayBuffer())),f=i&&c&&Ie(()=>{let u=!1;const m=new n(R.origin,{body:new je,method:"POST",get duplex(){return u=!0,"half"}}).headers.has("Content-Type");return u&&!m}),l=o&&c&&Ie(()=>a.isReadableStream(new r("").body)),h={stream:l&&(u=>u.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(u=>{!h[u]&&(h[u]=(m,p)=>{let E=m&&m[u];if(E)return E.call(m);throw new y(`Response type '${u}' is not supported`,y.ERR_NOT_SUPPORT,p)})});const b=async u=>{if(u==null)return 0;if(a.isBlob(u))return u.size;if(a.isSpecCompliantForm(u))return(await new n(R.origin,{method:"POST",body:u}).arrayBuffer()).byteLength;if(a.isArrayBufferView(u)||a.isArrayBuffer(u))return u.byteLength;if(a.isURLSearchParams(u)&&(u=u+""),a.isString(u))return(await d(u)).byteLength},S=async(u,m)=>{const p=a.toFiniteNumber(u.getContentLength());return p??b(m)};return async u=>{let{url:m,method:p,data:E,signal:x,cancelToken:g,timeout:O,onDownloadProgress:N,onUploadProgress:B,responseType:C,headers:ce,withCredentials:X="same-origin",fetchOptions:Se}=at(u),Re=t||fetch;C=C?(C+"").toLowerCase():"text";let G=_n([x,g&&g.toAbortSignal()],O),z=null;const D=G&&G.unsubscribe&&(()=>{G.unsubscribe()});let Oe;try{if(B&&f&&p!=="get"&&p!=="head"&&(Oe=await S(ce,E))!==0){let L=new n(m,{method:"POST",body:E,duplex:"half"}),I;if(a.isFormData(E)&&(I=L.headers.get("content-type"))&&ce.setContentType(I),L.body){const[le,Q]=Ue(Oe,ne(Le(B)));E=De(L.body,ke,le,Q)}}a.isString(X)||(X=X?"include":"omit");const F=i&&"credentials"in n.prototype,Ae={...Se,signal:G,method:p.toUpperCase(),headers:ce.normalize().toJSON(),body:E,duplex:"half",credentials:F?X:void 0};z=i&&new n(m,Ae);let U=await(i?Re(z,Se):Re(m,Ae));const Te=l&&(C==="stream"||C==="response");if(l&&(N||Te&&D)){const L={};["status","statusText","headers"].forEach(xe=>{L[xe]=U[xe]});const I=a.toFiniteNumber(U.headers.get("content-length")),[le,Q]=N&&Ue(I,ne(Le(N),!0))||[];U=new r(De(U.body,ke,le,()=>{Q&&Q(),D&&D()}),L)}C=C||"text";let pt=await h[a.findKey(h,C)||"text"](U,u);return!Te&&D&&D(),await new Promise((L,I)=>{ot(L,I,{data:pt,headers:T.from(U.headers),status:U.status,statusText:U.statusText,config:u,request:z})})}catch(F){throw D&&D(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,u,z),{cause:F.cause||F}):y.from(F,F&&F.code,u,z)}}},jn=new Map,ct=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,c=o,d,f,l=jn;for(;c--;)d=i[c],f=l.get(d),f===void 0&&l.set(d,f=c?new Map:kn(t)),l=f;return f};ct();const ge={http:Yt,xhr:Fn,fetch:{get:ct}};a.forEach(ge,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const He=e=>`- ${e}`,qn=e=>a.isFunction(e)||e===null||e===!1;function In(e,t){e=a.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o<n;o++){r=e[o];let c;if(s=r,!qn(r)&&(s=ge[(c=String(r)).toLowerCase()],s===void 0))throw new y(`Unknown adapter '${c}'`);if(s&&(a.isFunction(s)||(s=s.get(t))))break;i[c||"#"+o]=s}if(!s){const o=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let c=n?o.length>1?`since :
|
|
4
|
+
`+o.map(He).join(`
|
|
5
|
+
`):" "+He(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s}const lt={getAdapter:In,adapters:ge};function de(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function Me(e){return de(e),e.headers=T.from(e.headers),e.data=fe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lt.getAdapter(e.adapter||v.adapter,e)(e).then(function(r){return de(e),r.data=fe.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return st(r)||(de(e),r&&r.response&&(r.response.data=fe.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const ut="1.13.2",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $e={};ae.transitional=function(t,n,r){function s(i,o){return"[Axios v"+ut+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,c)=>{if(t===!1)throw new y(s(o," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!$e[o]&&($e[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,c):!0}};ae.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Hn(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const c=e[i],d=c===void 0||o(c,i,e);if(d!==!0)throw new y("option "+i+" must be "+d,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}const te={assertOptions:Hn,validators:ae},_=te.validators;let j=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Fe,response:new Fe}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=q(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:_.function,serialize:_.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),te.assertOptions(n,{baseUrl:_.spelling("baseURL"),withXsrfToken:_.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&a.merge(i.common,i[n.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],u=>{delete i[u]}),n.headers=T.concat(o,i);const c=[];let d=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(d=d&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,h=0,b;if(!d){const u=[Me.bind(this),void 0];for(u.unshift(...c),u.push(...f),b=u.length,l=Promise.resolve(n);h<b;)l=l.then(u[h++],u[h++]);return l}b=c.length;let S=n;for(;h<b;){const u=c[h++],m=c[h++];try{S=u(S)}catch(p){m.call(this,p);break}}try{l=Me.call(this,S)}catch(u){return Promise.reject(u)}for(h=0,b=f.length;h<b;)l=l.then(f[h++],f[h++]);return l}getUri(t){t=q(this.defaults,t);const n=it(t.baseURL,t.url,t.allowAbsoluteUrls);return tt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){j.prototype[t]=function(n,r){return this.request(q(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(i,o,c){return this.request(q(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}j.prototype[t]=n(),j.prototype[t+"Form"]=n(!0)});let Mn=class ft{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(c=>{r.subscribe(c),i=c}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,c){r.reason||(r.reason=new $(i,o,c),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ft(function(s){t=s}),cancel:t}}};function $n(e){return function(n){return e.apply(null,n)}}function zn(e){return a.isObject(e)&&e.isAxiosError===!0}const ye={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(ye).forEach(([e,t])=>{ye[t]=e});function dt(e){const t=new j(e),n=ze(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return dt(q(e,s))},n}const w=dt(v);w.Axios=j;w.CanceledError=$;w.CancelToken=Mn;w.isCancel=st;w.VERSION=ut;w.toFormData=ie;w.AxiosError=y;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=$n;w.isAxiosError=zn;w.mergeConfig=q;w.AxiosHeaders=T;w.formToJSON=e=>rt(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=lt.getAdapter;w.HttpStatusCode=ye;w.default=w;const{Axios:vn,AxiosError:Xn,CanceledError:Gn,isCancel:Qn,CancelToken:Zn,VERSION:Yn,all:er,Cancel:tr,isAxiosError:nr,spread:rr,toFormData:sr,AxiosHeaders:or,HttpStatusCode:ir,formToJSON:ar,getAdapter:cr,mergeConfig:lr}=w,Jn={},Vn=w.create({...Jn});console.warn('Attempting to create the axios singleton, but BACKEND_BASE_URL is empty! You need to set it up with axiosInstance.defaults.baseURL = "..."');exports.axiosInstance=Vn;
|
package/dist/containers.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),k=require("vue-router"),p=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),k=require("vue-router"),p=require("./index-CTNsucOq.cjs"),l=require("./index-FrfvunRp.cjs"),V=require("./libRoutes-BzeZrIaK.cjs"),F=require("./index-CJmnkrIs.cjs");function B(t,e=1){return t.value.children?.filter(i=>i.meta?.showInNavigation===void 0||i.meta?.showInNavigation).map(i=>P(i,t.value.path,e,1))}function P(t,e,i,r){const s=`${e}/${t.path}`;return{label:t.meta?.title??t.name??t.path,icon:t.meta?.icon,to:{path:s},depth:r,items:r<i?t.children?.map(c=>P(c,s,i,r+1)):void 0}}function L(t){if(!t)return[];const{t:e}=p.useI18nLib(),i=[];return t.showUser&&i.push({label:"John Doe",icon:"pi pi-user"}),t.showSettings&&i.push({label:e("navigation.settings"),icon:"pi pi-cog",iconOnly:!0,to:t.settingsRoute}),t.showLogout&&i.push({label:e("navigation.signout"),icon:"pi pi-sign-out",iconOnly:!0,to:t.logoutRoute}),i.length&&i.unshift({special:"spacer"},{special:"divider"}),i}function I(){const t=n.inject("routerViewDepth",0);return n.provide("routerViewDepth",t+1),t}const R=n.defineComponent({__name:"BareContainer",props:{width:{default:"full"},height:{default:"full"},direction:{default:"column"},center:{type:Boolean,default:!1}},setup(t){return I(),(e,i)=>{const r=n.resolveComponent("RouterView");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flex",{"w-full":t.width==="full","h-full":t.height==="full","flex-col":t.direction==="column","flex-row":t.direction==="row","items-center justify-center":t.center}])},[n.createVNode(r)],2)}}});var $=`
|
|
2
2
|
.p-menu {
|
|
3
3
|
background: dt('menu.background');
|
|
4
4
|
color: dt('menu.color');
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
.p-menu-separator {
|
|
81
81
|
border-block-start: 1px solid dt('menu.separator.border.color');
|
|
82
82
|
}
|
|
83
|
-
`,_={root:function(e){var i=e.props;return["p-menu p-component",{"p-menu-overlay":i.popup}]},start:"p-menu-start",list:"p-menu-list",submenuLabel:"p-menu-submenu-label",separator:"p-menu-separator",end:"p-menu-end",item:function(e){var i=e.instance;return["p-menu-item",{"p-focus":i.id===i.focusedOptionId,"p-disabled":i.disabled()}]},itemContent:"p-menu-item-content",itemLink:"p-menu-item-link",itemIcon:"p-menu-item-icon",itemLabel:"p-menu-item-label"},
|
|
84
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(t,e){if(t){if(typeof t=="string")return w(t,e);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?w(t,e):void 0}}function X(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ee(t){if(Array.isArray(t))return w(t)}function w(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}var K={name:"Menu",extends:H,inheritAttrs:!1,emits:["show","hide","focus","blur"],data:function(){return{overlayVisible:!1,focused:!1,focusedOptionIndex:-1,selectedOptionIndex:-1}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,list:null,mounted:function(){this.popup||(this.bindResizeListener(),this.bindOutsideClickListener())},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.target=null,this.container&&this.autoZIndex&&p.x.clear(this.container),this.container=null},methods:{itemClick:function(e){var i=e.item;this.disabled(i)||(i.command&&i.command(e),this.overlayVisible&&this.hide(),!this.popup&&this.focusedOptionIndex!==e.id&&(this.focusedOptionIndex=e.id))},itemMouseMove:function(e){this.focused&&(this.focusedOptionIndex=e.id)},onListFocus:function(e){this.focused=!0,!this.popup&&this.changeFocusedOptionIndex(0),this.$emit("focus",e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":this.popup&&(l.bt(this.target),this.hide());case"Tab":this.overlayVisible&&this.hide();break}},onArrowDownKey:function(e){var i=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(i),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&this.popup)l.bt(this.target),this.hide(),e.preventDefault();else{var i=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(i),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedOptionIndex(0),e.preventDefault()},onEndKey:function(e){this.changeFocusedOptionIndex(l.Y$1(this.container,'li[data-pc-section="item"][data-p-disabled="false"]').length-1),e.preventDefault()},onEnterKey:function(e){var i=l.z(this.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),r=i&&l.z(i,'a[data-pc-section="itemlink"]');this.popup&&l.bt(this.target),r?r.click():i&&i.click(),e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},findNextOptionIndex:function(e){var i=l.Y$1(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=C(i).findIndex(function(s){return s.id===e});return r>-1?r+1:0},findPrevOptionIndex:function(e){var i=l.Y$1(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=C(i).findIndex(function(s){return s.id===e});return r>-1?r-1:0},changeFocusedOptionIndex:function(e){var i=l.Y$1(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=e>=i.length?i.length-1:e<0?0:e;r>-1&&(this.focusedOptionIndex=i[r].getAttribute("id"))},toggle:function(e,i){this.overlayVisible?this.hide():this.show(e,i)},show:function(e,i){this.overlayVisible=!0,this.target=i??e.currentTarget},hide:function(){this.overlayVisible=!1,this.target=null},onEnter:function(e){l.S(e,{position:"absolute",top:"0"}),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),this.autoZIndex&&p.x.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),this.popup&&l.bt(this.list),this.$emit("show")},onLeave:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&p.x.clear(e)},alignOverlay:function(){l.D(this.container,this.target);var e=l.v(this.target);e>l.v(this.container)&&(this.container.style.minWidth=l.v(this.target)+"px")},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(i){var r=e.container&&!e.container.contains(i.target),s=!(e.target&&(e.target===i.target||e.target.contains(i.target)));e.overlayVisible&&r&&s?e.hide():!e.popup&&r&&s&&(e.focusedOptionIndex=-1)},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new p.ConnectedOverlayScrollHandler(this.target,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!l.Yt()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},visible:function(e){return typeof e.visible=="function"?e.visible():e.visible!==!1},disabled:function(e){return typeof e.disabled=="function"?e.disabled():e.disabled},label:function(e){return typeof e.label=="function"?e.label():e.label},onOverlayClick:function(e){p.OverlayEventBus.emit("overlay-click",{originalEvent:e,target:this.target})},containerRef:function(e){this.container=e},listRef:function(e){this.list=e}},computed:{focusedOptionId:function(){return this.focusedOptionIndex!==-1?this.focusedOptionIndex:null},dataP:function(){return p.f({popup:this.popup})}},components:{PVMenuitem:O,Portal:p.script$3}},te=["id","data-p"],ne=["id","tabindex","aria-activedescendant","aria-label","aria-labelledby"],ie=["id"];function oe(t,e,i,r,s,o){var c=n.resolveComponent("PVMenuitem"),b=n.resolveComponent("Portal");return n.openBlock(),n.createBlock(b,{appendTo:t.appendTo,disabled:!t.popup},{default:n.withCtx(function(){return[n.createVNode(n.Transition,n.mergeProps({name:"p-connected-overlay",onEnter:o.onEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},t.ptm("transition")),{default:n.withCtx(function(){return[!t.popup||s.overlayVisible?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,ref:o.containerRef,id:t.$id,class:t.cx("root"),onClick:e[3]||(e[3]=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)}),"data-p":o.dataP},t.ptmi("root")),[t.$slots.start?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[n.renderSlot(t.$slots,"start")],16)):n.createCommentVNode("",!0),n.createElementVNode("ul",n.mergeProps({ref:o.listRef,id:t.$id+"_list",class:t.cx("list"),role:"menu",tabindex:t.tabindex,"aria-activedescendant":s.focused?o.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:e[0]||(e[0]=function(){return o.onListFocus&&o.onListFocus.apply(o,arguments)}),onBlur:e[1]||(e[1]=function(){return o.onListBlur&&o.onListBlur.apply(o,arguments)}),onKeydown:e[2]||(e[2]=function(){return o.onListKeyDown&&o.onListKeyDown.apply(o,arguments)})},t.ptm("list")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.model,function(a,u){return n.openBlock(),n.createElementBlock(n.Fragment,{key:o.label(a)+u.toString()},[a.items&&o.visible(a)&&!a.separator?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[a.items?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,id:t.$id+"_"+u,class:[t.cx("submenuLabel"),a.class],role:"none"},{ref_for:!0},t.ptm("submenuLabel")),[n.renderSlot(t.$slots,t.$slots.submenulabel?"submenulabel":"submenuheader",{item:a},function(){return[n.createTextVNode(n.toDisplayString(o.label(a)),1)]})],16,ie)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.items,function(d,m){return n.openBlock(),n.createElementBlock(n.Fragment,{key:d.label+u+"_"+m},[o.visible(d)&&!d.separator?(n.openBlock(),n.createBlock(c,{key:0,id:t.$id+"_"+u+"_"+m,item:d,templates:t.$slots,focusedOptionId:o.focusedOptionId,unstyled:t.unstyled,onItemClick:o.itemClick,onItemMousemove:o.itemMouseMove,pt:t.pt},null,8,["id","item","templates","focusedOptionId","unstyled","onItemClick","onItemMousemove","pt"])):o.visible(d)&&d.separator?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:"separator"+u+m,class:[t.cx("separator"),a.class],style:d.style,role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):n.createCommentVNode("",!0)],64)}),128))],64)):o.visible(a)&&a.separator?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:"separator"+u.toString(),class:[t.cx("separator"),a.class],style:a.style,role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):(n.openBlock(),n.createBlock(c,{key:o.label(a)+u.toString(),id:t.$id+"_"+u,item:a,index:u,templates:t.$slots,focusedOptionId:o.focusedOptionId,unstyled:t.unstyled,onItemClick:o.itemClick,onItemMousemove:o.itemMouseMove,pt:t.pt},null,8,["id","item","index","templates","focusedOptionId","unstyled","onItemClick","onItemMousemove","pt"]))],64)}),128))],16,ne),t.$slots.end?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[n.renderSlot(t.$slots,"end")],16)):n.createCommentVNode("",!0)],16,te)):n.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}K.render=oe;const re={class:"flex flex-col items-center gap-2 m-(--p-divider-horizontal-margin) mb-0 p-(--p-menu-list-padding)"},ae=["src"],se={key:0,class:"text-center max-w-60"},le=["href","onClick"],ue=["href","onClick"],ce={key:0,class:"w-4"},de={key:1,class:"spacer"},me={key:2},be={key:3},pe={key:0,class:"w-4"},fe={class:"overflow-auto size-full"},he=n.defineComponent({__name:"SideMenuContainer",props:{depth:{default:1},width:{default:50},start:{default:()=>({logo:void 0,appName:void 0})},end:{default:()=>({showUser:!1,showSettings:!1,showLogout:!1,settingsRoute:{path:"/settings"},logoutRoute:{path:V.libRouteRecords.logout.path}})}},setup(t){const e=I(),i=k.useRoute(),r=n.computed(()=>i.matched[e]),{t:s}=p.useI18nLib(),o=B(r,t.depth).concat(L(t.end)),c=n.computed(()=>`min-width: calc(var(--spacing)*${t.width}) !important;`);return(b,a)=>{const u=n.resolveComponent("router-link"),d=n.resolveComponent("RouterView");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flex flex-row gap-2",{"size-[calc(100%-4*var(--spacing))] m-2":n.unref(e)===0,"size-full":n.unref(e)!==0}])},[n.createVNode(n.unref(K),{model:n.unref(o),style:n.normalizeStyle(c.value),pt:{root:"h-full flex flex-col overflow-auto",list:"grow",item:"has-[.spacer]:grow"}},n.createSlots({submenulabel:n.withCtx(({item:m})=>[n.createVNode(u,{to:m.to??"/"},{default:n.withCtx(({href:f,navigate:h})=>[n.createElementVNode("a",{href:f,class:"flex flex-row items-center gap-(--p-menu-item-gap)",onClick:h},[m.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(m.icon)},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(n.unref(s)(m.label)),1)],8,le)]),_:2},1032,["to"])]),item:n.withCtx(({item:m,props:f})=>[m.to?(n.openBlock(),n.createBlock(u,{key:0,to:m.to},{default:n.withCtx(({href:h,navigate:x,isActive:v})=>[n.createElementVNode("a",n.mergeProps({href:h},f.action,{class:{"bg-(--p-highlight-background) text-(--p-highlight-color) rounded-(--p-navigation-item-border-radius)":v},onClick:x}),[m.depth>1?(n.openBlock(),n.createElementBlock("span",ce)):n.createCommentVNode("",!0),m.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({[m.icon]:!0,"text-(--p-highlight-color)":v})},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass({"text-(--p-highlight-color)":v})},n.toDisplayString(n.unref(s)(m.label)),3)],16,ue)]),_:2},1032,["to"])):m.special==="spacer"?(n.openBlock(),n.createElementBlock("div",de)):m.special==="divider"?(n.openBlock(),n.createElementBlock("div",me,[n.createVNode(n.unref(p.script$1))])):(n.openBlock(),n.createElementBlock("div",be,[n.createElementVNode("a",n.normalizeProps(n.guardReactiveProps(f.action)),[m.depth>1?(n.openBlock(),n.createElementBlock("span",pe)):n.createCommentVNode("",!0),m.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({[m.icon]:!0})},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(n.unref(s)(m.label)),1)],16)]))]),_:2},[t.start.logo||t.start.appName?{name:"start",fn:n.withCtx(()=>[n.createElementVNode("div",re,[n.createElementVNode("img",{src:t.start.logo,class:"max-h-10"},null,8,ae),t.start.appName?(n.openBlock(),n.createElementBlock("span",se,n.toDisplayString(n.unref(s)(t.start.appName)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(p.script$1))])]),key:"0"}:void 0]),1032,["model","style"]),n.createElementVNode("div",fe,[n.createVNode(d)])],2)}}});var ve=`
|
|
83
|
+
`,_={root:function(e){var i=e.props;return["p-menu p-component",{"p-menu-overlay":i.popup}]},start:"p-menu-start",list:"p-menu-list",submenuLabel:"p-menu-submenu-label",separator:"p-menu-separator",end:"p-menu-end",item:function(e){var i=e.instance;return["p-menu-item",{"p-focus":i.id===i.focusedOptionId,"p-disabled":i.disabled()}]},itemContent:"p-menu-item-content",itemLink:"p-menu-item-link",itemIcon:"p-menu-item-icon",itemLabel:"p-menu-item-label"},H=l.BaseStyle.extend({name:"menu",style:$,classes:_}),j={name:"BaseMenu",extends:l.script,props:{popup:{type:Boolean,default:!1},model:{type:Array,default:null},appendTo:{type:[String,Object],default:"body"},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},tabindex:{type:Number,default:0},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:H,provide:function(){return{$pcMenu:this,$parentInstance:this}}},O={name:"Menuitem",hostName:"Menu",extends:l.script,inheritAttrs:!1,emits:["item-click","item-mousemove"],props:{item:null,templates:null,id:null,focusedOptionId:null,index:null},methods:{getItemProp:function(e,i){return e&&e.item?l.m(e.item[i]):void 0},getPTOptions:function(e){return this.ptm(e,{context:{item:this.item,index:this.index,focused:this.isItemFocused(),disabled:this.disabled()}})},isItemFocused:function(){return this.focusedOptionId===this.id},onItemClick:function(e){var i=this.getItemProp(this.item,"command");i&&i({originalEvent:e,item:this.item.item}),this.$emit("item-click",{originalEvent:e,item:this.item,id:this.id})},onItemMouseMove:function(e){this.$emit("item-mousemove",{originalEvent:e,item:this.item,id:this.id})},visible:function(){return typeof this.item.visible=="function"?this.item.visible():this.item.visible!==!1},disabled:function(){return typeof this.item.disabled=="function"?this.item.disabled():this.item.disabled},label:function(){return typeof this.item.label=="function"?this.item.label():this.item.label},getMenuItemProps:function(e){return{action:n.mergeProps({class:this.cx("itemLink"),tabindex:"-1"},this.getPTOptions("itemLink")),icon:n.mergeProps({class:[this.cx("itemIcon"),e.icon]},this.getPTOptions("itemIcon")),label:n.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel"))}}},computed:{dataP:function(){return p.f({focus:this.isItemFocused(),disabled:this.disabled()})}},directives:{ripple:p.Ripple}},U=["id","aria-label","aria-disabled","data-p-focused","data-p-disabled","data-p"],W=["data-p"],q=["href","target"],G=["data-p"],Y=["data-p"];function Z(t,e,i,r,s,o){var c=n.resolveDirective("ripple");return o.visible()?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,id:i.id,class:[t.cx("item"),i.item.class],role:"menuitem",style:i.item.style,"aria-label":o.label(),"aria-disabled":o.disabled(),"data-p-focused":o.isItemFocused(),"data-p-disabled":o.disabled()||!1,"data-p":o.dataP},o.getPTOptions("item")),[n.createElementVNode("div",n.mergeProps({class:t.cx("itemContent"),onClick:e[0]||(e[0]=function(b){return o.onItemClick(b)}),onMousemove:e[1]||(e[1]=function(b){return o.onItemMouseMove(b)}),"data-p":o.dataP},o.getPTOptions("itemContent")),[i.templates.item?i.templates.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.item),{key:1,item:i.item,label:o.label(),props:o.getMenuItemProps(i.item)},null,8,["item","label","props"])):n.createCommentVNode("",!0):n.withDirectives((n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,href:i.item.url,class:t.cx("itemLink"),target:i.item.target,tabindex:"-1"},o.getPTOptions("itemLink")),[i.templates.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.itemicon),{key:0,item:i.item,class:n.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.item.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:[t.cx("itemIcon"),i.item.icon],"data-p":o.dataP},o.getPTOptions("itemIcon")),null,16,G)):n.createCommentVNode("",!0),n.createElementVNode("span",n.mergeProps({class:t.cx("itemLabel"),"data-p":o.dataP},o.getPTOptions("itemLabel")),n.toDisplayString(o.label()),17,Y)],16,q)),[[c]])],16,W)],16,U)):n.createCommentVNode("",!0)}O.render=Z;function C(t){return ee(t)||X(t)||J(t)||Q()}function Q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
84
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(t,e){if(t){if(typeof t=="string")return w(t,e);var i={}.toString.call(t).slice(8,-1);return i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set"?Array.from(t):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?w(t,e):void 0}}function X(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ee(t){if(Array.isArray(t))return w(t)}function w(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}var K={name:"Menu",extends:j,inheritAttrs:!1,emits:["show","hide","focus","blur"],data:function(){return{overlayVisible:!1,focused:!1,focusedOptionIndex:-1,selectedOptionIndex:-1}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,list:null,mounted:function(){this.popup||(this.bindResizeListener(),this.bindOutsideClickListener())},beforeUnmount:function(){this.unbindResizeListener(),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.target=null,this.container&&this.autoZIndex&&p.x.clear(this.container),this.container=null},methods:{itemClick:function(e){var i=e.item;this.disabled(i)||(i.command&&i.command(e),this.overlayVisible&&this.hide(),!this.popup&&this.focusedOptionIndex!==e.id&&(this.focusedOptionIndex=e.id))},itemMouseMove:function(e){this.focused&&(this.focusedOptionIndex=e.id)},onListFocus:function(e){this.focused=!0,!this.popup&&this.changeFocusedOptionIndex(0),this.$emit("focus",e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"Escape":this.popup&&(l.bt(this.target),this.hide());case"Tab":this.overlayVisible&&this.hide();break}},onArrowDownKey:function(e){var i=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(i),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&this.popup)l.bt(this.target),this.hide(),e.preventDefault();else{var i=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(i),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedOptionIndex(0),e.preventDefault()},onEndKey:function(e){this.changeFocusedOptionIndex(l.Y(this.container,'li[data-pc-section="item"][data-p-disabled="false"]').length-1),e.preventDefault()},onEnterKey:function(e){var i=l.z(this.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),r=i&&l.z(i,'a[data-pc-section="itemlink"]');this.popup&&l.bt(this.target),r?r.click():i&&i.click(),e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},findNextOptionIndex:function(e){var i=l.Y(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=C(i).findIndex(function(s){return s.id===e});return r>-1?r+1:0},findPrevOptionIndex:function(e){var i=l.Y(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=C(i).findIndex(function(s){return s.id===e});return r>-1?r-1:0},changeFocusedOptionIndex:function(e){var i=l.Y(this.container,'li[data-pc-section="item"][data-p-disabled="false"]'),r=e>=i.length?i.length-1:e<0?0:e;r>-1&&(this.focusedOptionIndex=i[r].getAttribute("id"))},toggle:function(e,i){this.overlayVisible?this.hide():this.show(e,i)},show:function(e,i){this.overlayVisible=!0,this.target=i??e.currentTarget},hide:function(){this.overlayVisible=!1,this.target=null},onEnter:function(e){l.S(e,{position:"absolute",top:"0"}),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),this.autoZIndex&&p.x.set("menu",e,this.baseZIndex+this.$primevue.config.zIndex.menu),this.popup&&l.bt(this.list),this.$emit("show")},onLeave:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.$emit("hide")},onAfterLeave:function(e){this.autoZIndex&&p.x.clear(e)},alignOverlay:function(){l.D(this.container,this.target);var e=l.v(this.target);e>l.v(this.container)&&(this.container.style.minWidth=l.v(this.target)+"px")},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(i){var r=e.container&&!e.container.contains(i.target),s=!(e.target&&(e.target===i.target||e.target.contains(i.target)));e.overlayVisible&&r&&s?e.hide():!e.popup&&r&&s&&(e.focusedOptionIndex=-1)},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new p.ConnectedOverlayScrollHandler(this.target,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!l.Yt()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},visible:function(e){return typeof e.visible=="function"?e.visible():e.visible!==!1},disabled:function(e){return typeof e.disabled=="function"?e.disabled():e.disabled},label:function(e){return typeof e.label=="function"?e.label():e.label},onOverlayClick:function(e){p.OverlayEventBus.emit("overlay-click",{originalEvent:e,target:this.target})},containerRef:function(e){this.container=e},listRef:function(e){this.list=e}},computed:{focusedOptionId:function(){return this.focusedOptionIndex!==-1?this.focusedOptionIndex:null},dataP:function(){return p.f({popup:this.popup})}},components:{PVMenuitem:O,Portal:p.script$3}},te=["id","data-p"],ne=["id","tabindex","aria-activedescendant","aria-label","aria-labelledby"],ie=["id"];function oe(t,e,i,r,s,o){var c=n.resolveComponent("PVMenuitem"),b=n.resolveComponent("Portal");return n.openBlock(),n.createBlock(b,{appendTo:t.appendTo,disabled:!t.popup},{default:n.withCtx(function(){return[n.createVNode(n.Transition,n.mergeProps({name:"p-anchored-overlay",onEnter:o.onEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},t.ptm("transition")),{default:n.withCtx(function(){return[!t.popup||s.overlayVisible?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,ref:o.containerRef,id:t.$id,class:t.cx("root"),onClick:e[3]||(e[3]=function(){return o.onOverlayClick&&o.onOverlayClick.apply(o,arguments)}),"data-p":o.dataP},t.ptmi("root")),[t.$slots.start?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[n.renderSlot(t.$slots,"start")],16)):n.createCommentVNode("",!0),n.createElementVNode("ul",n.mergeProps({ref:o.listRef,id:t.$id+"_list",class:t.cx("list"),role:"menu",tabindex:t.tabindex,"aria-activedescendant":s.focused?o.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:e[0]||(e[0]=function(){return o.onListFocus&&o.onListFocus.apply(o,arguments)}),onBlur:e[1]||(e[1]=function(){return o.onListBlur&&o.onListBlur.apply(o,arguments)}),onKeydown:e[2]||(e[2]=function(){return o.onListKeyDown&&o.onListKeyDown.apply(o,arguments)})},t.ptm("list")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.model,function(a,u){return n.openBlock(),n.createElementBlock(n.Fragment,{key:o.label(a)+u.toString()},[a.items&&o.visible(a)&&!a.separator?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[a.items?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,id:t.$id+"_"+u,class:[t.cx("submenuLabel"),a.class],role:"none"},{ref_for:!0},t.ptm("submenuLabel")),[n.renderSlot(t.$slots,t.$slots.submenulabel?"submenulabel":"submenuheader",{item:a},function(){return[n.createTextVNode(n.toDisplayString(o.label(a)),1)]})],16,ie)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.items,function(d,m){return n.openBlock(),n.createElementBlock(n.Fragment,{key:d.label+u+"_"+m},[o.visible(d)&&!d.separator?(n.openBlock(),n.createBlock(c,{key:0,id:t.$id+"_"+u+"_"+m,item:d,templates:t.$slots,focusedOptionId:o.focusedOptionId,unstyled:t.unstyled,onItemClick:o.itemClick,onItemMousemove:o.itemMouseMove,pt:t.pt},null,8,["id","item","templates","focusedOptionId","unstyled","onItemClick","onItemMousemove","pt"])):o.visible(d)&&d.separator?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:"separator"+u+m,class:[t.cx("separator"),a.class],style:d.style,role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):n.createCommentVNode("",!0)],64)}),128))],64)):o.visible(a)&&a.separator?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:"separator"+u.toString(),class:[t.cx("separator"),a.class],style:a.style,role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):(n.openBlock(),n.createBlock(c,{key:o.label(a)+u.toString(),id:t.$id+"_"+u,item:a,index:u,templates:t.$slots,focusedOptionId:o.focusedOptionId,unstyled:t.unstyled,onItemClick:o.itemClick,onItemMousemove:o.itemMouseMove,pt:t.pt},null,8,["id","item","index","templates","focusedOptionId","unstyled","onItemClick","onItemMousemove","pt"]))],64)}),128))],16,ne),t.$slots.end?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[n.renderSlot(t.$slots,"end")],16)):n.createCommentVNode("",!0)],16,te)):n.createCommentVNode("",!0)]}),_:3},16,["onEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo","disabled"])}K.render=oe;const re={class:"flex flex-col items-center gap-2 m-(--p-divider-horizontal-margin) mb-0 p-(--p-menu-list-padding)"},ae=["src"],se={key:0,class:"text-center max-w-60"},le=["href","onClick"],ue=["href","onClick"],ce={key:0,class:"w-4"},de={key:1,class:"spacer"},me={key:2},be={key:3},pe={key:0,class:"w-4"},fe={class:"overflow-auto size-full"},he=n.defineComponent({__name:"SideMenuContainer",props:{depth:{default:1},width:{default:50},start:{default:()=>({logo:void 0,appName:void 0})},end:{default:()=>({showUser:!1,showSettings:!1,showLogout:!1,settingsRoute:{path:"/settings"},logoutRoute:{path:V.libRouteRecords.logout.path}})}},setup(t){const e=I(),i=k.useRoute(),r=n.computed(()=>i.matched[e]),{t:s}=p.useI18nLib(),o=B(r,t.depth).concat(L(t.end)),c=n.computed(()=>`min-width: calc(var(--spacing)*${t.width}) !important;`);return(b,a)=>{const u=n.resolveComponent("router-link"),d=n.resolveComponent("RouterView");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["flex flex-row gap-2",{"size-[calc(100%-4*var(--spacing))] m-2":n.unref(e)===0,"size-full":n.unref(e)!==0}])},[n.createVNode(n.unref(K),{model:n.unref(o),style:n.normalizeStyle(c.value),pt:{root:"h-full flex flex-col overflow-auto",list:"grow",item:"has-[.spacer]:grow"}},n.createSlots({submenulabel:n.withCtx(({item:m})=>[n.createVNode(u,{to:m.to??"/"},{default:n.withCtx(({href:f,navigate:h})=>[n.createElementVNode("a",{href:f,class:"flex flex-row items-center gap-(--p-menu-item-gap)",onClick:h},[m.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(m.icon)},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(n.unref(s)(m.label)),1)],8,le)]),_:2},1032,["to"])]),item:n.withCtx(({item:m,props:f})=>[m.to?(n.openBlock(),n.createBlock(u,{key:0,to:m.to},{default:n.withCtx(({href:h,navigate:x,isActive:v})=>[n.createElementVNode("a",n.mergeProps({href:h},f.action,{class:{"bg-(--p-highlight-background) text-(--p-highlight-color) rounded-(--p-navigation-item-border-radius)":v},onClick:x}),[m.depth>1?(n.openBlock(),n.createElementBlock("span",ce)):n.createCommentVNode("",!0),m.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({[m.icon]:!0,"text-(--p-highlight-color)":v})},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass({"text-(--p-highlight-color)":v})},n.toDisplayString(n.unref(s)(m.label)),3)],16,ue)]),_:2},1032,["to"])):m.special==="spacer"?(n.openBlock(),n.createElementBlock("div",de)):m.special==="divider"?(n.openBlock(),n.createElementBlock("div",me,[n.createVNode(n.unref(p.script$1))])):(n.openBlock(),n.createElementBlock("div",be,[n.createElementVNode("a",n.normalizeProps(n.guardReactiveProps(f.action)),[m.depth>1?(n.openBlock(),n.createElementBlock("span",pe)):n.createCommentVNode("",!0),m.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({[m.icon]:!0})},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(n.unref(s)(m.label)),1)],16)]))]),_:2},[t.start.logo||t.start.appName?{name:"start",fn:n.withCtx(()=>[n.createElementVNode("div",re,[n.createElementVNode("img",{src:t.start.logo,class:"max-h-10"},null,8,ae),t.start.appName?(n.openBlock(),n.createElementBlock("span",se,n.toDisplayString(n.unref(s)(t.start.appName)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(p.script$1))])]),key:"0"}:void 0]),1032,["model","style"]),n.createElementVNode("div",fe,[n.createVNode(d)])],2)}}});var ve=`
|
|
85
85
|
.p-menubar {
|
|
86
86
|
display: flex;
|
|
87
87
|
align-items: center;
|
|
@@ -351,7 +351,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
351
351
|
padding-inline-start: dt('menubar.submenu.mobile.indent');
|
|
352
352
|
padding-inline-end: 0;
|
|
353
353
|
}
|
|
354
|
-
`,ge={submenu:function(e){var i=e.instance,r=e.processedItem;return{display:i.isItemActive(r)?"flex":"none"}}},Ie={root:function(e){var i=e.instance;return["p-menubar p-component",{"p-menubar-mobile":i.queryMatches,"p-menubar-mobile-active":i.mobileActive}]},start:"p-menubar-start",button:"p-menubar-button",rootList:"p-menubar-root-list",item:function(e){var i=e.instance,r=e.processedItem;return["p-menubar-item",{"p-menubar-item-active":i.isItemActive(r),"p-focus":i.isItemFocused(r),"p-disabled":i.isItemDisabled(r)}]},itemContent:"p-menubar-item-content",itemLink:"p-menubar-item-link",itemIcon:"p-menubar-item-icon",itemLabel:"p-menubar-item-label",submenuIcon:"p-menubar-submenu-icon",submenu:"p-menubar-submenu",separator:"p-menubar-separator",end:"p-menubar-end"},ye=l.BaseStyle.extend({name:"menubar",style:ve,classes:Ie,inlineStyles:ge}),ke={name:"BaseMenubar",extends:l.script,props:{model:{type:Array,default:null},buttonProps:{type:null,default:null},breakpoint:{type:String,default:"960px"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:ye,provide:function(){return{$pcMenubar:this,$parentInstance:this}}},T={name:"MenubarSub",hostName:"Menubar",extends:l.script,emits:["item-mouseenter","item-click","item-mousemove"],props:{items:{type:Array,default:null},root:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},mobileActive:{type:Boolean,default:!1},templates:{type:Object,default:null},level:{type:Number,default:0},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},activeItemPath:{type:Object,default:null}},list:null,methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,r){return e&&e.item?l.m(e.item[i],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,i,r){return this.ptm(r,{context:{item:e.item,index:i,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),level:this.level}})},isItemActive:function(e){return this.activeItemPath.some(function(i){return i.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return l.s(e.items)},onItemClick:function(e,i){this.getItemProp(i,"command",{originalEvent:e,item:i.item}),this.$emit("item-click",{originalEvent:e,processedItem:i,isFocus:!0})},onItemMouseEnter:function(e,i){this.$emit("item-mouseenter",{originalEvent:e,processedItem:i})},onItemMouseMove:function(e,i){this.$emit("item-mousemove",{originalEvent:e,processedItem:i})},getAriaPosInset:function(e){return e-this.calculateAriaSetSize.slice(0,e).length+1},getMenuItemProps:function(e,i){return{action:n.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,i,"itemLink")),icon:n.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,i,"itemIcon")),label:n.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,i,"itemLabel")),submenuicon:n.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,i,"submenuIcon"))}}},computed:{calculateAriaSetSize:function(){var e=this;return this.items.filter(function(i){return e.isItemVisible(i)&&e.getItemProp(i,"separator")})},getAriaSetSize:function(){var e=this;return this.items.filter(function(i){return e.isItemVisible(i)&&!e.getItemProp(i,"separator")}).length}},components:{AngleRightIcon:p.script$5,AngleDownIcon:p.script$4},directives:{ripple:p.Ripple}},xe=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],we=["onClick","onMouseenter","onMousemove"],Be=["href","target"],Pe=["id"],Le=["id"];function Ce(t,e,i,r,s,o){var c=n.resolveComponent("MenubarSub",!0),b=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("ul",n.mergeProps({class:i.level===0?t.cx("rootList"):t.cx("submenu")},i.level===0?t.ptm("rootList"):t.ptm("submenu")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.items,function(a,u){return n.openBlock(),n.createElementBlock(n.Fragment,{key:o.getItemKey(a)},[o.isItemVisible(a)&&!o.getItemProp(a,"separator")?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,id:o.getItemId(a),style:o.getItemProp(a,"style"),class:[t.cx("item",{processedItem:a}),o.getItemProp(a,"class")],role:"menuitem","aria-label":o.getItemLabel(a),"aria-disabled":o.isItemDisabled(a)||void 0,"aria-expanded":o.isItemGroup(a)?o.isItemActive(a):void 0,"aria-haspopup":o.isItemGroup(a)&&!o.getItemProp(a,"to")?"menu":void 0,"aria-setsize":o.getAriaSetSize,"aria-posinset":o.getAriaPosInset(u)},{ref_for:!0},o.getPTOptions(a,u,"item"),{"data-p-active":o.isItemActive(a),"data-p-focused":o.isItemFocused(a),"data-p-disabled":o.isItemDisabled(a)}),[n.createElementVNode("div",n.mergeProps({class:t.cx("itemContent"),onClick:function(m){return o.onItemClick(m,a)},onMouseenter:function(m){return o.onItemMouseEnter(m,a)},onMousemove:function(m){return o.onItemMouseMove(m,a)}},{ref_for:!0},o.getPTOptions(a,u,"itemContent")),[i.templates.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.item),{key:1,item:a.item,root:i.root,hasSubmenu:o.getItemProp(a,"items"),label:o.getItemLabel(a),props:o.getMenuItemProps(a,u)},null,8,["item","root","hasSubmenu","label","props"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,href:o.getItemProp(a,"url"),class:t.cx("itemLink"),target:o.getItemProp(a,"target"),tabindex:"-1"},{ref_for:!0},o.getPTOptions(a,u,"itemLink")),[i.templates.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.itemicon),{key:0,item:a.item,class:n.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):o.getItemProp(a,"icon")?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:[t.cx("itemIcon"),o.getItemProp(a,"icon")]},{ref_for:!0},o.getPTOptions(a,u,"itemIcon")),null,16)):n.createCommentVNode("",!0),n.createElementVNode("span",n.mergeProps({id:o.getItemLabelId(a),class:t.cx("itemLabel")},{ref_for:!0},o.getPTOptions(a,u,"itemLabel")),n.toDisplayString(o.getItemLabel(a)),17,Pe),o.getItemProp(a,"items")?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[i.templates.submenuicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.submenuicon),{key:0,root:i.root,active:o.isItemActive(a),class:n.normalizeClass(t.cx("submenuIcon"))},null,8,["root","active","class"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.root?"AngleDownIcon":"AngleRightIcon"),n.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},o.getPTOptions(a,u,"submenuIcon")),null,16,["class"]))],64)):n.createCommentVNode("",!0)],16,Be)),[[b]])],16,we),o.isItemVisible(a)&&o.isItemGroup(a)?(n.openBlock(),n.createBlock(c,{key:0,id:o.getItemId(a)+"_list",menuId:i.menuId,role:"menu",style:n.normalizeStyle(t.sx("submenu",!0,{processedItem:a})),focusedItemId:i.focusedItemId,items:a.items,mobileActive:i.mobileActive,activeItemPath:i.activeItemPath,templates:i.templates,level:i.level+1,"aria-labelledby":o.getItemLabelId(a),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(d){return t.$emit("item-click",d)}),onItemMouseenter:e[1]||(e[1]=function(d){return t.$emit("item-mouseenter",d)}),onItemMousemove:e[2]||(e[2]=function(d){return t.$emit("item-mousemove",d)})},null,8,["id","menuId","style","focusedItemId","items","mobileActive","activeItemPath","templates","level","aria-labelledby","pt","unstyled"])):n.createCommentVNode("",!0)],16,xe)):n.createCommentVNode("",!0),o.isItemVisible(a)&&o.getItemProp(a,"separator")?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:1,id:o.getItemId(a),class:[t.cx("separator"),o.getItemProp(a,"class")],style:o.getItemProp(a,"style"),role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,Le)):n.createCommentVNode("",!0)],64)}),128))],16)}T.render=Ce;var N={name:"Menubar",extends:ke,inheritAttrs:!1,emits:["focus","blur"],matchMediaListener:null,data:function(){return{mobileActive:!1,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],dirty:!1,query:null,queryMatches:!1}},watch:{activeItemPath:function(e){l.s(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())}},outsideClickListener:null,container:null,menubar:null,mounted:function(){this.bindMatchMediaListener()},beforeUnmount:function(){this.mobileActive=!1,this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.container&&p.x.clear(this.container),this.container=null},methods:{getItemProp:function(e,i){return e?l.m(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return l.s(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&l.s(e.items)},toggle:function(e){var i=this;this.mobileActive?(this.mobileActive=!1,p.x.clear(this.menubar),this.hide()):(this.mobileActive=!0,p.x.set("menu",this.menubar,this.$primevue.config.zIndex.menu),setTimeout(function(){i.show()},1)),this.bindOutsideClickListener(),e.preventDefault()},show:function(){l.bt(this.menubar)},hide:function(e,i){var r=this;this.mobileActive&&(this.mobileActive=!1,setTimeout(function(){l.bt(r.$refs.menubutton)},0)),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},i&&l.bt(this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&l.j(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,i){var r=e.processedItem,s=e.isFocus;if(!l.a(r)){var o=r.index,c=r.key,b=r.level,a=r.parentKey,u=r.items,d=l.s(u),m=this.activeItemPath.filter(function(f){return f.parentKey!==a&&f.parentKey!==c});d&&m.push(r),this.focusedItemInfo={index:o,level:b,parentKey:a},d&&(this.dirty=!0),s&&l.bt(this.menubar),!(i==="hover"&&this.queryMatches)&&(this.activeItemPath=m)}},onItemClick:function(e){var i=e.originalEvent,r=e.processedItem,s=this.isProccessedItemGroup(r),o=l.a(r.parent),c=this.isSelected(r);if(c){var b=r.index,a=r.key,u=r.level,d=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(f){return a!==f.key&&a.startsWith(f.key)}),this.focusedItemInfo={index:b,level:u,parentKey:d},this.dirty=!o,l.bt(this.menubar)}else if(s)this.onItemChange(e);else{var m=o?r:this.activeItemPath.find(function(f){return f.parentKey===""});this.hide(i),this.changeFocusedItemIndex(i,m?m.index:-1),this.mobileActive=!1,l.bt(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},menuButtonClick:function(e){this.toggle(e)},menuButtonKeydown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&this.menuButtonClick(e)},onArrowDownKey:function(e){var i=this.visibleItems[this.focusedItemInfo.index],r=i?l.a(i.parent):null;if(r){var s=this.isProccessedItemGroup(i);s&&(this.onItemChange({originalEvent:e,processedItem:i}),this.focusedItemInfo={index:-1,parentKey:i.key},this.onArrowRightKey(e))}else{var o=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o)}e.preventDefault()},onArrowUpKey:function(e){var i=this,r=this.visibleItems[this.focusedItemInfo.index],s=l.a(r.parent);if(s){var o=this.isProccessedItemGroup(r);if(o){this.onItemChange({originalEvent:e,processedItem:r}),this.focusedItemInfo={index:-1,parentKey:r.key};var c=this.findLastItemIndex();this.changeFocusedItemIndex(e,c)}}else{var b=this.activeItemPath.find(function(u){return u.key===r.parentKey});if(this.focusedItemInfo.index===0)this.focusedItemInfo={index:-1,parentKey:b?b.parentKey:""},this.searchValue="",this.onArrowLeftKey(e),this.activeItemPath=this.activeItemPath.filter(function(u){return u.parentKey!==i.focusedItemInfo.parentKey});else{var a=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,a)}}e.preventDefault()},onArrowLeftKey:function(e){var i=this,r=this.visibleItems[this.focusedItemInfo.index],s=r?this.activeItemPath.find(function(c){return c.key===r.parentKey}):null;if(s)this.onItemChange({originalEvent:e,processedItem:s}),this.activeItemPath=this.activeItemPath.filter(function(c){return c.parentKey!==i.focusedItemInfo.parentKey}),e.preventDefault();else{var o=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onArrowRightKey:function(e){var i=this.visibleItems[this.focusedItemInfo.index],r=i?this.activeItemPath.find(function(c){return c.key===i.parentKey}):null;if(r){var s=this.isProccessedItemGroup(i);s&&(this.onItemChange({originalEvent:e,processedItem:i}),this.focusedItemInfo={index:-1,parentKey:i.key},this.onArrowDownKey(e))}else{var o=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var i=l.z(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=i&&l.z(i,'a[data-pc-section="itemlink"]');r?r.click():i&&i.click();var s=this.visibleItems[this.focusedItemInfo.index],o=this.isProccessedItemGroup(s);!o&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.focusedItemInfo.level!==0){var i=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(i.parentKey.split("_")[0]),level:0,parentKey:""}}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var i=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(i);!r&&this.onItemChange({originalEvent:e,processedItem:i})}this.hide()},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(i){var r=e.container&&!e.container.contains(i.target),s=!(e.target&&(e.target===i.target||e.target.contains(i.target)));r&&s&&e.hide()},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(i){l.Yt()||e.hide(i,!0),e.mobileActive=!1},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var i=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=i,this.queryMatches=i.matches,this.matchMediaListener=function(){e.queryMatches=i.matches,e.mobileActive=!1},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var i;return this.isValidItem(e)&&((i=this.getProccessedItemLabel(e))===null||i===void 0?void 0:i.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(i){return i.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(i){return e.isValidItem(i)})},findLastItemIndex:function(){var e=this;return l.M(this.visibleItems,function(i){return e.isValidItem(i)})},findNextItemIndex:function(e){var i=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(s){return i.isValidItem(s)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var i=this,r=e>0?l.M(this.visibleItems.slice(0,e),function(s){return i.isValidItem(s)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(i){return e.isValidSelectedItem(i)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,i){var r=this;this.searchValue=(this.searchValue||"")+i;var s=-1,o=!1;return this.focusedItemInfo.index!==-1?(s=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(c){return r.isItemMatched(c)}),s=s===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(c){return r.isItemMatched(c)}):s+this.focusedItemInfo.index):s=this.visibleItems.findIndex(function(c){return r.isItemMatched(c)}),s!==-1&&(o=!0),s===-1&&this.focusedItemInfo.index===-1&&(s=this.findFirstFocusedItemIndex()),s!==-1&&this.changeFocusedItemIndex(e,s),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),o},changeFocusedItemIndex:function(e,i){this.focusedItemInfo.index!==i&&(this.focusedItemInfo.index=i,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,i=e!==-1?"".concat(this.$id,"_").concat(e):this.focusedItemId,r=l.z(this.menubar,'li[id="'.concat(i,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(b,a){var u=(o!==""?o+"_":"")+a,d={item:b,index:a,level:r,key:u,parent:s,parentKey:o};d.items=i.createProcessedItems(b.items,r+1,d,u),c.push(d)}),c},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,i=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return i?i.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.$id).concat(l.s(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{MenubarSub:T,BarsIcon:p.script$6}};function g(t){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(t)}function E(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,r)}return i}function S(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?E(Object(i),!0).forEach(function(r){Ee(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function Ee(t,e,i){return(e=Se(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Se(t){var e=Ve(t,"string");return g(e)=="symbol"?e:e+""}function Ve(t,e){if(g(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var r=i.call(t,e);if(g(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe=["aria-haspopup","aria-expanded","aria-controls","aria-label"];function Ke(t,e,i,r,s,o){var c=n.resolveComponent("BarsIcon"),b=n.resolveComponent("MenubarSub");return n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:o.containerRef,class:t.cx("root")},t.ptmi("root")),[t.$slots.start?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[n.renderSlot(t.$slots,"start")],16)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,t.$slots.button?"button":"menubutton",{id:t.$id,class:n.normalizeClass(t.cx("button")),toggleCallback:function(u){return o.menuButtonClick(u)}},function(){var a;return[t.model&&t.model.length>0?(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,ref:"menubutton",role:"button",tabindex:"0",class:t.cx("button"),"aria-haspopup":!!(t.model.length&&t.model.length>0),"aria-expanded":s.mobileActive,"aria-controls":t.$id,"aria-label":(a=t.$primevue.config.locale.aria)===null||a===void 0?void 0:a.navigation,onClick:e[0]||(e[0]=function(u){return o.menuButtonClick(u)}),onKeydown:e[1]||(e[1]=function(u){return o.menuButtonKeydown(u)})},S(S({},t.buttonProps),t.ptm("button"))),[n.renderSlot(t.$slots,t.$slots.buttonicon?"buttonicon":"menubuttonicon",{},function(){return[n.createVNode(c,n.normalizeProps(n.guardReactiveProps(t.ptm("buttonicon"))),null,16)]})],16,Oe)):n.createCommentVNode("",!0)]}),n.createVNode(b,{ref:o.menubarRef,id:t.$id+"_list",role:"menubar",items:o.processedItems,templates:t.$slots,root:!0,mobileActive:s.mobileActive,tabindex:"0","aria-activedescendant":s.focused?o.focusedItemId:void 0,menuId:t.$id,focusedItemId:s.focused?o.focusedItemId:void 0,activeItemPath:s.activeItemPath,level:0,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,pt:t.pt,unstyled:t.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter,onItemMousemove:o.onItemMouseMove},null,8,["id","items","templates","mobileActive","aria-activedescendant","menuId","focusedItemId","activeItemPath","aria-labelledby","aria-label","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),t.$slots.end?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[n.renderSlot(t.$slots,"end")],16)):n.createCommentVNode("",!0)],16)}N.render=Ke;const Te={class:"size-full flex flex-col gap-2"},Ne={class:"flex flex-row items-center"},Me=["src"],Ae={key:0,class:"ml-4"},ze=["href","onClick"],De={key:1,class:"spacer"},Fe={key:2},Re={key:1},$e=n.defineComponent({__name:"NavbarContainer",props:{depth:{default:1},start:{default:()=>({logo:void 0,appName:void 0})},end:{default:()=>({showUser:!1,showSettings:!1,showLogout:!1,settingsRoute:{path:"/settings"},logoutRoute:{path:V.libRouteRecords.logout.path}})}},setup(t){const e=I(),i=k.useRoute(),r=n.computed(()=>i.matched[e]),{t:s}=p.useI18nLib(),o=B(r,t.depth).concat(L(t.end));return(c,b)=>{const a=n.resolveComponent("router-link"),u=n.resolveComponent("RouterView");return n.openBlock(),n.createElementBlock("div",Te,[n.createVNode(n.unref(N),{model:n.unref(o),pt:{root:"w-full flex flex-row",rootList:"grow flex flex-row",item:"has-[.spacer]:grow has-[.divider]:hover:unset"}},n.createSlots({item:n.withCtx(({item:d,props:m,root:f,hasSubmenu:h})=>[d.to?(n.openBlock(),n.createBlock(a,{key:0,to:d.to},{default:n.withCtx(({href:x,navigate:v,isActive:y})=>[n.createElementVNode("a",n.mergeProps({href:x},m.action,{class:{"bg-(--p-highlight-background) text-(--p-highlight-color) rounded-(--p-navigation-item-border-radius)":y},onClick:n.withModifiers(()=>{h??v()},["prevent"])}),[d.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({[d.icon]:!0,"text-(--p-highlight-color)":y})},null,2)):n.createCommentVNode("",!0),d.iconOnly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({"text-(--p-highlight-color)":y})},n.toDisplayString(n.unref(s)(d.label)),3)),h?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["pi pi-angle-down ml-auto",{"pi-angle-down":f,"pi-angle-right":!f,"text-(--p-highlight-color)":y}])},null,2)):n.createCommentVNode("",!0)],16,ze)]),_:2},1032,["to"])):d.special==="spacer"?(n.openBlock(),n.createElementBlock("div",De)):(n.openBlock(),n.createElementBlock("div",Fe,[n.createElementVNode("a",n.normalizeProps(n.guardReactiveProps(m.action)),[d.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({[d.icon]:!0})},null,2)):n.createCommentVNode("",!0),!d.iconOnly&&d.label?(n.openBlock(),n.createElementBlock("span",Re,n.toDisplayString(n.unref(s)(d.label)),1)):n.createCommentVNode("",!0)],16)]))]),_:2},[t.start.logo||t.start.appName?{name:"start",fn:n.withCtx(()=>[n.createElementVNode("div",Ne,[n.createElementVNode("img",{src:t.start.logo,class:"h-8"},null,8,Me),t.start.appName?(n.openBlock(),n.createElementBlock("span",Ae,n.toDisplayString(n.unref(s)(t.start.appName)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(p.script$1),{layout:"vertical"})])]),key:"0"}:void 0]),1032,["model"]),n.createElementVNode("div",{class:n.normalizeClass(["overflow-auto",{"size-[calc(100%-4*var(--spacing))] m-2 mt-0":n.unref(e)===0,"size-full":n.unref(e)!==0}])},[n.createVNode(u)],2)])}}});var _e=`
|
|
354
|
+
`,ge={submenu:function(e){var i=e.instance,r=e.processedItem;return{display:i.isItemActive(r)?"flex":"none"}}},Ie={root:function(e){var i=e.instance;return["p-menubar p-component",{"p-menubar-mobile":i.queryMatches,"p-menubar-mobile-active":i.mobileActive}]},start:"p-menubar-start",button:"p-menubar-button",rootList:"p-menubar-root-list",item:function(e){var i=e.instance,r=e.processedItem;return["p-menubar-item",{"p-menubar-item-active":i.isItemActive(r),"p-focus":i.isItemFocused(r),"p-disabled":i.isItemDisabled(r)}]},itemContent:"p-menubar-item-content",itemLink:"p-menubar-item-link",itemIcon:"p-menubar-item-icon",itemLabel:"p-menubar-item-label",submenuIcon:"p-menubar-submenu-icon",submenu:"p-menubar-submenu",separator:"p-menubar-separator",end:"p-menubar-end"},ye=l.BaseStyle.extend({name:"menubar",style:ve,classes:Ie,inlineStyles:ge}),ke={name:"BaseMenubar",extends:l.script,props:{model:{type:Array,default:null},buttonProps:{type:null,default:null},breakpoint:{type:String,default:"960px"},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:ye,provide:function(){return{$pcMenubar:this,$parentInstance:this}}},T={name:"MenubarSub",hostName:"Menubar",extends:l.script,emits:["item-mouseenter","item-click","item-mousemove"],props:{items:{type:Array,default:null},root:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},mobileActive:{type:Boolean,default:!1},templates:{type:Object,default:null},level:{type:Number,default:0},menuId:{type:String,default:null},focusedItemId:{type:String,default:null},activeItemPath:{type:Object,default:null}},list:null,methods:{getItemId:function(e){return"".concat(this.menuId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,i,r){return e&&e.item?l.m(e.item[i],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getItemLabelId:function(e){return"".concat(this.menuId,"_").concat(e.key,"_label")},getPTOptions:function(e,i,r){return this.ptm(r,{context:{item:e.item,index:i,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e),level:this.level}})},isItemActive:function(e){return this.activeItemPath.some(function(i){return i.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return l.s(e.items)},onItemClick:function(e,i){this.getItemProp(i,"command",{originalEvent:e,item:i.item}),this.$emit("item-click",{originalEvent:e,processedItem:i,isFocus:!0})},onItemMouseEnter:function(e,i){this.$emit("item-mouseenter",{originalEvent:e,processedItem:i})},onItemMouseMove:function(e,i){this.$emit("item-mousemove",{originalEvent:e,processedItem:i})},getAriaPosInset:function(e){return e-this.calculateAriaSetSize.slice(0,e).length+1},getMenuItemProps:function(e,i){return{action:n.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions(e,i,"itemLink")),icon:n.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions(e,i,"itemIcon")),label:n.mergeProps({class:this.cx("itemLabel")},this.getPTOptions(e,i,"itemLabel")),submenuicon:n.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions(e,i,"submenuIcon"))}}},computed:{calculateAriaSetSize:function(){var e=this;return this.items.filter(function(i){return e.isItemVisible(i)&&e.getItemProp(i,"separator")})},getAriaSetSize:function(){var e=this;return this.items.filter(function(i){return e.isItemVisible(i)&&!e.getItemProp(i,"separator")}).length}},components:{AngleRightIcon:p.script$5,AngleDownIcon:p.script$4},directives:{ripple:p.Ripple}},xe=["id","aria-label","aria-disabled","aria-expanded","aria-haspopup","aria-setsize","aria-posinset","data-p-active","data-p-focused","data-p-disabled"],we=["onClick","onMouseenter","onMousemove"],Be=["href","target"],Pe=["id"],Le=["id"];function Ce(t,e,i,r,s,o){var c=n.resolveComponent("MenubarSub",!0),b=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("ul",n.mergeProps({class:i.level===0?t.cx("rootList"):t.cx("submenu")},i.level===0?t.ptm("rootList"):t.ptm("submenu")),[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.items,function(a,u){return n.openBlock(),n.createElementBlock(n.Fragment,{key:o.getItemKey(a)},[o.isItemVisible(a)&&!o.getItemProp(a,"separator")?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:0,id:o.getItemId(a),style:o.getItemProp(a,"style"),class:[t.cx("item",{processedItem:a}),o.getItemProp(a,"class")],role:"menuitem","aria-label":o.getItemLabel(a),"aria-disabled":o.isItemDisabled(a)||void 0,"aria-expanded":o.isItemGroup(a)?o.isItemActive(a):void 0,"aria-haspopup":o.isItemGroup(a)&&!o.getItemProp(a,"to")?"menu":void 0,"aria-setsize":o.getAriaSetSize,"aria-posinset":o.getAriaPosInset(u)},{ref_for:!0},o.getPTOptions(a,u,"item"),{"data-p-active":o.isItemActive(a),"data-p-focused":o.isItemFocused(a),"data-p-disabled":o.isItemDisabled(a)}),[n.createElementVNode("div",n.mergeProps({class:t.cx("itemContent"),onClick:function(m){return o.onItemClick(m,a)},onMouseenter:function(m){return o.onItemMouseEnter(m,a)},onMousemove:function(m){return o.onItemMouseMove(m,a)}},{ref_for:!0},o.getPTOptions(a,u,"itemContent")),[i.templates.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.item),{key:1,item:a.item,root:i.root,hasSubmenu:o.getItemProp(a,"items"),label:o.getItemLabel(a),props:o.getMenuItemProps(a,u)},null,8,["item","root","hasSubmenu","label","props"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,href:o.getItemProp(a,"url"),class:t.cx("itemLink"),target:o.getItemProp(a,"target"),tabindex:"-1"},{ref_for:!0},o.getPTOptions(a,u,"itemLink")),[i.templates.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.itemicon),{key:0,item:a.item,class:n.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):o.getItemProp(a,"icon")?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:[t.cx("itemIcon"),o.getItemProp(a,"icon")]},{ref_for:!0},o.getPTOptions(a,u,"itemIcon")),null,16)):n.createCommentVNode("",!0),n.createElementVNode("span",n.mergeProps({id:o.getItemLabelId(a),class:t.cx("itemLabel")},{ref_for:!0},o.getPTOptions(a,u,"itemLabel")),n.toDisplayString(o.getItemLabel(a)),17,Pe),o.getItemProp(a,"items")?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[i.templates.submenuicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.templates.submenuicon),{key:0,root:i.root,active:o.isItemActive(a),class:n.normalizeClass(t.cx("submenuIcon"))},null,8,["root","active","class"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.root?"AngleDownIcon":"AngleRightIcon"),n.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},o.getPTOptions(a,u,"submenuIcon")),null,16,["class"]))],64)):n.createCommentVNode("",!0)],16,Be)),[[b]])],16,we),o.isItemVisible(a)&&o.isItemGroup(a)?(n.openBlock(),n.createBlock(c,{key:0,id:o.getItemId(a)+"_list",menuId:i.menuId,role:"menu",style:n.normalizeStyle(t.sx("submenu",!0,{processedItem:a})),focusedItemId:i.focusedItemId,items:a.items,mobileActive:i.mobileActive,activeItemPath:i.activeItemPath,templates:i.templates,level:i.level+1,"aria-labelledby":o.getItemLabelId(a),pt:t.pt,unstyled:t.unstyled,onItemClick:e[0]||(e[0]=function(d){return t.$emit("item-click",d)}),onItemMouseenter:e[1]||(e[1]=function(d){return t.$emit("item-mouseenter",d)}),onItemMousemove:e[2]||(e[2]=function(d){return t.$emit("item-mousemove",d)})},null,8,["id","menuId","style","focusedItemId","items","mobileActive","activeItemPath","templates","level","aria-labelledby","pt","unstyled"])):n.createCommentVNode("",!0)],16,xe)):n.createCommentVNode("",!0),o.isItemVisible(a)&&o.getItemProp(a,"separator")?(n.openBlock(),n.createElementBlock("li",n.mergeProps({key:1,id:o.getItemId(a),class:[t.cx("separator"),o.getItemProp(a,"class")],style:o.getItemProp(a,"style"),role:"separator"},{ref_for:!0},t.ptm("separator")),null,16,Le)):n.createCommentVNode("",!0)],64)}),128))],16)}T.render=Ce;var N={name:"Menubar",extends:ke,inheritAttrs:!1,emits:["focus","blur"],matchMediaListener:null,data:function(){return{mobileActive:!1,focused:!1,focusedItemInfo:{index:-1,level:0,parentKey:""},activeItemPath:[],dirty:!1,query:null,queryMatches:!1}},watch:{activeItemPath:function(e){l.s(e)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())}},outsideClickListener:null,container:null,menubar:null,mounted:function(){this.bindMatchMediaListener()},beforeUnmount:function(){this.mobileActive=!1,this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindMatchMediaListener(),this.container&&p.x.clear(this.container),this.container=null},methods:{getItemProp:function(e,i){return e?l.m(e[i]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemGroup:function(e){return l.s(this.getItemProp(e,"items"))},isItemSeparator:function(e){return this.getItemProp(e,"separator")},getProccessedItemLabel:function(e){return e?this.getItemLabel(e.item):void 0},isProccessedItemGroup:function(e){return e&&l.s(e.items)},toggle:function(e){var i=this;this.mobileActive?(this.mobileActive=!1,p.x.clear(this.menubar),this.hide()):(this.mobileActive=!0,p.x.set("menu",this.menubar,this.$primevue.config.zIndex.menu),setTimeout(function(){i.show()},1)),this.bindOutsideClickListener(),e.preventDefault()},show:function(){l.bt(this.menubar)},hide:function(e,i){var r=this;this.mobileActive&&(this.mobileActive=!1,setTimeout(function(){l.bt(r.$refs.menubutton)},0)),this.activeItemPath=[],this.focusedItemInfo={index:-1,level:0,parentKey:""},i&&l.bt(this.menubar),this.dirty=!1},onFocus:function(e){this.focused=!0,this.focusedItemInfo=this.focusedItemInfo.index!==-1?this.focusedItemInfo:{index:this.findFirstFocusedItemIndex(),level:0,parentKey:""},this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.focusedItemInfo={index:-1,level:0,parentKey:""},this.searchValue="",this.dirty=!1,this.$emit("blur",e)},onKeyDown:function(e){var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&l.J(e.key)&&this.searchItems(e,e.key);break}},onItemChange:function(e,i){var r=e.processedItem,s=e.isFocus;if(!l.l(r)){var o=r.index,c=r.key,b=r.level,a=r.parentKey,u=r.items,d=l.s(u),m=this.activeItemPath.filter(function(f){return f.parentKey!==a&&f.parentKey!==c});d&&m.push(r),this.focusedItemInfo={index:o,level:b,parentKey:a},d&&(this.dirty=!0),s&&l.bt(this.menubar),!(i==="hover"&&this.queryMatches)&&(this.activeItemPath=m)}},onItemClick:function(e){var i=e.originalEvent,r=e.processedItem,s=this.isProccessedItemGroup(r),o=l.l(r.parent),c=this.isSelected(r);if(c){var b=r.index,a=r.key,u=r.level,d=r.parentKey;this.activeItemPath=this.activeItemPath.filter(function(f){return a!==f.key&&a.startsWith(f.key)}),this.focusedItemInfo={index:b,level:u,parentKey:d},this.dirty=!o,l.bt(this.menubar)}else if(s)this.onItemChange(e);else{var m=o?r:this.activeItemPath.find(function(f){return f.parentKey===""});this.hide(i),this.changeFocusedItemIndex(i,m?m.index:-1),this.mobileActive=!1,l.bt(this.menubar)}},onItemMouseEnter:function(e){this.dirty&&this.onItemChange(e,"hover")},onItemMouseMove:function(e){this.focused&&this.changeFocusedItemIndex(e,e.processedItem.index)},menuButtonClick:function(e){this.toggle(e)},menuButtonKeydown:function(e){(e.code==="Enter"||e.code==="NumpadEnter"||e.code==="Space")&&this.menuButtonClick(e)},onArrowDownKey:function(e){var i=this.visibleItems[this.focusedItemInfo.index],r=i?l.l(i.parent):null;if(r){var s=this.isProccessedItemGroup(i);s&&(this.onItemChange({originalEvent:e,processedItem:i}),this.focusedItemInfo={index:-1,parentKey:i.key},this.onArrowRightKey(e))}else{var o=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o)}e.preventDefault()},onArrowUpKey:function(e){var i=this,r=this.visibleItems[this.focusedItemInfo.index],s=l.l(r.parent);if(s){var o=this.isProccessedItemGroup(r);if(o){this.onItemChange({originalEvent:e,processedItem:r}),this.focusedItemInfo={index:-1,parentKey:r.key};var c=this.findLastItemIndex();this.changeFocusedItemIndex(e,c)}}else{var b=this.activeItemPath.find(function(u){return u.key===r.parentKey});if(this.focusedItemInfo.index===0)this.focusedItemInfo={index:-1,parentKey:b?b.parentKey:""},this.searchValue="",this.onArrowLeftKey(e),this.activeItemPath=this.activeItemPath.filter(function(u){return u.parentKey!==i.focusedItemInfo.parentKey});else{var a=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,a)}}e.preventDefault()},onArrowLeftKey:function(e){var i=this,r=this.visibleItems[this.focusedItemInfo.index],s=r?this.activeItemPath.find(function(c){return c.key===r.parentKey}):null;if(s)this.onItemChange({originalEvent:e,processedItem:s}),this.activeItemPath=this.activeItemPath.filter(function(c){return c.parentKey!==i.focusedItemInfo.parentKey}),e.preventDefault();else{var o=this.focusedItemInfo.index!==-1?this.findPrevItemIndex(this.focusedItemInfo.index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onArrowRightKey:function(e){var i=this.visibleItems[this.focusedItemInfo.index],r=i?this.activeItemPath.find(function(c){return c.key===i.parentKey}):null;if(r){var s=this.isProccessedItemGroup(i);s&&(this.onItemChange({originalEvent:e,processedItem:i}),this.focusedItemInfo={index:-1,parentKey:i.key},this.onArrowDownKey(e))}else{var o=this.focusedItemInfo.index!==-1?this.findNextItemIndex(this.focusedItemInfo.index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,o),e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()},onEndKey:function(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()},onEnterKey:function(e){if(this.focusedItemInfo.index!==-1){var i=l.z(this.menubar,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=i&&l.z(i,'a[data-pc-section="itemlink"]');r?r.click():i&&i.click();var s=this.visibleItems[this.focusedItemInfo.index],o=this.isProccessedItemGroup(s);!o&&(this.focusedItemInfo.index=this.findFirstFocusedItemIndex())}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onEscapeKey:function(e){if(this.focusedItemInfo.level!==0){var i=this.focusedItemInfo;this.hide(e,!1),this.focusedItemInfo={index:Number(i.parentKey.split("_")[0]),level:0,parentKey:""}}e.preventDefault()},onTabKey:function(e){if(this.focusedItemInfo.index!==-1){var i=this.visibleItems[this.focusedItemInfo.index],r=this.isProccessedItemGroup(i);!r&&this.onItemChange({originalEvent:e,processedItem:i})}this.hide()},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(i){var r=e.container&&!e.container.contains(i.target),s=!(e.target&&(e.target===i.target||e.target.contains(i.target)));r&&s&&e.hide()},document.addEventListener("click",this.outsideClickListener,!0))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener,!0),this.outsideClickListener=null)},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(i){l.Yt()||e.hide(i,!0),e.mobileActive=!1},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindMatchMediaListener:function(){var e=this;if(!this.matchMediaListener){var i=matchMedia("(max-width: ".concat(this.breakpoint,")"));this.query=i,this.queryMatches=i.matches,this.matchMediaListener=function(){e.queryMatches=i.matches,e.mobileActive=!1},this.query.addEventListener("change",this.matchMediaListener)}},unbindMatchMediaListener:function(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)},isItemMatched:function(e){var i;return this.isValidItem(e)&&((i=this.getProccessedItemLabel(e))===null||i===void 0?void 0:i.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()))},isValidItem:function(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)},isValidSelectedItem:function(e){return this.isValidItem(e)&&this.isSelected(e)},isSelected:function(e){return this.activeItemPath.some(function(i){return i.key===e.key})},findFirstItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(i){return e.isValidItem(i)})},findLastItemIndex:function(){var e=this;return l.M(this.visibleItems,function(i){return e.isValidItem(i)})},findNextItemIndex:function(e){var i=this,r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(function(s){return i.isValidItem(s)}):-1;return r>-1?r+e+1:e},findPrevItemIndex:function(e){var i=this,r=e>0?l.M(this.visibleItems.slice(0,e),function(s){return i.isValidItem(s)}):-1;return r>-1?r:e},findSelectedItemIndex:function(){var e=this;return this.visibleItems.findIndex(function(i){return e.isValidSelectedItem(i)})},findFirstFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e},findLastFocusedItemIndex:function(){var e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e},searchItems:function(e,i){var r=this;this.searchValue=(this.searchValue||"")+i;var s=-1,o=!1;return this.focusedItemInfo.index!==-1?(s=this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function(c){return r.isItemMatched(c)}),s=s===-1?this.visibleItems.slice(0,this.focusedItemInfo.index).findIndex(function(c){return r.isItemMatched(c)}):s+this.focusedItemInfo.index):s=this.visibleItems.findIndex(function(c){return r.isItemMatched(c)}),s!==-1&&(o=!0),s===-1&&this.focusedItemInfo.index===-1&&(s=this.findFirstFocusedItemIndex()),s!==-1&&this.changeFocusedItemIndex(e,s),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),o},changeFocusedItemIndex:function(e,i){this.focusedItemInfo.index!==i&&(this.focusedItemInfo.index=i,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,i=e!==-1?"".concat(this.$id,"_").concat(e):this.focusedItemId,r=l.z(this.menubar,'li[id="'.concat(i,'"]'));r&&r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"})},createProcessedItems:function(e){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(b,a){var u=(o!==""?o+"_":"")+a,d={item:b,index:a,level:r,key:u,parent:s,parentKey:o};d.items=i.createProcessedItems(b.items,r+1,d,u),c.push(d)}),c},containerRef:function(e){this.container=e},menubarRef:function(e){this.menubar=e?e.$el:void 0}},computed:{processedItems:function(){return this.createProcessedItems(this.model||[])},visibleItems:function(){var e=this,i=this.activeItemPath.find(function(r){return r.key===e.focusedItemInfo.parentKey});return i?i.items:this.processedItems},focusedItemId:function(){return this.focusedItemInfo.index!==-1?"".concat(this.$id).concat(l.s(this.focusedItemInfo.parentKey)?"_"+this.focusedItemInfo.parentKey:"","_").concat(this.focusedItemInfo.index):null}},components:{MenubarSub:T,BarsIcon:p.script$6}};function g(t){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(t)}function E(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,r)}return i}function S(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?E(Object(i),!0).forEach(function(r){Ee(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):E(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function Ee(t,e,i){return(e=Se(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Se(t){var e=Ve(t,"string");return g(e)=="symbol"?e:e+""}function Ve(t,e){if(g(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var r=i.call(t,e);if(g(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Oe=["aria-haspopup","aria-expanded","aria-controls","aria-label"];function Ke(t,e,i,r,s,o){var c=n.resolveComponent("BarsIcon"),b=n.resolveComponent("MenubarSub");return n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:o.containerRef,class:t.cx("root")},t.ptmi("root")),[t.$slots.start?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:0,class:t.cx("start")},t.ptm("start")),[n.renderSlot(t.$slots,"start")],16)):n.createCommentVNode("",!0),n.renderSlot(t.$slots,t.$slots.button?"button":"menubutton",{id:t.$id,class:n.normalizeClass(t.cx("button")),toggleCallback:function(u){return o.menuButtonClick(u)}},function(){var a;return[t.model&&t.model.length>0?(n.openBlock(),n.createElementBlock("a",n.mergeProps({key:0,ref:"menubutton",role:"button",tabindex:"0",class:t.cx("button"),"aria-haspopup":!!(t.model.length&&t.model.length>0),"aria-expanded":s.mobileActive,"aria-controls":t.$id,"aria-label":(a=t.$primevue.config.locale.aria)===null||a===void 0?void 0:a.navigation,onClick:e[0]||(e[0]=function(u){return o.menuButtonClick(u)}),onKeydown:e[1]||(e[1]=function(u){return o.menuButtonKeydown(u)})},S(S({},t.buttonProps),t.ptm("button"))),[n.renderSlot(t.$slots,t.$slots.buttonicon?"buttonicon":"menubuttonicon",{},function(){return[n.createVNode(c,n.normalizeProps(n.guardReactiveProps(t.ptm("buttonicon"))),null,16)]})],16,Oe)):n.createCommentVNode("",!0)]}),n.createVNode(b,{ref:o.menubarRef,id:t.$id+"_list",role:"menubar",items:o.processedItems,templates:t.$slots,root:!0,mobileActive:s.mobileActive,tabindex:"0","aria-activedescendant":s.focused?o.focusedItemId:void 0,menuId:t.$id,focusedItemId:s.focused?o.focusedItemId:void 0,activeItemPath:s.activeItemPath,level:0,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,pt:t.pt,unstyled:t.unstyled,onFocus:o.onFocus,onBlur:o.onBlur,onKeydown:o.onKeyDown,onItemClick:o.onItemClick,onItemMouseenter:o.onItemMouseEnter,onItemMousemove:o.onItemMouseMove},null,8,["id","items","templates","mobileActive","aria-activedescendant","menuId","focusedItemId","activeItemPath","aria-labelledby","aria-label","pt","unstyled","onFocus","onBlur","onKeydown","onItemClick","onItemMouseenter","onItemMousemove"]),t.$slots.end?(n.openBlock(),n.createElementBlock("div",n.mergeProps({key:1,class:t.cx("end")},t.ptm("end")),[n.renderSlot(t.$slots,"end")],16)):n.createCommentVNode("",!0)],16)}N.render=Ke;const Te={class:"size-full flex flex-col gap-2"},Ne={class:"flex flex-row items-center"},Me=["src"],Ae={key:0,class:"ml-4"},ze=["href","onClick"],De={key:1,class:"spacer"},Fe={key:2},Re={key:1},$e=n.defineComponent({__name:"NavbarContainer",props:{depth:{default:1},start:{default:()=>({logo:void 0,appName:void 0})},end:{default:()=>({showUser:!1,showSettings:!1,showLogout:!1,settingsRoute:{path:"/settings"},logoutRoute:{path:V.libRouteRecords.logout.path}})}},setup(t){const e=I(),i=k.useRoute(),r=n.computed(()=>i.matched[e]),{t:s}=p.useI18nLib(),o=B(r,t.depth).concat(L(t.end));return(c,b)=>{const a=n.resolveComponent("router-link"),u=n.resolveComponent("RouterView");return n.openBlock(),n.createElementBlock("div",Te,[n.createVNode(n.unref(N),{model:n.unref(o),pt:{root:"w-full flex flex-row",rootList:"grow flex flex-row",item:"has-[.spacer]:grow has-[.divider]:hover:unset"}},n.createSlots({item:n.withCtx(({item:d,props:m,root:f,hasSubmenu:h})=>[d.to?(n.openBlock(),n.createBlock(a,{key:0,to:d.to},{default:n.withCtx(({href:x,navigate:v,isActive:y})=>[n.createElementVNode("a",n.mergeProps({href:x},m.action,{class:{"bg-(--p-highlight-background) text-(--p-highlight-color) rounded-(--p-navigation-item-border-radius)":y},onClick:n.withModifiers(()=>{h??v()},["prevent"])}),[d.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({[d.icon]:!0,"text-(--p-highlight-color)":y})},null,2)):n.createCommentVNode("",!0),d.iconOnly?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass({"text-(--p-highlight-color)":y})},n.toDisplayString(n.unref(s)(d.label)),3)),h?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["pi pi-angle-down ml-auto",{"pi-angle-down":f,"pi-angle-right":!f,"text-(--p-highlight-color)":y}])},null,2)):n.createCommentVNode("",!0)],16,ze)]),_:2},1032,["to"])):d.special==="spacer"?(n.openBlock(),n.createElementBlock("div",De)):(n.openBlock(),n.createElementBlock("div",Fe,[n.createElementVNode("a",n.normalizeProps(n.guardReactiveProps(m.action)),[d.icon?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass({[d.icon]:!0})},null,2)):n.createCommentVNode("",!0),!d.iconOnly&&d.label?(n.openBlock(),n.createElementBlock("span",Re,n.toDisplayString(n.unref(s)(d.label)),1)):n.createCommentVNode("",!0)],16)]))]),_:2},[t.start.logo||t.start.appName?{name:"start",fn:n.withCtx(()=>[n.createElementVNode("div",Ne,[n.createElementVNode("img",{src:t.start.logo,class:"h-8"},null,8,Me),t.start.appName?(n.openBlock(),n.createElementBlock("span",Ae,n.toDisplayString(n.unref(s)(t.start.appName)),1)):n.createCommentVNode("",!0),n.createVNode(n.unref(p.script$1),{layout:"vertical"})])]),key:"0"}:void 0]),1032,["model"]),n.createElementVNode("div",{class:n.normalizeClass(["overflow-auto",{"size-[calc(100%-4*var(--spacing))] m-2 mt-0":n.unref(e)===0,"size-full":n.unref(e)!==0}])},[n.createVNode(u)],2)])}}});var _e=`
|
|
355
355
|
.p-tabs {
|
|
356
356
|
display: flex;
|
|
357
357
|
flex-direction: column;
|
|
@@ -499,4 +499,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
499
499
|
background: dt('tabs.active.bar.background');
|
|
500
500
|
transition: 250ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
501
501
|
}
|
|
502
|
-
`,je={root:function(e){var i=e.props;return["p-tabs p-component",{"p-tabs-scrollable":i.scrollable}]}},He=l.BaseStyle.extend({name:"tabs",style:_e,classes:je}),Ue={name:"BaseTabs",extends:l.script,props:{value:{type:[String,Number],default:void 0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},showNavigators:{type:Boolean,default:!0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:He,provide:function(){return{$pcTabs:this,$parentInstance:this}}},M={name:"Tabs",extends:Ue,inheritAttrs:!1,emits:["update:value"],data:function(){return{d_value:this.value}},watch:{value:function(e){this.d_value=e}},methods:{updateValue:function(e){this.d_value!==e&&(this.d_value=e,this.$emit("update:value",e))},isVertical:function(){return this.orientation==="vertical"}}};function We(t,e,i,r,s,o){return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:t.cx("root")},t.ptmi("root")),[n.renderSlot(t.$slots,"default")],16)}M.render=We;var qe={root:"p-tablist",content:"p-tablist-content p-tablist-viewport",tabList:"p-tablist-tab-list",activeBar:"p-tablist-active-bar",prevButton:"p-tablist-prev-button p-tablist-nav-button",nextButton:"p-tablist-next-button p-tablist-nav-button"},Ge=l.BaseStyle.extend({name:"tablist",classes:qe}),Ye={name:"BaseTabList",extends:l.script,props:{},style:Ge,provide:function(){return{$pcTabList:this,$parentInstance:this}}},A={name:"TabList",extends:Ye,inheritAttrs:!1,inject:["$pcTabs"],data:function(){return{isPrevButtonEnabled:!1,isNextButtonEnabled:!0}},resizeObserver:void 0,watch:{showNavigators:function(e){e?this.bindResizeObserver():this.unbindResizeObserver()},activeValue:{flush:"post",handler:function(){this.updateInkBar()}}},mounted:function(){var e=this;setTimeout(function(){e.updateInkBar()},150),this.showNavigators&&(this.updateButtonState(),this.bindResizeObserver())},updated:function(){this.showNavigators&&this.updateButtonState()},beforeUnmount:function(){this.unbindResizeObserver()},methods:{onScroll:function(e){this.showNavigators&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,i=this.getVisibleButtonWidths(),r=l.Rt(e)-i,s=Math.abs(e.scrollLeft),o=r*.8,c=s-o,b=Math.max(c,0);e.scrollLeft=l.V(e)?-1*b:b},onNextButtonClick:function(){var e=this.$refs.content,i=this.getVisibleButtonWidths(),r=l.Rt(e)-i,s=Math.abs(e.scrollLeft),o=r*.8,c=s+o,b=e.scrollWidth-r,a=Math.min(c,b);e.scrollLeft=l.V(e)?-1*a:a},bindResizeObserver:function(){var e=this;this.resizeObserver=new ResizeObserver(function(){return e.updateButtonState()}),this.resizeObserver.observe(this.$refs.list)},unbindResizeObserver:function(){var e;(e=this.resizeObserver)===null||e===void 0||e.unobserve(this.$refs.list),this.resizeObserver=void 0},updateInkBar:function(){var e=this.$refs,i=e.content,r=e.inkbar,s=e.tabs;if(r){var o=l.z(i,'[data-pc-name="tab"][data-p-active="true"]');this.$pcTabs.isVertical()?(r.style.height=l.C(o)+"px",r.style.top=l.K(o).top-l.K(s).top+"px"):(r.style.width=l.v(o)+"px",r.style.left=l.K(o).left-l.K(s).left+"px")}},updateButtonState:function(){var e=this.$refs,i=e.list,r=e.content,s=r.scrollTop,o=r.scrollWidth,c=r.scrollHeight,b=r.offsetWidth,a=r.offsetHeight,u=Math.abs(r.scrollLeft),d=[l.Rt(r),l.Tt(r)],m=d[0],f=d[1];this.$pcTabs.isVertical()?(this.isPrevButtonEnabled=s!==0,this.isNextButtonEnabled=i.offsetHeight>=a&&parseInt(s)!==c-f):(this.isPrevButtonEnabled=u!==0,this.isNextButtonEnabled=i.offsetWidth>=b&&parseInt(u)!==o-m)},getVisibleButtonWidths:function(){var e=this.$refs,i=e.prevButton,r=e.nextButton,s=0;return this.showNavigators&&(s=(i?.offsetWidth||0)+(r?.offsetWidth||0)),s}},computed:{templates:function(){return this.$pcTabs.$slots},activeValue:function(){return this.$pcTabs.d_value},showNavigators:function(){return this.$pcTabs.showNavigators},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0},dataP:function(){return p.f({scrollable:this.$pcTabs.scrollable})}},components:{ChevronLeftIcon:F.script,ChevronRightIcon:p.script},directives:{ripple:p.Ripple}},Ze=["data-p"],Qe=["aria-label","tabindex"],Je=["data-p"],Xe=["aria-orientation"],et=["aria-label","tabindex"];function tt(t,e,i,r,s,o){var c=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"list",class:t.cx("root"),"data-p":o.dataP},t.ptmi("root")),[o.showNavigators&&s.isPrevButtonEnabled?n.withDirectives((n.openBlock(),n.createElementBlock("button",n.mergeProps({key:0,ref:"prevButton",type:"button",class:t.cx("prevButton"),"aria-label":o.prevButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:e[0]||(e[0]=function(){return o.onPrevButtonClick&&o.onPrevButtonClick.apply(o,arguments)})},t.ptm("prevButton"),{"data-pc-group-section":"navigator"}),[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.templates.previcon||"ChevronLeftIcon"),n.mergeProps({"aria-hidden":"true"},t.ptm("prevIcon")),null,16))],16,Qe)),[[c]]):n.createCommentVNode("",!0),n.createElementVNode("div",n.mergeProps({ref:"content",class:t.cx("content"),onScroll:e[1]||(e[1]=function(){return o.onScroll&&o.onScroll.apply(o,arguments)}),"data-p":o.dataP},t.ptm("content")),[n.createElementVNode("div",n.mergeProps({ref:"tabs",class:t.cx("tabList"),role:"tablist","aria-orientation":o.$pcTabs.orientation||"horizontal"},t.ptm("tabList")),[n.renderSlot(t.$slots,"default"),n.createElementVNode("span",n.mergeProps({ref:"inkbar",class:t.cx("activeBar"),role:"presentation","aria-hidden":"true"},t.ptm("activeBar")),null,16)],16,Xe)],16,Je),o.showNavigators&&s.isNextButtonEnabled?n.withDirectives((n.openBlock(),n.createElementBlock("button",n.mergeProps({key:1,ref:"nextButton",type:"button",class:t.cx("nextButton"),"aria-label":o.nextButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:e[2]||(e[2]=function(){return o.onNextButtonClick&&o.onNextButtonClick.apply(o,arguments)})},t.ptm("nextButton"),{"data-pc-group-section":"navigator"}),[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.templates.nexticon||"ChevronRightIcon"),n.mergeProps({"aria-hidden":"true"},t.ptm("nextIcon")),null,16))],16,et)),[[c]]):n.createCommentVNode("",!0)],16,Ze)}A.render=tt;var nt={root:function(e){var i=e.instance,r=e.props;return["p-tab",{"p-tab-active":i.active,"p-disabled":r.disabled}]}},it=l.BaseStyle.extend({name:"tab",classes:nt}),ot={name:"BaseTab",extends:l.script,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1}},style:it,provide:function(){return{$pcTab:this,$parentInstance:this}}},z={name:"Tab",extends:ot,inheritAttrs:!1,inject:["$pcTabs","$pcTabList"],methods:{onFocus:function(){this.$pcTabs.selectOnFocus&&this.changeActiveValue()},onClick:function(){this.changeActiveValue()},onKeydown:function(e){switch(e.code){case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e);break}},onArrowRightKey:function(e){var i=this.findNextTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onHomeKey(e),e.preventDefault()},onArrowLeftKey:function(e){var i=this.findPrevTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var i=this.findFirstTab();this.changeFocusedTab(e,i),e.preventDefault()},onEndKey:function(e){var i=this.findLastTab();this.changeFocusedTab(e,i),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.findLastTab()),e.preventDefault()},onPageUpKey:function(e){this.scrollInView(this.findFirstTab()),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue()},findNextTab:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=i?e:e.nextElementSibling;return r?l.Q$1(r,"data-p-disabled")||l.Q$1(r,"data-pc-section")==="activebar"?this.findNextTab(r):l.z(r,'[data-pc-name="tab"]'):null},findPrevTab:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=i?e:e.previousElementSibling;return r?l.Q$1(r,"data-p-disabled")||l.Q$1(r,"data-pc-section")==="activebar"?this.findPrevTab(r):l.z(r,'[data-pc-name="tab"]'):null},findFirstTab:function(){return this.findNextTab(this.$pcTabList.$refs.tabs.firstElementChild,!0)},findLastTab:function(){return this.findPrevTab(this.$pcTabList.$refs.tabs.lastElementChild,!0)},changeActiveValue:function(){this.$pcTabs.updateValue(this.value)},changeFocusedTab:function(e,i){l.bt(i),this.scrollInView(i)},scrollInView:function(e){var i;e==null||(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}},computed:{active:function(){var e;return l.k((e=this.$pcTabs)===null||e===void 0?void 0:e.d_value,this.value)},id:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.$id,"_tab_").concat(this.value)},ariaControls:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.$id,"_tabpanel_").concat(this.value)},attrs:function(){return n.mergeProps(this.asAttrs,this.a11yAttrs,this.ptmi("root",this.ptParams))},asAttrs:function(){return this.as==="BUTTON"?{type:"button",disabled:this.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.active?this.$pcTabs.tabindex:-1,role:"tab","aria-selected":this.active,"aria-controls":this.ariaControls,"data-pc-name":"tab","data-p-disabled":this.disabled,"data-p-active":this.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.active}}},dataP:function(){return p.f({active:this.active})}},directives:{ripple:p.Ripple}};function rt(t,e,i,r,s,o){var c=n.resolveDirective("ripple");return t.asChild?n.renderSlot(t.$slots,"default",{key:1,dataP:o.dataP,class:n.normalizeClass(t.cx("root")),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(t.as),n.mergeProps({key:0,class:t.cx("root"),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:n.withCtx(function(){return[n.renderSlot(t.$slots,"default")]}),_:3},16,["class","data-p","onClick"])),[[c]])}z.render=rt;var at={root:"p-tabpanels"},st=l.BaseStyle.extend({name:"tabpanels",classes:at}),lt={name:"BaseTabPanels",extends:l.script,props:{},style:st,provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},D={name:"TabPanels",extends:lt,inheritAttrs:!1};function ut(t,e,i,r,s,o){return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:t.cx("root"),role:"presentation"},t.ptmi("root")),[n.renderSlot(t.$slots,"default")],16)}D.render=ut;const ct={class:"routed-tabs-component"},dt=n.defineComponent({__name:"RoutedTabsComponent",props:{tabs:{}},setup(t,{expose:e}){I();const{t:i}=p.useI18nLib(),r=k.useRoute(),s=k.useRouter(),o=n.computed(()=>{const b=r.name,a=t.tabs.findIndex(u=>u===b);return a>=0?a:0}),c=b=>{const a=typeof b=="string"?parseInt(b,10):b;if(a<0||a>=t.tabs.length||isNaN(a))return;const u=t.tabs.at(a);if(u&&u!==r.name){if(!s.hasRoute(u)){s.push({name:"404"});return}const m={name:u,query:r.query,hash:r.hash};r.params&&Object.keys(r.params).length>0&&(m.params={...r.params}),s.push(m)}};return n.watch(()=>r.name,b=>{t.tabs.findIndex(u=>u===b)>=0||b!=="404"&&s.push({name:"404"})}),e({activeTabIndex:o,onTabChange:c}),(b,a)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("section",ct,[n.createVNode(n.unref(M),{value:o.value,"onUpdate:value":c},{default:n.withCtx(()=>[n.createVNode(n.unref(A),null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.tabs,(d,m)=>(n.openBlock(),n.createBlock(n.unref(z),{key:m,value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)(d)),1)]),_:2},1032,["value"]))),128))]),_:1}),n.createVNode(n.unref(D),null,{default:n.withCtx(()=>[n.createVNode(u)]),_:1})]),_:1},8,["value"])])}}});exports.BareContainer=R;exports.NavbarContainer=$e;exports.RoutedTabsComponent=dt;exports.SideMenuContainer=he;exports.itemizeRouteRecordRaw=P;exports.makeEndSectionMenuItems=L;exports.menuItemsFromRoute=B;exports.setupDepthTracker=I;
|
|
502
|
+
`,He={root:function(e){var i=e.props;return["p-tabs p-component",{"p-tabs-scrollable":i.scrollable}]}},je=l.BaseStyle.extend({name:"tabs",style:_e,classes:He}),Ue={name:"BaseTabs",extends:l.script,props:{value:{type:[String,Number],default:void 0},lazy:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},showNavigators:{type:Boolean,default:!0},tabindex:{type:Number,default:0},selectOnFocus:{type:Boolean,default:!1}},style:je,provide:function(){return{$pcTabs:this,$parentInstance:this}}},M={name:"Tabs",extends:Ue,inheritAttrs:!1,emits:["update:value"],data:function(){return{d_value:this.value}},watch:{value:function(e){this.d_value=e}},methods:{updateValue:function(e){this.d_value!==e&&(this.d_value=e,this.$emit("update:value",e))},isVertical:function(){return this.orientation==="vertical"}}};function We(t,e,i,r,s,o){return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:t.cx("root")},t.ptmi("root")),[n.renderSlot(t.$slots,"default")],16)}M.render=We;var qe={root:"p-tablist",content:"p-tablist-content p-tablist-viewport",tabList:"p-tablist-tab-list",activeBar:"p-tablist-active-bar",prevButton:"p-tablist-prev-button p-tablist-nav-button",nextButton:"p-tablist-next-button p-tablist-nav-button"},Ge=l.BaseStyle.extend({name:"tablist",classes:qe}),Ye={name:"BaseTabList",extends:l.script,props:{},style:Ge,provide:function(){return{$pcTabList:this,$parentInstance:this}}},A={name:"TabList",extends:Ye,inheritAttrs:!1,inject:["$pcTabs"],data:function(){return{isPrevButtonEnabled:!1,isNextButtonEnabled:!0}},resizeObserver:void 0,watch:{showNavigators:function(e){e?this.bindResizeObserver():this.unbindResizeObserver()},activeValue:{flush:"post",handler:function(){this.updateInkBar()}}},mounted:function(){var e=this;setTimeout(function(){e.updateInkBar()},150),this.showNavigators&&(this.updateButtonState(),this.bindResizeObserver())},updated:function(){this.showNavigators&&this.updateButtonState()},beforeUnmount:function(){this.unbindResizeObserver()},methods:{onScroll:function(e){this.showNavigators&&this.updateButtonState(),e.preventDefault()},onPrevButtonClick:function(){var e=this.$refs.content,i=this.getVisibleButtonWidths(),r=l.Rt(e)-i,s=Math.abs(e.scrollLeft),o=r*.8,c=s-o,b=Math.max(c,0);e.scrollLeft=l.V(e)?-1*b:b},onNextButtonClick:function(){var e=this.$refs.content,i=this.getVisibleButtonWidths(),r=l.Rt(e)-i,s=Math.abs(e.scrollLeft),o=r*.8,c=s+o,b=e.scrollWidth-r,a=Math.min(c,b);e.scrollLeft=l.V(e)?-1*a:a},bindResizeObserver:function(){var e=this;this.resizeObserver=new ResizeObserver(function(){return e.updateButtonState()}),this.resizeObserver.observe(this.$refs.list)},unbindResizeObserver:function(){var e;(e=this.resizeObserver)===null||e===void 0||e.unobserve(this.$refs.list),this.resizeObserver=void 0},updateInkBar:function(){var e=this.$refs,i=e.content,r=e.inkbar,s=e.tabs;if(r){var o=l.z(i,'[data-pc-name="tab"][data-p-active="true"]');this.$pcTabs.isVertical()?(r.style.height=l.C$1(o)+"px",r.style.top=l.K(o).top-l.K(s).top+"px"):(r.style.width=l.v(o)+"px",r.style.left=l.K(o).left-l.K(s).left+"px")}},updateButtonState:function(){var e=this.$refs,i=e.list,r=e.content,s=r.scrollTop,o=r.scrollWidth,c=r.scrollHeight,b=r.offsetWidth,a=r.offsetHeight,u=Math.abs(r.scrollLeft),d=[l.Rt(r),l.Tt(r)],m=d[0],f=d[1];this.$pcTabs.isVertical()?(this.isPrevButtonEnabled=s!==0,this.isNextButtonEnabled=i.offsetHeight>=a&&parseInt(s)!==c-f):(this.isPrevButtonEnabled=u!==0,this.isNextButtonEnabled=i.offsetWidth>=b&&parseInt(u)!==o-m)},getVisibleButtonWidths:function(){var e=this.$refs,i=e.prevButton,r=e.nextButton,s=0;return this.showNavigators&&(s=(i?.offsetWidth||0)+(r?.offsetWidth||0)),s}},computed:{templates:function(){return this.$pcTabs.$slots},activeValue:function(){return this.$pcTabs.d_value},showNavigators:function(){return this.$pcTabs.showNavigators},prevButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.previous:void 0},nextButtonAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.next:void 0},dataP:function(){return p.f({scrollable:this.$pcTabs.scrollable})}},components:{ChevronLeftIcon:F.script,ChevronRightIcon:p.script},directives:{ripple:p.Ripple}},Ze=["data-p"],Qe=["aria-label","tabindex"],Je=["data-p"],Xe=["aria-orientation"],et=["aria-label","tabindex"];function tt(t,e,i,r,s,o){var c=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",n.mergeProps({ref:"list",class:t.cx("root"),"data-p":o.dataP},t.ptmi("root")),[o.showNavigators&&s.isPrevButtonEnabled?n.withDirectives((n.openBlock(),n.createElementBlock("button",n.mergeProps({key:0,ref:"prevButton",type:"button",class:t.cx("prevButton"),"aria-label":o.prevButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:e[0]||(e[0]=function(){return o.onPrevButtonClick&&o.onPrevButtonClick.apply(o,arguments)})},t.ptm("prevButton"),{"data-pc-group-section":"navigator"}),[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.templates.previcon||"ChevronLeftIcon"),n.mergeProps({"aria-hidden":"true"},t.ptm("prevIcon")),null,16))],16,Qe)),[[c]]):n.createCommentVNode("",!0),n.createElementVNode("div",n.mergeProps({ref:"content",class:t.cx("content"),onScroll:e[1]||(e[1]=function(){return o.onScroll&&o.onScroll.apply(o,arguments)}),"data-p":o.dataP},t.ptm("content")),[n.createElementVNode("div",n.mergeProps({ref:"tabs",class:t.cx("tabList"),role:"tablist","aria-orientation":o.$pcTabs.orientation||"horizontal"},t.ptm("tabList")),[n.renderSlot(t.$slots,"default"),n.createElementVNode("span",n.mergeProps({ref:"inkbar",class:t.cx("activeBar"),role:"presentation","aria-hidden":"true"},t.ptm("activeBar")),null,16)],16,Xe)],16,Je),o.showNavigators&&s.isNextButtonEnabled?n.withDirectives((n.openBlock(),n.createElementBlock("button",n.mergeProps({key:1,ref:"nextButton",type:"button",class:t.cx("nextButton"),"aria-label":o.nextButtonAriaLabel,tabindex:o.$pcTabs.tabindex,onClick:e[2]||(e[2]=function(){return o.onNextButtonClick&&o.onNextButtonClick.apply(o,arguments)})},t.ptm("nextButton"),{"data-pc-group-section":"navigator"}),[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(o.templates.nexticon||"ChevronRightIcon"),n.mergeProps({"aria-hidden":"true"},t.ptm("nextIcon")),null,16))],16,et)),[[c]]):n.createCommentVNode("",!0)],16,Ze)}A.render=tt;var nt={root:function(e){var i=e.instance,r=e.props;return["p-tab",{"p-tab-active":i.active,"p-disabled":r.disabled}]}},it=l.BaseStyle.extend({name:"tab",classes:nt}),ot={name:"BaseTab",extends:l.script,props:{value:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:!1},as:{type:[String,Object],default:"BUTTON"},asChild:{type:Boolean,default:!1}},style:it,provide:function(){return{$pcTab:this,$parentInstance:this}}},z={name:"Tab",extends:ot,inheritAttrs:!1,inject:["$pcTabs","$pcTabList"],methods:{onFocus:function(){this.$pcTabs.selectOnFocus&&this.changeActiveValue()},onClick:function(){this.changeActiveValue()},onKeydown:function(e){switch(e.code){case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onEnterKey(e);break}},onArrowRightKey:function(e){var i=this.findNextTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onHomeKey(e),e.preventDefault()},onArrowLeftKey:function(e){var i=this.findPrevTab(e.currentTarget);i?this.changeFocusedTab(e,i):this.onEndKey(e),e.preventDefault()},onHomeKey:function(e){var i=this.findFirstTab();this.changeFocusedTab(e,i),e.preventDefault()},onEndKey:function(e){var i=this.findLastTab();this.changeFocusedTab(e,i),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.findLastTab()),e.preventDefault()},onPageUpKey:function(e){this.scrollInView(this.findFirstTab()),e.preventDefault()},onEnterKey:function(e){this.changeActiveValue()},findNextTab:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=i?e:e.nextElementSibling;return r?l.Q$1(r,"data-p-disabled")||l.Q$1(r,"data-pc-section")==="activebar"?this.findNextTab(r):l.z(r,'[data-pc-name="tab"]'):null},findPrevTab:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=i?e:e.previousElementSibling;return r?l.Q$1(r,"data-p-disabled")||l.Q$1(r,"data-pc-section")==="activebar"?this.findPrevTab(r):l.z(r,'[data-pc-name="tab"]'):null},findFirstTab:function(){return this.findNextTab(this.$pcTabList.$refs.tabs.firstElementChild,!0)},findLastTab:function(){return this.findPrevTab(this.$pcTabList.$refs.tabs.lastElementChild,!0)},changeActiveValue:function(){this.$pcTabs.updateValue(this.value)},changeFocusedTab:function(e,i){l.bt(i),this.scrollInView(i)},scrollInView:function(e){var i;e==null||(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}},computed:{active:function(){var e;return l.k((e=this.$pcTabs)===null||e===void 0?void 0:e.d_value,this.value)},id:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.$id,"_tab_").concat(this.value)},ariaControls:function(){var e;return"".concat((e=this.$pcTabs)===null||e===void 0?void 0:e.$id,"_tabpanel_").concat(this.value)},attrs:function(){return n.mergeProps(this.asAttrs,this.a11yAttrs,this.ptmi("root",this.ptParams))},asAttrs:function(){return this.as==="BUTTON"?{type:"button",disabled:this.disabled}:void 0},a11yAttrs:function(){return{id:this.id,tabindex:this.active?this.$pcTabs.tabindex:-1,role:"tab","aria-selected":this.active,"aria-controls":this.ariaControls,"data-pc-name":"tab","data-p-disabled":this.disabled,"data-p-active":this.active,onFocus:this.onFocus,onKeydown:this.onKeydown}},ptParams:function(){return{context:{active:this.active}}},dataP:function(){return p.f({active:this.active})}},directives:{ripple:p.Ripple}};function rt(t,e,i,r,s,o){var c=n.resolveDirective("ripple");return t.asChild?n.renderSlot(t.$slots,"default",{key:1,dataP:o.dataP,class:n.normalizeClass(t.cx("root")),active:o.active,a11yAttrs:o.a11yAttrs,onClick:o.onClick}):n.withDirectives((n.openBlock(),n.createBlock(n.resolveDynamicComponent(t.as),n.mergeProps({key:0,class:t.cx("root"),"data-p":o.dataP,onClick:o.onClick},o.attrs),{default:n.withCtx(function(){return[n.renderSlot(t.$slots,"default")]}),_:3},16,["class","data-p","onClick"])),[[c]])}z.render=rt;var at={root:"p-tabpanels"},st=l.BaseStyle.extend({name:"tabpanels",classes:at}),lt={name:"BaseTabPanels",extends:l.script,props:{},style:st,provide:function(){return{$pcTabPanels:this,$parentInstance:this}}},D={name:"TabPanels",extends:lt,inheritAttrs:!1};function ut(t,e,i,r,s,o){return n.openBlock(),n.createElementBlock("div",n.mergeProps({class:t.cx("root"),role:"presentation"},t.ptmi("root")),[n.renderSlot(t.$slots,"default")],16)}D.render=ut;const ct={class:"routed-tabs-component"},dt=n.defineComponent({__name:"RoutedTabsComponent",props:{tabs:{}},setup(t,{expose:e}){I();const{t:i}=p.useI18nLib(),r=k.useRoute(),s=k.useRouter(),o=n.computed(()=>{const b=r.name,a=t.tabs.findIndex(u=>u===b);return a>=0?a:0}),c=b=>{const a=typeof b=="string"?parseInt(b,10):b;if(a<0||a>=t.tabs.length||isNaN(a))return;const u=t.tabs.at(a);if(u&&u!==r.name){if(!s.hasRoute(u)){s.push({name:"404"});return}const m={name:u,query:r.query,hash:r.hash};r.params&&Object.keys(r.params).length>0&&(m.params={...r.params}),s.push(m)}};return n.watch(()=>r.name,b=>{t.tabs.findIndex(u=>u===b)>=0||b!=="404"&&s.push({name:"404"})}),e({activeTabIndex:o,onTabChange:c}),(b,a)=>{const u=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("section",ct,[n.createVNode(n.unref(M),{value:o.value,"onUpdate:value":c},{default:n.withCtx(()=>[n.createVNode(n.unref(A),null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.tabs,(d,m)=>(n.openBlock(),n.createBlock(n.unref(z),{key:m,value:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(n.unref(i)(d)),1)]),_:2},1032,["value"]))),128))]),_:1}),n.createVNode(n.unref(D),null,{default:n.withCtx(()=>[n.createVNode(u)]),_:1})]),_:1},8,["value"])])}}});exports.BareContainer=R;exports.NavbarContainer=$e;exports.RoutedTabsComponent=dt;exports.SideMenuContainer=he;exports.itemizeRouteRecordRaw=P;exports.makeEndSectionMenuItems=L;exports.menuItemsFromRoute=B;exports.setupDepthTracker=I;
|
package/dist/containers.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { inject as Oe, provide as Ke, defineComponent as W, resolveComponent as C, createElementBlock as l, openBlock as o, normalizeClass as I, createVNode as y, mergeProps as m, resolveDirective as G, createCommentVNode as h, createElementVNode as v, withDirectives as z, createBlock as k, resolveDynamicComponent as K, toDisplayString as P, withCtx as w, Transition as Te, renderSlot as x, Fragment as O, renderList as j, createTextVNode as ce, computed as U, unref as p, normalizeStyle as me, createSlots as be, normalizeProps as ne, guardReactiveProps as ie, withModifiers as Se, watch as Ae } from "vue";
|
|
2
2
|
import { useRoute as ae, useRouter as Me } from "vue-router";
|
|
3
|
-
import { c as q, d as Be, R as Z, f as Y, O as Ee, C as Ve, x as B, a as ee, h as ze, e as Fe, g as Re, s as De } from "./index-
|
|
4
|
-
import { B as E, s as S,
|
|
5
|
-
import { l as he } from "./libRoutes-
|
|
6
|
-
import { s as We } from "./index-
|
|
3
|
+
import { c as q, d as Be, R as Z, f as Y, O as Ee, C as Ve, x as B, a as ee, h as ze, e as Fe, g as Re, s as De } from "./index-Bc699sOR.js";
|
|
4
|
+
import { B as E, s as S, Y as fe, D as Ne, v as H, S as $e, c as L, j as D, z as T, m as re, a as M, M as se, l as N, J as _e, R as X, T as He, o as je, K as $, V as oe, k as Ue, r as _ } from "./index-Coos428-.js";
|
|
5
|
+
import { l as he } from "./libRoutes-BsneoQ4G.js";
|
|
6
|
+
import { s as We } from "./index-bRjoenrr.js";
|
|
7
7
|
function pe(t, e = 1) {
|
|
8
8
|
return t.value.children?.filter((n) => n.meta?.showInNavigation === void 0 || n.meta?.showInNavigation).map((n) => ve(n, t.value.path, e, 1));
|
|
9
9
|
}
|
|
@@ -582,7 +582,7 @@ function dt(t, e, n, a, s, i) {
|
|
|
582
582
|
}, {
|
|
583
583
|
default: w(function() {
|
|
584
584
|
return [y(Te, m({
|
|
585
|
-
name: "p-
|
|
585
|
+
name: "p-anchored-overlay",
|
|
586
586
|
onEnter: i.onEnter,
|
|
587
587
|
onLeave: i.onLeave,
|
|
588
588
|
onAfterLeave: i.onAfterLeave
|