import{m as E,q as T,d as w,s as N,t as I,k as M,v as t,x as V,y as n,z as m,A as o,B as a,C as c,D as i,G as k,H as g,I as C,J as y,T as $,_ as P,c as h,K as v,L as q}from"./index.25c29239.js";const A=E({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:T,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),D={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},G={name:"ElTag"},H=w({...G,props:A,emits:D,setup(l,{emit:r}){const b=l,_=N(),s=I("tag"),u=M(()=>{const{type:e,hit:f,effect:B,closable:S,round:z}=b;return[s.b(),s.is("closable",S),s.m(e),s.m(_.value),s.m(B),s.is("hit",f),s.is("round",z)]}),p=e=>{r("close",e)},d=e=>{r("click",e)};return(e,f)=>e.disableTransitions?(t(),V("span",{key:0,class:o(a(u)),style:y({backgroundColor:e.color}),onClick:d},[n("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(t(),c(a(g),{key:0,class:o(a(s).e("close")),onClick:k(p,["stop"])},{default:i(()=>[h(a(v))]),_:1},8,["class","onClick"])):C("v-if",!0)],6)):(t(),c($,{key:1,name:`${a(s).namespace.value}-zoom-in-center`,appear:""},{default:i(()=>[n("span",{class:o(a(u)),style:y({backgroundColor:e.color}),onClick:d},[n("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(t(),c(a(g),{key:0,class:o(a(s).e("close")),onClick:k(p,["stop"])},{default:i(()=>[h(a(v))]),_:1},8,["class","onClick"])):C("v-if",!0)],6)]),_:3},8,["name"]))}});var J=P(H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const L=q(J);export{L as E,A as t};
