import{d as f,f as p,r as v,m as h,o as t,x as u,w as x,c as w,F as g,v as y,a as m,z as b,A as z,_ as V,__tla as A}from"./index-7d5b26d3.js";import{f as k,__tla as C}from"./index-319e6b03.js";let d,D=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return C}catch{}})()]).then(async()=>{d=V(f({name:"WxAccountSelect",__name:"main",emits:["change"],setup(F,{emit:o}){const a=p({id:-1,name:""}),e=v([]),i=o,r=c=>{const l=e.value.find(s=>s.id===c);a.id&&(a.name=l?l.name:"",i("change",a.id,a.name))};return h(()=>{(async()=>(e.value=await k(),e.value.length>0&&(a.id=e.value[0].id,a.id&&(a.name=e.value[0].name,i("change",a.id,a.name)))))()}),(c,l)=>{const s=b,_=z;return t(),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:r},{default:x(()=>[(t(!0),w(g,null,y(m(e),n=>(t(),u(s,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mp/components/wx-account-select/main.vue"]])});export{D as __tla,d as default};
