import{n as e,s as t}from"./rolldown-runtime-BG2f4sTM.js";import{Dvt as n,Glt as r,Klt as i,Mvt as a,Nvt as o,Rft as s,Wft as c,bft as l,gut as u,hut as d,xft as f}from"./app-initial-BHB6SClA.js";function p(e){let t=(0,m.c)(17),{ancestors:n,current:i,textSm:a}=e,o=c(),s;t[0]===o?s=t[1]:(s=o.formatMessage({id:`toolbarBreadcrumb.label`,defaultMessage:`Breadcrumb`,description:`Accessible label for toolbar breadcrumb navigation`}),t[0]=o,t[1]=s);let u=a?`text-sm`:`text-base`,f;t[2]===u?f=t[3]:(f=l(`flex min-w-0 items-center gap-1 text-token-description-foreground`,u),t[2]=u,t[3]=f);let p;if(t[4]!==n||t[5]!==a){let e;t[7]===a?e=t[8]:(e=(e,t)=>(0,g.jsxs)(h.Fragment,{children:[t>0?(0,g.jsx)(r,{"aria-hidden":!0,className:`icon-xs shrink-0`}):null,`content`in e?e.content:(0,g.jsx)(d,{className:l(`min-w-0`,a&&`text-sm`),color:`ghost`,size:`toolbar`,onClick:e.onClick,children:(0,g.jsx)(`span`,{className:`min-w-0 truncate`,children:e.label})})]},e.id),t[7]=a,t[8]=e),p=n.map(e),t[4]=n,t[5]=a,t[6]=p}else p=t[6];let _;t[9]!==n.length||t[10]!==i?(_=i==null?null:(0,g.jsxs)(g.Fragment,{children:[n.length>0?(0,g.jsx)(r,{"aria-hidden":!0,className:`icon-xs shrink-0`}):null,(0,g.jsx)(`span`,{"aria-current":`page`,className:`flex h-token-button-composer min-w-0 flex-auto items-center truncate px-2 text-token-foreground`,children:i})]}),t[9]=n.length,t[10]=i,t[11]=_):_=t[11];let v;return t[12]!==s||t[13]!==f||t[14]!==p||t[15]!==_?(v=(0,g.jsxs)(`nav`,{"aria-label":s,className:f,children:[p,_]}),t[12]=s,t[13]=f,t[14]=p,t[15]=_,t[16]=v):v=t[16],v}var m,h,g,_=e((()=>{m=a(),f(),h=t(o(),1),s(),i(),u(),g=n()}));export{_ as n,p as t};
//# sourceMappingURL=toolbar-breadcrumb-COhCwKVT.js.map