@prefabs.tech/vue3-layout 0.25.0 → 0.27.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/NavMenuItem-D1g_0h3M.js +4 -0
- package/dist/PrefabsTechVue3Layout.es.js +1 -1
- package/dist/PrefabsTechVue3Layout.umd.js +1 -1
- package/dist/{index-B9UIlN4I.js → index-BHKaumJA.js} +213 -200
- package/dist/src/layouts/BasicLayout.vue.d.ts +3 -0
- package/dist/src/layouts/BasicLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts +3 -0
- package/dist/src/layouts/SidebarHeaderLayout.vue.d.ts.map +1 -1
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts +3 -0
- package/dist/src/layouts/SidebarOnlyLayout.vue.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/NavMenuItem-BrK5aBfX.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as t, b as r, c as i, d as p, e as u, f as l, g as y, N as d, h as L, i as b, j as n, k as S, p as c, u as f } from "./index-
|
|
1
|
+
import { a as t, b as r, c as i, d as p, e as u, f as l, g as y, N as d, h as L, i as b, j as n, k as S, p as c, u as f } from "./index-BHKaumJA.js";
|
|
2
2
|
import "@prefabs.tech/vue3-i18n";
|
|
3
3
|
import "vue";
|
|
4
4
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(g,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("@prefabs.tech/vue3-i18n"),require("vue"),require("@prefabs.tech/vue3-config"),require("@vueuse/core"),require("@prefabs.tech/vue3-ui"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","@prefabs.tech/vue3-i18n","vue","@prefabs.tech/vue3-config","@vueuse/core","@prefabs.tech/vue3-ui","vue-router"],B):(g=typeof globalThis<"u"?globalThis:g||self,B((g["@prefabs"]=g["@prefabs"]||{},g["@prefabs"]["tech/vue3-layout"]={}),g.PrefabsTechVue3I18n,g.Vue,g.PrefabsTechVue3Config,g.VueuseCore,g.PrefabsTechVue3UI,g.VueRouter))})(this,function(g,B,t,E,ne,Te,I){"use strict";const Pe={class:"copyright"},je=["href"],Fe={name:"Copyright"},oe=t.defineComponent({...Fe,props:{holder:{required:!0,type:String},showDisclaimer:Boolean,url:{required:!0,type:String}},setup(e){const o=e,n=Ae(),{t:s}=B.useI18n({messages:n}),r=t.computed(()=>o.showDisclaimer?s("copyright.disclaimer"):null),i=new Date().getFullYear();return(l,c)=>(t.openBlock(),t.createElementBlock("div",Pe,[t.createTextVNode(" © "+t.toDisplayString(t.unref(i))+" ",1),t.createElementVNode("a",{href:e.url,target:"_blank"},t.toDisplayString(e.holder),9,je),t.createTextVNode(" "+t.toDisplayString(r.value),1)]))}}),Oe={class:"version"},Re={name:"AppFooter"},T=t.defineComponent({...Re,setup(e){const o=E.useConfig();return(n,s)=>(t.openBlock(),t.createElementBlock("footer",null,[t.renderSlot(n.$slots,"copyright",{},()=>[t.unref(o)?.copyright?(t.openBlock(),t.createBlock(oe,{key:0,holder:t.unref(o).copyright.holder,url:t.unref(o).copyright.url},null,8,["holder","url"])):t.createCommentVNode("",!0)]),t.renderSlot(n.$slots,"social"),t.renderSlot(n.$slots,"version",{},()=>[t.createElementVNode("div",Oe,t.toDisplayString(t.unref(o).appVersion),1)])]))}}),re=/^[a-z0-9]+(-[a-z0-9]+)*$/,P=(e,o,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),a=r.pop(),d={provider:r.length>0?r[0]:s,prefix:a,name:c};return o&&!j(d)?null:d}const i=r[0],l=i.split("-");if(l.length>1){const c={provider:s,prefix:l.shift(),name:l.join("-")};return o&&!j(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:i};return o&&!j(c,n)?null:c}return null},j=(e,o)=>e?!!((o&&e.prefix===""||e.prefix)&&e.name):!1,se=Object.freeze({left:0,top:0,width:16,height:16}),F=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...se,...F}),H=Object.freeze({...O,body:"",hidden:!1});function ze(e,o){const n={};!e.hFlip!=!o.hFlip&&(n.hFlip=!0),!e.vFlip!=!o.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(o.rotate||0))%4;return s&&(n.rotate=s),n}function ie(e,o){const n=ze(e,o);for(const s in H)s in F?s in e&&!(s in n)&&(n[s]=F[s]):s in o?n[s]=o[s]:s in e&&(n[s]=e[s]);return n}function De(e,o){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const c=s[l]&&s[l].parent,a=c&&i(c);a&&(r[l]=[c].concat(a))}return r[l]}return Object.keys(n).concat(Object.keys(s)).forEach(i),r}function He(e,o,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function l(c){i=ie(s[c]||r[c],i)}return l(o),n.forEach(l),ie(e,i)}function le(e,o){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{o(r,null),n.push(r)});const s=De(e);for(const r in s){const i=s[r];i&&(o(r,He(e,r,i)),n.push(r))}return n}const qe={provider:"",aliases:{},not_found:{},...se};function q(e,o){for(const n in o)if(n in e&&typeof e[n]!=typeof o[n])return!1;return!0}function ce(e){if(typeof e!="object"||e===null)return null;const o=e;if(typeof o.prefix!="string"||!e.icons||typeof e.icons!="object"||!q(e,qe))return null;const n=o.icons;for(const r in n){const i=n[r];if(!r||typeof i.body!="string"||!q(i,H))return null}const s=o.aliases||Object.create(null);for(const r in s){const i=s[r],l=i.parent;if(!r||typeof l!="string"||!n[l]&&!s[l]||!q(i,H))return null}return o}const ae=Object.create(null);function Ue(e,o){return{provider:e,prefix:o,icons:Object.create(null),missing:new Set}}function x(e,o){const n=ae[e]||(ae[e]=Object.create(null));return n[o]||(n[o]=Ue(e,o))}function de(e,o){return ce(o)?le(o,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Qe(e,o,n){try{if(typeof n.body=="string")return e.icons[o]={...n},!0}catch{}return!1}let _=!1;function ue(e){return typeof e=="boolean"&&(_=e),_}function We(e){const o=typeof e=="string"?P(e,!0,_):e;if(o){const n=x(o.provider,o.prefix),s=o.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Ge(e,o){const n=P(e,!0,_);if(!n)return!1;const s=x(n.provider,n.prefix);return o?Qe(s,n.name,o):(s.missing.add(n.name),!0)}function Ze(e,o){if(typeof e!="object")return!1;if(typeof o!="string"&&(o=e.provider||""),_&&!o&&!e.prefix){let r=!1;return ce(e)&&(e.prefix="",le(e,(i,l)=>{Ge(i,l)&&(r=!0)})),r}const n=e.prefix;if(!j({prefix:n,name:"a"}))return!1;const s=x(o,n);return!!de(s,e)}const fe=Object.freeze({width:null,height:null}),he=Object.freeze({...fe,...F}),Ke=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function pe(e,o,n){if(o===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*o*n)/n;if(typeof e!="string")return e;const s=e.split(Ke);if(s===null||!s.length)return e;const r=[];let i=s.shift(),l=Ye.test(i);for(;;){if(l){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*o*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");l=!l}}function Je(e,o="defs"){let n="";const s=e.indexOf("<"+o);for(;s>=0;){const r=e.indexOf(">",s),i=e.indexOf("</"+o);if(r===-1||i===-1)break;const l=e.indexOf(">",i);if(l===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,s).trim()+e.slice(l+1)}return{defs:n,content:e}}function Xe(e,o){return e?"<defs>"+e+"</defs>"+o:o}function ve(e,o,n){const s=Je(e);return Xe(s.defs,o+s.content+n)}const et=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,o){const n={...O,...e},s={...he,...o},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(w=>{const h=[],$=w.hFlip,L=w.vFlip;let C=w.rotate;$?L?C+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):L&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let b;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:b=r.height/2+r.top,h.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:b=r.width/2+r.left,h.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}C%2===1&&(r.left!==r.top&&(b=r.left,r.left=r.top,r.top=b),r.width!==r.height&&(b=r.width,r.width=r.height,r.height=b)),h.length&&(i=ve(i,'<g transform="'+h.join(" ")+'">',"</g>"))});const l=s.width,c=s.height,a=r.width,d=r.height;let f,m;l===null?(m=c===null?"1em":c==="auto"?d:c,f=pe(m,a/d)):(f=l==="auto"?a:l,m=c===null?pe(f,d/a):c==="auto"?d:c);const u={},p=(w,h)=>{et(h)||(u[w]=h.toString())};p("width",f),p("height",m);const k=[r.left,r.top,a,d];return u.viewBox=k.join(" "),{attributes:u,viewBox:k,body:i}}const nt=/\sid="(\S+)"/g,ot="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rt=0;function st(e,o=ot){const n=[];let s;for(;s=nt.exec(e);)n.push(s[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const l=typeof o=="function"?o(i):o+(rt++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const U=Object.create(null);function it(e,o){U[e]=o}function Q(e){return U[e]||U[""]}function W(e){let o;if(typeof e.resources=="string")o=[e.resources];else if(o=e.resources,!(o instanceof Array)||!o.length)return null;return{resources:o,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const G=Object.create(null),M=["https://api.simplesvg.com","https://api.unisvg.com"],R=[];for(;M.length>0;)M.length===1||Math.random()>.5?R.push(M.shift()):R.push(M.pop());G[""]=W({resources:["https://api.iconify.design"].concat(R)});function lt(e,o){const n=W(o);return n===null?!1:(G[e]=n,!0)}function Z(e){return G[e]}let me=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function ct(e,o){const n=Z(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const i=o+".json?icons=";s=n.maxURL-r-n.path.length-i.length}return s}function at(e){return e===404}const dt=(e,o,n)=>{const s=[],r=ct(e,o),i="icons";let l={type:i,provider:e,prefix:o,icons:[]},c=0;return n.forEach((a,d)=>{c+=a.length+1,c>=r&&d>0&&(s.push(l),l={type:i,provider:e,prefix:o,icons:[]},c=a.length),l.icons.push(a)}),s.push(l),s};function ut(e){if(typeof e=="string"){const o=Z(e);if(o)return o.path}return"/"}const ft={prepare:dt,send:(e,o,n)=>{if(!me){n("abort",424);return}let s=ut(o.provider);switch(o.type){case"icons":{const i=o.prefix,c=o.icons.join(","),a=new URLSearchParams({icons:c});s+=i+".json?"+a.toString();break}case"custom":{const i=o.uri;s+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;me(e+s).then(i=>{const l=i.status;if(l!==200){setTimeout(()=>{n(at(l)?"abort":"next",l)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})}};function ht(e){const o={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const i=r.provider,l=r.prefix,c=r.name,a=n[i]||(n[i]=Object.create(null)),d=a[l]||(a[l]=x(i,l));let f;c in d.icons?f=o.loaded:l===""||d.missing.has(c)?f=o.missing:f=o.pending;const m={provider:i,prefix:l,name:c};f.push(m)}),o}function ge(e,o){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==o))})}function pt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const o=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!o.length)return;let n=!1;const s=e.provider,r=e.prefix;o.forEach(i=>{const l=i.icons,c=l.pending.length;l.pending=l.pending.filter(a=>{if(a.prefix!==r)return!0;const d=a.name;if(e.icons[d])l.loaded.push({provider:s,prefix:r,name:d});else if(e.missing.has(d))l.missing.push({provider:s,prefix:r,name:d});else return n=!0,!0;return!1}),l.pending.length!==c&&(n||ge([e],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}let mt=0;function gt(e,o,n){const s=mt++,r=ge.bind(null,n,s);if(!o.pending.length)return r;const i={id:s,icons:o,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),r}function yt(e,o=!0,n=!1){const s=[];return e.forEach(r=>{const i=typeof r=="string"?P(r,o,n):r;i&&s.push(i)}),s}var wt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function kt(e,o,n,s){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let y=e.resources.slice(0);for(l=[];y.length>1;){const S=Math.floor(Math.random()*y.length);l.push(y[S]),y=y.slice(0,S).concat(y.slice(S+1))}l=l.concat(y)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a="pending",d=0,f,m=null,u=[],p=[];typeof s=="function"&&p.push(s);function k(){m&&(clearTimeout(m),m=null)}function w(){a==="pending"&&(a="aborted"),k(),u.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),u=[]}function h(y,S){S&&(p=[]),typeof y=="function"&&p.push(y)}function $(){return{startTime:c,payload:o,status:a,queriesSent:d,queriesPending:u.length,subscribe:h,abort:w}}function L(){a="failed",p.forEach(y=>{y(void 0,f)})}function C(){u.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),u=[]}function b(y,S,A){const D=S!=="success";switch(u=u.filter(N=>N!==y),a){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){f=A,L();return}if(D){f=A,u.length||(l.length?te():L());return}if(k(),C(),!e.random){const N=e.resources.indexOf(y.resource);N!==-1&&N!==e.index&&(e.index=N)}a="completed",p.forEach(N=>{N(A)})}function te(){if(a!=="pending")return;k();const y=l.shift();if(y===void 0){if(u.length){m=setTimeout(()=>{k(),a==="pending"&&(C(),L())},e.timeout);return}L();return}const S={status:"pending",resource:y,callback:(A,D)=>{b(S,A,D)}};u.push(S),d++,m=setTimeout(te,e.rotate),n(y,o,S.callback)}return setTimeout(te),$}function ye(e){const o={...wt,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,a,d){const f=kt(o,c,a,(m,u)=>{s(),d&&d(m,u)});return n.push(f),f}function i(c){return n.find(a=>c(a))||null}return{query:r,find:i,setIndex:c=>{o.index=c},getIndex:()=>o.index,cleanup:s}}function we(){}const K=Object.create(null);function bt(e){if(!K[e]){const o=Z(e);if(!o)return;const n=ye(o),s={config:o,redundancy:n};K[e]=s}return K[e]}function St(e,o,n){let s,r;if(typeof e=="string"){const i=Q(e);if(!i)return n(void 0,424),we;r=i.send;const l=bt(e);l&&(s=l.redundancy)}else{const i=W(e);if(i){s=ye(i);const l=e.resources?e.resources[0]:"",c=Q(l);c&&(r=c.send)}}return!s||!r?(n(void 0,424),we):s.query(o,r,n)().abort}function ke(){}function Ct(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,pt(e)}))}function Bt(e){const o=[],n=[];return e.forEach(s=>{(s.match(re)?o:n).push(s)}),{valid:o,invalid:n}}function V(e,o,n){function s(){const r=e.pendingIcons;o.forEach(i=>{r&&r.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!de(e,n).length){s();return}}catch(r){console.error(r)}s(),Ct(e)}function be(e,o){e instanceof Promise?e.then(n=>{o(n)}).catch(()=>{o(null)}):o(e)}function $t(e,o){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(o).sort():e.iconsToLoad=o,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){be(e.loadIcons(r,s,n),f=>{V(e,r,f)});return}if(i){r.forEach(f=>{const m=i(f,s,n);be(m,u=>{const p=u?{prefix:s,icons:{[f]:u}}:null;V(e,[f],p)})});return}const{valid:l,invalid:c}=Bt(r);if(c.length&&V(e,c,null),!l.length)return;const a=s.match(re)?Q(n):null;if(!a){V(e,l,null);return}a.prepare(n,s,l).forEach(f=>{St(n,f,m=>{V(e,f.icons,m)})})}))}const Lt=(e,o)=>{const n=yt(e,!0,ue()),s=ht(n);if(!s.pending.length){let a=!0;return o&&setTimeout(()=>{a&&o(s.loaded,s.missing,s.pending,ke)}),()=>{a=!1}}const r=Object.create(null),i=[];let l,c;return s.pending.forEach(a=>{const{provider:d,prefix:f}=a;if(f===c&&d===l)return;l=d,c=f,i.push(x(d,f));const m=r[d]||(r[d]=Object.create(null));m[f]||(m[f]=[])}),s.pending.forEach(a=>{const{provider:d,prefix:f,name:m}=a,u=x(d,f),p=u.pendingIcons||(u.pendingIcons=new Set);p.has(m)||(p.add(m),r[d][f].push(m))}),i.forEach(a=>{const d=r[a.provider][a.prefix];d.length&&$t(a,d)}),o?gt(o,s,i):ke};function Nt(e,o){const n={...e};for(const s in o){const r=o[s],i=typeof r;s in fe?(r===null||r&&(i==="string"||i==="number"))&&(n[s]=r):i===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const xt=/[\s,]+/;function Et(e,o){o.split(xt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function It(e,o=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?s(i):0)}}return o}function _t(e,o){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in o)n+=" "+s+'="'+o[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Mt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Vt(e){return"data:image/svg+xml,"+Mt(e)}function At(e){return'url("'+Vt(e)+'")'}const Se={...he,inline:!1},Tt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pt={display:"inline-block"},Y={backgroundColor:"currentColor"},Ce={backgroundColor:"transparent"},Be={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$e={webkitMask:Y,mask:Y,background:Ce};for(const e in $e){const o=$e[e];for(const n in Be)o[e+n]=Be[n]}const z={};["horizontal","vertical"].forEach(e=>{const o=e.slice(0,1)+"Flip";z[e+"-flip"]=o,z[e.slice(0,1)+"-flip"]=o,z[e+"Flip"]=o});function Le(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ne=(e,o)=>{const n=Nt(Se,o),s={...Tt},r=o.mode||"svg",i={},l=o.style,c=typeof l=="object"&&!(l instanceof Array)?l:{};for(let w in o){const h=o[w];if(h!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[w]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Et(n,h);break;case"color":i.color=h;break;case"rotate":typeof h=="string"?n[w]=It(h):typeof h=="number"&&(n[w]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete s["aria-hidden"];break;default:{const $=z[w];$?(h===!0||h==="true"||h===1)&&(n[$]=!0):Se[w]===void 0&&(s[w]=h)}}}const a=tt(e,n),d=a.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){s.style={...i,...c},Object.assign(s,d);let w=0,h=o.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),s.innerHTML=st(a.body,h?()=>h+"ID"+w++:"iconifyVue"),t.h("svg",s)}const{body:f,width:m,height:u}=e,p=r==="mask"||(r==="bg"?!1:f.indexOf("currentColor")!==-1),k=_t(f,{...d,width:m+"",height:u+""});return s.style={...i,"--svg":At(k),width:Le(d.width),height:Le(d.height),...Pt,...p?Y:Ce,...c},t.h("span",s)};if(ue(!0),it("",ft),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const o=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof o=="object"&&o!==null&&(o instanceof Array?o:[o]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Ze(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const o=e.IconifyProviders;if(typeof o=="object"&&o!==null)for(let n in o){const s="IconifyProviders["+n+"] is invalid.";try{const r=o[n];if(typeof r!="object"||!r||r.resources===void 0)continue;lt(n,r)||console.error(s)}catch{console.error(s)}}}}const jt={...O,body:""},xe=t.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,o,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let s;if(typeof e!="string"||(s=P(e,!1,!0))===null)return this.abortLoading(),null;let r=We(s);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Lt([s],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,o&&o(e)),n){r=Object.assign({},r);const l=n(r.body,s.name,s.prefix,s.provider);typeof l=="string"&&(r.body=l)}const i=["iconify"];return s.prefix!==""&&i.push("iconify--"+s.prefix),s.provider!==""&&i.push("iconify--"+s.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,o=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!o)return Ne(jt,e);let n=e;return o.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+o.classes.join(" ")}),Ne({...O,...o.data},n)}}),Ft={class:"logo"},Ot=["alt","src"],Rt={key:1,class:"logo-default"},zt={name:"Logo"},J=t.defineComponent({...zt,props:{alt:{default:void 0,type:String},route:{default:void 0,type:String},src:{default:void 0,type:String}},setup(e){const o=e,{appName:n,appTitle:s,layout:r}=E.useConfig(),i=t.computed(()=>{if(n)return n.replace("@","").replace("/"," ")}),l=o.alt||r?.logoAlt||i.value||s||"My App",c=o.src||r?.logo,a=o.route||r?.logoRoute||"home";return(d,f)=>{const m=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",Ft,[t.renderSlot(d.$slots,"default",{},()=>[t.createVNode(m,{to:{name:t.unref(a)}},{default:t.withCtx(()=>[t.unref(c)?(t.openBlock(),t.createElementBlock("img",{key:0,alt:t.unref(l),src:t.unref(c)},null,8,Ot)):(t.openBlock(),t.createElementBlock("span",Rt,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l)[0]),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(l)),1)]))]),_:1},8,["to"])])])}}}),Dt={name:"MainMenu"},Ee=t.defineComponent({...Dt,props:{routes:{required:!0,type:Array}},emits:["close"],setup(e){const o=e,n=I.useRoute(),s=I.useRouter(),r=t.computed(()=>{let c=o.routes?.find(a=>a.route===n?.name)?.route;return c||(c=i.value),c}),i=t.computed(()=>{const c=n?.matched;if(c?.length>1){const a=c[c.length-2];return l(a?.path)}return""}),l=c=>{const a=s.getRoutes().find(d=>d.path===c);return String(a?.name)};return(c,a)=>(t.openBlock(),t.createBlock(t.unref(Te.ResponsiveMenu),{ref:"mainMenu","active-route":r.value??"home",routes:e.routes,onChangeRoute:a[0]||(a[0]=d=>c.$emit("close"))},null,8,["active-route","routes"]))}}),Ht=["data-expanded"],qt={name:"AppHeader"},X=t.defineComponent({...qt,props:{noLocaleSwitcher:Boolean,noLogo:Boolean,noMainMenu:Boolean,noToggle:Boolean},setup(e,{expose:o}){const{layout:n}=E.useConfig(),{width:s}=ne.useWindowSize(),r=t.ref(null),i=t.ref(!0),l=n&&n?.homeRoute?n.homeRoute:void 0,c=n?.localeSwitcher?.showBadges,a=t.computed(()=>s.value>576),d=()=>{i.value=!1},f=()=>{const u=document.querySelector(".layout > header"),p=document.querySelector(".layout > header > nav");if(window.innerWidth>=576)i.value=!0;else{if(!u||!p||a.value)return;const k=u?.offsetHeight,w=window.innerHeight;i.value=!1,p.style.height=`${w-k}px`}},m=()=>{i.value=!i.value};return t.onMounted(()=>{window.addEventListener("resize",f),window.addEventListener("load",f),f()}),t.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("load",f)}),o({expanded:i}),(u,p)=>(t.openBlock(),t.createElementBlock("header",{ref_key:"dzangolabVueAppHeader",ref:r},[!e.noToggle||!a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"toggle",onClick:m},[t.renderSlot(u.$slots,"toggle",{},()=>[i.value&&!a.value?(t.openBlock(),t.createBlock(t.unref(xe),{key:0,icon:"prime:times",height:"2rem"})):(t.openBlock(),t.createBlock(t.unref(xe),{key:1,icon:"prime:bars",height:"2rem"}))])])):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"logo",{class:"logo"},()=>[e.noLogo?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(J,{key:0,route:t.unref(l)},null,8,["route"]))]),t.createElementVNode("nav",{"data-expanded":i.value},[t.renderSlot(u.$slots,"menu",{},()=>[t.unref(n)?.mainMenu&&!e.noMainMenu?(t.openBlock(),t.createBlock(Ee,{key:0,class:"main-menu",routes:t.unref(n)?.mainMenu,onClose:d},null,8,["routes"])):t.createCommentVNode("",!0)]),t.renderSlot(u.$slots,"userMenu"),t.renderSlot(u.$slots,"addon"),t.renderSlot(u.$slots,"locales",{},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(c),class:"locales"},null,8,["show-badges"]))])],8,Ht)],512))}}),Ut="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.29289%204.29289C8.68342%203.90237%209.31658%203.90237%209.70711%204.29289L16.7071%2011.2929C17.0976%2011.6834%2017.0976%2012.3166%2016.7071%2012.7071L9.70711%2019.7071C9.31658%2020.0976%208.68342%2020.0976%208.29289%2019.7071C7.90237%2019.3166%207.90237%2018.6834%208.29289%2018.2929L14.5858%2012L8.29289%205.70711C7.90237%205.31658%207.90237%204.68342%208.29289%204.29289Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Qt={class:"nav-menu-item"},Wt={key:1,class:"item-name"},Gt={key:2,class:"item-name"},Zt={key:3,class:"toggle-menu"},Kt={key:0,class:"sub-menu-item"},Yt={name:"NavMenuItem",components:{NavMenuItem:()=>Promise.resolve().then(()=>Jt)}},Ie=t.defineComponent({...Yt,props:{item:{required:!0,type:Object},sidebarActive:{default:!0,required:!0,type:Boolean}},emits:["select:menu"],setup(e,{emit:o}){const n=e,s=o,r=I.useRoute(),i=I.useRouter(),l=t.ref(!1),c=t.computed(()=>{const u=r?.matched;if(u?.length>1){const p=u[u.length-2];return f(p?.path)}return""}),a=t.computed(()=>{let u=r.name===n.item?.routeName;return u||(n.item?.routeName?u=!!c.value&&c.value===n.item?.routeName:!n.item?.routeName&&!n.item?.children?.length&&r.name===c.value&&(u=!0)),u}),d=t.computed(()=>!n.sidebarActive&&n.item.shortName),f=u=>{const p=i.getRoutes().find(k=>k.path===u);return String(p?.name)},m=()=>{n.item.routeName?(i.hasRoute(n.item.routeName)&&i.push({name:n.item.routeName}),s("select:menu")):!n.item.routeName&&!n.item.children?.length?(i.hasRoute(c.value)&&i.push({name:c.value}),s("select:menu")):l.value=!l.value};return n.item.children?.length&&(l.value=!!n.item.children.find(u=>r.name===u?.routeName)),(u,p)=>{const k=t.resolveComponent("NavMenuItem",!0);return t.openBlock(),t.createElementBlock("div",Qt,[t.createElementVNode("a",{class:t.normalizeClass([{active:a.value},"link"]),"aria-label":"open menu",onClick:m},[e.item.icon?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon",e.item.icon,{"icon-only":!d.value&&!e.sidebarActive}])},null,2)):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("span",Wt,t.toDisplayString(e.item.shortName),1)):t.createCommentVNode("",!0),e.sidebarActive?(t.openBlock(),t.createElementBlock("span",Gt,t.toDisplayString(e.item.name),1)):t.createCommentVNode("",!0),e.item.children&&e.item.children.length?(t.openBlock(),t.createElementBlock("span",Zt,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass({"up-chevron":l.value}),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p[1]||(p[1]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.29289 8.29289C4.68342 7.90237 5.31658 7.90237 5.70711 8.29289L12 14.5858L18.2929 8.29289C18.6834 7.90237 19.3166 7.90237 19.7071 8.29289C20.0976 8.68342 20.0976 9.31658 19.7071 9.70711L12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L4.29289 9.70711C3.90237 9.31658 3.90237 8.68342 4.29289 8.29289Z",fill:"currentColor"},null,-1)]),2))])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[e.item.children&&e.item.children.length&&l.value?(t.openBlock(),t.createElementBlock("div",Kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(w,h)=>(t.openBlock(),t.createBlock(k,{key:w.name+"-"+h,item:w,"sidebar-active":e.sidebarActive,"onSelect:menu":p[0]||(p[0]=$=>u.$emit("select:menu"))},null,8,["item","sidebar-active"]))),128))])):t.createCommentVNode("",!0)]),_:1})])}}}),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"})),Xt={class:"nav-menu"},vt={key:0,class:"menu"},en={name:"NavMenu"},tn=t.defineComponent({...en,props:{menu:{required:!0,type:Array},sidebarActive:{default:!0,required:!0,type:Boolean}},emits:["select:menu"],setup(e){const o=e,n=t.computed(()=>o.menu?.map(s=>{if(s.hide)return null;const r=s.children?.filter(i=>!i.hide)||[];return s.children?.length&&!r.length?null:{...s,children:r.length?r:void 0}}).filter(Boolean));return(s,r)=>(t.openBlock(),t.createElementBlock("nav",Xt,[n.value?.length>0?(t.openBlock(),t.createElementBlock("div",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(i,l)=>(t.openBlock(),t.createBlock(Ie,{key:i.name+"-"+l,item:i,"sidebar-active":e.sidebarActive,"onSelect:menu":r[0]||(r[0]=c=>s.$emit("select:menu"))},null,8,["item","sidebar-active"]))),128))])):t.createCommentVNode("",!0)]))}}),nn={key:0,class:"header"},on={class:"title"},rn={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},sn={key:1,class:"extend",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ln={class:"sidebar-menu-wrapper"},cn={class:"nav"},an={key:1,class:"footer"},dn={key:0,alt:"show sidebar",src:Ut},un={name:"Sidebar"},v=t.defineComponent({...un,props:{collapsible:{default:!0,type:Boolean},menu:{required:!0,type:Array},noHeader:{default:!1,type:Boolean}},emits:["select:menu"],setup(e,{expose:o}){const n=e,s=t.computed(()=>!i.value&&n.collapsible?!n.menu?.filter(l=>!!l.shortName)?.length:!1),r=t.useSlots(),i=t.ref(!0);return o({sidebarActive:i}),(l,c)=>s.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"no-sidebar",onClick:c[2]||(c[2]=a=>i.value=!0)},[i.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",dn))])):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["sidebar",{collapsible:e.collapsible}])},[e.noHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nn,[t.createVNode(J),t.createElementVNode("div",on,[t.renderSlot(l.$slots,"title")]),t.renderSlot(l.$slots,"toggleIcons",{},()=>[t.createElementVNode("div",{class:"toggle",onClick:c[0]||(c[0]=a=>i.value=!i.value)},[i.value?(t.openBlock(),t.createElementBlock("svg",rn,c[3]||(c[3]=[t.createElementVNode("path",{d:"m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z",fill:"currentColor"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",sn,c[4]||(c[4]=[t.createElementVNode("path",{d:"M19 12.75H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0-4.5H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0 9H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5",fill:"currentColor"},null,-1)])))])])])),t.createElementVNode("div",ln,[t.renderSlot(l.$slots,"default"),t.createElementVNode("ul",cn,[t.renderSlot(l.$slots,"links",{},()=>[t.createVNode(tn,{menu:e.menu,"sidebar-active":i.value,"onSelect:menu":c[1]||(c[1]=a=>l.$emit("select:menu"))},null,8,["menu","sidebar-active"])]),t.renderSlot(l.$slots,"afterNavLinks")]),t.renderSlot(l.$slots,"afterSidebarMenu")]),t.unref(r).footer?(t.openBlock(),t.createElementBlock("div",an,[t.renderSlot(l.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),fn={class:"content"},hn={name:"StickyCollapsibleFooter"},pn=t.defineComponent({...hn,props:{fixed:{default:!0,type:Boolean}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("footer",{class:t.normalizeClass(`sticky-collapsible ${e.fixed?"fixed":""}`)},[t.createElementVNode("div",fn,[t.renderSlot(o.$slots,"default")])],2))}}),mn=t.defineAsyncComponent({loader:()=>Promise.resolve().then(()=>Bn),timeout:3e3}),gn={name:"Layout"},_e=t.defineComponent({...gn,props:{defaultLayout:{default:mn,type:Object}},setup(e){const o=e,n=I.useRoute(),s=t.useSlots(),r=Object.keys(s);let i=t.shallowRef(o.defaultLayout);const l=t.computed(()=>t.markRaw(i.value));return t.watch(()=>n.meta,async c=>{if(c?.layout)try{i.value=c.layout}catch{i.value=o.defaultLayout}else i.value=o.defaultLayout}),(c,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),null,t.createSlots({default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:2},[t.renderList(t.unref(r),d=>({name:d,fn:t.withCtx(()=>[t.renderSlot(c.$slots,d)])}))]),1024))}}),yn=["aria-expanded"],wn={name:"BasicLayout"},kn=t.defineComponent({...wn,props:{noLocaleSwitcher:Boolean},setup(e){const o=t.ref();return(n,s)=>(t.openBlock(),t.createElementBlock("div",{"aria-expanded":o.value?.expanded,class:"layout basic"},[t.renderSlot(n.$slots,"header",{},()=>[t.createVNode(X,{ref_key:"appHeader",ref:o,"no-locale-switcher":e.noLocaleSwitcher,"no-toggle":""},{logo:t.withCtx(()=>[t.renderSlot(n.$slots,"logo")]),addon:t.withCtx(()=>[t.renderSlot(n.$slots,"addon")]),menu:t.withCtx(()=>[t.renderSlot(n.$slots,"menu")]),userMenu:t.withCtx(()=>[t.renderSlot(n.$slots,"userMenu")]),locales:t.withCtx(()=>[t.renderSlot(n.$slots,"locales")]),_:3},8,["no-locale-switcher"])]),t.createElementVNode("main",null,[t.renderSlot(n.$slots,"default")]),t.renderSlot(n.$slots,"footer",{},()=>[t.createVNode(T,null,{copyright:t.withCtx(()=>[t.renderSlot(n.$slots,"copyright")]),social:t.withCtx(()=>[t.renderSlot(n.$slots,"social")]),version:t.withCtx(()=>[t.renderSlot(n.$slots,"version")]),_:3})])],8,yn))}}),bn={name:"NullLayout"},Sn=(e,o)=>{const n=e.__vccOpts||e;for(const[s,r]of o)n[s]=r;return n};function Cn(e,o,n,s,r,i){return t.renderSlot(e.$slots,"default")}const Me=Sn(bn,[["render",Cn]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:Me},Symbol.toStringTag,{value:"Module"})),$n=["aria-expanded"],Ln=t.defineComponent({__name:"SidebarHeaderLayout",props:{collapsible:{default:!0,type:Boolean},menu:{required:!0,type:Array},noLocaleSwitcher:Boolean,noSidebar:{default:!1,type:Boolean},userMenuLocation:{default:"sidebar",type:String,validator:e=>["header","sidebar"].includes(e)}},setup(e,{expose:o}){const{layout:n}=E.useConfig(),s=n?.localeSwitcher?.showBadges,{width:r}=ne.useWindowSize(),i=t.ref(),l=t.ref(),c=t.ref(!1),a=e,d=t.computed(()=>r.value>576),f=t.computed(()=>(a.userMenuLocation==="sidebar"||!d.value)&&!a.noSidebar),m=()=>{window.innerWidth>=576?(c.value=!1,l.value&&(l.value.sidebarActive=!0)):(c.value=!0,l.value&&(l.value.sidebarActive=!1))},u=()=>{d.value||(l.value.sidebarActive=!1)};return t.onMounted(()=>{window.innerWidth<576&&l.value&&(l.value.sidebarActive=!1)}),t.onUnmounted(()=>{window.removeEventListener("resize",m)}),window.addEventListener("resize",m),m(),o({onSelectMenu:u}),(p,k)=>(t.openBlock(),t.createElementBlock("div",{"aria-expanded":d.value?i.value?.expanded:l.value?.sidebarActive,class:t.normalizeClass(["layout sidebar-header-layout",{collapsible:e.collapsible}])},[t.renderSlot(p.$slots,"header",{},()=>[t.withDirectives(t.createVNode(X,{ref_key:"appHeader",ref:i,class:t.normalizeClass({"no-locale-switcher-header":e.noLocaleSwitcher}),"no-locale-switcher":e.noLocaleSwitcher,"no-toggle":!e.collapsible||e.noSidebar,"no-main-menu":""},t.createSlots({locales:t.withCtx(()=>[t.renderSlot(p.$slots,"locales")]),_:2},[e.userMenuLocation==="header"&&d.value?{name:"userMenu",fn:t.withCtx(()=>[t.renderSlot(p.$slots,"userMenu")]),key:"0"}:void 0]),1032,["class","no-locale-switcher","no-toggle"]),[[t.vShow,d.value]])]),!e.noSidebar||!d.value?(t.openBlock(),t.createBlock(v,{key:0,ref_key:"sidebar",ref:l,collapsible:e.collapsible&&d.value,menu:e.menu,"no-header":d.value,class:"layout-sidebar","onSelect:menu":u},{afterNavLinks:t.withCtx(()=>[t.renderSlot(p.$slots,"afterNavLinks")]),afterSidebarMenu:t.withCtx(()=>[t.renderSlot(p.$slots,"afterSidebarMenu"),f.value?t.renderSlot(p.$slots,"userMenu",{key:0}):t.createCommentVNode("",!0),c.value?t.renderSlot(p.$slots,"locales",{key:1},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(s),class:"locales"},null,8,["show-badges"]))]):t.createCommentVNode("",!0)]),footer:t.withCtx(()=>[t.renderSlot(p.$slots,"footer",{},()=>[t.createVNode(T)])]),_:3},8,["collapsible","menu","no-header"])):t.createCommentVNode("",!0),t.createElementVNode("main",null,[t.renderSlot(p.$slots,"default")])],10,$n))}}),Nn="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207C12.2652%207%2012.5196%207.10536%2012.7071%207.29289L19.7071%2014.2929C20.0976%2014.6834%2020.0976%2015.3166%2019.7071%2015.7071C19.3166%2016.0976%2018.6834%2016.0976%2018.2929%2015.7071L12%209.41421L5.70711%2015.7071C5.31658%2016.0976%204.68342%2016.0976%204.29289%2015.7071C3.90237%2015.3166%203.90237%2014.6834%204.29289%2014.2929L11.2929%207.29289C11.4804%207.10536%2011.7348%207%2012%207Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",xn={class:"layout sidebar-only"},En=t.defineComponent({__name:"SidebarOnlyLayout",props:{menu:{required:!0,type:Array},noLocaleSwitcher:Boolean,noHeader:{default:!1,type:Boolean}},setup(e){const{layout:o}=E.useConfig(),n=o?.localeSwitcher?.showBadges;return(s,r)=>(t.openBlock(),t.createElementBlock("div",xn,[t.createVNode(v,{menu:e.menu,"no-header":e.noHeader,class:"layout-sidebar"},{afterNavLinks:t.withCtx(()=>[t.renderSlot(s.$slots,"afterNavLinks")]),afterSidebarMenu:t.withCtx(()=>[t.renderSlot(s.$slots,"afterSidebarMenu"),t.renderSlot(s.$slots,"userMenu"),t.renderSlot(s.$slots,"locales",{},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(n),class:"locales"},{icon:t.withCtx(()=>r[0]||(r[0]=[t.createElementVNode("img",{src:Nn,alt:"toggle icon"},null,-1)])),_:1},8,["show-badges"]))])]),footer:t.withCtx(()=>[t.createVNode(T)]),_:3},8,["menu","no-header"]),t.createElementVNode("main",null,[t.renderSlot(s.$slots,"default")])]))}}),ee={en:{copyright:{disclaimer:"All rights reserved."}},fr:{copyright:{disclaimer:"Tous droits réservés."}}},Ve=Symbol.for("dzangolab.vue-layout.translations"),Ae=()=>t.inject(Ve,ee),In={install:(e,o)=>{e.component("Layout",_e);const n=o?.translations?B.prependMessages(ee,o.translations):ee;e.provide(Ve,n)}};g.AppFooter=T,g.AppHeader=X,g.BasicLayout=kn,g.Copyright=oe,g.Layout=_e,g.Logo=J,g.MainMenu=Ee,g.NullLayout=Me,g.Sidebar=v,g.SidebarHeaderLayout=Ln,g.SidebarOnlyLayout=En,g.StickyCollapsibleFooter=pn,g.default=In,g.useTranslations=Ae,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(g,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("@prefabs.tech/vue3-i18n"),require("vue"),require("@prefabs.tech/vue3-config"),require("@vueuse/core"),require("@prefabs.tech/vue3-ui"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","@prefabs.tech/vue3-i18n","vue","@prefabs.tech/vue3-config","@vueuse/core","@prefabs.tech/vue3-ui","vue-router"],B):(g=typeof globalThis<"u"?globalThis:g||self,B((g["@prefabs"]=g["@prefabs"]||{},g["@prefabs"]["tech/vue3-layout"]={}),g.PrefabsTechVue3I18n,g.Vue,g.PrefabsTechVue3Config,g.VueuseCore,g.PrefabsTechVue3UI,g.VueRouter))})(this,function(g,B,t,E,ne,Te,I){"use strict";const Pe={class:"copyright"},je=["href"],Fe={name:"Copyright"},oe=t.defineComponent({...Fe,props:{holder:{required:!0,type:String},showDisclaimer:Boolean,url:{required:!0,type:String}},setup(e){const o=e,n=Ae(),{t:s}=B.useI18n({messages:n}),r=t.computed(()=>o.showDisclaimer?s("copyright.disclaimer"):null),i=new Date().getFullYear();return(l,c)=>(t.openBlock(),t.createElementBlock("div",Pe,[t.createTextVNode(" © "+t.toDisplayString(t.unref(i))+" ",1),t.createElementVNode("a",{href:e.url,target:"_blank"},t.toDisplayString(e.holder),9,je),t.createTextVNode(" "+t.toDisplayString(r.value),1)]))}}),Oe={class:"version"},Re={name:"AppFooter"},T=t.defineComponent({...Re,setup(e){const o=E.useConfig();return(n,s)=>(t.openBlock(),t.createElementBlock("footer",null,[t.renderSlot(n.$slots,"copyright",{},()=>[t.unref(o)?.copyright?(t.openBlock(),t.createBlock(oe,{key:0,holder:t.unref(o).copyright.holder,url:t.unref(o).copyright.url},null,8,["holder","url"])):t.createCommentVNode("",!0)]),t.renderSlot(n.$slots,"social"),t.renderSlot(n.$slots,"version",{},()=>[t.createElementVNode("div",Oe,t.toDisplayString(t.unref(o).appVersion),1)])]))}}),re=/^[a-z0-9]+(-[a-z0-9]+)*$/,P=(e,o,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),a=r.pop(),d={provider:r.length>0?r[0]:s,prefix:a,name:c};return o&&!j(d)?null:d}const i=r[0],l=i.split("-");if(l.length>1){const c={provider:s,prefix:l.shift(),name:l.join("-")};return o&&!j(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:i};return o&&!j(c,n)?null:c}return null},j=(e,o)=>e?!!((o&&e.prefix===""||e.prefix)&&e.name):!1,se=Object.freeze({left:0,top:0,width:16,height:16}),F=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),O=Object.freeze({...se,...F}),H=Object.freeze({...O,body:"",hidden:!1});function ze(e,o){const n={};!e.hFlip!=!o.hFlip&&(n.hFlip=!0),!e.vFlip!=!o.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(o.rotate||0))%4;return s&&(n.rotate=s),n}function ie(e,o){const n=ze(e,o);for(const s in H)s in F?s in e&&!(s in n)&&(n[s]=F[s]):s in o?n[s]=o[s]:s in e&&(n[s]=e[s]);return n}function De(e,o){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function i(l){if(n[l])return r[l]=[];if(!(l in r)){r[l]=null;const c=s[l]&&s[l].parent,a=c&&i(c);a&&(r[l]=[c].concat(a))}return r[l]}return Object.keys(n).concat(Object.keys(s)).forEach(i),r}function He(e,o,n){const s=e.icons,r=e.aliases||Object.create(null);let i={};function l(c){i=ie(s[c]||r[c],i)}return l(o),n.forEach(l),ie(e,i)}function le(e,o){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{o(r,null),n.push(r)});const s=De(e);for(const r in s){const i=s[r];i&&(o(r,He(e,r,i)),n.push(r))}return n}const qe={provider:"",aliases:{},not_found:{},...se};function q(e,o){for(const n in o)if(n in e&&typeof e[n]!=typeof o[n])return!1;return!0}function ce(e){if(typeof e!="object"||e===null)return null;const o=e;if(typeof o.prefix!="string"||!e.icons||typeof e.icons!="object"||!q(e,qe))return null;const n=o.icons;for(const r in n){const i=n[r];if(!r||typeof i.body!="string"||!q(i,H))return null}const s=o.aliases||Object.create(null);for(const r in s){const i=s[r],l=i.parent;if(!r||typeof l!="string"||!n[l]&&!s[l]||!q(i,H))return null}return o}const ae=Object.create(null);function Ue(e,o){return{provider:e,prefix:o,icons:Object.create(null),missing:new Set}}function x(e,o){const n=ae[e]||(ae[e]=Object.create(null));return n[o]||(n[o]=Ue(e,o))}function de(e,o){return ce(o)?le(o,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Qe(e,o,n){try{if(typeof n.body=="string")return e.icons[o]={...n},!0}catch{}return!1}let M=!1;function ue(e){return typeof e=="boolean"&&(M=e),M}function We(e){const o=typeof e=="string"?P(e,!0,M):e;if(o){const n=x(o.provider,o.prefix),s=o.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function Ge(e,o){const n=P(e,!0,M);if(!n)return!1;const s=x(n.provider,n.prefix);return o?Qe(s,n.name,o):(s.missing.add(n.name),!0)}function Ze(e,o){if(typeof e!="object")return!1;if(typeof o!="string"&&(o=e.provider||""),M&&!o&&!e.prefix){let r=!1;return ce(e)&&(e.prefix="",le(e,(i,l)=>{Ge(i,l)&&(r=!0)})),r}const n=e.prefix;if(!j({prefix:n,name:"a"}))return!1;const s=x(o,n);return!!de(s,e)}const fe=Object.freeze({width:null,height:null}),he=Object.freeze({...fe,...F}),Ke=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Ye=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function me(e,o,n){if(o===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*o*n)/n;if(typeof e!="string")return e;const s=e.split(Ke);if(s===null||!s.length)return e;const r=[];let i=s.shift(),l=Ye.test(i);for(;;){if(l){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*o*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");l=!l}}function Je(e,o="defs"){let n="";const s=e.indexOf("<"+o);for(;s>=0;){const r=e.indexOf(">",s),i=e.indexOf("</"+o);if(r===-1||i===-1)break;const l=e.indexOf(">",i);if(l===-1)break;n+=e.slice(r+1,i).trim(),e=e.slice(0,s).trim()+e.slice(l+1)}return{defs:n,content:e}}function Xe(e,o){return e?"<defs>"+e+"</defs>"+o:o}function ve(e,o,n){const s=Je(e);return Xe(s.defs,o+s.content+n)}const et=e=>e==="unset"||e==="undefined"||e==="none";function tt(e,o){const n={...O,...e},s={...he,...o},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(w=>{const h=[],$=w.hFlip,L=w.vFlip;let C=w.rotate;$?L?C+=2:(h.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),h.push("scale(-1 1)"),r.top=r.left=0):L&&(h.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),h.push("scale(1 -1)"),r.top=r.left=0);let b;switch(C<0&&(C-=Math.floor(C/4)*4),C=C%4,C){case 1:b=r.height/2+r.top,h.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:h.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:b=r.width/2+r.left,h.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}C%2===1&&(r.left!==r.top&&(b=r.left,r.left=r.top,r.top=b),r.width!==r.height&&(b=r.width,r.width=r.height,r.height=b)),h.length&&(i=ve(i,'<g transform="'+h.join(" ")+'">',"</g>"))});const l=s.width,c=s.height,a=r.width,d=r.height;let f,p;l===null?(p=c===null?"1em":c==="auto"?d:c,f=me(p,a/d)):(f=l==="auto"?a:l,p=c===null?me(f,d/a):c==="auto"?d:c);const u={},m=(w,h)=>{et(h)||(u[w]=h.toString())};m("width",f),m("height",p);const k=[r.left,r.top,a,d];return u.viewBox=k.join(" "),{attributes:u,viewBox:k,body:i}}const nt=/\sid="(\S+)"/g,ot="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let rt=0;function st(e,o=ot){const n=[];let s;for(;s=nt.exec(e);)n.push(s[1]);if(!n.length)return e;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const l=typeof o=="function"?o(i):o+(rt++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}const U=Object.create(null);function it(e,o){U[e]=o}function Q(e){return U[e]||U[""]}function W(e){let o;if(typeof e.resources=="string")o=[e.resources];else if(o=e.resources,!(o instanceof Array)||!o.length)return null;return{resources:o,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const G=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],R=[];for(;_.length>0;)_.length===1||Math.random()>.5?R.push(_.shift()):R.push(_.pop());G[""]=W({resources:["https://api.iconify.design"].concat(R)});function lt(e,o){const n=W(o);return n===null?!1:(G[e]=n,!0)}function Z(e){return G[e]}let pe=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function ct(e,o){const n=Z(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(l=>{r=Math.max(r,l.length)});const i=o+".json?icons=";s=n.maxURL-r-n.path.length-i.length}return s}function at(e){return e===404}const dt=(e,o,n)=>{const s=[],r=ct(e,o),i="icons";let l={type:i,provider:e,prefix:o,icons:[]},c=0;return n.forEach((a,d)=>{c+=a.length+1,c>=r&&d>0&&(s.push(l),l={type:i,provider:e,prefix:o,icons:[]},c=a.length),l.icons.push(a)}),s.push(l),s};function ut(e){if(typeof e=="string"){const o=Z(e);if(o)return o.path}return"/"}const ft={prepare:dt,send:(e,o,n)=>{if(!pe){n("abort",424);return}let s=ut(o.provider);switch(o.type){case"icons":{const i=o.prefix,c=o.icons.join(","),a=new URLSearchParams({icons:c});s+=i+".json?"+a.toString();break}case"custom":{const i=o.uri;s+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let r=503;pe(e+s).then(i=>{const l=i.status;if(l!==200){setTimeout(()=>{n(at(l)?"abort":"next",l)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",r)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",r)})}};function ht(e){const o={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const i=r.provider,l=r.prefix,c=r.name,a=n[i]||(n[i]=Object.create(null)),d=a[l]||(a[l]=x(i,l));let f;c in d.icons?f=o.loaded:l===""||d.missing.has(c)?f=o.missing:f=o.pending;const p={provider:i,prefix:l,name:c};f.push(p)}),o}function ge(e,o){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==o))})}function mt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const o=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!o.length)return;let n=!1;const s=e.provider,r=e.prefix;o.forEach(i=>{const l=i.icons,c=l.pending.length;l.pending=l.pending.filter(a=>{if(a.prefix!==r)return!0;const d=a.name;if(e.icons[d])l.loaded.push({provider:s,prefix:r,name:d});else if(e.missing.has(d))l.missing.push({provider:s,prefix:r,name:d});else return n=!0,!0;return!1}),l.pending.length!==c&&(n||ge([e],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}let pt=0;function gt(e,o,n){const s=pt++,r=ge.bind(null,n,s);if(!o.pending.length)return r;const i={id:s,icons:o,callback:e,abort:r};return n.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),r}function yt(e,o=!0,n=!1){const s=[];return e.forEach(r=>{const i=typeof r=="string"?P(r,o,n):r;i&&s.push(i)}),s}var wt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function kt(e,o,n,s){const r=e.resources.length,i=e.random?Math.floor(Math.random()*r):e.index;let l;if(e.random){let y=e.resources.slice(0);for(l=[];y.length>1;){const S=Math.floor(Math.random()*y.length);l.push(y[S]),y=y.slice(0,S).concat(y.slice(S+1))}l=l.concat(y)}else l=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let a="pending",d=0,f,p=null,u=[],m=[];typeof s=="function"&&m.push(s);function k(){p&&(clearTimeout(p),p=null)}function w(){a==="pending"&&(a="aborted"),k(),u.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),u=[]}function h(y,S){S&&(m=[]),typeof y=="function"&&m.push(y)}function $(){return{startTime:c,payload:o,status:a,queriesSent:d,queriesPending:u.length,subscribe:h,abort:w}}function L(){a="failed",m.forEach(y=>{y(void 0,f)})}function C(){u.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),u=[]}function b(y,S,A){const D=S!=="success";switch(u=u.filter(N=>N!==y),a){case"pending":break;case"failed":if(D||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){f=A,L();return}if(D){f=A,u.length||(l.length?te():L());return}if(k(),C(),!e.random){const N=e.resources.indexOf(y.resource);N!==-1&&N!==e.index&&(e.index=N)}a="completed",m.forEach(N=>{N(A)})}function te(){if(a!=="pending")return;k();const y=l.shift();if(y===void 0){if(u.length){p=setTimeout(()=>{k(),a==="pending"&&(C(),L())},e.timeout);return}L();return}const S={status:"pending",resource:y,callback:(A,D)=>{b(S,A,D)}};u.push(S),d++,p=setTimeout(te,e.rotate),n(y,o,S.callback)}return setTimeout(te),$}function ye(e){const o={...wt,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,a,d){const f=kt(o,c,a,(p,u)=>{s(),d&&d(p,u)});return n.push(f),f}function i(c){return n.find(a=>c(a))||null}return{query:r,find:i,setIndex:c=>{o.index=c},getIndex:()=>o.index,cleanup:s}}function we(){}const K=Object.create(null);function bt(e){if(!K[e]){const o=Z(e);if(!o)return;const n=ye(o),s={config:o,redundancy:n};K[e]=s}return K[e]}function St(e,o,n){let s,r;if(typeof e=="string"){const i=Q(e);if(!i)return n(void 0,424),we;r=i.send;const l=bt(e);l&&(s=l.redundancy)}else{const i=W(e);if(i){s=ye(i);const l=e.resources?e.resources[0]:"",c=Q(l);c&&(r=c.send)}}return!s||!r?(n(void 0,424),we):s.query(o,r,n)().abort}function ke(){}function Ct(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,mt(e)}))}function Bt(e){const o=[],n=[];return e.forEach(s=>{(s.match(re)?o:n).push(s)}),{valid:o,invalid:n}}function V(e,o,n){function s(){const r=e.pendingIcons;o.forEach(i=>{r&&r.delete(i),e.icons[i]||e.missing.add(i)})}if(n&&typeof n=="object")try{if(!de(e,n).length){s();return}}catch(r){console.error(r)}s(),Ct(e)}function be(e,o){e instanceof Promise?e.then(n=>{o(n)}).catch(()=>{o(null)}):o(e)}function $t(e,o){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(o).sort():e.iconsToLoad=o,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;const i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){be(e.loadIcons(r,s,n),f=>{V(e,r,f)});return}if(i){r.forEach(f=>{const p=i(f,s,n);be(p,u=>{const m=u?{prefix:s,icons:{[f]:u}}:null;V(e,[f],m)})});return}const{valid:l,invalid:c}=Bt(r);if(c.length&&V(e,c,null),!l.length)return;const a=s.match(re)?Q(n):null;if(!a){V(e,l,null);return}a.prepare(n,s,l).forEach(f=>{St(n,f,p=>{V(e,f.icons,p)})})}))}const Lt=(e,o)=>{const n=yt(e,!0,ue()),s=ht(n);if(!s.pending.length){let a=!0;return o&&setTimeout(()=>{a&&o(s.loaded,s.missing,s.pending,ke)}),()=>{a=!1}}const r=Object.create(null),i=[];let l,c;return s.pending.forEach(a=>{const{provider:d,prefix:f}=a;if(f===c&&d===l)return;l=d,c=f,i.push(x(d,f));const p=r[d]||(r[d]=Object.create(null));p[f]||(p[f]=[])}),s.pending.forEach(a=>{const{provider:d,prefix:f,name:p}=a,u=x(d,f),m=u.pendingIcons||(u.pendingIcons=new Set);m.has(p)||(m.add(p),r[d][f].push(p))}),i.forEach(a=>{const d=r[a.provider][a.prefix];d.length&&$t(a,d)}),o?gt(o,s,i):ke};function Nt(e,o){const n={...e};for(const s in o){const r=o[s],i=typeof r;s in fe?(r===null||r&&(i==="string"||i==="number"))&&(n[s]=r):i===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const xt=/[\s,]+/;function Et(e,o){o.split(xt).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function It(e,o=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/r,i%1===0?s(i):0)}}return o}function Mt(e,o){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in o)n+=" "+s+'="'+o[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function _t(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Vt(e){return"data:image/svg+xml,"+_t(e)}function At(e){return'url("'+Vt(e)+'")'}const Se={...he,inline:!1},Tt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Pt={display:"inline-block"},Y={backgroundColor:"currentColor"},Ce={backgroundColor:"transparent"},Be={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},$e={webkitMask:Y,mask:Y,background:Ce};for(const e in $e){const o=$e[e];for(const n in Be)o[e+n]=Be[n]}const z={};["horizontal","vertical"].forEach(e=>{const o=e.slice(0,1)+"Flip";z[e+"-flip"]=o,z[e.slice(0,1)+"-flip"]=o,z[e+"Flip"]=o});function Le(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Ne=(e,o)=>{const n=Nt(Se,o),s={...Tt},r=o.mode||"svg",i={},l=o.style,c=typeof l=="object"&&!(l instanceof Array)?l:{};for(let w in o){const h=o[w];if(h!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[w]=h===!0||h==="true"||h===1;break;case"flip":typeof h=="string"&&Et(n,h);break;case"color":i.color=h;break;case"rotate":typeof h=="string"?n[w]=It(h):typeof h=="number"&&(n[w]=h);break;case"ariaHidden":case"aria-hidden":h!==!0&&h!=="true"&&delete s["aria-hidden"];break;default:{const $=z[w];$?(h===!0||h==="true"||h===1)&&(n[$]=!0):Se[w]===void 0&&(s[w]=h)}}}const a=tt(e,n),d=a.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),r==="svg"){s.style={...i,...c},Object.assign(s,d);let w=0,h=o.id;return typeof h=="string"&&(h=h.replace(/-/g,"_")),s.innerHTML=st(a.body,h?()=>h+"ID"+w++:"iconifyVue"),t.h("svg",s)}const{body:f,width:p,height:u}=e,m=r==="mask"||(r==="bg"?!1:f.indexOf("currentColor")!==-1),k=Mt(f,{...d,width:p+"",height:u+""});return s.style={...i,"--svg":At(k),width:Le(d.width),height:Le(d.height),...Pt,...m?Y:Ce,...c},t.h("span",s)};if(ue(!0),it("",ft),typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const o=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof o=="object"&&o!==null&&(o instanceof Array?o:[o]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Ze(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const o=e.IconifyProviders;if(typeof o=="object"&&o!==null)for(let n in o){const s="IconifyProviders["+n+"] is invalid.";try{const r=o[n];if(typeof r!="object"||!r||r.resources===void 0)continue;lt(n,r)||console.error(s)}catch{console.error(s)}}}}const jt={...O,body:""},xe=t.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,o,n){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let s;if(typeof e!="string"||(s=P(e,!1,!0))===null)return this.abortLoading(),null;let r=We(s);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:Lt([s],()=>{this.counter++})})),null;if(this.abortLoading(),this._name!==e&&(this._name=e,o&&o(e)),n){r=Object.assign({},r);const l=n(r.body,s.name,s.prefix,s.provider);typeof l=="string"&&(r.body=l)}const i=["iconify"];return s.prefix!==""&&i.push("iconify--"+s.prefix),s.provider!==""&&i.push("iconify--"+s.provider),{data:r,classes:i}}},render(){this.counter;const e=this.$attrs,o=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad,e.customise):null;if(!o)return Ne(jt,e);let n=e;return o.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+o.classes.join(" ")}),Ne({...O,...o.data},n)}}),Ft={class:"logo"},Ot=["alt","src"],Rt={key:1,class:"logo-default"},zt={name:"Logo"},J=t.defineComponent({...zt,props:{alt:{default:void 0,type:String},route:{default:void 0,type:String},src:{default:void 0,type:String}},setup(e){const o=e,{appName:n,appTitle:s,layout:r}=E.useConfig(),i=t.computed(()=>{if(n)return n.replace("@","").replace("/"," ")}),l=o.alt||r?.logoAlt||i.value||s||"My App",c=o.src||r?.logo,a=o.route||r?.logoRoute||"home";return(d,f)=>{const p=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",Ft,[t.renderSlot(d.$slots,"default",{},()=>[t.createVNode(p,{to:{name:t.unref(a)}},{default:t.withCtx(()=>[t.unref(c)?(t.openBlock(),t.createElementBlock("img",{key:0,alt:t.unref(l),src:t.unref(c)},null,8,Ot)):(t.openBlock(),t.createElementBlock("span",Rt,[t.createElementVNode("span",null,t.toDisplayString(t.unref(l)[0]),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(l)),1)]))]),_:1},8,["to"])])])}}}),Dt={name:"MainMenu"},Ee=t.defineComponent({...Dt,props:{routes:{required:!0,type:Array}},emits:["close"],setup(e){const o=e,n=I.useRoute(),s=I.useRouter(),r=t.computed(()=>{let c=o.routes?.find(a=>a.route===n?.name)?.route;return c||(c=i.value),c}),i=t.computed(()=>{const c=n?.matched;if(c?.length>1){const a=c[c.length-2];return l(a?.path)}return""}),l=c=>{const a=s.getRoutes().find(d=>d.path===c);return String(a?.name)};return(c,a)=>(t.openBlock(),t.createBlock(t.unref(Te.ResponsiveMenu),{ref:"mainMenu","active-route":r.value??"home",routes:e.routes,onChangeRoute:a[0]||(a[0]=d=>c.$emit("close"))},null,8,["active-route","routes"]))}}),Ht=["data-expanded"],qt={name:"AppHeader"},X=t.defineComponent({...qt,props:{noLocaleSwitcher:Boolean,noLogo:Boolean,noMainMenu:Boolean,noToggle:Boolean},setup(e,{expose:o}){const{layout:n}=E.useConfig(),{width:s}=ne.useWindowSize(),r=t.ref(null),i=t.ref(!0),l=n&&n?.homeRoute?n.homeRoute:void 0,c=n?.localeSwitcher?.showBadges,a=t.computed(()=>s.value>576),d=()=>{i.value=!1},f=()=>{const u=document.querySelector(".layout > header"),m=document.querySelector(".layout > header > nav");if(window.innerWidth>=576)i.value=!0;else{if(!u||!m||a.value)return;const k=u?.offsetHeight,w=window.innerHeight;i.value=!1,m.style.height=`${w-k}px`}},p=()=>{i.value=!i.value};return t.onMounted(()=>{window.addEventListener("resize",f),window.addEventListener("load",f),f()}),t.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("load",f)}),o({expanded:i}),(u,m)=>(t.openBlock(),t.createElementBlock("header",{ref_key:"dzangolabVueAppHeader",ref:r},[!e.noToggle||!a.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"toggle",onClick:p},[t.renderSlot(u.$slots,"toggle",{},()=>[i.value&&!a.value?(t.openBlock(),t.createBlock(t.unref(xe),{key:0,icon:"prime:times",height:"2rem"})):(t.openBlock(),t.createBlock(t.unref(xe),{key:1,icon:"prime:bars",height:"2rem"}))])])):t.createCommentVNode("",!0),t.renderSlot(u.$slots,"logo",{class:"logo"},()=>[e.noLogo?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(J,{key:0,route:t.unref(l)},null,8,["route"]))]),t.createElementVNode("nav",{"data-expanded":i.value},[t.renderSlot(u.$slots,"menu",{},()=>[t.unref(n)?.mainMenu&&!e.noMainMenu?(t.openBlock(),t.createBlock(Ee,{key:0,class:"main-menu",routes:t.unref(n)?.mainMenu,onClose:d},null,8,["routes"])):t.createCommentVNode("",!0)]),t.renderSlot(u.$slots,"userMenu"),t.renderSlot(u.$slots,"addon"),t.renderSlot(u.$slots,"locales",{},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(c),class:"locales"},null,8,["show-badges"]))])],8,Ht)],512))}}),Ut="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.29289%204.29289C8.68342%203.90237%209.31658%203.90237%209.70711%204.29289L16.7071%2011.2929C17.0976%2011.6834%2017.0976%2012.3166%2016.7071%2012.7071L9.70711%2019.7071C9.31658%2020.0976%208.68342%2020.0976%208.29289%2019.7071C7.90237%2019.3166%207.90237%2018.6834%208.29289%2018.2929L14.5858%2012L8.29289%205.70711C7.90237%205.31658%207.90237%204.68342%208.29289%204.29289Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",Qt={class:"nav-menu-item"},Wt={key:1,class:"item-name"},Gt={key:2,class:"item-name"},Zt={key:3,class:"toggle-menu"},Kt={key:0,class:"sub-menu-item"},Yt={name:"NavMenuItem",components:{NavMenuItem:()=>Promise.resolve().then(()=>Jt)}},Ie=t.defineComponent({...Yt,props:{item:{required:!0,type:Object},sidebarActive:{default:!0,required:!0,type:Boolean}},emits:["select:menu"],setup(e,{emit:o}){const n=e,s=o,r=I.useRoute(),i=I.useRouter(),l=t.ref(!1),c=t.computed(()=>{const u=r?.matched;if(u?.length>1){const m=u[u.length-2];return f(m?.path)}return""}),a=t.computed(()=>{let u=r.name===n.item?.routeName;return u||(n.item?.routeName?u=!!c.value&&c.value===n.item?.routeName:!n.item?.routeName&&!n.item?.children?.length&&r.name===c.value&&(u=!0)),u}),d=t.computed(()=>!n.sidebarActive&&n.item.shortName),f=u=>{const m=i.getRoutes().find(k=>k.path===u);return String(m?.name)},p=()=>{n.item.routeName?(i.hasRoute(n.item.routeName)&&i.push({name:n.item.routeName}),s("select:menu")):!n.item.routeName&&!n.item.children?.length?(i.hasRoute(c.value)&&i.push({name:c.value}),s("select:menu")):l.value=!l.value};return n.item.children?.length&&(l.value=!!n.item.children.find(u=>r.name===u?.routeName)),(u,m)=>{const k=t.resolveComponent("NavMenuItem",!0);return t.openBlock(),t.createElementBlock("div",Qt,[t.createElementVNode("a",{class:t.normalizeClass([{active:a.value},"link"]),"aria-label":"open menu",onClick:p},[e.item.icon?(t.openBlock(),t.createElementBlock("i",{key:0,class:t.normalizeClass(["icon",e.item.icon,{"icon-only":!d.value&&!e.sidebarActive}])},null,2)):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("span",Wt,t.toDisplayString(e.item.shortName),1)):t.createCommentVNode("",!0),e.sidebarActive?(t.openBlock(),t.createElementBlock("span",Gt,t.toDisplayString(e.item.name),1)):t.createCommentVNode("",!0),e.item.children&&e.item.children.length?(t.openBlock(),t.createElementBlock("span",Zt,[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass({"up-chevron":l.value}),viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m[1]||(m[1]=[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.29289 8.29289C4.68342 7.90237 5.31658 7.90237 5.70711 8.29289L12 14.5858L18.2929 8.29289C18.6834 7.90237 19.3166 7.90237 19.7071 8.29289C20.0976 8.68342 20.0976 9.31658 19.7071 9.70711L12.7071 16.7071C12.3166 17.0976 11.6834 17.0976 11.2929 16.7071L4.29289 9.70711C3.90237 9.31658 3.90237 8.68342 4.29289 8.29289Z",fill:"currentColor"},null,-1)]),2))])):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"fade"},{default:t.withCtx(()=>[e.item.children&&e.item.children.length&&l.value?(t.openBlock(),t.createElementBlock("div",Kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.item.children,(w,h)=>(t.openBlock(),t.createBlock(k,{key:w.name+"-"+h,item:w,"sidebar-active":e.sidebarActive,"onSelect:menu":m[0]||(m[0]=$=>u.$emit("select:menu"))},null,8,["item","sidebar-active"]))),128))])):t.createCommentVNode("",!0)]),_:1})])}}}),Jt=Object.freeze(Object.defineProperty({__proto__:null,default:Ie},Symbol.toStringTag,{value:"Module"})),Xt={class:"nav-menu"},vt={key:0,class:"menu"},en={name:"NavMenu"},tn=t.defineComponent({...en,props:{menu:{required:!0,type:Array},sidebarActive:{default:!0,required:!0,type:Boolean}},emits:["select:menu"],setup(e){const o=e,n=t.computed(()=>o.menu?.map(s=>{if(s.hide)return null;const r=s.children?.filter(i=>!i.hide)||[];return s.children?.length&&!r.length?null:{...s,children:r.length?r:void 0}}).filter(Boolean));return(s,r)=>(t.openBlock(),t.createElementBlock("nav",Xt,[n.value?.length>0?(t.openBlock(),t.createElementBlock("div",vt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,(i,l)=>(t.openBlock(),t.createBlock(Ie,{key:i.name+"-"+l,item:i,"sidebar-active":e.sidebarActive,"onSelect:menu":r[0]||(r[0]=c=>s.$emit("select:menu"))},null,8,["item","sidebar-active"]))),128))])):t.createCommentVNode("",!0)]))}}),nn={key:0,class:"header"},on={class:"title"},rn={key:0,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},sn={key:1,class:"extend",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ln={class:"sidebar-menu-wrapper"},cn={class:"nav"},an={key:1,class:"footer"},dn={key:0,alt:"show sidebar",src:Ut},un={name:"Sidebar"},v=t.defineComponent({...un,props:{collapsible:{default:!0,type:Boolean},menu:{required:!0,type:Array},noHeader:{default:!1,type:Boolean}},emits:["select:menu"],setup(e,{expose:o}){const n=e,s=t.computed(()=>!i.value&&n.collapsible?!n.menu?.filter(l=>!!l.shortName)?.length:!1),r=t.useSlots(),i=t.ref(!0);return o({sidebarActive:i}),(l,c)=>s.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"no-sidebar",onClick:c[2]||(c[2]=a=>i.value=!0)},[i.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("img",dn))])):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["sidebar",{collapsible:e.collapsible}])},[e.noHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nn,[t.createVNode(J),t.createElementVNode("div",on,[t.renderSlot(l.$slots,"title")]),t.renderSlot(l.$slots,"toggleIcons",{},()=>[t.createElementVNode("div",{class:"toggle",onClick:c[0]||(c[0]=a=>i.value=!i.value)},[i.value?(t.openBlock(),t.createElementBlock("svg",rn,c[3]||(c[3]=[t.createElementVNode("path",{d:"m13.06 12l4.42-4.42a.75.75 0 1 0-1.06-1.06L12 10.94L7.58 6.52a.75.75 0 0 0-1.06 1.06L10.94 12l-4.42 4.42a.75.75 0 0 0 0 1.06a.75.75 0 0 0 1.06 0L12 13.06l4.42 4.42a.75.75 0 0 0 1.06 0a.75.75 0 0 0 0-1.06Z",fill:"currentColor"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",sn,c[4]||(c[4]=[t.createElementVNode("path",{d:"M19 12.75H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0-4.5H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5m0 9H5a.75.75 0 0 1 0-1.5h14a.75.75 0 0 1 0 1.5",fill:"currentColor"},null,-1)])))])])])),t.createElementVNode("div",ln,[t.renderSlot(l.$slots,"default"),t.createElementVNode("ul",cn,[t.renderSlot(l.$slots,"links",{},()=>[t.createVNode(tn,{menu:e.menu,"sidebar-active":i.value,"onSelect:menu":c[1]||(c[1]=a=>l.$emit("select:menu"))},null,8,["menu","sidebar-active"])]),t.renderSlot(l.$slots,"afterNavLinks")]),t.renderSlot(l.$slots,"afterSidebarMenu")]),t.unref(r).footer?(t.openBlock(),t.createElementBlock("div",an,[t.renderSlot(l.$slots,"footer")])):t.createCommentVNode("",!0)],2))}}),fn={class:"content"},hn={name:"StickyCollapsibleFooter"},mn=t.defineComponent({...hn,props:{fixed:{default:!0,type:Boolean}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("footer",{class:t.normalizeClass(`sticky-collapsible ${e.fixed?"fixed":""}`)},[t.createElementVNode("div",fn,[t.renderSlot(o.$slots,"default")])],2))}}),pn=t.defineAsyncComponent({loader:()=>Promise.resolve().then(()=>Bn),timeout:3e3}),gn={name:"Layout"},Me=t.defineComponent({...gn,props:{defaultLayout:{default:pn,type:Object}},setup(e){const o=e,n=I.useRoute(),s=t.useSlots(),r=Object.keys(s);let i=t.shallowRef(o.defaultLayout);const l=t.computed(()=>t.markRaw(i.value));return t.watch(()=>n.meta,async c=>{if(c?.layout)try{i.value=c.layout}catch{i.value=o.defaultLayout}else i.value=o.defaultLayout}),(c,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.value),null,t.createSlots({default:t.withCtx(()=>[t.renderSlot(c.$slots,"default")]),_:2},[t.renderList(t.unref(r),d=>({name:d,fn:t.withCtx(()=>[t.renderSlot(c.$slots,d)])}))]),1024))}}),yn=["aria-expanded"],wn={name:"BasicLayout"},kn=t.defineComponent({...wn,props:{noFooter:Boolean,noLocaleSwitcher:Boolean},setup(e){const o=t.ref();return(n,s)=>(t.openBlock(),t.createElementBlock("div",{"aria-expanded":o.value?.expanded,class:"layout basic"},[t.renderSlot(n.$slots,"header",{},()=>[t.createVNode(X,{ref_key:"appHeader",ref:o,"no-locale-switcher":e.noLocaleSwitcher,"no-toggle":""},{logo:t.withCtx(()=>[t.renderSlot(n.$slots,"logo")]),addon:t.withCtx(()=>[t.renderSlot(n.$slots,"addon")]),menu:t.withCtx(()=>[t.renderSlot(n.$slots,"menu")]),userMenu:t.withCtx(()=>[t.renderSlot(n.$slots,"userMenu")]),locales:t.withCtx(()=>[t.renderSlot(n.$slots,"locales")]),_:3},8,["no-locale-switcher"])]),t.createElementVNode("main",null,[t.renderSlot(n.$slots,"default")]),e.noFooter?t.createCommentVNode("",!0):t.renderSlot(n.$slots,"footer",{key:0},()=>[t.createVNode(T,null,{copyright:t.withCtx(()=>[t.renderSlot(n.$slots,"copyright")]),social:t.withCtx(()=>[t.renderSlot(n.$slots,"social")]),version:t.withCtx(()=>[t.renderSlot(n.$slots,"version")]),_:3})])],8,yn))}}),bn={name:"NullLayout"},Sn=(e,o)=>{const n=e.__vccOpts||e;for(const[s,r]of o)n[s]=r;return n};function Cn(e,o,n,s,r,i){return t.renderSlot(e.$slots,"default")}const _e=Sn(bn,[["render",Cn]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:_e},Symbol.toStringTag,{value:"Module"})),$n=["aria-expanded"],Ln=t.defineComponent({__name:"SidebarHeaderLayout",props:{collapsible:{default:!0,type:Boolean},menu:{required:!0,type:Array},noFooter:Boolean,noLocaleSwitcher:Boolean,noSidebar:{default:!1,type:Boolean},userMenuLocation:{default:"sidebar",type:String,validator:e=>["header","sidebar"].includes(e)}},setup(e,{expose:o}){const{layout:n}=E.useConfig(),s=n?.localeSwitcher?.showBadges,{width:r}=ne.useWindowSize(),i=t.ref(),l=t.ref(),c=t.ref(!1),a=e,d=t.computed(()=>r.value>576),f=t.computed(()=>(a.userMenuLocation==="sidebar"||!d.value)&&!a.noSidebar),p=()=>{window.innerWidth>=576?(c.value=!1,l.value&&(l.value.sidebarActive=!0)):(c.value=!0,l.value&&(l.value.sidebarActive=!1))},u=()=>{d.value||(l.value.sidebarActive=!1)};return t.onMounted(()=>{window.innerWidth<576&&l.value&&(l.value.sidebarActive=!1)}),t.onUnmounted(()=>{window.removeEventListener("resize",p)}),window.addEventListener("resize",p),p(),o({onSelectMenu:u}),(m,k)=>(t.openBlock(),t.createElementBlock("div",{"aria-expanded":d.value?i.value?.expanded:l.value?.sidebarActive,class:t.normalizeClass(["layout sidebar-header-layout",{collapsible:e.collapsible}])},[t.renderSlot(m.$slots,"header",{},()=>[t.withDirectives(t.createVNode(X,{ref_key:"appHeader",ref:i,class:t.normalizeClass({"no-locale-switcher-header":e.noLocaleSwitcher}),"no-locale-switcher":e.noLocaleSwitcher,"no-toggle":!e.collapsible||e.noSidebar,"no-main-menu":""},t.createSlots({locales:t.withCtx(()=>[t.renderSlot(m.$slots,"locales")]),_:2},[e.userMenuLocation==="header"&&d.value?{name:"userMenu",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"userMenu")]),key:"0"}:void 0]),1032,["class","no-locale-switcher","no-toggle"]),[[t.vShow,d.value]])]),!e.noSidebar||!d.value?(t.openBlock(),t.createBlock(v,{key:0,ref_key:"sidebar",ref:l,collapsible:e.collapsible&&d.value,menu:e.menu,"no-header":d.value,class:"layout-sidebar","onSelect:menu":u},t.createSlots({afterNavLinks:t.withCtx(()=>[t.renderSlot(m.$slots,"afterNavLinks")]),afterSidebarMenu:t.withCtx(()=>[t.renderSlot(m.$slots,"afterSidebarMenu"),f.value?t.renderSlot(m.$slots,"userMenu",{key:0}):t.createCommentVNode("",!0),c.value?t.renderSlot(m.$slots,"locales",{key:1},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(s),class:"locales"},null,8,["show-badges"]))]):t.createCommentVNode("",!0)]),_:2},[e.noFooter?void 0:{name:"footer",fn:t.withCtx(()=>[t.renderSlot(m.$slots,"footer",{},()=>[t.createVNode(T)])]),key:"0"}]),1032,["collapsible","menu","no-header"])):t.createCommentVNode("",!0),t.createElementVNode("main",null,[t.renderSlot(m.$slots,"default")])],10,$n))}}),Nn="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20stroke-width='0'%3e%3c/g%3e%3cg%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%207C12.2652%207%2012.5196%207.10536%2012.7071%207.29289L19.7071%2014.2929C20.0976%2014.6834%2020.0976%2015.3166%2019.7071%2015.7071C19.3166%2016.0976%2018.6834%2016.0976%2018.2929%2015.7071L12%209.41421L5.70711%2015.7071C5.31658%2016.0976%204.68342%2016.0976%204.29289%2015.7071C3.90237%2015.3166%203.90237%2014.6834%204.29289%2014.2929L11.2929%207.29289C11.4804%207.10536%2011.7348%207%2012%207Z'%20fill='%23ffffff'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",xn={class:"layout sidebar-only"},En=t.defineComponent({__name:"SidebarOnlyLayout",props:{menu:{required:!0,type:Array},noFooter:Boolean,noLocaleSwitcher:Boolean,noHeader:{default:!1,type:Boolean}},setup(e){const{layout:o}=E.useConfig(),n=o?.localeSwitcher?.showBadges;return(s,r)=>(t.openBlock(),t.createElementBlock("div",xn,[t.createVNode(v,{menu:e.menu,"no-header":e.noHeader,class:"layout-sidebar"},t.createSlots({afterNavLinks:t.withCtx(()=>[t.renderSlot(s.$slots,"afterNavLinks")]),afterSidebarMenu:t.withCtx(()=>[t.renderSlot(s.$slots,"afterSidebarMenu"),t.renderSlot(s.$slots,"userMenu"),t.renderSlot(s.$slots,"locales",{},()=>[e.noLocaleSwitcher?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(B.LocaleSwitcher),{key:0,"show-badges":t.unref(n),class:"locales"},{icon:t.withCtx(()=>r[0]||(r[0]=[t.createElementVNode("img",{src:Nn,alt:"toggle icon"},null,-1)])),_:1},8,["show-badges"]))])]),_:2},[e.noFooter?void 0:{name:"footer",fn:t.withCtx(()=>[t.createVNode(T)]),key:"0"}]),1032,["menu","no-header"]),t.createElementVNode("main",null,[t.renderSlot(s.$slots,"default")])]))}}),ee={en:{copyright:{disclaimer:"All rights reserved."}},fr:{copyright:{disclaimer:"Tous droits réservés."}}},Ve=Symbol.for("dzangolab.vue-layout.translations"),Ae=()=>t.inject(Ve,ee),In={install:(e,o)=>{e.component("Layout",Me);const n=o?.translations?B.prependMessages(ee,o.translations):ee;e.provide(Ve,n)}};g.AppFooter=T,g.AppHeader=X,g.BasicLayout=kn,g.Copyright=oe,g.Layout=Me,g.Logo=J,g.MainMenu=Ee,g.NullLayout=_e,g.Sidebar=v,g.SidebarHeaderLayout=Ln,g.SidebarOnlyLayout=En,g.StickyCollapsibleFooter=mn,g.default=In,g.useTranslations=Ae,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|