import{p as e,H as t,h as r,t as a}from"./p-CHfEnK-2.js";import{i as n,d as o,t as s}from"./p-94ZtGp9D.js";const i=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get el(){return this}async componentDidLoad(){if(!n(this.el)){const e=o();s("ifx-breadcrumb",await e)}const e=this.el.shadowRoot?.firstElementChild;e instanceof t&&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 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"})))}static get style(){return":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}"}},[257,"ifx-breadcrumb"]),c=i,f=function(){"undefined"!=typeof customElements&&["ifx-breadcrumb"].forEach((e=>{"ifx-breadcrumb"===e&&(customElements.get(a(e))||customElements.define(a(e),i))}))};export{c as IfxBreadcrumb,f as defineCustomElement}