import{d as m,ao as d,j as n,c as s,w as c,r as _,o as a,a as k,u as e,bB as y,l as x,bC as C,bD as N,G as b,m as g}from"./index-4d9fe32c-718dc5d9.js";import{c as v}from"./vue-compositions-55710141.js";import{u as B}from"./usePageTitle-e8e2e29d.js";const V=m({__name:"Notifications",setup(h){const r=d(),t=v(r.notifications.getNotifications),i=n(()=>t.response??[]),f=n(()=>t.executed&&i.value.length===0),l=n(()=>t.executed);return B("Notifications"),(w,o)=>{const p=_("p-layout-default");return a(),s(p,{class:"notifications"},{header:c(()=>[k(e(y))]),default:c(()=>[e(l)?(a(),x(b,{key:0},[e(f)?(a(),s(e(C),{key:0})):(a(),s(e(N),{key:1,notifications:e(i),onDelete:o[0]||(o[0]=u=>e(t).refresh()),onUpdate:o[1]||(o[1]=u=>e(t).refresh())},null,8,["notifications"]))],64)):g("",!0)]),_:1})}}});export{V as default};
