ngx-admin/5.07c3cd1f9cc6215c045d.js

1 line
143 KiB
JavaScript
Raw Normal View History

2019-04-02 16:29:09 +03:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{"h2n+":function(n,l,t){"use strict";t.r(l);var e=t("CcnG"),o=t("/PH2"),u=t("67Y/"),i=t("jvbL"),a=(t("TtU4"),t("pr3C")),c=t("pPp6"),r=function(){function n(n,l,t,e,a){var c=this;this.service=n,this.router=l,this.themeService=t,this.sidebarService=e,this.paginationService=a,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(Object(o.a)(this.themeService.onMediaQueryChange().pipe(Object(u.a)(function(n){return n[1]}))),Object(i.a)(function(){return c.alive})).subscribe(function(n){var l=n[1];if("/docs"===n[0].url){var t=c.menuItems[0].children[0];setTimeout(function(){return c.router.navigateByUrl(t.link,{replaceUrl:!0})})}c.collapsedBreakpoints.includes(l.name)&&c.sidebarService.collapse(c.sidebarTag)})}return n.prototype.ngOnDestroy=function(){this.alive=!1},n}(),s=t("VnD/"),b=t("xMyE"),g=t("s4kO"),m=t("yGWI"),d=t("26FU"),p=t("xlPZ"),h=t("bne5"),f=t("SaRX"),x=t("l3En"),P=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(i.a)(function(){return n.alive}),Object(s.a)(function(n){return n.subPage}),Object(u.a)(function(l){var t=l.page+"_"+l.subPage;return n.structureService.findPageBySlag(n.structureService.getPreparedStructure(),t)}),Object(s.a)(function(n){return n}),Object(b.a)(function(l){n.titleService.setTitle("Nebular - "+l.name)}),Object(g.a)(),Object(m.a)()).subscribe(function(l){n.currentItem=l})},n.prototype.handleTocScroll=function(){var n=this;this.ngZone.runOutsideAngular(function(){Object(h.a)(n.window,"scroll").pipe(function(n){return Object(p.a)(new d.a(null))(n)},Object(m.a)(),Object(i.a)(function(){return n.alive}),Object(s.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}(),O=function(){return function(){}}(),C=t("pMnS"),_=t("5zDB"),M=t("7YNT"),v=t("/PiY"),w=t("Sat5"),y=t("ZlY8"),k=t("Vk7J"),F=t("EoTe"),I=t("V7zL"),T=t("nA+Y"),S=t("wzBU"),j=t("GBVt"),$=t("WYtE"),A=t("trYH"),N=t("TjMZ"),z=t("X2XW"),D=t("o6Jp"),V=e.tb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;overflow:hidden;z-index:auto;-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}[_nghost-%COMP%] .scrollable[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .main-container[_ngcontent-%COMP%]{-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] .main-container-fixed[_ngcontent-%COMP%]{position:fixed}.right[_nghost-%COMP%]{margin-right:0;margin-left:auto}[dir=ltr] .right[_nghost-%COMP%]{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}[dir=rtl] .right[_nghost-%COMP%]{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.end[_nghost-%COMP%]{-webkit-bo