mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 16:00:14 +01:00
1 line
145 KiB
JavaScript
1 line
145 KiB
JavaScript
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{"h2n+":function(n,l,t){"use strict";t.r(l);var e=t("CcnG"),o=t("mrSG"),u=t("MGBS"),i=t("zotm"),a=function(){function n(n,l){this.observables=n,this.project=l}return n.prototype.call=function(n,l){return l.subscribe(new r(n,this.observables,this.project))},n}(),r=function(n){function l(l,t,e){var o=n.call(this,l)||this;o.observables=t,o.project=e,o.toRespond=[];var u=t.length;o.values=new Array(u);for(var a=0;a<u;a++)o.toRespond.push(a);for(a=0;a<u;a++){var r=t[a];o.add(Object(i.a)(o,r,r,a))}return o}return o.c(l,n),l.prototype.notifyNext=function(n,l,t,e,o){this.values[t]=l;var u=this.toRespond;if(u.length>0){var i=u.indexOf(t);-1!==i&&u.splice(i,1)}},l.prototype.notifyComplete=function(){},l.prototype._next=function(n){if(0===this.toRespond.length){var l=[n].concat(this.values);this.project?this._tryProject(l):this.destination.next(l)}},l.prototype._tryProject=function(n){var l;try{l=this.project.apply(this,n)}catch(t){return void this.destination.error(t)}this.destination.next(l)},l}(u.a),c=t("67Y/"),s=t("jvbL"),b=(t("TtU4"),t("pr3C")),g=t("pPp6"),d=function(){function n(n,l,t,e,o){var u=this;this.service=n,this.router=l,this.themeService=t,this.sidebarService=e,this.paginationService=o,this.menuItems=[],this.collapsedBreakpoints=["xs","is","sm","md","lg"],this.sidebarTag="menuSidebar",this.alive=!0,this.themeService.changeTheme("docs-page"),this.paginationService.setPaginationItems("/docs"),this.menuItems=this.service.getPreparedMenu("/docs"),this.router.events.pipe(function(){for(var n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];return function(l){var t;return"function"==typeof n[n.length-1]&&(t=n.pop()),l.lift(new a(n,t))}}(this.themeService.onMediaQueryChange().pipe(Object(c.a)(function(n){return n[1]}))),Object(s.a)(function(){return u.alive})).subscribe(function(n){var l=n[1];if("/docs"===n[0].url){var t=u.menuItems[0].children[0];setTimeout(function(){return u.router.navigateByUrl(t.link,{replaceUrl:!0})})}u.collapsedBreakpoints.includes(l.name)&&u.sidebarService.collapse(u.sidebarTag)})}return n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),m=t("VnD/"),p=t("xMyE"),h=t("s4kO"),f=t("yGWI"),C=t("26FU"),x=t("xlPZ"),M=t("bne5"),O=t("SaRX"),P=t("l3En"),_=function(){function n(n,l,t,e,o,u,i){this.window=n,this.ngZone=l,this.router=t,this.activatedRoute=e,this.structureService=o,this.tocState=u,this.titleService=i,this.alive=!0}return Object.defineProperty(n.prototype,"showSettings",{get:function(){return this.currentItem&&this.currentItem.children.some(function(n){return["markdown","component","tabbed"].includes(n.block)})},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this.handlePageNavigation(),this.handleTocScroll(),this.window.history.scrollRestoration="manual"},n.prototype.handlePageNavigation=function(){var n=this;this.activatedRoute.params.pipe(Object(s.a)(function(){return n.alive}),Object(m.a)(function(n){return n.subPage}),Object(c.a)(function(l){var t=l.page+"_"+l.subPage;return n.structureService.findPageBySlag(n.structureService.getPreparedStructure(),t)}),Object(m.a)(function(n){return n}),Object(p.a)(function(l){n.titleService.setTitle("Nebular - "+l.name)}),Object(h.a)(),Object(f.a)()).subscribe(function(l){n.currentItem=l})},n.prototype.handleTocScroll=function(){var n=this;this.ngZone.runOutsideAngular(function(){Object(M.a)(n.window,"scroll").pipe(function(n){return Object(x.a)(new C.a(null))(n)},Object(f.a)(),Object(s.a)(function(){return n.alive}),Object(m.a)(function(){return n.tocState.list().length>0})).subscribe(function(){n.tocState.list().map(function(n){return n.setInView(!1)});var l=n.tocState.list().reduce(function(n,l){return l.y>0&&l.y<n.y?l:n},{y:Number.POSITIVE_INFINITY,fake:!0});l&&!l.fake&&(l.setInView(!0),n.router.navigate([],{fragment:l.fragment,replaceUrl:!0}))})})},n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),w=function(){return function(){}}(),y=t("pMnS"),v=t("5zDB"),k=t("7YNT"),j=t("/PiY"),I=t("Sat5"),A=t("ZlY8"),S=t("Vk7J"),$=t("EoTe"),z=t("V7zL"),K=t("nA+Y"),T=t("wzBU"),Q=t("GBVt
|