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