import { r as registerInstance, d as getElement } from './chunk-eb0263ab.js';
var NavSetRoot = /** @class */ (function () {
    function NavSetRoot(hostRef) {
        registerInstance(this, hostRef);
    }
    NavSetRoot.prototype.push = function () {
        var nav = this.el.closest('ion-nav');
        var toPush = this.component;
        if (nav && toPush !== undefined) {
            nav.setRoot(toPush, this.componentProps, { skipIfBusy: true });
        }
    };
    Object.defineProperty(NavSetRoot.prototype, "el", {
        get: function () { return getElement(this); },
        enumerable: true,
        configurable: true
    });
    return NavSetRoot;
}());
export { NavSetRoot as ion_nav_set_root };
