import{r as t,h as e,a as o,g as s}from"./p-d52b3602.js";import{c as i}from"./p-c608c6dc.js";import{s as a}from"./p-c5a89792.js";const r=class{constructor(e){t(this,e),this.variant="magenta",this.transparent=!1,this.size=38,this.href="javascript:void(0);",this.focusable=!0,this.scrollIntoViewOnFocus=!1,this.logoTitle="Telekom Logo",this.logoAriaHidden=!1}componentDidRender(){this.accessibilityTitle&&a({tag:"deprecated",message:'Property "accessibilityTitle" is deprecated. Please use the "logoTitle" property!',type:"warn",source:this.hostElement}),this.language&&a({tag:"deprecated",message:'Property "language" is deprecated. Localized brand claim is not shown anymore.',type:"warn",source:this.hostElement})}render(){return e(o,{exportparts:"logo-svg"},e("style",null,this.size?`:host { --logo-size: ${this.size}px; }`:"",this.styles),e("a",{href:this.href,part:this.getCssClassMap(),tabindex:!1===this.focusable?"-1":"0",onFocus:()=>{!0===this.scrollIntoViewOnFocus&&window.scrollTo({top:0})},title:this.logoHideTitle?void 0:this.logoTitle,"aria-describedby":this.logoAriaDescribedBy,"aria-hidden":this.logoAriaHidden},e("scale-logo-svg",{part:"icon",color:this.variant,logoTitle:this.logoTitle,logoHideTitle:this.logoHideTitle})))}getCssClassMap(){return i("logo",this.variant&&`variant-${this.variant}`,this.transparent&&"transparent")}get hostElement(){return s(this)}};r.style=":host{--focus-outline:var(--telekom-line-weight-highlight) solid\n    var(--telekom-color-functional-focus-standard);--background-magenta:var(--telekom-color-background-canvas);--background-white:var(--telekom-color-primary-standard)}[part~='logo']{display:inline-flex;height:var(--logo-size);position:relative}[part~='logo']:focus,[part~='logo']:focus-visible{outline:var(--focus-outline);outline-offset:2px;border-radius:2px}[part~='variant-magenta']{background-color:var(--background-magenta)}[part~='variant-white']{background-color:var(--background-white)}[part~='transparent']{background-color:transparent}[part~='icon'] svg{height:var(--logo-size)}[part~='icon']:focus-visible{outline:none}[part~='icon'] svg:focus{outline:none}";let l=0;const n={magenta:"#e20074",white:"#ffffff"},h=class{constructor(o){t(this,o),this.color="magenta",this.innerRole="img",this.focusable=!0,this.getTitle=(t,o)=>{if(!this.logoHideTitle)return e("title",{id:`logo-title-${l}`},this.logoTitle?this.logoTitle:`${t} ${"link"===this.innerRole?o:""}`)}}componentWillLoad(){l++}componentDidRender(){this.accessibilityTitle&&a({tag:"deprecated",message:'Property "accessibilityTitle" is deprecated. Please use the "logoTitle" property!',type:"warn",source:this.hostElement})}getColor(){return n[this.color]}render(){return e(o,null,e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 38",part:"logo-svg",fill:this.getColor(),role:"link"===this.innerRole?null:"img","aria-labelledby":`logo-title-${l}`},this.getTitle("Telekom Logo","- Go to Start Page"),e("path",{d:"M7.6 25.1H0v-7.6h7.6v7.6ZM0 0v12.9h2.3v-.4c0-6.1 3.4-9.9 9.9-9.9h.4V30c0 3.8-1.5 5.3-5.3 5.3H6.1V38h19.8v-2.7h-1.1c-3.8 0-5.3-1.5-5.3-5.3V2.7h.4c6.5 0 9.9 3.8 9.9 9.9v.4h2.3V0H0Zm24.3 25.1h7.6v-7.6h-7.6v7.6Z"})))}get hostElement(){return s(this)}};export{r as scale_logo,h as scale_logo_svg}