import{d as h,x as p,r as v,b as f,o as s,A as u,B as g,c as x,F as y,R as b,a as m,S as V,U as w,__tla as A}from"./index-92ad187a.js";import{f as S,__tla as U}from"./index-8abd810d.js";let c,k=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{c=h({name:"WxAccountSelect",__name:"main",emits:["change"],setup(B,{emit:r}){const a=p({id:-1,name:""}),e=v([]),d=r,o=i=>{const l=e.value.find(t=>t.id===i);a.id&&(a.name=l?l.name:"",d("change",a.id,a.name))};return f(()=>{(async()=>(e.value=await S(),e.value.length>0&&(a.id=e.value[0].id,a.id&&(a.name=e.value[0].name,d("change",a.id,a.name)))))()}),(i,l)=>{const t=V,_=w;return s(),u(_,{modelValue:m(a).id,"onUpdate:modelValue":l[0]||(l[0]=n=>m(a).id=n),placeholder:"\u8BF7\u9009\u62E9\u516C\u4F17\u53F7",class:"!w-240px",onChange:o},{default:g(()=>[(s(!0),x(y,null,b(m(e),n=>(s(),u(t,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}})});export{c as _,k as __tla};
