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