import{r as o,h as t,e as n,H as e}from"./p-8e32a29b.js";import{n as s}from"./p-20043846.js";const r=class{constructor(t){o(this,t),this.setRoot=()=>s(this.el,"root",this.component,this.componentProps)}componentDidLoad(){console.warn('[DEPRECATED][ion-nav-set-root] `<ion-nav-set-root component="MyComponent">` is deprecated. Use `<ion-nav-link component="MyComponent" routerDirection="root">` instead.')}render(){return t(e,{onClick:this.setRoot})}get el(){return n(this)}};export{r as ion_nav_set_root};