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