import{D as m,E as p,x as c,h,l as _,m as g,k as F,C as t,T as f,Y as k}from"./D1QozqMg.js";const C=p({name:"IconCard",props:["icon","title","content","linkUrl"],data(){return{cardTitle:null,cardUrl:null,cardFields:null,cardContent:null}},created(){this.cardTitle=this.title?this.title:"",this.cardUrl=this.linkUrl?this.linkUrl:"",this.cardFields=this.icon?this.icon:"",this.cardContent=this.content?this.content:""}},"$qexlPPTW3X"),w={class:"bg-white shadow-lg rounded-xl text-center m-2 icon-card-animation"},U=["src","width","height","title","alt"],$={class:"content text-center p-4 rounded-xl"},N={id:"icon-card-title",class:"text-xl mt-3 mb-2"},T={id:"icon-card-content"};function v(e,x,y,B,V,b){const u=k;return c(),h("div",w,[_(u,{to:"/"+e.$i18n.locale+"/"+e.cardUrl},{default:g(()=>{var i,l,d,s,n,a,o,r;return[e.cardFields?(c(),h("img",{key:0,src:(l=(i=e.cardFields.fields)==null?void 0:i.file)!=null&&l.url?e.cardFields.fields.file.url:"",width:(s=(d=e.cardFields.fields)==null?void 0:d.file)!=null&&s.details?e.cardFields.fields.file.details.image.width:"",height:(a=(n=e.cardFields.fields)==null?void 0:n.file)!=null&&a.details?e.cardFields.fields.file.details.image.height:"",class:"rounded-t-xl",title:((o=e.cardFields.fields)==null?void 0:o.title)||"",alt:((r=e.cardFields.fields)==null?void 0:r.description)||"icon-card-image",loading:"lazy"},null,8,U)):F("",!0),t("div",$,[t("div",N,f(e.cardTitle),1),t("p",T,f(e.content),1)])]}),_:1},8,["to"])])}const E=m(C,[["render",v]]);export{E as default};