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