import{r,h as a,a as t,g as e}from"./p-c18ee3cd.js";import{c as i}from"./p-c608c6dc.js";const o=class{constructor(a){r(this,a),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 a(t,null,this.styles&&a("style",null,this.styles),a("nav",{"aria-label":"Breadcrumb",class:this.getCssClassMap(),part:"base"},a("ol",{class:"breadcrumb__list",part:"list"},this.linksArray.map(((t,e)=>{const o=null!=this.separatorSlot?a("span",{class:"breadcrumb__separator",part:"separator",innerHTML:this.separatorSlot.innerHTML}):a("span",{class:"breadcrumb__separator",part:"separator"},this.separator||a("scale-icon-navigation-right",{size:12}));return a("li",{class:"breadcrumb__list-item",part:"list-item"},t.href||"SCALE-LINK"===t.tagName?a("a",Object.assign({href:t.href,class:i(r(e)&&"breadcrumb__current","breadcrumb__link"),part:i(r(e)&&"current","link")},(a=>!0===r(a)?{"aria-current":"page"}:void 0)(e)),t.textContent):a("span",{class:i(r(e)&&"breadcrumb__current","breadcrumb__item"),part:i(r(e)&&"current","item")},t.textContent),r(e)?null:o)})))))}getCssClassMap(){return i("breadcrumb")}get hostElement(){return e(this)}};o.style=":host{--spacing-left:calc(-1 * var(--telekom-spacing-unit-x2));--font-size-list-item:var(--telekom-typography-font-size-caption);--color-separator:var(--telekom-color-ui-regular);--spacing-y-item:var(--telekom-spacing-unit-x1);--spacing-x-item:var(--telekom-spacing-unit-x2);--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);--box-shadow-link-focus:0 0 0 var(--telekom-line-weight-highlight)\n    var(--telekom-color-functional-focus);--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:none;box-shadow:var(--box-shadow-link-focus)}.breadcrumb__current{color:var(--color-current)}";export{o as scale_breadcrumb}