import{d as m,M as d,f as _,g as n,c as s,j as c,l as v,o as a,n as k,u as t,bF as y,m as g,bG as x,bH as N,F as b,a as C}from"./index-bJiZR03d.js";import{u as w}from"./usePageTitle-wT6f1BZv.js";const h=m({__name:"Notifications",setup(B){const r=d(),e=_(r.notifications.getNotifications),i=n(()=>e.response??[]),l=n(()=>e.executed&&i.value.length===0),u=n(()=>e.executed);return w("Notifications"),(F,o)=>{const f=v("p-layout-default");return a(),s(f,{class:"notifications"},{header:c(()=>[k(t(y))]),default:c(()=>[u.value?(a(),g(b,{key:0},[l.value?(a(),s(t(x),{key:0})):(a(),s(t(N),{key:1,notifications:i.value,onDelete:o[0]||(o[0]=p=>t(e).refresh()),onUpdate:o[1]||(o[1]=p=>t(e).refresh())},null,8,["notifications"]))],64)):C("",!0)]),_:1})}}});export{h as default};
