import{d as x,r,L as k,l as w,o as g,c as D,g as d,f as n,w as b,a as l,P as T,dZ as V,F as j,j as z,W as P,_ as U,__tla as C}from"./index-04f8d540.js";import{g as F,__tla as L}from"./index-19f577dd.js";import{d as N,h as R}from"./tree-0af4953a.js";let u,S=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return L}catch{}})()]).then(async()=>{let c,o;c={class:"head-container"},o={class:"head-container"},u=U(x({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup(W,{emit:m}){const a=r(""),t=r([]),i=r(),p=(e,s)=>!e||s.name.includes(e),_=async e=>{f("node-click",e)},f=m;return k(a,e=>{i.value.filter(e)}),w(async()=>{await(async()=>{const e=await F();t.value=[],t.value.push(...R(e))})()}),(e,s)=>{const h=z,y=P;return g(),D(j,null,[d("div",c,[n(y,{modelValue:l(a),"onUpdate:modelValue":s[0]||(s[0]=v=>T(a)?a.value=v:null),class:"mb-20px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0"},{prefix:b(()=>[n(h,{icon:"ep:search"})]),_:1},8,["modelValue"])]),d("div",o,[n(l(V),{ref_key:"treeRef",ref:i,data:l(t),"expand-on-click-node":!1,"filter-node-method":p,props:l(N),"default-expand-all":"","highlight-current":"","node-key":"id",onNodeClick:_},null,8,["data","props"])])],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/user/DeptTree.vue"]])});export{S as __tla,u as default};
