import{a$ as v,b0 as g,d as o,b1 as $,b as w,o as l,c as r,l as d,w as E,aN as B,a as t,b2 as S,a2 as i,W as c,aF as u,b3 as x,b4 as C,__tla as F}from"./index-8c6726e5.js";let f,L=Promise.all([(()=>{try{return F}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},b=["href"],k=o({name:"ElLink"});f=C(x(o({...k,props:p,emits:y,setup(n,{emit:m}){const a=n,s=$("link"),_=w(()=>[s.b(),s.m(a.type),s.is("disabled",a.disabled),s.is("underline",a.underline&&!a.disabled)]);function h(e){a.disabled||m("click",e)}return(e,M)=>(l(),r("a",{class:c(t(_)),href:e.disabled||!e.href?void 0:e.href,onClick:h},[e.icon?(l(),d(t(S),{key:0},{default:E(()=>[(l(),d(B(e.icon)))]),_:1})):i("v-if",!0),e.$slots.default?(l(),r("span",{key:1,class:c(t(s).e("inner"))},[u(e.$slots,"default")],2)):i("v-if",!0),e.$slots.icon?u(e.$slots,"icon",{key:2}):i("v-if",!0)],10,b))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]))});export{f as E,L as __tla};
