import{bN as v,w as x,Y as g,d as a,e as i,F as C,z as ,ドルi as _,C as b,j as u,x as w,f as n,t as y,M as k,_ as M,a as B,u as f,bp as T,s as z,o as E,n as F,h,a5 as D,T as I}from"#entry";const L={style:{padding:"20px"}},O={style:{borderBottom:"1px solid black",paddingBottom:"10px",marginBottom:"10px"}},R=["innerHTML"],V={__name:"AspireNewsAlerts",async setup(N){let s,o;const{getUnreadNewsAlerts:p,dismissNewsAlert:r}=v(),t=([s,o]=x(()=>p()),s=await s,o(),s),e=g(!1);function l(c){e.value=!0,r(c.id)}return(c,m)=>{const A=k;return i(),a("div",{class:b(["ebm-web-system-alert",_(e)?"closing":""])},[(i(!0),a(C,null,$(_(t),d=>(i(),a("div",{key:d.id,class:"alert-item"},[u(A,{show:!_(e),"max-width":"60vw",title:"Aspire News Alert","on-close":()=>l(d),"overflow-y":"auto"},{default:w(()=>[n("div",L,[n("h2",O,y(d.title),1),n("div",{innerHTML:d.description},null,8,R)])]),_:2},1032,["show","on-close"])]))),128))],2)}}},H={key:0,ref:"main",class:"admin-layout"},S={key:0,class:"down-for-maintenance"},U={class:"content"},W={__name:"admin",setup(N){const{$ss:s,$cmsUser:o}=B(),{query:p}=f(),r=g(!1);T().setCssVars();const t=s?.general?.favicon;return z({link:[{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,700,700i"},{rel:"icon",type:"image/x-icon",href:t},{rel:"apple-touch-icon",size:"180x180",href:t+"?w=180&h=180&fm=png"},{rel:"icon",type:"image/png",size:"32x32",href:t+"?w=32&h=32&fm=png"},{rel:"icon",type:"image/png",size:"16x16",href:t+"?w=16&h=16&fm=png"}]}),E(async()=>{await o.init(!0),!o.isLoggedIn()&&p.cmsUserBearerToken&&f().path!=="/admin/logout"&&F("/admin/logout"),r.value=!0}),(e,l)=>{const c=V,m=I;return _(r)?(i(),a("div",H,[u(m,null,{default:w(()=>[e.$config.public?.DOWN_FOR_MAINTENANCE?(i(),a("div",S,[n("div",U,[l[0]||(l[0]=n("h1",null,"Admin Down For Maintenance",-1)),n("div",null,y(e.$config.public?.DOWN_FOR_MAINTENANCE),1)])])):h("",!0),D(e.$slots,"default",{},void 0,!0),u(c)]),_:3})],512)):h("",!0)}}},q=M(W,[["__scopeId","data-v-9280f6d9"]]);export{q as default};