import{u as m}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-trucks-BDMVh6TZ.js";import{_ as d}from"./truck-form.vue_vue_type_script_setup_true_lang-XMOJEhOv.js";import{a1 as l,ai as _,aj as k,ak as b,p as x,a9 as t}from"../jse/index-index-BUJ_4tQs.js";const y=l({__name:"truck-edit-drawer",setup(S){const r=p(),s=f(),{Drawer:i,entity:c,formRef:n,handleSubmit:u}=m({getDetailApi:e=>r.getDetail(e),updateApi:(e,o)=>r.update(e,o),invalidateData:()=>s.invalidateTrucks(),title:a("page.tms.trucks.drawer.editTitle"),idKey:"truckId"});return(e,o)=>(k(),_(t(i),{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:n,truck:t(c),mode:"edit",onSubmit:t(u)},null,8,["truck","onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{y as _};
