import{H as B,I as N,b as f,M as V,d as h,_ as w}from"./app-QjDgb7aF.js";import{b as z,g as y,i as c,j as o,q as r,x as a,u as t,J as d,D as l,p as u,k as i,H as M,E as v,z as T}from"./vue-Cm77DuTi.js";import"./charts-3gEHPHRq.js";import"./media-DuCIZ-3n.js";const b={key:1},D={key:0},E=["src"],H=z({__name:"MkAnnouncement",props:{announcement:{}},setup(n){const g=n,{id:x,text:I,title:_,imageUrl:m,isGoodNews:$}=g.announcement,p=T(),C=()=>{p.value.close(),h("i/read-announcement",{announcementId:x})};return(e,s)=>{const k=v("MkTime"),A=v("Mfm");return o(),y(B,{ref_key:"modal",ref:p,"z-priority":"middle",onClosed:s[1]||(s[1]=j=>e.$emit("closed"))},{default:c(()=>[r("div",{class:a(e.$style.root)},[r("div",{class:a(e.$style.title)},[t($)?(o(),y(N,{key:0},{default:c(()=>[d(l(t(_)),1)]),_:1})):(o(),u("p",b,l(t(_)),1))],2),r("div",{class:a(e.$style.time)},[i(k,{time:n.announcement.createdAt},null,8,["time"]),n.announcement.updatedAt?(o(),u("div",D,[d(l(t(f).ts.updatedAt)+": ",1),i(k,{time:n.announcement.createdAt},null,8,["time"])])):M("",!0)],2),i(A,{text:t(I)},null,8,["text"]),t(m)!=null?(o(),u("img",{key:t(m),src:t(m),alt:"attached image"},null,8,E)):M("",!0),i(V,{class:a(e.$style.gotIt),primary:"",full:"",onClick:s[0]||(s[0]=j=>C())},{default:c(()=>[d(l(t(f).ts.gotIt),1)]),_:1},8,["class"])],2)]),_:1},512)}}}),S="_root_vj3x1_1",q="_title_vj3x1_18",G="_time_vj3x1_25",J="_gotIt_vj3x1_29",R={root:S,title:q,time:G,gotIt:J},U={$style:R},P=w(H,[["__cssModules",U]]);export{P as default};
//# sourceMappingURL=MkAnnouncement-CAiUX4vs.js.map
