1import{c as te,j as t,u as ke,d as Te,r as G,a as Qe,h as Ge}from"./vendor-react.MfGudbed.js";import{D as $e}from"./DataTableCard.BUvV20CN.js";import{b as oe,u as _e,a as Ye}from"./vendor-query.DIUg6SBK.js";import{u as Je}from"./index.CVoNfHSg.js";import{o as Pe}from"./sorting.DnK-ZAp7.js";import{u as me}from"./upperCase.Dr3kCQQ1.js";import{u as Fe,s as be}from"./useRowLink.BKt2eRME.js";import{D as ue}from"./DateDisplay.Bwue21hL.js";import{E as De}from"./ErrorMessage.DY6woqq8.js";import{R as ge,e as fe,L as Ee,a as Xe,A as Ze}from"./main.B4hDkGeQ.js";import{C as Le,d as Ce}from"./StatusLabel.Cx_yj5L8.js";import{a as Ie,e as Ae}from"./containerHelpers.U_Ntc5-Q.js";import{P as et}from"./Pagination.cxS9Aw6H.js";import{a3 as ne,T as A,au as se,ar as u,B as M,as as qe,at as Be,aw as Ne,av as Oe,s as pe,a as le,a6 as Me,R as We,ak as xe,Q as ve,K as je,b as ye,$ as tt,_ as st,L as Se,ao as nt}from"./vendor-mui.CZc_EWyr.js";import{S as it}from"./SearchInput.Hp_lXOVZ.js";import{b as Ue,d as Ve,c as at}from"./StyledDropdownComponents.tJfOHuds.js";import{au as rt,G as Re,ad as lt,b as ot,a7 as ct,I as dt}from"./vendor-icons.DvUeYxMq.js";import{u as ht}from"./useTimezone.DrTNPWBT.js";import{T as mt}from"./TimezoneSelect.CGribOq1.js";import{s as ut,l as ft,g as pt}from"./containers.api.BI5ighIz.js";import"./DataTableCard.constants.Dc8K6m1Y.js";import"./vendor-form.DdL81ZeL.js";import"./index.1cYQ4RgG.js";import"./vendor-date.DTRB5335.js";import"./vendor-aws.BQPMFirn.js";import"./useSearchHotkey.CmRMTac-.js";const J={runInfo:ge("containerRunInfo",!1),readinessStatus:ge("containerReadinessStatus",!0),showDetails:ge("containerShowDetails",!1)},gt=async(s,e,n)=>{const{data:i}=await fe.get(`https://rest.cerebrium.ai/v2/projects/${s}/apps/${e}/runs`,{params:{containerId:n,limit:25}});return i},Ke=s=>{const e=te.c(8),{projectId:n,appId:i,containerId:r}=s;let f;e[0]!==i||e[1]!==r||e[2]!==n?(f={queryKey:["container_run_count",n,i,r],queryFn:()=>gt(n,i,r),refetchInterval:2e4},e[0]=i,e[1]=r,e[2]=n,e[3]=f):f=e[3];const{data:C,isLoading:H,error:z}=oe(f);if(H){let c;return e[4]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(ne,{variant:"text",width:80,height:20}),e[4]=c):c=e[4],c}if(z){let c;return e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(A,{variant:"body2",children:"--"}),e[5]=c):c=e[5],c}const $=C?.items?.length||0,x=C?.nextToken?"+":"",S=$===25?`25${x}`:$;let o;return e[6]!==S?(o=t.jsx(A,{variant:"body2",children:S}),e[6]=S,e[7]=o):o=e[7],o},xt=async(s,e,n)=>{const{data:i}=await fe.get(`https://rest.cerebrium.ai/v2/projects/${s}/apps/${e}/runs`,{params:{containerId:n,limit:1}});return i},He=s=>{const e=te.c(10),{projectId:n,appId:i,containerId:r}=s;let f;e[0]!==i||e[1]!==r||e[2]!==n?(f={queryKey:["container_last_request",n,i,r],queryFn:()=>xt(n,i,r),refetchInterval:2e4},e[0]=i,e[1]=r,e[2]=n,e[3]=f):f=e[3];const{data:C,isLoading:H,error:z}=oe(f);if(H){let o;return e[4]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(ne,{variant:"text",width:80,height:20}),e[4]=o):o=e[4],o}if(z){let o;return e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(A,{variant:"body2",children:"--"}),e[5]=o):o=e[5],o}if(!C?.items||C.items.length===0){let o;return e[6]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(A,{variant:"body2",children:"--"}),e[6]=o):o=e[6],o}const $=C.items[0],x=$.completedAt||$.createdAt;if(!x){let o;return e[7]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(A,{variant:"body2",children:"--"}),e[7]=o):o=e[7],o}let S;return e[8]!==x?(S=t.jsx(ue,{date:x}),e[8]=x,e[9]=S):S=e[9],S},bt=(s,e)=>{const n=[{id:"#",label:"#",alignRight:!1,disabled:!0},{id:"containerId",label:"Container ID",alignRight:!1},{id:"buildId",label:"Build ID",alignRight:!1},{id:"hardwareProvider",label:"Provider",alignRight:!1}];return e&&(n.push({id:"hostIp",label:"Host IP",alignRight:!1}),n.push({id:"containerIp",label:"Container IP",alignRight:!1}),n.push({id:"region",label:"Region",alignRight:!1}),n.push({id:"revision",label:"Revision",alignRight:!1})),n.push({id:"containerStartTimestamp",label:"Started",alignRight:!1}),n.push({id:"containerTerminationTimestamp",label:"Terminated",alignRight:!1}),n.push({id:"containerState",label:"Status",alignRight:!1}),n.push({id:"containerRestartCount",label:"Restart Count",alignRight:!0}),n.push({id:"containerTerminationExitCode",label:"Exit Code",alignRight:!0}),s&&(n.push({id:"runCount",label:"Run Count",alignRight:!0,disabled:!0}),n.push({id:"lastRequestTime",label:"Last Run Time",alignRight:!1,disabled:!0})),n},jt=async(s,e,n=1,i="")=>{const r={status:"terminated",page:n,limit:25};i&&(r.search=i);const{data:f}=await fe.get(`https://rest.cerebrium.ai/v3/projects/${s}/apps/${e}/containers/search`,{params:r});return f},yt=s=>
1{const e=te.c(61),{projectId:n,appId:i,searchContainerId:r,enabled:f}=s,C=ke(),H=Te(),z=Fe();let $;e[0]!==C?($=(w,F)=>{const g=new URLSearchParams(C.search);return g.set(w,F),`${C.pathname}?${g.toString()}`},e[0]=C,e[1]=$):$=e[1];const x=$,S=_e(),[o,c]=G.useState("desc"),[m,_]=G.useState("containerTerminationTimestamp"),[j,D]=G.useState(1),[V,y]=G.useState(r);r!==V&&(y(r),D(1));let E;e[2]!==o||e[3]!==m?(E=w=>{c(m===w&&o==="asc"?"desc":"asc"),_(w)},e[2]=o,e[3]=m,e[4]=E):E=e[4];const N=E;let T,q;e[5]!==i||e[6]!==j||e[7]!==n||e[8]!==r?(T=["list_terminated_app_containers",n,i,j,r],q=()=>jt(n,i,j,r),e[5]=i,e[6]=j,e[7]=n,e[8]=r,e[9]=T,e[10]=q):(T=e[9],q=e[10]);let L;e[11]!==f||e[12]!==T||e[13]!==q?(L={queryKey:T,queryFn:q,enabled:f,refetchOnWindowFocus:!0,refetchInterval:6e4},e[11]=f,e[12]=T,e[13]=q,e[14]=L):L=e[14];const{data:P,error:B,isFetched:I}=oe(L);if(B){let w;return e[15]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(De,{subtitle:"There was an error fetching terminated containers."}),e[15]=w):w=e[15],w}let k,d,p,R,b,a,h;if(e[16]!==i||e[17]!==j||e[18]!==P||e[19]!==x||e[20]!==N||e[21]!==I||e[22]!==o||e[23]!==m||e[24]!==n||e[25]!==H||e[26]!==S||e[27]!==z||e[28]!==r){const w=P?.length?Pe(P,m,o):[],F=bt(J.runInfo.isEnabled(),J.showDetails.isEnabled());let g;e[36]!==j?(g=()=>{j>1&&D(j-1)},e[36]=j,e[37]=g):g=e[37];const U=g;let Q;e[38]!==j?(Q=()=>{D(j+1)},e[38]=j,e[39]=Q):Q=e[39];const X=Q;d=$e,h=(w?.length>0||j>1)&&t.jsx(M,{sx:{borderTop:1,borderColor:"divider"},children:t.jsx(et,{currentPage:j,onPrevious:U,onNext:X,disablePrevious:j===1,disableNext:w?.length<25})});let K;e[40]!==N||e[41]!==o||e[42]!==m?(K=l=>t.jsx(u,{align:l.alignRight?"right":"left",sortDirection:m===l.id?o:!1,children:l.disabled?l.label:t.jsxs(qe,{hideSortIcon:!0,active:m===l.id,direction:m===l.id?o:"asc",onClick:()=>N(l.id),children:[l.label,m===l.id?t.jsx(M,{sx:{...Be},children:o==="asc"?"sorted descending":"sorted ascending"}):null]})},l.id),e[40]=N,e[41]=o,e[42]=m,e[43]=K):K=e[43];const Y=F.map(K);e[44]!==Y?(p=t.jsx(Ne,{children:t.jsx(se,{children:Y})}),e[44]=Y,e[45]=p):p=e[45],k=Oe,R=!w?.length&&!I&&new Array(3).fill("").map((l,O)=>t.jsx(St,{columns:F},O)),e[46]!==F||e[47]!==P?.length||e[48]!==I||e[49]!==r?(b=I&&!P?.length&&t.jsx(se,{children:t.jsx(u,{colSpan:F.length,align:"center",sx:{py:4},children:t.jsx(A,{variant:"body1",sx:{color:"text.secondary"},children:r?`No terminated containers found matching "${r}"`:"No terminated containers found"})})}),e[46]=F,e[47]=P?.length,e[48]=I,e[49]=r,e[50]=b):b=e[50],a=w?.map((l,O)=>t.jsx(Qe.Fragment,{children:t.jsxs(se,{role:"link","aria-label":`View terminated container ${l.containerId}`,hover:!0,...z(x("containerId",l.containerId),{onNavigate:()=>{S.setQueryData(["container_details",n,i,l.containerId],Z=>Z||{__partial:!0,appId:l.appId,projectId:l.projectId,state:l.containerState,startedAt:l.containerStartTimestamp,endedAt:l.containerTerminationTimestamp,restartCount:l.containerRestartCount,hostIp:l.hostIp,hardwareProvider:l.hardwareProvider,buildId:l.buildId,containerTerminationExitCode:l.containerTerminationExitCode}),H(x("containerId",l.containerId))}}),sx:{borderBottom:_t,cursor:"pointer","&:hover":{backgroundColor:It}},children:[t.jsx(u,{size:"small",align:"left",children:(j-1)*25+O+1}),t.jsx(u,{size:"small",align:"left",children:t.jsx(M,{sx:{maxWidth:560},children:t.jsx(A,{variant:"body2",sx:Ct,children:Ie(l.containerId)})})}),t.jsx(u,{size:"small",align:"left",...l.buildId?z(x("buildId",l.buildId),{nested:!0}):be,sx:{cursor:l.buildId?"pointer":"default","&:hover":l.buildId?{textDecoration:"underline"}:{}},children:t.jsx(A,{variant:"body2",sx:vt,children:l.buildId||"--"})}),t.jsx(u,{size:"small",align:"left",children:l.hardwareProvider?t.jsx(Ee,{color:"default",variant:"ghost",children:me(l.hardwareProvider)}):"--"}),J.showDetails.isEnabled()&&t.jsxs(t.Fragment,{children:[t.jsx(u,{size:"small",align:"left",children:l.hostIp||"--"}),t.jsx(u,{size:"small",align:"left",children:l.containerIp||"--"}),t.jsx(u,{size:"small",align:"left",children:me(l.region||"--")}),t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:Rt,children:l.revision||Ae(l.containerId)})})]}),t.jsx(u,{size:"small",align:"left",children:t.jsx(ue,{date:l.containerStartTimestamp})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(ue,{date:l.containerTerminationTimestamp})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(Le,{status:l.containerState})}),t.jsx(u,{size:"small",align:"right",children:l.containerRestartCount}),t.jsx(u,{size:"small",align:"right",children:l.containerTerminationExitCode??"--"}),J.runInfo.isEnabled()&&t.jsxs(t.Fragment,{children:[t.jsx(u,{size:"small",align:"right",children:t.jsx(Ke,{projectId:l.projectId,appId:l.appId,containerId:l.containerId})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(He,{projectId:l.projectId,appId:l.appId,containerId:l.containerId})})]})]})},l.containerId)),e[16]=i,e[17]=j,e[18]=P,e[19]=x,e[20]=N,e[21]=I,e[22]=o,e[23]=m,e[24]=n,e[25]=H,e[26]=S,e[27]=z,e[28]=r,e[29]=k,e[30]=d,e[31]=p,e[32]=R,e[33]=b,e[34]=a,e[35]=h}else k=e[29],d=e[30],p=e[31],R=e[32],b=e[33],a=e[34],h=e[35];let v;e[51]!==k||e[52]!==R||e[53]!==b||e[54]!==a?(v=t.jsxs(k,{children:[R,b,a]}),e[51]=k,e[52]=R,e[53]=b,e[54]=a,e[55]=v):v=e[55];let W;return e[56]!==d||e[57]!==p||e[58]!==v||e[59]!==h?(W=t.jsx(t.Fragment,{children:t.jsxs(d,{footer:h,children:[p,v]})}),e[56]=d,e[57]=p,e[58]=v,e[59]=h,e[60]=W):W=e[60],W},St=s=>{const e=te.c(4),{columns:n}=s;let i;e[0]!==n?(i=n.map(wt),e[0]=n,e[1]=i):i=e[1];let r;return e[2]!==i?(r=t.jsx(se,{children:i}),e[2]=i,e[3]=r):r=e[3],r};function _t(s){return`solid 1px ${s.palette.divider}`}function It(s){return s.palette.action.hover}function Ct(s){return{...s.typography.mono}}function vt(s){return{...s.typography.mono}}function Rt(s){return{...s.typography.mono}}function wt(s){return t.jsx(u,{size:"small",align:s.alignRight?"right":"left",children:t.jsx(ne,{variant:"text"})},s.id)}const zt=pe(Ue)(({theme:s})=>({position:"relative","&::after":{content:'""',position:"absolute",top:6,right:6,width:8,height:8,borderRadius:"50%",backgroundColor:s.palette.primary.main}})),kt=pe(M)(({theme:s})=>({display:"flex",height:40,borderRadius:s.spacing(1),backgroundColor:s.palette.mode==="dark"?le(s.palette.background.paper,.8):s.palette.background.paper,border:`1px solid ${s.palette.divider}`,overflow:"hidden"})),we=pe(Me,{shouldForwardProp:s=>s!=="isActive"})(({theme:s,isActive:e})=>({padding:s.spacing(0,2),fontSize:"0.875rem",fontWeight:400,color:e?s.palette.primary.main:s.palette.text.secondary,backgroundColor:e?le(s.palette.primary.main,.08):"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:e?le(s.palette.primary.main,.12):le(s.palette.action.hover,.04)},"&:not(:last-child)":{borderRight:`1px solid ${s.palette.divider}`}})),ze=pe(Me,{shouldForwardProp:s=>s!=="isActive"})(({theme:s,isActive:e})=>({width:"100%",padding:s.spacing(1.5,2),justifyContent:"space-between",fontSize:"0.875rem",fontWeight:e?500:400,color:e?s.palette.primary.main:s.palette.text.primary,backgroundColor:e?le(s.palette.primary.main,.08):"transparent",transition:"all 0.2s ease","&:hover":{backgroundColor:le(s.palette.primary.main,.04)}})),Tt=s=>{const e=te.c(46),{stateFilter:n,onStateFilterChange:i}=s,[r,f]=G.useState(null);let C;e[0]===Symbol.for("react.memo_cache_sentinel")?(C=v=>{f(v.currentTarget)},e[0]=C):C=e[0];const H=C;let z;e[1]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{f(null)},e[1]=z):z=e[1];const $=z;let x;e[2]!==i?(x=v=>{i(v),$()},e[2]=i,e[3]=x):x=e[3];const S=x;let o;
1e[4]===Symbol.for("react.memo_cache_sentinel")?(o={display:{xs:"none",sm:"flex"}},e[4]=o):o=e[4];const c=n==="running";let m;e[5]!==i?(m=()=>i("running"),e[5]=i,e[6]=m):m=e[6];let _;e[7]!==c||e[8]!==m?(_=t.jsx(we,{isActive:c,onClick:m,children:"Running"}),e[7]=c,e[8]=m,e[9]=_):_=e[9];const j=n==="terminated";let D;e[10]!==i?(D=()=>i("terminated"),e[10]=i,e[11]=D):D=e[11];let V;e[12]!==j||e[13]!==D?(V=t.jsx(we,{isActive:j,onClick:D,children:"Terminated"}),e[12]=j,e[13]=D,e[14]=V):V=e[14];let y;e[15]!==V||e[16]!==_?(y=t.jsxs(kt,{sx:o,children:[_,V]}),e[15]=V,e[16]=_,e[17]=y):y=e[17];let E;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(We,{title:"Filter by state",children:t.jsx(zt,{onClick:H,size:"small",sx:{display:{xs:"inline-flex",sm:"none"}},children:t.jsx(rt,{size:20,stroke:1.75})})}),e[18]=E):E=e[18];const N=!!r;let T,q,L;e[19]===Symbol.for("react.memo_cache_sentinel")?(T={vertical:"bottom",horizontal:"right"},q={vertical:"top",horizontal:"right"},L={paper:{sx:{minWidth:180}}},e[19]=T,e[20]=q,e[21]=L):(T=e[19],q=e[20],L=e[21]);const P=n==="running";let B;e[22]!==S?(B=()=>S("running"),e[22]=S,e[23]=B):B=e[23];let I;e[24]!==n?(I=n==="running"&&t.jsx(Re,{size:18,stroke:1.75}),e[24]=n,e[25]=I):I=e[25];let k;e[26]!==P||e[27]!==B||e[28]!==I?(k=t.jsxs(ze,{isActive:P,onClick:B,children:["Running",I]}),e[26]=P,e[27]=B,e[28]=I,e[29]=k):k=e[29];const d=n==="terminated";let p;e[30]!==S?(p=()=>S("terminated"),e[30]=S,e[31]=p):p=e[31];let R;e[32]!==n?(R=n==="terminated"&&t.jsx(Re,{size:18,stroke:1.75}),e[32]=n,e[33]=R):R=e[33];let b;e[34]!==d||e[35]!==p||e[36]!==R?(b=t.jsxs(ze,{isActive:d,onClick:p,children:["Terminated",R]}),e[34]=d,e[35]=p,e[36]=R,e[37]=b):b=e[37];let a;e[38]!==r||e[39]!==N||e[40]!==k||e[41]!==b?(a=t.jsxs(Ve,{anchorEl:r,open:N,onClose:$,anchorOrigin:T,transformOrigin:q,slotProps:L,children:[k,b]}),e[38]=r,e[39]=N,e[40]=k,e[41]=b,e[42]=a):a=e[42];let h;return e[43]!==y||e[44]!==a?(h=t.jsxs(t.Fragment,{children:[y,E,a]}),e[43]=y,e[44]=a,e[45]=h):h=e[45],h},$t=s=>{const e=te.c(66),{onSettingChange:n}=s,[i,r]=G.useState(null);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=J.runInfo.isEnabled(),e[0]=f):f=e[0];const[C,H]=G.useState(f);let z;e[1]===Symbol.for("react.memo_cache_sentinel")?(z=J.showDetails.isEnabled(),e[1]=z):z=e[1];const[$,x]=G.useState(z),{selectedTimezone:S,setSelectedTimezone:o,useRelativeDates:c,setUseRelativeDates:m}=ht();let _;e[2]===Symbol.for("react.memo_cache_sentinel")?(_=ee=>{r(ee.currentTarget)},e[2]=_):_=e[2];const j=_;let D;e[3]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{r(null)},e[3]=D):D=e[3];const V=D;let y;e[4]!==n?(y=ee=>{H(ee),ee?J.runInfo.enable():J.runInfo.disable(),n?.()},e[4]=n,e[5]=y):y=e[5];const E=y;let N;e[6]!==n?(N=ee=>{x(ee),ee?J.showDetails.enable():J.showDetails.disable(),n?.()},e[6]=n,e[7]=N):N=e[7];const T=N;let q;e[8]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(We,{title:"Display settings",disableInteractive:!0,placement:"bottom-end",children:t.jsx(Ue,{"aria-label":"Display settings",onClick:j,size:"small",children:t.jsx(lt,{size:20,stroke:1.75})})}),e[8]=q):q=e[8];const L=!!i;let P,B;e[9]===Symbol.for("react.memo_cache_sentinel")?(B={vertical:"bottom",horizontal:"right"},P={vertical:"top",horizontal:"right"},e[9]=P,e[10]=B):(P=e[9],B=e[10]);let I;e[11]===Symbol.for("react.memo_cache_sentinel")?(I={py:1},e[11]=I):I=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(A,{variant:"subtitle2",sx:{px:2,py:1,fontWeight:600,color:"text.secondary",fontSize:"0.75rem",textTransform:"uppercase",letterSpacing:.5},children:"Display Options"}),e[12]=k):k=e[12];let d;e[13]!==m||e[14]!==c?(d=()=>m(!c),e[13]=m,e[14]=c,e[15]=d):d=e[15];let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(A,{variant:"body2",sx:{fontSize:"0.875rem"},children:"Use relative dates"}),e[16]=p):p=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsxs(M,{children:[p,t.jsx(A,{variant:"caption",sx:{color:"text.secondary",display:"block",mt:.5},children:'Show times as "5 minutes ago" instead of absolute dates'})]}),e[17]=R):R=e[17];let b;e[18]!==m||e[19]!==c?(b=()=>m(!c),e[18]=m,e[19]=c,e[20]=b):b=e[20];let a;e[21]!==b||e[22]!==c?(a=t.jsx(xe,{checked:c,size:"small",onClick:Pt,onChange:b}),e[21]=b,e[22]=c,e[23]=a):a=e[23];let h;e[24]!==d||e[25]!==a?(h=t.jsxs(at,{onClick:d,children:[R,a]}),e[24]=d,e[25]=a,e[26]=h):h=e[26];let v;e[27]!==S||e[28]!==o||e[29]!==c?(v=!c&&t.jsxs(t.Fragment,{children:[t.jsx(ve,{sx:{my:1,opacity:.5}}),t.jsxs(M,{sx:{px:2,py:1.5},children:[t.jsx(A,{variant:"body2",sx:{fontSize:"0.875rem",mb:1},children:"Timezone"}),t.jsx(mt,{value:S,onChange:ee=>o(ee.target.value),size:"small",fullWidth:!0,sx:{fontSize:"0.875rem","& .MuiSelect-select":{py:1}}})]})]}),e[27]=S,e[28]=o,e[29]=c,e[30]=v):v=e[30];let W;e[31]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(ve,{sx:{my:1,opacity:.5}}),e[31]=W):W=e[31];let w;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(A,{variant:"subtitle2",sx:{px:2,py:1,fontWeight:600,color:"text.secondary",fontSize:"0.75rem",textTransform:"uppercase",letterSpacing:.5},children:"Column Options"}),e[32]=w):w=e[32];let F;e[33]===Symbol.for("react.memo_cache_sentinel")?(F={px:2,py:1},e[33]=F):F=e[33];let g;e[34]!==E?(g=ee=>E(ee.target.checked),e[34]=E,e[35]=g):g=e[35];let U;e[36]!==C||e[37]!==g?(U=t.jsx(xe,{size:"small",checked:C,onChange:g}),e[36]=C,e[37]=g,e[38]=U):U=e[38];let Q;e[39]===Symbol.for("react.memo_cache_sentinel")?(Q={marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontSize:"0.875rem"}},e[39]=Q):Q=e[39];let X;e[40]!==U?(X=t.jsx(je,{control:U,label:"Show Run Info",sx:Q}),e[40]=U,e[41]=X):X=e[41];let K;e[42]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(A,{variant:"caption",sx:{dis
1play:"block",pl:4.5,color:"text.secondary",mt:.5},children:"Display run count and last run time"}),e[42]=K):K=e[42];let Y;e[43]!==X?(Y=t.jsxs(M,{sx:F,children:[X,K]}),e[43]=X,e[44]=Y):Y=e[44];let l;e[45]===Symbol.for("react.memo_cache_sentinel")?(l={px:2,py:1},e[45]=l):l=e[45];let O;e[46]!==T?(O=ee=>T(ee.target.checked),e[46]=T,e[47]=O):O=e[47];let Z;e[48]!==$||e[49]!==O?(Z=t.jsx(xe,{size:"small",checked:$,onChange:O}),e[48]=$,e[49]=O,e[50]=Z):Z=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce={marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontSize:"0.875rem"}},e[51]=ce):ce=e[51];let ie;e[52]!==Z?(ie=t.jsx(je,{control:Z,label:"Show Details",sx:ce}),e[52]=Z,e[53]=ie):ie=e[53];let de;e[54]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(A,{variant:"caption",sx:{display:"block",pl:4.5,color:"text.secondary",mt:.5},children:"Display host IP, container IP, region, and revision"}),e[54]=de):de=e[54];let ae;e[55]!==ie?(ae=t.jsxs(M,{sx:l,children:[ie,de]}),e[55]=ie,e[56]=ae):ae=e[56];let re;e[57]!==h||e[58]!==v||e[59]!==Y||e[60]!==ae?(re=t.jsxs(M,{sx:I,children:[k,h,v,W,w,Y,ae]}
1),e[57]=h,e[58]=v,e[59]=Y,e[60]=ae,e[61]=re):re=e[61];let he;return e[62]!==i||e[63]!==re||e[64]!==L?(he=t.jsxs(t.Fragment,{children:[q,t.jsx(Ve,{anchorEl:i,open:L,onClose:V,anchorOrigin:B,transformOrigin:P,children:re})]}),e[62]=i,e[63]=re,e[64]=L,e[65]=he):he=e[65],he};function Pt(s){return s.stopPropagation()}const Ft=s=>{const e=te.c(56),{open:n,onClose:i,containerIds:r,projectId:f,appId:C,onComplete:H}=s,{enqueueSnackbar:z}=Xe(),$=_e(),[x,S]=G.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={},e[0]=o):o=e[0];const[c,m]=G.useState(o),[_,j]=G.useState(!1);let D;e[1]!==C||e[2]!==x||e[3]!==f?(D={mutationFn:U=>ut(f,C,U,x)},e[1]=C,e[2]=x,e[3]=f,e[4]=D):D=e[4];const V=Ye(D);let y,E;e[5]!==C||e[6]!==r||e[7]!==z||e[8]!==_||e[9]!==i||e[10]!==H||e[11]!==f||e[12]!==$||e[13]!==V?(E=async()=>{j(!0);const U={};r.forEach(K=>{U[K]="pending"}),m(U);let Q=0,X=0;for(const K of r){m(Y=>({...Y,[K]:"stopping"}));try{await V.mutateAsync(K),m(Y=>({...Y,[K]:"success"})),Q++}catch{m(Y=>({...Y,[K]:"error"})),X++}}await $.invalidateQueries({queryKey:["list_recent_app_containers",f,C]}),X===0?z(`${Q} container${Q!==1?"s":""} stopped`,{variant:"success"}):z(`${Q} stopped, ${X} failed`,{variant:"warning"}),j(!1),H(),y()},y=()=>{_||(m({}),S(!1),i())},e[5]=C,e[6]=r,e[7]=z,e[8]=_,e[9]=i,e[10]=H,e[11]=f,e[12]=$,e[13]=V,e[14]=y,e[15]=E):(y=e[14],E=e[15]);const N=Dt;let T;e[16]!==c?(T=Object.keys(c),e[16]=c,e[17]=T):T=e[17];const q=T.length>0,L=`Stop ${r.length} Container${r.length!==1?"s":""}`;let P;e[18]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(A,{variant:"body2",sx:{color:"text.secondary",mb:2},children:"This action may not have the intended effect. It is primarily intended for resolving stuck containers and is not recommended under normal circumstances."}),e[18]=P):P=e[18];let B;e[19]===Symbol.for("react.memo_cache_sentinel")?(B={maxHeight:200,overflow:"auto",border:1,borderColor:"divider",borderRadius:1},e[19]=B):B=e[19];let I;if(e[20]!==r||e[21]!==c){let U;e[23]!==c?(U=Q=>t.jsx(tt,{sx:{borderBottom:1,borderColor:"divider","&:last-child":{borderBottom:0}},secondaryAction:N(c[Q]),children:t.jsx(A,{variant:"body2",sx:Et,children:Ie(Q)})},Q),e[23]=c,e[24]=U):U=e[24],I=r.map(U),e[20]=r,e[21]=c,e[22]=I}else I=e[22];let k;e[25]!==I?(k=t.jsx(M,{sx:B,children:t.jsx(st,{dense:!0,disablePadding:!0,children:I})}),e[25]=I,e[26]=k):k=e[26];let d;e[27]===Symbol.for("react.memo_cache_sentinel")?(d={mt:2,pt:2,borderTop:"1px solid",borderColor:"divider"},e[27]=d):d=e[27];let p;e[28]===Symbol.for("react.memo_cache_sentinel")?(p=U=>S(U.target.checked),e[28]=p):p=e[28];let R;e[29]!==x||e[30]!==_?(R=t.jsx(Se,{checked:x,onChange:p,color:"error",disabled:_}),e[29]=x,e[30]=_,e[31]=R):R=e[31];let b;e[32]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsxs(A,{variant:"body2",children:[t.jsx("b",{children:"Force stop"})," (immediate termination)"]}),e[32]=b):b=e[32];let a;e[33]!==R?(a=t.jsx(M,{sx:d,children:t.jsx(je,{control:R,label:b})}),e[33]=R,e[34]=a):a=e[34];let h;e[35]!==a||e[36]!==k?(h=t.jsxs(t.Fragment,{children:[P,k,a]}),e[35]=a,e[36]=k,e[37]=h):h=e[37];const v=q?"Close":"Cancel";let W;e[38]!==y||e[39]!==_||e[40]!==v?(W=t.jsx(ye,{onClick:y,disabled:_,children:v}),e[38]=y,e[39]=_,e[40]=v,e[41]=W):W=e[41];let w;e[42]!==r.length||e[43]!==E||e[44]!==q||e[45]!==_?(w=!q&&t.jsxs(ye,{startIcon:t.jsx(ot,{size:20}),variant:"contained",color:"error",onClick:E,disabled:_,children:["Stop ",r.length," Container",r.length!==1?"s":""]}),e[42]=r.length,e[43]=E,e[44]=q,e[45]=_,e[46]=w):w=e[46];let F;e[47]!==W||e[48]!==w?(F=t.jsxs(t.Fragment,{children:[W,w]}),e[47]=W,e[48]=w,e[49]=F):F=e[49];let g;return e[50]!==y||e[51]!==n||e[52]!==h||e[53]!==F||e[54]!==L?(g=t.jsx(Ze,{open:n,title:L,onReject:y,content:h,actions:F}),e[50]=y,e[51]=n,e[52]=h,e[53]=F,e[54]=L,e[55]=g):g=e[55],g};function Dt(s){switch(s){case"stopping":return t.jsx(nt,{size:16});case"success":return t.jsx(M,{component:"span",sx:{display:"inline-flex",color:"success.main"},children:t.jsx(dt,{size:20})});case"error":return t.jsx(M,{component:"span",sx:{display:"inline-flex",color:"error.main"},children:t.jsx(ct,{size:20})});default:return null}}function Et(s){return{...s.typography.mono}}const Lt=async(s,e)=>{const{data:n}=await fe.get(`https://rest.cerebrium.ai/v3/projects/${s}/apps/${e}/containers/cpu-mem`);return n},At=s=>{if(s==null||!Number.isFinite(s))return"â";if(s>=1e3){const e=s/1e3;return`${e.toFixed(2)} ${e===1?"vCPU":"vCPUs"}`}return`${s.toFixed(3)} vCPUs`},qt=s=>s==null||!Number.isFinite(s)?"â":s>=1e3?`${(s/1024).toFixed(2)} GB`:`${s.toFixed(0)} MB`,Bt=s=>
1{const e=te.c(55),{projectId:n,appId:i,containerId:r}=s;let f;e[0]!==i||e[1]!==n?(f={queryKey:["all_containers_metrics",n,i],queryFn:()=>Lt(n,i),refetchInterval:3e4},e[0]=i,e[1]=n,e[2]=f):f=e[2];const{data:C,isLoading:H,error:z}=oe(f);if(H){let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(u,{size:"small",align:"left",children:t.jsx(ne,{variant:"text",width:50,height:20})}),e[3]=d):d=e[3];let p;return e[4]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(t.Fragment,{children:[d,t.jsx(u,{size:"small",align:"left",children:t.jsx(ne,{variant:"text",width:60,height:20})})]}),e[4]=p):p=e[4],p}if(z||!C){let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:{color:"text.secondary"},children:"--"})}),e[5]=d):d=e[5];let p;return e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs(t.Fragment,{children:[d,t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:{color:"text.secondary"},children:"--"})})]}),e[6]=p):p=e[6],p}let $,x,S,o,c,m,_,j,D,V,y,E;if(e[7]!==r||e[8]!==C){E=Symbol.for("react.early_return_sentinel");e:{const d=C?.find(F=>F.container_id===r);if(!d){let F;e[21]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:{color:"text.secondary"},children:"--"})}),e[21]=F):F=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs(t.Fragment,{children:[F,t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:{color:"text.secondary"},children:"--"})})]}),e[22]=g):g=e[22],E=g;break e}const p=d.cpu!==void 0&&d.total_cpu?d.cpu/d.total_cpu*100:0;o=d.memory!==void 0&&d.total_mem?d.memory/d.total_mem*100:0;let R;e[23]===Symbol.for("react.memo_cache_sentinel")?(R={display:"flex",alignItems:"center",gap:1},e[23]=R):R=e[23];let b;e[24]===Symbol.for("react.memo_cache_sentinel")?(b={minWidth:40},e[24]=b):b=e[24];let a;e[25]===Symbol.for("react.memo_cache_sentinel")?(a={width:60,height:6,position:"relative"},e[25]=a):a=e[25];let h;e[26]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(M,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:1,backgroundColor:Nt}}),e[26]=h):h=e[26];const v=`${Math.min(p,100)}%`;let W;e[27]!==v?(W=t.jsxs(M,{sx:a,children:[h,t.jsx(M,{sx:{position:"absolute",width:v,height:"100%",borderRadius:1,backgroundColor:Ot}})]}),e[27]=v,e[28]=W):W=e[28];const w=t.jsxs(M,{sx:R,children:[t.jsx(A,{variant:"body2",sx:b,children:At(d.cpu)}),W]});e[29]!==w?(y=t.jsx(u,{size:"small",align:"left",children:w}),e[29]=w,e[30]=y):y=e[30],S=u,D="small",V="left",x=M,e[31]===Symbol.for("react.memo_cache_sentinel")?(j={display:"flex",alignItems:"center",gap:1},e[31]=j):j=e[31],$=A,c="body2",e[32]===Symbol.for("react.memo_cache_sentinel")?(m={minWidth:50},e[32]=m):m=e[32],_=qt(d.memory)}e[7]=r,e[8]=C,e[9]=$,e[10]=x,e[11]=S,e[12]=o,e[13]=c,e[14]=m,e[15]=_,e[16]=j,e[17]=D,e[18]=V,e[19]=y,e[20]=E}else $=e[9],x=e[10],S=e[11],o=e[12],c=e[13],m=e[14],_=e[15],j=e[16],D=e[17],V=e[18],y=e[19],E=e[20];if(E!==Symbol.for("react.early_return_sentinel"))return E;let N;e[33]!==$||e[34]!==c||e[35]!==m||e[36]!==_?(N=t.jsx($,{variant:c,sx:m,children:_}),e[33]=$,e[34]=c,e[35]=m,e[36]=_,e[37]=N):N=e[37];let T;e[38]===Symbol.for("react.memo_cache_sentinel")?(T={width:60,height:6,position:"relative"},e[38]=T):T=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(M,{sx:{position:"absolute",width:"100%",height:"100%",borderRadius:1,backgroundColor:Mt}}),e[39]=q):q=e[39];const L=`${Math.min(o,100)}%`;let P;e[40]!==L?(P=t.jsxs(M,{sx:T,children:[q,t.jsx(M,{sx:{position:"absolute",width:L,height:"100%",borderRadius:1,backgroundColor:Wt}})]}),e[40]=L,e[41]=P):P=e[41];let B;e[42]!==x||e[43]!==N||e[44]!==P||e[45]!==j?(B=t.jsxs(x,{sx:j,children:[N,P]}),e[42]=x,e[43]=N,e[44]=P,e[45]=j,e[46]=B):B=e[46];let I;e[47]!==S||e[48]!==B||e[49]!==D||e[50]!==V?(I=t.jsx(S,{size:D,align:V,children:B}),e[47]=S,e[48]=B,e[49]=D,e[50]=V,e[51]=I):I=e[51];let k;return e[52]!==I||e[53]!==y?(k=t.jsxs(t.Fragment,{children:[y,I]}),e[52]=I,e[53]=y,e[54]=k):k=e[54],k};function Nt(s){return s.palette.action.hover}function Ot(s){return s.palette.primary.main}function Mt(s){return s.palette.action.hover}function Wt(s){return s.palette.success.main}const Ut=(s,e,n)=>{const i=[{id:"containerId",label:"Container ID",alignRight:!1},{id:"buildId",label:"Build ID",alignRight:!1},{id:"hardwareProvider",label:"Provider",alignRight:!1}];return n&&(i.push({id:"hostIp",label:"Host IP",alignRight:!1}),i.push({id:"containerIp",label:"Container IP",alignRight:!1}),i.push({id:"region",label:"Region",alignRight:!1}),i.push({id:"revision",label:"Revision",alignRight:!1})),i.push({id:"containerStartTimestamp",label:"Started",alignRight:!1}),i.push({id:"containerState",label:"Status",alignRight:!1}),e&&i.push({id:"readinessStatus",label:"Readiness",alignRight:!1,disabled:!0}),i.push({id:"containerRestartCount",label:"Restarts",alignRight:!0}),i.push({id:"cpu",label:"CPU",alignRight:!1,disabled:!0}),i.push({id:"memory",label:"Memory",alignRight:!1,disabled:!0}),s&&(i.push({id:"runCount",label:"Runs",alignRight:!0,disabled:!0}),i.push({id:"lastRequestTime",label:"Last Run",alignRight:!1,disabled:!0})),i},js=()=>
1{const{projectId:s,appId:e}=Ge(),n=ke(),i=Te(),r=Fe(),f=(a,h)=>{const v=new URLSearchParams(n.search);return v.set(a,h),`${n.pathname}?${v.toString()}`},C=_e(),H=new URLSearchParams(n.search),[z,$]=G.useState(H.get("search")||""),[x,S]=G.useState(H.get("state")||"running"),[,o]=G.useState({}),[c,m]=G.useState(new Set),[_,j]=G.useState(!1),{data:D,error:V,isFetched:y}=oe({queryKey:["list_recent_app_containers",s,e],queryFn:()=>ft(s,e),refetchInterval:3e4,refetchIntervalInBackground:!1,refetchOnWindowFocus:!0}),{data:E}=oe({queryKey:["container_readiness_status",s,e],queryFn:()=>pt(s,e),enabled:J.readinessStatus.isEnabled(),refetchInterval:3e4,refetchIntervalInBackground:!1,refetchOnWindowFocus:!0}),N=new Map(E?.map(a=>[a.container_id,a.status==="ready"?"READY":"NOT_READY"])||[]),[T,q]=G.useState("desc"),[L,P]=G.useState("containerStartTimestamp"),B=a=>{q(L===a&&T==="asc"?"desc":"asc"),P(a)},I=D?.filter(a=>{if(!z)return!0;const h=z.toLowerCase();return a.containerId.toLowerCase().includes(h)||a.buildId&&a.buildId.toLowerCase().includes(h)}).map(a=>({...a,displayStatus:a.isTerminating?"TERMINATING":a.containerState})),k=L==="containerState"?"displayStatus":L,d=I?.length?Pe(I,k,T):[],p=Ut(J.runInfo.isEnabled(),J.readinessStatus.isEnabled(),J.showDetails.isEnabled()),R=G.useRef(null),b=Je({count:d.length,getScrollElement:()=>R.current,estimateSize:()=>53,overscan:30});return V?t.jsx(De,{subtitle:"There was an error fetching recent containers."}):t.jsxs(t.Fragment,{children:[t.jsxs(M,{sx:{mb:2,display:"flex",gap:1},children:[t.jsx(M,{sx:{flexGrow:1},children:t.jsx(it,{value:z,onChange:a=>{$(a);const h=new URLSearchParams(n.search);a?h.set("search",a):h.delete("search"),i(`${n.pathname}?${h.toString()}`)},placeholder:"Search by Container ID..."})}),t.jsx(Tt,{stateFilter:x,onStateFilterChange:a=>{S(a),m(new Set);const h=new URLSearchParams(n.search);h.set("state",a),i(`${n.pathname}?${h.toString()}`)}}),t.jsx($t,{onSettingChange:()=>o({})}),x==="running"&&c.size>0&&t.jsxs(ye,{variant:"outlined",onClick:()=>j(!0),children:["Stop Selected (",c.size,")"]})]}),x==="running"&&t.jsxs($e,{tableContainerRef:R,children:[t.jsx(Ne,{children:t.jsxs(se,{children:[t.jsx(u,{padding:"checkbox",children:t.jsx(Se,{indeterminate:c.size>
10&&c.size<d.length,checked:d.length>0&&c.size===d.length,onChange:a=>{a.target.checked?m(new Set(d.map(h=>h.containerId))):m(new Set)}})}),p.map(a=>t.jsx(u,{align:a.alignRight?"right":"left",sortDirection:L===a.id?T:!1,children:a.disabled?a.label:t.jsxs(qe,{hideSortIcon:!0,active:L===a.id,direction:L===a.id?T:"asc",onClick:()=>B(a.id),children:[a.label,L===a.id?t.jsx(M,{sx:{...Be},children:T==="asc"?"sorted descending":"sorted ascending"}):null]})},a.id))]})}),t.jsxs(Oe,{children:[!d?.length&&!y&&new Array(3).fill("").map((a,h)=>t.jsx(Vt,{columns:p},h)),y&&!d.length&&t.jsx(se,{children:t.jsx(u,{colSpan:p.length+1,align:"center",sx:{py:4},children:t.jsx(A,{variant:"body1",sx:{color:"text.secondary"},children:z?`No containers found matching "${z}"`:"No containers found"})})}),d.length>0&&t.jsxs(t.Fragment,{children:[b.getVirtualItems().length>0&&t.jsx("tr",{children:t.jsx("td",{style:{height:b.getVirtualItems()[0]?.start??0,padding:0,border:"none"},colSpan:p.length+1})}),b.getVirtualItems().map(a=>{const{appId:h,projectId:v,hostIp:W,containerStartTimestamp:w,containerRestartCount:F,containerId:g,hardwareProvider:U,containerIp:Q,region:X,buildId:K,revision:Y,displayStatus:l}=d[a.index];return t.jsxs(se,{role:"link","aria-label":`View container ${g}`,"data-index":a.index,hover:!0,selected:c.has(g),...r(f("containerId",g),{onNavigate:()=>{C.setQueryData(["container_details",v,h,g],O=>O||{__partial:!0,appId:h,projectId:v,state:l,startedAt:w,restartCount:F,hostIp:W,hardwareProvider:U,buildId:K}),i(f("containerId",g))}}),sx:{borderBottom:O=>`solid 1px ${O.palette.divider}`,cursor:"pointer","&:hover":{backgroundColor:O=>O.palette.action.hover}},children:[t.jsx(u,{padding:"checkbox",...be,children:t.jsx(Se,{checked:c.has(g),onChange:O=>{const Z=new Set(c);O.target.checked?Z.add(g):Z.delete(g),m(Z)}})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(M,{sx:{maxWidth:560},children:t.jsx(A,{variant:"body2",sx:O=>({...O.typography.mono}),children:Ie(g)})})}),t.jsx(u,{size:"small",align:"left",...K?r(f("buildId",K),{nested:!0}):be,sx:{cursor:K?"pointer":"default","&:hover":K?{textDecoration:"underline"}:{}},children:t.jsx(A,{variant:"body2",sx:O=>({...O.typography.mono}),children:K||"--"})}),t.jsx(u,{size:"small",align:"left",children:U?t.jsx(Ee,{color:"default",variant:"ghost",children:me(U)}):"--"}),J.showDetails.isEnabled()&&t.jsxs(t.Fragment,{children:[t.jsx(u,{size:"small",align:"left",children:W||"--"}),t.jsx(u,{size:"small",align:"left",children:Q||"--"}),t.jsx(u,{size:"small",align:"left",children:me(X||"--")}),t.jsx(u,{size:"small",align:"left",children:t.jsx(A,{variant:"body2",sx:O=>({...O.typography.mono}),children:Y||Ae(g)})})]}),t.jsx(u,{size:"small",align:"left",children:t.jsx(ue,{date:w,fallback:"Pending"})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(Le,{status:l})}),J.readinessStatus.isEnabled()&&t.jsx(u,{size:"small",align:"left",children:N.has(g)?t.jsx(Ce,{status:N.get(g)}):t.jsx(Ce,{status:"UNKNOWN"})}),t.jsx(u,{size:"small",align:"right",children:F}),t.jsx(Bt,{projectId:v,appId:h,containerId:g}),J.runInfo.isEnabled()&&t.jsxs(t.Fragment,{children:[t.jsx(u,{size:"small",align:"right",children:t.jsx(Ke,{projectId:v,appId:h,containerId:g})}),t.jsx(u,{size:"small",align:"left",children:t.jsx(He,{projectId:v,appId:h,containerId:g})})]})]},g)}),b.getVirtualItems().length>0&&t.jsx("tr",{children:t.jsx("td",{style:{height:b.getTotalSize()-(b.getVirtualItems().at(-1)?.end??0),padding:0,border:"none"},colSpan:p.length+1})})]})]})]}),x==="terminated"&&t.jsx(yt,{projectId:s,appId:e,searchContainerId:z,enabled:x==="terminated"}),t.jsx(Ft,{open:_,onClose:()=>j(!1),containerIds:Array.from(c),projectId:s,appId:e,onComplete:()=>m(new Set)})]})},Vt=s=>{const e=te.c(5),{columns:n}=s;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(u,{padding:"checkbox",children:t.jsx(ne,{variant:"rectangular",width:24,height:24})}),e[0]=i):i=e[0];let r;e[1]!==n?(r=n.map(Kt),e[1]=n,e[2]=r):r=e[2];let f;return e[3]!==r?(f=t.jsxs(se,{children:[i,r]}),e[3]=r,e[4]=f):f=e[4],f};function Kt(s){return t.jsx(u,{size:"small",align:s.alignRight?"right":"left",children:t.jsx(ne,{variant:"text"})},s.id)}export{js as RecentContainers,js as default}; 2//# sourceMappingURL=ContainersPage.B2BcE1ue.js.map
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.