import{Q as g,aw as b,d as C,df as w,bC as E,W as B,o as t,c as u,a0 as d,p as S,aH as $,e as c,L,$ as s,K as f,a6 as v,T as i,ar as m,aq as P}from"./index-XuO881sr.js";const T=g({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:b}}),D={click:e=>e instanceof MouseEvent},I=["href","target"];var K=C({name:"ElLink",__name:"link",props:T,emits:D,setup(e,{emit:k}){const n=e,p=k,o=w("link");E({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},i(()=>m(n.underline)));const a=B("link"),h=i(()=>[a.b(),a.m(n.type??o.value?.type??"default"),a.is("disabled",n.disabled),a.is("underline",r.value==="always"),a.is("hover-underline",r.value==="hover"&&!n.disabled)]),r=i(()=>m(n.underline)?n.underline?"hover":"never":n.underline??o.value?.underline??"hover");function y(l){n.disabled||p("click",l)}return(l,q)=>(t(),u("a",{class:f(h.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:y},[e.icon?(t(),d(c(L),{key:0},{default:S(()=>[(t(),d($(e.icon)))]),_:1})):s("v-if",!0),l.$slots.default?(t(),u("span",{key:1,class:f(c(a).e("inner"))},[v(l.$slots,"default")],2)):s("v-if",!0),l.$slots.icon?v(l.$slots,"icon",{key:2}):s("v-if",!0)],10,I))}}),N=K;const G=P(N);export{G as E};
