import{d as p,v as l,a as _,e as m,w as e,o as d,m as o,g as n,bj as h,bk as C,aG as i,Z as r,aF as b}from"./index-a91efef8.js";import{u as w}from"./usePageTitle-6b86fe3b.js";const k=p({__name:"NotificationCreate",setup(y){const s=l();async function c(t){try{await s.notifications.createNotification(t),i.push(r.notifications())}catch(a){b("Error creating notification","error"),console.warn(a)}}function u(){i.push(r.notifications())}return w("Create Notification"),(t,a)=>{const f=_("p-layout-default");return d(),m(f,{class:"notification-create"},{header:e(()=>[o(n(h))]),default:e(()=>[o(n(C),{action:"Create",onSubmit:c,onCancel:u})]),_:1})}}});export{k as default};
