import{d,a as m,E as _,c as n,b as v,e as s,w as c,o as a,h as k,u as t,bw as y,g as x,bx as b,by as g,F as N,f as w}from"./index-562c8470.js";import{u as C}from"./usePageTitle-ad3dbf10.js";const F=d({__name:"Notifications",setup(h){const r=m(),e=_(r.notifications.getNotifications),i=n(()=>e.response??[]),u=n(()=>e.executed&&i.value.length===0),f=n(()=>e.executed);return C("Notifications"),(B,o)=>{const l=v("p-layout-default");return a(),s(l,{class:"notifications"},{header:c(()=>[k(t(y))]),default:c(()=>[f.value?(a(),x(N,{key:0},[u.value?(a(),s(t(b),{key:0})):(a(),s(t(g),{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)):w("",!0)]),_:1})}}});export{F as default};
