UNPKG

angular-admin-lte-teliqo

Version:
1 lines 77.6 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/router"),require("rxjs"),require("@angular/common"),require("rxjs/operators"),require("tslib"),require("@angular/platform-browser"),require("@angular/forms")):"function"==typeof define&&define.amd?define("angular-admin-lte-teliqo",["exports","@angular/core","@angular/router","rxjs","@angular/common","rxjs/operators","tslib","@angular/platform-browser","@angular/forms"],t):t(e["angular-admin-lte-teliqo"]={},e.ng.core,e.ng.router,null,e.ng.common,e.Rx.Observable.prototype,e.tslib,e.ng.platformBrowser,e.ng.forms)}(this,function(e,r,c,i,n,t,s,o,a){"use strict";var l=function(){function l(e){this.router=e,this.onChange=new i.BehaviorSubject(undefined),this.events=new i.BehaviorSubject(undefined),this.init()}return l.createUrl=function(e){return e.url.map(function(e){return e.toString()}).join("/")},l.isChildrenSelfRoute=function(e){return e.routeConfig.children.forEach(function(e){if(""===e.path&&(e.component||e.loadChildren))return!0}),!1},l.createBreadcrumb=function(e,t){var n=!0;return 0!==e.children.length&&e.firstChild.routeConfig.path&&("/"===t||e.routeConfig.loadChildren||e.routeConfig.component||l.isChildrenSelfRoute(e)||(n=!1)),{data:e.data,params:e.params,url:n?t:null}},l.prototype.init=function(){var a=this;this.router.events.subscribe(function(e){if(a.events.next(e),e instanceof c.NavigationEnd){for(var t=a.router.routerState.root.snapshot,n="",o="",r=!0,i=[];t.children.length;)if(t=t.firstChild,n="/"+l.createUrl(t),t.outlet===c.PRIMARY_OUTLET&&(t.routeConfig.path||r)){if(r=!1,t.params||t.data)for(var s in t.params)s&&(t.data.title&&(t.data.title=t.data.title.replace(":"+s,t.params[s]),t.data.title=t.data.title.replace(":"+s,t.params[s])),t.data.breadcrumbs&&(t.data.breadcrumbs=t.data.breadcrumbs.replace(":"+s,t.params[s])),t.data.description&&(t.data.description=t.data.description.replace(":"+s,t.params[s])));"/"===n?i.push(l.createBreadcrumb(t,n)):(o+=n,i.push(l.createBreadcrumb(t,o)))}a.onChange.next(i)}})},l.decorators=[{type:r.Injectable}],l.ctorParameters=function(){return[{type:c.Router}]},l}(),p=function(){function e(e,t){this.routingService=e,this.changeDetectorRef=t,this.homeIcon="fa fa-home"}return e.prototype.ngOnInit=function(){var t=this;this.subscription=this.routingService.onChange.subscribe(function(e){t.breadcrumbs=e})},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.decorators=[{type:r.Component,args:[{selector:"mk-breadcrumbs",template:'<ol class="breadcrumb">\n <li *ngFor="let breadcrumb of breadcrumbs; let first = first; let last = last" [class.active]="last || !breadcrumb.url">\n <a *ngIf="breadcrumb.url" [routerLink]="breadcrumb.url">\n <i *ngIf="first" ngClass="{{homeIcon}}"></i>\n <ng-template [ngIf]="breadcrumb.data.breadcrumbs">{{breadcrumb.data.breadcrumbs}}</ng-template>\n <ng-template [ngIf]="!breadcrumb.data.breadcrumbs">{{breadcrumb.data.title}}</ng-template>\n </a>\n <ng-template [ngIf]="!breadcrumb.url">\n <i *ngIf="first" ngClass="{{homeIcon}}"></i>\n <ng-template [ngIf]="breadcrumb.data.breadcrumbs">{{breadcrumb.data.breadcrumbs}}</ng-template>\n <ng-template [ngIf]="!breadcrumb.data.breadcrumbs">{{breadcrumb.data.title}}</ng-template>\n </ng-template>\n </li>\n</ol>\n',styles:[".breadcrumb{float:right;background:0 0;margin-top:0;margin-bottom:0;font-size:12px;padding:7px 5px;position:absolute;top:15px;right:10px;border-radius:2px}.breadcrumb>li>a{color:#444;text-decoration:none;display:inline-block}.breadcrumb>li>a>.fa,.breadcrumb>li>a>.glyphicon,.breadcrumb>li>a>.ion{margin-right:5px}"]}]}],e.ctorParameters=function(){return[{type:l},{type:r.ChangeDetectorRef}]},e.propDecorators={homeIcon:[{type:r.Input}]},e}(),u=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule,c.RouterModule],exports:[p],declarations:[p]}]}],e}(),d=function(){function e(e){this.initialLayoutState={isSidebarLeftCollapsed:!1,isSidebarLeftExpandOnOver:!1,isSidebarLeftMouseOver:!1,isSidebarLeftMini:!0,sidebarRightSkin:"dark",isSidebarRightCollapsed:!0,isSidebarRightOverContent:!0,layout:"normal",sidebarLeftMenu:[],sidebarLeftMenuActiveUrl:"",skin:"blue"},e&&(this.initialLayoutState=Object.assign(this.initialLayoutState,e)),this._layoutState=new i.BehaviorSubject(this.initialLayoutState),this.layoutState=this._layoutState.asObservable()}return Object.defineProperty(e.prototype,"windowInnerHeight",{get:function(){return this.layoutState.pipe(t.pluck("windowInnerHeight"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"windowInnerWidth",{get:function(){return this.layoutState.pipe(t.pluck("windowInnerWidth"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarLeftCollapsed",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarLeftCollapsed"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarLeftExpandOnOver",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarLeftExpandOnOver"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarLeftMouseOver",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarLeftMouseOver"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarLeftMini",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarLeftMini"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sidebarRightSkin",{get:function(){return this.layoutState.pipe(t.pluck("sidebarRightSkin"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarRightCollapsed",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarRightCollapsed"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSidebarRightOverContent",{get:function(){return this.layoutState.pipe(t.pluck("isSidebarRightOverContent"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sidebarLeftMenu",{get:function(){return this.layoutState.pipe(t.pluck("sidebarLeftMenu"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sidebarLeftMenuActiveUrl",{get:function(){return this.layoutState.pipe(t.pluck("sidebarLeftMenuActiveUrl"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sidebarLeftElementHeight",{get:function(){return this.layoutState.pipe(t.pluck("sidebarLeftElementHeight"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){return this.layoutState.pipe(t.pluck("layout"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skin",{get:function(){return this.layoutState.pipe(t.pluck("skin"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapperClasses",{get:function(){return this.layoutState.pipe(t.pluck("wrapperClasses"),t.distinctUntilChanged())},enumerable:!0,configurable:!0}),e.prototype.sidebarLeftCollapsed=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarLeftCollapsed:e}))},e.prototype.sidebarLeftExpandOnOver=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarLeftExpandOnOver:e}))},e.prototype.setSidebarLeftElementHeight=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{sidebarLeftElementHeight:e}))},e.prototype.setSidebarRightSkin=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{sidebarRightSkin:e}))},e.prototype.sidebarLeftMouseOver=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarLeftMouseOver:e}))},e.prototype.sidebarLeftMini=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarLeftMini:e}))},e.prototype.sidebarRightCollapsed=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarRightCollapsed:e}))},e.prototype.sidebarRightOverContent=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{isSidebarRightOverContent:e}))},e.prototype.setSidebarLeftMenu=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{sidebarLeftMenu:e}))},e.prototype.setSidebarLeftMenuActiveUrl=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{sidebarLeftMenuActiveUrl:e}))},e.prototype.setLayout=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{layout:e}))},e.prototype.setSkin=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{skin:e}))},e.prototype.setWrapperClasses=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{wrapperClasses:e}))},e.prototype.setWindowInnerHeight=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{windowInnerHeight:e}))},e.prototype.setWindowInnerWidth=function(e){this._layoutState.next(Object.assign(this._layoutState.value,{windowInnerWidth:e}))},e}(),g=function(){function e(){}return Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.elementRef?this.elementRef.nativeElement.scrollHeight:null},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Injectable}],e}(),h=function(){function e(){}return Object.defineProperty(e.prototype,"offsetHeight",{get:function(){return this.elementRef.nativeElement.offsetHeight},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Injectable}],e}(),f=function(){function e(){}return Object.defineProperty(e.prototype,"offsetHeight",{get:function(){return this.elementRef.nativeElement.offsetHeight},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Injectable}],e}();function m(e){return e&&e.forEach(function(e){e.unsubscribe()}),[]}function b(e){return e&&e.forEach(function(e){e()}),[]}var y=function(){function e(e,t,n,o,r,i,s,a,l){this.layoutStore=e,this.routingService=t,this.titleService=n,this.elementRef=o,this.changeDetectorRef=r,this.sidebarRightService=i,this.headerService=s,this.footerService=a,this.router=l,this.subscriptions=[]}return e.prototype.ngOnInit=function(){var t=this;this.titleTag=this.titleService.getTitle(),this.subscriptions.push(this.routingService.onChange.subscribe(function(e){e&&e[e.length-1]&&(t.titleService.setTitle(t.getTitle(e[e.length-1].data.title)),t.header=e[e.length-1].data.title,t.description=e[e.length-1].data.description),t.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.router.events.subscribe(function(e){e instanceof c.NavigationStart&&(t.navigationEnd=!1),e instanceof c.NavigationEnd&&(t.navigationEnd=!0,t.setContentMinHeight())})),this.subscriptions.push(this.layoutStore.sidebarLeftElementHeight.subscribe(function(e){t.sidebarLeftHeight=e,t.setContentMinHeight()})),this.subscriptions.push(this.layoutStore.layout.subscribe(function(e){t.layout=e,t.setContentMinHeight()})),this.subscriptions.push(this.layoutStore.windowInnerHeight.subscribe(function(e){t.windowInnerHeight=e,t.setContentMinHeight()})),this.heightStyle=this.windowInnerHeight},e.prototype.ngOnDestroy=function(){this.subscriptions=m(this.subscriptions)},Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.contentInnerElement.nativeElement.scrollHeight},enumerable:!0,configurable:!0}),e.prototype.getTitle=function(e){return e?e+" - "+this.titleTag:this.titleTag},e.prototype.setContentMinHeight=function(){if(this.navigationEnd){var e=void 0,t=this.headerService.offsetHeight+this.footerService.offsetHeight;if("fixed"===this.layout)e=this.windowInnerHeight-this.footerService.offsetHeight;else{var n=this.sidebarRightService.scrollHeight?this.sidebarRightService.scrollHeight-this.headerService.offsetHeight:0;e=Math.max(this.windowInnerHeight-t,this.sidebarLeftHeight-this.headerService.offsetHeight,n)}e&&e!==this.heightStyle&&(this.scrollHeight>e&&(e=null),this.heightStyle=e,this.changeDetectorRef.detectChanges())}},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-content",template:'<div class="content-wrapper" [style.min-height.px]="heightStyle">\n <div #contentInnerElement class="content-inner">\n <ng-content select="[mk-layout-content-before-header]"></ng-content>\n <section *ngIf="header || description" class="content-header">\n <h1>\n {{header}}\n <small *ngIf="description">{{description}}</small>\n </h1>\n <mk-breadcrumbs></mk-breadcrumbs>\n </section>\n <ng-content select="[mk-layout-content-after-header]"></ng-content>\n <section class="content">\n <ng-content></ng-content>\n </section>\n </div>\n</div>\n',styles:[":host{display:block}.content-wrapper{position:relative}"],changeDetection:r.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:d},{type:l},{type:o.Title},{type:r.ElementRef},{type:r.ChangeDetectorRef},{type:g},{type:h},{type:f},{type:c.Router}]},e.propDecorators={contentInnerElement:[{type:r.ViewChild,args:["contentInnerElement"]}]},e}(),C=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule,c.RouterModule,u],exports:[y],declarations:[y]}]}],e}(),v=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-layout-footer-left",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),S=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-layout-footer-right",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),I=function(){function e(e,t){this.elementRef=e,this.footerService=t}return e.prototype.ngOnInit=function(){this.footerService.elementRef=this.elementRef},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-footer",template:'<footer class="main-footer">\n <div class="pull-right hidden-xs">\n <ng-template [ngTemplateOutlet]="footerRightComponent?.templateRef"></ng-template>\n </div>\n <ng-template [ngTemplateOutlet]="footerLeftComponent?.templateRef"></ng-template>\n</footer>\n',styles:[":host{display:block}"]}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:f}]},e.propDecorators={footerLeftComponent:[{type:r.ContentChild,args:[v]}],footerRightComponent:[{type:r.ContentChild,args:[S]}]},e}(),R=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule],exports:[I,v,S],declarations:[I,v,S]}]}],e}(),x=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-layout-header-logo",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),k=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-layout-header-logo-mini",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),E=function(){function e(e,t,n,o,r){this.layoutStore=e,this.ngZone=t,this.renderer2=n,this.elementRef=o,this.headerService=r,this.listeners=[],this.subscriptions=[],this.isSidebarLeftToggle=!0,this.isSidebarRightToggle=!0}return e.prototype.ngAfterViewInit=function(){var t=this;this.headerService.elementRef=this.headerElement,this.sidebarLeftToggleElement&&(this.subscriptions.push(this.layoutStore.isSidebarLeftCollapsed.subscribe(function(e){t.isSidebarLeftCollapsed=e})),this.ngZone.runOutsideAngular(function(){t.listeners.push(t.renderer2.listen(t.sidebarLeftToggleElement.nativeElement,"click",function(e){e.preventDefault(),t.layoutStore.sidebarLeftCollapsed(!t.isSidebarLeftCollapsed)}))})),this.sidebarRightToggleElement&&(this.subscriptions.push(this.layoutStore.isSidebarRightCollapsed.subscribe(function(e){t.isSidebarRightCollapsed=e})),this.ngZone.runOutsideAngular(function(){t.listeners.push(t.renderer2.listen(t.sidebarRightToggleElement.nativeElement,"click",function(e){e.preventDefault(),t.layoutStore.sidebarRightCollapsed(!t.isSidebarRightCollapsed)}))}))},e.prototype.ngOnDestroy=function(){this.listeners=b(this.listeners),this.subscriptions=m(this.subscriptions)},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-header",template:'<header #headerElement class="main-header">\n <a href="/" class="logo">\n <span class="logo-mini"><ng-template [ngTemplateOutlet]="headerLogoMiniComponent?.templateRef"></ng-template></span>\n <span class="logo-lg"><ng-template [ngTemplateOutlet]="headerLogoComponent?.templateRef"></ng-template></span>\n </a>\n <nav class="navbar navbar-static-top">\n <a *ngIf="isSidebarLeftToggle" #sidebarLeftToggleElement href="#" class="sidebar-toggle">\n <span class="sr-only">Toggle navigation</span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n <span class="icon-bar"></span>\n </a>\n <div *ngIf="isSidebarRightToggle" class="sidebar-right-toggle">\n <a #sidebarRightToggleElement href="#"><i class="fa fa-gears"></i></a>\n </div>\n <ng-content></ng-content>\n </nav>\n</header>\n',styles:[":host{display:block}.sidebar-right-toggle{float:right}.sidebar-right-toggle a{padding:15px;display:block;line-height:20px;cursor:pointer}"]}]}],e.ctorParameters=function(){return[{type:d},{type:r.NgZone},{type:r.Renderer2},{type:r.ElementRef},{type:h}]},e.propDecorators={isSidebarLeftToggle:[{type:r.Input}],isSidebarRightToggle:[{type:r.Input}],headerLogoComponent:[{type:r.ContentChild,args:[x]}],headerLogoMiniComponent:[{type:r.ContentChild,args:[k]}],headerElement:[{type:r.ViewChild,args:["headerElement"]}],sidebarLeftToggleElement:[{type:r.ViewChild,args:["sidebarLeftToggleElement"]}],sidebarRightToggleElement:[{type:r.ViewChild,args:["sidebarRightToggleElement"]}]},e}(),D=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule],exports:[E,x,k],declarations:[E,x,k]}]}],e}(),w=function(){function e(e,t,n){this.elementRef=e,this.ngZone=t,this.renderer2=n,this.firstStart=!0,this.collapseAnimationDuration=350,this.startEventEmitter=new r.EventEmitter,this.doneEventEmitter=new r.EventEmitter}return Object.defineProperty(e.prototype,"_isCollapsed",{set:function(e){this.lastIsCollapsed=this.isCollapsed,this.isCollapsed=e,this.firstStart||(this.emit("start"),e?this.collapse():!1===e&&this.unCollapse())},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.collapseAnimationDuration&&350!==this.collapseAnimationDuration&&this.renderer2.setStyle(this.elementRef.nativeElement,"transition-duration",this.collapseAnimationDuration+"ms"),this.collapseAnimationTiming&&this.renderer2.setStyle(this.elementRef.nativeElement,"transition-timing-function",this.collapseAnimationTiming)},e.prototype.ngAfterContentInit=function(){this.emit("start"),this.isCollapsed&&(this.renderer2.setStyle(this.elementRef.nativeElement,"display","none"),this.renderer2.addClass(this.elementRef.nativeElement,"collapsing")),this.emit("done"),this.firstStart=!1,this.subscriptions()},e.prototype.ngOnDestroy=function(){this.listener&&this.listener()},e.prototype.subscriptions=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.listener=e.renderer2.listen(e.elementRef.nativeElement,"transitionend",function(){e.isCollapsed?e.renderer2.setStyle(e.elementRef.nativeElement,"display","none"):(e.renderer2.removeClass(e.elementRef.nativeElement,"un-collapse"),e.renderer2.removeClass(e.elementRef.nativeElement,"collapsing")),requestAnimationFrame(function(){e.renderer2.removeStyle(e.elementRef.nativeElement,"height"),e.emit("done"),e.transitioning=!1})})})},e.prototype.unCollapse=function(){this.transitioning=!0,this.renderer2.addClass(this.elementRef.nativeElement,"un-collapse"),this.renderer2.removeStyle(this.elementRef.nativeElement,"display"),this.renderer2.setStyle(this.elementRef.nativeElement,"height",this.elementRef.nativeElement.scrollHeight+"px")},e.prototype.collapse=function(){var e=this;requestAnimationFrame(function(){e.transitioning||(e.renderer2.setStyle(e.elementRef.nativeElement,"height",e.elementRef.nativeElement.offsetHeight+"px"),e.renderer2.addClass(e.elementRef.nativeElement,"collapsing")),e.transitioning=!0,requestAnimationFrame(function(){e.renderer2.setStyle(e.elementRef.nativeElement,"height","0px")})})},e.prototype.emit=function(e){var t={element:this.elementRef.nativeElement,fromState:this.lastIsCollapsed===undefined?"void":this.lastIsCollapsed?"1":"0",phaseName:e,toState:this.isCollapsed===undefined?"void":this.isCollapsed?"1":"0",totalTime:this.collapseAnimationDuration,triggerName:"collapseAnimation"};"done"===e?this.doneEventEmitter.emit(t):"start"===e&&this.startEventEmitter.emit(t)},e.decorators=[{type:r.Directive,args:[{selector:"[collapseAnimation]"}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.NgZone},{type:r.Renderer2}]},e.propDecorators={collapseAnimationDuration:[{type:r.Input}],collapseAnimationTiming:[{type:r.Input}],_isCollapsed:[{type:r.Input,args:["collapseAnimation"]}],startEventEmitter:[{type:r.Output,args:["collapseAnimation.start"]}],doneEventEmitter:[{type:r.Output,args:["collapseAnimation.done"]}]},e}(),O=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{exports:[w],declarations:[w]}]}],e}(),L=function(){function e(e){this.elementRef=e}return e.decorators=[{type:r.Directive,args:[{selector:"[mkMenuToggle]"}]}],e.ctorParameters=function(){return[{type:r.ElementRef}]},e.propDecorators={item:[{type:r.Input,args:["mkMenuToggle"]}]},e}(),T=function(){function e(){}return e.decorators=[{type:r.Injectable}],e}(),M=function(){function e(e,t,n,o,r,i,s,a){this.changeDetectorRef=e,this.layoutStore=t,this.ngZone=n,this.renderer2=o,this.router=r,this.routingService=i,this.wrapperService=s,this.headerService=a,this.collapsedItems=[],this.activatedItems=[],this.toggleListeners=[],this.listeners=[],this.itemsByIds={},this.runningAnimations=0,this.subscriptions=[]}return e.prototype.ngOnInit=function(){var t=this;this.subscriptions.push(this.layoutStore.sidebarLeftMenu.subscribe(function(e){t.menu=e,t.monkeyPatchMenu(t.menu),t.initialized&&(t.setMenuListeners(t.activeUrl),t.setSidebarListeners(),t.setMenuTogglesListeners()),t.initialized=!0})),this.subscriptions.push(this.layoutStore.sidebarLeftMenuActiveUrl.subscribe(function(e){t.activeUrl=e,t.setMenuListeners(e)})),this.subscriptions.push(this.routingService.events.subscribe(function(e){e instanceof c.NavigationEnd&&(t.activeUrl=e.url,t.setMenuListeners(e.url))})),this.setSidebarListeners()},e.prototype.ngAfterViewInit=function(){this.setMenuTogglesListeners(),this.checkMenuWithoutChildren()},e.prototype.ngOnDestroy=function(){this.subscriptions=m(this.subscriptions),this.listeners=b(this.listeners),this.toggleListeners=b(this.toggleListeners)},e.prototype.setSidebarListeners=function(){var t=this;this.subscriptions.push(this.layoutStore.layout.subscribe(function(e){t.layout=e,t.setSidebarHeight()})),this.subscriptions.push(this.layoutStore.windowInnerHeight.subscribe(function(e){t.windowInnerHeight=e,t.setSidebarHeight()})),this.subscriptions.push(this.layoutStore.sidebarLeftMenu.subscribe(function(){t.changeDetectorRef.detectChanges()})),this.ngZone.runOutsideAngular(function(){t.listeners.push(t.renderer2.listen(t.sidebarElement.nativeElement,"mouseenter",function(){t.layoutStore.sidebarLeftMouseOver(!0)})),t.listeners.push(t.renderer2.listen(t.sidebarElement.nativeElement,"mouseleave",function(){t.layoutStore.sidebarLeftMouseOver(!1)}))}),this.subscriptions.push(this.layoutStore.windowInnerWidth.subscribe(function(e){t.windowInnerWidth=e,!t.isSidebarLeftCollapsed&&t.windowInnerWidth<=767?t.layoutStore.sidebarLeftCollapsed(!0):767<t.windowInnerWidth&&t.isSidebarLeftCollapsed&&!t.isSidebarLeftExpandOnOver&&t.layoutStore.sidebarLeftCollapsed(!1)})),this.subscriptions.push(this.layoutStore.isSidebarLeftMouseOver.subscribe(function(e){t.isSidebarLeftMouseOver=e,t.isSidebarLeftExpandOnOver&&t.layoutStore.sidebarLeftCollapsed(!e)})),this.subscriptions.push(this.layoutStore.isSidebarLeftExpandOnOver.subscribe(function(e){t.isSidebarLeftExpandOnOver=e,767<t.windowInnerWidth&&t.isSidebarLeftCollapsed!==undefined&&t.layoutStore.sidebarLeftCollapsed(e)})),this.subscriptions.push(this.layoutStore.isSidebarLeftCollapsed.subscribe(function(e){t.isSidebarLeftCollapsed=e,t.windowInnerWidth<=767?e?t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-open"):t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-open"):(!t.isSidebarLeftExpandOnOver||t.isSidebarLeftMouseOver||e||t.layoutStore.sidebarLeftExpandOnOver(!1),e?(t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-collapse"),t.isSidebarLeftExpandOnOver&&t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-expanded-on-hover")):(t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-collapse"),t.isSidebarLeftExpandOnOver&&t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-expanded-on-hover")))})),this.subscriptions.push(this.layoutStore.isSidebarLeftMini.subscribe(function(e){e?t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-mini"):t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"sidebar-mini")}))},e.prototype.setMenuListeners=function(e){if("/"===e)this.activeItems(e),this.changeDetectorRef.detectChanges();else{var t=this.router.parseUrl(e).root.children[c.PRIMARY_OUTLET];t&&(this.activeItems(t.toString()),this.changeDetectorRef.detectChanges())}(this.windowInnerWidth<=767||this.isSidebarLeftExpandOnOver)&&this.layoutStore.sidebarLeftCollapsed(!0)},e.prototype.getIconClasses=function(e){return e.iconClasses||""===e.iconClasses?e.iconClasses:"fa fa-circle-o"},e.prototype.visibilityStateStart=function(e){var t=this;this.runningAnimations++,this.ngZone.runOutsideAngular(function(){setTimeout(function(){t.runningAnimations--,t.runningAnimations||t.layoutStore.setSidebarLeftElementHeight(t.sidebarElement.nativeElement.offsetHeight)},e.totalTime)})},e.prototype.uncollapseItemParents=function(e,t){void 0===t&&(t=!1),t&&(e.isActive=!0,this.activatedItems.push(e)),e.isCollapsed=!1,this.collapsedItems.push(e),e.parentId&&this.uncollapseItemParents(this.itemsByIds[e.parentId],t)},e.prototype.findItemsByUrl=function(t,e,n){var o=this;return void 0===n&&(n=[]),e.forEach(function(e){e.route===t?n.push(e):e.children&&o.findItemsByUrl(t,e.children,n)}),n},e.prototype.activeItems=function(e){var t=this;this.activatedItems.forEach(function(e){e.isActive=!1}),this.activatedItems=[],this.collapsedItems.forEach(function(e){e.isActive=!1,e.isCollapsed=!0}),this.collapsedItems=[],this.findItemsByUrl(e,this.menu).forEach(function(e){e.isActive=!0,t.uncollapseItemParents(e,!0),t.activatedItems.push(e)})},e.prototype.monkeyPatchMenu=function(e,n){var o=this;e.forEach(function(e,t){e.id=n?Number(n+""+t):t,n&&(e.parentId=n),e.disableCollapse||(e.isCollapsed=!0),e.isActive=!1,(n||e.children)&&(o.itemsByIds[e.id]=e),e.children&&o.monkeyPatchMenu(e.children,e.id)})},e.prototype.setMenuTogglesListeners=function(){var n=this;this.toggleListeners=b(this.toggleListeners),this.ngZone.runOutsideAngular(function(){n.sidebarLeftToggleDirectives.forEach(function(t){n.toggleListeners.push(n.renderer2.listen(t.elementRef.nativeElement,"click",function(e){e.preventDefault(),t.item.isCollapsed?(n.collapsedItems.forEach(function(e){e.disableCollapse||(e.isCollapsed=!0)}),n.collapsedItems=[],n.uncollapseItemParents(t.item)):t.item.isCollapsed=!t.item.isCollapsed,n.changeDetectorRef.detectChanges()}))})})},e.prototype.checkMenuWithoutChildren=function(){var t,e=this;this.menu.forEach(function(e){if(e.children)return t=!0}),t||this.ngZone.runOutsideAngular(function(){setTimeout(function(){e.layoutStore.setSidebarLeftElementHeight(e.sidebarElement.nativeElement.offsetHeight)})})},e.prototype.setSidebarHeight=function(){if("fixed"===this.layout){var e=this.windowInnerHeight-this.headerService.offsetHeight;e&&e!==this.sidebarHeight&&(this.sidebarHeight=e,this.sidebarOverflow="auto",this.changeDetectorRef.detectChanges())}else this.sidebarHeight&&(this.sidebarOverflow=this.sidebarHeight=null,this.changeDetectorRef.detectChanges())},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-sidebar-left",template:'<aside class="main-sidebar">\n <section class="sidebar" #sidebarElement [style.height.px]="sidebarHeight" [style.overflow]="sidebarOverflow">\n <ng-content></ng-content>\n \t<ul class="sidebar-menu">\n <ng-container *ngFor="let item of menu">\n <ng-container *ngTemplateOutlet="sidebarInner; context: {item: item}"></ng-container>\n </ng-container>\n \t</ul>\n </section>\n</aside>\n\n<ng-template #sidebarInner let-item="item">\n <li [class.active]="item.isActive" [class.header]="item.separator" [class.menu-open]="!item.isCollapsed">\n <span *ngIf="item.separator">{{item.label}}</span>\n <a *ngIf="!item.separator && item.route" [routerLink]="item.route">\n \t<i [class]="getIconClasses(item)"></i><span>{{item.label}}</span>\n \t<span *ngIf="item.children || item.pullRights" class="pull-right-container">\n \t\t<span *ngFor="let rightItem of item.pullRights" class="pull-right {{rightItem.classes}}">{{rightItem.text}}</span>\n \t <i *ngIf="!item.pullRights" class="fa fa-angle-left pull-right"></i>\n \t</span>\n </a>\n <a *ngIf="!item.separator && !item.route" href="#" [mkMenuToggle]="item">\n \t<i [class]="getIconClasses(item)"></i><span>{{item.label}}</span>\n \t<span *ngIf="item.children || item.pullRights" class="pull-right-container">\n \t\t<span *ngFor="let rightItem of item.pullRights" class="pull-right {{rightItem.classes}}">{{rightItem.text}}</span>\n \t <i *ngIf="!item.pullRights" class="fa fa-angle-left pull-right"></i>\n \t</span>\n </a>\n <ul *ngIf="item.children" [collapseAnimation]="item.isCollapsed" (collapseAnimation.start)="visibilityStateStart($event)" class="treeview-menu">\n <ng-container *ngFor="let item of item.children">\n <ng-container *ngTemplateOutlet="sidebarInner; context: {item: item}"></ng-container>\n </ng-container>\n </ul>\n </li>\n</ng-template>\n',styles:[".treeview-menu.collapse{display:none}.treeview-menu,.treeview-menu.collapse.in{display:block}"],changeDetection:r.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:d},{type:r.NgZone},{type:r.Renderer2},{type:c.Router},{type:l},{type:T},{type:h}]},e.propDecorators={sidebarElement:[{type:r.ViewChild,args:["sidebarElement"]}],sidebarLeftToggleDirectives:[{type:r.ViewChildren,args:[L]}]},e}(),A=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule,c.RouterModule,O],exports:[M],declarations:[L,M]}]}],e}(),P=function(){function e(e,t,n,o,r){this.elementRef=e,this.renderer2=t,this.layoutStore=n,this.sidebarRightService=o,this.wrapperService=r,this.listeners=[],this.subscriptions=[]}return e.prototype.ngOnInit=function(){var t=this;this.renderer2.addClass(this.elementRef.nativeElement,"control-sidebar"),this.subscriptions.push(this.layoutStore.isSidebarRightCollapsed.subscribe(function(e){(t.isSidebarRightCollapsed=e)?(t.renderer2.removeClass(t.elementRef.nativeElement,"control-sidebar-open"),t.isSidebarRightOverContent||t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"control-sidebar-open")):(t.renderer2.addClass(t.elementRef.nativeElement,"control-sidebar-open"),t.isSidebarRightOverContent||t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"control-sidebar-open"))})),this.subscriptions.push(this.layoutStore.isSidebarRightOverContent.subscribe(function(e){t.isSidebarRightOverContent=e,t.isSidebarRightCollapsed||(e?t.renderer2.removeClass(t.wrapperService.wrapperElementRef.nativeElement,"control-sidebar-open"):t.renderer2.addClass(t.wrapperService.wrapperElementRef.nativeElement,"control-sidebar-open"))})),this.subscriptions.push(this.layoutStore.sidebarRightSkin.subscribe(function(e){t.skin!==e&&t.renderer2.removeClass(t.elementRef.nativeElement,"control-sidebar-"+t.skin),t.skin=e,t.renderer2.addClass(t.elementRef.nativeElement,"control-sidebar-"+e)}))},e.prototype.ngAfterViewInit=function(){this.sidebarRightService.elementRef=this.sidebarContentElement},e.prototype.ngOnDestroy=function(){this.listeners=b(this.listeners),this.subscriptions=m(this.subscriptions)},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-sidebar-right",template:'<div #sidebarContentElement class="control-sidebar-content">\n <ng-content></ng-content>\n</div>\n<div class="control-sidebar-bg"></div>\n',styles:[":host{display:block;height:100%}.control-sidebar-bg{z-index:-1}/deep/ .tab-content{padding:10px 15px}"],changeDetection:r.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:d},{type:g},{type:T}]},e.propDecorators={sidebarContentElement:[{type:r.ViewChild,args:["sidebarContentElement"]}]},e}(),H=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule],exports:[P],declarations:[P]}]}],e}(),j=function(){function e(e,t,n,o,r){this.elementRef=e,this.renderer2=t,this.layoutStore=n,this.wrapperService=o,this.ngZone=r,this.listeners=[],this.subscriptions=[]}return e.prototype.ngOnInit=function(){var t=this;this.layoutStore.setWindowInnerHeight(window.innerHeight),this.layoutStore.setWindowInnerWidth(window.innerWidth),this.wrapperService.wrapperElementRef=this.elementRef,this.subscriptions.push(this.layoutStore.wrapperClasses.subscribe(function(e){t.classes=e||null})),this.ngZone.runOutsideAngular(function(){t.listeners.push(t.renderer2.listen("window","resize",function(n,o){var r=this,i=null;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i||(i=setTimeout(function(){n.call.apply(n,s.__spread([r],e)),i=null},o))}}(function(){t.layoutStore.setWindowInnerHeight(window.innerHeight),t.layoutStore.setWindowInnerWidth(window.innerWidth)},250)))}),this.subscriptions.push(this.layoutStore.layout.subscribe(function(e){"fixed"===e?t.renderer2.addClass(t.elementRef.nativeElement,"fixed"):t.renderer2.removeClass(t.elementRef.nativeElement,"fixed"),"boxed"===e?t.renderer2.addClass(t.elementRef.nativeElement,"layout-boxed"):t.renderer2.removeClass(t.elementRef.nativeElement,"layout-boxed")})),this.subscriptions.push(this.layoutStore.skin.subscribe(function(e){e&&(t.skin&&t.skin!==e&&t.renderer2.removeClass(t.elementRef.nativeElement,"skin-"+t.skin),t.skin=e,t.renderer2.addClass(t.elementRef.nativeElement,"skin-"+t.skin))}))},e.prototype.ngOnDestroy=function(){this.subscriptions=m(this.subscriptions),this.listeners=b(this.listeners)},e.decorators=[{type:r.Component,args:[{selector:"mk-layout-wrapper",template:'<div class="wrapper" [ngClass]="classes">\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:block}:host /deep/ .sidebar-right-toggle>a{color:#fff}:host.sidebar-mini.sidebar-collapse /deep/ .treeview-menu.collapsing{height:auto!important}:host /deep/ .sidebar-right-toggle>a:hover{background:rgba(0,0,0,.1)}:host.skin-black /deep/ .sidebar-right-toggle>a,:host.skin-black-light /deep/ .sidebar-right-toggle>a{color:#333;border-right-width:0}:host.skin-black /deep/ .sidebar-right-toggle>a:hover,:host.skin-black-light /deep/ .sidebar-right-toggle>a:hover{background-color:#fff;color:#999}:host.skin-black /deep/ .sidebar-right-toggle>a{border-left:1px solid #eee}:host.skin-black-light /deep/ .sidebar-right-toggle>a{border-left:1px solid #d2d6de}"]}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:d},{type:T},{type:r.NgZone}]},e}(),B=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule],exports:[j],declarations:[j]}]}],e}(),F=function(){function e(e){this.routingService=e,this.isCustomLayout=new i.BehaviorSubject(!0),this.init()}return e.prototype.init=function(){var t=this;this.routingService.onChange.subscribe(function(e){e&&e[e.length-1]&&(t.customLayout!==undefined&&t.customLayout===e[e.length-1].data.disableLayout||t.isCustomLayout.next(!!e[e.length-1].data.customLayout),t.customLayout=e[e.length-1].data.customLayout)})},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:l}]},e}(),_=new r.InjectionToken("layoutConfig");function V(e){return new d(e)}function U(e){return[{provide:d,useFactory:V,deps:[_]},{provide:_,useValue:e}]}var N=function(){function t(e){if(e)throw new Error("LayoutModule is already loaded. Import it in the AppModule only!")}return t.forRoot=function(e){return{ngModule:t,providers:s.__spread(U(e),[F])}},t.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule,c.RouterModule],exports:[C,R,D,A,H,B],providers:[l,T,g,h,f]}]}],t.ctorParameters=function(){return[{type:t,decorators:[{type:r.Optional},{type:r.SkipSelf}]}]},t}(),W=["default","primary","danger","warning","info","success"],Z={aqua:"#00c0ef","aqua-active":"#00a7d0",black:"#111111","black-active":"#000000",blue:"#0073b7","blue-active":"#005384",fuchsia:"#f012be","fuchsia-active":"#db0ead",green:"#00a65a","green-active":"#008d4c",gray:"#d2d6de","gray-active":"#b5bbc8","gray-light":"#f7f7f7","light-blue":"#3c8dbc","light-blue-active":"#357ca5",lime:"#01ff70","lime-active":"#00e765",maroon:"#d81b60","maroon-active":"#ca195a",navy:"#001f3f","navy-active":"#001a35",olive:"#3d9970","olive-active":"#368763",orange:"#ff851b","orange-active":"#ff7701",purple:"#605ca8","purple-active":"#555299",red:"#dd4b39","red-active":"#d33724",teal:"#39cccc","teal-active":"#30bbbb",yellow:"#f39c12","yellow-active":"#db8b0b"},q=function(){function e(e,t){this.renderer2=e,this.elementRef=t}return e.prototype.setBackgroundColor=function(e,t,n,o){e&&t&&(this.resetBackgroundColor(),Z[e]?(this.renderer2.addClass(this.elementRef.nativeElement,"bg-color"),this.currentBackgroundStyle={property:n,color:Z[e]},this.renderer2.setStyle(this.elementRef.nativeElement,n,Z[e])):(this.renderer2.removeClass(this.elementRef.nativeElement,"bg-color"),0===e.indexOf("#")||0===e.indexOf("rgb")?(this.currentBackgroundStyle={property:n,color:e},this.renderer2.setStyle(this.elementRef.nativeElement,n,e)):-1!==W.indexOf(e)&&(this.currentBackgroundClass=o?o+"-"+e:e,this.renderer2.addClass(this.elementRef.nativeElement,this.currentBackgroundClass))))},e.prototype.resetBackgroundColor=function(){this.currentBackgroundStyle?this.renderer2.removeStyle(this.elementRef.nativeElement,this.currentBackgroundStyle.property,this.currentBackgroundStyle.color):this.currentBackgroundClass&&this.renderer2.removeClass(this.elementRef.nativeElement,this.currentBackgroundClass)},e.prototype.setFontColor=function(e){e&&(this.resetFontColor(),e.startsWith("#")||e.startsWith("rgb")?(this.currentFontStyle=e,this.renderer2.setStyle(this.elementRef.nativeElement,"color",e)):(this.currentFontClass="text-"+e,this.renderer2.addClass(this.elementRef.nativeElement,this.currentFontClass)))},e.prototype.resetFontColor=function(){this.currentFontStyle?this.renderer2.removeStyle(this.elementRef.nativeElement,"color",this.currentFontStyle):this.currentFontClass&&this.renderer2.removeClass(this.elementRef.nativeElement,this.currentFontClass)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:r.Renderer2},{type:r.ElementRef}]},e}(),G=function(){function e(e,t,n){this.elementRef=e,this.renderer2=t,this.colorService=n,this.condition=!0}return Object.defineProperty(e.prototype,"color",{set:function(e){this.colorService.setBackgroundColor(e,this.condition,this.property,this.prefix)},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Directive,args:[{selector:"[mkColor]",providers:[q]}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:q}]},e.propDecorators={condition:[{type:r.Input,args:["mkColorCondition"]}],prefix:[{type:r.Input,args:["mkColorPrefix"]}],property:[{type:r.Input,args:["mkColorProperty"]}],color:[{type:r.Input,args:["mkColor"]}]},e}(),$=function(){function e(e,t,n){this.elementRef=e,this.renderer2=t,this.colorService=n}return Object.defineProperty(e.prototype,"color",{set:function(e){this.colorService.setFontColor(e)},enumerable:!0,configurable:!0}),e.decorators=[{type:r.Directive,args:[{selector:"[mkFontColor]",providers:[q]}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer2},{type:q}]},e.propDecorators={color:[{type:r.Input,args:["mkFontColor"]}]},e}(),z=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{exports:[G,$],declarations:[G,$]}]}],e}(),K=function(){function e(e){this.elementRef=e}return e.decorators=[{type:r.Directive,args:[{selector:"[mkAccordionToggle]"}]}],e.ctorParameters=function(){return[{type:r.ElementRef}]},e.propDecorators={accordionComponent:[{type:r.Input,args:["mkAccordionToggle"]}]},e}(),Y=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-accordion-header",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),J=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"mk-accordion-content",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),Q=function(){function e(){this.contentStyleClass="box-body",this.headerStyleClass="box-header with-border"}return e.prototype.ngOnInit=function(){if(this.headerStyleColor=this.headerColor,!this.header&&!this.accordionHeaderComponent)throw new Error('Attribute "header" OR Component "mk-+accordion-header" is required for component "mk-+accordion"');this.accordionContentComponent?this.contentTemplateRef=this.accordionContentComponent.templateRef:this.contentTemplateRef=this.templateRef},e.decorators=[{type:r.Component,args:[{selector:"mk-accordion",template:"<ng-template #templateRef><ng-content></ng-content></ng-template>"}]}],e.propDecorators={borderColor:[{type:r.Input}],contentColor:[{type:r.Input}],contentStyleClass:[{type:r.Input}],header:[{type:r.Input}],headerColor:[{type:r.Input}],headerColorHover:[{type:r.Input}],headerStyleClass:[{type:r.Input}],accordionHeaderComponent:[{type:r.ContentChild,args:[Y]}],accordionContentComponent:[{type:r.ContentChild,args:[J]}],templateRef:[{type:r.ViewChild,args:["templateRef"]}]},e}(),X=function(){function e(e,t,n){this.changeDetectorRef=e,this.ngZone=t,this.renderer2=n,this.activeIndex=[0],this.listeners=[],this.subscriptions=[],this.styleClass="box-group",this.onCollapseStart=new r.EventEmitter,this.onCollapseDone=new r.EventEmitter}return Object.defineProperty(e.prototype,"_activeIndex",{set:function(e){this.activeIndex=e instanceof Array?e:[e]},enumerable:!0,configurable:!0}),e.headerMouseLeave=function(e){e.headerStyleColor=e.headerColor},e.headerMouseEnter=function(e){e.headerColorHover&&(e.headerStyleColor=e.headerColorHover)},e.prototype.ngAfterContentInit=function(){var e=this;this.setAccordionsIndex(),this.updateAccordionIsCollapsed(),this.subscriptions.push(this.accordionComponents.changes.subscribe(function(){e.setAccordionsIndex()}))},e.prototype.ngAfterViewInit=function(){var e=this;this.setAccordionsToggle(),this.subscriptions.push(this.accordionToggleDirectives.changes.subscribe(function(){e.setAccordionsToggle()}))},e.prototype.ngOnChanges=function(e){!1===e._activeIndex.firstChange&&this.updateAccordionIsCollapsed()},e.prototype.ngOnDestroy=function(){b(this.listeners),m(this.subscriptions)},e.prototype.toggleAccordion=function(e,t){e.preventDefault();var n=this.activeIndex.indexOf(t);-1===n?this.isMultiple?this.activeIndex.push(t):this.activeIndex=[t]:this.isMultiple?this.activeIndex.splice(n,1):this.activeIndex=[],this.updateAccordionIsCollapsed()},e.prototype.collapseStart=function(e,t){t.isCollapsing=!0,this.onCollapseStart.emit({animationEvent:e,index:t.index})},e.prototype.collapseDone=function(e,t){t.isCollapsing=!1,this.onCollapseDone.emit({animationEvent:e,index:t.index})},e.prototype.setAccordionsIndex=function(){this.accordionComponents.forEach(function(e,t){e.index=t})},e.prototype.setAccordionsToggle=function(){var n=this;this.listeners=b(this.listeners),this.ngZone.runOutsideAngular(function(){n.accordionToggleDirectives.forEach(function(t){n.listeners.push(n.renderer2.listen(t.elementRef.nativeElement,"click",function(e){n.toggleAccordion(e,t.accordionComponent.index),n.changeDetectorRef.detectChanges()})),n.listeners.push(n.renderer2.listen(t.elementRef.nativeElement,"mouseenter",function(){e.headerMouseEnter(t.accordionComponent),n.changeDetectorRef.detectChanges()})),n.listeners.push(n.renderer2.listen(t.elementRef.nativeElement,"mouseleave",function(){e.headerMouseLeave(t.accordionComponent),n.changeDetectorRef.detectChanges()}))})})},e.prototype.updateAccordionIsCollapsed=function(){var n=this;this.accordionComponents.forEach(function(e,t){e.isCollapsed=-1===n.activeIndex.indexOf(t)})},e.decorators=[{type:r.Component,args:[{selector:"mk-accordion-group",template:'<div [ngClass]="styleClass">\n <div *ngFor="let accordion of accordionComponents" class="panel box" [mkColor]="accordion.borderColor" mkColorProperty="border-top-color" mkColorPrefix="box">\n <div [ngClass]="accordion.headerStyleClass" [class.no-border]="accordion.isCollapsed && !accordion.isCollapsing">\n <h4 class="box-title">\n <a [mkAccordionToggle]="accordion" href="#" [mkFontColor]="accordion.headerStyleColor" [class.collapsed]="accordion.isCollapsed">\n {{accordion.header}}\n <ng-template *ngIf="!accordion.header" [ngTemplateOutlet]="accordion.accordionHeaderComponent?.templateRef"></ng-template>\n </a>\n </h4>\n </div>\n <div class="panel-collapse" [collapseAnimation]="accordion.isCollapsed" (collapseAnimation.start)="collapseStart($event, accordion)" (collapseAnimation.done)="collapseDone($event, accordion)">\n <div [ngClass]="accordion.contentStyleClass" [mkFontColor]="accordion.contentColor">\n <ng-template [ngTemplateOutlet]="accordion.contentTemplateRef"></ng-template>\n </div>\n </div>\n </div>\n</div>\n'}]}],e.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:r.NgZone},{type:r.Renderer2}]},e.propDecorators={_activeIndex:[{type:r.Input,args:["activeIndex"]}],isMultiple:[{type:r.Input}],styleClass:[{type:r.Input}],onCollapseStart:[{type:r.Output}],onCollapseDone:[{type:r.Output}],accordionComponents:[{type:r.ContentChildren,args:[Q]}],accordionToggleDirectives:[{type:r.ViewChildren,args:[K]}]},e}(),ee=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[n.CommonModule,O,z],exports:[Y,J,Q,X],declarations:[K,Y,J,Q,X]}]}],e}(),te=function(){function e(e,t,n,o){this.changeDetectorRef=e,this.ngZone=t,this.renderer2=n,this.viewContainerRef=o,this.dismissibleClass="alert-dismissible",this.isDismissible=!0,this.remove=!1,this.type="alert",this.listeners=[],this.backgroundColor="danger",this.styleClass="",this.onCollapseStart=new r.EventEmitter,this.onCollapseDone=new r.EventEmitter}return Object.defineProperty(e.prototype,"callout",{set:function(e){this.type=e?"callout":"alert"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_isDismissible",{set:function(e){this.isDismissible=e,this.dismissibleClass=e?this.type+"-dismissible":""},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.dismissOnTimeout&&setTimeout(function(){e.changeDetectorRef.destroyed||(e.remove=!0,e.changeDetectorRef.detectChanges())},e.dismissOnTimeout),e.removeButtonElement&&e.listeners.push(e.renderer2.listen(e.removeButtonElement.nativeElement,"click",function(){e.remove=!0,e.changeDetectorRef.detectChanges()}))})},e.prototype.ngOnDestroy=function(){b(this.listeners)},e.prototype.collapseStart=function(e){this.onCollapseStart.emit(e)},e.prototype.collapseDone=function(e){"1"===e.toState&&(this.listeners=b(this.listeners),this.removed=!0,this.viewContainerRef.clear(),this.changeDetectorRef.detectChanges()),this.onCollapseDone.emit(e)},e.decorators=[{type:r.Component,args:[{selector:"mk-alert",template:'<div *ngIf="!removed" [collapseAnimation]="remove" (collapseAnimation.start)="collapseStart($event)" (collapseAnimation.done)="collapseDone($event)">\n <div [mkColor]="backgroundColor" mkColorProperty="background-color" [mkColorPrefix]="type" [mkFontColor]="color" [ngClass]="[styleClass, dismissibleClass, type]">\n <button *ngIf="isDismissible" type="button" class="close" #removeButtonElement>&times;</button>\n <ng-content></ng-content>\n </div>\n</div>\n',styles:[".callout-dismissable,.callout-dismissible{padding-right:35px}.callout-dismissable .close,.callout-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.callout .close{color:#000;opacity:.2}.callout .icon{margin-right:10px}"],changeDetection:r.ChangeDetectionStrategy.OnPush}]}],e.ctorParameters=function(){return[{type:r.ChangeDetectorRef},{type:r.NgZone},{type:r.Renderer2},{type:r.ViewContainerRef}]},e.propDecorators={backgroundColor:[{type:r.Input}],callout:[{type:r.Input}],color:[{type:r.Input}],dismissOnTimeout:[{type:r.Input}],_isDismissible:[{type:r.Input,args:["isDismissible"]}],styleClass:[{type:r.Input}],onCollapseStart:[{type:r.Output}],onCollapseDone:[{type:r.Output}],removeButtonElement:[{type:r.ViewChild,args:["removeButtonElement"]}],containerElementRef:[{type:r.ViewChild,args:["containerElementRef",{read:r.ViewContai