import{h as g,_ as F}from"./moment.4df9687d.js";import{_ as y}from"./Author.aae1330e.js";import{_ as E,p as k,r as p,w as h,u as I,c as _,a as s,t,e as o,b as c,j,F as C,f as D,l as f,g as L,h as $,o as r,n as B,q as M,s as R}from"./entry.126c240b.js";import{_ as T}from"./share.3283c0b5.js";const A=a=>(M("data-v-0c8f8a71"),a=a(),R(),a),P={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=A(()=>s("img",{class:"w-[28px]",src:T},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={class:"sm:flex items-center justify-between w-full pb-4",style:{"border-bottom":"1px solid #EFEFEF"}},ns={class:"font-bold"},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"},ds={class:"flex-none"},_s={class:"sm:px-6 ui"},rs={class:"uppercase tracking-widest font-semibold text-[#2E8586]"},ms=["onClick"],us={class:"mt-1 text-[#7F7F7F] line-clamp-2"},ps={class:"mt-5 flex items-center justify-between"},hs={class:"flex items-center"},fs={class:"flex-0 mr-2"},vs={class:"flex-1"},xs={class:"text-base font-medium"},bs={__name:"[id]",async setup(a){let e,d;const v=k().currentRoute.value.params.id,i=p({}),u=p([]);return i.value=([e,d]=h(()=>$fetch(f().public.API_PUBLIC_URL+`/api/informasi-kampus/slug/${v}`)),e=await e,d(),e),u.value=([e,d]=h(()=>$fetch(f().public.API_PUBLIC_URL+"/api/informasi-kampus?limit=4&fakultas=a504d52c-d68c-4ca7-8aaf-9afdbb99d75c")),e=await e,d(),e).data,I({title:i.value.title}),(l,gs)=>{const x=F,m=L("v-img"),b=y,w=$("ripple");return r(),_("div",P,[s("div",S,[s("div",U,[s("div",Y,[s("h1",H,t(o(i).title),1)]),s("div",N,[c(x),s("div",V,t(o(g)(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,t(l.$t("news")),1),s("div",X,[c(b),s("div",Z,"Ditulis oleh "+t(o(i).name),1)])]),j((r(),_("div",ss,es)),[[w]])])]),s("div",{class:"mt-4 text-lg",innerHTML:o(i).content},null,8,os)])])]),s("div",is,[s("div",ls,[s("div",null,[s("h1",ns,t(l.$t("latest_news")),1)])]),s("div",cs,[(r(!0),_(C,null,D(o(u),n=>(r(),_("div",as,[s("div",ds,[c(m,{cover:"",src:n.thumbnail,class:"rounded-xl w-full sm:w-[160px] h-[160px]"},null,8,["src"])]),s("div",_s,[s("div",rs,[s("span",null,t(l.$t("news")),1)]),s("div",{class:"text-2xl font-semibold line-clamp-2 cursor-pointer",onClick:Fs=>("navigateTo"in l?l.navigateTo:o(B))("/informasi-fakultas/"+n.slug)},[s("span",null,t(n.title),1)],8,ms),s("div",us,[s("span",null,t(n.description),1)]),s("div",ps,[s("div",hs,[s("div",fs,[c(m,{src:"/avatar.png",width:"30"})]),s("div",vs,[s("div",xs,[s("span",null,t(n.created_by),1)])])])])])]))),256))])])])}}},js=E(bs,[["__scopeId","data-v-0c8f8a71"]]);export{js as default};
