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