import{_ as b,a as $,o as v,c as f,b as e,B as n,t as m,d as p,h as l,i as d,l as u,E as k,r as C,j as S}from"./index-C611KsFR.js";import{L as A}from"./LogoutButton-_2alxat7.js";const y={class:"admin-layout"},g={key:0},j={key:1},B={class:"sidebar-brand"},L={class:"sidebar-nav"},w={"aria-hidden":"true"},N={"aria-hidden":"true"},I={class:"sidebar-footer"},V={class:"admin-main"},c={__name:"AdminLayout",setup(E){const a=C(!1),r=$();return(t,s)=>{const o=S("router-link");return v(),f("div",y,[e("button",{class:"sidebar-toggle",onClick:s[0]||(s[0]=i=>a.value=!a.value),"aria-label":"Menú"},[a.value?(v(),f("span",j,"✕")):(v(),f("span",g,"☰"))]),e("div",{class:n(["sidebar-backdrop",{open:a.value}]),onClick:s[1]||(s[1]=i=>a.value=!1)},null,2),e("aside",{class:n(["sidebar",{open:a.value}])},[e("div",B,m(p(r).businessName),1),e("nav",L,[l(o,{to:"/admin",class:n(["menu-item",{active:t.$route.path==="/admin"}]),onClick:s[2]||(s[2]=i=>a.value=!1)},{default:d(()=>[...s[10]||(s[10]=[e("span",null,"📊",-1),u(" Monitor Hoy ",-1)])]),_:1},8,["class"]),l(o,{to:"/admin/inbox",class:n(["menu-item",{active:t.$route.path==="/admin/inbox"}]),onClick:s[3]||(s[3]=i=>a.value=!1)},{default:d(()=>[...s[11]||(s[11]=[e("span",null,"📥",-1),u(" Por confirmar ",-1)])]),_:1},8,["class"]),l(o,{to:"/admin/barbers",class:n(["menu-item",{active:t.$route.path==="/admin/barbers"}]),onClick:s[4]||(s[4]=i=>a.value=!1)},{default:d(()=>[e("span",w,m(p(r).menuIconStaff),1),u(" "+m(p(r).staffLabelPlural),1)]),_:1},8,["class"]),l(o,{to:"/admin/services",class:n(["menu-item",{active:t.$route.path==="/admin/services"}]),onClick:s[5]||(s[5]=i=>a.value=!1)},{default:d(()=>[e("span",N,m(p(r).menuIconServices),1),s[12]||(s[12]=u(" Servicios ",-1))]),_:1},8,["class"]),l(o,{to:"/admin/clients",class:n(["menu-item",{active:t.$route.path==="/admin/clients"}]),onClick:s[6]||(s[6]=i=>a.value=!1)},{default:d(()=>[...s[13]||(s[13]=[e("span",null,"👥",-1),u(" Clientes ",-1)])]),_:1},8,["class"]),l(o,{to:"/admin/admins",class:n(["menu-item",{active:t.$route.path==="/admin/admins"}]),onClick:s[7]||(s[7]=i=>a.value=!1)},{default:d(()=>[...s[14]||(s[14]=[e("span",null,"🛡️",-1),u(" Administradores ",-1)])]),_:1},8,["class"]),l(o,{to:"/admin/whatsapp",class:n(["menu-item",{active:t.$route.path==="/admin/whatsapp"||t.$route.path==="/admin/whatsapp/mensajes"}]),onClick:s[8]||(s[8]=i=>a.value=!1)},{default:d(()=>[...s[15]||(s[15]=[e("span",null,"💬",-1),u(" WhatsApp ",-1)])]),_:1},8,["class"]),l(o,{to:"/admin/ajustes",class:n(["menu-item",{active:t.$route.path==="/admin/ajustes"}]),onClick:s[9]||(s[9]=i=>a.value=!1)},{default:d(()=>[...s[16]||(s[16]=[e("span",null,"⚙️",-1),u(" Ajustes App ",-1)])]),_:1},8,["class"])]),e("div",I,[l(A)])],2),e("main",V,[k(t.$slots,"default",{},void 0)])])}}},z=b(c,[["__scopeId","data-v-b4887d18"]]);export{z as A};
