import{d as k,r,M as x,m as w,o as g,c as D,h as d,g as n,w as b,a as l,Q as T,dZ as V,F as z,k as U,X as j,_ as C,__tla as F}from"./index-7d5b26d3.js";import{g as M,__tla as N}from"./index-a54c35d5.js";import{d as P,h as Q}from"./tree-0af4953a.js";let u,R=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{let c,o;c={class:"head-container"},o={class:"head-container"},u=C(k({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup(S,{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 x(a,e=>{i.value.filter(e)}),w(async()=>{await(async()=>{const e=await M();t.value=[],t.value.push(...Q(e))})()}),(e,s)=>{const h=U,y=j;return g(),D(z,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(P),"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{R as __tla,u as default};
