var o=(e,u,l)=>new Promise((c,a)=>{var r=t=>{try{_(l.next(t))}catch(s){a(s)}},n=t=>{try{_(l.throw(t))}catch(s){a(s)}},_=t=>t.done?c(t.value):Promise.resolve(t.value).then(r,n);_((l=l.apply(e,u)).next())});import{f as m,__tla as f}from"./index-bd1f1fae.js";import{B as h,__tla as p}from"./Tree-6c35f2c0.js";import{d as v,r as i,n as y,o as x,c as P,u as g,_ as k,__tla as w}from"./index-b5895273.js";import{__tla as D}from"./useContextMenu-c4ffe073.js";import{__tla as K}from"./difference-9954c5db.js";let d,R=Promise.all([(()=>{try{return f}catch(e){}})(),(()=>{try{return p}catch(e){}})(),(()=>{try{return w}catch(e){}})(),(()=>{try{return D}catch(e){}})(),(()=>{try{return K}catch(e){}})()]).then(()=>o(void 0,null,function*(){const e=v({__name:"ProductTree",emits:["select"],setup(u,{expose:l,emit:c}){const a=i([]),r=i([]);y(()=>{n()});function n(){return o(this,null,function*(){a.value=yield m();let t=a.value.length?a.value[0].id:"";r.value=[t],c("select",t)})}function _(t,s){t.length||(r.value=[s.node.dataRef.id]),c("select",t[0]||r.value[0])}return l({fetch:n}),(t,s)=>(x(),P(g(h),{search:"",clickRowToExpand:!0,treeData:a.value,selectedKeys:r.value,expandOnSearch:"",fieldNames:{key:"id",title:"name"},onSelect:_},null,8,["treeData","selectedKeys"]))}});d=k(e,[["__scopeId","data-v-16d7652b"]])}));export{R as __tla,d as default};