var v=Object.defineProperty,E=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable;var c=(n,s,e)=>s in n?v(n,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[s]=e,d=(n,s)=>{for(var e in s||(s={}))_.call(s,e)&&c(n,e,s[e]);if(r)for(var e of r(s))g.call(s,e)&&c(n,e,s[e]);return n},u=(n,s)=>E(n,C(s));import{b as w,I as B,a as $,E as I,_ as L,w as P}from"./base.b65bdcd1.js";import{d as y,c as S,a as o,f,b as p,e as N,l as z,u as i,k as t,g as k,i as m}from"./index.965ac11d.js";const D=w({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:B}}),K={click:n=>n instanceof MouseEvent},M=["href"],T=y({name:"ElLink"}),V=y(u(d({},T),{props:D,emits:K,setup(n,{emit:s}){const e=n,l=$("link"),h=S(()=>[l.b(),l.m(e.type),l.is("disabled",e.disabled),l.is("underline",e.underline&&!e.disabled)]);function b(a){e.disabled||s("click",a)}return(a,q)=>(o(),f("a",{class:k(i(h)),href:a.disabled||!a.href?void 0:a.href,onClick:b},[a.icon?(o(),p(i(I),{key:0},{default:N(()=>[(o(),p(z(a.icon)))]),_:1})):t("v-if",!0),a.$slots.default?(o(),f("span",{key:1,class:k(i(l).e("inner"))},[m(a.$slots,"default")],2)):t("v-if",!0),a.$slots.icon?m(a.$slots,"icon",{key:2}):t("v-if",!0)],10,M))}}));var j=L(V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const H=P(j);export{H as E};
