1import{_ as h}from"./BIeS81OO.js";import{_ as b}from"./Cr9P1xSe.js";import{u as g}from"./Ccr6_CPU.js";import{d as v,y,g as c,h as d,i as t,m as n,w as i,k as l,F as w,j as k,t as u,v as C,l as N,a0 as j,G as A}from"./CgrRQive.js";import"./BQp5WT1R.js";const B={class:"min-h-screen bg-slate-50"},T={class:"border-b border-slate-200 bg-white"},V={class:"mx-auto flex max-w-6xl items-center justify-between px-4 py-3"},F={class:"flex items-center gap-6"},L={class:"flex items-center gap-1"},S={class:"flex items-center gap-4 text-sm"},W={class:"hidden text-slate-500 sm:inline"},z={class:"mx-auto max-w-6xl px-4 py-8"},$=v({__name:"admin",setup(D){const r=g(),m=y(),x=[{to:"/admin/articles",label:"СÑаÑÑи"},{to:"/admin/users",label:"ÐолÑзоваÑели"},{to:"/admin/activity",label:"ÐкÑивноÑÑÑ"}],_=s=>m.path.startsWith(s)||s==="/admin/activity"&&m.path.startsWith("/admin/installs");async function p(){await r.logout(),await A("/account")}return(s,e)=>{const o=h,f=b;return c(),d("div",B,[t("header",T,[t("div",V,[t("div",F,[n(o,{to:"/admin",class:"flex items-center gap-2 font-bold text-slate-900"},{default:i(()=>e[0]||(e[0]=[t("span",{class:"flex h-7 w-7 items-center justify-center rounded-lg bg-brand-600 text-sm text-white"},"H",-1),l(" Ðдминка ")])),_:1}),t("nav",L,[(c(),d(w,null,k(x,a=>n(o,{key:a.to,to:a.to,class:C(["rounded-lg px-3 py-1.5 text-sm font-medium",_(a.to)?"bg-brand-50 text-brand-700":"text-slate-500 hover:text-slate-800"])},{default:i(()=>[l(u(a.label),1)]),_:2},1032,["to","class"])),64))])]),t("div",S,[n(o,{to:"/",class:"text-slate-500 hover:text-slate-800"},{default:i(()=>e[1]||(e[1]=[l("Ðа ÑÐ°Ð¹Ñ â")])),_:1}),e[2]||(e[2]=t("span",{class:"hidden text-slate-300 sm:inline"},"|",-1)),t("span",W,u(N(r).user.value?.email),1),t("button",{class:"font-medium text-slate-500 hover:text-slate-800",onClick:p},"ÐÑйÑи")])])]),t("main",z,[j(s.$slots,"default")]),n(f)])}}});
1export{$ 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.