var T=Object.defineProperty,V=Object.defineProperties;var H=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var g=(e,t,a)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,v=(e,t)=>{for(var a in t||(t={}))R.call(t,a)&&g(e,a,t[a]);if(M)for(var a of M(t))$.call(t,a)&&g(e,a,t[a]);return e},y=(e,t)=>V(e,H(t));import{M as w}from"./MkPagination-urywMrXv.js";import{a4 as D,i as u,M as E,f as F,n as U}from"./app-JmgyQoR0.js";import{b as j,c as C,D as c,h as o,i as z,j as d,l as n,t as i,G,u as _,H as l,E as h,K as S,z as x,F as J,I as K,J as L}from"./vue-y3KLWBaS.js";const q=e=>(K("data-v-d6246f89"),e=e(),L(),e),O={class:"_title"},Q={key:0},W={key:1},X={class:"_content"},Y=["src"],Z={key:0,class:"_footer"},ee=q(()=>_("i",{class:"ph-check ph-bold ph-lg"},null,-1)),te=j({__name:"announcements",setup(e){const t={endpoint:"announcements",limit:10};function a(r,p,m){r[m]=y(v({},p),{isRead:!0}),F("i/read-announcement",{announcementId:p.id})}const I=C(()=>[]),b=C(()=>[]);return D({title:u.ts.announcements,icon:"ph-megaphone-simple ph-bold ph-lg"}),(r,p)=>{const m=c("MkPageHeader"),k=c("MkTime"),A=c("Mfm"),B=c("MkSpacer"),N=c("MkStickyContainer");return o(),z(N,null,{header:d(()=>[n(m,{actions:I.value,tabs:b.value},null,8,["actions","tabs"])]),default:d(()=>[n(B,{"content-max":800},{default:d(()=>[n(w,{pagination:t,class:"ruryvtyk _content"},{default:d(({items:f})=>[(o(!0),i(J,null,G(f,(s,P)=>(o(),i("section",{key:s.id,class:"_card announcement"},[_("div",O,[r.$i&&!s.isRead?(o(),i("span",Q,"🆕 ")):l("",!0),_("h3",null,h(s.title),1),n(k,{time:s.createdAt},null,8,["time"]),s.updatedAt?(o(),i("div",W,[S(h(x(u).ts.updatedAt)+": ",1),n(k,{time:s.createdAt},null,8,["time"])])):l("",!0)]),_("div",X,[n(A,{text:s.text},null,8,["text"]),s.imageUrl?(o(),i("img",{key:0,src:s.imageUrl},null,8,Y)):l("",!0)]),r.$i&&!s.isRead?(o(),i("div",Z,[n(E,{primary:"",onClick:ae=>a(f,s,P)},{default:d(()=>[ee,S(" "+h(x(u).ts.gotIt),1)]),_:2},1032,["onClick"])])):l("",!0)]))),128))]),_:1})]),_:1})]),_:1})}}}),ce=U(te,[["__scopeId","data-v-d6246f89"]]);export{ce as default};
