import{U as g,X as $,Z as i,j as w,o as n,c as o,e as r,w as E,ag as B,ae as e,ah as S,ab as t,ad as d,af as c,am as C,an as L,__tla as P}from"./index.91e2b97e.js";let f,j=Promise.all([(()=>{try{return P}catch{}})()]).then(async()=>{const u=g({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:$}}),p={click:l=>l instanceof MouseEvent},m=["href"],y=i({name:"ElLink"}),k=i({...y,props:u,emits:p,setup(l,{emit:_}){const b=l,s=w("link");function v(a){b.disabled||_("click",a)}return(a,x)=>(n(),o("a",{class:d([e(s).b(),e(s).m(a.type),e(s).is("disabled",a.disabled),e(s).is("underline",a.underline&&!a.disabled)]),href:a.disabled||!a.href?void 0:a.href,onClick:v},[a.icon?(n(),r(e(S),{key:0},{default:E(()=>[(n(),r(B(a.icon)))]),_:1})):t("v-if",!0),a.$slots.default?(n(),o("span",{key:1,class:d(e(s).e("inner"))},[c(a.$slots,"default")],2)):t("v-if",!0),a.$slots.icon?c(a.$slots,"icon",{key:2}):t("v-if",!0)],10,m))}});var h=C(k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);f=L(h)});export{f as E,j as __tla};
