1import{_ as A}from"./BsqTxom4.js";import{u as S,k as j,s as B,l as o,q as I,O as V,c as h,o as _,b as t,t as e,m as s,F as E,x as T,N as z,h as w,p as D,_ as L,a as M,i as P,a8 as R}from"#entry";const F={class:"min-h-screen bg-[#f6f6f7]"},O={class:"fixed inset-y-0 left-0 z-50 w-[260px] bg-white border-r border-slate-200/90 flex flex-col"},U={class:"flex items-center h-16 px-5 border-b border-slate-200/90 shrink-0"},W={class:"flex items-center gap-3 min-w-0"},q={class:"w-9 h-9 rounded-lg bg-slate-900 flex items-center justify-center shrink-0"},H={class:"text-white font-semibold text-sm"},$={class:"min-w-0"},G={class:"text-sm font-semibold text-slate-900 truncate"},J={class:"text-[11px] text-slate-500 truncate"},K={class:"flex-1 overflow-y-auto px-3 py-4"},Q={class:"space-y-0.5"},X={class:"w-[18px] h-[18px] shrink-0 opacity-70",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Y=["d"],Z={class:"truncate"},tt={class:"p-4 border-t border-slate-200/90 shrink-0"},et={class:"flex items-center gap-3 mb-3 px-1"},st={class:"w-9 h-9 rounded-full bg-slate-200 flex items-center justify-center shrink-0"},ot={class:"text-sm font-semibold text-slate-700"},at={class:"min-w-0 flex-1"},nt={class:"text-sm font-medium text-slate-900 truncate"},lt={class:"text-xs text-slate-500 truncate"},it={class:"grid grid-cols-2 gap-2"},rt={class:"lg:pl-[260px] min-h-screen flex flex-col"},ct={class:"sticky top-0 z-40 bg-white border-b border-slate-200/90"},dt={class:"px-6 lg:px-8 h-16 flex items-center justify-between"},_t={class:"text-lg font-semibold text-slate-900 tracking-tight"},ut={class:"flex items-center gap-3"},ht={class:"hidden sm:inline text-xs text-slate-500"},pt={class:"w-8 h-8 rounded-full bg-slate-200 flex items-center justify-center"},xt={class:"text-xs font-semibold text-slate-700"},mt={class:"flex-1 p-6 lg:p-8"},vt={__name:"dashboard-professional",async setup(ft){let i,p;S({meta:[{name:"robots",content:"noindex, nofollow"}]});const r=j(),n=B(),x=o(()=>n.user?.email||n.user?.displayName||"Usuario"),m=o(()=>n.user?.email||""),f=o(()=>x.value.charAt(0).toUpperCase());I(async()=>{try{await n.checkAuthState()}catch{}});const c=([i,p]=V(()=>A(()=>import("./Dp3JlKPk.js"),[],import.meta.url)),i=await i,p(),i),b=o(()=>r.path.startsWith("/admin")?"admin":r.path.startsWith("/vendedor")?"vendedor":"cliente"),g=o(()=>c.default[b.value]?.items||c.default.cliente.items),u=o(()=>c.default[b.value]||c.default.cliente),y=o(()=>u.value?.title||"Panel"),k=o(()=>g.value.find(a=>a.path===r.path)?.label||"Dashboard"),C=d=>r.path===d,N=async()=>{await n.logout()};return(d,a)=>{const v=L;return _(),h("div",F,[t("aside",O,[t("div",U,[t("div",W,[t("div",q,[t("span",H,e(s(u).icon),1)]),t("div",$,[t("p",G,e(s(u).title),1),t("p",J,e(s(y)),1)])])]),t("nav",K,[a[0]||(a[0]=t("p",{class:"px-3 mb-2 text-[11px] font-semibold uppercase tracking-wider text-slate-400"},"Menú",-1)),t("div",Q,[(_(!0),h(E,null,T(s(g),l=>(_(),z(v,{key:l.path,to:l.path,class:D(["flex items-center gap-3 px-3 py-2.5 text-sm font-medium rounded-md transition-colors",C(l.path)?"bg-slate-100 text-slate-900":"text-slate-600 hover:bg-slate-50 hover:text-slate-900"])},{default:w(()=>[(_(),h("svg",X,[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:l.icon},null,8,Y)])),t("span",Z,e(l.label),1)]),_:2},1032,["to","class"]))),128))])]),t("div",tt,[t("div",et,[t("div",st,[t("span",ot,e(s(f)),1)]),t("div",at,[t("p",nt,e(s(x)),1),t("p",lt,e(s(m)),1)])]),t("div",it,[M(v,{to:"/",class:"text-center text-xs font-medium py-2 rounded-md border border-slate-300 text-slate-700 hover:bg-slate-50 transition-colors"},{default:w(()=>[...a[1]||(a[1]=[P(" Ver tienda ",-1)])]),_:1}),t("button",{type:"button",class:"text-xs font-medium py-2 rounded-md bg-slate-900 text-white hover:bg-slate-800 transition-colors",onClick:N}," Salir ")])])]),t("div",rt,[t("header",ct,[t("div",dt,[t("h1",_t,e(s(k)),1),t("div",ut,[t("span",ht,e(s(m)),1),t("div",pt,[t("span",xt,e(s(f)),1)])])])]),t("main",mt,[R(d.$slots,"default")])])])}}};export{vt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.