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