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