import{aA as b,aL as g,d as o,aC as $,K as E,o as l,c as r,v as d,w,N as B,a as t,aT as C,Q as i,$ as c,aD as u,aE as L,aF as S,__tla as x}from"./index-04f8d540.js";let f,A=Promise.all([(()=>{try{return x}catch{}})()]).then(async()=>{const p=b({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"],k=o({name:"ElLink"});f=S(L(o({...k,props:p,emits:y,setup(n,{emit:v}){const e=n,s=$("link"),_=E(()=>[s.b(),s.m(e.type),s.is("disabled",e.disabled),s.is("underline",e.underline&&!e.disabled)]);function h(a){e.disabled||v("click",a)}return(a,D)=>(l(),r("a",{class:c(t(_)),href:a.disabled||!a.href?void 0:a.href,onClick:h},[a.icon?(l(),d(t(C),{key:0},{default:w(()=>[(l(),d(B(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,A as __tla};
