import{r as i,h as e,H as t}from"./p-76ab1744.js";import{c as r,g as a}from"./p-dc40d5a3.js";function l(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}const n=class{constructor(e){i(this,e),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(l().vocadsIconsRegistered&&this.name){const i=function(){if(void 0!==typeof l().vocadsIcons)return l().vocadsIcons}();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),l=[{name:"viewBox",value:"0 0 64 64"}];l=this.allyTitle?[...l,{name:"role",value:"img"}]:[...l,{name:"aria-hidden",value:"true"}];const n=r({content:a(i),attributes:l,title:this.allyTitle});return e(t,{class:`telia-icon telia-icon--${this.size}`},e("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:n}),e("telia-vst",{dataTrackingId:this.dataTrackingId}))}};n.style=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}";export{n as telia_icon}