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