blob: b0f2278b632d122e7d31814407335e5f1a01b0cd [file] [log] [blame]
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/material/chips"),require("@angular/material/autocomplete"),require("@angular/material/checkbox"),require("@angular/material/dialog"),require("@angular/material/tooltip"),require("@angular/material/toolbar"),require("@angular/material/card"),require("@angular/material/sidenav"),require("@angular/router"),require("@angular/platform-browser"),require("@angular/material/progress-bar"),require("@angular/material/progress-spinner"),require("@angular/cdk/overlay"),require("@angular/material/menu"),require("@angular/material/divider"),require("@angular/material/button"),require("@angular/material/input"),require("@angular/animations"),require("@angular/material/icon"),require("@angular/material/core"),require("@angular/cdk/bidi"),require("@angular/cdk/keycodes"),require("@angular/cdk/scrolling"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/material/tabs"),require("@angular/forms"),require("@angular/cdk/coercion"),require("@angular/core"),require("@angular/cdk/portal"),require("@covalent/core/common")):"function"==typeof define&&define.amd?define("@covalent/core",["exports","@angular/material/chips","@angular/material/autocomplete","@angular/material/checkbox","@angular/material/dialog","@angular/material/tooltip","@angular/material/toolbar","@angular/material/card","@angular/material/sidenav","@angular/router","@angular/platform-browser","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/cdk/overlay","@angular/material/menu","@angular/material/divider","@angular/material/button","@angular/material/input","@angular/animations","@angular/material/icon","@angular/material/core","@angular/cdk/bidi","@angular/cdk/keycodes","@angular/cdk/scrolling","rxjs","rxjs/operators","@angular/common","@angular/material/tabs","@angular/forms","@angular/cdk/coercion","@angular/core","@angular/cdk/portal","@covalent/core/common"],t):t((e.covalent=e.covalent||{},e.covalent.core={}),e.ng.material.chips,e.ng.material.autocomplete,e.ng.material.checkbox,e.ng.material.dialog,e.ng.material.tooltip,e.ng.material.toolbar,e.ng.material.card,e.ng.material.sidenav,e.ng.router,e.ng.platformBrowser,e.ng.material["progress-bar"],e.ng.material["progress-spinner"],e.ng.cdk.overlay,e.ng.material.menu,e.ng.material.divider,e.ng.material.button,e.ng.material.input,e.ng.animations,e.ng.material.icon,e.ng.material.core,e.ng.cdk.bidi,e.ng.cdk.keycodes,e.ng.cdk.scrolling,e.rxjs,e.rxjs.operators,e.ng.common,e.ng.material.tabs,e.ng.forms,e.ng.cdk.coercion,e.ng.core,e.ng.cdk.portal,e.covalent.core.common)}(this,function(e,t,n,i,o,a,r,s,l,c,d,p,u,h,m,g,f,b,_,y,v,x,w,k,C,R,O,D,I,S,P,T,E){"use strict";var M=(Object.defineProperty(L.prototype,"pageLinkCount",{get:function(){return this._pageLinkCount},set:function(e){this._pageLinkCount=S.coerceNumberProperty(e),this._calculatePageLinks(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=S.coerceNumberProperty(e),this._page=1,this._initialized&&this._handleOnChange(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"total",{get:function(){return this._total},set:function(e){this._total=S.coerceNumberProperty(e),this._calculateRows(),this._calculatePageLinks(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"pageLinks",{get:function(){return this._pageLinks},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"range",{get:function(){return(this._toRow?this._fromRow:0)+"-"+this._toRow},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"page",{get:function(){return this._page},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"maxPage",{get:function(){return Math.ceil(this._total/this._pageSize)},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"isRTL",{get:function(){return!!this._dir&&"rtl"===this._dir.dir},enumerable:!0,configurable:!0}),L.prototype.ngOnInit=function(){this._page=S.coerceNumberProperty(this.initialPage),this._calculateRows(),this._calculatePageLinks(),this._initialized=!0,this._changeDetectorRef.markForCheck()},L.prototype.navigateToPage=function(e){return(1===e||1<=e&&e<=this.maxPage)&&(this._page=S.coerceNumberProperty(Math.floor(e)),this._handleOnChange(),!0)},L.prototype.firstPage=function(){return this.navigateToPage(1)},L.prototype.prevPage=function(){return this.navigateToPage(this._page-1)},L.prototype.nextPage=function(){return this.navigateToPage(this._page+1)},L.prototype.lastPage=function(){return this.navigateToPage(this.maxPage)},L.prototype.isMinPage=function(){return this._page<=1},L.prototype.isMaxPage=function(){return this._page>=this.maxPage},L.prototype._calculateRows=function(){var e=this._pageSize*this._page;this._fromRow=this._pageSize*(this._page-1)+1,this._toRow=this._total>e?e:this._total},L.prototype._calculatePageLinks=function(){this.isMaxPage()&&(this._hitEnd=!0,this._hitStart=!1),this.isMinPage()&&(this._hitEnd=!1,this._hitStart=!0);var e=this.pageLinkCount;this.pageLinkCount>this.maxPage&&(e=this.maxPage),this._pageLinks=[];for(var t=Math.floor(e/2),n=0;n<e;n++)e%2==0&&this.page+t>this.maxPage||e%2!=0&&this.page+t>=this.maxPage?this._pageLinks[n]=this.maxPage-(e-(n+1)):(2<e||e<=2&&this._hitEnd)&&0<this.page-t?this._pageLinks[n]=this.page-t+n:this.page-t<=0?this._pageLinks[n]=n+1:this._pageLinks[n]=this.page+n},L.prototype._handleOnChange=function(){this._calculateRows(),this._calculatePageLinks();var e={page:this._page,maxPage:this.maxPage,pageSize:this._pageSize,total:this._total,fromRow:this._fromRow,toRow:this._toRow};this._changeDetectorRef.markForCheck(),this.onChange.emit(e)},L.decorators=[{type:P.Component,args:[{changeDetection:P.ChangeDetectionStrategy.OnPush,selector:"td-paging-bar",template:'<div class="td-paging-bar" (change)="$event.stopPropagation()" >\n <ng-content></ng-content>\n <div class="td-paging-bar-navigation">\n <button mat-icon-button class="td-paging-bar-first-page" type="button" *ngIf="firstLast" [disabled]="isMinPage()" (click)="firstPage()">\n <mat-icon>{{ isRTL ? \'skip_next\' : \'skip_previous\' }}</mat-icon>\n </button>\n <button mat-icon-button class="td-paging-bar-prev-page" type="button" [disabled]="isMinPage()" (click)="prevPage()">\n <mat-icon>{{ isRTL ? \'navigate_next\' : \'navigate_before\' }}</mat-icon>\n </button>\n <ng-template *ngIf="pageLinkCount > 0" let-link let-index="index" ngFor [ngForOf]="pageLinks">\n <button class="td-paging-bar-link-page" mat-icon-button type="button" [color]="page === link ? \'accent\' : \'\'" (click)="navigateToPage(link)">{{link}}</button>\n </ng-template>\n <button mat-icon-button class="td-paging-bar-next-page" type="button" [disabled]="isMaxPage()" (click)="nextPage()">\n <mat-icon>{{ isRTL ? \'navigate_before\' : \'navigate_next\' }}</mat-icon>\n </button>\n <button mat-icon-button class="td-paging-bar-last-page" type="button" *ngIf="firstLast" [disabled]="isMaxPage()" (click)="lastPage()">\n <mat-icon>{{ isRTL ? \'skip_previous\' : \'skip_next\' }}</mat-icon>\n </button>\n </div>\n</div>',styles:[":host{display:block}:host .td-paging-bar{height:48px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}:host .td-paging-bar ::ng-deep>*{margin:0 10px}:host .td-paging-bar [mat-icon-button]{font-size:12px;font-weight:400}"]}]}],L.ctorParameters=function(){return[{type:x.Dir,decorators:[{type:P.Optional}]},{type:P.ChangeDetectorRef}]},L.propDecorators={firstLast:[{type:P.Input,args:["firstLast"]}],initialPage:[{type:P.Input,args:["initialPage"]}],pageLinkCount:[{type:P.Input,args:["pageLinkCount"]}],pageSize:[{type:P.Input,args:["pageSize"]}],total:[{type:P.Input,args:["total"]}],onChange:[{type:P.Output,args:["change"]}]},L);function L(e,t){this._dir=e,this._changeDetectorRef=t,this._pageSize=50,this._total=0,this._page=1,this._fromRow=1,this._toRow=1,this._initialized=!1,this._pageLinks=[],this._pageLinkCount=0,this._hitEnd=!1,this._hitStart=!1,this.firstLast=!0,this.initialPage=1,this.onChange=new P.EventEmitter}var j=(A.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,y.MatIconModule,f.MatButtonModule],declarations:[M],exports:[M]}]}],A);function A(){}var z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function F(e,t){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function B(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function V(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,a=n.call(e),r=[];try{for(;(void 0===t||0<t--)&&!(i=a.next()).done;)r.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=a["return"])&&n.call(a)}finally{if(o)throw o.error}}return r}function N(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]));return e}var q,H=(F(W,q=T.TemplatePortalDirective),W.decorators=[{type:P.Directive,args:[{selector:"[tdVirtualScrollRow]"}]}],W.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},W);function W(e,t){return q.call(this,e,t)||this}var U=(Object.defineProperty(X.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this._initialized&&this._calculateVirtualRows(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"virtualData",{get:function(){return this._virtualData},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"rowHeight",{get:function(){return this._rows&&this._rows.toArray()[0]?this._rows.toArray()[0].nativeElement.getBoundingClientRect().height:0},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"totalHeight",{get:function(){return this._totalHeight},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"fromRow",{get:function(){return this._fromRow},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"toRow",{get:function(){return this._toRow},enumerable:!0,configurable:!0}),Object.defineProperty(X.prototype,"offsetTransform",{get:function(){return this._offsetTransform},enumerable:!0,configurable:!0}),X.prototype.ngAfterViewInit=function(){var e=this;this._subs.push(this._rows.changes.subscribe(function(){e._calculateVirtualRows()})),this._initialized=!0,this._calculateVirtualRows(),this._subs.push(this._bottom.pipe(R.debounceTime(200)).subscribe(function(){e.bottom.emit({lastRow:e._data[e._data.length-1],lastIndex:e.toRow})}))},X.prototype.ngAfterViewChecked=function(){var e=this._elementRef.nativeElement.getBoundingClientRect().height;this._hostHeight!==e&&(this._hostHeight=e,this._initialized&&this._calculateVirtualRows())},X.prototype.ngOnDestroy=function(){this._subs&&this._subs.forEach(function(e){e.unsubscribe()})},X.prototype.handleScroll=function(e){var t=e.target;if(t){var n=t.scrollTop;this._scrollVerticalOffset!==n&&(this._scrollVerticalOffset=n,this._initialized&&this._calculateVirtualRows()),this._initialized&&this._data.length*this.rowHeight-(n+this._hostHeight)==0&&this._bottom.next()}},X.prototype.refresh=function(){this._calculateVirtualRows()},X.prototype.scrollTo=function(e){this._elementRef.nativeElement.scrollTop=e*this.rowHeight,this._changeDetectorRef.markForCheck()},X.prototype.scrollToStart=function(){this.scrollTo(0),this._changeDetectorRef.markForCheck()},X.prototype.scrollToEnd=function(){this.scrollTo(this.totalHeight/this.rowHeight),this._changeDetectorRef.markForCheck()},X.prototype._calculateVirtualRows=function(){var e=this;if(this._data){this._totalHeight=this._data.length*this.rowHeight;var t=Math.floor(this._scrollVerticalOffset/this.rowHeight)-2;this._fromRow=0<t?t:0;var n=Math.floor(this._hostHeight/this.rowHeight)+4+this.fromRow;isFinite(n)&&n>this._data.length?n=this._data.length:isFinite(n)||(n=2),this._toRow=n}else this._totalHeight=0,this._fromRow=0,this._toRow=0;var i=0;this._scrollVerticalOffset>2*this.rowHeight&&(i=this.fromRow*this.rowHeight),this._offsetTransform=this._domSanitizer.bypassSecurityTrustStyle("translateY("+(i-this.totalHeight)+"px)"),this._data&&(this._virtualData=this.data.slice(this.fromRow,this.toRow)),Promise.resolve().then(function(){e._changeDetectorRef.markForCheck()})},X.decorators=[{type:P.Component,args:[{selector:"td-virtual-scroll-container",template:'<div [style.height.px]="totalHeight"></div>\n<div [style.transform]="offsetTransform"\n [style.position]="\'absolute\'"\n [style.width.%]="100">\n <ng-template let-row\n let-index="index"\n ngFor\n [ngForOf]="virtualData"\n [ngForTrackBy]="trackBy">\n <div #rowElement\n [style.width.%]="100">\n <ng-template *ngIf="_rowTemplate"\n [ngTemplateOutlet]="_rowTemplate.templateRef"\n [ngTemplateOutletContext]="{row: row,\n index: (fromRow + index),\n first: (fromRow + index) === 0,\n last: (fromRow + index) === (data.length - 1),\n odd: ((fromRow + index + 1) % 2) === 1,\n even: ((fromRow + index + 1) % 2) === 0}">\n </ng-template>\n </div>\n </ng-template>\n</div>',changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;height:100%;width:100%;overflow:auto;position:relative}"]}]}],X.ctorParameters=function(){return[{type:P.ElementRef},{type:d.DomSanitizer},{type:P.Renderer2},{type:P.ChangeDetectorRef}]},X.propDecorators={data:[{type:P.Input,args:["data"]}],bottom:[{type:P.Output}],_rows:[{type:P.ViewChildren,args:["rowElement"]}],_rowTemplate:[{type:P.ContentChild,args:[H]}],trackBy:[{type:P.Input,args:["trackBy"]}],handleScroll:[{type:P.HostListener,args:["scroll",["$event"]]}]},X);function X(e,t,n,i){this._elementRef=e,this._domSanitizer=t,this._renderer=n,this._changeDetectorRef=i,this._subs=[],this._bottom=new C.Subject,this._initialized=!1,this._totalHeight=0,this._hostHeight=0,this._scrollVerticalOffset=0,this._fromRow=0,this._toRow=0,this.bottom=new P.EventEmitter,this.trackBy=function(e,t){return t}}var $=[H,U],Y=(G.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule],declarations:[$],exports:[$]}]}],G);function G(){}var K={Top:"top",Bottom:"bottom",Center:"center"},Z={Before:"before",After:"after",Center:"center"},Q=(Object.defineProperty(J.prototype,"positionX",{get:function(){return this._positionX},set:function(e){this._positionX=e},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"positionY",{get:function(){return this._positionY},set:function(e){this._positionY=e},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"notifications",{set:function(e){this._notifications=e},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"limit",{set:function(e){this._limit=e},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"hideHost",{get:function(){return!this.show&&!this._hasContent()},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"noCount",{get:function(){return!0===this._notifications},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"notificationsDisplay",{get:function(){return this._notifications>this._limit?this._limit+"+":this._notifications.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(J.prototype,"show",{get:function(){return!0===this._notifications||!isNaN(this._notifications)&&0<this._notifications},enumerable:!0,configurable:!0}),J.prototype.ngAfterContentInit=function(){this._positionX||(this.positionX=this._hasContent()?Z.After:Z.Center),this._positionY||(this.positionY=this._hasContent()?K.Top:K.Center)},J.prototype._hasContent=function(){if(this.content){var e=this.content.nativeElement;return e&&(0<e.children.length||!!e.textContent.trim())}return!1},J.decorators=[{type:P.Component,args:[{selector:"td-notification-count",template:'<div #content class="td-notification-content">\n <ng-content></ng-content>\n</div>\n<div *ngIf="show"\n class="td-notification-count mat-{{color}}"\n [class.td-notification-top]="positionY === \'top\'"\n [class.td-notification-bottom]="positionY === \'bottom\'"\n [class.td-notification-before]="positionX === \'before\'"\n [class.td-notification-after]="positionX === \'after\'"\n [class.td-notification-center-y]="positionY === \'center\'"\n [class.td-notification-center-x]="positionX === \'center\'"\n [class.td-notification-no-count]="noCount">\n {{noCount ? \'\' : notificationsDisplay}}\n</div>',changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host{position:relative;display:block;text-align:center;min-width:40px;height:40px}:host.td-notification-hidden{min-width:0}.td-notification-count{line-height:21px;width:20px;height:20px;position:absolute;font-size:10px;font-weight:600;border-radius:50%;z-index:1}.td-notification-count.td-notification-center-x{margin-left:auto;margin-right:auto;left:0;right:0}.td-notification-count.td-notification-center-y{margin-top:auto;margin-bottom:auto;top:0;bottom:0}.td-notification-count.td-notification-top{top:0}.td-notification-count.td-notification-bottom{bottom:0}.td-notification-count.td-notification-before{left:0}.td-notification-count.td-notification-after{right:0}.td-notification-count.td-notification-no-count{width:8px;height:8px}.td-notification-count.td-notification-no-count.td-notification-top{top:8px}.td-notification-count.td-notification-no-count.td-notification-bottom{bottom:8px}.td-notification-count.td-notification-no-count.td-notification-before{left:8px}.td-notification-count.td-notification-no-count.td-notification-after{right:8px}::ng-deep [dir=rtl] .td-notification-count.td-notification-before{right:0;left:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-after{left:0;right:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-before{right:8px;left:auto}::ng-deep [dir=rtl] .td-notification-count.td-notification-no-count.td-notification-after{left:8px;right:auto}.td-notification-content,.td-notification-content ::ng-deep>*{line-height:40px}"]}]}],J.propDecorators={content:[{type:P.ViewChild,args:["content"]}],color:[{type:P.Input}],positionX:[{type:P.Input}],positionY:[{type:P.Input}],notifications:[{type:P.Input}],limit:[{type:P.Input}],hideHost:[{type:P.HostBinding,args:["class.td-notification-hidden"]}]},J);function J(){this._notifications=0,this._limit=99,this.color="warn"}var ee=[Q],te=(ne.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule],declarations:[ee],exports:[ee]}]}],ne);function ne(){}var ie=(oe.prototype.onBlur=function(e){this._model&&this._model.value&&"string"==typeof this._model.value&&this._model.update.emit(this._model.value.trim())},oe.decorators=[{type:P.Directive,args:[{selector:"[tdAutoTrim]"}]}],oe.ctorParameters=function(){return[{type:I.NgModel,decorators:[{type:P.Optional},{type:P.Host}]}]},oe.propDecorators={onBlur:[{type:P.HostListener,args:["blur",["$event"]]}]},oe);function oe(e){this._model=e}var ae=(re.prototype.fsChangeHandler=function(e){this.fullScreenIsActive=e.srcElement===this._getFullScreenElement()},re.prototype.toggleFullScreen=function(){this._getFullScreenElement()===this._el.nativeElement?this.exitFullScreen():this.enterFullScreen()},re.prototype.enterFullScreen=function(){var e,t,n=this._el.nativeElement,i={requestFullscreen:function(){return n.requestFullscreen()},webkitRequestFullscreen:function(){return n.webkitRequestFullscreen()},mozRequestFullScreen:function(){return n.mozRequestFullScreen()},msRequestFullscreen:function(){return n.msRequestFullscreen()}};try{for(var o=B(Object.keys(i)),a=o.next();!a.done;a=o.next()){var r=a.value;n[r]&&i[r]()}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=o["return"])&&t.call(o)}finally{if(e)throw e.error}}},re.prototype.exitFullScreen=function(){var e,t,n=this._document,i=this._el.nativeElement,o={exitFullscreen:function(){return n.exitFullscreen()},webkitExitFullscreen:function(){return n.webkitExitFullscreen()},mozCancelFullScreen:function(){return n.mozCancelFullScreen()},msExitFullscreen:function(){return n.msExitFullscreen()}};try{for(var a=B(Object.keys(o)),r=a.next();!r.done;r=a.next()){var s=r.value;n[s]&&this._getFullScreenElement()===i&&o[s]()}}catch(l){e={error:l}}finally{try{r&&!r.done&&(t=a["return"])&&t.call(a)}finally{if(e)throw e.error}}},re.prototype._getFullScreenElement=function(){var e,t,n=this._document,i={fullscreenElement:function(){return n.fullscreenElement},webkitFullscreenElement:function(){return n.webkitFullscreenElement},mozFullscreenElement:function(){return n.mozFullscreenElement},msFullscreenElement:function(){return n.msFullscreenElement}};try{for(var o=B(Object.keys(i)),a=o.next();!a.done;a=o.next()){var r=a.value;if(n[r])return n[r]}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=o["return"])&&t.call(o)}finally{if(e)throw e.error}}},re.decorators=[{type:P.Directive,args:[{selector:"[tdFullScreen]",exportAs:"tdFullScreen"}]}],re.ctorParameters=function(){return[{type:undefined,decorators:[{type:P.Inject,args:[O.DOCUMENT]}]},{type:P.ElementRef}]},re.propDecorators={fsChangeHandler:[{type:P.HostListener,args:["document:fullscreenchange",["$event"]]},{type:P.HostListener,args:["document:webkitfullscreenchange",["$event"]]},{type:P.HostListener,args:["document:mozfullscreenchange",["$event"]]},{type:P.HostListener,args:["document:msfullscreenchange",["$event"]]}]},re);function re(e,t){this._document=e,this._el=t,this.fullScreenIsActive=!1}var se=(le.prototype.transform=function(e,t){e=new Date(e);var n=new Date(t);if(!e.getTime())return"Invalid Date";var i=isNaN(n.getTime())?Date.now():n.getTime(),o=Math.floor((i-e.getTime())/1e3);return o<2?"1 second ago":o<60?Math.floor(o)+" seconds ago":(o/=60)<2?"1 minute ago":o<60?Math.floor(o)+" minutes ago":(o/=60)<2?"1 hour ago":o<24?Math.floor(o)+" hours ago":(o/=24)<2?"1 day ago":o<30?Math.floor(o)+" days ago":(o/=30)<2?"1 month ago":o<12?Math.floor(o)+" months ago":(o/=12)<2?"1 year ago":Math.floor(o)+" years ago"},le.decorators=[{type:P.Pipe,args:[{name:"timeAgo"}]}],le);function le(){}var ce=(de.prototype.transform=function(e,t){var n,i=new Date(e);if(n=t!==undefined?new Date(t):new Date,!i.getTime()||!n.getTime())return"Invalid Date";var o=Math.floor((n.getTime()-i.getTime())/1e3),a=Math.floor(o/86400);o-=86400*a;var r=Math.floor(o/3600);o-=3600*r;var s=Math.floor(o/60),l=o-=60*s,c="00",d="";return 0<a&&a<2?d=" day - ":1<a&&(d=" days - "),(0<a?a+d:d)+c.substring(0,c.length-(r+"").length)+r+":"+c.substring(0,c.length-(s+"").length)+s+":"+c.substring(0,c.length-(l+"").length)+l},de.decorators=[{type:P.Pipe,args:[{name:"timeDifference"}]}],de);function de(){}var pe=(ue.prototype.transform=function(e,t){e=new Date(e);var n=new Date(t);if(!e.getTime())return"Invalid Date";var i=isNaN(n.getTime())?Date.now():n.getTime(),o=Math.floor((e.getTime()-i)/1e3);return o<2?"in 1 second":o<60?"in "+Math.floor(o)+" seconds":(o/=60)<2?"in 1 minute":o<60?"in "+Math.floor(o)+" minutes":(o/=60)<2?"in 1 hour":o<24?"in "+Math.floor(o)+" hours":(o/=24)<2?"in 1 day":o<30?"in "+Math.floor(o)+" days":(o/=30)<2?"in 1 month":o<12?"in "+Math.floor(o)+" months":(o/=12)<2?"in 1 year":"in "+Math.floor(o)+" years"},ue.decorators=[{type:P.Pipe,args:[{name:"timeUntil"}]}],ue);function ue(){}var he=(me.prototype.transform=function(e,t){if(void 0===t&&(t=2),0===e)return"0 B";if(isNaN(parseInt(e,10)))return"Invalid Number";var n=Math.floor(Math.log(e)/Math.log(1024));return n<0?"Invalid Number":parseFloat((e/Math.pow(1024,n)).toFixed(t))+" "+["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"][n]},me.decorators=[{type:P.Pipe,args:[{name:"bytes"}]}],me);function me(){}var ge=(fe.prototype.transform=function(e,t){if(void 0===t&&(t=2),0===e)return"0 B";if(isNaN(parseInt(e,10)))return"Invalid Number";var n=Math.floor(Math.log(e)/Math.log(1e3));return n<0?"Invalid Number":parseFloat((e/Math.pow(1e3,n)).toFixed(t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},fe.decorators=[{type:P.Pipe,args:[{name:"decimalBytes"}]}],fe);function fe(){}var be=(_e.prototype.transform=function(e,t){if(void 0===t&&(t=1),0===e)return"0";if(isNaN(parseInt(e,10)))return e;if(e<1)return this._decimalPipe.transform(e.toFixed(t));var n=Math.floor(Math.log(e)/Math.log(1e3)),i=["","K","M","B","T","Q"][n];return this._decimalPipe.transform(parseFloat((e/Math.pow(1e3,n)).toFixed(t)))+(i?" "+i:"")},_e.decorators=[{type:P.Pipe,args:[{name:"digits"}]}],_e.ctorParameters=function(){return[{type:String,decorators:[{type:P.Inject,args:[P.LOCALE_ID]}]}]},_e);function _e(e){void 0===e&&(e="en"),this._locale=e,this._decimalPipe=new O.DecimalPipe(this._locale)}var ye=(ve.prototype.transform=function(e,t){if("string"!=typeof e)return"";var n=e.substr(0,t);return e.length>t&&(0<n.lastIndexOf(" ")&&(n=n.trim()),n+="…"),n},ve.decorators=[{type:P.Pipe,args:[{name:"truncate"}]}],ve);function ve(){}var xe=(we.prototype.getPreviousRoute=function(){return we._previousRoute},we._previousRoute="/",we.decorators=[{type:P.Injectable}],we.ctorParameters=function(){return[{type:c.Router}]},we);function we(e){this._router=e,this._router.events.pipe(R.filter(function(e){return e instanceof c.RoutesRecognized}),R.pairwise()).subscribe(function(e){we._previousRoute=e[0].urlAfterRedirects})}var ke=(Object.defineProperty(Ce.prototype,"icons",{get:function(){return this._icons},enumerable:!0,configurable:!0}),Ce.prototype.filter=function(t){return this.icons.filter(function(e){return-1<e.toLowerCase().indexOf(t?t.toLowerCase():"")})},Ce.decorators=[{type:P.Injectable}],Ce);function Ce(){this._icons=["access_alarm","access_alarms","access_time","accessibility","account_balance","account_balance_wallet","account_box","account_circle","add","add_alarm","add_box","add_circle","add_circle_outline","add_shopping_cart","add_to_photos","adjust","alarm","alarm_add","alarm_off","alarm_on","album","android","announcement","apps","archive","arrow_back","arrow_drop_down","arrow_drop_down_circle","arrow_drop_up","arrow_forward","aspect_ratio","assessment","assignment","assignment_ind","assignment_late","assignment_return","assignment_returned","assignment_turned_in","assistant_photo","attach_file","attach_money","attachment","audiotrack","autorenew","av_timer","backspace","backup","battery_alert","battery_charging_full","battery_full","battery_std","battery_unknown","beenhere","block","bluetooth","bluetooth_audio","bluetooth_connected","bluetooth_disabled","bluetooth_searching","blur_circular","blur_linear","blur_off","blur_on","book","bookmark","bookmark_border","border_all","border_bottom","border_clear","border_color","border_horizontal","border_inner","border_left","border_outer","border_right","border_style","border_top","border_vertical","brightness_1","brightness_2","brightness_3","brightness_4","brightness_5","brightness_6","brightness_7","brightness_auto","brightness_high","brightness_low","brightness_medium","broken_image","brush","bug_report","build","business","cached","cake","call","call_end","call_made","call_merge","call_missed","call_received","call_split","camera","camera_alt","camera_front","camera_rear","camera_roll","cancel","cast","cast_connected","center_focus_strong","center_focus_weak","chat","check","check_box","check_box_outline_blank","check_circle","chevron_left","chevron_right","class","clear","clear_all","close","closed_caption","cloud","cloud_circle","cloud_done","cloud_download","cloud_off","cloud_queue","cloud_upload","collections","collections_bookmark","color_lens","colorize","comment","compare","computer","confirmation_number","contact_phone","contacts","content_copy","content_cut","content_paste","control_point","control_point_duplicate","create","credit_card","crop","crop_16_9","crop_3_2","crop_5_4","crop_7_5","crop_din","crop_free","crop_landscape","crop_original","crop_portrait","crop_square","dashboard","data_usage","dehaze","delete","description","desktop_mac","desktop_windows","details","developer_board","developer_mode","device_hub","devices","dialer_sip","dialpad","directions","directions_bike","directions_boat","directions_bus","directions_car","directions_railway","directions_run","directions_subway","directions_transit","directions_walk","disc_full","dns","do_not_disturb","do_not_disturb_alt","dock","domain","done","done_all","drafts","drive_eta","dvr","edit","eject","email","equalizer","error","error_outline","event","event_available","event_busy","event_note","event_seat","exit_to_app","expand_less","expand_more","explicit","explore","exposure","exposure_neg_1","exposure_neg_2","exposure_plus_1","exposure_plus_2","exposure_zero","extension","face","fast_forward","fast_rewind","favorite","favorite_border","feedback","file_download","file_upload","filter","filter_1","filter_2","filter_3","filter_4","filter_5","filter_6","filter_7","filter_8","filter_9","filter_9_plus","filter_b_and_w","filter_center_focus","filter_drama","filter_frames","filter_hdr","filter_list","filter_none","filter_tilt_shift","filter_vintage","find_in_page","find_replace","flag","flare","flash_auto","flash_off","flash_on","flight","flight_land","flight_takeoff","flip","flip_to_back","flip_to_front","folder","folder_open","folder_shared","folder_special","font_download","format_align_center","format_align_justify","format_align_left","format_align_right","format_bold","format_clear","format_color_fill","format_color_reset","format_color_text","format_indent_decrease","format_indent_increase","format_italic","format_line_spacing","format_list_bulleted","format_list_numbered","format_paint","format_quote","format_size","format_strikethrough","format_textdirection_l_to_r","format_textdirection_r_to_l","format_underlined","forum","forward","forward_10","forward_30","forward_5","fullscreen","fullscreen_exit","functions","gamepad","games","gesture","get_app","gif","gps_fixed","gps_not_fixed","gps_off","grade","gradient","grain","graphic_eq","grid_off","grid_on","group","group_add","group_work","hd","hdr_off","hdr_on","hdr_strong","hdr_weak","headset","headset_mic","healing","hearing","help","help_outline","high_quality","highlight_off","history","home","hotel","hourglass_empty","hourglass_full","http","https","image","image_aspect_ratio","import_export","inbox","indeterminate_check_box","info","info_outline","input","insert_chart","insert_comment","insert_drive_file","insert_emoticon","insert_invitation","insert_link","insert_photo","invert_colors","invert_colors_off","iso","keyboard","keyboard_arrow_down","keyboard_arrow_left","keyboard_arrow_right","keyboard_arrow_up","keyboard_backspace","keyboard_capslock","keyboard_hide","keyboard_return","keyboard_tab","keyboard_voice","label","label_outline","landscape","language","laptop","laptop_chromebook","laptop_mac","laptop_windows","launch","layers","layers_clear","leak_add","leak_remove","lens","library_add","library_books","library_music","link","list","live_help","live_tv","local_activity","local_airport","local_atm","local_bar","local_cafe","local_car_wash","local_convenience_store","local_dining","local_drink","local_florist","local_gas_station","local_grocery_store","local_hospital","local_hotel","local_laundry_service","local_library","local_mall","local_movies","local_offer","local_parking","local_pharmacy","local_phone","local_pizza","local_play","local_post_office","local_printshop","local_see","local_shipping","local_taxi","location_city","location_disabled","location_off","location_on","location_searching","lock","lock_open","lock_outline","looks","looks_3","looks_4","looks_5","looks_6","looks_one","looks_two","loop","loupe","loyalty","mail","map","markunread","markunread_mailbox","memory","menu","merge_type","message","mic","mic_none","mic_off","mms","mode_comment","mode_edit","money_off","monochrome_photos","mood","mood_bad","more","more_horiz","more_vert","mouse","movie","movie_creation","music_note","my_library_add","my_library_books","my_library_music","my_location","nature","nature_people","navigate_before","navigate_next","navigation","network_cell","network_locked","network_wifi","new_releases","nfc","no_sim","not_interested","note_add","notifications","notifications_active","notifications_none","notifications_off","notifications_paused","offline_pin","ondemand_video","open_in_browser","open_in_new","open_with","pages","pageview","palette","panorama","panorama_fish_eye","panorama_horizontal","panorama_vertical","panorama_wide_angle","party_mode","pause","pause_circle_filled","pause_circle_outline","payment","people","people_outline","perm_camera_mic","perm_contact_calendar","perm_data_setting","perm_device_information","perm_identity","perm_media","perm_phone_msg","perm_scan_wifi","person","person_add","person_outline","person_pin","personal_video","phone","phone_android","phone_bluetooth_speaker","phone_forwarded","phone_in_talk","phone_iphone","phone_locked","phone_missed","phone_paused","phonelink","phonelink_erase","phonelink_lock","phonelink_off","phonelink_ring","phonelink_setup","photo","photo_album","photo_camera","photo_library","photo_size_select_actual","photo_size_select_large","photo_size_select_small","picture_as_pdf","picture_in_picture","pin_drop","place","play_arrow","play_circle_filled","play_circle_outline","play_for_work","play_shopping_bag","playlist_add","plus_one","poll","polymer","portable_wifi_off","portrait","power","power_input","power_settings_new","present_to_all","print","public","publish","query_builder","question_answer","queue","queue_music","radio","radio_button_checked","radio_button_unchecked","rate_review","receipt","recent_actors","redeem","redo","refresh","remove","remove_circle","remove_circle_outline","remove_red_eye","reorder","repeat","repeat_one","replay","replay_10","replay_30","replay_5","reply","reply_all","report","report_problem","restaurant_menu","restore","ring_volume","room","rotate_90_degrees_ccw","rotate_left","rotate_right","router","satellite","save","scanner","schedule","school","screen_lock_landscape","screen_lock_portrait","screen_lock_rotation","screen_rotation","sd_card","sd_storage","search","security","select_all","send","settings","settings_applications","settings_backup_restore","settings_bluetooth","settings_brightness","settings_cell","settings_ethernet","settings_input_antenna","settings_input_component","settings_input_composite","settings_input_hdmi","settings_input_svideo","settings_overscan","settings_phone","settings_power","settings_remote","settings_system_daydream","settings_voice","share","shop","shop_two","shopping_basket","shopping_cart","shuffle","signal_cellular_4_bar","signal_cellular_connected_no_internet_4_bar","signal_cellular_no_sim","signal_cellular_null","signal_cellular_off","signal_wifi_4_bar","signal_wifi_4_bar_lock","signal_wifi_off","sim_card","sim_card_alert","skip_next","skip_previous","slideshow","smartphone","sms","sms_failed","snooze","sort","sort_by_alpha","space_bar","speaker","speaker_group","speaker_notes","speaker_phone","spellcheck","star","star_border","star_half","stars","stay_current_landscape","stay_current_portrait","stay_primary_landscape","stay_primary_portrait","stop","storage","store","store_mall_directory","straighten","strikethrough_s","style","subject","subtitles","supervisor_account","surround_sound","swap_calls","swap_horiz","swap_vert","swap_vertical_circle","switch_camera","switch_video","sync","sync_disabled","sync_problem","system_update","system_update_alt","tab","tab_unselected","tablet","tablet_android","tablet_mac","tag_faces","tap_and_play","terrain","text_format","textsms","texture","theaters","thumb_down","thumb_up","thumbs_up_down","time_to_leave","timelapse","timer","timer_10","timer_3","timer_off","toc","today","toll","tonality","toys","track_changes","traffic","transform","translate","trending_down","trending_flat","trending_up","tune","turned_in","turned_in_not","tv","undo","unfold_less","unfold_more","usb","verified_user","vertical_align_bottom","vertical_align_center","vertical_align_top","vibration","video_library","videocam","videocam_off","view_agenda","view_array","view_carousel","view_column","view_comfy","view_compact","view_day","view_headline","view_list","view_module","view_quilt","view_stream","view_week","vignette","visibility","visibility_off","voice_chat","voicemail","volume_down","volume_mute","volume_off","volume_up","vpn_key","vpn_lock","wallpaper","warning","watch","wb_auto","wb_cloudy","wb_incandescent","wb_iridescent","wb_sunny","wc","web","whatshot","widgets","wifi","wifi_lock","wifi_tethering","work","wrap_text","youtube_searched_for","zoom_in","zoom_out"]}var Re=[ie,ae],Oe=[],De=[se,ce,pe,he,ge,be,ye],Ie=(Se.decorators=[{type:P.NgModule,args:[{imports:[I.FormsModule,O.CommonModule],declarations:[Re,De,Oe],exports:[I.FormsModule,O.CommonModule,Re,De,Oe],providers:[xe,ke]}]}],Se);function Se(){}function Pe(){}var Te=_.trigger("tdRotate",[_.state("0",_.style({transform:"rotate({{ degressStart }}deg)"}),{params:{degressStart:0}}),_.state("1",_.style({transform:"rotate({{ degreesEnd }}deg)"}),{params:{degreesEnd:180}}),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}")])],{params:{duration:250,delay:"0",ease:"ease-in"}})]),Ee=_.trigger("tdCollapse",[_.state("1",_.style({height:"0",overflow:"hidden"})),_.state("0",_.style({height:_.AUTO_STYLE,overflow:_.AUTO_STYLE})),_.transition("0 => 1",[_.style({overflow:"hidden",height:_.AUTO_STYLE}),_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.style({height:"0",overflow:"hidden"}))])],{params:{duration:150,delay:"0",ease:"ease-in"}}),_.transition("1 => 0",[_.style({height:"0",overflow:"hidden"}),_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.style({overflow:"hidden",height:_.AUTO_STYLE}))])],{params:{duration:150,delay:"0",ease:"ease-out"}})]),Me=_.trigger("tdFadeInOut",[_.state("0",_.style({opacity:"0",visibility:"hidden"})),_.state("1",_.style({opacity:_.AUTO_STYLE,visibility:_.AUTO_STYLE})),_.transition("0 => 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ easeOnIn }}")])],{params:{duration:150,delay:"0",easeOnIn:"ease-in"}}),_.transition("1 => 0",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ easeOnOut }}")])],{params:{duration:150,delay:"0",easeOnOut:"ease-out"}})]),Le=_.trigger("tdBounce",[_.state("0",_.style({transform:"translate3d(0, 0, 0)"})),_.state("1",_.style({transform:"translate3d(0, 0, 0)"})),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.keyframes([_.style({animationTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:"translate3d(0, 0, 0)",offset:0}),_.style({animationTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:"translate3d(0, 0, 0)",offset:.2}),_.style({animationTimingFunction:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",transform:"translate3d(0, -30px, 0)",offset:.4}),_.style({animationTimingFunction:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",transform:"translate3d(0, -30px, 0)",offset:.43}),_.style({animationTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:"translate3d(0, 0, 0)",offset:.53}),_.style({animationTimingFunction:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",transform:"translate3d(0, -15px, 0)",offset:.7}),_.style({animationTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:"translate3d(0, 0, 0)",offset:.8}),_.style({transform:"translate3d(0, -4px, 0)",offset:.9}),_.style({animationTimingFunction:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",transform:"translate3d(0, 0, 0)",offset:1})]))])],{params:{duration:500,delay:"0",ease:"ease-out"}})]),je=_.trigger("tdFlash",[_.state("0",_.style({opacity:1})),_.state("1",_.style({opacity:1})),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.keyframes([_.style({opacity:1,offset:0}),_.style({opacity:0,offset:.25}),_.style({opacity:1,offset:.5}),_.style({opacity:0,offset:.75}),_.style({opacity:1,offset:1})]))])],{params:{duration:500,delay:"0",ease:"ease-out"}})]),Ae=_.trigger("tdHeadshake",[_.state("0",_.style({transform:"translateX(0)"})),_.state("1",_.style({transform:"translateX(0)"})),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.keyframes([_.style({transform:"translateX(0)",offset:0}),_.style({transform:"translateX(-6px) rotateY(-9deg)",offset:.065}),_.style({transform:"translateX(5px) rotateY(7deg)",offset:.185}),_.style({transform:"translateX(-3px) rotateY(-5deg)",offset:.315}),_.style({transform:"translateX(2px) rotateY(3deg)",offset:.435}),_.style({transform:"translateX(0)",offset:.5})]))])],{params:{duration:500,delay:"0",ease:"ease-out"}})]),ze=_.trigger("tdJello",[_.state("0",_.style({transform:"none"})),_.state("1",_.style({transform:"none"})),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.keyframes([_.style({transform:"none",offset:0}),_.style({transform:"none",offset:.011}),_.style({transform:"skewX(-12.5deg) skewY(-12.5deg)",offset:.222}),_.style({transform:"skewX(6.25deg) skewY(6.25deg)",offset:.333}),_.style({transform:"skewX(-3.125deg) skewY(-3.125deg)",offset:.444}),_.style({transform:"skewX(1.5625deg) skewY(1.5625deg)",offset:.555}),_.style({transform:"skewX(-0.78125deg) skewY(-0.78125deg)",offset:.666}),_.style({transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.777}),_.style({transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)",offset:.888})]))])],{params:{duration:500,delay:"0",ease:"ease-out"}})]),Fe=_.trigger("tdPulse",[_.state("0",_.style({transform:"scale3d(1, 1, 1)"})),_.state("1",_.style({transform:"scale3d(1, 1, 1)"})),_.transition("0 <=> 1",[_.group([_.query("@*",_.animateChild(),{optional:!0}),_.animate("{{ duration }}ms {{ delay }}ms {{ ease }}",_.keyframes([_.style({transform:"scale3d(1, 1, 1)",offset:0}),_.style({transform:"scale3d(1.05, 1.05, 1.05)",offset:.5}),_.style({transform:"scale3d(1, 1, 1)",offset:1})]))])],{params:{duration:500,delay:"0",ease:"ease-out"}})]);var Be=(Ve.min=function(n){return function(e){if(I.Validators.required(e)||!n&&0!==n)return undefined;var t=e.value;return t<n?{min:{minValue:n,actualValue:t}}:undefined}},Ve.max=function(n){return function(e){if(I.Validators.required(e)||!n&&0!==n)return undefined;var t=e.value;return n<t?{max:{maxValue:n,actualValue:t}}:undefined}},Ve.numberRequired=function(e){return Number.isNaN(e.value)?{required:!0}:undefined},Ve);function Ve(){}var Ne=(qe.decorators=[{type:P.Directive,args:[{selector:"[tdMessageContainer]"}]}],qe.ctorParameters=function(){return[{type:P.ViewContainerRef}]},qe);function qe(e){this.viewContainer=e}var He=(Object.defineProperty(We.prototype,"collapsedAnimation",{get:function(){return{value:!this._opened,duration:100}},enumerable:!0,configurable:!0}),Object.defineProperty(We.prototype,"hidden",{get:function(){return this._hidden?"none":undefined},enumerable:!0,configurable:!0}),Object.defineProperty(We.prototype,"color",{get:function(){return this._color},set:function(e){this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),this._renderer.removeClass(this._elementRef.nativeElement,"bgc-"+this._color+"-100"),this._renderer.removeClass(this._elementRef.nativeElement,"tc-"+this._color+"-700"),"primary"===e||"accent"===e||"warn"===e?this._renderer.addClass(this._elementRef.nativeElement,"mat-"+e):(this._renderer.addClass(this._elementRef.nativeElement,"bgc-"+e+"-100"),this._renderer.addClass(this._elementRef.nativeElement,"tc-"+e+"-700")),this._color=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(We.prototype,"opened",{get:function(){return this._opened},set:function(e){this._initialized?e?this.open():this.close():this._opened=e},enumerable:!0,configurable:!0}),We.prototype.animationDoneListener=function(){this._opened||(this._hidden=!0,this._detach()),this._animating=!1,this._changeDetectorRef.markForCheck()},We.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve(undefined).then(function(){e._opened&&e._attach(),e._initialized=!0})},We.prototype.open=function(){this._opened||this._animating||(this._opened=!0,this._attach(),this._startAnimationState())},We.prototype.close=function(){this._opened&&!this._animating&&(this._opened=!1,this._startAnimationState())},We.prototype.toggle=function(){this._opened?this.close():this.open()},We.prototype._startAnimationState=function(){this._animating=!0,this._hidden=!1,this._changeDetectorRef.markForCheck()},We.prototype._attach=function(){this._childElement.viewContainer.createEmbeddedView(this._template),this._changeDetectorRef.markForCheck()},We.prototype._detach=function(){this._childElement.viewContainer.clear(),this._changeDetectorRef.markForCheck()},We.decorators=[{type:P.Component,args:[{selector:"td-message",template:'<div tdMessageContainer></div>\n<ng-template>\n <div class="td-message-wrapper">\n <mat-icon class="td-message-icon">{{icon}}</mat-icon>\n <div class="td-message-labels">\n <div *ngIf="label" class="td-message-label">{{label}}</div>\n <div *ngIf="sublabel" class="td-message-sublabel">{{sublabel}}</div>\n </div>\n <ng-content select="[td-message-actions]"></ng-content>\n </div>\n</ng-template>',animations:[E.tdCollapseAnimation],styles:[":host{display:block}:host .td-message-wrapper{padding:8px 16px;min-height:52px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host .td-message-wrapper .td-message-labels{-webkit-box-flex:1;-ms-flex:1;flex:1}.td-message-icon{margin-right:16px}::ng-deep [dir=rtl] .td-message-icon{margin-left:16px;margin-right:0}"]}]}],We.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ChangeDetectorRef},{type:P.ElementRef}]},We.propDecorators={_childElement:[{type:P.ViewChild,args:[Ne]}],_template:[{type:P.ViewChild,args:[P.TemplateRef]}],collapsedAnimation:[{type:P.HostBinding,args:["@tdCollapse"]}],hidden:[{type:P.HostBinding,args:["style.display"]}],label:[{type:P.Input,args:["label"]}],sublabel:[{type:P.Input,args:["sublabel"]}],icon:[{type:P.Input,args:["icon"]}],color:[{type:P.Input,args:["color"]}],opened:[{type:P.Input,args:["opened"]}],animationDoneListener:[{type:P.HostListener,args:["@tdCollapse.done"]}]},We);function We(e,t,n){this._renderer=e,this._changeDetectorRef=t,this._elementRef=n,this._opened=!0,this._hidden=!1,this._animating=!1,this._initialized=!1,this.icon="info_outline",this._renderer.addClass(this._elementRef.nativeElement,"td-message")}var Ue=[He,Ne],Xe=($e.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,y.MatIconModule],declarations:[Ue],exports:[Ue]}]}],$e);function $e(){}var Ye,Ge=(F(Ke,Ye=T.TemplatePortalDirective),Ke.decorators=[{type:P.Directive,args:[{selector:"[td-chip]ng-template"}]}],Ke.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},Ke);function Ke(e,t){return Ye.call(this,e,t)||this}var Ze,Qe=(F(Je,Ze=T.TemplatePortalDirective),Je.decorators=[{type:P.Directive,args:[{selector:"[td-autocomplete-option]ng-template"}]}],Je.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},Je);function Je(e,t){return Ze.call(this,e,t)||this}function et(e){this._changeDetectorRef=e}var tt,nt=E.mixinControlValueAccessor(E.mixinDisabled(et),[]),it=(F(ot,tt=nt),Object.defineProperty(ot.prototype,"focused",{get:function(){return this._focused},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this._setFirstOptionActive(),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"stacked",{get:function(){return this._stacked},set:function(e){this._stacked=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"inputPosition",{get:function(){return this._inputPosition},set:function(e){this._inputPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"requireMatch",{get:function(){return this._requireMatch},set:function(e){this._requireMatch=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"required",{get:function(){return this._required},set:function(e){this._required=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"chipAddition",{get:function(){return this._chipAddition},set:function(e){this._chipAddition=e,this._toggleInput()},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"canAddChip",{get:function(){return this.chipAddition&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"chipRemoval",{get:function(){return this._chipRemoval},set:function(e){this._chipRemoval=e},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"canRemoveChip",{get:function(){return this.chipRemoval&&!this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"displayPlaceHolder",{get:function(){return this.canAddChip?this._required?this.placeholder+" *":this.placeholder:""},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"color",{get:function(){return this._color},set:function(e){e&&(this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),this._color=e,this._renderer.addClass(this._elementRef.nativeElement,"mat-"+this._color))},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},enumerable:!0,configurable:!0}),ot.prototype.focusListener=function(e){this._isMousedown||this.focus(),e.preventDefault()},ot.prototype.mousedownListener=function(e){var t=this;this._isMousedown=!0,C.timer().toPromise().then(function(){t._isMousedown=!1})},ot.prototype.clickListener=function(e){var t=e.target;(t===this._elementRef.nativeElement||-1<t.className.indexOf("td-chips-wrapper"))&&(this.focus(),e.preventDefault(),e.stopPropagation())},ot.prototype.keydownListener=function(e){var t=this;switch(e.keyCode){case w.TAB:C.timer().toPromise().then(function(){t.removeFocusedState()});break;case w.ESCAPE:this._inputChild.focused?(this._nativeInput.nativeElement.blur(),this.removeFocusedState(),this._closeAutocomplete()):this.focus()}},ot.prototype.ngOnInit=function(){var t=this;this._inputValueChangesSubs=this.inputControl.valueChanges.pipe(R.debounceTime(this.debounce)).subscribe(function(e){t.onInputChange.emit(e||"")}),this._changeDetectorRef.markForCheck()},ot.prototype.ngAfterViewInit=function(){this._watchOutsideClick(),this._changeDetectorRef.markForCheck()},ot.prototype.ngDoCheck=function(){this.value&&this.value.length!==this._length&&(this._length=this.value.length,this.onChange(this.value))},ot.prototype.ngOnDestroy=function(){this._outsideClickSubs.unsubscribe(),this._inputValueChangesSubs.unsubscribe()},ot.prototype._setInternalClick=function(){this._internalClick=!0},ot.prototype.onDisabledChange=function(e){this._toggleInput()},ot.prototype._handleAddChip=function(){var e;if(this.requireMatch){var t=this._options.toArray().filter(function(e){return e.active});if(0<t.length&&(e=t[0].value,t[0].setInactiveStyles()),!e)return!1}else if(this._autocompleteTrigger.activeOption)e=this._autocompleteTrigger.activeOption.value,this._autocompleteTrigger.activeOption.setInactiveStyles();else if(""===(e=this._inputChild.value).trim())return!1;return this.addChip(e)},ot.prototype.addChip=function(t){var n=this;return this._closeAutocomplete(),C.timer(this.debounce).toPromise().then(function(){n.setFocusedState(),n._setFirstOptionActive(),n._openAutocomplete()}),this.inputControl.setValue(""),!(-1<this.value.findIndex(function(e){return n.compareWith(e,t)})||(this.value.push(t),this.onAdd.emit(t),this.onChange(this.value),this._changeDetectorRef.markForCheck(),0))},ot.prototype.removeChip=function(e){var t=this.value.splice(e,1);return 0!==t.length&&(e===this._totalChips-1&&0===e?this._inputChild.focus():e<this._totalChips-1?this._focusChip(e+1):0<e&&this._focusChip(e-1),this.onRemove.emit(t[0]),this.onChange(this.value),this.inputControl.setValue(""),this._changeDetectorRef.markForCheck(),!0)},ot.prototype._handleChipBlur=function(e,t){this.onChipBlur.emit(t)},ot.prototype._handleChipFocus=function(e,t){this.setFocusedState(),this.onChipFocus.emit(t)},ot.prototype._handleFocus=function(){return this.setFocusedState(),this._setFirstOptionActive(),!0},ot.prototype.setFocusedState=function(){this.disabled||(this._focused=!0,this._tabIndex=-1,this._changeDetectorRef.markForCheck())},ot.prototype.removeFocusedState=function(){this._focused=!1,this._tabIndex=0,this._changeDetectorRef.markForCheck()},ot.prototype.focus=function(){this.canAddChip?this._inputChild.focus():this.disabled||this._focusFirstChip()},ot.prototype._inputKeydown=function(e){switch(e.keyCode){case w.UP_ARROW:this.requireMatch&&1<this._options.length&&this._options.toArray()[0].active&&this._internalActivateOption&&(this._options.toArray()[0].setInactiveStyles(),this._internalActivateOption=!1,e.preventDefault());break;case w.LEFT_ARROW:case w.DELETE:case w.BACKSPACE:this._closeAutocomplete(),this._inputChild.value||(this._focusLastChip(),e.preventDefault());break;case w.RIGHT_ARROW:this._closeAutocomplete(),this._inputChild.value||(this._focusFirstChip(),e.preventDefault())}},ot.prototype._chipKeydown=function(e,t){switch(e.keyCode){case w.DELETE:case w.BACKSPACE:this.canRemoveChip&&this.removeChip(t);break;case w.UP_ARROW:case w.LEFT_ARROW:0===t?this.canAddChip&&e.keyCode===w.LEFT_ARROW?this._inputChild.focus():this._focusLastChip():0<t&&this._focusChip(t-1),e.preventDefault();break;case w.DOWN_ARROW:case w.RIGHT_ARROW:t===this._totalChips-1?this.canAddChip&&e.keyCode===w.RIGHT_ARROW?this._inputChild.focus():this._focusFirstChip():t<this._totalChips-1&&this._focusChip(t+1),e.preventDefault()}},ot.prototype._removeInputDisplay=function(){return""},ot.prototype._openAutocomplete=function(){this._autocompleteTrigger.panelOpen||(this._autocompleteTrigger.openPanel(),this._changeDetectorRef.markForCheck())},ot.prototype._closeAutocomplete=function(){this._autocompleteTrigger.panelOpen&&(this._autocompleteTrigger.closePanel(),this._changeDetectorRef.markForCheck())},Object.defineProperty(ot.prototype,"_totalChips",{get:function(){return this._chipsChildren.toArray().length},enumerable:!0,configurable:!0}),ot.prototype._focusChip=function(e){-1<e&&this._totalChips>e&&this._chipsChildren.toArray()[e].focus()},ot.prototype._focusFirstChip=function(){this._focusChip(0)},ot.prototype._focusLastChip=function(){this._focusChip(this._totalChips-1)},ot.prototype._toggleInput=function(){this.canAddChip?this.inputControl.enable():this.inputControl.disable(),this._changeDetectorRef.markForCheck()},ot.prototype._setFirstOptionActive=function(){var e=this;this.requireMatch&&C.timer().toPromise().then(function(){e.focused&&e._options&&0<e._options.length&&(e._options.toArray().forEach(function(e){e.setInactiveStyles()}),e._options.toArray()[0].setActiveStyles(),e._internalActivateOption=!0,e._changeDetectorRef.markForCheck())})},ot.prototype._watchOutsideClick=function(){var n=this;return this._document&&(this._outsideClickSubs=C.merge(C.fromEvent(this._document,"click"),C.fromEvent(this._document,"touchend")).pipe(R.debounceTime(this._touchendDebounce),R.filter(function(e){var t=e.target;return setTimeout(function(){n._internalClick=!1}),n.focused&&t!==n._elementRef.nativeElement&&!n._elementRef.nativeElement.contains(t)&&!n._internalClick})).subscribe(function(){n.focused&&(n._autocompleteTrigger.closePanel(),n.removeFocusedState(),n.onTouched(),n._changeDetectorRef.markForCheck())})),undefined},ot.decorators=[{type:P.Component,args:[{providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return ot}),multi:!0}],selector:"td-chips",inputs:["disabled","value"],template:'<div class="td-chips-wrapper"\n [class.td-chips-stacked]="stacked"\n [class.td-chips-input-before-position]="inputPosition === \'before\'">\n <ng-template let-chip let-first="first" let-index="index" ngFor [ngForOf]="value">\n <mat-basic-chip [class.td-chip-disabled]="disabled"\n [class.td-chip-after-pad]="!canRemoveChip"\n [disableRipple]="true"\n [color]="color"\n (keydown)="_chipKeydown($event, index)"\n (blur)="_handleChipBlur($event, chip)"\n (focus)="_handleChipFocus($event, chip)">\n <div class="td-chip" [class.td-chip-stacked]="stacked">\n <span class="td-chip-content">\n <span *ngIf="!_chipTemplate?.templateRef">{{chip}}</span>\n <ng-template\n *ngIf="_chipTemplate?.templateRef"\n [ngTemplateOutlet]="_chipTemplate?.templateRef"\n [ngTemplateOutletContext]="{ chip: chip }">\n </ng-template>\n </span>\n <mat-icon *ngIf="canRemoveChip" class="td-chip-removal" (click)="_internalClick = removeChip(index)">\n cancel\n </mat-icon>\n </div>\n </mat-basic-chip>\n </ng-template>\n <mat-form-field floatLabel="never"\n class="td-chips-form-field"\n [style.width.px]="canAddChip ? null : 0"\n [style.height.px]="canAddChip ? null : 0"\n [color]="color">\n <input matInput\n #input\n [tabIndex]="-1"\n [matAutocomplete]="autocomplete"\n [formControl]="inputControl"\n [placeholder]="displayPlaceHolder"\n (keydown)="_inputKeydown($event)"\n (keyup.enter)="_handleAddChip()"\n (focus)="_handleFocus()">\n </mat-form-field>\n <mat-autocomplete #autocomplete="matAutocomplete"\n [displayWith]="_removeInputDisplay"\n (optionSelected)="addChip($event.option.value)">\n <ng-template let-item let-first="first" ngFor [ngForOf]="items">\n <mat-option (click)="_setInternalClick()" [value]="item">\n <span *ngIf="!_autocompleteOptionTemplate?.templateRef">{{item}}</span>\n <ng-template\n *ngIf="_autocompleteOptionTemplate?.templateRef"\n [ngTemplateOutlet]="_autocompleteOptionTemplate?.templateRef"\n [ngTemplateOutletContext]="{ option: item }">\n </ng-template>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n</div>\n<div *ngIf="chipAddition" class="mat-form-field-underline"\n [class.mat-disabled]="disabled">\n <span class="mat-form-field-ripple"\n [class.mat-focused]="focused"></span>\n</div>\n<ng-content></ng-content>',changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;padding:0 5px;min-height:48px}:host .td-chips-wrapper{min-height:42px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}:host .td-chips-wrapper.td-chips-stacked .mat-basic-chip,:host .td-chips-wrapper.td-chips-stacked .td-chips-form-field{width:100%}:host .td-chips-wrapper.td-chips-input-before-position .td-chips-form-field{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}:host .td-chip,:host .td-chip>.td-chip-content{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;max-width:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;min-width:0}:host .td-chip.td-chip-stacked,:host .td-chip>.td-chip-content.td-chip-stacked{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}:host ::ng-deep .mat-form-field-wrapper{padding-bottom:2px}:host ::ng-deep .mat-basic-chip{display:inline-block;cursor:default;border-radius:16px;margin:8px 8px 0 0;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;position:relative}html[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip{margin:8px 0 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip{min-height:32px;line-height:32px;font-size:13px;padding:0 0 0 12px}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip{padding:0 12px 0 0;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{display:inline-block;-webkit-box-ordinal-group:-19;-ms-flex-order:-20;order:-20;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;height:32px;width:32px;margin:0 8px 0 -12px;border-radius:50%;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-sizing:border-box;box-sizing:border-box}html[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar]{margin:0 -12px 0 8px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip .td-chip [td-chip-avatar] bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 12px 0 0}html[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}body[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}[dir=rtl] :host ::ng-deep .mat-basic-chip.td-chip-after-pad{padding:0 0 0 12px;unicode-bidi:embed}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip.td-chip-after-pad bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal{margin:0 4px;font-size:21px;line-height:22px}:host ::ng-deep .mat-basic-chip mat-icon.td-chip-removal:hover{cursor:pointer}:host ::ng-deep .td-chips-stacked .mat-basic-chip{margin:4px 0}:host ::ng-deep .td-chips-stacked .mat-basic-chip:first-of-type{margin:8px 0 4px}:host ::ng-deep .td-chips-stacked .mat-basic-chip:last-of-type{margin:4px 0 8px}:host .mat-form-field-underline{position:relative;height:1px;width:100%;bottom:0}:host .mat-form-field-underline.mat-disabled{background-position:0;bottom:-4px;background-color:transparent}:host .mat-form-field-underline .mat-form-field-ripple{position:absolute;height:2px;top:0;width:100%;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-transform:scaleX(.5);-ms-transform:scaleX(.5);transform:scaleX(.5);visibility:hidden;opacity:0;-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2);transition:background-color .3s cubic-bezier(.55,0,.55,.2)}:host .mat-form-field-underline .mat-form-field-ripple.mat-focused{visibility:visible;opacity:1;-webkit-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear;transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear}:host.ng-invalid .mat-form-field-underline .mat-form-field-ripple{visibility:visible;opacity:1;-webkit-transform:scaleX(1);-ms-transform:scaleX(1);transform:scaleX(1);-webkit-transition:background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear;transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2),-webkit-transform 150ms linear}:host ::ng-deep mat-form-field .mat-form-field-underline{display:none}"]}]}],ot.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2},{type:undefined,decorators:[{type:P.Optional},{type:P.Inject,args:[O.DOCUMENT]}]},{type:P.ChangeDetectorRef}]},ot.propDecorators={_nativeInput:[{type:P.ViewChild,args:["input"]}],_inputChild:[{type:P.ViewChild,args:[b.MatInput]}],_autocompleteTrigger:[{type:P.ViewChild,args:[n.MatAutocompleteTrigger]}],_chipsChildren:[{type:P.ViewChildren,args:[t.MatChip]}],_chipTemplate:[{type:P.ContentChild,args:[Ge]}],_autocompleteOptionTemplate:[{type:P.ContentChild,args:[Qe]}],_options:[{type:P.ViewChildren,args:[v.MatOption]}],items:[{type:P.Input,args:["items"]}],stacked:[{type:P.Input,args:["stacked"]}],inputPosition:[{type:P.Input,args:["inputPosition"]}],requireMatch:[{type:P.Input,args:["requireMatch"]}],required:[{type:P.Input,args:["required"]}],chipAddition:[{type:P.Input,args:["chipAddition"]}],chipRemoval:[{type:P.Input,args:["chipRemoval"]}],placeholder:[{type:P.Input,args:["placeholder"]}],debounce:[{type:P.Input,args:["debounce"]}],color:[{type:P.Input,args:["color"]}],onAdd:[{type:P.Output,args:["add"]}],onRemove:[{type:P.Output,args:["remove"]}],onInputChange:[{type:P.Output,args:["inputChange"]}],onChipFocus:[{type:P.Output,args:["chipFocus"]}],onChipBlur:[{type:P.Output,args:["chipBlur"]}],tabIndex:[{type:P.HostBinding,args:["attr.tabindex"]}],compareWith:[{type:P.Input,args:["compareWith"]}],focusListener:[{type:P.HostListener,args:["focus",["$event"]]}],mousedownListener:[{type:P.HostListener,args:["mousedown",["$event"]]}],clickListener:[{type:P.HostListener,args:["click",["$event"]]}],keydownListener:[{type:P.HostListener,args:["keydown",["$event"]]}]},ot);function ot(e,t,n,i){var o=tt.call(this,i)||this;return o._elementRef=e,o._renderer=t,o._document=n,o._outsideClickSubs=C.Subscription.EMPTY,o._inputValueChangesSubs=C.Subscription.EMPTY,o._isMousedown=!1,o._length=0,o._stacked=!1,o._requireMatch=!1,o._color="primary",o._inputPosition="after",o._chipAddition=!0,o._chipRemoval=!0,o._focused=!1,o._required=!1,o._tabIndex=0,o._touchendDebounce=100,o._internalClick=!1,o._internalActivateOption=!1,o.inputControl=new I.FormControl,o.debounce=200,o.onAdd=new P.EventEmitter,o.onRemove=new P.EventEmitter,o.onInputChange=new P.EventEmitter,o.onChipFocus=new P.EventEmitter,o.onChipBlur=new P.EventEmitter,o.compareWith=function(e,t){return e===t},o._renderer.addClass(o._elementRef.nativeElement,"mat-"+o._color),o}var at=(rt.decorators=[{type:P.NgModule,args:[{imports:[I.ReactiveFormsModule,O.CommonModule,b.MatInputModule,y.MatIconModule,t.MatChipsModule,n.MatAutocompleteModule],declarations:[it,Ge,Qe],exports:[it,Ge,Qe]}]}],rt);function rt(){}var st=(lt.decorators=[{type:P.Component,args:[{selector:"tr[td-data-table-column-row]",template:"<ng-content></ng-content>",styles:[":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]}]}],lt.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2}]},lt);function lt(e,t){this._elementRef=e,this._renderer=t,this._renderer.addClass(this._elementRef.nativeElement,"td-data-table-column-row")}var ct=(Object.defineProperty(dt.prototype,"selected",{get:function(){return this._selected},set:function(e){e?this._renderer.addClass(this._elementRef.nativeElement,"td-selected"):this._renderer.removeClass(this._elementRef.nativeElement,"td-selected"),this._selected=e},enumerable:!0,configurable:!0}),Object.defineProperty(dt.prototype,"height",{get:function(){var e=48;return this._elementRef.nativeElement&&(e=this._elementRef.nativeElement.getBoundingClientRect().height),e},enumerable:!0,configurable:!0}),dt.prototype.clickListener=function(){this.focus()},dt.prototype.focus=function(){this._elementRef.nativeElement.focus()},dt.decorators=[{type:P.Component,args:[{selector:"tr[td-data-table-row]",template:"<ng-content></ng-content>",styles:[":host{border-bottom-style:solid;border-bottom-width:1px}:host.td-data-table-row{height:48px}:host.td-data-table-column-row{height:56px}"]}]}],dt.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2}]},dt.propDecorators={selected:[{type:P.Input,args:["selected"]}],clickListener:[{type:P.HostListener,args:["click"]}]},dt);function dt(e,t){this._elementRef=e,this._renderer=t,this._selected=!1,this._renderer.addClass(this._elementRef.nativeElement,"td-data-table-row")}var pt,ut=(F(ht,pt=T.TemplatePortalDirective),ht.decorators=[{type:P.Directive,args:[{selector:"[tdDataTableTemplate]ng-template"}]}],ht.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},ht.propDecorators={tdDataTableTemplate:[{type:P.Input}]},ht);function ht(e,t){return pt.call(this,e,t)||this}function mt(e){this._changeDetectorRef=e}var gt,ft={Ascending:"ASC",Descending:"DESC"},bt=E.mixinControlValueAccessor(mt,[]),_t=(F(yt,gt=bt),Object.defineProperty(yt.prototype,"resizingColumn",{get:function(){return this._resizingColumn},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"hostWidth",{get:function(){return this.selectable?this._hostWidth-42:this._hostWidth},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"offsetTransform",{get:function(){return this._offsetTransform},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"totalHeight",{get:function(){return this._totalHeight},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"fromRow",{get:function(){return this._fromRow},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"toRow",{get:function(){return this._toRow},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"columnsLeftScroll",{get:function(){return-1*this._scrollHorizontalOffset},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"allSelected",{get:function(){return this._allSelected},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"indeterminate",{get:function(){return this._indeterminate},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"data",{get:function(){return this._data},set:function(e){var t=this;this._data=e,this._rowHeightCache=[],Promise.resolve().then(function(){t.refresh(),t._scrollableDiv.nativeElement.scrollTop=0})},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"virtualData",{get:function(){return this._virtualData},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"columns",{get:function(){var e=this;if(this._columns)return this._columns;if(this.hasData){this._columns=[];var t=this._data[0];return Object.keys(t).forEach(function(t){e._columns.find(function(e){return e.name===t})||e._columns.push({name:t,label:t})}),this._columns}return[]},set:function(e){this._columns=e},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"resizableColumns",{get:function(){return this._resizableColumns},set:function(e){this._resizableColumns=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"selectable",{get:function(){return this._selectable},set:function(e){this._selectable=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"clickable",{get:function(){return this._clickable},set:function(e){this._clickable=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"sortable",{get:function(){return this._sortable},set:function(e){this._sortable=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"sortBy",{set:function(t){if(t){var e=this.columns.find(function(e){return e.name===t});if(!e)throw new Error("[sortBy] must be a valid column name");this._sortBy=e}},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"sortByColumn",{get:function(){return this._sortBy},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"sortOrder",{set:function(e){var t=e?e.toUpperCase():"ASC";if("DESC"!==t&&"ASC"!==t)throw new Error("[sortOrder] must be empty, ASC or DESC");this._sortOrder="ASC"===t?ft.Ascending:ft.Descending},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"sortOrderEnum",{get:function(){return this._sortOrder},enumerable:!0,configurable:!0}),Object.defineProperty(yt.prototype,"hasData",{get:function(){return this._data&&0<this._data.length},enumerable:!0,configurable:!0}),yt.prototype.ngOnInit=function(){var n=this;this._resizeSubs=this._onResize.asObservable().subscribe(function(){n._rows&&n._rows.toArray().forEach(function(e,t){n._rowHeightCache[n.fromRow+t]=e.height+1}),n._calculateWidths(),n._calculateVirtualRows()}),this._columnResizeSubs=this._onColumnResize.asObservable().pipe(R.debounceTime(0)).subscribe(function(e){n._columnClientX=e,n._calculateWidths(),n._changeDetectorRef.markForCheck()}),this._horizontalScrollSubs=this._onHorizontalScroll.asObservable().subscribe(function(e){n._scrollHorizontalOffset=e,n._changeDetectorRef.markForCheck()}),this._verticalScrollSubs=this._onVerticalScroll.asObservable().subscribe(function(e){n._scrollVerticalOffset=e,n._calculateVirtualRows(),n._changeDetectorRef.markForCheck()}),this._valueChangesSubs=this.valueChanges.subscribe(function(e){n.refresh()})},yt.prototype.ngAfterContentInit=function(){for(var e=0;e<this._templates.toArray().length;e++)this._templateMap.set(this._templates.toArray()[e].tdDataTableTemplate,this._templates.toArray()[e].templateRef)},yt.prototype.ngAfterContentChecked=function(){var e=this;if(5<this._scrollVerticalOffset-this._scrollableDiv.nativeElement.scrollTop&&this._onVerticalScroll.next(0),this._elementRef.nativeElement){var t=this._elementRef.nativeElement.getBoundingClientRect().width;this._hostWidth!==t&&setTimeout(function(){e._hostWidth=t,e._onResize.next()},0)}if(this._scrollableDiv.nativeElement){var n=this._scrollableDiv.nativeElement.getBoundingClientRect().height;this._hostHeight!==n&&(this._hostHeight=n,this._calculateVirtualRows(),this._changeDetectorRef.markForCheck())}},yt.prototype.ngAfterViewInit=function(){var e=this;this._rowsChangedSubs=this._rows.changes.pipe(R.debounceTime(0)).subscribe(function(){e._onResize.next()}),this._calculateVirtualRows()},yt.prototype.ngOnDestroy=function(){this._resizeSubs&&this._resizeSubs.unsubscribe(),this._columnResizeSubs&&this._columnResizeSubs.unsubscribe(),this._horizontalScrollSubs&&this._horizontalScrollSubs.unsubscribe(),this._verticalScrollSubs&&this._verticalScrollSubs.unsubscribe(),this._rowsChangedSubs&&this._rowsChangedSubs.unsubscribe(),this._valueChangesSubs&&this._valueChangesSubs.unsubscribe()},yt.prototype.handleScroll=function(e){var t=e.target;if(t){var n=t.scrollLeft;this._scrollHorizontalOffset!==n&&this._onHorizontalScroll.next(n);var i=t.scrollTop;this._scrollVerticalOffset!==i&&this._onVerticalScroll.next(i)}},yt.prototype.getColumnWidth=function(e){return this._widths[e]?this._widths[e].value:undefined},yt.prototype.getCellValue=function(e,t){return e.nested===undefined||e.nested?this._getNestedValue(e.name,t):t[e.name]},yt.prototype.getTemplateRef=function(e){return this._templateMap.get(e)},yt.prototype.clearModel=function(){this.value.splice(0,this.value.length)},yt.prototype.refresh=function(){this._calculateVirtualRows(),this._calculateWidths(),this._calculateCheckboxState(),this._changeDetectorRef.markForCheck()},yt.prototype.selectAll=function(e){var i=this,o=[];e?(this._data.forEach(function(e){i.isRowSelected(e)||(i.value.push(e),o.push(e))}),this._allSelected=!0,this._indeterminate=!0):(this._data.forEach(function(t){if(i.isRowSelected(t)){o.push(t);var e=i.value.filter(function(e){return i.compareWith(t,e)})[0],n=i.value.indexOf(e);-1<n&&i.value.splice(n,1)}}),this._allSelected=!1,this._indeterminate=!1),this.onSelectAll.emit({rows:o,selected:e}),this.onChange(this.value)},yt.prototype.isRowSelected=function(t){var n=this;return!!this.value&&0<this.value.filter(function(e){return n.compareWith(t,e)}).length},yt.prototype.select=function(e,t,n){if(this.selectable){this.blockEvent(t);var i=t;if(this.multiple&&i&&i.shiftKey&&-1<this._lastSelectedIndex){var o=n,a=this._lastSelectedIndex;if(n>this._lastSelectedIndex&&(o=this._lastSelectedIndex,a=n),this._firstSelectedIndex>=n&&this._lastSelectedIndex>this._firstSelectedIndex||this._firstSelectedIndex<=n&&this._lastSelectedIndex<this._firstSelectedIndex)for(var r=o;r<=a;r++)this._firstSelectedIndex!==r&&this._doSelection(this._data[r],r);else if(this._firstSelectedIndex>n||this._firstSelectedIndex<n)for(this._firstSelectedIndex>n?a--:this._firstSelectedIndex<n&&o++,r=o;r<=a;r++){var s=this.isRowSelected(this._data[r]);this._firstCheckboxValue&&!s||!this._firstCheckboxValue&&s?this._doSelection(this._data[r],r):this._shiftPreviouslyPressed&&(n>=this._firstSelectedIndex&&n<=this._lastSelectedIndex||n<=this._firstSelectedIndex&&n>=this._lastSelectedIndex)&&this._doSelection(this._data[r],r)}this._shiftPreviouslyPressed=!0}else i&&!i.shiftKey&&(this._firstCheckboxValue=this._doSelection(e,n),this._shiftPreviouslyPressed=!1,this._firstSelectedIndex=n);this._lastSelectedIndex=n}},yt.prototype.disableTextSelection=function(){this._document&&(this._document.onselectstart=function(){return!1})},yt.prototype.enableTextSelection=function(){this._document&&(this._document.onselectstart=undefined)},yt.prototype.handleRowClick=function(e,t,n){if(this.clickable){var i=n.srcElement||n.currentTarget,o=n.target;null===i.getAttribute("stopRowClick")&&"mat-pseudo-checkbox"!==o.tagName.toLowerCase()&&this.onRowClick.emit({row:e,index:t})}},yt.prototype.handleSort=function(e){this._sortBy===e?this._sortOrder=this._sortOrder===ft.Ascending?ft.Descending:ft.Ascending:(this._sortBy=e,this._sortOrder=ft.Ascending),this.onSortChange.next({name:this._sortBy.name,order:this._sortOrder})},yt.prototype._rowKeyup=function(e,t,n){switch(e.keyCode){case w.ENTER:case w.SPACE:this.selectable&&this._doSelection(this._data[this.fromRow+n],this.fromRow+n);break;case w.UP_ARROW:0<n&&this._rows.toArray()[n-1].focus(),this.blockEvent(e),this.selectable&&this.multiple&&e.shiftKey&&0<=this.fromRow+n&&this._doSelection(this._data[this.fromRow+n],this.fromRow+n);break;case w.DOWN_ARROW:n<this._rows.toArray().length-1&&this._rows.toArray()[n+1].focus(),this.blockEvent(e),this.selectable&&this.multiple&&e.shiftKey&&this.fromRow+n<this._data.length&&this._doSelection(this._data[this.fromRow+n],this.fromRow+n)}},yt.prototype._handleStartColumnDrag=function(e,t){this._columnClientX=t.clientX,this._resizingColumn=e},yt.prototype._handleColumnDrag=function(e){if(this._resizingColumn!==undefined&&0<e.clientX){var t=e.clientX;if(0<t&&0<this._columnClientX&&t-this._columnClientX!=0){var n=this._widths[this._resizingColumn].value+(t-this._columnClientX);n<this._colElements.toArray()[this._resizingColumn].projectedWidth&&(n=this._colElements.toArray()[this._resizingColumn].projectedWidth),this.columns[this._resizingColumn].width=n,this._onColumnResize.next(t)}}},yt.prototype._handleEndColumnDrag=function(){this._columnClientX=undefined,this._resizingColumn=undefined},yt.prototype.blockEvent=function(e){e.preventDefault()},yt.prototype._getNestedValue=function(e,t){if(!(t instanceof Object&&e))return t;if(-1<e.indexOf(".")){var n=e.split(/\.(.+)/,2);return this._getNestedValue(n[1],t[n[0]])}return t[e]},yt.prototype._doSelection=function(t,e){var n=this,i=this.isRowSelected(t);if(i){t=this.value.filter(function(e){return n.compareWith(t,e)})[0];var o=this.value.indexOf(t);-1<o&&this.value.splice(o,1)}else this._multiple||this.clearModel(),this.value.push(t);return this._calculateCheckboxState(),this.onRowSelect.emit({row:t,index:e,selected:!i}),this.onChange(this.value),!i},yt.prototype._calculateCheckboxState=function(){var e,t,n=this;if(this._data){this._allSelected=void 0===this._data.find(function(e){return!n.isRowSelected(e)}),this._indeterminate=!1;try{for(var i=B(this._data),o=i.next();!o.done;o=i.next()){var a=o.value;if(this.isRowSelected(a)){this._indeterminate=!0;break}}}catch(r){e={error:r}}finally{try{o&&!o.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}}},yt.prototype._calculateWidths=function(){var n=this;this._colElements&&this._colElements.length&&(this._widths=[],this._colElements.forEach(function(e,t){n._adjustColumnWidth(t,n._calculateWidth())}),this._adjustColumnWidhts(),this._changeDetectorRef.markForCheck())},yt.prototype._adjustColumnWidhts=function(){var n=this,i=0,e=this._widths.filter(function(e,t){return!(n.columns[t].hidden||((e.limit||e.max||e.min)&&(i+=e.value),e.limit||e.max||e.min))}).length,t=0;if(i<this.hostWidth&&(t=this.hostWidth-i),e&&t){var o=Math.floor(t/e),a=0;this._widths.forEach(function(e){(n._widths[e.index].max&&n._widths[e.index].value>o||n._widths[e.index].min&&n._widths[e.index].value<o||!n._widths[e.index].limit)&&(n._adjustColumnWidth(e.index,o),a++)});var r=this._widths.filter(function(e){return!e.limit&&!e.max}).length;r!==a&&r!==e&&this._adjustColumnWidhts()}},yt.prototype._adjustColumnWidth=function(e,t){var n=!(this._widths[e]={value:t,index:e,limit:!1,min:!1,max:!1});if(this.columns[e])if("object"==typeof this.columns[e].width){var i=this.columns[e].width;n=i&&!!i.min,i&&i.min>=this._widths[e].value?(this._widths[e].value=i.min,this._widths[e].min=!0):i&&i.max<=this._widths[e].value&&(this._widths[e].value=i.max,this._widths[e].max=!0)}else"number"==typeof this.columns[e].width&&(this._widths[e].value=this.columns[e].width,n=this._widths[e].limit=!0);!n&&this._widths[e].value<this._colElements.toArray()[e].projectedWidth&&(this._widths[e].value=this._colElements.toArray()[e].projectedWidth,this._widths[e].min=!0,this._widths[e].limit=!1)},yt.prototype._calculateWidth=function(){var e=this.columns.filter(function(e){return!e.hidden});return Math.floor(this.hostWidth/e.length)},yt.prototype._calculateVirtualRows=function(){var n=this,i=0;if(this._data){var o=this._totalHeight=0;this._data.forEach(function(e,t){n._rowHeightCache[t]||(n._rowHeightCache[t]=n._rowHeightCache[0]||48),o+=n._rowHeightCache[t],0<n._scrollVerticalOffset-o&&i++}),this._totalHeight=o;var e=i-2;this._fromRow=0<e?e:0;for(var t=this._hostHeight,a=0;0<t;)t-=this._rowHeightCache[this.fromRow+a],a++;var r=a-1+4+this.fromRow;isFinite(r)&&r>this._data.length?r=this._data.length:isFinite(r)||(r=2),this._toRow=r}else this._totalHeight=0,this._fromRow=0,this._toRow=0;var s=0;if(2<i)for(a=0;a<this.fromRow;a++)s+=this._rowHeightCache[a];this._offsetTransform=this._domSanitizer.bypassSecurityTrustStyle("translateY("+(s-this.totalHeight)+"px)"),this._data&&(this._virtualData=this.data.slice(this.fromRow,this.toRow)),Promise.resolve().then(function(){n._changeDetectorRef.markForCheck()})},yt.decorators=[{type:P.Component,args:[{providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return yt}),multi:!0}],selector:"td-data-table",template:'<table td-data-table\n [style.left.px]="columnsLeftScroll"\n [class.mat-selectable]="selectable">\n <thead class="td-data-table-head"\n (dragover)="_handleColumnDrag($event)">\n <tr td-data-table-column-row>\n <th td-data-table-column class="mat-checkbox-column" *ngIf="selectable">\n <mat-checkbox\n #checkBoxAll\n *ngIf="multiple"\n [disabled]="!hasData"\n [indeterminate]="indeterminate && !allSelected && hasData"\n [checked]="allSelected && hasData"\n (click)="blockEvent($event); selectAll(!checkBoxAll.checked)"\n (keyup.enter)="selectAll(!checkBoxAll.checked)"\n (keyup.space)="selectAll(!checkBoxAll.checked)"\n (keydown.space)="blockEvent($event)">\n </mat-checkbox>\n </th>\n <th td-data-table-column\n #columnElement\n *ngFor="let column of columns; let i = index; let last = last"\n [style.min-width.px]="getColumnWidth(i)"\n [style.max-width.px]="getColumnWidth(i)"\n [name]="column.name"\n [numeric]="column.numeric"\n [active]="(column.sortable || sortable) && column === sortByColumn"\n [sortable]="column.sortable || (sortable && column.sortable !== false)"\n [sortOrder]="sortOrderEnum"\n [hidden]="column.hidden"\n (sortChange)="handleSort(column)">\n <span [matTooltip]="column.tooltip">{{column.label}}</span>\n <span td-column-resizer\n *ngIf="resizableColumns"\n draggable="true"\n class="td-data-table-column-resizer"\n [class.td-resizing]="i === resizingColumn"\n (mousedown)="_handleStartColumnDrag(i, $event)"\n (dragstart)="$event?.dataTransfer?.setData(\'text\', \'\')"\n (drag)="_handleColumnDrag($event)"\n (dragend)="_handleEndColumnDrag()"\n (mouseup)="_handleEndColumnDrag()">\n <span class="td-data-table-column-separator"></span>\n </span>\n </th>\n </tr>\n </thead>\n</table>\n<div #scrollableDiv class="td-data-table-scrollable"\n (scroll)="handleScroll($event)">\n <div [style.height.px]="totalHeight"></div>\n <table td-data-table\n [style.transform]="offsetTransform"\n [style.position]="\'absolute\'"\n [class.mat-selectable]="selectable"\n [class.mat-clickable]="clickable">\n <tbody class="td-data-table-body">\n <tr td-data-table-row\n #dtRow\n [tabIndex]="selectable ? 0 : -1"\n [selected]="(clickable || selectable) && isRowSelected(row)"\n *ngFor="let row of virtualData; let rowIndex = index"\n (click)="handleRowClick(row, fromRow + rowIndex, $event)"\n (keyup)="selectable && _rowKeyup($event, row, rowIndex)"\n (keydown.space)="blockEvent($event)"\n (keydown.shift.space)="blockEvent($event)"\n (keydown.shift)="disableTextSelection()"\n (keyup.shift)="enableTextSelection()">\n <td td-data-table-cell class="mat-checkbox-cell" *ngIf="selectable">\n <mat-pseudo-checkbox\n [state]="dtRow.selected ? \'checked\' : \'unchecked\'"\n (mousedown)="disableTextSelection()"\n (mouseup)="enableTextSelection()"\n stopRowClick\n (click)="select(row, $event, fromRow + rowIndex)">\n </mat-pseudo-checkbox>\n </td>\n <td td-data-table-cell\n [numeric]="column.numeric"\n [hidden]="column.hidden"\n *ngFor="let column of columns; let i = index"\n [style.min-width.px]="getColumnWidth(i)"\n [style.max-width.px]="getColumnWidth(i)">\n <span *ngIf="!getTemplateRef(column.name)">{{column.format ? column.format(getCellValue(column, row)) : getCellValue(column, row)}}</span>\n <ng-template\n *ngIf="getTemplateRef(column.name)"\n [ngTemplateOutlet]="getTemplateRef(column.name)"\n [ngTemplateOutletContext]="{ value: getCellValue(column, row), row: row, column: column.name, index: rowIndex }">\n </ng-template>\n </td>\n </tr>\n </tbody>\n </table>\n</div>\n<ng-content></ng-content>\n',inputs:["value"],changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;overflow:hidden}:host .td-data-table-scrollable{position:relative;overflow:auto;height:calc(100% - 56px)}.td-data-table-column-resizer{right:0;width:6px;cursor:col-resize}.td-data-table-column-resizer,.td-data-table-column-resizer .td-data-table-column-separator{position:absolute;height:100%;top:0}.td-data-table-column-resizer .td-data-table-column-separator{left:2px}.td-data-table-column-resizer.td-resizing{cursor:-webkit-grabbing}table.td-data-table{width:auto!important}table.td-data-table.mat-selectable tbody>tr.td-data-table-row{-webkit-transition:background-color .2s;transition:background-color .2s}table.td-data-table.mat-selectable .td-data-table-column:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:first-child>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:first-child>.td-data-table-column-content-wrapper{width:18px;min-width:18px;padding:0 24px}table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-left:0}[dir=rtl] table.td-data-table.mat-selectable .td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable td.td-data-table-cell:nth-child(2)>.td-data-table-column-content-wrapper,[dir=rtl] table.td-data-table.mat-selectable th.td-data-table-column:nth-child(2)>.td-data-table-column-content-wrapper{padding-right:0;padding-left:28px}table.td-data-table td.mat-checkbox-cell,table.td-data-table th.mat-checkbox-column{min-width:42px;width:42px;font-size:0!important}table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox,table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox{width:18px;height:18px}::ng-deep table.td-data-table td.mat-checkbox-cell mat-pseudo-checkbox.mat-pseudo-checkbox-checked::after,::ng-deep table.td-data-table th.mat-checkbox-column mat-pseudo-checkbox.mat-pseudo-checkbox-checked::after{width:11px!important;height:4px!important}table.td-data-table td.mat-checkbox-cell mat-checkbox ::ng-deep .mat-checkbox-inner-container,table.td-data-table th.mat-checkbox-column mat-checkbox ::ng-deep .mat-checkbox-inner-container{width:18px;height:18px;margin:0}"]}]}],yt.ctorParameters=function(){return[{type:undefined,decorators:[{type:P.Optional},{type:P.Inject,args:[O.DOCUMENT]}]},{type:P.ElementRef},{type:d.DomSanitizer},{type:P.ChangeDetectorRef}]},yt.propDecorators={_templates:[{type:P.ContentChildren,args:[ut]}],_scrollableDiv:[{type:P.ViewChild,args:["scrollableDiv"]}],_colElements:[{type:P.ViewChildren,args:["columnElement"]}],_rows:[{type:P.ViewChildren,args:[ct]}],data:[{type:P.Input,args:["data"]}],columns:[{type:P.Input,args:["columns"]}],resizableColumns:[{type:P.Input,args:["resizableColumns"]}],selectable:[{type:P.Input,args:["selectable"]}],clickable:[{type:P.Input,args:["clickable"]}],multiple:[{type:P.Input,args:["multiple"]}],sortable:[{type:P.Input,args:["sortable"]}],sortBy:[{type:P.Input,args:["sortBy"]}],sortOrder:[{type:P.Input,args:["sortOrder"]}],onSortChange:[{type:P.Output,args:["sortChange"]}],onRowSelect:[{type:P.Output,args:["rowSelect"]}],onRowClick:[{type:P.Output,args:["rowClick"]}],onSelectAll:[{type:P.Output,args:["selectAll"]}],compareWith:[{type:P.Input,args:["compareWith"]}]},yt);function yt(e,t,n,i){var o=gt.call(this,i)||this;return o._document=e,o._elementRef=t,o._domSanitizer=n,o._hostWidth=0,o._resizableColumns=!1,o._columnClientX=0,o._onColumnResize=new C.Subject,o._widths=[],o._onResize=new C.Subject,o._scrollHorizontalOffset=0,o._onHorizontalScroll=new C.Subject,o._onVerticalScroll=new C.Subject,o._rowHeightCache=[],o._totalHeight=0,o._hostHeight=0,o._scrollVerticalOffset=0,o._fromRow=0,o._toRow=0,o._selectable=!1,o._clickable=!1,o._multiple=!0,o._allSelected=!1,o._indeterminate=!1,o._sortable=!1,o._sortOrder=ft.Ascending,o._shiftPreviouslyPressed=!1,o._lastSelectedIndex=-1,o._firstSelectedIndex=-1,o._firstCheckboxValue=!1,o._templateMap=new Map,o.onSortChange=new P.EventEmitter,o.onRowSelect=new P.EventEmitter,o.onRowClick=new P.EventEmitter,o.onSelectAll=new P.EventEmitter,o.compareWith=function(e,t){return e===t},o}var vt=(Object.defineProperty(xt.prototype,"projectedWidth",{get:function(){return this._columnContent&&this._columnContent.nativeElement?this._columnContent.nativeElement.getBoundingClientRect().width:100},enumerable:!0,configurable:!0}),Object.defineProperty(xt.prototype,"sortOrder",{set:function(e){var t=e?e.toUpperCase():"ASC";if("DESC"!==t&&"ASC"!==t)throw new Error("[sortOrder] must be empty, ASC or DESC");this._sortOrder="ASC"===t?ft.Ascending:ft.Descending},enumerable:!0,configurable:!0}),Object.defineProperty(xt.prototype,"bindClickable",{get:function(){return this.sortable},enumerable:!0,configurable:!0}),Object.defineProperty(xt.prototype,"bingSortable",{get:function(){return this.sortable},enumerable:!0,configurable:!0}),Object.defineProperty(xt.prototype,"bindActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),Object.defineProperty(xt.prototype,"bindNumeric",{get:function(){return this.numeric},enumerable:!0,configurable:!0}),xt.prototype.handleClick=function(){this.sortable&&this.onSortChange.emit({name:this.name,order:this._sortOrder})},xt.prototype.isAscending=function(){return this._sortOrder===ft.Ascending},xt.prototype.isDescending=function(){return this._sortOrder===ft.Descending},xt.decorators=[{type:P.Component,args:[{selector:"th[td-data-table-column]",template:'<span #columnContent class="td-data-table-heading">\n <mat-icon \n class="td-data-table-sort-icon" \n *ngIf="sortable && numeric"\n [class.mat-asc]="isAscending()"\n [class.mat-desc]="isDescending()">\n arrow_upward\n </mat-icon>\n <span>\n <ng-content></ng-content>\n </span>\n <mat-icon \n class="td-data-table-sort-icon" \n *ngIf="sortable && !numeric"\n [class.mat-asc]="isAscending()"\n [class.mat-desc]="isDescending()">\n arrow_upward\n </mat-icon>\n</span>\n<ng-content select="[td-column-resizer]"></ng-content>\n',styles:[":host{white-space:nowrap;position:relative;padding:0;vertical-align:middle;text-align:left}:host>.td-data-table-heading{padding:0 28px}:host:first-child>.td-data-table-heading{padding-left:24px;padding-right:initial}html[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-heading{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-heading{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-heading bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-heading bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host mat-icon{height:16px;width:16px;font-size:16px!important;line-height:16px!important}:host mat-icon.td-data-table-sort-icon{opacity:0;-webkit-transition:-webkit-transform .25s;transition:transform .25s;transition:transform .25s,-webkit-transform .25s;position:absolute;top:0}:host mat-icon.td-data-table-sort-icon.mat-asc{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0)}:host mat-icon.td-data-table-sort-icon.mat-desc{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}:host.mat-active.mat-sortable mat-icon.td-data-table-sort-icon,:host:hover.mat-sortable mat-icon.td-data-table-sort-icon{opacity:1}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:0}:host .td-data-table-heading{display:inline-block;position:relative}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:-22px;margin-right:initial}html[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}[dir=rtl] :host.mat-numeric mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:-22px;unicode-bidi:embed}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:6px;margin-right:initial}html[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}body[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}[dir=rtl] :host:not(.mat-numeric) mat-icon.td-data-table-sort-icon{margin-left:initial;unicode-bidi:embed;margin-right:6px;unicode-bidi:embed}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:not(.mat-numeric) mat-icon.td-data-table-sort-icon bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]}]}],xt.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2}]},xt.propDecorators={_columnContent:[{type:P.ViewChild,args:["columnContent",{read:P.ElementRef}]}],name:[{type:P.Input,args:["name"]}],sortable:[{type:P.Input,args:["sortable"]}],active:[{type:P.Input,args:["active"]}],numeric:[{type:P.Input,args:["numeric"]}],sortOrder:[{type:P.Input,args:["sortOrder"]}],onSortChange:[{type:P.Output,args:["sortChange"]}],bindClickable:[{type:P.HostBinding,args:["class.mat-clickable"]}],bingSortable:[{type:P.HostBinding,args:["class.mat-sortable"]}],bindActive:[{type:P.HostBinding,args:["class.mat-active"]}],bindNumeric:[{type:P.HostBinding,args:["class.mat-numeric"]}],handleClick:[{type:P.HostListener,args:["click"]}]},xt);function xt(e,t){this._elementRef=e,this._renderer=t,this._sortOrder=ft.Ascending,this.name="",this.sortable=!1,this.active=!1,this.numeric=!1,this.onSortChange=new P.EventEmitter,this._renderer.addClass(this._elementRef.nativeElement,"td-data-table-column")}var wt=(Object.defineProperty(kt.prototype,"align",{get:function(){return this._align},set:function(e){this._align=e},enumerable:!0,configurable:!0}),Object.defineProperty(kt.prototype,"bindNumeric",{get:function(){return this.numeric},enumerable:!0,configurable:!0}),kt.decorators=[{type:P.Component,args:[{selector:"td[td-data-table-cell]",template:'<div class="td-data-table-cell-content-wrapper"\n [class.td-data-table-cell-numeric]="numeric"\n [class.td-data-table-cell-align-center]="align === \'center\'"\n [class.td-data-table-cell-align-end]="align === \'end\'"\n [class.td-data-table-cell-align-start]="align === \'start\'"\n >\n <ng-content></ng-content>\n</div>',styles:[":host{vertical-align:middle;text-align:left;padding:0}html[dir=rtl] :host{text-align:right;unicode-bidi:embed}body[dir=rtl] :host{text-align:right;unicode-bidi:embed}[dir=rtl] :host{text-align:right;unicode-bidi:embed}:host bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>.td-data-table-cell-content-wrapper{padding:0 28px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-numeric{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}:host>.td-data-table-cell-content-wrapper.td-data-table-cell-align-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}:host:first-child>.td-data-table-cell-content-wrapper{padding-left:24px;padding-right:initial}html[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}body[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}[dir=rtl] :host:first-child>.td-data-table-cell-content-wrapper{padding-left:initial;unicode-bidi:embed;padding-right:24px;unicode-bidi:embed}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:first-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper{padding-left:28px;padding-right:24px}html[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}body[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}[dir=rtl] :host:last-child>.td-data-table-cell-content-wrapper{padding-left:24px;unicode-bidi:embed;padding-right:28px;unicode-bidi:embed}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host:last-child>.td-data-table-cell-content-wrapper bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}:host>*{vertical-align:middle}:host.mat-clickable{cursor:pointer}:host.mat-clickable:focus{outline:0}:host.mat-numeric{text-align:right}html[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}body[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}[dir=rtl] :host.mat-numeric{text-align:left;unicode-bidi:embed}:host.mat-numeric bdo[dir=rtl]{direction:rtl;unicode-bidi:bidi-override}:host.mat-numeric bdo[dir=ltr]{direction:ltr;unicode-bidi:bidi-override}"]}]}],kt.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2}]},kt.propDecorators={numeric:[{type:P.Input,args:["numeric"]}],align:[{type:P.Input}],bindNumeric:[{type:P.HostBinding,args:["class.mat-numeric"]}]},kt);function kt(e,t){this._elementRef=e,this._renderer=t,this.numeric=!1,this._renderer.addClass(this._elementRef.nativeElement,"td-data-table-cell")}var Ct=(Rt.decorators=[{type:P.Component,args:[{selector:"table[td-data-table]",template:"<ng-content></ng-content>",styles:[":host{width:100%;position:relative;border-spacing:0;overflow:hidden;border-collapse:collapse}"]}]}],Rt.ctorParameters=function(){return[{type:P.ElementRef},{type:P.Renderer2}]},Rt);function Rt(e,t){this._elementRef=e,this._renderer=t,this._renderer.addClass(this._elementRef.nativeElement,"td-data-table")}var Ot=(Dt.prototype.filterData=function(e,t,i,o){void 0===i&&(i=!1);var a=t?i?t.toLowerCase():t:"";return a&&(e=e.filter(function(n){return!(void 0===Object.keys(n).find(function(e){if(!o||-1===o.indexOf(e)){var t=""+n[e];return-1<(i?t.toLowerCase():t).indexOf(a)}}))})),e},Dt.prototype.sortData=function(e,a,r){return void 0===r&&(r=ft.Ascending),a&&(e=Array.from(e)).sort(function(e,t){var n=e[a],i=t[a],o=0;return Number.isNaN(Number.parseFloat(n))||Number.isNaN(Number.parseFloat(i))?n<i?o=-1:i<n&&(o=1):o=Number.parseFloat(n)-Number.parseFloat(i),o*(r===ft.Descending?-1:1)}),e},Dt.prototype.pageData=function(e,t,n){return 1<=t&&(e=e.slice(t-1,n)),e},Dt.decorators=[{type:P.Injectable}],Dt);function Dt(){}function It(e){return e||new Ot}var St={provide:Ot,deps:[[new P.Optional,new P.SkipSelf,Ot]],useFactory:It},Pt=[_t,ut,vt,wt,ct,st,Ct],Tt=(Et.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,i.MatCheckboxModule,a.MatTooltipModule,y.MatIconModule,v.MatPseudoCheckboxModule],declarations:[Pt],exports:[Pt],providers:[St]}]}],Et);function Et(){}var Mt=(Lt.decorators=[{type:P.Directive,args:[{selector:"td-dialog-title"}]}],Lt);function Lt(){}var jt=(At.decorators=[{type:P.Directive,args:[{selector:"td-dialog-content"}]}],At);function At(){}var zt=(Ft.decorators=[{type:P.Directive,args:[{selector:"td-dialog-actions"}]}],Ft);function Ft(){}var Bt=(Vt.prototype.ngAfterContentInit=function(){if(1<this.dialogTitle.length)throw new Error("Duplicate td-dialog-title component at in td-dialog.");if(1<this.dialogContent.length)throw new Error("Duplicate td-dialog-content component at in td-dialog.");if(1<this.dialogActions.length)throw new Error("Duplicate td-dialog-actions component at in td-dialog.")},Vt.decorators=[{type:P.Component,args:[{selector:"td-dialog",template:'<div class="td-dialog-wrapper">\n <h3 class="td-dialog-title" *ngIf="dialogTitle.length > 0">\n <ng-content select="td-dialog-title"></ng-content>\n </h3>\n <div class="td-dialog-content" *ngIf="dialogContent.length > 0">\n <ng-content select="td-dialog-content"></ng-content>\n </div>\n <div class="td-dialog-actions" *ngIf="dialogActions.length > 0">\n <span class="td-dialog-spacer"></span>\n <ng-content select="td-dialog-actions"></ng-content>\n </div>\n</div>',styles:[".td-dialog-title{margin-top:0;margin-bottom:20px}.td-dialog-content{margin-bottom:16px}.td-dialog-actions{position:relative;top:16px;left:16px}::ng-deep [dir=rtl] .td-dialog-actions{right:16px;left:auto}:host{display:block}:host .td-dialog-actions{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}:host .td-dialog-actions .td-dialog-spacer{-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-dialog-actions ::ng-deep button{text-transform:uppercase;margin-left:8px;padding-left:8px;padding-right:8px;min-width:64px}[dir=rtl] :host .td-dialog-actions ::ng-deep button{margin-right:8px;margin-left:inherit}"]}]}],Vt.propDecorators={dialogTitle:[{type:P.ContentChildren,args:[Mt]}],dialogContent:[{type:P.ContentChildren,args:[jt]}],dialogActions:[{type:P.ContentChildren,args:[zt]}]},Vt);function Vt(){}var Nt=(qt.prototype.close=function(){this._dialogRef.close()},qt.decorators=[{type:P.Component,args:[{selector:"td-alert-dialog",template:'<td-dialog>\n <td-dialog-title *ngIf="title">\n {{title}}\n </td-dialog-title>\n <td-dialog-content>\n <span class="td-dialog-message">{{message}}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button color="accent" (click)="close()">{{closeButton}}</button>\n </td-dialog-actions>\n</td-dialog>',styles:[".td-dialog-message{word-break:break-word}"]}]}],qt.ctorParameters=function(){return[{type:o.MatDialogRef}]},qt);function qt(e){this._dialogRef=e,this.closeButton="CLOSE"}var Ht=(Wt.prototype.cancel=function(){this._dialogRef.close(!1)},Wt.prototype.accept=function(){this._dialogRef.close(!0)},Wt.decorators=[{type:P.Component,args:[{selector:"td-confirm-dialog",template:'<td-dialog>\n <td-dialog-title *ngIf="title">\n {{title}}\n </td-dialog-title>\n <td-dialog-content>\n <span class="td-dialog-message">{{message}}</span>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button\n #closeBtn \n (keydown.arrowright)="acceptBtn.focus()"\n (click)="cancel()">{{cancelButton}}</button>\n <button mat-button\n color="accent"\n #acceptBtn\n (keydown.arrowleft)="closeBtn.focus()"\n (click)="accept()">{{acceptButton}}</button>\n </td-dialog-actions>\n</td-dialog>',styles:[".td-dialog-message{word-break:break-word}"]}]}],Wt.ctorParameters=function(){return[{type:o.MatDialogRef}]},Wt);function Wt(e){this._dialogRef=e,this.cancelButton="CANCEL",this.acceptButton="ACCEPT"}var Ut=(Xt.prototype.ngAfterViewInit=function(){var e=this;Promise.resolve().then(function(){e._input.nativeElement.focus()})},Xt.prototype.handleInputFocus=function(){this._input.nativeElement.select()},Xt.prototype.cancel=function(){this._dialogRef.close(undefined)},Xt.prototype.accept=function(){this._dialogRef.close(this.value)},Xt.decorators=[{type:P.Component,args:[{selector:"td-prompt-dialog",template:'<td-dialog>\n <td-dialog-title *ngIf="title">\n {{title}}\n </td-dialog-title>\n <td-dialog-content>\n <span class="td-dialog-message">{{message}}</span>\n <form #form="ngForm" novalidate>\n <div class="td-dialog-input-wrapper">\n <mat-form-field class="td-dialog-input">\n <input matInput\n #input\n (focus)="handleInputFocus()"\n (keydown.enter)="$event.preventDefault(); form.valid && accept()"\n [(ngModel)]="value"\n name="value"\n required/>\n </mat-form-field>\n </div>\n </form>\n </td-dialog-content>\n <td-dialog-actions>\n <button mat-button\n #closeBtn \n (keydown.arrowright)="acceptBtn.focus()"\n (click)="cancel()">{{cancelButton}}</button>\n <button mat-button\n color="accent"\n #acceptBtn\n (keydown.arrowleft)="closeBtn.focus()"\n [disabled]="!form.valid"\n (click)="accept()">{{acceptButton}}</button>\n </td-dialog-actions>\n</td-dialog>',styles:[".td-dialog-input-wrapper{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}.td-dialog-input-wrapper .td-dialog-input{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}.td-dialog-message{word-break:break-word}"]}]}],Xt.ctorParameters=function(){return[{type:o.MatDialogRef}]},Xt.propDecorators={_input:[{type:P.ViewChild,args:["input"]}]},Xt);function Xt(e){this._dialogRef=e,this.cancelButton="CANCEL",this.acceptButton="ACCEPT"}var $t=(Yt.prototype.open=function(e,t){return this._dialogService.open(e,t)},Yt.prototype.closeAll=function(){this._dialogService.closeAll()},Yt.prototype.openAlert=function(e){var t=this._createConfig(e),n=this._dialogService.open(Nt,t),i=n.componentInstance;return i.title=e.title,i.message=e.message,e.closeButton&&(i.closeButton=e.closeButton),n},Yt.prototype.openConfirm=function(e){var t=this._createConfig(e),n=this._dialogService.open(Ht,t),i=n.componentInstance;return i.title=e.title,i.message=e.message,e.acceptButton&&(i.acceptButton=e.acceptButton),e.cancelButton&&(i.cancelButton=e.cancelButton),n},Yt.prototype.openPrompt=function(e){var t=this._createConfig(e),n=this._dialogService.open(Ut,t),i=n.componentInstance;return i.title=e.title,i.message=e.message,i.value=e.value,e.acceptButton&&(i.acceptButton=e.acceptButton),e.cancelButton&&(i.cancelButton=e.cancelButton),n},Yt.prototype._createConfig=function(e){var t=new o.MatDialogConfig;return t.width="400px",Object.assign(t,e),t},Yt.decorators=[{type:P.Injectable}],Yt.ctorParameters=function(){return[{type:o.MatDialog}]},Yt);function Yt(e){this._dialogService=e}var Gt=[Nt,Ht,Ut,Bt,Mt,zt,jt],Kt=[Nt,Ht,Ut],Zt=(Qt.decorators=[{type:P.NgModule,args:[{imports:[I.FormsModule,O.CommonModule,o.MatDialogModule,b.MatInputModule,f.MatButtonModule],declarations:[Gt],exports:[Gt],providers:[$t],entryComponents:[Kt]}]}],Qt);function Qt(){}var Jt,en=(F(tn,Jt=T.TemplatePortalDirective),tn.decorators=[{type:P.Directive,args:[{selector:"[td-expansion-panel-header]ng-template"}]}],tn.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},tn);function tn(e,t){return Jt.call(this,e,t)||this}var nn,on=(F(an,nn=T.TemplatePortalDirective),an.decorators=[{type:P.Directive,args:[{selector:"[td-expansion-panel-label]ng-template"}]}],an.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},an);function an(e,t){return nn.call(this,e,t)||this}var rn,sn=(F(ln,rn=T.TemplatePortalDirective),ln.decorators=[{type:P.Directive,args:[{selector:"[td-expansion-panel-sublabel]ng-template"}]}],ln.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},ln);function ln(e,t){return rn.call(this,e,t)||this}var cn=(dn.decorators=[{type:P.Component,args:[{selector:"td-expansion-summary",template:"<ng-content></ng-content>"}]}],dn);function dn(){}function pn(){}var un,hn=E.mixinDisableRipple(E.mixinDisabled(pn)),mn=(F(gn,un=hn),Object.defineProperty(gn.prototype,"expand",{get:function(){return this._expand},set:function(e){this._setExpand(S.coerceBooleanProperty(e))},enumerable:!0,configurable:!0}),gn.prototype.clickEvent=function(){this._setExpand(!this._expand)},gn.prototype.toggle=function(){return this._setExpand(!this._expand)},gn.prototype.open=function(){return this._setExpand(!0)},gn.prototype.close=function(){return this._setExpand(!1)},gn.prototype.onDisabledChange=function(e){e&&this._expand&&(this._expand=!1,this._onCollapsed())},gn.prototype._setExpand=function(e){return!this.disabled&&this._expand!==e&&((this._expand=e)?(this._renderer.addClass(this._elementRef.nativeElement,"td-expanded"),this._onExpanded()):(this._renderer.removeClass(this._elementRef.nativeElement,"td-expanded"),this._onCollapsed()),!0)},gn.prototype._onExpanded=function(){this.expanded.emit(undefined)},gn.prototype._onCollapsed=function(){this.collapsed.emit(undefined)},gn.decorators=[{type:P.Component,args:[{selector:"td-expansion-panel",template:'<div class="td-expansion-panel-header"\n [class.mat-disabled]="disabled"\n matRipple\n [matRippleDisabled]="disabled || disableRipple"\n [tabIndex]="disabled? -1 : 0"\n (keydown.enter)="clickEvent()"\n (click)="clickEvent()">\n <ng-template [cdkPortalOutlet]="expansionPanelHeader"></ng-template>\n <div class="td-expansion-panel-header-content"\n [class.mat-disabled]="disabled"\n *ngIf="!expansionPanelHeader">\n <div *ngIf="label || expansionPanelLabel" class="td-expansion-label">\n <ng-template [cdkPortalOutlet]="expansionPanelLabel"></ng-template>\n <ng-template [ngIf]="!expansionPanelLabel">{{label}}</ng-template>\n </div>\n <div *ngIf="sublabel || expansionPanelSublabel" class="td-expansion-sublabel">\n <ng-template [cdkPortalOutlet]="expansionPanelSublabel"></ng-template>\n <ng-template [ngIf]="!expansionPanelSublabel">{{sublabel}}</ng-template>\n </div>\n <mat-icon class="td-expand-icon" *ngIf="!disabled" [@tdRotate]="expand">keyboard_arrow_down</mat-icon>\n </div>\n</div>\n<div class="td-expansion-content"\n [@tdCollapse]="!expand">\n <ng-content></ng-content>\n</div>\n<div class="td-expansion-summary"\n [@tdCollapse]="expand">\n <ng-content select="td-expansion-summary"></ng-content>\n</div>\n',inputs:["disabled","disableRipple"],animations:[E.tdCollapseAnimation,E.tdRotateAnimation],styles:[":host{display:block}:host .td-expansion-panel-header{position:relative;outline:0}:host .td-expansion-panel-header:focus:not(.mat-disabled),:host .td-expansion-panel-header:hover:not(.mat-disabled){cursor:pointer}:host .td-expansion-panel-header .td-expansion-panel-header-content{height:48px;padding:0 24px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%}:host .td-expansion-panel-header .td-expansion-panel-header-content .td-expansion-label,:host .td-expansion-panel-header .td-expansion-panel-header-content .td-expansion-sublabel{-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-expansion-content.ng-animating,:host .td-expansion-summary.ng-animating{overflow:hidden}.td-expansion-label,.td-expansion-sublabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:16px}::ng-deep [dir=rtl] .td-expansion-label,::ng-deep [dir=rtl] .td-expansion-sublabel{margin-left:16px;margin-right:inherit}"]}]}],gn.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},gn.propDecorators={expansionPanelHeader:[{type:P.ContentChild,args:[en]}],expansionPanelLabel:[{type:P.ContentChild,args:[on]}],expansionPanelSublabel:[{type:P.ContentChild,args:[sn]}],label:[{type:P.Input}],sublabel:[{type:P.Input}],expand:[{type:P.Input,args:["expand"]}],expanded:[{type:P.Output}],collapsed:[{type:P.Output}]},gn);function gn(e,t){var n=un.call(this)||this;return n._renderer=e,n._elementRef=t,n._expand=!1,n.expanded=new P.EventEmitter,n.collapsed=new P.EventEmitter,n._renderer.addClass(n._elementRef.nativeElement,"td-expansion-panel"),n}var fn=(Object.defineProperty(bn.prototype,"multi",{set:function(e){this._multi=S.coerceBooleanProperty(e),!1===this._multi&&0<this._lastOpenedPanels.length&&this._closeAllExcept(this._lastOpenedPanels[this._lastOpenedPanels.length-1])},enumerable:!0,configurable:!0}),bn.prototype.ngOnDestroy=function(){this._destroyed.next(!0),this._destroyed.unsubscribe(),this._stopWatchingPanels.next(!0),this._stopWatchingPanels.unsubscribe()},bn.prototype.ngAfterContentInit=function(){var t=this;if(!this._multi){var e=this.expansionPanels.filter(function(e){return e.expand}),n=e.length;1<n&&this._closeAllExcept(e[n-1])}this._attachListeners(this.expansionPanels),this.expansionPanels.changes.pipe(R.takeUntil(this._destroyed)).subscribe(function(e){t._stopWatchingPanels.next(!0),t._stopWatchingPanels.unsubscribe(),t._stopWatchingPanels=new C.Subject,t._attachListeners(e)})},bn.prototype.openAll=function(){this._multi&&this.expansionPanels.forEach(function(e){e.open()})},bn.prototype.closeAll=function(){this.expansionPanels.forEach(function(e){e.close()})},bn.prototype._attachListeners=function(e){var n=this;this._lastOpenedPanels=[],e.forEach(function(t){t.expanded.pipe(R.takeUntil(n._stopWatchingPanels)).subscribe(function(){var e=n._lastOpenedPanels.indexOf(t);-1!==e&&n._lastOpenedPanels.splice(e,1),n._lastOpenedPanels.push(t),n._multi||n._closeAllExcept(t)}),t.collapsed.pipe(R.takeUntil(n._stopWatchingPanels)).subscribe(function(){var e=n._lastOpenedPanels.indexOf(t);-1!==e&&n._lastOpenedPanels.splice(e,1)})})},bn.prototype._closeAllExcept=function(t){this.expansionPanels.forEach(function(e){e!==t&&e.close()})},bn.decorators=[{type:P.Component,args:[{selector:"td-expansion-panel-group",template:"<ng-content></ng-content>",styles:[""]}]}],bn.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},bn.propDecorators={multi:[{type:P.Input,args:["multi"]}],expansionPanels:[{type:P.ContentChildren,args:[mn]}]},bn);function bn(e,t){this._renderer=e,this._elementRef=t,this._multi=!1,this._lastOpenedPanels=[],this._destroyed=new C.Subject,this._stopWatchingPanels=new C.Subject,this._renderer.addClass(this._elementRef.nativeElement,"td-expansion-panel-group")}var _n=[fn,mn,en,on,sn,cn],yn=(vn.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,v.MatRippleModule,y.MatIconModule,T.PortalModule],declarations:[_n],exports:[_n]}]}],vn);function vn(){}var xn=(Object.defineProperty(wn.prototype,"multiple",{set:function(e){this._multiple=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(wn.prototype,"multipleBinding",{get:function(){return this._multiple?"":undefined},enumerable:!0,configurable:!0}),wn.prototype.onChange=function(e){if(e.target instanceof HTMLInputElement){var t=e.target.files;if(t.length){var n=this._multiple&&1<t.length?t:t[0];this.model?this.model.update.emit(n):this.onFileSelect.emit(n)}}},wn.decorators=[{type:P.Directive,args:[{selector:"[tdFileSelect]"}]}],wn.ctorParameters=function(){return[{type:I.NgModel,decorators:[{type:P.Optional},{type:P.Host}]}]},wn.propDecorators={multiple:[{type:P.Input,args:["multiple"]}],onFileSelect:[{type:P.Output,args:["fileSelect"]}],multipleBinding:[{type:P.HostBinding,args:["attr.multiple"]}],onChange:[{type:P.HostListener,args:["change",["$event"]]}]},wn);function wn(e){this.model=e,this._multiple=!1,this.onFileSelect=new P.EventEmitter}function kn(){}var Cn,Rn=E.mixinDisabled(kn),On=(F(Dn,Cn=Rn),Object.defineProperty(Dn.prototype,"multiple",{set:function(e){this._multiple=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Dn.prototype,"multipleBinding",{get:function(){return this._multiple?"":undefined},enumerable:!0,configurable:!0}),Object.defineProperty(Dn.prototype,"disabledBinding",{get:function(){return this.disabled?"":undefined},enumerable:!0,configurable:!0}),Dn.prototype.onDrop=function(e){if(!this.disabled){var t=e.dataTransfer.files;if(t.length){var n=this._multiple&&1<t.length?t:t[0];this.onFileDrop.emit(n)}}this._renderer.removeClass(this._element.nativeElement,"drop-zone"),this._stopEvent(e)},Dn.prototype.onDragOver=function(e){var t=e.dataTransfer;t.dropEffect=this._typeCheck(t.types),this.disabled||!this._multiple&&(t.items&&1<t.items.length||1<t.mozItemCount)?t.dropEffect="none":t.dropEffect="copy",this._stopEvent(e)},Dn.prototype.onDragEnter=function(e){this.disabled||this._renderer.addClass(this._element.nativeElement,"drop-zone"),this._stopEvent(e)},Dn.prototype.onDragLeave=function(e){this._renderer.removeClass(this._element.nativeElement,"drop-zone"),this._stopEvent(e)},Dn.prototype._typeCheck=function(e){var t="none";return e&&(e.contains&&e.contains("Files")||e.indexOf&&-1!==e.indexOf("Files"))&&(t="copy"),t},Dn.prototype._stopEvent=function(e){e.preventDefault(),e.stopPropagation()},Dn.decorators=[{type:P.Directive,args:[{selector:"[tdFileDrop]",inputs:["disabled"]}]}],Dn.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},Dn.propDecorators={multiple:[{type:P.Input,args:["multiple"]}],onFileDrop:[{type:P.Output,args:["fileDrop"]}],multipleBinding:[{type:P.HostBinding,args:["attr.multiple"]}],disabledBinding:[{type:P.HostBinding,args:["attr.disabled"]}],onDrop:[{type:P.HostListener,args:["drop",["$event"]]}],onDragOver:[{type:P.HostListener,args:["dragover",["$event"]]}],onDragEnter:[{type:P.HostListener,args:["dragenter",["$event"]]}],onDragLeave:[{type:P.HostListener,args:["dragleave",["$event"]]}]},Dn);function Dn(e,t){var n=Cn.call(this)||this;return n._renderer=e,n._element=t,n._multiple=!1,n.onFileDrop=new P.EventEmitter,n}var In,Sn=(F(Pn,In=T.TemplatePortalDirective),Pn.decorators=[{type:P.Directive,args:[{selector:"[td-file-input-label]ng-template"}]}],Pn.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},Pn);function Pn(e,t){return In.call(this,e,t)||this}function Tn(e){this._changeDetectorRef=e}var En,Mn=E.mixinControlValueAccessor(E.mixinDisabled(Tn)),Ln=(F(jn,En=Mn),Object.defineProperty(jn.prototype,"inputElement",{get:function(){return this._inputElement.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(jn.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),jn.prototype.handleSelect=function(e){this.writeValue(e),this.onSelect.emit(e)},jn.prototype.clear=function(){this.writeValue(undefined),this._renderer.setProperty(this.inputElement,"value","")},jn.prototype.onDisabledChange=function(e){e&&this.clear()},jn.prototype.setDisabledState=function(e){this.disabled=e},jn.decorators=[{type:P.Component,args:[{changeDetection:P.ChangeDetectionStrategy.OnPush,providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return jn}),multi:!0}],selector:"td-file-input",inputs:["disabled","value"],template:'<div>\n <button mat-raised-button\n class="td-file-input"\n type="button"\n [color]="color" \n [multiple]="multiple" \n [disabled]="disabled"\n (keyup.enter)="fileInput.click()"\n (click)="fileInput.click()"\n (fileDrop)="handleSelect($event)"\n tdFileDrop>\n <ng-content></ng-content>\n </button>\n <input #fileInput \n class="td-file-input-hidden" \n type="file"\n [attr.accept]="accept" \n (fileSelect)="handleSelect($event)"\n [multiple]="multiple" \n [disabled]="disabled"\n tdFileSelect>\n</div>',styles:[":host .td-file-input{padding-left:8px;padding-right:8px}:host input.td-file-input-hidden{display:none}:host .drop-zone{border-radius:3px}:host .drop-zone *{pointer-events:none}"]}]}],jn.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ChangeDetectorRef}]},jn.propDecorators={_inputElement:[{type:P.ViewChild,args:["fileInput"]}],color:[{type:P.Input,args:["color"]}],multiple:[{type:P.Input,args:["multiple"]}],accept:[{type:P.Input,args:["accept"]}],onSelect:[{type:P.Output,args:["select"]}]},jn);function jn(e,t){var n=En.call(this,t)||this;return n._renderer=e,n._multiple=!1,n.onSelect=new P.EventEmitter,n}function An(e){this._changeDetectorRef=e}var zn,Fn=E.mixinControlValueAccessor(E.mixinDisabled(An)),Bn=(F(Vn,zn=Fn),Object.defineProperty(Vn.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Vn.prototype,"required",{get:function(){return this._required},set:function(e){this._required=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Vn.prototype.uploadPressed=function(){this.value&&this.onUpload.emit(this.value)},Vn.prototype.handleSelect=function(e){this.value=e,this.onSelect.emit(e)},Vn.prototype.cancel=function(){this.value=undefined,this.onCancel.emit(undefined),this.fileInput&&this.fileInput.clear()},Vn.prototype.onDisabledChange=function(e){e&&this.cancel()},Vn.decorators=[{type:P.Component,args:[{changeDetection:P.ChangeDetectionStrategy.OnPush,providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return Vn}),multi:!0}],selector:"td-file-upload",inputs:["disabled","value"],template:'<td-file-input *ngIf="!value"\n [(ngModel)]="value"\n [multiple]="multiple"\n [disabled]="disabled"\n [accept]="accept"\n [color]="defaultColor"\n (select)="handleSelect($event)">\n <ng-template [cdkPortalOutlet]="inputLabel" [ngIf]="true"></ng-template>\n</td-file-input>\n<div *ngIf="value">\n <button #fileUpload\n class="td-file-upload"\n mat-raised-button\n type="button"\n [color]="activeColor"\n (keyup.delete)="cancel()"\n (keyup.backspace)="cancel()"\n (keyup.escape)="cancel()"\n (click)="uploadPressed()"> \n <ng-content></ng-content>\n </button>\n <button mat-icon-button\n type="button"\n class="td-file-upload-cancel"\n [color]="cancelColor" \n (click)="cancel()">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>',styles:[".td-file-upload{padding-left:8px;padding-right:8px}.td-file-upload-cancel{height:24px;width:24px;position:relative;top:24px;left:-12px}::ng-deep [dir=rtl] .td-file-upload-cancel{right:-12px;left:0}.td-file-upload-cancel mat-icon{border-radius:12px;vertical-align:baseline}.drop-zone{border-radius:3px}.drop-zone *{pointer-events:none}"]}]}],Vn.ctorParameters=function(){return[{type:P.ChangeDetectorRef}]},Vn.propDecorators={fileInput:[{type:P.ViewChild,args:[Ln]}],inputLabel:[{type:P.ContentChild,args:[Sn]}],defaultColor:[{type:P.Input,args:["defaultColor"]}],activeColor:[{type:P.Input,args:["activeColor"]}],cancelColor:[{type:P.Input,args:["cancelColor"]}],multiple:[{type:P.Input,args:["multiple"]}],required:[{type:P.Input,args:["required"]}],accept:[{type:P.Input,args:["accept"]}],onSelect:[{type:P.Output,args:["select"]}],onUpload:[{type:P.Output,args:["upload"]}],onCancel:[{type:P.Output,args:["cancel"]}]},Vn);function Vn(e){var t=zn.call(this,e)||this;return t._multiple=!1,t._required=!1,t.defaultColor="primary",t.activeColor="accent",t.cancelColor="warn",t.onSelect=new P.EventEmitter,t.onUpload=new P.EventEmitter,t.onCancel=new P.EventEmitter,t}var Nn=(Object.defineProperty(qn.prototype,"progress",{get:function(){return this._progressObservable},enumerable:!0,configurable:!0}),qn.prototype.upload=function(o){var a=this;return new C.Observable(function(e){var t=new XMLHttpRequest,n=new FormData;if(o.file!==undefined)n.append("file",o.file);else{if(o.formData===undefined)return e.error("For [IUploadOptions] you have to set either the [file] or the [formData] property.");n=o.formData}if(t.upload.onprogress=function(e){var t=0;e.lengthComputable&&(t=Math.round(e.loaded/e.total*100)),a._progressSubject.next(t)},t.onreadystatechange=function(){4===t.readyState&&(200<=t.status&&t.status<300?(e.next(t.response),e.complete()):e.error(t.response))},t.open(o.method,o.url,!0),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.headers)for(var i in o.headers)t.setRequestHeader(i,o.headers[i]);t.send(n)})},qn.decorators=[{type:P.Injectable}],qn.ctorParameters=function(){return[]},qn);function qn(){this._progressSubject=new C.Subject,this._progressObservable=this._progressSubject.asObservable()}var Hn=[xn,On,Bn,Ln,Sn],Wn=(Un.decorators=[{type:P.NgModule,args:[{imports:[I.FormsModule,O.CommonModule,y.MatIconModule,f.MatButtonModule,T.PortalModule],declarations:[Hn],exports:[Hn],providers:[Nn]}]}],Un);function Un(){}var Xn=(Object.defineProperty($n.prototype,"levelsOpen",{get:function(){return this._levelsOpen},set:function(e){if(!Number.isInteger(e))throw new Error("[levelsOpen] needs to be an integer.");this._levelsOpen=e,this._open=0<e},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"open",{get:function(){return this._open},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"key",{get:function(){var e=this._key&&this._key.length>$n.KEY_MAX_LENGTH?"…":"";return this._key?this._key.substring(0,$n.KEY_MAX_LENGTH)+e:this._key},set:function(e){this._key=e},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.parseChildren()},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty($n.prototype,"isRTL",{get:function(){return!!this._dir&&"rtl"===this._dir.dir},enumerable:!0,configurable:!0}),$n.prototype.refresh=function(){this._changeDetectorRef.markForCheck()},$n.prototype.toggle=function(){this._open=!this._open},$n.prototype.isObject=function(){return"object"===this.getType(this._data)},$n.prototype.isArray=function(){return Array.isArray(this._data)},$n.prototype.hasChildren=function(){return this._children&&0<this._children.length},$n.prototype.getValue=function(e){var t=this.getType(e);if("undefined"===t||"null"===t)return t;if("date"===t)e=new Date(e).toString();else if("string"===t)e='"'+e+'"';else{if("function"===t)return e.toString().replace(/[\r\n]/g,"").replace(/\{.*\}/,"")+"{…}";if(Array.isArray(e))return this.getObjectName()+" ["+e.length+"]"}return e},$n.prototype.getType=function(e){if("object"==typeof e){if(!e)return"null";if(Array.isArray(e))return"object";var t=new Date(e);if("[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return"date"}return typeof e},$n.prototype.getObjectName=function(){var e=this._data;if(this.isObject()&&!e.constructor)return"Object";var t=/function (.{1,})\(/.exec(e.constructor.toString());return t&&1<t.length?t[1]:""},$n.prototype.getPreview=function(){var e,t=this,n="{ ",i=" }";this.isArray()?(e=this._data.slice(0,$n.PREVIEW_LIMIT).map(function(e){return t.getValue(e)}),n="[",i="]"):e=this._children.slice(0,$n.PREVIEW_LIMIT).map(function(e){return e+": "+t.getValue(t._data[e])});var o=e.join(", "),a=e.length>=$n.PREVIEW_LIMIT||o.length>$n.PREVIEW_STRING_MAX_LENGTH?"…":"";return n+o.substring(0,$n.PREVIEW_STRING_MAX_LENGTH)+a+i},$n.prototype.parseChildren=function(){if(this.isObject())for(var e in this._children=[],this._data)this._children.push(e)},$n.KEY_MAX_LENGTH=30,$n.PREVIEW_STRING_MAX_LENGTH=80,$n.PREVIEW_LIMIT=5,$n.decorators=[{type:P.Component,args:[{changeDetection:P.ChangeDetectionStrategy.OnPush,selector:"td-json-formatter",template:'<div class="td-json-formatter-wrapper">\n <a class="td-key"\n [class.td-key-node]="hasChildren()"\n [class.td-key-leaf]="!hasChildren()"\n [tabIndex]="isObject()? 0 : -1"\n (keydown.enter)="toggle()"\n (click)="toggle()">\n <mat-icon class="td-node-icon" *ngIf="hasChildren()">{{open? \'keyboard_arrow_down\' : (isRTL ? \'keyboard_arrow_left\' : \'keyboard_arrow_right\')}}</mat-icon>\n <span *ngIf="key" class="key">{{key}}:</span>\n <span class="value">\n <span [class.td-empty]="!hasChildren()" *ngIf="isObject()" [matTooltip]="getPreview()" matTooltipPosition="after">\n <span class="td-object-name">{{getObjectName()}}</span>\n <span class="td-array-length" *ngIf="isArray()">[{{data.length}}]</span>\n </span>\n <span *ngIf="!isObject()" [class]="getType(data)">{{getValue(data)}}</span>\n </span>\n </a>\n <div class="td-object-children" [@tdCollapse]="!(hasChildren() && open)">\n <ng-template let-key ngFor [ngForOf]="children">\n <td-json-formatter [key]="key" [data]="data[key]" [levelsOpen]="levelsOpen - 1"></td-json-formatter>\n </ng-template>\n </div>\n</div>',animations:[E.tdCollapseAnimation],styles:[":host{display:block}.td-json-formatter-wrapper{padding-top:2px;padding-bottom:2px}.td-json-formatter-wrapper .td-key{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.td-json-formatter-wrapper .td-key.td-key-node:hover{cursor:pointer}.td-json-formatter-wrapper .td-object-children.ng-animating{overflow:hidden}.td-json-formatter-wrapper .td-object-children .td-key,.td-json-formatter-wrapper .td-object-children .td-object-children{padding-left:24px}::ng-deep [dir=rtl] .td-json-formatter-wrapper .td-object-children .td-key,::ng-deep [dir=rtl] .td-json-formatter-wrapper .td-object-children .td-object-children{padding-right:24px;padding-left:0}.td-json-formatter-wrapper .td-object-children .td-key.td-key-leaf,.td-json-formatter-wrapper .td-object-children .td-object-children.td-key-leaf{padding-left:48px}::ng-deep [dir=rtl] .td-json-formatter-wrapper .td-object-children .td-key.td-key-leaf,::ng-deep [dir=rtl] .td-json-formatter-wrapper .td-object-children .td-object-children.td-key-leaf{padding-right:48px;padding-left:0}.td-json-formatter-wrapper .value{margin-left:5px}::ng-deep [dir=rtl] .td-json-formatter-wrapper .value{padding-right:5px;padding-left:0}.td-json-formatter-wrapper .value .td-empty{opacity:.5;text-decoration:line-through}.td-json-formatter-wrapper .value .date,.td-json-formatter-wrapper .value .string{word-break:break-word}"]}]}],$n.ctorParameters=function(){return[{type:P.ChangeDetectorRef},{type:x.Dir,decorators:[{type:P.Optional}]}]},$n.propDecorators={levelsOpen:[{type:P.Input,args:["levelsOpen"]}],key:[{type:P.Input,args:["key"]}],data:[{type:P.Input,args:["data"]}]},$n);function $n(e,t){this._changeDetectorRef=e,this._dir=t,this._open=!1,this._levelsOpen=0}var Yn=(Gn.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,a.MatTooltipModule,y.MatIconModule],declarations:[Xn],exports:[Xn]}]}],Gn);function Gn(){}var Kn=(Object.defineProperty(Zn.prototype,"disableClose",{get:function(){return"side"===this.mode},enumerable:!0,configurable:!0}),Zn.prototype.toggle=function(){return this.sidenav.toggle(!this.sidenav.opened)},Zn.prototype.open=function(){return this.sidenav.open()},Zn.prototype.close=function(){return this.sidenav.close()},Zn.decorators=[{type:P.Component,args:[{selector:"td-layout",template:'<mat-sidenav-container fullscreen [autosize]="containerAutosize">\n <mat-sidenav #sidenav\n class="td-layout-sidenav"\n [mode]="mode"\n [opened]="opened"\n [style.max-width]="sidenavWidth"\n [style.min-width]="sidenavWidth"\n [disableClose]="disableClose">\n <ng-content select="td-navigation-drawer"></ng-content>\n <ng-content select="[td-sidenav-content]"></ng-content>\n </mat-sidenav>\n <ng-content></ng-content>\n</mat-sidenav-container>\n',styles:[":host{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host ::ng-deep>mat-sidenav-container .mat-drawer>.mat-drawer-inner-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}"]}]}],Zn.propDecorators={sidenav:[{type:P.ViewChild,args:[l.MatSidenav]}],mode:[{type:P.Input,args:["mode"]}],opened:[{type:P.Input,args:["opened"]}],sidenavWidth:[{type:P.Input,args:["sidenavWidth"]}],containerAutosize:[{type:P.Input,args:["containerAutosize"]}]},Zn);function Zn(){this.mode="over",this.opened=!1,this.sidenavWidth="320px",this.containerAutosize=!1}function Qn(){}var Jn,ei=E.mixinDisabled(Qn),ti=(F(ni,Jn=ei),Object.defineProperty(ni.prototype,"hideWhenOpened",{set:function(e){this._hideWhenOpened=e,this._initialized&&this._toggleVisibility()},enumerable:!0,configurable:!0}),ni.prototype.ngAfterViewInit=function(){var e=this;this._initialized=!0,this._layout&&this._layout.sidenav&&(this._toggleSubs=this._layout.sidenav._animationStarted.subscribe(function(){e._toggleVisibility()})),this._toggleVisibility()},ni.prototype.ngOnDestroy=function(){this._toggleSubs&&(this._toggleSubs.unsubscribe(),this._toggleSubs=undefined)},ni.prototype.clickListener=function(e){e.preventDefault(),this.disabled||(this._layout&&this._layout.open?this.onClick():this._noLayoutMessage())},ni.prototype._toggleVisibility=function(){this._layout&&(this._layout.sidenav.opened&&this._hideWhenOpened?this._renderer.setStyle(this._elementRef.nativeElement,"display","none"):this._renderer.setStyle(this._elementRef.nativeElement,"display",""))},ni.prototype._noLayoutMessage=function(){console.warn("Covalent: Parent layout not found for layout toggle directive")},ni.propDecorators={hideWhenOpened:[{type:P.Input,args:["hideWhenOpened"]}],clickListener:[{type:P.HostListener,args:["click",["$event"]]}]},ni);function ni(e,t,n){var i=Jn.call(this)||this;return i._layout=e,i._renderer=t,i._elementRef=n,i._initialized=!1,i._hideWhenOpened=!1,i._layout||i._noLayoutMessage(),i._renderer.addClass(i._elementRef.nativeElement,"td-layout-menu-button"),i}var ii,oi=(F(ai,ii=ti),Object.defineProperty(ai.prototype,"tdLayoutToggle",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),ai.prototype.onClick=function(){this._layout.toggle()},ai.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutToggle]"}]}],ai.ctorParameters=function(){return[{type:Kn,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Kn})]}]},{type:P.Renderer2},{type:P.ElementRef}]},ai.propDecorators={tdLayoutToggle:[{type:P.Input,args:["tdLayoutToggle"]}]},ai);function ai(e,t,n){return ii.call(this,e,t,n)||this}var ri,si=(F(li,ri=ti),Object.defineProperty(li.prototype,"tdLayoutClose",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),li.prototype.onClick=function(){this._layout.close()},li.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutClose]"}]}],li.ctorParameters=function(){return[{type:Kn,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Kn})]}]},{type:P.Renderer2},{type:P.ElementRef}]},li.propDecorators={tdLayoutClose:[{type:P.Input,args:["tdLayoutClose"]}]},li);function li(e,t,n){return ri.call(this,e,t,n)||this}var ci,di=(F(pi,ci=ti),Object.defineProperty(pi.prototype,"tdLayoutClose",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),pi.prototype.onClick=function(){this._layout.open()},pi.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutOpen]"}]}],pi.ctorParameters=function(){return[{type:Kn,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Kn})]}]},{type:P.Renderer2},{type:P.ElementRef}]},pi.propDecorators={tdLayoutClose:[{type:P.Input,args:["tdLayoutOpen"]}]},pi);function pi(e,t,n){return ci.call(this,e,t,n)||this}var ui=(Object.defineProperty(hi.prototype,"routerEnabled",{get:function(){return!!this._router&&!!this.navigationRoute},enumerable:!0,configurable:!0}),hi.prototype.handleNavigationClick=function(){this.routerEnabled&&this._router.navigateByUrl(this.navigationRoute)},hi.decorators=[{type:P.Component,args:[{selector:"td-layout-nav",template:'<div class="td-layout-nav-wrapper">\n <mat-toolbar [color]="color">\n <ng-content select="[td-menu-button]"></ng-content>\n <span *ngIf="icon || logo || toolbarTitle"\n [class.cursor-pointer]="routerEnabled"\n (click)="handleNavigationClick()"\n class="td-layout-nav-toolbar-content">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n <mat-icon *ngIf="logo && !icon" class="mat-icon-logo" [svgIcon]="logo"></mat-icon>\n <span *ngIf="toolbarTitle">{{toolbarTitle}}</span>\n </span>\n <ng-content select="[td-toolbar-content]"></ng-content>\n </mat-toolbar>\n <div class="td-layout-nav-content" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select="td-layout-footer"></ng-content>\n</div>\n',styles:[".td-menu-button{margin-left:0}::ng-deep [dir=rtl] .td-menu-button{margin-right:0;margin-left:6px}:host{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host .td-layout-nav-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%}:host .td-layout-nav-wrapper .td-layout-nav-toolbar-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host .td-layout-nav-wrapper .td-layout-nav-content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}"]}]}],hi.ctorParameters=function(){return[{type:c.Router,decorators:[{type:P.Optional}]}]},hi.propDecorators={toolbarTitle:[{type:P.Input,args:["toolbarTitle"]}],icon:[{type:P.Input,args:["icon"]}],logo:[{type:P.Input,args:["logo"]}],color:[{type:P.Input,args:["color"]}],navigationRoute:[{type:P.Input,args:["navigationRoute"]}]},hi);function hi(e){this._router=e,this.color="primary"}var mi=(Object.defineProperty(gi.prototype,"disableClose",{get:function(){return"side"===this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(gi.prototype,"routerEnabled",{get:function(){return!!this._router&&!!this.navigationRoute},enumerable:!0,configurable:!0}),gi.prototype.handleNavigationClick=function(){this.routerEnabled&&this._router.navigateByUrl(this.navigationRoute)},gi.prototype.toggle=function(){return this.sidenav.toggle(!this.sidenav.opened)},gi.prototype.open=function(){return this.sidenav.open()},gi.prototype.close=function(){return this.sidenav.close()},gi.decorators=[{type:P.Component,args:[{selector:"td-layout-nav-list",template:'<div class="td-layout-nav-list-wrapper">\n <mat-sidenav-container fullscreen [autosize]="containerAutosize" class="td-layout-nav-list">\n <mat-sidenav #sidenav\n position="start"\n [mode]="mode"\n [opened]="opened"\n [disableClose]="disableClose"\n [style.max-width]="sidenavWidth"\n [style.min-width]="sidenavWidth">\n <mat-toolbar [color]="color">\n <ng-content select="[td-menu-button]"></ng-content>\n <span *ngIf="icon || logo || toolbarTitle"\n class="td-layout-nav-list-toolbar-content"\n [class.cursor-pointer]="routerEnabled"\n (click)="handleNavigationClick()">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n <mat-icon *ngIf="logo && !icon" class="mat-icon-logo" [svgIcon]="logo"></mat-icon>\n <span *ngIf="toolbarTitle">{{toolbarTitle}}</span>\n </span>\n <ng-content select="[td-sidenav-toolbar-content]"></ng-content>\n </mat-toolbar>\n <div class="td-layout-nav-list-content" cdkScrollable>\n <ng-content select="[td-sidenav-content]"></ng-content>\n </div>\n </mat-sidenav>\n <div class="td-layout-nav-list-main">\n <mat-toolbar [color]="color">\n <ng-content select="[td-toolbar-content]"></ng-content>\n </mat-toolbar>\n <div class="td-layout-nav-list-content" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select="td-layout-footer-inner"></ng-content>\n </div>\n </mat-sidenav-container>\n</div>\n<ng-content select="td-layout-footer"></ng-content>',styles:[":host{margin:0;width:100%;min-height:100%;height:100%;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-right:0}[dir=rtl] :host .td-layout-nav-list-wrapper>.mat-sidenav-container>mat-sidenav.mat-drawer-side{border-left:0}:host .td-layout-nav-list-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-toolbar-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host .td-layout-nav-list-wrapper .td-layout-nav-list-content{text-align:start;-webkit-box-flex:1;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto}:host .td-layout-nav-list-wrapper .td-layout-nav-list-main .td-layout-nav-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list{-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closed,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-closing,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opened,:host .td-layout-nav-list-wrapper mat-sidenav-container.td-layout-nav-list>mat-sidenav.mat-drawer-opening{-webkit-box-shadow:none;box-shadow:none}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-nav-list>.mat-drawer>.mat-drawer-inner-container{-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}"]}]}],gi.ctorParameters=function(){return[{type:c.Router,decorators:[{type:P.Optional}]}]},gi.propDecorators={sidenav:[{type:P.ViewChild,args:[l.MatSidenav]}],toolbarTitle:[{type:P.Input,args:["toolbarTitle"]}],icon:[{type:P.Input,args:["icon"]}],logo:[{type:P.Input,args:["logo"]}],color:[{type:P.Input,args:["color"]}],mode:[{type:P.Input,args:["mode"]}],opened:[{type:P.Input,args:["opened"]}],sidenavWidth:[{type:P.Input,args:["sidenavWidth"]}],containerAutosize:[{type:P.Input,args:["containerAutosize"]}],navigationRoute:[{type:P.Input,args:["navigationRoute"]}]},gi);function gi(e){this._router=e,this.color="primary",this.mode="side",this.opened=!0,this.sidenavWidth="350px",this.containerAutosize=!1}var fi,bi=(F(_i,fi=ti),Object.defineProperty(_i.prototype,"tdLayoutNavListToggle",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),_i.prototype.onClick=function(){this._layout.toggle()},_i.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutNavListToggle]"}]}],_i.ctorParameters=function(){return[{type:mi,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return mi})]}]},{type:P.Renderer2},{type:P.ElementRef}]},_i.propDecorators={tdLayoutNavListToggle:[{type:P.Input,args:["tdLayoutNavListToggle"]}]},_i);function _i(e,t,n){return fi.call(this,e,t,n)||this}var yi,vi=(F(xi,yi=ti),Object.defineProperty(xi.prototype,"tdLayoutNavListClose",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),xi.prototype.onClick=function(){this._layout.close()},xi.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutNavListClose]"}]}],xi.ctorParameters=function(){return[{type:mi,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return mi})]}]},{type:P.Renderer2},{type:P.ElementRef}]},xi.propDecorators={tdLayoutNavListClose:[{type:P.Input,args:["tdLayoutNavListClose"]}]},xi);function xi(e,t,n){return yi.call(this,e,t,n)||this}var wi,ki=(F(Ci,wi=ti),Object.defineProperty(Ci.prototype,"tdLayoutNavListOpen",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),Ci.prototype.onClick=function(){this._layout.open()},Ci.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutNavListOpen]"}]}],Ci.ctorParameters=function(){return[{type:mi,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return mi})]}]},{type:P.Renderer2},{type:P.ElementRef}]},Ci.propDecorators={tdLayoutNavListOpen:[{type:P.Input,args:["tdLayoutNavListOpen"]}]},Ci);function Ci(e,t,n){return wi.call(this,e,t,n)||this}var Ri=(Oi.decorators=[{type:P.Component,args:[{selector:"td-layout-card-over",template:'<mat-toolbar [color]="color">\n</mat-toolbar>\n<div class="td-layout-card-over-wrapper">\n <div class="td-layout-card-over"\n [style.max-width.%]="cardWidth"\n [style.flex]="\'1 1 \' + cardWidth + \'%\'"\n [style.-ms-flex]="\'1 1 \' + cardWidth + \'%\'"\n [style.-webkit-box-flex]="1">\n <mat-card>\n <mat-card-title *ngIf="cardTitle">{{cardTitle}}</mat-card-title>\n <mat-card-subtitle *ngIf="cardSubtitle">{{cardSubtitle}}</mat-card-subtitle>\n <mat-divider *ngIf="cardTitle || cardSubtitle"></mat-divider>\n <ng-content></ng-content>\n </mat-card>\n <ng-content select="[td-after-card]"></ng-content>\n </div>\n</div>\n',styles:[":host{position:relative;display:block;z-index:2;width:100%;min-height:100%;height:100%}:host [td-after-card]{display:block}.td-layout-card-over-wrapper{margin:-64px 0;width:100%;min-height:100%;height:100%}@media (min-width:600px){.td-layout-card-over-wrapper{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.td-layout-card-over-wrapper .td-layout-card-over{max-height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}}@media (max-width:599px){.td-layout-card-over-wrapper .td-layout-card-over{max-width:100%!important}}"]}]}],Oi.propDecorators={cardTitle:[{type:P.Input,args:["cardTitle"]}],cardSubtitle:[{type:P.Input,args:["cardSubtitle"]}],cardWidth:[{type:P.Input,args:["cardWidth"]}],color:[{type:P.Input,args:["color"]}]},Oi);function Oi(){this.cardWidth=70,this.color="primary"}var Di=(Object.defineProperty(Ii.prototype,"disableClose",{get:function(){return"side"===this.mode},enumerable:!0,configurable:!0}),Ii.prototype.toggle=function(){return this.sidenav.toggle(!this.sidenav.opened)},Ii.prototype.open=function(){return this.sidenav.open()},Ii.prototype.close=function(){return this.sidenav.close()},Ii.decorators=[{type:P.Component,args:[{selector:"td-layout-manage-list",template:'<mat-sidenav-container fullscreen [autosize]="containerAutosize" class="td-layout-manage-list">\n <mat-sidenav #sidenav\n position="start"\n [mode]="mode"\n [opened]="opened"\n [disableClose]="disableClose"\n [style.max-width]="sidenavWidth"\n [style.min-width]="sidenavWidth">\n <ng-content select="mat-toolbar[td-sidenav-content]"></ng-content>\n <div class="td-layout-manage-list-sidenav" cdkScrollable>\n <ng-content select="[td-sidenav-content]"></ng-content>\n </div>\n </mat-sidenav>\n <div class="td-layout-manage-list-main">\n <ng-content select="mat-toolbar"></ng-content>\n <div class="td-layout-manage-list-content" cdkScrollable>\n <ng-content></ng-content>\n </div>\n <ng-content select="td-layout-footer-inner"></ng-content>\n </div>\n</mat-sidenav-container>\n',styles:[":host{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0;width:100%;min-height:100%;height:100%;overflow:hidden}:host mat-sidenav-container.td-layout-manage-list{-webkit-box-flex:1;-ms-flex:1;flex:1}:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closed,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-closing,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opened,:host mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container.mat-drawer-opening{-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,.2);box-shadow:0 1px 3px 0 rgba(0,0,0,.2)}:host .td-layout-manage-list-sidenav{text-align:start;-webkit-box-flex:1;-ms-flex:1;flex:1;display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch}:host .td-layout-manage-list-main{margin:0;width:100%;min-height:100%;height:100%;position:relative;overflow:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}:host .td-layout-manage-list-main .td-layout-manage-list-content{display:block;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;-webkit-box-flex:1;-ms-flex:1;flex:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}:host ::ng-deep mat-sidenav-container.td-layout-manage-list>.mat-drawer>.mat-drawer-inner-container{-webkit-box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}:host ::ng-deep mat-nav-list a[mat-list-item] .mat-list-item-content{font-size:14px}:host ::ng-deep .mat-toolbar{font-weight:400}"]}]}],Ii.propDecorators={sidenav:[{type:P.ViewChild,args:[l.MatSidenav]}],mode:[{type:P.Input,args:["mode"]}],opened:[{type:P.Input,args:["opened"]}],sidenavWidth:[{type:P.Input,args:["sidenavWidth"]}],containerAutosize:[{type:P.Input,args:["containerAutosize"]}]},Ii);function Ii(){this.mode="side",this.opened=!0,this.sidenavWidth="257px",this.containerAutosize=!1}var Si,Pi=(F(Ti,Si=ti),Object.defineProperty(Ti.prototype,"tdLayoutManageListToggle",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),Ti.prototype.onClick=function(){this._layout.toggle()},Ti.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutManageListToggle]"}]}],Ti.ctorParameters=function(){return[{type:Di,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Di})]}]},{type:P.Renderer2},{type:P.ElementRef}]},Ti.propDecorators={tdLayoutManageListToggle:[{type:P.Input,args:["tdLayoutManageListToggle"]}]},Ti);function Ti(e,t,n){return Si.call(this,e,t,n)||this}var Ei,Mi=(F(Li,Ei=ti),Object.defineProperty(Li.prototype,"tdLayoutManageListClose",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),Li.prototype.onClick=function(){this._layout.close()},Li.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutManageListClose]"}]}],Li.ctorParameters=function(){return[{type:Di,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Di})]}]},{type:P.Renderer2},{type:P.ElementRef}]},Li.propDecorators={tdLayoutManageListClose:[{type:P.Input,args:["tdLayoutManageListClose"]}]},Li);function Li(e,t,n){return Ei.call(this,e,t,n)||this}var ji,Ai=(F(zi,ji=ti),Object.defineProperty(zi.prototype,"tdLayoutManageListOpen",{set:function(e){this.disabled=!(""===e||e)},enumerable:!0,configurable:!0}),zi.prototype.onClick=function(){this._layout.open()},zi.decorators=[{type:P.Directive,args:[{selector:"[tdLayoutManageListOpen]"}]}],zi.ctorParameters=function(){return[{type:Di,decorators:[{type:P.Optional},{type:P.Inject,args:[P.forwardRef(function(){return Di})]}]},{type:P.Renderer2},{type:P.ElementRef}]},zi.propDecorators={tdLayoutManageListOpen:[{type:P.Input,args:["tdLayoutManageListOpen"]}]},zi);function zi(e,t,n){return ji.call(this,e,t,n)||this}var Fi=(Object.defineProperty(Bi.prototype,"color",{get:function(){return this._color},set:function(e){e&&(this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),this._color=e,this._renderer.addClass(this._elementRef.nativeElement,"mat-"+this._color))},enumerable:!0,configurable:!0}),Bi.decorators=[{type:P.Component,args:[{selector:"td-layout-footer,td-layout-footer-inner",template:"<ng-content></ng-content>\n",styles:[":host{display:block;padding:10px 16px}"]}]}],Bi.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef}]},Bi.propDecorators={color:[{type:P.Input,args:["color"]}]},Bi);function Bi(e,t){this._renderer=e,this._elementRef=t,this._renderer.addClass(this._elementRef.nativeElement,"td-layout-footer")}var Vi=(Ni.decorators=[{type:P.Directive,args:[{selector:"[td-navigation-drawer-menu]"}]}],Ni);function Ni(){}var qi=(Hi.decorators=[{type:P.Directive,args:[{selector:"[td-navigation-drawer-toolbar]"}]}],Hi);function Hi(){}var Wi=(Object.defineProperty(Ui.prototype,"menuToggled",{get:function(){return this._menuToggled},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isMenuAvailable",{get:function(){return!!this._drawerMenu&&0<this._drawerMenu.length},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isCustomToolbar",{get:function(){return!!this._toolbar&&0<this._toolbar.length},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"isBackgroundAvailable",{get:function(){return!!this._backgroundImage},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"backgroundUrl",{set:function(e){if(e){var t=this._sanitize.sanitize(P.SecurityContext.RESOURCE_URL,e);this._backgroundImage=this._sanitize.sanitize(P.SecurityContext.STYLE,"url("+t+")")}},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"backgroundImage",{get:function(){return this._backgroundImage},enumerable:!0,configurable:!0}),Object.defineProperty(Ui.prototype,"routerEnabled",{get:function(){return!!this._router&&!!this.navigationRoute},enumerable:!0,configurable:!0}),Ui.prototype.ngOnInit=function(){var t=this;this._closeSubscription=this._layout.sidenav.openedChange.subscribe(function(e){e||(t._menuToggled=!1)})},Ui.prototype.ngOnDestroy=function(){this._closeSubscription&&(this._closeSubscription.unsubscribe(),this._closeSubscription=undefined)},Ui.prototype.toggleMenu=function(){this.isMenuAvailable&&(this._menuToggled=!this._menuToggled)},Ui.prototype.handleNavigationClick=function(){this.routerEnabled&&(this._router.navigateByUrl(this.navigationRoute),this.close())},Ui.prototype.toggle=function(){return this._layout.toggle()},Ui.prototype.open=function(){return this._layout.open()},Ui.prototype.close=function(){return this._layout.close()},Ui.decorators=[{type:P.Component,args:[{selector:"td-navigation-drawer",template:'<mat-toolbar [color]="color"\n [style.background-image]="backgroundImage"\n [class.td-toolbar-background]="!!isBackgroundAvailable"\n class="td-nagivation-drawer-toolbar">\n <ng-content select="[td-navigation-drawer-toolbar]"></ng-content>\n <ng-container *ngIf="!isCustomToolbar">\n <div *ngIf="icon || logo || sidenavTitle || avatar"\n class="td-navigation-drawer-toolbar-content"\n [class.cursor-pointer]="routerEnabled"\n (click)="handleNavigationClick()">\n <mat-icon *ngIf="icon">{{icon}}</mat-icon>\n <mat-icon *ngIf="logo && !icon" class="mat-icon-logo" [svgIcon]="logo"></mat-icon>\n <img *ngIf="avatar && !logo && !icon" class="td-nagivation-drawer-toolbar-avatar" [attr.src]="avatar" />\n <span *ngIf="sidenavTitle" class="td-navigation-drawer-title">{{sidenavTitle}}</span>\n </div>\n <div class="td-navigation-drawer-name" *ngIf="email && name">{{name}}</div>\n <div class="td-navigation-drawer-menu-toggle"\n href\n *ngIf="email || name"\n (click)="toggleMenu()">\n <span class="td-navigation-drawer-label">{{email || name}}</span>\n <button mat-icon-button class="td-navigation-drawer-menu-button" *ngIf="isMenuAvailable">\n <mat-icon *ngIf="!menuToggled">arrow_drop_down</mat-icon>\n <mat-icon *ngIf="menuToggled">arrow_drop_up</mat-icon>\n </button>\n </div>\n </ng-container>\n</mat-toolbar>\n<div class="td-navigation-drawer-content" [@tdCollapse]="menuToggled">\n <ng-content></ng-content>\n</div>\n<div class="td-navigation-drawer-menu-content" [@tdCollapse]="!menuToggled">\n <ng-content select="[td-navigation-drawer-menu]"></ng-content>\n</div>\n',animations:[E.tdCollapseAnimation],styles:[":host{width:100%}:host .td-navigation-drawer-content.ng-animating,:host .td-navigation-drawer-menu-content.ng-animating{overflow:hidden}:host mat-toolbar{padding:16px}:host mat-toolbar.td-toolbar-background{background-repeat:no-repeat;background-size:cover}:host mat-toolbar.td-nagivation-drawer-toolbar{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:auto!important;display:block!important}:host mat-toolbar .td-navigation-drawer-toolbar-content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host mat-toolbar .td-navigation-drawer-toolbar-content .td-nagivation-drawer-toolbar-avatar{border-radius:50%;height:60px;width:60px;margin:0 12px 12px 0}:host mat-toolbar .td-navigation-drawer-menu-toggle{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-label{-webkit-box-flex:1;-ms-flex:1;flex:1}:host mat-toolbar .td-navigation-drawer-menu-toggle .td-navigation-drawer-menu-button{height:24px;line-height:24px;width:24px}:host>div{overflow:hidden}"]}]}],Ui.ctorParameters=function(){return[{type:Kn,decorators:[{type:P.Inject,args:[P.forwardRef(function(){return Kn})]}]},{type:c.Router,decorators:[{type:P.Optional}]},{type:d.DomSanitizer}]},Ui.propDecorators={_drawerMenu:[{type:P.ContentChildren,args:[Vi]}],_toolbar:[{type:P.ContentChildren,args:[qi]}],sidenavTitle:[{type:P.Input,args:["sidenavTitle"]}],icon:[{type:P.Input,args:["icon"]}],logo:[{type:P.Input,args:["logo"]}],avatar:[{type:P.Input,args:["avatar"]}],color:[{type:P.Input,args:["color"]}],navigationRoute:[{type:P.Input,args:["navigationRoute"]}],backgroundUrl:[{type:P.Input,args:["backgroundUrl"]}],name:[{type:P.Input,args:["name"]}],email:[{type:P.Input,args:["email"]}]},Ui);function Ui(e,t,n){this._layout=e,this._router=t,this._sanitize=n,this._menuToggled=!1}var Xi=[Kn,oi,si,di,ui,mi,bi,vi,ki,Ri,Di,Pi,Mi,Ai,Fi,Wi,Vi,qi],$i=(Yi.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,k.ScrollDispatchModule,l.MatSidenavModule,r.MatToolbarModule,f.MatButtonModule,y.MatIconModule,s.MatCardModule,g.MatDividerModule],declarations:[Xi],exports:[Xi]}]}],Yi);function Yi(){}var Gi={Circular:"circular",Linear:"linear"},Ki={Determinate:"determinate",Indeterminate:"indeterminate"},Zi={Overlay:"overlay",Replace:"replace"},Qi={FullScreen:"fullscreen",Overlay:"overlay",None:"none"},Ji=(Object.defineProperty(eo.prototype,"mode",{get:function(){return this._mode},set:function(e){this._defaultMode=e},enumerable:!0,configurable:!0}),Object.defineProperty(eo.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),eo.prototype.ngDoCheck=function(){this.isOverlay()&&1<this._hostHeight()&&this.animation&&(this._setCircleDiameter(),this._changeDetectorRef.markForCheck())},eo.prototype.getHeight=function(){return this.isOverlay()||this.isFullScreen()?undefined:this.height?this.height+"px":"150px"},eo.prototype.getCircleDiameter=function(){return this._circleDiameter},eo.prototype.getCircleStrokeWidth=function(){var e=this.getCircleDiameter()/10;return Math.abs(e)},eo.prototype.isCircular=function(){return this.type===Gi.Circular},eo.prototype.isLinear=function(){return this.type===Gi.Linear},eo.prototype.isFullScreen=function(){return this.style===Qi.FullScreen},eo.prototype.isOverlay=function(){return this.style===Qi.Overlay},eo.prototype.animationComplete=function(e){e.fromState?this.outAnimationCompleted():this.inAnimationCompleted()},eo.prototype.inAnimationCompleted=function(){this._animationIn.next(undefined)},eo.prototype.outAnimationCompleted=function(){this.value=0,this._changeDetectorRef.markForCheck(),this._animationOut.next(undefined)},eo.prototype.startInAnimation=function(){return this._mode=this._defaultMode,this._setCircleDiameter(),this.animation=!0,this._changeDetectorRef.markForCheck(),this._animationIn.asObservable()},eo.prototype.startOutAnimation=function(){return this.animation=!1,this._mode=Ki.Determinate,this._changeDetectorRef.markForCheck(),this._animationOut.asObservable()},eo.prototype._setCircleDiameter=function(){var e=100;this.height?e=this.height:this.height===undefined&&(e=this._hostHeight()),this._circleDiameter=e&&e<=100?Math.floor(e):100},eo.prototype._hostHeight=function(){return this._elementRef.nativeElement?this._elementRef.nativeElement.getBoundingClientRect().height:0},eo.decorators=[{type:P.Component,args:[{selector:"td-loading",template:'<div class="td-loading-wrapper"\n [style.min-height]="getHeight()"\n [class.td-overlay-circular]="(isOverlay() || isFullScreen()) && !isLinear()"\n [class.td-overlay]="isOverlay() || isFullScreen()" \n [class.td-fullscreen]="isFullScreen()">\n <div [@tdFadeInOut]="animation"\n (@tdFadeInOut.done)="animationComplete($event)"\n [style.min-height]="getHeight()"\n class="td-loading">\n <mat-progress-spinner *ngIf="isCircular()" \n [mode]="mode"\n [value]="value" \n [color]="color" \n [diameter]="getCircleDiameter()"\n [strokeWidth]="getCircleStrokeWidth()">\n </mat-progress-spinner>\n <mat-progress-bar *ngIf="isLinear()" \n [mode]="mode"\n [value]="value"\n [color]="color">\n </mat-progress-bar>\n </div>\n <ng-template [cdkPortalOutlet]="content"></ng-template>\n</div>',animations:[E.tdFadeInOutAnimation],styles:[".td-loading-wrapper{position:relative;display:block}.td-loading-wrapper.td-fullscreen{position:inherit}.td-loading-wrapper .td-loading{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-flex:1;-ms-flex:1;flex:1}.td-loading-wrapper.td-overlay .td-loading{position:absolute;margin:0;top:0;left:0;right:0;z-index:1000}.td-loading-wrapper.td-overlay .td-loading mat-progress-bar{position:absolute;top:0;left:0;right:0}.td-loading-wrapper.td-overlay-circular .td-loading{bottom:0}"]}]}],eo.ctorParameters=function(){return[{type:P.ElementRef},{type:P.ChangeDetectorRef}]},eo);function eo(e,t){this._elementRef=e,this._changeDetectorRef=t,this._animationIn=new C.Subject,this._animationOut=new C.Subject,this._mode=Ki.Indeterminate,this._defaultMode=Ki.Indeterminate,this._value=0,this._circleDiameter=100,this.animation=!1,this.style=Qi.None,this.type=Gi.Circular,this.color="primary"}var to=(no.prototype.createFullScreenComponent=function(n){var i=this;n.height=undefined,n.style=Qi.FullScreen;var o,a=this._initializeContext(),r=!1;return a.observable.pipe(R.distinctUntilChanged()).subscribe(function(e){if(0<e&&!r)r=!0,o=i._createOverlay(),a.componentRef=o.attach(new T.ComponentPortal(Ji)),i._mapOptions(n,a.componentRef.instance),a.componentRef.instance.startInAnimation(),a.componentRef.changeDetectorRef.detectChanges();else if(e<=0&&r){r=!1;var t=a.componentRef.instance.startOutAnimation().subscribe(function(){t.unsubscribe(),a.componentRef.destroy(),o.detach(),o.dispose()})}}),a},no.prototype.createOverlayComponent=function(e,t,n){e.height=undefined,e.style=Qi.Overlay;var i=this._createComponent(e),o=!1;return i.componentRef.instance.content=new T.TemplatePortal(n,t),t.clear(),t.insert(i.componentRef.hostView,0),i.observable.pipe(R.distinctUntilChanged()).subscribe(function(e){0<e&&!o?(o=!0,i.componentRef.instance.startInAnimation()):e<=0&&o&&(o=!1,i.componentRef.instance.startOutAnimation())}),i},no.prototype.createReplaceComponent=function(e,n,t,i){var o=t.elementRef.nativeElement;e.height=o.nextElementSibling?o.nextElementSibling.scrollHeight:undefined,e.style=Qi.None;var a=this._createComponent(e),r=!1,s=n.createEmbeddedView(t,i);return a.observable.pipe(R.distinctUntilChanged()).subscribe(function(e){if(0<e&&!r)r=!0,n.indexOf(a.componentRef.hostView)<0&&(n.detach(n.indexOf(s)),n.insert(a.componentRef.hostView,0)),a.componentRef.instance.startInAnimation();else if(e<=0&&r){r=!1;var t=a.componentRef.instance.startOutAnimation().subscribe(function(){t.unsubscribe(),n.indexOf(s)<0&&(n.detach(n.indexOf(a.componentRef.hostView)),n.insert(s,0)),s.detectChanges(),s.markForCheck()})}}),a},no.prototype._createOverlay=function(){var e=new h.OverlayConfig;return e.hasBackdrop=!1,e.positionStrategy=this._overlay.position().global().centerHorizontally().centerVertically(),this._overlay.create(e)},no.prototype._createComponent=function(e){var t=this._initializeContext();return t.componentRef=this._componentFactoryResolver.resolveComponentFactory(Ji).create(this._injector),this._mapOptions(e,t.componentRef.instance),t},no.prototype._initializeContext=function(){var e=new C.Subject;return{observable:e.asObservable(),subject:e,componentRef:undefined,times:0}},no.prototype._mapOptions=function(e,t){t.style=e.style,e.type!==undefined&&(t.type=e.type),e.height!==undefined&&(t.height=e.height),e.mode!==undefined&&(t.mode=e.mode),e.color!==undefined&&(t.color=e.color)},no.decorators=[{type:P.Injectable}],no.ctorParameters=function(){return[{type:P.ComponentFactoryResolver},{type:h.Overlay},{type:P.Injector}]},no);function no(e,t,n){this._componentFactoryResolver=e,this._overlay=t,this._injector=n}function io(e,t,n,i){return e||new to(t,n,i)}var oo,ao={provide:to,deps:[[new P.Optional,new P.SkipSelf,to],P.ComponentFactoryResolver,h.Overlay,P.Injector],useFactory:io},ro=function $a(e){if(this.name=e.name,!this.name)throw Error("Name is required for [TdLoading] configuration.");this.mode=e.mode?e.mode:Ki.Indeterminate,this.type=e.type?e.type:Gi.Circular,this.color=e.color?e.color:"primary"},so=(F(lo,oo=ro),lo);function lo(e){var t=oo.call(this,e)||this;return t.strategy=e.strategy?e.strategy:Zi.Replace,t}var co=(po.prototype.createComponent=function(e,t,n,i){var o=new so(e);if(this._context[o.name])throw Error("Name duplication: [TdLoading] directive has a name conflict with "+o.name+".");return o.strategy===Zi.Overlay?this._context[o.name]=this._loadingFactory.createOverlayComponent(o,t,n):this._context[o.name]=this._loadingFactory.createReplaceComponent(o,t,n,i),this._context[o.name]},po.prototype.create=function(e){var t=new ro(e);this.removeComponent(t.name),this._context[t.name]=this._loadingFactory.createFullScreenComponent(t)},po.prototype.removeComponent=function(e){this._context[e]&&(this._context[e].subject.unsubscribe(),this._context[e].componentRef&&this._context[e].componentRef.destroy(),this._context[e]=undefined,delete this._context[e])},po.prototype.register=function(e,t){var n=this;return void 0===e&&(e="td-loading-main"),void 0===t&&(t=1),this._context[e]?(t=t<1?1:t,this._context[e].times+=t,this._context[e].subject.next(this._context[e].times),!0):(this._timeouts[e]?this._clearTimeout(e):this._timeouts[e]=setTimeout(function(){n.register(e,t)}),!1)},po.prototype.resolve=function(e,t){if(void 0===e&&(e="td-loading-main"),void 0===t&&(t=1),this._clearTimeout(e),this._context[e]){if(t=t<1?1:t,0<this._context[e].times){var n=this._context[e].times;n-=t,this._context[e].times=n<0?0:n}return this._context[e].subject.next(this._context[e].times),!0}return!1},po.prototype.resolveAll=function(e){return void 0===e&&(e="td-loading-main"),this._clearTimeout(e),!!this._context[e]&&(this._context[e].times=0,this._context[e].subject.next(this._context[e].times),!0)},po.prototype.setValue=function(e,t){if(this._context[e]){var n=this._context[e].componentRef.instance;if(n.mode===Ki.Determinate&&n.animation)return n.value=t,!0}return!1},po.prototype._clearTimeout=function(e){clearTimeout(this._timeouts[e]),delete this._timeouts[e]},po.decorators=[{type:P.Injectable}],po.ctorParameters=function(){return[{type:to}]},po);function po(e){this._loadingFactory=e,this._context={},this._timeouts={},this.create({name:"td-loading-main"})}function uo(e,t){return e||new co(t)}var ho={provide:co,deps:[[new P.Optional,new P.SkipSelf,co],to],useFactory:uo},mo=function Ya(){this.$implicit=undefined,this.tdLoading=undefined},go=0,fo=(Object.defineProperty(bo.prototype,"name",{set:function(e){this._name||e&&(this._name=e)},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"until",{set:function(e){this._name||(this._name="td-loading-until-"+go++),this._context.$implicit=this._context.tdLoading=e,e?this._loadingService.resolveAll(this._name):this._loadingService.register(this._name)},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"type",{set:function(e){switch(e){case Gi.Linear:this._type=Gi.Linear;break;default:this._type=Gi.Circular}},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"mode",{set:function(e){switch(e){case Ki.Determinate:this._mode=Ki.Determinate;break;default:this._mode=Ki.Indeterminate}},enumerable:!0,configurable:!0}),Object.defineProperty(bo.prototype,"strategy",{set:function(e){switch(e){case Zi.Overlay:this._strategy=Zi.Overlay;break;default:this._strategy=Zi.Replace}},enumerable:!0,configurable:!0}),bo.prototype.ngOnInit=function(){this._registerComponent()},bo.prototype.ngOnDestroy=function(){this._loadingService.removeComponent(this._name),this._loadingRef=undefined},bo.prototype._registerComponent=function(){if(!this._name)throw new Error("Name is needed to register loading directive");this._loadingRef||(this._loadingRef=this._loadingService.createComponent({name:this._name,type:this._type,mode:this._mode,color:this.color,strategy:this._strategy},this._viewContainerRef,this._templateRef,this._context))},bo.decorators=[{type:P.Directive,args:[{selector:"[tdLoading]"}]}],bo.ctorParameters=function(){return[{type:P.ViewContainerRef},{type:P.TemplateRef},{type:co}]},bo.propDecorators={name:[{type:P.Input,args:["tdLoading"]}],until:[{type:P.Input,args:["tdLoadingUntil"]}],type:[{type:P.Input,args:["tdLoadingType"]}],mode:[{type:P.Input,args:["tdLoadingMode"]}],strategy:[{type:P.Input,args:["tdLoadingStrategy"]}],color:[{type:P.Input,args:["tdLoadingColor"]}]},bo);function bo(e,t,n){this._viewContainerRef=e,this._templateRef=t,this._loadingService=n,this._context=new mo,this.color="primary"}var _o=[Ji,fo],yo=[Ji],vo=(xo.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,p.MatProgressBarModule,u.MatProgressSpinnerModule,h.OverlayModule,T.PortalModule],declarations:[_o],exports:[_o],providers:[ao,ho],entryComponents:[yo]}]}],xo);function xo(){}var wo=(ko.prototype.deregisterQuery=function(e){this._queryMap.get(e.toLowerCase())&&(e=this._queryMap.get(e.toLowerCase())),this._querySources[e].unsubscribe(),delete this._querySources[e],delete this._queryObservables[e]},ko.prototype.query=function(e){return this._queryMap.get(e.toLowerCase())&&(e=this._queryMap.get(e.toLowerCase())),this._ngZone.run(function(){return matchMedia(e).matches})},ko.prototype.registerQuery=function(e){return this._queryMap.get(e.toLowerCase())&&(e=this._queryMap.get(e.toLowerCase())),this._querySources[e]||(this._querySources[e]=new C.BehaviorSubject(matchMedia(e).matches),this._queryObservables[e]=this._querySources[e].asObservable()),this._queryObservables[e]},ko.prototype.broadcast=function(){this._onResize()},ko.prototype._onResize=function(){function e(e){n._ngZone.run(function(){t._matchMediaTrigger(e)})}var t=this,n=this;for(var i in this._querySources)e(i)},ko.prototype._matchMediaTrigger=function(e){this._querySources[e].next(matchMedia(e).matches)},ko.decorators=[{type:P.Injectable}],ko.ctorParameters=function(){return[{type:P.NgZone}]},ko);function ko(e){var t=this;this._ngZone=e,this._resizing=!1,this._queryMap=new Map,this._querySources={},this._queryObservables={},this._queryMap.set("xs","(max-width: 599px)"),this._queryMap.set("gt-xs","(min-width: 600px)"),this._queryMap.set("sm","(min-width: 600px) and (max-width: 959px)"),this._queryMap.set("gt-sm","(min-width: 960px)"),this._queryMap.set("md","(min-width: 960px) and (max-width: 1279px)"),this._queryMap.set("gt-md","(min-width: 1280px)"),this._queryMap.set("lg","(min-width: 1280px) and (max-width: 1919px)"),this._queryMap.set("gt-lg","(min-width: 1920px)"),this._queryMap.set("xl","(min-width: 1920px)"),this._queryMap.set("landscape","(orientation: landscape)"),this._queryMap.set("portrait","(orientation: portrait)"),this._queryMap.set("print","print"),this._resizing=!1,this._globalSubscription=this._ngZone.runOutsideAngular(function(){return C.fromEvent(window,"resize").subscribe(function(){t._resizing||(t._resizing=!0,setTimeout(function(){t._onResize(),t._resizing=!1},100))})})}function Co(e,t){return e||new wo(t)}var Ro={provide:wo,deps:[[new P.Optional,new P.SkipSelf,wo],P.NgZone],useFactory:Co},Oo=(Object.defineProperty(Do.prototype,"query",{set:function(e){if(!e)throw new Error("Query needed for [tdMediaToggle] directive.");this._query=e},enumerable:!0,configurable:!0}),Object.defineProperty(Do.prototype,"attributes",{set:function(e){this._attributes=e},enumerable:!0,configurable:!0}),Object.defineProperty(Do.prototype,"classes",{set:function(e){this._classes=e},enumerable:!0,configurable:!0}),Object.defineProperty(Do.prototype,"styles",{set:function(e){this._styles=e},enumerable:!0,configurable:!0}),Do.prototype.ngOnInit=function(){var t=this;this._mediaChange(this._mediaService.query(this._query)),this._subscription=this._mediaService.registerQuery(this._query).subscribe(function(e){t._mediaChange(e)})},Do.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},Do.prototype._mediaChange=function(e){this._matches=e,this._changeAttributes(),this._changeClasses(),this._changeStyles()},Do.prototype._changeAttributes=function(){for(var e in this._attributes)this._matches?this._renderer.setAttribute(this._elementRef.nativeElement,e,this._attributes[e]):this._renderer.removeAttribute(this._elementRef.nativeElement,e)},Do.prototype._changeClasses=function(){var t=this;this._classes.forEach(function(e){t._matches?t._renderer.addClass(t._elementRef.nativeElement,e):t._renderer.removeClass(t._elementRef.nativeElement,e)})},Do.prototype._changeStyles=function(){for(var e in this._styles)this._matches?this._renderer.setStyle(this._elementRef.nativeElement,e,this._styles[e]):this._renderer.removeStyle(this._elementRef.nativeElement,e)},Do.decorators=[{type:P.Directive,args:[{selector:"[tdMediaToggle]"}]}],Do.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ElementRef},{type:wo}]},Do.propDecorators={query:[{type:P.Input,args:["tdMediaToggle"]}],attributes:[{type:P.Input,args:["mediaAttributes"]}],classes:[{type:P.Input,args:["mediaClasses"]}],styles:[{type:P.Input,args:["mediaStyles"]}]},Do);function Do(e,t,n){this._renderer=e,this._elementRef=t,this._mediaService=n,this._matches=!1,this._attributes={},this._styles={},this._classes=[]}var Io=[Oo],So=(Po.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule],declarations:[Io],exports:[Io],providers:[Ro]}]}],Po);function Po(){}var To=(Eo.decorators=[{type:P.Component,args:[{selector:"td-menu",template:'<ng-content select="[td-menu-header]"></ng-content>\n<mat-divider></mat-divider>\n<div class="td-menu-content">\n <ng-content></ng-content>\n</div>\n<mat-divider></mat-divider>\n<ng-content select="[td-menu-footer]"></ng-content>',styles:[":host{margin-top:-8px;margin-bottom:-8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}:host ::ng-deep [td-menu-header]{padding:8px;text-align:center}:host ::ng-deep mat-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-list mat-list-item.mat-2-line,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line{height:auto}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content{height:auto;padding:8px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-right:0}[dir=rtl] :host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content .mat-list-text,[dir=rtl] :host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content .mat-list-text{padding-left:0;padding-right:16px}:host ::ng-deep mat-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] a[mat-list-item].mat-2-line .mat-list-item-content [matLine]+[matLine],:host ::ng-deep mat-nav-list[dense] mat-list-item.mat-2-line .mat-list-item-content [matLine]+[matLine]{margin-top:4px}.td-menu-content{max-height:calc(50vh);overflow-y:auto}"]}]}],Eo);function Eo(){}var Mo=[To],Lo=(jo.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,m.MatMenuModule,g.MatDividerModule],declarations:[Mo],exports:[Mo]}]}],jo);function jo(){}function Ao(e){this._changeDetectorRef=e}var zo,Fo=E.mixinControlValueAccessor(Ao),Bo=(F(Vo,zo=Fo),Object.defineProperty(Vo.prototype,"isRTL",{get:function(){return!!this._dir&&"rtl"===this._dir.dir},enumerable:!0,configurable:!0}),Vo.prototype.ngOnInit=function(){var t=this;this._input.ngControl.valueChanges.pipe(R.debounceTime(this.debounce),R.skip(1)).subscribe(function(e){t._searchTermChanged(e)})},Vo.prototype.focus=function(){this._input.focus()},Vo.prototype.handleBlur=function(){this.onBlur.emit(undefined)},Vo.prototype.stopPropagation=function(e){e.stopPropagation()},Vo.prototype.handleSearch=function(e){this.stopPropagation(e),this.onSearch.emit(this.value)},Vo.prototype.clearSearch=function(){this.value="",this._changeDetectorRef.markForCheck(),this.onClear.emit(undefined)},Vo.prototype._searchTermChanged=function(e){this.onSearchDebounce.emit(e)},Vo.decorators=[{type:P.Component,args:[{providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return Vo}),multi:!0}],selector:"td-search-input",template:'<div class="td-search-input">\n <mat-form-field class="td-search-input-field"\n [class.mat-hide-underline]="!showUnderline"\n [appearance]="appearance"\n floatLabel="never">\n <input matInput\n #searchElement\n type="search"\n [(ngModel)]="value"\n [placeholder]="placeholder"\n (blur)="handleBlur()"\n (search)="stopPropagation($event)"\n (keyup.enter)="handleSearch($event)"/>\n <span matSuffix *ngIf="appearance === \'fill\' || appearance === \'outline\' || appearance === \'standard\'">\n <ng-template\n [ngTemplateOutlet]="clearButton">\n </ng-template>\n </span>\n </mat-form-field>\n <ng-template\n *ngIf="!appearance || appearance === \'legacy\'"\n [ngTemplateOutlet]="clearButton">\n </ng-template>\n</div>\n<ng-template #clearButton>\n <button mat-icon-button\n class="td-search-input-clear"\n type="button"\n [@searchState]="(searchElement.value ? \'show\' : (isRTL ? \'hide-left\' : \'hide-right\'))"\n (click)="clearSearch()">\n <mat-icon>{{clearIcon}}</mat-icon>\n </button>\n</ng-template>\n',changeDetection:P.ChangeDetectionStrategy.OnPush,inputs:["value"],animations:[_.trigger("searchState",[_.state("hide-left",_.style({transform:"translateX(-150%)",display:"none"})),_.state("hide-right",_.style({transform:"translateX(150%)",display:"none"})),_.state("show",_.style({transform:"translateX(0%)",display:"block"})),_.transition("* => show",_.animate("200ms ease-in")),_.transition("show => *",_.animate("200ms ease-out"))])],styles:[":host .td-search-input{overflow-x:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}:host .td-search-input .td-search-input-field{-webkit-box-flex:1;-ms-flex:1;flex:1}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-outline .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-flex{height:52px}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-fill .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper{padding-bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-infix{bottom:.4em}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-standard .mat-form-field-wrapper .mat-form-field-underline{bottom:0}:host .td-search-input ::ng-deep mat-form-field.mat-form-field-appearance-legacy .mat-form-field-infix{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}:host .td-search-input ::ng-deep mat-form-field .mat-input-element{caret-color:currentColor}:host .td-search-input ::ng-deep mat-form-field.mat-hide-underline .mat-form-field-underline{display:none}:host .td-search-input .td-search-input-clear{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}"]}]}],Vo.ctorParameters=function(){return[{type:x.Dir,decorators:[{type:P.Optional}]},{type:P.ChangeDetectorRef}]},Vo.propDecorators={_input:[{type:P.ViewChild,args:[b.MatInput]}],appearance:[{type:P.Input,args:["appearance"]}],showUnderline:[{type:P.Input,args:["showUnderline"]}],debounce:[{type:P.Input,args:["debounce"]}],placeholder:[{type:P.Input,args:["placeholder"]}],clearIcon:[{type:P.Input,args:["clearIcon"]}],onSearchDebounce:[{type:P.Output,args:["searchDebounce"]}],onSearch:[{type:P.Output,args:["search"]}],onClear:[{type:P.Output,args:["clear"]}],onBlur:[{type:P.Output,args:["blur"]}]},Vo);function Vo(e,t){var n=zo.call(this,t)||this;return n._dir=e,n.showUnderline=!1,n.debounce=400,n.clearIcon="cancel",n.onSearchDebounce=new P.EventEmitter,n.onSearch=new P.EventEmitter,n.onClear=new P.EventEmitter,n.onBlur=new P.EventEmitter,n}function No(e){this._changeDetectorRef=e}var qo,Ho=E.mixinControlValueAccessor(No),Wo=(F(Uo,qo=Ho),Object.defineProperty(Uo.prototype,"searchVisible",{get:function(){return this._searchVisible},enumerable:!0,configurable:!0}),Uo.prototype.searchClicked=function(){!this.alwaysVisible&&this._searchVisible?(this.value="",this.handleClear()):!this.alwaysVisible&&this._searchVisible||this._searchInput.focus(),this.toggleVisibility()},Uo.prototype.toggleVisibility=function(){this._searchVisible=!this._searchVisible,this._changeDetectorRef.markForCheck()},Uo.prototype.handleSearchDebounce=function(e){this.onSearchDebounce.emit(e)},Uo.prototype.handleSearch=function(e){this.onSearch.emit(e)},Uo.prototype.handleClear=function(){this.onClear.emit(undefined)},Uo.prototype.handleBlur=function(){this.onBlur.emit(undefined)},Uo.decorators=[{type:P.Component,args:[{providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return Uo}),multi:!0}],selector:"td-search-box",template:'<div class="td-search-box">\n <button mat-icon-button type="button" class="td-search-icon" (click)="searchClicked()">\n <mat-icon *ngIf="searchVisible && !alwaysVisible">{{backIcon}}</mat-icon>\n <mat-icon *ngIf="!searchVisible || alwaysVisible">{{searchIcon}}</mat-icon>\n </button>\n <td-search-input #searchInput\n [@inputState]="alwaysVisible || searchVisible"\n [debounce]="debounce"\n [(ngModel)]="value"\n [showUnderline]="showUnderline"\n [placeholder]="placeholder"\n [clearIcon]="clearIcon"\n (searchDebounce)="handleSearchDebounce($event)"\n (search)="handleSearch($event)"\n (clear)="handleClear(); toggleVisibility()"\n (blur)="handleBlur()">\n </td-search-input>\n</div>\n',changeDetection:P.ChangeDetectionStrategy.OnPush,inputs:["value"],animations:[_.trigger("inputState",[_.state("0",_.style({width:"0%",margin:"0px"})),_.state("1",_.style({width:"100%",margin:_.AUTO_STYLE})),_.transition("0 => 1",_.animate("200ms ease-in")),_.transition("1 => 0",_.animate("200ms ease-out"))])],styles:[":host{display:block}.td-search-box{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.td-search-box .td-search-icon{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.td-search-box td-search-input{margin-left:12px}::ng-deep [dir=rtl] .td-search-box td-search-input{margin-right:12px;margin-left:0!important}.td-search-box td-search-input ::ng-deep .mat-form.field.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1em}"]}]}],Uo.ctorParameters=function(){return[{type:P.ChangeDetectorRef}]},Uo.propDecorators={_searchInput:[{type:P.ViewChild,args:[Bo]}],backIcon:[{type:P.Input,args:["backIcon"]}],searchIcon:[{type:P.Input,args:["searchIcon"]}],clearIcon:[{type:P.Input,args:["clearIcon"]}],showUnderline:[{type:P.Input,args:["showUnderline"]}],debounce:[{type:P.Input,args:["debounce"]}],alwaysVisible:[{type:P.Input,args:["alwaysVisible"]}],placeholder:[{type:P.Input,args:["placeholder"]}],onSearchDebounce:[{type:P.Output,args:["searchDebounce"]}],onSearch:[{type:P.Output,args:["search"]}],onClear:[{type:P.Output,args:["clear"]}],onBlur:[{type:P.Output,args:["blur"]}]},Uo);function Uo(e){var t=qo.call(this,e)||this;return t._searchVisible=!1,t.backIcon="search",t.searchIcon="search",t.clearIcon="cancel",t.showUnderline=!1,t.debounce=400,t.alwaysVisible=!1,t.onSearchDebounce=new P.EventEmitter,t.onSearch=new P.EventEmitter,t.onClear=new P.EventEmitter,t.onBlur=new P.EventEmitter,t}var Xo=($o.decorators=[{type:P.NgModule,args:[{imports:[I.FormsModule,O.CommonModule,b.MatInputModule,y.MatIconModule,f.MatButtonModule],declarations:[Bo,Wo],exports:[Bo,Wo]}]}],$o);function $o(){}var Yo=(Object.defineProperty(Go.prototype,"displayCrumb",{get:function(){return this._displayCrumb},set:function(e){this._displayCrumb=e,this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"width",{get:function(){return this._width},enumerable:!0,configurable:!0}),Object.defineProperty(Go.prototype,"displayBinding",{get:function(){return this._displayCrumb?undefined:"none"},enumerable:!0,configurable:!0}),Go.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e._width=e._elementRef.nativeElement.getBoundingClientRect().width,e._changeDetectorRef.markForCheck()})},Go.prototype._handleIconClick=function(e){e.stopPropagation(),e.preventDefault()},Go.decorators=[{type:P.Component,args:[{selector:"td-breadcrumb, a[td-breadcrumb]",template:'<ng-content></ng-content>\n<mat-icon *ngIf="_displayIcon"\n class="td-breadcrumb-separator-icon"\n [style.cursor]="\'default\'"\n (click)="_handleIconClick($event)">\n {{separatorIcon}}\n</mat-icon>\n',host:{"class":"mat-button td-breadcrumb"},changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host.td-breadcrumb{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}:host.td-breadcrumb ::ng-deep>*{margin:0 10px}:host .td-breadcrumb-separator-icon{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host.mat-button{min-width:0;padding:0}"]}]}],Go.ctorParameters=function(){return[{type:P.ElementRef},{type:P.ChangeDetectorRef}]},Go.propDecorators={displayBinding:[{type:P.HostBinding,args:["style.display"]}]},Go);function Go(e,t){this._elementRef=e,this._changeDetectorRef=t,this._displayCrumb=!0,this._width=0,this.separatorIcon="chevron_right",this._displayIcon=!0}var Ko=(Zo.prototype.ngOnInit=function(){var e=this;this._resizeSubscription=C.merge(C.fromEvent(window,"resize").pipe(R.debounceTime(10)),this._widthSubject.asObservable().pipe(R.distinctUntilChanged())).subscribe(function(){e._resizing||(e._resizing=!0,setTimeout(function(){e._calculateVisibility(),e._resizing=!1,e._changeDetectorRef.markForCheck()},100))})},Zo.prototype.ngDoCheck=function(){this._elementRef&&this._elementRef.nativeElement&&this._widthSubject.next(this.nativeElementWidth)},Zo.prototype.ngAfterContentInit=function(){this.setCrumbIcons(),this._changeDetectorRef.markForCheck()},Zo.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()},Object.defineProperty(Zo.prototype,"nativeElementWidth",{get:function(){var e=this._elementRef.nativeElement,t=window.getComputedStyle(e),n=parseInt(t.borderLeft,10),i=parseInt(t.borderRight,10),o=parseInt(t.marginLeft,10),a=parseInt(t.marginRight,10),r=parseInt(t.paddingLeft,10),s=parseInt(t.paddingRight,10);return e.getBoundingClientRect().width-n-i-o-a-r-s},enumerable:!0,configurable:!0}),Object.defineProperty(Zo.prototype,"count",{get:function(){return this._breadcrumbs?this._breadcrumbs.length:0},enumerable:!0,configurable:!0}),Zo.prototype.setCrumbIcons=function(){var t=this,e=this._breadcrumbs.toArray();0<e.length&&(e[e.length-1]._displayIcon=!1),e.forEach(function(e){e.separatorIcon=t.separatorIcon})},Zo.prototype._calculateVisibility=function(){for(var e=this._breadcrumbs.toArray(),t=0,n=[],i=e.length-1;0<=i;i--){var o=e[i];t+o.width>this.nativeElementWidth?(o.displayCrumb=!1,n.push(o)):o.displayCrumb=!0,t+=o.width}this.hiddenBreadcrumbs=n,this._changeDetectorRef.markForCheck()},Zo.decorators=[{type:P.Component,args:[{selector:"td-breadcrumbs",template:"<ng-content></ng-content>\n",host:{"class":"td-breadcrumbs"},changeDetection:P.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%}:host.td-breadcrumbs{white-space:nowrap}"]}]}],Zo.ctorParameters=function(){return[{type:P.ElementRef},{type:P.ChangeDetectorRef}]},Zo.propDecorators={_breadcrumbs:[{type:P.ContentChildren,args:[Yo]}],separatorIcon:[{type:P.Input,args:["separatorIcon"]}]},Zo);function Zo(e,t){this._elementRef=e,this._changeDetectorRef=t,this._resizeSubscription=C.Subscription.EMPTY,this._widthSubject=new C.Subject,this._resizing=!1,this.hiddenBreadcrumbs=[],this.separatorIcon="chevron_right"}var Qo=(Jo.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,y.MatIconModule],declarations:[Ko,Yo],exports:[Ko,Yo]}]}],Jo);function Jo(){}var ea,ta={None:"none",Required:"required",Complete:"complete"},na=(F(ia,ea=T.TemplatePortalDirective),ia.decorators=[{type:P.Directive,args:[{selector:"[td-step-label]ng-template"}]}],ia.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},ia);function ia(e,t){return ea.call(this,e,t)||this}var oa,aa=(F(ra,oa=T.TemplatePortalDirective),ra.decorators=[{type:P.Directive,args:[{selector:"[td-step-actions]ng-template"}]}],ra.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},ra);function ra(e,t){return oa.call(this,e,t)||this}var sa,la=(F(ca,sa=T.TemplatePortalDirective),ca.decorators=[{type:P.Directive,args:[{selector:"[td-step-summary]ng-template"}]}],ca.ctorParameters=function(){return[{type:P.TemplateRef},{type:P.ViewContainerRef}]},ca);function ca(e,t){return sa.call(this,e,t)||this}function da(){}var pa,ua=E.mixinDisableRipple(E.mixinDisabled(da)),ha=(F(ma,pa=ua),Object.defineProperty(ma.prototype,"stepContent",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"active",{get:function(){return this._active},set:function(e){this._setActive(S.coerceBooleanProperty(e))},enumerable:!0,configurable:!0}),Object.defineProperty(ma.prototype,"state",{get:function(){return this._state},set:function(e){switch(e){case ta.Complete:this._state=ta.Complete;break;case ta.Required:this._state=ta.Required;break;default:this._state=ta.None}},enumerable:!0,configurable:!0}),ma.prototype.ngOnInit=function(){this._contentPortal=new T.TemplatePortal(this._content,this._viewContainerRef)},ma.prototype.toggle=function(){return this._setActive(!this._active)},ma.prototype.open=function(){return this._setActive(!0)},ma.prototype.close=function(){return this._setActive(!1)},ma.prototype.isComplete=function(){return this._state===ta.Complete},ma.prototype.onDisabledChange=function(e){e&&this._active&&(this._active=!1,this._onDeactivated())},ma.prototype._setActive=function(e){return!this.disabled&&this._active!==e&&((this._active=e)?this._onActivated():this._onDeactivated(),!0)},ma.prototype._onActivated=function(){this.onActivated.emit(undefined)},ma.prototype._onDeactivated=function(){this.onDeactivated.emit(undefined)},ma.decorators=[{type:P.Component,args:[{selector:"td-step",inputs:["disabled","disableRipple"],template:"<ng-template>\n <ng-content></ng-content>\n</ng-template>"}]}],ma.ctorParameters=function(){return[{type:P.ViewContainerRef}]},ma.propDecorators={_content:[{type:P.ViewChild,args:[P.TemplateRef]}],stepLabel:[{type:P.ContentChild,args:[na]}],stepActions:[{type:P.ContentChild,args:[aa]}],stepSummary:[{type:P.ContentChild,args:[la]}],label:[{type:P.Input,args:["label"]}],sublabel:[{type:P.Input,args:["sublabel"]}],active:[{type:P.Input,args:["active"]}],state:[{type:P.Input,args:["state"]}],onActivated:[{type:P.Output,args:["activated"]}],onDeactivated:[{type:P.Output,args:["deactivated"]}]},ma);function ma(e){var t=pa.call(this)||this;return t._viewContainerRef=e,t._active=!1,t._state=ta.None,t.onActivated=new P.EventEmitter,t.onDeactivated=new P.EventEmitter,t}var ga={Vertical:"vertical",Horizontal:"horizontal"},fa=(Object.defineProperty(ba.prototype,"stepsContent",{set:function(e){e&&(this._steps=e,this._registerSteps())},enumerable:!0,configurable:!0}),Object.defineProperty(ba.prototype,"steps",{get:function(){return this._steps.toArray()},enumerable:!0,configurable:!0}),Object.defineProperty(ba.prototype,"mode",{get:function(){return this._mode},set:function(e){switch(e){case ga.Horizontal:this._mode=ga.Horizontal;break;default:this._mode=ga.Vertical}},enumerable:!0,configurable:!0}),ba.prototype.ngAfterContentInit=function(){this._registerSteps()},ba.prototype.ngOnDestroy=function(){this._deregisterSteps()},ba.prototype.isHorizontal=function(){return this._mode===ga.Horizontal},ba.prototype.isVertical=function(){return this._mode===ga.Vertical},ba.prototype.areStepsActive=function(){return 0<this._steps.filter(function(e){return e.active}).length},ba.prototype._onStepSelection=function(e){if(this.prevStep!==e){var t=this.prevStep,n={newStep:this.prevStep=e,prevStep:t};this._deactivateAllBut(e),this.onStepChange.emit(n)}},ba.prototype._deactivateAllBut=function(t){this._steps.filter(function(e){return e!==t}).forEach(function(e){e.active=!1})},ba.prototype._registerSteps=function(){var n=this;this._subcriptions=[],this._steps.toArray().forEach(function(e){var t=e.onActivated.asObservable().subscribe(function(){n._onStepSelection(e)});n._subcriptions.push(t)})},ba.prototype._deregisterSteps=function(){this._subcriptions&&(this._subcriptions.forEach(function(e){e.unsubscribe()}),this._subcriptions=undefined)},ba.decorators=[{type:P.Component,args:[{selector:"td-steps",template:'<div *ngIf="isHorizontal()" class="td-steps-header">\n <ng-template let-step let-index="index" let-last="last" ngFor [ngForOf]="steps">\n <td-step-header class="td-step-horizontal-header"\n (keydown.enter)="step.open()"\n [number]="index + 1"\n [active]="step.active"\n [disableRipple]="step.disableRipple"\n [disabled]="step.disabled" \n [state]="step.state"\n (click)="step.open()">\n <ng-template td-step-header-label [cdkPortalOutlet]="step.stepLabel"></ng-template>\n <ng-template td-step-header-label [ngIf]="!step.stepLabel">{{step.label}}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]="true">{{step.sublabel | truncate:30}}</ng-template>\n </td-step-header>\n <span *ngIf="!last" class="td-horizontal-line"></span>\n </ng-template>\n</div>\n<div *ngFor="let step of steps; let index = index; let last = last" class="td-step">\n <td-step-header class="td-step-vertical-header"\n (keydown.enter)="step.toggle()"\n [number]="index + 1"\n [active]="step.active" \n [disabled]="step.disabled"\n [disableRipple]="step.disableRipple"\n [state]="step.state"\n (click)="step.toggle()"\n *ngIf="isVertical()">\n <ng-template td-step-header-label [cdkPortalOutlet]="step.stepLabel"></ng-template>\n <ng-template td-step-header-label [ngIf]="!step.stepLabel">{{step.label}}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]="true">{{step.sublabel}}</ng-template>\n </td-step-header>\n <ng-template [ngIf]="isVertical() || step.active || (!areStepsActive() && prevStep === step)">\n <td-step-body [active]="step.active" [state]="step.state">\n <div *ngIf="isVertical()" class="td-line-wrapper">\n <div *ngIf="!last" class="td-vertical-line"></div>\n </div>\n <ng-template td-step-body-content [cdkPortalOutlet]="step.stepContent"></ng-template>\n <ng-template td-step-body-actions [cdkPortalOutlet]="step.stepActions"></ng-template>\n <ng-template td-step-body-summary [cdkPortalOutlet]="step.stepSummary"></ng-template>\n </td-step-body>\n </ng-template>\n</div>\n',host:{"class":"td-steps"},styles:[".td-line-wrapper,.td-step{position:relative}.td-steps-header{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.td-line-wrapper{width:24px;min-height:1px}.td-horizontal-line{border-bottom-width:1px;border-bottom-style:solid;height:1px;position:relative;top:36px;min-width:15px;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}::ng-deep :not([dir=rtl]) .td-horizontal-line{left:-6px;right:-3px}::ng-deep [dir=rtl] .td-horizontal-line{left:-3px;right:-6px}.td-vertical-line{position:absolute;bottom:-16px;top:-16px;border-left-width:1px;border-left-style:solid}::ng-deep :not([dir=rtl]) .td-vertical-line{left:20px;right:auto}::ng-deep [dir=rtl] .td-vertical-line{left:auto;right:20px}"]}]}],ba.propDecorators={stepsContent:[{type:P.ContentChildren,args:[ha]}],mode:[{type:P.Input,args:["mode"]}],onStepChange:[{type:P.Output,args:["stepChange"]}]},ba);function ba(){this._mode=ga.Vertical,this.onStepChange=new P.EventEmitter}function _a(){}var ya,va=E.mixinDisableRipple(E.mixinDisabled(_a)),xa=(F(wa,ya=va),wa.prototype.isComplete=function(){return this.state===ta.Complete},wa.prototype.isRequired=function(){return this.state===ta.Required},wa.decorators=[{type:P.Component,args:[{selector:"td-step-header",inputs:["disabled","disableRipple"],template:'<div class="td-step-header"\n [class.mat-disabled]="disabled"\n matRipple\n [matRippleDisabled]="disabled || disableRipple"\n [tabIndex]="disabled ? -1 : (tabIndex || 0)">\n <div class="td-circle"\n [class.mat-inactive]="(!active && !isComplete()) || disabled"\n [class.mat-active]="active && !disabled"\n *ngIf="!isRequired() && !isComplete()">\n <span *ngIf="(active || !isComplete())">{{number || \'\'}}</span>\n </div>\n <div class="td-complete" *ngIf="isComplete()">\n <mat-icon class="mat-complete">check_circle</mat-icon>\n </div>\n <div class="td-triangle"\n [class.bg-muted]="disabled"\n *ngIf="isRequired()">\n <mat-icon class="mat-warn">warning</mat-icon>\n </div>\n <div class="td-step-label-wrapper"\n [class.mat-inactive]="(!active && !isComplete()) || disabled"\n [class.mat-warn]="isRequired() && !disabled">\n <div class="td-step-label">\n <ng-content select="[td-step-header-label]"></ng-content>\n </div>\n <div class="td-step-sublabel">\n <ng-content select="[td-step-header-sublabel]"></ng-content>\n </div>\n </div>\n <span class="td-step-header-separator"></span>\n <mat-icon class="td-edit-icon" *ngIf="isComplete() && !active && !disabled">mode_edit</mat-icon>\n</div>',styles:[".td-step-header{position:relative;outline:0;min-width:120px;height:72px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%}.td-step-header:hover:not(.mat-disabled){cursor:pointer}.td-step-header mat-icon.td-edit-icon{margin:0 8px}.td-step-header mat-icon.mat-warn{font-size:24px;height:24px;width:24px}.td-step-header mat-icon.mat-complete{position:relative;left:-2px;top:2px;font-size:28px;height:24px;width:24px}.td-step-header .td-circle{height:24px;width:24px;line-height:24px;border-radius:99%;text-align:center;-webkit-box-flex:0;-ms-flex:none;flex:none}.td-step-header .td-circle mat-icon{margin-top:2px;font-weight:700}.td-step-header .td-triangle>mat-icon{font-size:25px}::ng-deep :not([dir=rtl]) .td-step-header .td-circle,::ng-deep :not([dir=rtl]) .td-step-header .td-complete,::ng-deep :not([dir=rtl]) .td-step-header .td-triangle{margin-left:8px;margin-right:0}::ng-deep [dir=rtl] .td-step-header .td-circle,::ng-deep [dir=rtl] .td-step-header .td-complete,::ng-deep [dir=rtl] .td-step-header .td-triangle{margin-left:0;margin-right:8px}.td-step-header .td-circle,.td-step-header .td-complete{font-size:14px}.td-step-header .td-step-label-wrapper{padding-left:8px;padding-right:8px}.td-step-header .td-step-header-separator{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}"]}]}],wa.propDecorators={number:[{type:P.Input,args:["number"]}],active:[{type:P.Input,args:["active"]}],state:[{type:P.Input,args:["state"]}],tabIndex:[{type:P.Input,args:["tabIndex"]}]},wa);function wa(){var e=null!==ya&&ya.apply(this,arguments)||this;return e.state=ta.None,e}var ka=(Object.defineProperty(Ca.prototype,"hasContent",{get:function(){return this.contentRef&&(0<this.contentRef.nativeElement.children.length||!!this.contentRef.nativeElement.textContent.trim())},enumerable:!0,configurable:!0}),Object.defineProperty(Ca.prototype,"hasActions",{get:function(){return this.actionsRef&&(0<this.actionsRef.nativeElement.children.length||!!this.actionsRef.nativeElement.textContent.trim())},enumerable:!0,configurable:!0}),Object.defineProperty(Ca.prototype,"hasSummary",{get:function(){return this.summaryRef&&(0<this.summaryRef.nativeElement.children.length||!!this.summaryRef.nativeElement.textContent.trim())},enumerable:!0,configurable:!0}),Ca.prototype.isComplete=function(){return this.state===ta.Complete},Ca.decorators=[{type:P.Component,args:[{selector:"td-step-body",template:'<ng-content></ng-content>\n<div class="td-step-body">\n <div class="td-step-content-wrapper"\n [@tdCollapse]="!active">\n <div #contentRef cdkScrollable [class.td-step-content]="hasContent">\n <ng-content select="[td-step-body-content]"></ng-content>\n </div>\n <div #actionsRef\n [class.td-step-actions]="hasActions">\n <ng-content select="[td-step-body-actions]"></ng-content>\n </div>\n </div>\n <div #summaryRef\n [@tdCollapse]="active || !isComplete()"\n [class.td-step-summary]="hasSummary">\n <ng-content select="[td-step-body-summary]"></ng-content>\n </div>\n</div>',animations:[E.tdCollapseAnimation],styles:[":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}:host .td-step-body{overflow-x:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host .td-step-body .td-step-content-wrapper.ng-animating,:host .td-step-body .td-step-summary.ng-animating{overflow:hidden}:host .td-step-body .td-step-content{overflow-x:auto}:host .td-step-body .td-step-actions{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}"]}]}],Ca.propDecorators={contentRef:[{type:P.ViewChild,args:["contentRef",{read:P.ElementRef}]}],actionsRef:[{type:P.ViewChild,args:["actionsRef",{read:P.ElementRef}]}],summaryRef:[{type:P.ViewChild,args:["summaryRef",{read:P.ElementRef}]}],active:[{type:P.Input,args:["active"]}],state:[{type:P.Input,args:["state"]}]},Ca);function Ca(){this.state=ta.None}var Ra,Oa=(F(Da,Ra=ua),Object.defineProperty(Da.prototype,"state",{get:function(){return this._state},set:function(e){switch(e){case ta.Complete:this._state=ta.Complete;break;case ta.Required:this._state=ta.Required;break;default:this._state=ta.None}},enumerable:!0,configurable:!0}),Object.defineProperty(Da.prototype,"active",{get:function(){return this._active},set:function(e){this._active=S.coerceBooleanProperty(e),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Da.prototype._handleClick=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},Da.decorators=[{type:P.Component,args:[{selector:"[td-step-link],[tdStepLink]",template:'<td-step-header class="td-step-header-wrapper"\n [tabIndex]="-1"\n [number]="number"\n [active]="active"\n [disableRipple]="disableRipple || disabled"\n [disabled]="disabled" \n [state]="state">\n <ng-template td-step-header-label [ngIf]="true">{{label}}</ng-template>\n <ng-template td-step-header-sublabel [ngIf]="true">{{sublabel | truncate:30}}</ng-template>\n <ng-content></ng-content>\n</td-step-header>',inputs:["disabled","disableRipple"],changeDetection:P.ChangeDetectionStrategy.OnPush,host:{"[class.td-step-link]":"true","[attr.tabindex]":"disabled ? -1 : (tabIndex || 0)","[attr.disabled]":"disabled || null","[class.mat-disabled]":"disabled || null","(click)":"_handleClick($event)"},styles:[":host{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}:host.mat-disabled{pointer-events:none}:host .td-step-header-wrapper{width:100%}"]}]}],Da.ctorParameters=function(){return[{type:P.ChangeDetectorRef},{type:P.ElementRef}]},Da.propDecorators={state:[{type:P.Input,args:["state"]}],label:[{type:P.Input,args:["label"]}],sublabel:[{type:P.Input,args:["sublabel"]}],active:[{type:P.Input,args:["active"]}],tabIndex:[{type:P.Input,args:["tabIndex"]}]},Da);function Da(e,t){var n=Ra.call(this)||this;return n._changeDetectorRef=e,n.elementRef=t,n._active=!1,n._state=ta.None,n}var Ia=(Object.defineProperty(Sa.prototype,"nativeElementWidth",{get:function(){var e=this._elementRef.nativeElement,t=window.getComputedStyle(e),n=parseInt(t.borderLeft,10),i=parseInt(t.borderRight,10),o=parseInt(t.marginLeft,10),a=parseInt(t.marginRight,10),r=parseInt(t.paddingLeft,10),s=parseInt(t.paddingRight,10);return e.getBoundingClientRect().width-n-i-o-a-r-s},enumerable:!0,configurable:!0}),Sa.prototype.ngAfterContentInit=function(){var e=this;C.merge(this._widthSubject.asObservable().pipe(R.distinctUntilChanged()),this._viewportRuler.change(150),this._dir?this._dir.change:C.of(undefined),this._steps.changes).pipe(R.takeUntil(this._destroyed)).subscribe(function(){e._configureSteps(),e.updatePagination(),e._changeDetectorRef.markForCheck()}),this._configureSteps(),this._changeDetectorRef.markForCheck()},Sa.prototype.ngAfterContentChecked=function(){this._elementRef&&this._elementRef.nativeElement&&this._widthSubject.next(this.nativeElementWidth),this._scrollDistanceChanged&&(this._updateStepScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},Sa.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},Sa.prototype._handleKeydown=function(e){switch(e.keyCode){case w.LEFT_ARROW:this._scrollHeader("before"),e.preventDefault();break;case w.RIGHT_ARROW:this._scrollHeader("after"),e.preventDefault()}},Sa.prototype.updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateStepScrollPosition()},Sa.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},Sa.prototype._updateStepScrollPosition=function(){var e="ltr"===this._getLayoutDirection()?-this.scrollDistance:this.scrollDistance;this._stepList.nativeElement.style.transform="translateX("+Math.round(e)+"px)","ltr"===this._getLayoutDirection()?this._stepListContainer.nativeElement.scrollLeft=0:this._stepListContainer.nativeElement.scrollLeft=this._getMaxScrollDistance()},Object.defineProperty(Sa.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(e){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),e)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),Sa.prototype._scrollHeader=function(e){this.scrollDistance+=("before"===e?-1:1)*this._stepListContainer.nativeElement.offsetWidth/2},Sa.prototype._checkPaginationEnabled=function(){var e=this._stepList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;e||(this.scrollDistance=0),e!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=e},Sa.prototype._checkScrollingControls=function(){this._disableScrollBefore=0===this.scrollDistance,this._disableScrollAfter=this.scrollDistance===this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},Sa.prototype._getMaxScrollDistance=function(){return this._stepList.nativeElement.scrollWidth-this._stepListContainer.nativeElement.offsetWidth||0},Sa.prototype._configureSteps=function(){var i=this;this._separators.forEach(function(e){i._renderer.removeChild(i._stepList.nativeElement,e)});var o=this._steps.toArray();o.forEach(function(e,t){if(0<t&&t<o.length){var n=i._renderer.createElement("div");i._renderer.addClass(n,"td-horizontal-line"),i._separators.push(n),i._renderer.insertBefore(i._stepList.nativeElement,n,e.elementRef.nativeElement)}e.number=t+1})},Sa.decorators=[{type:P.Component,args:[{selector:"nav[td-steps][horizontal]",template:'<div class="td-steps-header">\n <div class="td-step-header-pagination td-step-header-pagination-before mat-elevation-z4"\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollBefore"\n [class.td-step-header-pagination-disabled]="_disableScrollBefore"\n (click)="_scrollHeader(\'before\')">\n <div class="td-step-header-pagination-chevron"></div>\n </div>\n <div #stepListContainer class="td-steps-header-container" (keydown)="_handleKeydown($event)">\n <div #stepList class="td-steps-header-list">\n <ng-content></ng-content>\n </div>\n </div>\n <div class="td-step-header-pagination td-step-header-pagination-after mat-elevation-z4"\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollAfter"\n [class.td-step-header-pagination-disabled]="_disableScrollAfter"\n (click)="_scrollHeader(\'after\')">\n <div class="td-step-header-pagination-chevron"></div>\n </div>\n</div>\n',changeDetection:P.ChangeDetectionStrategy.OnPush,host:{"class":"td-steps td-steps-horizontal","[class.td-step-header-pagination-controls-enabled]":"_showPaginationControls","[class.td-step-header-rtl]":"_getLayoutDirection() == 'rtl'"},styles:[":host{width:100%;display:block}.td-steps-header,.td-steps-header-list{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.td-steps-header-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;overflow:hidden;z-index:1}.td-steps-header-list{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;-webkit-transition:-webkit-transform .5s cubic-bezier(.35,0,.25,1);transition:transform .5s cubic-bezier(.35,0,.25,1),-webkit-transform .5s cubic-bezier(.35,0,.25,1);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-line-pack:center;align-content:center;max-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.td-step-header-pagination{position:relative;display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}:host.td-step-header-pagination-controls-enabled .td-step-header-pagination{display:-webkit-box;display:-ms-flexbox;display:flex}.td-step-header-pagination-before,:host.td-step-header-rtl .td-step-header-pagination-after{padding-left:4px}.td-step-header-pagination-before .td-step-header-pagination-chevron,:host.td-step-header-rtl .td-step-header-pagination-after .td-step-header-pagination-chevron{-webkit-transform:rotate(-135deg);-ms-transform:rotate(-135deg);transform:rotate(-135deg)}.td-step-header-pagination-after,:host.td-step-header-rtl .td-step-header-pagination-before{padding-right:4px}.td-step-header-pagination-after .td-step-header-pagination-chevron,:host.td-step-header-rtl .td-step-header-pagination-before .td-step-header-pagination-chevron{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.td-step-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.td-step-header-pagination-disabled{-webkit-box-shadow:none;box-shadow:none;cursor:default}.td-horizontal-line{border-bottom-width:1px;border-bottom-style:solid;height:1px;min-width:20px;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box}"]}]}],Sa.ctorParameters=function(){return[{type:P.ElementRef},{type:k.ViewportRuler},{type:x.Directionality,decorators:[{type:P.Optional}]},{type:P.Renderer2},{type:P.ChangeDetectorRef}]},Sa.propDecorators={_steps:[{type:P.ContentChildren,args:[Oa]}],_stepListContainer:[{type:P.ViewChild,args:["stepListContainer"]}],_stepList:[{type:P.ViewChild,args:["stepList"]}]},Sa);function Sa(e,t,n,i,o){this._elementRef=e,this._viewportRuler=t,this._dir=n,this._renderer=i,this._changeDetectorRef=o,this._separators=[],this._destroyed=new C.Subject,this._widthSubject=new C.Subject,this._scrollDistance=0,this._scrollDistanceChanged=!1,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0}var Pa=(Ta.prototype.ngAfterContentInit=function(){var e=this;this._steps.changes.pipe(R.takeUntil(this._destroyed)).subscribe(function(){e._configureSteps(),e._changeDetectorRef.markForCheck()}),this._configureSteps(),this._changeDetectorRef.markForCheck()},Ta.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},Ta.prototype._configureSteps=function(){var o=this;this._separators.forEach(function(e){o._renderer.removeChild(o._stepList.nativeElement,e)});var a=this._steps.toArray();a.forEach(function(e,t){if(0<t&&t<a.length){var n=o._renderer.createElement("div");o._renderer.addClass(n,"td-vertical-line-wrapper");var i=o._renderer.createElement("div");o._renderer.addClass(i,"td-vertical-line"),o._renderer.appendChild(n,i),o._separators.push(n),o._renderer.insertBefore(o._stepList.nativeElement,n,e.elementRef.nativeElement)}e.number=t+1})},Ta.decorators=[{type:P.Component,args:[{selector:"nav[td-steps][vertical]",template:'<div class="td-steps-header">\n <div class="td-steps-header-container">\n <div #stepList class="td-steps-header-list">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n ',changeDetection:P.ChangeDetectionStrategy.OnPush,host:{"class":"td-steps td-steps-vertical"},styles:[".td-vertical-line-wrapper{position:relative}.td-vertical-line-wrapper .td-vertical-line{position:absolute;top:-16px;height:34px;border-left-width:1px;border-left-style:solid}::ng-deep :not([dir=rtl]) .td-vertical-line-wrapper .td-vertical-line{left:20px;right:auto}::ng-deep [dir=rtl] .td-vertical-line-wrapper .td-vertical-line{left:auto;right:20px}"]}]}],Ta.ctorParameters=function(){return[{type:P.Renderer2},{type:P.ChangeDetectorRef}]},Ta.propDecorators={_steps:[{type:P.ContentChildren,args:[Oa]}],_stepList:[{type:P.ViewChild,args:["stepList"]}]},Ta);function Ta(e,t){this._renderer=e,this._changeDetectorRef=t,this._separators=[],this._destroyed=new C.Subject}var Ea=[fa,ha,xa,ka,na,aa,la,Ia,Pa,Oa],Ma=(La.decorators=[{type:P.NgModule,args:[{imports:[O.CommonModule,y.MatIconModule,v.MatRippleModule,T.PortalModule,k.ScrollDispatchModule,E.CovalentCommonModule],declarations:[Ea],exports:[Ea]}]}],La);function La(){}function ja(e,t){this._viewContainerRef=e,this._changeDetectorRef=t}var Aa,za=E.mixinDisabled(ja),Fa=(F(Ba,Aa=za),Object.defineProperty(Ba.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),Ba.prototype.ngOnInit=function(){this._contentPortal=new T.TemplatePortal(this._content,this._viewContainerRef)},Ba.decorators=[{type:P.Component,args:[{selector:"td-tab-option",template:"<ng-template>\n <ng-content></ng-content>\n</ng-template>\n",changeDetection:P.ChangeDetectionStrategy.OnPush,inputs:["disabled"],styles:[""]}]}],Ba.ctorParameters=function(){return[{type:P.ViewContainerRef},{type:P.ChangeDetectorRef}]},Ba.propDecorators={_content:[{type:P.ViewChild,args:[P.TemplateRef]}],value:[{type:P.Input,args:["value"]}]},Ba);function Ba(e,t){return Aa.call(this,e,t)||this}function Va(e){this._changeDetectorRef=e}var Na,qa=E.mixinControlValueAccessor(E.mixinDisabled(E.mixinDisableRipple(Va))),Ha=(F(Wa,Na=qa),Object.defineProperty(Wa.prototype,"selectedIndex",{get:function(){return this._selectedIndex},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"tabOptions",{get:function(){return this._tabOptions?this._tabOptions.toArray():undefined},enumerable:!0,configurable:!0}),Object.defineProperty(Wa.prototype,"stretchTabs",{get:function(){return this._stretchTabs},set:function(e){this._stretchTabs=S.coerceBooleanProperty(e)},enumerable:!0,configurable:!0}),Wa.prototype.ngOnInit=function(){var t=this;this._subs.push(this.valueChanges.subscribe(function(e){t._setValue(e)}))},Wa.prototype.ngAfterContentInit=function(){var e=this;this._refreshValues(),this._subs.push(this._tabOptions.changes.subscribe(function(){e._refreshValues()})),Promise.resolve().then(function(){e._setValue(e.value)})},Wa.prototype.ngOnDestroy=function(){this._subs&&this._subs.length&&this._subs.forEach(function(e){e.unsubscribe()})},Wa.prototype.selectedIndexChange=function(e){this._selectedIndex=e;var t=this._values[e];this.value=t,this.valueChange.emit(t),this.onChange(t)},Wa.prototype._refreshValues=function(){this._values=this.tabOptions.map(function(e){return e.value}),this._changeDetectorRef.markForCheck()},Wa.prototype._setValue=function(e){var t=this._values.indexOf(e);-1<t?this._selectedIndex=t:(this.value=this._values.length?this._values[0]:undefined,this._selectedIndex=0),this._changeDetectorRef.markForCheck()},Wa.decorators=[{type:P.Component,args:[{changeDetection:P.ChangeDetectionStrategy.OnPush,providers:[{provide:I.NG_VALUE_ACCESSOR,useExisting:P.forwardRef(function(){return Wa}),multi:!0}],selector:"td-tab-select",template:'<mat-tab-group [attr.mat-stretch-tabs]="stretchTabs ? true : undefined"\n [backgroundColor]="backgroundColor"\n [color]="color"\n [disableRipple]="disableRipple"\n [selectedIndex]="selectedIndex"\n (selectedIndexChange)="selectedIndexChange($event)">\n <ng-template let-tabOption\n ngFor\n [ngForOf]="tabOptions">\n <mat-tab [disabled]="tabOption.disabled || disabled">\n <ng-template matTabLabel>\n <ng-template *ngIf="tabOption.content" [cdkPortalOutlet]="tabOption.content">\n </ng-template>\n </ng-template>\n </mat-tab>\n </ng-template>\n</mat-tab-group>\n',inputs:["value","disabled","disableRipple"],styles:[":host::ng-deep>.mat-tab-group>.mat-tab-body-wrapper{display:none}"]}]}],Wa.ctorParameters=function(){return[{type:P.ChangeDetectorRef}]},Wa.propDecorators={_tabOptions:[{type:P.ContentChildren,args:[Fa]}],stretchTabs:[{type:P.Input,args:["stretchTabs"]}],color:[{type:P.Input,args:["color"]}],backgroundColor:[{type:P.Input,args:["backgroundColor"]}],valueChange:[{type:P.Output}]},Wa);function Wa(e){var t=Na.call(this,e)||this;return t._subs=[],t._values=[],t._selectedIndex=0,t._stretchTabs=!1,t.valueChange=new P.EventEmitter,t}var Ua=(Xa.decorators=[{type:P.NgModule,args:[{declarations:[Ha,Fa],imports:[O.CommonModule,I.FormsModule,T.PortalModule,D.MatTabsModule],exports:[Ha,Fa]}]}],Xa);function Xa(){}e.CovalentPagingModule=j,e.TdPagingBarComponent=M,e.CovalentVirtualScrollModule=Y,e.TdVirtualScrollContainerComponent=U,e.TdVirtualScrollRowDirective=H,e.CovalentNotificationsModule=te,e.TdNotificationCountPositionY=K,e.TdNotificationCountPositionX=Z,e.DEFAULT_NOTIFICATION_LIMIT=99,e.TdNotificationCountComponent=Q,e.CovalentCommonModule=Ie,e.tdRotateAnimation=Te,e.tdCollapseAnimation=Ee,e.tdFadeInOutAnimation=Me,e.tdBounceAnimation=Le,e.tdFlashAnimation=je,e.tdHeadshakeAnimation=Ae,e.tdJelloAnimation=ze,e.tdPulseAnimation=Fe,e.mixinControlValueAccessor=function Ga(e,i){return F(t,o=e),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(e){e!==this._value&&(this._value=e,this.onChange(e),this._changeDetectorRef.markForCheck(),this._subjectValueChanges.next(e))},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(e){this.value=e,this._changeDetectorRef.markForCheck()},t.prototype.registerOnChange=function(e){this.onChange=e},t.prototype.registerOnTouched=function(e){this.onTouched=e},t;function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.apply(this,N(e))||this;return n._value=i instanceof Array?Object.assign([],i):i,n.onChange=function(e){return Pe},n.onTouched=function(){return Pe},n._subjectValueChanges=new C.Subject,n.valueChanges=n._subjectValueChanges.asObservable(),n}var o},e.mixinDisabled=function Ka(e){return F(t,i=e),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(e){var t=S.coerceBooleanProperty(e);this._disabled!==t&&(this._disabled=t,this.onDisabledChange(this._disabled))},enumerable:!0,configurable:!0}),t.prototype.onDisabledChange=function(e){},t;function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.apply(this,N(e))||this;return n._disabled=!1,n}var i},e.mixinDisableRipple=function Za(e){return F(t,i=e),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(e){var t=S.coerceBooleanProperty(e);this._disableRipple!==t&&(this._disableRipple=t,this.onDisableRippleChange(this._disableRipple))},enumerable:!0,configurable:!0}),t.prototype.onDisableRippleChange=function(e){},t;function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.apply(this,N(e))||this;return n._disableRipple=!1,n}var i},e.TdAutoTrimDirective=ie,e.CovalentValidators=Be,e.TdTimeAgoPipe=se,e.TdTimeDifferencePipe=ce,e.TdBytesPipe=he,e.TdDigitsPipe=be,e.TdTruncatePipe=ye,e.TdDecimalBytesPipe=ge,e.CovalentMessageModule=Xe,e.TdMessageContainerDirective=Ne,e.TdMessageComponent=He,e.CovalentChipsModule=at,e.TdChipDirective=Ge,e.TdAutocompleteOptionDirective=Qe,e.TdChipsBase=et,e._TdChipsMixinBase=nt,e.TdChipsComponent=it,e.CovalentDataTableModule=Tt,e.TdDataTableSortingOrder=ft,e.TdDataTableBase=mt,e._TdDataTableMixinBase=bt,e.TdDataTableComponent=_t,e.TdDataTableCellComponent=wt,e.TdDataTableColumnComponent=vt,e.TdDataTableColumnRowComponent=st,e.TdDataTableRowComponent=ct,e.TdDataTableTableComponent=Ct,e.TdDataTableTemplateDirective=ut,e.DATA_TABLE_PROVIDER_FACTORY=It,e.TdDataTableService=Ot,e.DATA_TABLE_PROVIDER=St,e.CovalentDialogsModule=Zt,e.TdDialogTitleDirective=Mt,e.TdDialogContentDirective=jt,e.TdDialogActionsDirective=zt,e.TdDialogComponent=Bt,e.TdAlertDialogComponent=Nt,e.TdConfirmDialogComponent=Ht,e.TdPromptDialogComponent=Ut,e.TdDialogService=$t,e.CovalentExpansionPanelModule=yn,e.TdExpansionPanelHeaderDirective=en,e.TdExpansionPanelLabelDirective=on,e.TdExpansionPanelSublabelDirective=sn,e.TdExpansionPanelSummaryComponent=cn,e.TdExpansionPanelBase=pn,e._TdExpansionPanelMixinBase=hn,e.TdExpansionPanelComponent=mn,e.TdExpansionPanelGroupComponent=fn,e.CovalentFileModule=Wn,e.TdFileDropBase=kn,e._TdFileDropMixinBase=Rn,e.TdFileDropDirective=On,e.TdFileSelectDirective=xn,e.TdFileInputLabelDirective=Sn,e.TdFileInputBase=Tn,e._TdFileInputMixinBase=Mn,e.TdFileInputComponent=Ln,e.TdFileUploadBase=An,e._TdFileUploadMixinBase=Fn,e.TdFileUploadComponent=Bn,e.TdFileService=Nn,e.CovalentJsonFormatterModule=Yn,e.TdJsonFormatterComponent=Xn,e.CovalentLayoutModule=$i,e.TdLayoutComponent=Kn,e.TdLayoutToggleDirective=oi,e.TdLayoutCloseDirective=si,e.TdLayoutOpenDirective=di,e.LayoutToggleBase=Qn,e._TdLayoutToggleMixinBase=ei,e.LayoutToggle=ti,e.TdLayoutCardOverComponent=Ri,e.TdLayoutFooterComponent=Fi,e.TdLayoutManageListComponent=Di,e.TdLayoutManageListToggleDirective=Pi,e.TdLayoutManageListCloseDirective=Mi,e.TdLayoutManageListOpenDirective=Ai,e.TdLayoutNavComponent=ui,e.TdLayoutNavListComponent=mi,e.TdLayoutNavListToggleDirective=bi,e.TdLayoutNavListCloseDirective=vi,e.TdLayoutNavListOpenDirective=ki,e.TdNavigationDrawerMenuDirective=Vi,e.TdNavigationDrawerToolbarDirective=qi,e.TdNavigationDrawerComponent=Wi,e.CovalentLoadingModule=vo,e.LoadingType=Gi,e.LoadingMode=Ki,e.LoadingStrategy=Zi,e.LoadingStyle=Qi,e.TD_CIRCLE_DIAMETER=100,e.TdLoadingComponent=Ji,e.TdLoadingContext=mo,e.TdLoadingDirective=fo,e.LOADING_PROVIDER_FACTORY=uo,e.TdLoadingConfig=ro,e.TdLoadingDirectiveConfig=so,e.TdLoadingService=co,e.LOADING_PROVIDER=ho,e.LOADING_FACTORY_PROVIDER_FACTORY=io,e.TdLoadingFactory=to,e.LOADING_FACTORY_PROVIDER=ao,e.CovalentMediaModule=So,e.TdMediaToggleDirective=Oo,e.MEDIA_PROVIDER_FACTORY=Co,e.TdMediaService=wo,e.MEDIA_PROVIDER=Ro,e.CovalentMenuModule=Lo,e.TdMenuComponent=To,e.CovalentSearchModule=Xo,e.TdSearchBoxBase=No,e._TdSearchBoxMixinBase=Ho,e.TdSearchBoxComponent=Wo,e.TdSearchInputBase=Ao,e._TdSearchInputMixinBase=Fo,e.TdSearchInputComponent=Bo,e.CovalentBreadcrumbsModule=Qo,e.TdBreadcrumbsComponent=Ko,e.CovalentStepsModule=Ma,e.StepState=ta,e.TdStepLabelDirective=na,e.TdStepActionsDirective=aa,e.TdStepSummaryDirective=la,e.TdStepBase=da,e._TdStepMixinBase=ua,e.TdStepComponent=ha,e.StepMode=ga,e.TdStepsComponent=fa,e.TdStepBodyComponent=ka,e.TdStepHeaderBase=_a,e._TdStepHeaderMixinBase=va,e.TdStepHeaderComponent=xa,e.CovalentTabSelectModule=Ua,e.TdTabSelectBase=Va,e._TdTabSelectMixinBase=qa,e.TdTabSelectComponent=Ha,e.TdTabOptionBase=ja,e._TdTabOptionMixinBase=za,e.TdTabOptionComponent=Fa,e.ɵe=Yo,e.ɵa=ae,e.ɵb=pe,e.ɵd=ke,e.ɵc=xe,e.ɵg=Oa,e.ɵf=Ia,e.ɵh=Pa,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=covalent-core.umd.min.js.map