import{r,h as t,a,g as e}from"./p-d52b3602.js";import{c as i}from"./p-c608c6dc.js";const o=class{constructor(t){r(this,t),this.linksArray=[],this.separatorSlot=null}componentWillLoad(){0===this.linksArray.length&&this.setLinksArray(),this.separatorSlot=this.hostElement.querySelector('[slot="separator"]')}componentDidLoad(){const r=new MutationObserver((()=>{this.setLinksArray()}));r.observe(this.hostElement,{attributes:!1,childList:!0,subtree:!0}),this.mo=r}disconnectedCallback(){this.mo&&this.mo.disconnect()}setLinksArray(){this.linksArray=Array.from(this.hostElement.children).filter((r=>""===r.slot))}render(){const r=r=>r===this.linksArray.length-1;return t(a,null,this.styles&&t("style",null,this.styles),t("nav",{"aria-label":"Breadcrumb",class:this.getCssClassMap(),part:"base"},t("ol",{class:"breadcrumb__list",part:"list"},this.linksArray.map(((a,e)=>{const o=null!=this.separatorSlot?t("span",{class:"breadcrumb__separator",part:"separator",innerHTML:this.separatorSlot.innerHTML}):t("span",{class:"breadcrumb__separator",part:"separator"},this.separator||t("scale-icon-navigation-right",{size:12}));return t("li",{class:"breadcrumb__list-item",part:"list-item"},a.href||"SCALE-LINK"===a.tagName?t("a",Object.assign({href:a.href,class:i(r(e)&&"breadcrumb__current","breadcrumb__link"),part:i(r(e)&&"current","link")},(t=>!0===r(t)?{"aria-current":"page"}:void 0)(e)),a.textContent):t("span",{class:i(r(e)&&"breadcrumb__current","breadcrumb__item"),part:i(r(e)&&"current","item")},a.textContent),r(e)?null:o)})))))}getCssClassMap(){return i("breadcrumb")}get hostElement(){return e(this)}};o.style=":host{--spacing-left:calc(-1 * var(--telekom-spacing-composition-space-04));--font-size-list-item:var(--telekom-typography-font-size-caption);--color-separator:var(--telekom-color-text-and-icon-additional);--spacing-y-item:var(--telekom-spacing-composition-space-03);--spacing-x-item:var(--telekom-spacing-composition-space-04);--color-link:var(--telekom-color-text-and-icon-additional);--radius-link:var(--telekom-radius-standard);--color-link-hover:var(--telekom-color-text-and-icon-primary-hovered);--color-link-active:var(--telekom-color-text-and-icon-primary-pressed);--focus-outline:var(--telekom-line-weight-highlight) solid\n    var(--telekom-color-functional-focus-standard);--font-current:var(--telekom-text-style-caption-bold);--color-current:var(--telekom-color-text-and-icon-standard)}.breadcrumb{margin-left:var(--spacing-left)}.breadcrumb__list{display:flex;list-style:none;margin-top:0;padding-left:0;margin-bottom:0}.breadcrumb__list-item{display:inline-flex;font-size:var(--font-size-list-item);align-items:center}.breadcrumb__separator{display:flex;color:var(--color-separator)}.breadcrumb__item,.breadcrumb__link{padding:var(--spacing-y-item) var(--spacing-x-item)}.breadcrumb__link{text-decoration:none;color:var(--color-link);border-radius:var(--radius-link)}.breadcrumb__link:hover{color:var(--color-link-hover)}.breadcrumb__link:active{color:var(--color-link-active)}.breadcrumb__link:focus{outline:var(--focus-outline)}.breadcrumb__current{font:var(--font-current);color:var(--color-current)}";export{o as scale_breadcrumb}