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