import{s as e}from"./chunk-Bj-mKKzh.js";import{n as t,t as n}from"./jsx-runtime-CiQ1k8xo.js";import{lt as r}from"./vscode-api-DjORcpSo.js";import{c as i}from"./lib-MoKmYgcO.js";import{t as a}from"./button-Bi7lGVi1.js";import{t as o}from"./chevron-right-CqaqXhBx.js";var s=r(),c=e(t(),1),l=n();function u(e){let t=(0,s.c)(11),{ancestors:n,current:r}=e,a=i(),c;t[0]===a?c=t[1]:(c=a.formatMessage({id:`toolbarBreadcrumb.label`,defaultMessage:`Breadcrumb`,description:`Accessible label for toolbar breadcrumb navigation`}),t[0]=a,t[1]=c);let u;t[2]===n?u=t[3]:(u=n.map(d),t[2]=n,t[3]=u);let f;t[4]!==n.length||t[5]!==r?(f=r==null?null:(0,l.jsxs)(l.Fragment,{children:[n.length>0?(0,l.jsx)(o,{"aria-hidden":!0,className:`icon-xs shrink-0`}):null,(0,l.jsx)(`span`,{"aria-current":`page`,className:`flex h-token-button-composer min-w-0 items-center truncate px-2 text-token-foreground`,children:r})]}),t[4]=n.length,t[5]=r,t[6]=f):f=t[6];let p;return t[7]!==c||t[8]!==u||t[9]!==f?(p=(0,l.jsxs)(`nav`,{"aria-label":c,className:`flex min-w-0 items-center gap-1 text-base text-token-description-foreground`,children:[u,f]}),t[7]=c,t[8]=u,t[9]=f,t[10]=p):p=t[10],p}function d(e,t){return(0,l.jsxs)(c.Fragment,{children:[t>0?(0,l.jsx)(o,{"aria-hidden":!0,className:`icon-xs shrink-0`}):null,(0,l.jsx)(a,{className:`min-w-0`,color:`ghost`,size:`toolbar`,onClick:e.onClick,children:(0,l.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})})]},e.id)}export{u as t};
//# sourceMappingURL=toolbar-breadcrumb-C6pwl2N9.js.map