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