var u=(p,n,t)=>new Promise((c,a)=>{var i=e=>{try{o(t.next(e))}catch(m){a(m)}},r=e=>{try{o(t.throw(e))}catch(m){a(m)}},o=e=>e.done?c(e.value):Promise.resolve(e.value).then(i,r);o((t=t.apply(p,n)).next())});import{u as l}from"./useCreateDrawer-JEzOVO6Z.js";import{b6 as f}from"./bootstrap-Bqxdt4iG.js";import{u as _}from"./costing-sheets-CTsGgj5D.js";import{u as S}from"./data-refresh-BZ1_-6mk.js";import{_ as d}from"./costing-sheet-form.vue_vue_type_script_setup_true_lang-D6z-0jpP.js";import{a1 as h,ai as b,aj as g,ak as x,p as w,a9 as s}from"../jse/index-index-BUJ_4tQs.js";const $=h({__name:"costing-sheet-create-drawer",setup(p){const n=_(),t=S(),{Drawer:c,formRef:a,handleSubmit:i}=l({createApi:r=>u(null,null,function*(){return n.create(r)}),invalidateData:()=>t.invalidateCostingSheets(),title:f("page.costingSheets.drawer.createTitle")});return(r,o)=>(g(),b(s(c),{class:"w-[640px]","confirm-text":s(f)("page.table.button.create"),"cancel-text":s(f)("page.table.button.cancel")},{default:x(()=>[w(d,{ref_key:"formRef",ref:a,mode:"create",onSubmit:s(i)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{$ as _};
