import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{t}from"./clsx-BcPLHiun.js";import{lt as n}from"./vscode-api-DjORcpSo.js";var r=n(),i=e();function a(e){let n=(0,r.c)(64),a,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;n[0]===e?(a=n[1],c=n[2],l=n[3],u=n[4],d=n[5],f=n[6],p=n[7],m=n[8],h=n[9],g=n[10],_=n[11],v=n[12],y=n[13],b=n[14],x=n[15],S=n[16],C=n[17],w=n[18],T=n[19]):({"aria-expanded":l,ariaExpanded:c,className:u,disabled:d,icon:f,interactive:b,label:p,labelClassName:m,ref:v,actions:a,actionsAlwaysFocusable:x,actionsVisible:S,trailing:T,trailingVisible:C,title:w,onClick:h,onKeyDown:g,onPointerDown:_,...y}=e,n[0]=e,n[1]=a,n[2]=c,n[3]=l,n[4]=u,n[5]=d,n[6]=f,n[7]=p,n[8]=m,n[9]=h,n[10]=g,n[11]=_,n[12]=v,n[13]=y,n[14]=b,n[15]=x,n[16]=S,n[17]=C,n[18]=w,n[19]=T);let E=b===void 0?!1:b,D=x===void 0?!1:x,O=S===void 0?!1:S,k=C===void 0?!1:C,A=h!=null||_!=null||g!=null,j=!d&&A,M=!d&&(E||A),N=M?`cursor-interaction text-token-foreground`:`text-token-text-secondary`,P=M&&`before:absolute before:inset-y-0 before:-inset-x-2 before:-z-10 before:rounded-sm before:content-[''] hover:before:bg-token-list-hover-background`,F=d&&`cursor-not-allowed`,I;n[20]!==u||n[21]!==N||n[22]!==P||n[23]!==F?(I=t(`group/summary-panel-row relative isolate flex h-7 w-full min-w-0 items-center gap-2 rounded-sm border-0 bg-transparent px-0 py-1 text-left`,N,P,F,u),n[20]=u,n[21]=N,n[22]=P,n[23]=F,n[24]=I):I=n[24];let L=I,R=m??`truncate`,z;n[25]===R?z=n[26]:(z=t(`text-base`,R),n[25]=R,n[26]=z);let B;n[27]!==p||n[28]!==z?(B=(0,i.jsx)(`span`,{className:z,children:p}),n[27]=p,n[28]=z,n[29]=B):B=n[29];let V;n[30]!==a||n[31]!==D||n[32]!==O?(V=a==null?null:(0,i.jsx)(`span`,{className:t(`shrink-0 items-center`,(O||!D)&&`ms-auto`,O?`flex`:D?`pointer-events-none absolute inset-y-0 end-0 flex opacity-0 group-focus-within/summary-panel-row:pointer-events-auto group-focus-within/summary-panel-row:opacity-100 group-hover/summary-panel-row:pointer-events-auto group-hover/summary-panel-row:opacity-100`:`hidden group-focus-within/summary-panel-row:flex group-hover/summary-panel-row:flex`),onClick:s,onKeyDown:o,children:a}),n[30]=a,n[31]=D,n[32]=O,n[33]=V):V=n[33];let H;n[34]!==a||n[35]!==O||n[36]!==T||n[37]!==k?(H=T==null?null:(0,i.jsx)(`span`,{className:t(`shrink-0 leading-none opacity-0 group-focus-visible/summary-panel-row:opacity-100 group-hover/summary-panel-row:opacity-100`,(a==null||!O||k)&&`ms-auto`,a!=null&&!O&&`group-focus-within/summary-panel-row:ms-0 group-hover/summary-panel-row:ms-0`,k&&`opacity-100`),children:T}),n[34]=a,n[35]=O,n[36]=T,n[37]=k,n[38]=H):H=n[38];let U;n[39]!==B||n[40]!==V||n[41]!==H?(U=(0,i.jsxs)(`span`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[B,V,H]}),n[39]=B,n[40]=V,n[41]=H,n[42]=U):U=n[42];let W;n[43]!==f||n[44]!==U?(W=(0,i.jsxs)(i.Fragment,{children:[f,U]}),n[43]=f,n[44]=U,n[45]=W):W=n[45];let G=W,K=d||void 0,q=c??l,J=j?h:void 0,Y;n[46]!==d||n[47]!==j||n[48]!==h||n[49]!==g?(Y=e=>{d||g?.(e),!(!j||h==null||e.defaultPrevented||e.key!==`Enter`&&e.key!==` `)&&(e.preventDefault(),e.currentTarget.click())},n[46]=d,n[47]=j,n[48]=h,n[49]=g,n[50]=Y):Y=n[50];let X=j?_:void 0,Z=A?`button`:void 0,Q=j?0:void 0,$;return n[51]!==L||n[52]!==G||n[53]!==v||n[54]!==y||n[55]!==K||n[56]!==q||n[57]!==J||n[58]!==Y||n[59]!==X||n[60]!==Z||n[61]!==Q||n[62]!==w?($=(0,i.jsx)(`div`,{...y,"aria-disabled":K,"aria-expanded":q,className:L,onClick:J,onKeyDown:Y,onPointerDown:X,ref:v,role:Z,tabIndex:Q,title:w,children:G}),n[51]=L,n[52]=G,n[53]=v,n[54]=y,n[55]=K,n[56]=q,n[57]=J,n[58]=Y,n[59]=X,n[60]=Z,n[61]=Q,n[62]=w,n[63]=$):$=n[63],$}function o(e){return e.stopPropagation()}function s(e){return e.stopPropagation()}export{a as t};
//# sourceMappingURL=summary-panel-row-BUACxmiE.js.map