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