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