ngx-admin/5-es2015.671e976ca062e9b1860e.js

1 line
122 KiB
JavaScript
Raw Normal View History

2019-10-04 20:10:39 +03:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"h2n+":function(n,l,t){"use strict";t.r(l);var e=t("8Y7J"),u=t("l7GE"),o=t("ZUHj");class i{constructor(n,l){this.observables=n,this.project=l}call(n,l){return l.subscribe(new a(n,this.observables,this.project))}}class a extends u.a{constructor(n,l,t){super(n),this.observables=l,this.project=t,this.toRespond=[];const e=l.length;this.values=new Array(e);for(let u=0;u<e;u++)this.toRespond.push(u);for(let u=0;u<e;u++){let n=l[u];this.add(Object(o.a)(this,n,n,u))}}notifyNext(n,l,t,e,u){this.values[t]=l;const o=this.toRespond;if(o.length>0){const n=o.indexOf(t);-1!==n&&o.splice(n,1)}}notifyComplete(){}_next(n){if(0===this.toRespond.length){const l=[n,...this.values];this.project?this._tryProject(l):this.destination.next(l)}}_tryProject(n){let l;try{l=this.project.apply(this,n)}catch(t){return void this.destination.error(t)}this.destination.next(l)}}var c=t("lJxs"),r=t("GJmQ"),s=t("pr3C"),b=t("pPp6");class g{constructor(n,l,t,e,u){this.service=n,this.router=l,this.themeService=t,this.sidebarService=e,this.paginationService=u,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(...n){return l=>{let t;return"function"==typeof n[n.length-1]&&(t=n.pop()),l.lift(new i(n,t))}}(this.themeService.onMediaQueryChange().pipe(Object(c.a)(n=>n[1]))),Object(r.a)(()=>this.alive)).subscribe(([n,l])=>{if("/docs"===n.url){const n=this.menuItems[0].children[0];setTimeout(()=>this.router.navigateByUrl(n.link,{replaceUrl:!0}))}this.collapsedBreakpoints.includes(l.name)&&this.sidebarService.collapse(this.sidebarTag)})}ngOnDestroy(){this.alive=!1}}var m=t("pLZG"),d=t("vkgz"),h=t("05l1"),p=t("x+ZX"),f=t("2Vo4"),O=t("oB13"),C=t("xgIS"),P=t("SaRX"),_=t("l3En");class M{constructor(n,l,t,e,u,o,i){this.window=n,this.ngZone=l,this.router=t,this.activatedRoute=e,this.structureService=u,this.tocState=o,this.titleService=i,this.alive=!0}get showSettings(){return this.currentItem&&this.currentItem.children.some(n=>["markdown","component","tabbed"].includes(n.block))}ngOnInit(){this.handlePageNavigation(),this.handleTocScroll(),this.window.history.scrollRestoration="manual"}handlePageNavigation(){this.activatedRoute.params.pipe(Object(r.a)(()=>this.alive),Object(m.a)(n=>n.subPage),Object(c.a)(n=>{const l=`${n.page}_${n.subPage}`;return this.structureService.findPageBySlag(this.structureService.getPreparedStructure(),l)}),Object(m.a)(n=>n),Object(d.a)(n=>{this.titleService.setTitle(`Nebular - ${n.name}`)}),Object(h.a)(),Object(p.a)()).subscribe(n=>{this.currentItem=n})}handleTocScroll(){this.ngZone.runOutsideAngular(()=>{Object(C.a)(this.window,"scroll").pipe(function(n){return n=>Object(O.a)(new f.a(null))(n)}(),Object(p.a)(),Object(r.a)(()=>this.alive),Object(m.a)(()=>this.tocState.list().length>0)).subscribe(()=>{this.tocState.list().map(n=>n.setInView(!1));const n=this.tocState.list().reduce((n,l)=>l.y>0&&l.y<n.y?l:n,{y:Number.POSITIVE_INFINITY,fake:!0});n&&!n.fake&&(n.setInView(!0),this.router.navigate([],{fragment:n.fragment,replaceUrl:!0}))})})}ngOnDestroy(){this.alive=!1}}class x{}var w=t("pMnS"),v=t("jXVt"),y=t("tKwJ"),R=t("GBVt"),H=t("WYtE"),k=t("TjMZ"),G=t("X2XW"),I=t("iInd"),z=t("coyH"),S=e.Fb({encapsulation:0,styles:[[".nb-theme-ngx-landing [_nghost-%COMP%]{display:flex;flex:1;flex-wrap:wrap;padding-top:1.25rem;justify-content:space-around}.nb-theme-ngx-landing [_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;margin-right:0;justify-content:center;width:100%}.nb-theme-ngx-landing [_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-right:0}.nb-theme-ngx-landing [_nghost-%COMP%] > div[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1a2138}.nb-theme-ngx-landing [_nghost-%COMP%] > div[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;padding-left:0}.nb-theme-ngx-landing [_nghost-%COMP%] > div[_ngcontent-%COMP%] li[_ngconten