import{d as c,h as p,o as l,g as o,u as s,i as u,w as a,j as t,k as n,a as f,b as _,S as h,l as x,F as g}from"./app-Cb9hmj6k.js";import{_ as b,a as w}from"./AppLayout.vue_vue_type_script_setup_true_lang-CteAxl0C.js";import{_ as k}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-DKWl2XLX.js";import"./index-hboZUdbT.js";import"./RovingFocusGroup-CP1IPgEn.js";import"./index-bRFR14ax.js";const v={class:"p-6 max-w-3xl flex flex-col gap-4"},$={class:"mb-4 flex flex-col gap-1"},B={class:"text-2xl sm:text-3xl font-bold"},N={class:"text-sm text-muted-foreground"},S={class:"flex gap-2"},V={class:"prose max-w-none whitespace-pre-line"},q=c({__name:"Show",props:{document:{}},setup(d){const m=[{title:"Панель управления",href:"/dashboard"},{title:"Документация",href:"/documentation"},{title:d.document.title,href:""}];return(e,r)=>(l(),p(g,null,[o(s(u),{title:e.document.title},null,8,["title"]),o(w,{breadcrumbs:m},{default:a(()=>{var i;return[o(s(b)),t("div",v,[t("div",$,[t("h1",B,n(e.document.title),1),t("p",N,n(((i=e.document.category)==null?void 0:i.name)||"Без категории"),1)]),t("div",S,[e.$page.props.auth.user.role==="admin"?(l(),f(s(h),{key:0,href:`/documentation/${e.document.id}/edit`},{default:a(()=>[o(s(k),{variant:"outline"},{default:a(()=>r[0]||(r[0]=[x("Редактировать")])),_:1,__:[0]})]),_:1},8,["href"])):_("",!0)]),t("div",V,n(e.document.content),1)])]}),_:1})],64))}});export{q as default};
