import{j as e}from"./ui-vendor-CPlxOuHz.js";import{L as t}from"./react-vendor-DjUmVRt1.js";import{H as s}from"./index-09CqdSdZ.js";import{b as r}from"./icons-ClkGBw8e.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(s,{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((s,a)=>e.jsxs("li",{className:"flex items-center gap-1",children:[a>0&&e.jsx(r,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}),s.href&&a<i.length-1?e.jsx(t,{to:s.href,className:"hover:text-primary hover:underline transition-colors",children:s.label}):e.jsx("span",{className:"text-foreground/70 truncate max-w-[200px] sm:max-w-[300px]",children:s.label})]},a))})})]})};export{a as S};