import{k as n,l as o,j as t,E as l,G as p}from"./app-BgLa5dit.js";import{a as u}from"./4qGb1BIY.chunk.js";import{S as m,a as d}from"./v4dOQXXE.chunk.js";import{C as S}from"./CdBbWXza.chunk.js";import"./DnXDEnAR.chunk.js";function x(e){const c=n(),a=o();async function i(s,r){try{await c(S.createSpecialEvent(s)),a.success(`Successfully created special event <strong>${s.name}</strong>`),e.closePopup()}catch{a.error("Failed to create special event"),r()}}return t.jsx(l,{title:"Create special event",closePopup:e.closePopup,backdrop:"static",children:t.jsx(p,{initialValues:{name:"",description:"",type:"",status:u.Published},onSubmit:i,validationSchema:m,children:t.jsx(d,{onClickCancel:e.closePopup,isNew:!0})})})}export{x as CreateSpecialEventView};
//# sourceMappingURL=n9dIdqsh.chunk.js.map
