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