"use strict";const r=require("react/jsx-runtime"),y=require("react"),C=require("./icon-DNHpBTHs-faYHqTXU.js"),M=require("./bind-DeUYJ6m9.js"),Z={name:"home",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M11.38 1.848a.9.9 0 0 1 1.24 0l8.69 8.276c1.242 1.183.405 3.276-1.31 3.276h-.6v8.1a.9.9 0 0 1-.9.9h-13a.9.9 0 0 1-.9-.9v-8.1H4c-1.715 0-2.552-2.093-1.31-3.276l8.69-8.276ZM12 3.743l-8.069 7.685c-.026.024-.03.04-.032.049a.11.11 0 0 0 .008.06.11.11 0 0 0 .036.049c.007.005.021.014.057.014h1.5a.9.9 0 0 1 .9.9v8.1h11.2v-8.1a.9.9 0 0 1 .9-.9H20c.036 0 .05-.009.057-.014a.111.111 0 0 0 .036-.049.111.111 0 0 0 .008-.06c-.002-.008-.006-.025-.032-.05L12 3.744ZM10.6 14a.9.9 0 0 1 .9-.9H15a.9.9 0 0 1 .9.9v4a.9.9 0 0 1-.9.9h-3.5a.9.9 0 0 1-.9-.9v-4Zm1.8.9v2.2h1.7v-2.2h-1.7Z" clip-rule="evenodd"/></svg>',keywords:["home"],category:"buildings"},I=e=>r.jsx(C.b,{...e,svg:Z});I.displayName="IconHome";const i={"purpur-breadcrumbs":"_purpur-breadcrumbs_x1byg_1","purpur-breadcrumbs__list":"_purpur-breadcrumbs__list_x1byg_4","purpur-breadcrumb-item":"_purpur-breadcrumb-item_x1byg_14","purpur-breadcrumb-item__element":"_purpur-breadcrumb-item__element_x1byg_19","purpur-breadcrumb-item__link":"_purpur-breadcrumb-item__link_x1byg_28","purpur-breadcrumb-item--default":"_purpur-breadcrumb-item--default_x1byg_32","purpur-breadcrumb-item--negative":"_purpur-breadcrumb-item--negative_x1byg_46","purpur-breadcrumb-item--current":"_purpur-breadcrumb-item--current_x1byg_60","purpur-breadcrumb-item__home":"_purpur-breadcrumb-item__home_x1byg_93"},S=(e,a,s)=>{const c={"@type":"ListItem",position:a,name:e};return s&&(c.item=s),c},E=e=>JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e}),l=M.c.bind(i),f="purpur-breadcrumbs",t="purpur-breadcrumb-item",H=({["aria-label"]:e,baseUrl:a,children:s,className:c,excludeCurrentPage:p=!1,linkElement:b="a",meta:d=!0,negative:u=!1,highlightLast:o=!0,hideHomeIcon:m,..._})=>{const h=l([f,`${f}--${u?"negative":"default"}`,c]),n=y.Children.count(s),x=[],w=y.Children.map(s,(g,k)=>{const v=k+1,$=n===v,B=o&&$,{children:q,href:j}=g.props;return x.push(S(q,v,j&&`${a}${j}`)),y.cloneElement(g,{className:g.props.className,current:B,negative:u,first:!m&&v===1,last:$,linkElement:b,excludeCurrentPage:p})}),N=x.length===n?E(x):null;return r.jsxs("nav",{"aria-label":e,className:h,..._,children:[r.jsx("ol",{className:i[`${f}__list`],children:w}),d&&N?r.jsx("script",{type:"application/ld+json","data-testid":"breadcrumbs-meta",dangerouslySetInnerHTML:{__html:N}}):null]})},L=({href:e,["data-testid"]:a,children:s,current:c=!1,linkElement:p="a",negative:b=!1,onClick:d,first:u=!1,last:o=!1,excludeCurrentPage:m=!1,..._})=>{const h=p,n=l([t],i[`${t}--${b?"negative":"default"}`],{[`${t}--current`]:!m&&c});return r.jsx("li",{..._,className:n,children:!o||m?r.jsxs(h,{href:e,"data-testid":a,onClick:d,className:l(`${t}__element`,`${t}__link`),children:[u&&r.jsx("span",{className:i[`${t}__home`],"aria-hidden":"true",children:r.jsx(I,{size:"xs"})}),s]}):r.jsx("span",{"aria-current":"page","data-testid":a,className:l(`${t}__element`),children:s})})};H.Item=L;exports.Breadcrumbs=H;exports.Item=L;
//# sourceMappingURL=breadcrumbs-BKzim4am.js.map
