import{r as i,h as r,e as t,H as s}from"./p-03169580.js";
/*!
 * (C) Ionic http://ionicframework.com - MIT License
 */const e=(i,r,t,s,e)=>{const n=i.closest("ion-nav");if(n){if(r==="forward"){if(t!==undefined){return n.push(t,s,{skipIfBusy:true,animationBuilder:e})}}else if(r==="root"){if(t!==undefined){return n.setRoot(t,s,{skipIfBusy:true,animationBuilder:e})}}else if(r==="back"){return n.pop({skipIfBusy:true,animationBuilder:e})}}return Promise.resolve(false)};let n=class{constructor(r){i(this,r);this.routerDirection="forward";this.onClick=()=>e(this.el,this.routerDirection,this.component,this.componentProps,this.routerAnimation)}render(){return r(s,{onClick:this.onClick})}get el(){return t(this)}};export{n as ion_nav_link};
//# sourceMappingURL=p-804aabdb.entry.js.map