import{t as e}from"./defineProperty-BbfpZ9Tg.js";import{F as t,I as n,R as r,U as i,q as a}from"./test.id-DxQrYxPk.js";var o=class{constructor(t){e(this,`_serviceBrand`,void 0),e(this,`_onNavigate`,new i),e(this,`_onGoBack`,new i),e(this,`onNavigate`,this._onNavigate.event),e(this,`onGoBack`,this._onGoBack.event),e(this,`backButtonListeners`,[]),t.onBackButton(()=>{let e=this.backButtonListeners[this.backButtonListeners.length-1];e&&e()})}navigate(e){this._onNavigate.fire(e)}goBack(e){this._onGoBack.fire(e)}listenBackButton(e){return this.backButtonListeners.push(e),{dispose:()=>{this.backButtonListeners=this.backButtonListeners.filter(t=>t!==e)}}}};o=t([n(0,r)],o);var s=a(`INavigationService`);export{o as n,s as t};
//# sourceMappingURL=navigationService-BNBSAd9W.js.map