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