1import{r as x,j as e,L as p,B as h,I as j,h as u,m as f,J as n,x as N}from"./index-DLd_kDlx.js";import{S as y}from"./SuperAdminLayout-BsUvQU2j.js";import{u as w}from"./useSuperAdminPods-DR7Jcl7M.js";import{T as v,a as C,b as r,c as a,d as g,e as t}from"./table-BOJIo-OD.js";import{A as D}from"./arrow-left-BXtn7MCa.js";import{S}from"./search-DFH5eAlA.js";import{L as b}from"./loader-circle-D2miE2xB.js";import{T}from"./triangle-alert-Chqk_WK7.js";import{f as i}from"./format-BTXglRCX.js";import"./NotificationIcon-C1wwYnH5.js";import"./popover-BMD5FOmU.js";import"./scroll-area-BXTuUF24.js";import"./index-Deh-4PO1.js";import"./index-BdQq_4o_.js";import"./NotificationItem-Dc2WXW-y.js";import"./formatDistanceToNow-57P64IbE.js";import"./en-US-9SRVm7yB.js";import"./differenceInCalendarMonths-BA0TPVs2.js";import"./endOfDay-DkR3ZXc8.js";import"./endOfMonth-CYn6pTOm.js";import"./message-square-CtxeCfRz.js";import"./trophy-DBX-jNOC.js";import"./dropdown-menu-DSd1c3Vk.js";import"./index-lTaZyIGy.js";import"./chevron-right-CD1gvy-q.js";import"./crown-hzm_bRIt.js";import"./user-check-DxoAQXwU.js";import"./star-BH1OFEcs.js";import"./globe-C057RQ73.js";import"./timer-CZhDpZys.js";import"./briefcase-business-CphIeAJd.js";import"./key-round-B79BulHq.js";const le=()=>{const{completedPods:o,isLoading:c}=w(),[l,d]=x.useState(""),m=o.filter(s=>s.pod_name.toLowerCase().includes(l.toLowerCase()));return e.jsx(y,{children:e.jsxs("div",{className:"space-y-6 animate-fade-in",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(p,{to:"/super-admin/dashboard",children:e.jsx(h,{variant:"ghost",size:"icon",children:e.jsx(D,{className:"h-5 w-5"})})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Completed Sprint Board Pods"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Review completed pod delivery timelines."})]})]}),e.jsxs("div",{className:"relative max-w-sm",children:[e.jsx(S,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(j,{placeholder:"Search pods...",value:l,onChange:s=>d(s.target.value),className:"pl-9"})]}),c?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(b,{className:"h-8 w-8 animate-spin text-primary"})}):e.jsx(u,{children:e.jsx(f,{className:"p-0",children:e.jsxs(v,{children:[e.jsx(C,{children:e.jsxs(r,{children:[e.jsx(a,{children:"Pod Name"}),e.jsx(a,{className:"text-center",children:"Xterns"}),e.jsx(a,{className:"text-center",children:"Timeline"}),e.jsx(a,{children:"Start Date"}),e.jsx(a,{children:"End Date"}),e.jsx(a,{children:"Completed Date"}),e.jsx(a,{className:"text-center",children:"Was At Risk"})]})}),e.jsx(g,{children:m.length===0?e.jsx(r,{children:e.jsx(t,{colSpan:7,className:"text-center text-muted-foreground py-8",children:"No completed pods found"})}):m.map(s=>e.jsxs(r,{children:[e.jsx(t,{className:"font-medium",children:s.pod_name}),e.jsx(t,{className:"text-center",children:s.xternCount}),e.jsxs(t,{className:"text-center",children:[s.podDurationWeeks,"w"]}),e.jsx(t,{children:s.startDate?i(new Date(s.startDate),"MMM d, yyyy"):"â"}),e.jsx(t,{children:s.endDate?i(new Date(s.endDate),"MMM d, yyyy"):"â"}),e.jsx(t,{children:s.completedDate?i(new Date(s.completedDate),"MMM d, yyyy"):"â"}),e.jsx(t,{className:"text-center",children:s.atRisk?e.jsxs(n,{variant:"destructive",className:"gap-1",children:[e.jsx(T,{className:"h-3 w-3"})," Yes"]}):e.jsxs(n,{variant:"secondary",className:"gap-1",children:[e.jsx(N,{className:"h-3 w-3"})," No"]})})]},s.id))})]})})})]})})};export{le 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.