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