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-vendors-BcN7IhOD.js";import{_ as l}from"./vendor-form.vue_vue_type_script_setup_true_lang-ZJ2h3wba.js";import{a1 as u,ai as _,aj as v,ak as x,p as b,a9 as e}from"../jse/index-index-BUJ_4tQs.js";const y=u({__name:"vendor-edit-drawer",setup(w){const r=p(),n=f(),{Drawer:s,entity:i,formRef:d,handleSubmit:m}=c({getDetailApi:t=>r.getDetail(t),updateApi:(t,o)=>r.update(t,o),invalidateData:()=>n.invalidateVendors(),title:a("page.tms.vendors.drawer.editTitle"),idKey:"vendorId"});return(t,o)=>(v(),_(e(s),{class:"w-full max-w-[1000px]","confirm-text":e(a)("page.table.button.save"),"cancel-text":e(a)("page.table.button.cancel")},{default:x(()=>[b(l,{ref_key:"formRef",ref:d,vendor:e(i),mode:"edit",onSubmit:e(m)},null,8,["vendor","onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{y as _};
