import{Q as b,a as y}from"./QLayout.5e6c6ab6.js";import{L}from"./LayoutHeader.4f84c90f.js";import{L as g}from"./LayoutDrawer.fde41f4a.js";import{_ as v,U as w,u as k,d as r,c8 as $,o as u,e as m,w as n,h as a,g as h,ac as D}from"./index.cf09daef.js";import"./QScrollObserver.c84085dc.js";import"./QResizeObserver.94980fd5.js";import"./QBadge.587be6cb.js";import"./shop.d7573bba.js";import"./logo.d17bc7ed.js";import"./QDrawer.d086d999.js";import"./TouchPan.bf438bc6.js";import"./touch.9135741d.js";import"./selection.5d5b72c0.js";import"./QExpansionItem.c46f740a.js";const S=t=>Array.isArray(t)?t:[t],A={components:{LayoutHeader:L,LayoutDrawer:g},computed:{...w(k,["adminSideMenus","version"]),menus(){const t=o=>{let s=o.filter(e=>e.permission?this.$app.can(...S(e.permission)):!0);return s.forEach(e=>{e.subLinks&&(e.subLinks=t(e.subLinks),e.subLinks.length&&(e.route=e.subLinks[0].route),e.useSubLinksModule&&e.subLinks.length===0&&(s=s.filter(i=>i!==e)))}),s};return t(this.adminSideMenus)}}},M={class:"absolute-bottom bg-white settings q-py-sm q-px-md"};function x(t,o,s,e,i,p){const l=r("layout-header"),f=r("base-item"),c=r("layout-drawer"),d=r("router-view"),_=$("can");return u(),m(y,{view:"hHh LpR lFr",class:"bg-main"},{default:n(()=>[a(l,{"use-pos":"",onUpdateLeftDrawer:o[0]||(o[0]=B=>t.$refs.layoutDrawer.toggle())}),a(c,{class:"admin-side-links",ref:"layoutDrawer","side-menus":p.menus,"list-style":{"padding-bottom":"100px"}},{default:n(()=>[h("div",M,[D(a(f,{dense:"",to:{name:"Settings"},icon:"far fa-gear",label:t.$t("menus.settings"),class:"text-bold",notification:`v${t.version}`,"flat-notification":""},null,8,["label","notification"]),[[_,["settings:*"]]])])]),_:1},8,["side-menus"]),a(b,null,{default:n(()=>[(u(),m(d,{key:t.$router.fullPath}))]),_:1})]),_:1})}var I=v(A,[["render",x]]);export{I as default};
