Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / snippet / 3.5.0 / scripts / vendor-stateService.js
diff --git a/snippet/3.5.0/scripts/vendor-stateService.js b/snippet/3.5.0/scripts/vendor-stateService.js
new file mode 100644 (file)
index 0000000..36b4897
--- /dev/null
@@ -0,0 +1,2 @@
+"use strict";(self.webpackChunkmotion_chat=self.webpackChunkmotion_chat||[]).push([["vendor-stateService"],{"./node_modules/@uirouter/core/lib-esm/state/stateService.js":(e,r,t)=>{t.d(r,{b:()=>g});var o=t("./node_modules/@uirouter/core/lib-esm/common/common.js"),i=t("./node_modules/@uirouter/core/lib-esm/common/predicates.js"),n=t("./node_modules/@uirouter/core/lib-esm/common/queue.js"),a=t("./node_modules/@uirouter/core/lib-esm/common/coreservices.js"),s=t("./node_modules/@uirouter/core/lib-esm/path/pathUtils.js"),u=t("./node_modules/@uirouter/core/lib-esm/path/pathNode.js"),l=t("./node_modules/@uirouter/core/lib-esm/transition/transitionService.js"),c=t("./node_modules/@uirouter/core/lib-esm/transition/rejectFactory.js"),d=t("./node_modules/@uirouter/core/lib-esm/state/targetState.js"),h=t("./node_modules/@uirouter/core/lib-esm/params/param.js"),f=t("./node_modules/@uirouter/core/lib-esm/common/glob.js"),m=t("./node_modules/@uirouter/core/lib-esm/resolve/resolveContext.js"),p=t("./node_modules/@uirouter/core/lib-esm/hooks/lazyLoad.js"),v=t("./node_modules/@uirouter/core/lib-esm/common/hof.js"),g=function(){function e(r){this.router=r,this.invalidCallbacks=[],this._defaultErrorHandler=function(e){e instanceof Error&&e.stack?(console.error(e),console.error(e.stack)):e instanceof c.i?(console.error(e.toString()),e.detail&&e.detail.stack&&console.error(e.detail.stack)):console.error(e)};var t=Object.keys(e.prototype).filter((0,v.ff)((0,o.d3)(["current","$current","params","transition"])));(0,o.WR)((0,v.P0)(e.prototype),this,(0,v.P0)(this),t)}return Object.defineProperty(e.prototype,"transition",{get:function(){return this.router.globals.transition},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"params",{get:function(){return this.router.globals.params},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this.router.globals.current},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$current",{get:function(){return this.router.globals.$current},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.defaultErrorHandler(o.ZT),this.invalidCallbacks=[]},e.prototype._handleInvalidTargetState=function(e,r){var t=this,o=s.C.makeTargetState(this.router.stateRegistry,e),i=this.router.globals,u=function(){return i.transitionHistory.peekTail()},l=u(),h=new n.c(this.invalidCallbacks.slice()),f=new m.l(e).injector(),p=function(e){if(e instanceof d.F){var r=e;return(r=t.target(r.identifier(),r.params(),r.options())).valid()?u()!==l?c.i.superseded().toPromise():t.transitionTo(r.identifier(),r.params(),r.options()):c.i.invalid(r.error()).toPromise()}};return function e(){var t=h.dequeue();return void 0===t?c.i.invalid(r.error()).toPromise():a.u.$q.when(t(r,o,f)).then(p).then((function(r){return r||e()}))}()},e.prototype.onInvalid=function(e){return this.invalidCallbacks.push(e),function(){(0,o.nA)(this.invalidCallbacks)(e)}.bind(this)},e.prototype.reload=function(e){return this.transitionTo(this.current,this.params,{reload:!(0,i.$K)(e)||e,inherit:!1,notify:!1})},e.prototype.go=function(e,r,t){var i={relative:this.$current,inherit:!0},n=(0,o.ce)(t,i,l.q);return this.transitionTo(e,r,n)},e.prototype.target=function(e,r,t){if(void 0===t&&(t={}),(0,i.Kn)(t.reload)&&!t.reload.name)throw new Error("Invalid reload state object");var o=this.router.stateRegistry;if(t.reloadState=!0===t.reload?o.root():o.matcher.find(t.reload,t.relative),t.reload&&!t.reloadState)throw new Error("No such reload state '"+((0,i.HD)(t.reload)?t.reload:t.reload.name)+"'");return new d.F(this.router.stateRegistry,e,r,t)},e.prototype.getCurrentPath=function(){var e=this.router.globals.successfulTransitions.peekTail();return e?e.treeChanges().to:[new u.V(this.router.stateRegistry.root())]},e.prototype.transitionTo=function(e,r,t){var i=this;void 0===r&&(r={}),void 0===t&&(t={});var n=this.router,s=n.globals;t=(0,o.ce)(t,l.q);var u=function(){return s.transition};t=(0,o.l7)(t,{current:u});var h=this.target(e,r,t),f=this.getCurrentPath();if(!h.exists())return this._handleInvalidTargetState(f,h);if(!h.valid())return(0,o.jv)(h.error());if(!1===t.supercede&&u())return c.i.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();var m=function(e){return function(r){if(r instanceof c.i){var t=n.globals.lastStartedTransitionId<=e.$id;if(r.type===c.K.IGNORED)return t&&n.urlRouter.update(),a.u.$q.when(s.current);var o=r.detail;if(r.type===c.K.SUPERSEDED&&r.redirected&&o instanceof d.F){var u=e.redirect(o);return u.run().catch(m(u))}if(r.type===c.K.ABORTED)return t&&n.urlRouter.update(),a.u.$q.reject(r)}return i.defaultErrorHandler()(r),a.u.$q.reject(r)}},p=this.router.transitionService.create(f,h),v=p.run().catch(m(p));return(0,o.HX)(v),(0,o.l7)(v,{transition:p})},e.prototype.is=function(e,r,t){t=(0,o.ce)(t,{relative:this.$current});var n=this.router.stateRegistry.matcher.find(e,t.relative);if((0,i.$K)(n)){if(this.$current!==n)return!1;if(!r)return!0;var a=n.parameters({inherit:!0,matchingKeys:r});return h.d.equals(a,h.d.values(a,r),this.params)}},e.prototype.includes=function(e,r,t){t=(0,o.ce)(t,{relative:this.$current});var n=(0,i.HD)(e)&&f.r.fromString(e);if(n){if(!n.matches(this.$current.name))return!1;e=this.$current.name}var a=this.router.stateRegistry.matcher.find(e,t.relative),s=this.$current.includes;if((0,i.$K)(a)){if(!(0,i.$K)(s[a.name]))return!1;if(!r)return!0;var u=a.parameters({inherit:!0,matchingKeys:r});return h.d.equals(u,h.d.values(u,r),this.params)}},e.prototype.href=function(e,r,t){var n={lossy:!0,inherit:!0,absolute:!1,relative:this.$current};t=(0,o.ce)(t,n),r=r||{};var a=this.router.stateRegistry.matcher.find(e,t.relative);if(!(0,i.$K)(a))return null;t.inherit&&(r=this.params.$inherit(r,this.$current,a));var s=a&&t.lossy?a.navigable:a;return s&&void 0!==s.url&&null!==s.url?this.router.urlRouter.href(s.url,r,{absolute:t.absolute}):null},e.prototype.defaultErrorHandler=function(e){return this._defaultErrorHandler=e||this._defaultErrorHandler},e.prototype.get=function(e,r){var t=this.router.stateRegistry;return 0===arguments.length?t.get():t.get(e,r||this.$current)},e.prototype.lazyLoad=function(e,r){var t=this.get(e);if(!t||!t.lazyLoad)throw new Error("Can not lazy load "+e);var o=this.getCurrentPath(),i=s.C.makeTargetState(this.router.stateRegistry,o);return r=r||this.router.transitionService.create(o,i),(0,p.A)(r,t)},e}()}}]);
+//# sourceMappingURL=vendor-stateService.js.map
\ No newline at end of file