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 o,i as d,l as u,E as k,r as C,j as S}from"./index-Bf05Xbcq.js";import{L as A}from"./LogoutButton-HG9s0jo1.js";const y={class:"admin-layout"},g={key:0},j={key:1},w={class:"sidebar-brand"},B={class:"sidebar-nav"},L={"aria-hidden":"true"},N={"aria-hidden":"true"},c={class:"sidebar-footer"},I={class:"admin-main"},V={__name:"AdminLayout",setup(E){const a=C(!1),r=$();return(t,s)=>{const l=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",w,m(p(r).businessName),1),e("nav",B,[o(l,{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"]),o(l,{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"]),o(l,{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",L,m(p(r).menuIconStaff),1),u(" "+m(p(r).staffLabelPlural),1)]),_:1},8,["class"]),o(l,{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"]),o(l,{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"]),o(l,{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"]),o(l,{to:"/admin/whatsapp",class:n(["menu-item",{active:t.$route.path==="/admin/whatsapp"||t.$route.path==="/admin/whatsapp/mensajes"||t.$route.path==="/admin/whatsapp/conversaciones"}]),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"]),o(l,{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",c,[o(A)])],2),e("main",I,[k(t.$slots,"default",{},void 0)])])}}},z=b(V,[["__scopeId","data-v-4b7f57be"]]);export{z as A};
