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