import{Ct as e,H as t,Mt as n,Q as r,W as i,Z as a,_t as o,at as s,d as c,ht as l,jt as u,mt as d,ot as f,pt as p,s as m,tt as h,wt as g,yt as _}from"../chunks/BA99CCI5.js";import"../chunks/xihTtKlq.js";import"../chunks/DGo8yE5j.js";import{t as v}from"../chunks/BfBgZfCV2.js";import{t as y}from"../chunks/DCohNkHF.js";import{t as b}from"../chunks/D8GKXqGk2.js";var x=i(`<!> <!>`,1);function S(i,S){n(S,!1);let C=()=>g(v,`$page`,w),[w,T]=e(),E=l(),D=m(S,`data`,8),O=m(S,`form`,8),k={title:``,severity:`info`,publishedAt:new Date().toISOString(),expiresAt:null,link:``,body:``};s(()=>C(),()=>{o(E,parseInt(C().params.id??`0`,10))}),s(()=>a(D()),()=>{D()}),f(),c();var A=x(),j=p(A);{let e=_(()=>(a(D()),h(()=>`${D().database.name} · Announcement · New`)));y(j,{get title(){return r(e)}})}var M=d(j,2);b(M,{mode:`create`,get databaseId(){return r(E)},get initial(){return k},get form(){return O()}}),t(i,A),u(),T()}export{S as component};