import{d as c,L as p,o as t,b as r,a as i,g as s,c as a,w as o,I as _,f as l,t as n}from"./app.f791ceab.js";import{_ as d}from"./_plugin-vue_export-helper.cdc0426e.js";const m=c({name:"ArticleWidget",components:{Link:p},props:{article:{link:String,rider:String,image_src:String,title:String,content:String,show_sponsored_ribbon:Boolean},article_image_size:{type:String,default:"340px"}},methods:{}}),g={class:"article hover:underline overflow-x-hidden"},h={class:"relative"},u={key:0,class:"bg-primary w-full text-center translate-x-1/2 rotate-45 absolute top-[22px] right-[29px] z-40"},f=i("p",{class:"text-[10px] text-white font-bold"}," Sponsoreret ",-1),b=[f],y={class:"h-auto sm:h-[170px] relative"},w=["srcset","src","alt"],x={key:0,class:"bg-primary px-[8px] py-[3px] inline-flex -bottom-[11px] absolute"},k={class:"text-[12px] font-[500] text-white"},v={class:"text-lg font-[500] leading-[23px] mt-[10px] overflow-ellipsis-3 h-[68px]"};function S(e,$,B,z,C,A){return t(),r("div",g,[i("div",h,[e.article.show_sponsored_ribbon?(t(),r("div",u,b)):s("",!0),i("div",y,[(t(),a(l(e.$page.props.link_component),{class:"h-full",href:e.article.link},{default:o(()=>[e.article.image_src.indexOf("originals/")!==-1?(t(),r("img",{key:0,class:"h-auto sm:h-[170px] w-full sm:w-[300px] border-2 bg-cover bg-center",srcset:e.get_media_url_by_orginal_image_url(e.article.image_src,"article_normal")+" 296w, "+e.get_media_url_by_orginal_image_url(e.article.image_src,"article_normal_mobile")+" 585w",src:e.get_media_url_by_orginal_image_url(e.article.image_src,"article_normal"),alt:e.article.title,loading:"lazy"},null,8,w)):(t(),r("div",{key:1,class:"h-auto sm:h-[170px] w-full sm:w-[300px] border-2 bg-cover bg-center",style:_(`background-image: url(${e.article.image_src})`)},null,4))]),_:1},8,["href"])),e.article.rider?(t(),r("div",x,[i("p",k,n(e.article.rider),1)])):s("",!0)]),(t(),a(l(e.$page.props.link_component),{class:"h-[100px]",href:e.article.link},{default:o(()=>[i("h3",v,n(e.article.title),1)]),_:1},8,["href"]))])])}const N=d(m,[["render",S]]);export{N as A};