import{d as p,e as v,r as h,l as f,o as s,v as u,w,c as x,F as y,q as g,a as i,y as b,z,_ as V,__tla as k}from"./index-04f8d540.js";import{f as q,__tla as A}from"./index-a565741b.js";let d,C=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return A}catch{}})()]).then(async()=>{d=V(p({name:"WxAccountSelect",__name:"main",emits:["change"],setup(D,{emit:o}){const a=v({id:-1,name:""}),e=h([]),m=o,r=c=>{const l=e.value.find(t=>t.id===c);a.id&&(a.name=l?l.name:"",m("change",a.id,a.name))};return f(()=>{(async()=>(e.value=await q(),e.value.length>0&&(a.id=e.value[0].id,a.id&&(a.name=e.value[0].name,m("change",a.id,a.name)))))()}),(c,l)=>{const t=b,_=z;return s(),u(_,{modelValue:i(a).id,"onUpdate:modelValue":l[0]||(l[0]=n=>i(a).id=n),placeholder:"\u8BF7\u9009\u62E9\u516C\u4F17\u53F7",class:"!w-240px",onChange:r},{default:w(()=>[(s(!0),x(y,null,g(i(e),n=>(s(),u(t,{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{C as __tla,d as default};
