@tindtechnologies/universalviewer
Version:
The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎
1 lines • 1.01 kB
JavaScript
;(self.webpackChunkUV=self.webpackChunkUV||[]).push([[8650],{8650:(o,n,e)=>{e.r(n),e.d(n,{ion_nav_set_root:()=>i});var t=e(5873),r=e(6403),i=function(){function o(o){var n=this;(0,t.r)(this,o),this.setRoot=function(){return(0,r.n)(n.el,"root",n.component,n.componentProps)}}return o.prototype.componentDidLoad=function(){console.warn('[DEPRECATED][ion-nav-set-root] `<ion-nav-set-root component="MyComponent">` is deprecated. Use `<ion-nav-link component="MyComponent" routerDirection="root">` instead.')},o.prototype.render=function(){return(0,t.h)(t.H,{onClick:this.setRoot})},Object.defineProperty(o.prototype,"el",{get:function(){return(0,t.d)(this)},enumerable:!0,configurable:!0}),o}()},6403:(o,n,e)=>{e.d(n,{n:()=>t});var t=function(o,n,e,t){var r=o.closest("ion-nav");if(r)if("forward"===n){if(void 0!==e)return r.push(e,t,{skipIfBusy:!0})}else if("root"===n){if(void 0!==e)return r.setRoot(e,t,{skipIfBusy:!0})}else if("back"===n)return r.pop({skipIfBusy:!0});return Promise.resolve(!1)}}}]);