import{r as a,h as e,a as r}from"./p-PqnYwNKt.js";import{d as t,t as o}from"./p-DcmcuUOA.js";import{i as n}from"./p-Bw2fh5LT.js";const s=':root{--ifx-font-family:"Source Sans 3", "Arial, sans-serif"}: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 i=class{constructor(e){a(this,e)}async componentDidLoad(){if(!n(this.el)){const a=t();o("ifx-breadcrumb",await a)}const a=this.el.shadowRoot.firstChild;this.validateBreadcrumbItemStructure(a)}validateBreadcrumbItemStructure(a){if(!a){console.error("element not found");return}const e=a.querySelector("slot");if(e){const a=e.assignedNodes();for(let e=0;e<a.length;e++){const r=a[e];if(r.nodeName==="IFX-BREADCRUMB-ITEM"){const a=r;const e=a.querySelector("ifx-breadcrumb-item-label");const t=a.querySelector("ifx-dropdown-menu");if(e.hasAttribute("href")&&t){throw new Error("ifx-breadcrumb-item cannot have both a href and a dropdown menu.")}}}}}render(){return e("nav",{key:"edf76204e96413a39d1a543735bbb0a2530d8348","aria-label":"Page navigation breadcrumb"},e("ol",{key:"1b64075586076eb4f6ca73cf41202a52a180d1c3",class:"breadcrumb"},e("slot",{key:"352a0be161eb7b0ab45bdbbb59d023bd9da6ff73"})))}get el(){return r(this)}};i.style=s;export{i as ifx_breadcrumb};
//# sourceMappingURL=p-58dd6f5c.entry.js.map