import{r as t,e as o}from"./p-5ab6b26f.js";class e{constructor(e){t(this,e),this.url="",this.ionRouteDataChanged=o(this,"ionRouteDataChanged",7)}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,o){if(t===o)return;const e=t?Object.keys(t):[],n=o?Object.keys(o):[];if(e.length===n.length){for(const n of e)if(t[n]!==o[n])return void this.onUpdate(t)}else this.onUpdate(t)}componentDidLoad(){this.ionRouteDataChanged.emit()}componentDidUnload(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}}export{e as ion_route};