import{j as s}from"./ui-vendor-Dyu0xMC9.js";import{L as e}from"./react-vendor-BiKEbLqf.js";import{H as r}from"./button-iayXQ_q_.js";import{B as t,a as n,d as a,b as i,e as c,c as m}from"./breadcrumb-DwBpwiMd.js";function l({items:l,className:o}){const d={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:l.map((s,e)=>{const r={"@type":"ListItem",position:e+1,name:s.schemaName||s.name};if(e<l.length-1&&s.url){const e="/"===s.url?"https://www.allerin.com/":`https://www.allerin.com${s.url}`;r.item=e}return r})};return s.jsxs(s.Fragment,{children:[s.jsx(r,{children:s.jsx("script",{type:"application/ld+json",children:JSON.stringify(d)})}),s.jsx("nav",{"aria-label":"Breadcrumb",className:o,children:s.jsx(t,{children:s.jsx(n,{children:l.map((r,t)=>{const n=t===l.length-1;return s.jsxs("span",{className:"contents",children:[t>0&&s.jsx(a,{}),s.jsx(i,{children:n?s.jsx(c,{children:r.name}):s.jsx(m,{asChild:!0,children:s.jsx(e,{to:r.url||"/",children:r.name})})})]},t)})})})})]})}export{l as B};