import{j as r}from"./main-ac2fa4b1.js";import{r as i}from"./chunk-react-162a731f.js";import{c as l}from"./chunk-index-89b7ba38.js";import{m,G as a,L as p,aE as u}from"./chunk-material-ui-42c43899.js";const c=i.createContext(void 0);function y({items:e,children:t}){const[o,s]=i.useState(void 0);return i.useEffect(()=>{e&&s(e)},[e]),r.jsx(c.Provider,{value:o,children:t})}const d=m(e=>({container:{display:"flex",alignItems:"center","@media (max-width: 479px)":{flexWrap:"wrap",flexDirection:"row"}},breadButton:{display:"inline-flex",fontFamily:"TTFirsNeue-Light, sans-serif",fontSize:e.typography.pxToRem(14),lineHeight:e.typography.pxToRem(16),padding:0,color:"#3A474E"},noneLink:{"&:hover":{color:"#3A474E"}},iconRoot:{marginLeft:5,marginRight:5,fontSize:e.typography.pxToRem(14),color:e.color.black60}}),{name:"Breadcrumbs"}),j=()=>{const e=d(),t=i.useContext(c);return t?r.jsx(a,{item:!0,container:!0,itemScope:!0,itemType:"http://schema.org/BreadcrumbList",children:t.map((o,s)=>{const n=(t==null?void 0:t.length)-1===s;return r.jsxs(a,{item:!0,xs:"auto",itemProp:"itemListElement",itemScope:!0,itemType:"http://schema.org/ListItem",children:[r.jsxs(p,{itemProp:"item",title:o.title.replace(/"/gi,'"'),underline:"none",href:n||o.url,classes:{root:l(e.breadButton,!n||e.noneLink)},children:[r.jsx("span",{itemProp:"name",children:o.title.replace(/"/gi,'"')}),!n&&r.jsx(u,{classes:{root:e.iconRoot}})]}),r.jsx("meta",{itemProp:"position",content:s+1})]},s)})}):null};export{y as B,j as a};