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