import{r as t,h as i,d as s}from"./p-b3a13b6a.js";import{c as l}from"./p-2132ad75.js";import{s as e,a as n}from"./p-cd8db7cd.js";import{b as o,a}from"./p-4cb85336.js";const{state:r,onChange:c}=l({i18n:{maxweightlabel:"",weightlabel:"",maxmeasurementlabel:"",sizeheading:"",senddirectcta:"",stampshopcta:""},market:{currency:""}});const p="pn-button-dropdown .pn-button-dropdown>pn-button>.pn-button{min-height:initial}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}@media screen and (max-width: 767px){.sr-only-mobile{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}}";const d=p;const h=class{constructor(i){t(this,i);this.item=null;this.description=[];this.shownitems=[];this.showMeasurement=false;this.weightText=""}componentWillLoad(){this.composeItems()}composeItems(){if(this.item.description){this.description=this.item.description.split("#bullet").filter((t=>t!==""))}this.showMeasurement=this.item.maxmått!==null||this.item.rulle!==null;this.shownitems=[this.item]}render(){return i(s,{key:"0174101aee0ddd39c8d6aa8eda2c7e5a107675f9"},this.shownitems.map((t=>i("pn-product-card",{"data-productid":t.id},i("pn-illustration",{slot:"illustration",illustration:this.item.illustration}),i("div",{slot:"title"},i("h2",null,t.name," "),this.item.highestrankusp?this.item.highestrankusp==="Billigast"?i("pn-titletag",{slot:"Billigast",icon:o},this.item.highestrankusp):i("pn-titletag",{slot:"Snabbast",icon:a,color:"blue700"},this.item.highestrankusp):null),i("div",{slot:"content"},i("div",{class:"content"},this.item.description?i("div",{class:"description"},this.description.map((t=>i("li",null,t)))):null,this.item.info?i("div",{class:"description"},this.item.info):null)),this.item.note?i("small",{slot:"note"},i("p",null,this.item.note)):null,this.item.additionalusp?i("div",{slot:"additionalUSP"}):null,this.showMeasurement?i("pn-product-card-info",{paket:this.item.maxmått,rulle:this.item.rulle}):null,i("div",{slot:"cardprice"},this.item.pricesenddirect?i("pn-product-card-price",{slot:"sendDirectPrice",label:r.i18n.senddirectcta,amount:this.item.pricesenddirect+"",currency:r.market.currency,url:e,service:this.item.name+"-portal"}):null,this.item.pricestamps?i("pn-product-card-price",{slot:"stampPrice",label:r.i18n.stampshopcta,amount:this.item.pricestamps+"",currency:r.market.currency,url:n,service:this.item.name+"-eshop"}):null)))))}static get watchers(){return{item:["composeItems"]}}};h.style=d;export{h as pn_product_pricelist_result};
//# sourceMappingURL=p-d184c299.entry.js.map