import{_ as d}from"./BopM0vw7.js";import{a as m}from"./Clw9ztwl.js";import{cA as u,cR as p,$ as f,X as h,cS as v,c7 as t,ch as R,bB as b,W as s,c0 as o}from"#entry";import{u as g}from"./DsNA9-h5.js";const k=["src"],w={class:"event-info"},x={class:"date"},B={class:"date"},A={__name:"[id]",async setup($){let a,n;const{params:r}=u(),{when:l}=g(),{data:e}=([a,n]=p(()=>R(`/api/event/detail/${r.id}`,"$HTkR7rj73d")),a=await a,n(),a);if(!e.value)throw f({statusCode:404,message:"Event not found"});return(i,c)=>{const _=d;return b(),h(_,{class:"embed_event",to:`/event/${t(e).slug||t(e).id}`,target:"_blank"},{default:v(()=>[s("img",{class:"float-left",src:("mediaURL"in i?i.mediaURL:t(m))(t(e),"thumb")},null,8,k),s("div",w,[s("div",x,o(t(l)(t(e))),1),c[0]||(c[0]=s("br",null,null,-1)),s("h4",null,o(t(e).title),1),s("div",B,o(t(e).place.name),1)])]),_:1},8,["to"])}}};export{A as default};
