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