import{d as k,k as g,t as v,h as s,c as n,i,j as r,o as a,l,m as t,cA as y,B as N,y as x,cB as h,cC as B,F as C,a as b}from"./index-7qezL2zM.js";import{u as P}from"./usePageTitle-k72s0--o.js";const M=k({__name:"Notifications",setup(V){const u=g(),e=v(u.notifications.getNotifications),c=s(()=>e.response??[]),f=s(()=>e.executed&&c.value.length===0),d=s(()=>e.executed);return P("Notifications"),(w,o)=>{const p=r("p-message"),m=r("p-layout-default");return a(),n(m,{class:"notifications"},{header:i(()=>[l(t(y))]),default:i(()=>[l(p,{info:""},{default:i(()=>[N(" Notifications are deprecated and will be migrated in the future. Please use Automations. ")]),_:1}),d.value?(a(),x(C,{key:0},[f.value?(a(),n(t(h),{key:0})):(a(),n(t(B),{key:1,notifications:c.value,onDelete:o[0]||(o[0]=_=>t(e).refresh()),onUpdate:o[1]||(o[1]=_=>t(e).refresh())},null,8,["notifications"]))],64)):b("",!0)]),_:1})}}});export{M as default};
//# sourceMappingURL=Notifications-B5e2vZqz.js.map
