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