import{r as e,a as t,h as r}from"./p-wX3eJOEL.js";import{i as a}from"./p-CtINY9El.js";import{d as o,t as i}from"./p-DNHOWgWh.js";const n=class{constructor(t){e(this,t)}get el(){return t(this)}async componentDidLoad(){if(!a(this.el)){const e=o();i("ifx-breadcrumb",await e)}const e=this.el.shadowRoot?.firstElementChild;e instanceof HTMLElement&&this.validateBreadcrumbItemStructure(e)}validateBreadcrumbItemStructure(e){if(!e)return void console.error("element not found");const t=e.querySelector("slot");if(t){const e=t.assignedNodes();for(let t=0;t<e.length;t++){const r=e[t];if("IFX-BREADCRUMB-ITEM"===r.nodeName){const e=r,t=e.querySelector("ifx-breadcrumb-item-label"),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"})))}};n.style=":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}";export{n as ifx_breadcrumb}