import{d,a as _,b as k,e as n,g as y,o as s,h as i,w as r,i as g,j as e,aU as x,k as N,aV as $,aW as v,F as C,s as b}from"./index.ace9693c.js";import{u as h}from"./usePageTitle.12638eb5.js";const F=d({__name:"Notifications",setup(B){const f=_(),t=k(f.notifications.getNotifications),c=n(()=>{var a;return(a=t.response)!=null?a:[]}),u=n(()=>t.executed&&c.value.length===0),p=n(()=>t.executed);return h("Notifications"),(a,o)=>{const l=y("p-layout-default");return s(),i(l,{class:"notifications"},{header:r(()=>[g(e(x))]),default:r(()=>[e(p)?(s(),N(C,{key:0},[e(u)?(s(),i(e($),{key:0})):(s(),i(e(v),{key:1,notifications:e(c),onDelete:o[0]||(o[0]=m=>e(t).refresh()),onUpdate:o[1]||(o[1]=m=>e(t).refresh())},null,8,["notifications"]))],64)):b("",!0)]),_:1})}}});export{F as default};
