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