import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{lt as t}from"./vscode-api-DjORcpSo.js";import{a as n,n as r,r as i,t as a}from"./thread-env-icon-Du5P-cuF.js";var o=t(),s=e();function c(e){let t=(0,o.c)(21),{start:c,startActions:l,env:u,secondary:d,trailing:f,hostConfig:p}=e,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(m=[],t[0]=m):m=t[0];let h=m,g=h.length>0,_=f!=null&&g,v;t[1]===c?v=t[2]:(v=c?(0,s.jsx)(`div`,{className:`max-w-[320px] min-w-0 truncate`,children:c}):null,t[1]=c,t[2]=v);let y;t[3]!==u||t[4]!==p?(y=u===`remote`?p==null?null:(0,s.jsx)(i,{hostId:p.id}):u===`worktree`?(0,s.jsx)(n,{}):u===`cloud`?(0,s.jsx)(a,{}):u?(0,s.jsx)(r,{}):null,t[3]=u,t[4]=p,t[5]=y):y=t[5];let b;t[6]===d?b=t[7]:(b=d?(0,s.jsx)(`div`,{className:`flex min-w-0 truncate leading-[18px] font-normal text-token-description-foreground`,children:d}):null,t[6]=d,t[7]=b);let x;t[8]!==l||t[9]!==v||t[10]!==y||t[11]!==b?(x=(0,s.jsxs)(`div`,{className:`text-md flex min-w-0 items-center gap-2 truncate text-base electron:font-medium`,children:[v,y,b,l]}),t[8]=l,t[9]=v,t[10]=y,t[11]=b,t[12]=x):x=t[12];let S;t[13]===_?S=t[14]:(S=g?(0,s.jsxs)(`div`,{className:`flex items-center gap-0.5`,children:[_?(0,s.jsx)(`div`,{className:`mx-2 h-[16px] w-px bg-token-border`}):null,h]}):null,t[13]=_,t[14]=S);let C;t[15]!==S||t[16]!==f?(C=(0,s.jsxs)(`div`,{className:`flex items-center justify-end gap-1.5`,children:[f,S]}),t[15]=S,t[16]=f,t[17]=C):C=t[17];let w;return t[18]!==x||t[19]!==C?(w=(0,s.jsxs)(`div`,{className:`draggable grid w-full min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 electron:h-toolbar extension:py-row-y`,children:[x,C]}),t[18]=x,t[19]=C,t[20]=w):w=t[20],w}export{c as t};
//# sourceMappingURL=thread-page-header-TY6fFqZj.js.map