UNPKG

@tindtechnologies/universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

2 lines (1 loc) 766 B
import{a as s,i as p}from"./chunk-VNJCZCB4.js";import"./chunk-L67DAW3A.js";var u=function(){function n(t){s(this,t),this.url="",this.ionRouteDataChanged=p(this,"ionRouteDataChanged",7)}return n.prototype.onUpdate=function(t){this.ionRouteDataChanged.emit(t)},n.prototype.onComponentProps=function(t,o){if(t!==o){var r=t?Object.keys(t):[],c=o?Object.keys(o):[];if(r.length!==c.length){this.onUpdate(t);return}for(var e=0,i=r;e<i.length;e++){var a=i[e];if(t[a]!==o[a]){this.onUpdate(t);return}}}},n.prototype.connectedCallback=function(){this.ionRouteDataChanged.emit()},Object.defineProperty(n,"watchers",{get:function(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}},enumerable:!0,configurable:!0}),n}();export{u as ion_route};