import{r as e,a as t,h as r}from"./p-Cby2wKoI.js";import{i as a}from"./p-CtINY9El.js";import{d as o,t as n}from"./p-DNHOWgWh.js";const i=()=>`:host{display:flex}.breadcrumb{list-style:none;padding:0px;margin:0px;display:flex;flex-direction:row;font-family:var(--ifx-font-family);font-size:0.875rem;align-items:flex-start}`;const s=class{constructor(t){e(this,t)}get el(){return t(this)}async componentDidLoad(){if(!a(this.el)){const e=o();n("ifx-breadcrumb",await e)}const e=this.el.shadowRoot?.firstElementChild;if(e instanceof HTMLElement){this.validateBreadcrumbItemStructure(e)}}validateBreadcrumbItemStructure(e){if(!e){console.error("element not found");return}const t=e.querySelector("slot");if(t){const e=t.assignedNodes();for(let t=0;t<e.length;t++){const r=e[t];if(r.nodeName==="IFX-BREADCRUMB-ITEM"){const e=r;const t=e.querySelector("ifx-breadcrumb-item-label");const a=e.querySelector("ifx-dropdown-menu");if(t.hasAttribute("href")&&a){throw new Error("ifx-breadcrumb-item cannot have both a href and a dropdown menu.")}}}}}render(){return r("nav",{key:"f9e3ab03f477edc2f42857d773c924845c1f1d2e","aria-label":"Page navigation breadcrumb"},r("ol",{key:"c56109519419ef1e697065e611d6047c6f4285e3",class:"breadcrumb"},r("slot",{key:"224406744edd734167bca7882e9da6381ee37bac"})))}};s.style=i();export{s as ifx_breadcrumb};
//# sourceMappingURL=p-5106acd6.entry.js.map