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