var u=(m,a,r)=>new Promise((s,t)=>{var o=e=>{try{n(r.next(e))}catch(c){t(c)}},d=e=>{try{n(r.throw(e))}catch(c){t(c)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,d);n((r=r.apply(m,a)).next())});import{b6 as p}from"./bootstrap-Bqxdt4iG.js";import f from"./customer-detail-DH9Dvqc5.js";import{a1 as _,L as w,ai as i,aj as l,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:"customer-detail-drawer",setup(m){const a=w(""),[r,s]=x({title:p("page.customers.drawer.detailTitle"),footer:!1,onOpenChange:t=>u(null,null,function*(){if(t){const o=s.getData();o&&(a.value=o.customerId)}}),onClosed:()=>{a.value=""}});return(t,o)=>(l(),i(v(r),{class:"w-[520px]"},{default:C(()=>[a.value?(l(),i(f,{key:0,"customer-id":a.value,mode:"drawer"},null,8,["customer-id"])):k("",!0)]),_:1}))}});export{B as _};
