import{u as m}from"./useCreateDrawer-JEzOVO6Z.js";import{b6 as t}from"./bootstrap-Bqxdt4iG.js";import{u as i}from"./announcements-8EaxYlGv.js";import{u}from"./data-refresh-BZ1_-6mk.js";import{_ as f}from"./announcement-form.vue_vue_type_script_setup_true_lang-WwaKo_20.js";import{a1 as p,ai as l,aj as _,ak as d,p as b,a9 as e}from"../jse/index-index-BUJ_4tQs.js";const v=p({__name:"announcement-create-drawer",setup(x){const n=i(),r=u(),{Drawer:o,formRef:c,handleSubmit:s}=m({createApi:a=>n.create(a),invalidateData:()=>r.invalidateAnnouncements(),title:t("page.announcements.create")});return(a,S)=>(_(),l(e(o),{class:"w-[640px]","confirm-text":e(t)("page.table.button.save"),"cancel-text":e(t)("page.table.button.cancel")},{default:d(()=>[b(f,{ref_key:"formRef",ref:c,mode:"create",onSubmit:e(s)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{v as _};
