var l=(i,a,r)=>new Promise((n,o)=>{var t=e=>{try{s(r.next(e))}catch(d){o(d)}},p=e=>{try{s(r.throw(e))}catch(d){o(d)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(t,p);s((r=r.apply(i,a)).next())});import{b6 as f}from"./bootstrap-Bqxdt4iG.js";import u from"./vendor-detail-CJ_ORCEI.js";import{a1 as v,L as _,ai as m,aj as c,ak as w,an as C,a9 as k}from"../jse/index-index-BUJ_4tQs.js";import{u as x}from"./use-drawer-CLDmRz16.js";const B=v({__name:"vendor-detail-drawer",setup(i){const a=_(""),[r,n]=x({title:f("page.tms.vendors.drawer.detailTitle"),footer:!1,onOpenChange:o=>l(null,null,function*(){if(o){const t=n.getData();t&&(a.value=t.vendorId)}}),onClosed:()=>{a.value=""}});return(o,t)=>(c(),m(k(r),{class:"w-[520px]"},{default:w(()=>[a.value?(c(),m(u,{key:0,"vendor-id":a.value,mode:"drawer"},null,8,["vendor-id"])):C("",!0)]),_:1}))}});export{B as _};
