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