import{v as a,k as r,q as c,l as i,x as l,N as s,B as o,D as d,A as n}from"./x-CuOWXDIc.js";const m={class:"item-card__thumb"},u=["src","alt"],h={class:"item-card__placeholder"},g={class:"item-card__body"},f={key:0,class:"item-card__title"},y={key:1,class:"item-card__subtitle"},b={key:2,class:"item-card__badges"},v={__name:"ItemCard",props:{href:{type:String,default:""},title:{type:String,default:""},subtitle:{type:String,default:""},image:{type:String,default:""},imageAlt:{type:String,default:""}},setup(e){return(t,_)=>(a(),r(n(e.href?"a":"div"),{href:e.href||void 0,class:"item-card"},{default:c(()=>[i("div",m,[e.image?(a(),l("img",{key:0,src:e.image,alt:e.imageAlt||e.title,class:"item-card__img"},null,8,u)):s(t.$slots,"placeholder",{key:1},()=>[i("div",h,[s(t.$slots,"icon")])]),s(t.$slots,"overlay")]),i("div",g,[e.title?(a(),l("p",f,o(e.title),1)):d("",!0),s(t.$slots,"title"),e.subtitle?(a(),l("p",y,o(e.subtitle),1)):d("",!0),s(t.$slots,"subtitle"),t.$slots.badges?(a(),l("div",b,[s(t.$slots,"badges")])):d("",!0),s(t.$slots,"default")])]),_:3},8,["href"]))}};export{v as _};
