import{r as i,h as e,H as t}from"./p-76ab1744.js";const r=class{constructor(t){i(this,t),this.largePrice=!1,this.dataTrackingId="telia-price",this.thinnerSpace=" ",this.mediumSpace=" ",this.widerSpace=" ",this.priceLine=()=>{let i=this.periodicity;this.periodicity&&!this.periodicity.includes("/")&&(i=` ${this.periodicity}`);const t=this.fullPrice?"ins":"span",r={"telia-price__price":!0,"telia-price__price--large":!!this.largePrice};return e("telia-p",null,e("span",{role:"text"},this.startingAt&&this.startingAt.concat(" "),e("strong",{class:"telia-price__strong"},e(t,{class:r},this.renderPrice(this.price,this.currency),i)),this.fullPrice&&e("del",{class:"telia-price__full-price"},this.widerSpace,"(",this.priceWithCurrency(this.fullPrice,this.currency),")")))},this.termsLine=()=>this.terms?e("telia-p",null,e("span",{role:"text"},this.terms,this.termsPrice&&e(this.termsFullPrice?"ins":"span",{class:"telia-price__price"},this.mediumSpace,this.priceWithCurrency(this.termsPrice,this.currency)),this.termsFullPrice&&e("del",{class:"telia-price__full-price"},this.widerSpace,"(",this.priceWithCurrency(this.termsFullPrice,this.currency),")"))):null}priceWithCurrency(i,e){if(i)return[i,e].join(this.thinnerSpace)}renderPrice(i,t){if(i)return[e("span",{class:"telia-price__value"},i),this.thinnerSpace,t]}render(){return e(t,{class:"telia-price"},e("telia-vst",{dataTrackingId:this.dataTrackingId}),this.priceLine(),this.termsLine())}};r.style='.telia-price{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;color:rgba(0, 0, 0, 0.6);display:block;vertical-align:top}.telia-price__strong{color:#121214}.telia-price__full-price,.telia-price__price{display:inline-block;text-decoration:none;word-break:keep-all}.telia-price__price .telia-price__value{color:rgba(0, 0, 0, 0.85)}.telia-price__price--large .telia-price__value{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:bold;font-size:calc(2rem * var(--voca-rem-multiplier));line-height:1.25}@media screen and (min-width: 37.5em){.telia-price__price--large .telia-price__value{font-size:calc(\n    calc(2rem * var(--voca-rem-multiplier)) + 0.4 *\n      (100vw - calc(60rem * var(--voca-rem-multiplier))) / 84\n  )}}@media screen and (min-width: 90em){.telia-price__price--large .telia-price__value{font-size:calc(2.4rem * var(--voca-rem-multiplier))}}';export{r as telia_price}