import{r as t,h as e,H as a}from"./p-76ab1744.js";const i=class{constructor(e){t(this,e),this.partners=[],this.dataTrackingId="telia-footer-partners",this.componentClass="telia-footer-partners",this.assetServer="https://cdn.voca.teliacompany.com/logo/",this.logos={teliaFinance:"Telia-finance-white.svg",mastercard:"Mastercard.svg",visa:"Visa-white.svg",klarna:"Klarna-white.svg",swish:"Swish-white.svg"}}getPartners(){let t;return t="object"==typeof this.partners?this.partners:JSON.parse(this.partners),t}getImage(t){const a={[`${this.componentClass}__image`]:!0,[`${this.componentClass}__image--${i=t,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`]:!0};var i;return e("img",{class:a,src:`${this.assetServer}${this.logos[t]}`,alt:this.getAltOrEmptyString(t),role:"img"})}getAltOrEmptyString(t){return this.__altTexts&&this.__altTexts[t]?this.__altTexts[t]:""}updateAltTextCache(t){if(!t)return;let e;e="object"==typeof t?t:JSON.parse(t),this.__altTexts=e}componentWillRender(){this.updateAltTextCache(this.altTexts)}render(){const t=this.getPartners();return e(a,{"data-testid":this.dataTestid},e("telia-vst",{dataTrackingId:this.dataTrackingId}),t.length&&e("ul",{class:`${this.componentClass}__list`},t.map((t=>!!this.logos[t]&&e("li",{class:`${this.componentClass}__list-item`},this.getImage(t))))))}};i.style=":host{display:block}.telia-footer-partners__list{display:flex;flex-wrap:wrap;gap:calc(1.6rem * var(--voca-rem-multiplier)) calc(3.2rem * var(--voca-rem-multiplier));line-height:0;list-style-type:none;margin:0;padding:0}.telia-footer-partners__list-item{align-items:center;display:flex;height:calc(2.4rem * var(--voca-rem-multiplier))}.telia-footer-partners__image{object-fit:contain}.telia-footer-partners__image--telia-finance{width:calc(14rem * var(--voca-rem-multiplier))}.telia-footer-partners__image--mastercard{padding-bottom:calc(0.15rem * var(--voca-rem-multiplier));width:calc(2.8rem * var(--voca-rem-multiplier))}@media screen and (min-width: 37.5em){.telia-footer-partners__image--mastercard{padding-bottom:0}}.telia-footer-partners__image--visa{padding-bottom:calc(0.25rem * var(--voca-rem-multiplier));width:calc(3.6rem * var(--voca-rem-multiplier))}.telia-footer-partners__image--klarna{padding-bottom:calc(0.25rem * var(--voca-rem-multiplier));width:calc(5.1rem * var(--voca-rem-multiplier))}.telia-footer-partners__image--swish{padding-top:calc(0.25rem * var(--voca-rem-multiplier));width:calc(7.2rem * var(--voca-rem-multiplier))}";export{i as telia_footer_partners}