var u=(p,c,t)=>new Promise((n,r)=>{var m=e=>{try{o(t.next(e))}catch(i){r(i)}},a=e=>{try{o(t.throw(e))}catch(i){r(i)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(m,a);o((t=t.apply(p,c)).next())});import{u as l}from"./useCreateDrawer-JEzOVO6Z.js";import{b6 as f}from"./bootstrap-Bqxdt4iG.js";import{u as d}from"./data-refresh-BZ1_-6mk.js";import{u as _}from"./tms-orders-Bsi6LVLz.js";import{_ as b}from"./order-form.vue_vue_type_script_setup_true_lang-COv7Yipk.js";import{a1 as x,ai as S,aj as w,ak as h,p as k,a9 as s}from"../jse/index-index-BUJ_4tQs.js";const B=x({__name:"order-create-drawer",setup(p){const c=_(),t=d(),{Drawer:n,formRef:r,handleSubmit:m}=l({createApi:a=>u(null,null,function*(){return c.create(a)}),invalidateData:()=>t.invalidateTmsOrders(),title:f("page.tms.orders.drawer.createTitle")});return(a,o)=>(w(),S(s(n),{class:"w-[520px]","confirm-text":s(f)("page.table.button.create"),"cancel-text":s(f)("page.table.button.cancel")},{default:h(()=>[k(b,{ref_key:"formRef",ref:r,mode:"create",onSubmit:s(m)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{B as _};
