import{_ as p}from"./1fN7R7tG.js";import{B as f,q as y,c as o,o as s,a as r,y as l,g as i,k as a,m as u,t as h,z as v,p as k}from"./CGJ-iGzd.js";const x={class:"flex justify-between gap-x-2"},b=["src"],B={class:"mt-4 text-xs font-normal text-zinc-700 dark:text-zinc-200"},R={__name:"index",setup(z){const n=f(),_=n.activity.id,t=y({data:{}});async function d(){let e=u().public.BaseUrl+"maghale/";n.isAuthenticated?e=e+"get_activity_by_user/":e=e+"get_activity/",await v.get(e+_).then(c=>{t.data=c.data})}return d(),(e,c)=>{const m=p,g=k;return s(),o("div",null,[r("div",x,[a(t).data.title?(s(),l(m,{key:0,title:a(t).data.title},null,8,["title"])):i("",!0),a(t).data.get_image?(s(),o("img",{key:1,src:("useRuntimeConfig"in e?e.useRuntimeConfig:a(u))().public.MediaUrl+a(t).data.get_image,alt:"",class:"size-24 object-cover rounded-lg"},null,8,b)):i("",!0)]),r("p",B,h(a(t).data.abstract),1),a(t).data.user?(s(),l(g,{key:0,user:a(t).data.user,class:"mt-4"},null,8,["user"])):i("",!0)])}}};export{R as _};
