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