UNPKG

@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 975 B
"use strict";(self.webpackChunkUV=self.webpackChunkUV||[]).push([[7569],{7569:(n,e,o)=>{o.r(e),o.d(e,{ion_nav_push:()=>i});var t=o(5873),r=o(6403),i=function(){function n(n){var e=this;(0,t.r)(this,n),this.push=function(){return(0,r.n)(e.el,"forward",e.component,e.componentProps)}}return n.prototype.componentDidLoad=function(){console.warn('[DEPRECATED][ion-nav-push] `<ion-nav-push component="MyComponent">` is deprecated. Use `<ion-nav-link component="MyComponent">` instead.')},n.prototype.render=function(){return(0,t.h)(t.H,{onClick:this.push})},Object.defineProperty(n.prototype,"el",{get:function(){return(0,t.d)(this)},enumerable:!0,configurable:!0}),n}()},6403:(n,e,o)=>{o.d(e,{n:()=>t});var t=function(n,e,o,t){var r=n.closest("ion-nav");if(r)if("forward"===e){if(void 0!==o)return r.push(o,t,{skipIfBusy:!0})}else if("root"===e){if(void 0!==o)return r.setRoot(o,t,{skipIfBusy:!0})}else if("back"===e)return r.pop({skipIfBusy:!0});return Promise.resolve(!1)}}}]);