import{d as _,dW as i,ar as d,e as h,r as y,b as V,o as b,A as f,a as l,a2 as g,__tla as w}from"./index-92ad187a.js";import{E as I,__tla as k}from"./el-tree-select-42c0ad8b.js";import{h as v,d as x}from"./tree-0af4953a.js";import{g as P,__tla as A}from"./category-18f13e39.js";let u,C=Promise.all([(()=>{try{return w}catch{}})(),(()=>{try{return k}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{u=_({name:"ProductCategorySelect",__name:"ProductCategorySelect",props:{modelValue:i([Number,Array]),multiple:d.bool.def(!1),parentId:d.number.def(void 0)},emits:["update:modelValue"],setup(e,{emit:m}){const r=e,t=h({get:()=>r.modelValue,set:a=>{p("update:modelValue",a)}}),p=m,o=y([]);return V(async()=>{const a=await P({parentId:r.parentId});o.value=v(a,"id","parentId")}),(a,s)=>{const n=I;return b(),f(n,{modelValue:l(t),"onUpdate:modelValue":s[0]||(s[0]=c=>g(t)?t.value=c:null),data:l(o),props:l(x),multiple:e.multiple,"show-checkbox":e.multiple,class:"w-1/1","node-key":"id",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5206\u7C7B"},null,8,["modelValue","data","props","multiple","show-checkbox"])}}})});export{u as _,C as __tla};
