var u=(p,n,a)=>new Promise((s,r)=>{var i=e=>{try{o(a.next(e))}catch(m){r(m)}},t=e=>{try{o(a.throw(e))}catch(m){r(m)}},o=e=>e.done?s(e.value):Promise.resolve(e.value).then(i,t);o((a=a.apply(p,n)).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"./packing-orders-F5ifB4Cx.js";import{_ as k}from"./packing-order-form.vue_vue_type_script_setup_true_lang-CpfPl-vh.js";import{a1 as b,ai as g,aj as x,ak as S,p as w,a9 as c}from"../jse/index-index-BUJ_4tQs.js";const B=b({__name:"packing-order-create-drawer",setup(p){const n=_(),a=d(),{Drawer:s,formRef:r,handleSubmit:i}=l({createApi:t=>u(null,null,function*(){return n.create(t)}),invalidateData:()=>a.invalidatePackingOrders(),title:f("page.packingOrders.drawer.createTitle")});return(t,o)=>(x(),g(c(s),{class:"w-[520px]","confirm-text":c(f)("page.table.button.create"),"cancel-text":c(f)("page.table.button.cancel")},{default:S(()=>[w(k,{ref_key:"formRef",ref:r,mode:"create",onSubmit:c(i)},null,8,["onSubmit"])]),_:1},8,["confirm-text","cancel-text"]))}});export{B as _};
