import{r as i,h as t}from"./p-76ab1744.js";const a=class{constructor(t){i(this,t),this.links=[],this.dataTrackingId="telia-footer-navigation",this.maxRenderedItems=6,this.componentClass="telia-footer-navigation"}getLinks(){let i=[];return i="object"==typeof this.links?this.links:JSON.parse(this.links),i.length>this.maxRenderedItems&&console.warn(`[VDS:telia-footer-navigation] The amount of "links" provided exceeds out current limit of ${this.maxRenderedItems} items, items above the limit are discarded.`),i.slice(0,this.maxRenderedItems)}renderLinkList(i){return t("telia-list",null,i.map((i=>t("li",{class:`${this.componentClass}__list-item`},t("telia-style-link",{variant:"navigation","dark-background":!0,"disable-visited":!0},t("a",{href:i.href},i.name))))))}getListColumnWidth(i=[]){return i.length>4?2:3}render(){const i=this.getLinks(),a=this.getListColumnWidth(i);return t("div",{class:this.componentClass,"data-testid":this.dataTestid},t("section",{class:`${this.componentClass}__list-container`},t("telia-row",null,i.map((i=>t("telia-col",{width:a},t("h2",{class:`${this.componentClass}__list-header`},i.header),this.renderLinkList(i.links)))))),t("section",{class:`${this.componentClass}__accordion-container`},t("telia-accordion",{"dark-background":!0},i.map((i=>t("telia-accordion-item",{"heading-tag":"h2",heading:i.header,"dark-background":!0},this.renderLinkList(i.links)))))),t("telia-vst",{dataTrackingId:this.dataTrackingId}))}};a.style='.telia-footer-navigation{color:#e8e8ed;display:block}.telia-footer-navigation__list-container{display:none}@media screen and (min-width: 64em){.telia-footer-navigation__list-container{display:block}}.telia-footer-navigation__list-container .telia-footer-navigation__list-header{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.4rem * var(--voca-rem-multiplier));line-height:1.5;margin-bottom:calc(0.8rem * var(--voca-rem-multiplier));margin-top:0;color:rgba(255, 255, 255, 0.6)}.telia-footer-navigation__list-container telia-row{row-gap:calc(4.8rem * var(--voca-rem-multiplier))}.telia-footer-navigation__list-item{margin-bottom:calc(0.8rem * var(--voca-rem-multiplier))}.telia-footer-navigation__list-item:last-of-type{margin-bottom:0}.telia-footer-navigation__list-item telia-style-link a{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:normal;font-size:calc(1.6rem * var(--voca-rem-multiplier));line-height:1.5;font-weight:500}.telia-footer-navigation__accordion-container{display:block}@media screen and (min-width: 64em){.telia-footer-navigation__accordion-container{display:none}}';export{a as telia_footer_navigation}