import{aY as v,b5 as g,d as o,a_ as $,Y as w,o as l,c as r,x as d,w as E,aK as x,a as t,bb as B,a0 as i,T as c,aC as u,a$ as C,b0 as S,__tla as Y}from"./index-8dc1e40a.js";let f,K=Promise.all([(()=>{try{return Y}catch{}})()]).then(async()=>{const p=v({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:g}}),y={click:n=>n instanceof MouseEvent},m=["href"],b=o({name:"ElLink"});f=S(C(o({...b,props:p,emits:y,setup(n,{emit:k}){const e=n,s=$("link"),_=w(()=>[s.b(),s.m(e.type),s.is("disabled",e.disabled),s.is("underline",e.underline&&!e.disabled)]);function h(a){e.disabled||k("click",a)}return(a,L)=>(l(),r("a",{class:c(t(_)),href:a.disabled||!a.href?void 0:a.href,onClick:h},[a.icon?(l(),d(t(B),{key:0},{default:E(()=>[(l(),d(x(a.icon)))]),_:1})):i("v-if",!0),a.$slots.default?(l(),r("span",{key:1,class:c(t(s).e("inner"))},[u(a.$slots,"default")],2)):i("v-if",!0),a.$slots.icon?u(a.$slots,"icon",{key:2}):i("v-if",!0)],10,m))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]))});export{f as E,K as __tla};
