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