import{d as v,v as g,b as k,e as s,c as n,g as i,h as r,o as a,j as u,k as o,cB as y,y as N,p as x,cC as C,cD as B,F as b,a as V}from"./index-Bp1Bhxow.js";import{u as h}from"./usePageTitle-CccNdtFw.js";const P=v({__name:"Notifications",setup(w){const l=g(),t=k(l.notifications.getNotifications),c=s(()=>t.response??[]),f=s(()=>t.executed&&c.value.length===0),p=s(()=>t.executed);return h("Notifications"),(D,e)=>{const d=r("p-message"),m=r("p-layout-default");return a(),n(m,{class:"notifications"},{header:i(()=>[u(o(y))]),default:i(()=>[u(d,{info:""},{default:i(()=>e[2]||(e[2]=[N(" Notifications are deprecated and will be migrated in the future. Please use Automations. ")])),_:1}),p.value?(a(),x(b,{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{P as default};
//# sourceMappingURL=Notifications-De0gZpLT.js.map
