import{d as x,b as M,r as _,B as P,P as j,o as l,c,i,w as p,F as f,k as B,l as y,a as h,y as C,C as G,j as D,a2 as E,D as F,G as H,J,_ as O,__tla as R}from"./index-2c56227b.js";import{g as U,T as q,__tla as z}from"./TagForm-f344aad8.js";import{__tla as I}from"./Dialog-1050d437.js";import{__tla as K}from"./useMessage-96878a4a.js";let v,L=Promise.all([(()=>{try{return R}catch{}})(),(()=>{try{return z}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return K}catch{}})()]).then(async()=>{v=O(x({name:"MemberTagSelect",__name:"MemberTagSelect",props:{modelValue:{type:Array,default:void 0},showAdd:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{expose:b,emit:w}){const r=s,V=w;b({showAdd:r.showAdd});const t=M({get:()=>r.modelValue,set(n){V("update:modelValue",n)}}),o=_([]),u=async()=>{o.value=await U()},m=_();return P(()=>{u()}),(n,e)=>{const g=F,k=H,A=J,S=j("hasPermi");return l(),c(f,null,[i(k,{modelValue:h(t),"onUpdate:modelValue":e[0]||(e[0]=a=>C(t)?t.value=a:null),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u6807\u7B7E",clearable:"",multiple:"",class:"!w-240px"},{default:p(()=>[(l(!0),c(f,null,B(h(o),a=>(l(),y(g,{key:a.id,label:a.name,value:a.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),s.showAdd?G((l(),y(A,{key:0,type:"primary",class:"ml-2",link:"",onClick:e[1]||(e[1]=a=>{return d="create",void m.value.open(d,T);var d,T})},{default:p(()=>[D(" \u65B0\u589E\u6807\u7B7E ")]),_:1})),[[S,["member:tag:create"]]]):E("",!0),i(q,{ref_key:"formRef",ref:m,onSuccess:u},null,512)],64)}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/member/tag/components/MemberTagSelect.vue"]])});export{L as __tla,v as default};
