var p=(l,t,a)=>new Promise((i,n)=>{var s=e=>{try{r(a.next(e))}catch(d){n(d)}},o=e=>{try{r(a.throw(e))}catch(d){n(d)}},r=e=>e.done?i(e.value):Promise.resolve(e.value).then(s,o);r((a=a.apply(l,t)).next())});import{b6 as f}from"./bootstrap-Bqxdt4iG.js";import{_ as k}from"./packing-order-detail-list.vue_vue_type_script_setup_true_lang-Cx-RcRaf.js";import{a1 as _,L as c,V as g,ai as u,aj as m,ak as v,an as w,a9 as C}from"../jse/index-index-BUJ_4tQs.js";import{u as O}from"./use-drawer-CLDmRz16.js";const D=_({__name:"packing-order-detail-list-drawer",setup(l){const t=c(""),a=c(""),i=c(),[n,s]=O({title:f("page.packingOrders.drawer.detailListTitle"),placement:"top",footer:!1,onOpenChange:o=>p(null,null,function*(){var r;if(o){const e=s.getData();e&&(t.value=e.packingOrderId,a.value=e.packingOrderCode||"",s.setState({title:`${a.value} - ${f("page.packingOrders.drawer.detailListTitle")}`}),yield g(),(r=i.value)==null||r.query())}}),onClosed:()=>{t.value="",a.value=""}});return(o,r)=>(m(),u(C(n),{class:"h-[500px]"},{default:v(()=>[t.value?(m(),u(k,{key:0,ref_key:"listRef",ref:i,"packing-order-id":t.value,embedded:""},null,8,["packing-order-id"])):w("",!0)]),_:1}))}});export{D as _};
