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