import{r,f as o,h as t,H as e}from"./p-5ab6b26f.js";import{o as s,c as i}from"./p-20d65ce5.js";class n{constructor(o){r(this,o),this.routerDirection="forward",this.onClick=r=>{s(this.href,r,this.routerDirection)}}componentDidLoad(){console.warn("The <ion-anchor> component has been deprecated. Please use an <ion-router-link> if you are using a vanilla JS or Stencil project or an <a> with the Angular router.")}render(){const r=o(this),s={href:this.href,rel:this.rel};return t(e,{onClick:this.onClick,class:Object.assign({},i(this.color),{[r]:!0,"ion-activatable":!0})},t("a",Object.assign({},s),t("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{n as ion_anchor};