import{j as e}from"./ui-vendor-Dps19aRv.js";import{H as t}from"./index-Hzc6Jvc7.js";import{b as s}from"./icons-CBa6FzIr.js";import{L as r}from"./react-vendor-DQeVoJII.js";const a=({items:a})=>{const i=[{label:"Home",href:"/"},...a],m={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:i.filter(e=>e.href).map((e,t)=>({"@type":"ListItem",position:t+1,name:e.label,item:`https://semprecomigo.com.br${e.href}`}))},n=i[i.length-1];return n.href||m.itemListElement.push({"@type":"ListItem",position:m.itemListElement.length+1,name:n.label,item:""}),e.jsxs(e.Fragment,{children:[e.jsx(t,{children:e.jsx("script",{type:"application/ld+json",children:JSON.stringify(m)})}),e.jsx("nav",{"aria-label":"Breadcrumb",className:"container mx-auto px-4 pt-4 pb-2 overflow-x-auto whitespace-nowrap",children:e.jsx("ol",{className:"flex items-center gap-1 text-sm text-muted-foreground",children:i.map((t,a)=>e.jsxs("li",{className:"flex items-center gap-1",children:[a>0&&e.jsx(s,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}),t.href&&a<i.length-1?e.jsx(r,{to:t.href,className:"hover:text-primary hover:underline transition-colors",children:t.label}):e.jsx("span",{className:"text-foreground/70 truncate max-w-[200px] sm:max-w-[300px]",children:t.label})]},a))})})]})};export{a as S};