import{d as p,a7 as _,r as m,o as d,b as C,w as n,i,e,as as h,at as w,ar as y,Z as s,p as r,W as b}from"./index.a93ec448.js";const N=p({__name:"NotificationCreate",setup(v){const a=_({});async function c(o){try{await y.createNotification(o),s.push(r.notifications())}catch(t){b("Error creating notification","error"),console.warn(t)}}function f(){s.push(r.notifications())}return(o,t)=>{const u=m("p-layout-default");return d(),C(u,null,{header:n(()=>[i(e(h))]),default:n(()=>[i(e(w),{notification:a.value,"onUpdate:notification":t[0]||(t[0]=l=>a.value=l),onSubmit:c,onCancel:f},null,8,["notification"])]),_:1})}}});export{N as default};
