1import{c as r,ao as o,j as s,L as i,O as l,ap as d}from"./main-Bmw7chmx.js";import{u as c}from"./useQuery-CraJ5e4a.js";import{B as n}from"./button-BeDxX-zt.js";import{B as m}from"./badge-CX3GSaZ2.js";import{C as x}from"./calendar-BQB_gZlk.js";import{S as u}from"./share-2-B28bmsbV.js";import"./index-BWxGFLm8.js";const h=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],p=r("arrow-left",h);function L(){const{sessionId:a}=o.useParams(),t=c({queryKey:["session",a],queryFn:()=>d({data:{sessionId:a}})}),e=t.data;return t.isLoading?s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"h-8 w-48 animate-pulse rounded bg-muted"}),s.jsx("div",{className:"h-64 animate-pulse rounded bg-muted"})]}):e?s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx(n,{variant:"ghost",size:"icon",asChild:!0,children:s.jsx(i,{to:"/studio/sessions",children:s.jsx(p,{className:"h-4 w-4"})})}),s.jsxs("div",{className:"flex-1",children:[s.jsx("h1",{className:"text-3xl font-bold",children:e.name}),s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsxs("span",{children:["/",e.slug]}),e.date&&s.jsxs(s.Fragment,{children:[s.jsx("span",{children:"·"}),s.jsx(x,{className:"h-3 w-3"}),s.jsx("span",{children:new Date(e.date).toLocaleDateString("pl-PL")})]}),e.isShared&&s.jsxs(m,{className:"ml-2 bg-primary/10 text-primary",children:[s.jsx(u,{className:"mr-1 h-3 w-3"}),"UdostÄpniona"]})]})]})]}),s.jsx(l,{})]}):s.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[s.jsx("p",{className:"text-lg text-muted-foreground",children:"Nie znaleziono sesji"}),s.jsx(n,{asChild:!0,className:"mt-4",variant:"outline",children:s.jsx(i,{to:"/studio/sessions",children:"Powrót do listy"})})]})}export{L as component};
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.