import{r as e,h as i}from"./p-76ab1744.js";const t={DESKTOP:"desktop",MOBILE:"mobile"};Object.values(t);const a=class{constructor(a){e(this,a),this.variant=t.DESKTOP,this.numberOfItemsShownOnMobile=2,this.disableHomeIcon=!1,this.darkBackground=!1,this.dataTrackingId="telia-breadcrumbs",this.classname="telia-breadcrumbs",this.renderHomeIcon=()=>i("li",{class:`${this.classname}__home-icon`},i("telia-icon",{name:"home",size:"sm"}))}render(){return i("nav",{class:{[this.classname]:!0,[`${this.classname}--${this.variant}`]:!!this.variant,[`${this.classname}--dark-background`]:this.darkBackground},"aria-label":this.ariaLabel,"data-testid":this.dataTestid,"data-mobile-items":this.numberOfItemsShownOnMobile},i("ol",{class:`${this.classname}__breadcrumbs`},this.variant===t.DESKTOP&&!this.disableHomeIcon&&this.renderHomeIcon(),i("slot",null)),i("telia-vst",{dataTrackingId:this.dataTrackingId}))}};a.style='.telia-breadcrumbs__breadcrumbs{display:flex;flex-wrap:wrap;flex-direction:row;list-style-type:none;margin:0;padding:0}.telia-breadcrumbs__breadcrumbs ::slotted(li){display:flex}.telia-breadcrumbs__home-icon{color:#29003e;margin-right:calc((0.4rem * var(--voca-rem-multiplier)) + (0.2rem * var(--voca-rem-multiplier)))}.telia-breadcrumbs__home-icon .telia-icon{height:calc(4.4rem * var(--voca-rem-multiplier))}.telia-breadcrumbs__home-icon .telia-icon__container{display:flex}.telia-breadcrumbs--dark-background .telia-breadcrumbs__home-icon{color:#fbf0ff}.telia-breadcrumbs--mobile[data-mobile-items] ::slotted(telia-breadcrumbs-item){display:none}.telia-breadcrumbs--mobile:not([data-mobile-items="2"]):not([data-mobile-items="3"]) ::slotted(telia-breadcrumbs-item:nth-last-child(-n+3)){display:block}.telia-breadcrumbs--mobile[data-mobile-items="2"] ::slotted(telia-breadcrumbs-item:nth-last-child(-n+2)){display:block}.telia-breadcrumbs--mobile[data-mobile-items="3"] ::slotted(telia-breadcrumbs-item:nth-last-child(-n+3)){display:block}';export{a as telia_breadcrumbs}