1import{a_ as g,d as n,aS as l,j as e,ae as x}from"./index-DETwZGY0.js";import{G as b,a as f}from"./GroupMembershipActions-7LDvz8jN.js";import{d as h}from"./groups-view-B-2J7CtB.js";import{g as y,l as j,u as G}from"./groups-member.functions-CfRTx4FC.js";import"./groups-membership-actions-BhYHsERl.js";import"./badge-cmApgW-J.js";import"./member-directory-Cen_qhEt.js";import"./groups-membership.functions-684dt14I.js";import"./groups-pilot.functions-DugWer0g.js";import"./admin-middleware-DMFDCEVp.js";function v(){return e.jsxs("div",{className:"bg-white border border-black/10 p-10 text-center",style:{borderRadius:"13px"},children:[e.jsx("h1",{className:"text-2xl font-black tracking-tight text-black",children:"Group not found"}),e.jsx("p",{className:"mt-2 text-sm text-black/60",children:"This group is unavailable or you do not have access to it."})]})}function D(){const{slug:o}=g.useParams(),u=n(y),d=n(j),{status:c,loading:p}=G(),r=c.allowed,t=l({queryKey:["groups","detail",o],queryFn:()=>u({data:{slug:o}}),enabled:r,retry:!1}),s=r?t.data??null:null,a=s?h(s):!1,i=l({queryKey:["groups","roster",s?.id],queryFn:()=>d({data:{group_id:s.id}}),enabled:a&&!!s?.id,retry:!1}),m=p||r&&t.isPending;return e.jsxs("div",{className:"flex flex-col lg:flex-row gap-6",children:[e.jsx("div",{className:"flex-1 min-w-0",children:m?e.jsx("div",{className:"bg-white border border-black/10 h-64 animate-pulse",style:{borderRadius:"13px"},"aria-busy":"true"}):s?e.jsx(b,{group:s,roster:i.data??[],rosterLoading:a&&i.isPending,actions:e.jsx(f,{group:s})}):e.jsx(v,{})}),e.jsx(x,{})]})}export{D 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.