import{U as a,V as s,x as e,a0 as l,a1 as o,Z as n,d as t,e as c,h as i,a6 as r,a7 as p,g as u,j as f,k as d,f as k,az as m,aO as g,p as y,an as b,al as v,T as C,a8 as h,ap as _}from"./index.286e9b79.js";const B=a({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:s},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),E={close:a=>a instanceof MouseEvent,click:a=>a instanceof MouseEvent},S=e({name:"ElTag"});const T=_(h(e({...S,props:B,emits:E,setup(a,{emit:s}){const e=a,h=l(),_=o("tag"),B=n((()=>{const{type:a,hit:s,effect:l,closable:o,round:n}=e;return[_.b(),_.is("closable",o),_.m(a||"primary"),_.m(h.value),_.m(l),_.is("hit",s),_.is("round",n)]})),E=a=>{s("close",a)},S=a=>{s("click",a)};return(a,s)=>a.disableTransitions?(t(),c("span",{key:0,class:p(u(B)),style:v({backgroundColor:a.color}),onClick:S},[i("span",{class:p(u(_).e("content"))},[r(a.$slots,"default")],2),a.closable?(t(),f(u(y),{key:0,class:p(u(_).e("close")),onClick:g(E,["stop"])},{default:d((()=>[k(u(m))])),_:1},8,["class","onClick"])):b("v-if",!0)],6)):(t(),f(C,{key:1,name:`${u(_).namespace.value}-zoom-in-center`,appear:""},{default:d((()=>[i("span",{class:p(u(B)),style:v({backgroundColor:a.color}),onClick:S},[i("span",{class:p(u(_).e("content"))},[r(a.$slots,"default")],2),a.closable?(t(),f(u(y),{key:0,class:p(u(_).e("close")),onClick:g(E,["stop"])},{default:d((()=>[k(u(m))])),_:1},8,["class","onClick"])):b("v-if",!0)],6)])),_:3},8,["name"]))}}),[["__file","tag.vue"]]));export{T as E,B as t};
