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