import{u as c}from"./useEditDrawer-JG4PTzvo.js";import{b6 as a}from"./bootstrap-Bqxdt4iG.js";import{u as f}from"./data-refresh-BZ1_-6mk.js";import{u as p}from"./tms-quotation-costing-DRSWqa_h.js";import{_ as d}from"./quotation-costing-header-form.vue_vue_type_script_setup_true_lang-DapMDa_8.js";import{a1 as l,ai as _,aj as g,ak as b,p as x,a9 as t}from"../jse/index-index-BUJ_4tQs.js";const R=l({__name:"quotation-costing-edit-drawer",setup(C){const o=p(),n=f(),{Drawer:r,entity:s,formRef:m,handleSubmit:u}=c({getDetailApi:e=>o.getDetail(e),updateApi:(e,i)=>o.update(e,i),invalidateData:()=>n.invalidateTmsQuotationCostings(),title:a("page.tms.quotationCosting.drawer.editTitle"),idKey:"quotationCostingId"});return(e,i)=>(g(),_(t(r),{class:"w-[800px]","confirm-text":t(a)("page.table.button.save"),"cancel-text":t(a)("page.table.button.cancel")},{default:b(()=>[x(d,{ref_key:"formRef",ref:m,"quotation-costing":t(s),mode:"edit",onSubmit:t(u)},null,8,["quotation-costing","onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{R as _};
