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