import{d as S,Y as T,r as _,q as z,M as B,o as l,c,f as p,w as i,F as f,v as P,x as y,a as h,l as R,z as U,y as j,a0 as q,A as C,B as D,G as F,_ as G,__tla as H}from"./index-8dc1e40a.js";import{g as X,T as Y,__tla as E}from"./TagForm-d0487ebf.js";import{__tla as I}from"./Dialog-41802231.js";import{__tla as J}from"./useMessage-7a27dd80.js";let v,K=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{v=G(S({name:"MemberTagSelect",__name:"MemberTagSelect",props:{modelValue:{type:Array,default:void 0},showAdd:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{expose:w,emit:b}){const r=s,V=b;w({showAdd:r.showAdd});const t=T({get:()=>r.modelValue,set(n){V("update:modelValue",n)}}),o=_([]),u=async()=>{o.value=await X()},m=_();return z(()=>{u()}),(n,a)=>{const g=C,k=D,A=F,x=B("hasPermi");return l(),c(f,null,[p(k,{modelValue:h(t),"onUpdate:modelValue":a[0]||(a[0]=e=>R(t)?t.value=e:null),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u6807\u7B7E",clearable:"",multiple:"",class:"!w-240px"},{default:i(()=>[(l(!0),c(f,null,P(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?U((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,M);var d,M})},{default:i(()=>[j(" \u65B0\u589E\u6807\u7B7E ")]),_:1})),[[x,["member:tag:create"]]]):q("",!0),p(Y,{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{K as __tla,v as default};
