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