import{r as t,f as r,h as s,H as i}from"./p-5ab6b26f.js";import{o,c as e}from"./p-20d65ce5.js";class a{constructor(r){t(this,r),this.routerDirection="forward",this.onClick=t=>{o(this.href,t,this.routerDirection)}}render(){const t=r(this),o={href:this.href,rel:this.rel,target:this.target};return s(i,{onClick:this.onClick,class:Object.assign({},e(this.color),{[t]:!0,"ion-activatable":!0})},s("a",Object.assign({},o),s("slot",null)))}static get style(){return":host{--background:transparent;--color:var(--ion-color-primary,#3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"}}export{a as ion_router_link};