var p=(s,o,l)=>new Promise((d,c)=>{var e=a=>{try{n(l.next(a))}catch(r){c(r)}},u=a=>{try{n(l.throw(a))}catch(r){c(r)}},n=a=>a.done?d(a.value):Promise.resolve(a.value).then(e,u);n((l=l.apply(s,o)).next())});import{d as b,a4 as g,r as v,n as S,j as w,u as _,D,y as x,o as N,l as B,e as T,ax as j,__tla as I}from"./index-b5895273.js";import{c as P,__tla as U}from"./index-f35bbafa.js";let h,k=Promise.all([(()=>{try{return I}catch(s){}})(),(()=>{try{return U}catch(s){}})()]).then(()=>p(void 0,null,function*(){let s;s=b({__name:"DicTreeSelect",props:{value:String,disabled:{type:Boolean,default:()=>!1}},emits:["update:value","change"],setup(o,{emit:l}){const d=o,{t:c}=g(),e=v(d.value),u=v([]),n=v([]),a=v({label:"name",value:"id"});S(()=>{r()}),w(()=>e,()=>{var i,t;l("update:value",(i=_(e))==null?void 0:i.toString()),l("change",(t=_(e))==null?void 0:t.toString())},{deep:!0});function r(){return p(this,null,function*(){u.value=yield P(),n.value=D(u.value),e.value=d.value})}function m(i){u.value=n.value.filter(t=>t.name.includes(i))}return(i,t)=>{const f=x("a-select");return N(),B("div",null,[T(f,{value:e.value,"onUpdate:value":t[0]||(t[0]=y=>e.value=y),"show-search":"",disabled:o.disabled,placeholder:_(c)("\u8BF7\u9009\u62E9\u6570\u636E\u9009\u9879"),options:u.value,"filter-option":!1,fieldNames:a.value,style:{width:"100%"},onSearch:m},null,8,["value","disabled","placeholder","options","fieldNames"])])}}}),h=j(s)}));export{h as D,k as __tla};