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