import{h as F,_ as y}from"./moment.4df9687d.js";import{_ as E}from"./Author.aae1330e.js";import{_ as k,p as I,r as u,w as h,u as j,c as _,a as s,t as e,e as o,b as c,j as C,F as D,f as L,l as f,g as P,h as T,o as r,n as $,q as B,s as M}from"./entry.126c240b.js";import{_ as R}from"./share.3283c0b5.js";const v=a=>(B("data-v-3664e00f"),a=a(),M(),a),A={class:"animate-fade w-full"},S={class:"bg-white uhjk py-6 mt-6 w-[90%] mx-auto rounded-xl my-12",style:{border:"1.4px solid #EFEFEF"}},U={class:"sm:flex items-center justify-between w-full pb-4",style:{"border-bottom":"1px solid #EFEFEF"}},Y={class:"sm:w-3/4 w-full"},H={class:"font-bold"},N={class:"huj flex items-center"},V={class:"ml-1 font-semibold text-[#111111] cursor-pointer"},q={class:"grid grid-cols-1 sm:grid-cols-3 mt-[1rem] gap-y-6 sm:gap-10"},z={class:"col-span-1"},G={class:"w-full mt-8"},J={class:"col-span-2 rounded-2xl relative p-2 sm:p-6"},K={style:{"border-bottom":"1.5px solid #EFEFEF"},class:"pb-4"},O={class:"flex items-center justify-between"},Q={class:"font-semibold"},W={class:"text-lg text-[#111111] tracking-widest"},X={class:"text-base text-[#111111] flex items-center"},Z={class:"ml-1"},ss={class:"cursor-pointer rounded-full"},ts=v(()=>s("img",{class:"w-[28px]",src:R},null,-1)),es=[ts],os=["innerHTML"],is={class:"bg-white uhjk py-6 mt-6 w-[90%] mx-auto rounded-xl my-12",style:{border:"1.4px solid #EFEFEF"}},ls=v(()=>s("div",{class:"sm:flex items-center justify-between w-full pb-4",style:{"border-bottom":"1px solid #EFEFEF"}},[s("div",null,[s("h1",{class:"font-bold"},"Prestasi Prodi Terbaru")])],-1)),cs={class:"grid grid-cols-1 sm:grid-cols-2 mt-[2rem] gap-6"},as={style:{border:"1px solid #EFEFEF"},class:"sm:flex items-center rounded-xl p-4"},ns={class:"flex-none"},ds={class:"sm:px-6 ui"},_s={class:"uppercase tracking-widest font-semibold text-[#2E8586]"},rs=["onClick"],ms={class:"mt-1 text-[#7F7F7F] line-clamp-2"},ps={class:"mt-5 flex items-center justify-between"},us={class:"flex items-center"},hs={class:"flex-0 mr-2"},fs={class:"flex-1"},vs={class:"text-base font-medium"},xs={__name:"[id]",async setup(a){let t,n;const x=I().currentRoute.value.params.id,i=u({}),p=u([]);return i.value=([t,n]=h(()=>$fetch(f().public.API_PUBLIC_URL+`/api/prestasi/slug/${x}`)),t=await t,n(),t),p.value=([t,n]=h(()=>$fetch(f().public.API_PUBLIC_URL+"/api/prestasi?limit=4&fakultas=a504d52c-d68c-4ca7-8aaf-9afdbb99d75c")),t=await t,n(),t).data,j({title:i.value.title}),(d,gs)=>{const b=y,m=P("v-img"),g=E,w=T("ripple");return r(),_("div",A,[s("div",S,[s("div",U,[s("div",Y,[s("h1",H,e(o(i).title),1)]),s("div",N,[c(b),s("div",V,e(o(F)(o(i).created_at).format("DD MMM YYYY")),1)])]),s("div",q,[s("div",z,[s("div",G,[c(m,{class:"rounded-xl",cover:"",src:o(i).thumbnail,width:"100%"},null,8,["src"])])]),s("div",J,[s("div",K,[s("div",O,[s("div",Q,[s("div",W,e(d.$t("prestasi")),1),s("div",X,[c(g),s("div",Z,"Ditulis oleh "+e(o(i).name),1)])]),C((r(),_("div",ss,es)),[[w]])])]),s("div",{class:"mt-4 text-lg",innerHTML:o(i).content},null,8,os)])])]),s("div",is,[ls,s("div",cs,[(r(!0),_(D,null,L(o(p),l=>(r(),_("div",as,[s("div",ns,[c(m,{cover:"",src:l.thumbnail,class:"rounded-xl w-full sm:w-[160px] h-[160px]"},null,8,["src"])]),s("div",ds,[s("div",_s,[s("span",null,e(d.$t("prestasi")),1)]),s("div",{class:"text-2xl font-semibold line-clamp-2 cursor-pointer",onClick:ws=>("navigateTo"in d?d.navigateTo:o($))("/informasi-fakultas/"+l.slug)},[s("span",null,e(l.title),1)],8,rs),s("div",ms,[s("span",null,e(l.description),1)]),s("div",ps,[s("div",us,[s("div",hs,[c(m,{src:"/avatar.png",width:"30"})]),s("div",fs,[s("div",vs,[s("span",null,e(l.created_by),1)])])])])])]))),256))])])])}}},Is=k(xs,[["__scopeId","data-v-3664e00f"]]);export{Is as default};
