import{bB as s,Z as l,c7 as t,bo as h,bm as n,Y as d}from"#entry";const b=["alt","loading","src","srcset","height","width"],g={key:1,class:"thumb",src:"/fallbackimage.png",alt:""},w={__name:"CoreImg",props:{event:{type:Object,default:()=>({})},thumb:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},showPreview:{type:Boolean,default:!0}},setup(a){const o=a,e=o.event.media?.[0],c=e?.focalpoint?`${(e?.focalpoint[0]+1)*50}% ${(e?.focalpoint[1]+1)*50}%`:"center center",i=o.thumb?"":`/media/thumb/${e?.url} 500w, /media/${e?.url} 1200w`,r=e?.height??"auto",m=e?.width??"auto",u=e?.url?"/media/thumb/"+e?.url:o.thumb&&"/fallbackimage.png";return(p,f)=>(s(),l("div",{class:n({img:!0,thumb:a.thumb})},[t(e)?(s(),l("img",{key:0,class:n({"u-featured":!0}),alt:t(e).name,loading:a.lazy?"lazy":"eager",src:t(u),srcset:t(i),itemprop:"image",height:t(r),width:t(m),style:h({"object-position":t(c)})},null,12,b)):t(e)?d("",!0):(s(),l("img",g))],2))}};export{w as _};
