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