UNPKG

@angular/material

Version:
30 lines 45.6 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/cdk/a11y"),require("@angular/cdk/observers"),require("@angular/cdk/portal"),require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("@angular/platform-browser/animations"),require("tslib"),require("rxjs"),require("@angular/cdk/bidi"),require("@angular/animations"),require("rxjs/operators"),require("@angular/cdk/coercion"),require("@angular/cdk/scrolling"),require("@angular/cdk/platform"),require("@angular/cdk/keycodes")):"function"==typeof define&&define.amd?define("@angular/material/tabs",["exports","@angular/cdk/a11y","@angular/cdk/observers","@angular/cdk/portal","@angular/common","@angular/core","@angular/material/core","@angular/platform-browser/animations","tslib","rxjs","@angular/cdk/bidi","@angular/animations","rxjs/operators","@angular/cdk/coercion","@angular/cdk/scrolling","@angular/cdk/platform","@angular/cdk/keycodes"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.tabs={}),t.ng.cdk.a11y,t.ng.cdk.observers,t.ng.cdk.portal,t.ng.common,t.ng.core,t.ng.material.core,t.ng.platformBrowser.animations,t.tslib,t.rxjs,t.ng.cdk.bidi,t.ng.animations,t.rxjs.operators,t.ng.cdk.coercion,t.ng.cdk.scrolling,t.ng.cdk.platform,t.ng.cdk.keycodes)}(this,(function(t,e,a,n,i,o,r,s,l,c,p,d,b,h,u,m,g){"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var f=new o.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:_});function _(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}var y=function(){function t(t,e,a,n){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=a,this._animationMode=n}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._inkBarPositioner(t),a=this._elementRef.nativeElement;a.style.left=e.left,a.style.width=e.width},t.decorators=[{type:o.Directive,args:[{selector:"mat-ink-bar",host:{class:"mat-ink-bar","[class._mat-animation-noopable]":"_animationMode === 'NoopAnimations'"}}]}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.NgZone},{type:void 0,decorators:[{type:o.Inject,args:[f]}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},t}(),v=function(){function t(t){this.template=t}return t.decorators=[{type:o.Directive,args:[{selector:"[matTabContent]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef}]},t}(),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l.__extends(e,t),e.decorators=[{type:o.Directive,args:[{selector:"[mat-tab-label], [matTabLabel]"}]}],e}(n.CdkPortal),C=r.mixinDisabled((function k(){})),I=new o.InjectionToken("MAT_TAB_GROUP"),P=function(t){function e(e,a){var n=t.call(this)||this;return n._viewContainerRef=e,n._closestTabGroup=a,n.textLabel="",n._contentPortal=null,n._stateChanges=new c.Subject,n.position=null,n.origin=null,n.isActive=!1,n}return l.__extends(e,t),Object.defineProperty(e.prototype,"templateLabel",{get:function(){return this._templateLabel},set:function(t){t&&(this._templateLabel=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.prototype.ngOnInit=function(){this._contentPortal=new n.TemplatePortal(this._explicitContent||this._implicitContent,this._viewContainerRef)},e.decorators=[{type:o.Component,args:[{selector:"mat-tab",template:"\x3c!-- Create a template for the content of the <mat-tab> so that we can grab a reference to this\n TemplateRef and use it in a Portal to render the tab content in the appropriate place in the\n tab-group. --\x3e\n<ng-template><ng-content></ng-content></ng-template>\n",inputs:["disabled"],changeDetection:o.ChangeDetectionStrategy.Default,encapsulation:o.ViewEncapsulation.None,exportAs:"matTab"}]}],e.ctorParameters=function(){return[{type:o.ViewContainerRef},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[I]}]}]},e.propDecorators={templateLabel:[{type:o.ContentChild,args:[x]}],_explicitContent:[{type:o.ContentChild,args:[v,{read:o.TemplateRef,static:!0}]}],_implicitContent:[{type:o.ViewChild,args:[o.TemplateRef,{static:!0}]}],textLabel:[{type:o.Input,args:["label"]}],ariaLabel:[{type:o.Input,args:["aria-label"]}],ariaLabelledby:[{type:o.Input,args:["aria-labelledby"]}]},e}(C),T={translateTab:d.trigger("translateTab",[d.state("center, void, left-origin-center, right-origin-center",d.style({transform:"none"})),d.state("left",d.style({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),d.state("right",d.style({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),d.transition("* => left, * => right, left => center, right => center",d.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),d.transition("void => left-origin-center",[d.style({transform:"translate3d(-100%, 0, 0)"}),d.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),d.transition("void => right-origin-center",[d.style({transform:"translate3d(100%, 0, 0)"}),d.animate("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},D=function(t){function e(e,a,n,i){var o=t.call(this,e,a,i)||this;return o._host=n,o._centeringSub=c.Subscription.EMPTY,o._leavingSub=c.Subscription.EMPTY,o}return l.__extends(e,t),e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._centeringSub=this._host._beforeCentering.pipe(b.startWith(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()},e.decorators=[{type:o.Directive,args:[{selector:"[matTabBodyHost]"}]}],e.ctorParameters=function(){return[{type:o.ComponentFactoryResolver},{type:o.ViewContainerRef},{type:E,decorators:[{type:o.Inject,args:[o.forwardRef((function(){return E}))]}]},{type:void 0,decorators:[{type:o.Inject,args:[i.DOCUMENT]}]}]},e}(n.CdkPortalOutlet),w=function(){function t(t,e,a){var n=this;this._elementRef=t,this._dir=e,this._dirChangeSubscription=c.Subscription.EMPTY,this._translateTabComplete=new c.Subject,this._onCentering=new o.EventEmitter,this._beforeCentering=new o.EventEmitter,this._afterLeavingCenter=new o.EventEmitter,this._onCentered=new o.EventEmitter(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe((function(t){n._computePositionAnimationState(t),a.markForCheck()}))),this._translateTabComplete.pipe(b.distinctUntilChanged((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){n._isCenterPosition(t.toState)&&n._isCenterPosition(n._position)&&n._onCentered.emit(),n._isCenterPosition(t.fromState)&&!n._isCenterPosition(n._position)&&n._afterLeavingCenter.emit()}))}return Object.defineProperty(t.prototype,"position",{set:function(t){this._positionIndex=t,this._computePositionAnimationState()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))},t.prototype.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.prototype._computePositionAnimationState=function(t){void 0===t&&(t=this._getLayoutDirection()),this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"},t.prototype._computePositionFromOrigin=function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"},t.decorators=[{type:o.Directive}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.ChangeDetectorRef}]},t.propDecorators={_onCentering:[{type:o.Output}],_beforeCentering:[{type:o.Output}],_afterLeavingCenter:[{type:o.Output}],_onCentered:[{type:o.Output}],_content:[{type:o.Input,args:["content"]}],origin:[{type:o.Input}],animationDuration:[{type:o.Input}],position:[{type:o.Input}]},t}(),E=function(t){function e(e,a,n){return t.call(this,e,a,n)||this}return l.__extends(e,t),e.decorators=[{type:o.Component,args:[{selector:"mat-tab-body",template:'<div class="mat-tab-body-content" #content\n [@translateTab]="{\n value: _position,\n params: {animationDuration: animationDuration}\n }"\n (@translateTab.start)="_onTranslateTabStarted($event)"\n (@translateTab.done)="_translateTabComplete.next($event)">\n <ng-template matTabBodyHost></ng-template>\n</div>\n',encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.Default,animations:[T.translateTab],host:{class:"mat-tab-body"},styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"]}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.ChangeDetectorRef}]},e.propDecorators={_portalHost:[{type:o.ViewChild,args:[n.PortalHostDirective]}]},e}(w),R=new o.InjectionToken("MAT_TABS_CONFIG"),O=0,L=function L(){},S=function(t){function e(e,a,n,i){var r=t.call(this,e)||this;return r._changeDetectorRef=a,r._animationMode=i,r._tabs=new o.QueryList,r._indexToSelect=0,r._tabBodyWrapperHeight=0,r._tabsSubscription=c.Subscription.EMPTY,r._tabLabelSubscription=c.Subscription.EMPTY,r._dynamicHeight=!1,r._selectedIndex=null,r.headerPosition="above",r.selectedIndexChange=new o.EventEmitter,r.focusChange=new o.EventEmitter,r.animationDone=new o.EventEmitter,r.selectedTabChange=new o.EventEmitter(!0),r._groupId=O++,r.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",r.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination,r}return l.__extends(e,t),Object.defineProperty(e.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=h.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=h.coerceNumberProperty(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var a=null==this._selectedIndex;a||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,a){return t.isActive=a===e})),a||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(a,n){a.position=n-e,null==t._selectedIndex||0!=a.position||a.origin||(a.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},e.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),a=0;a<e.length;a++)if(e[a].isActive){t._indexToSelect=t._selectedIndex=a;break}t._changeDetectorRef.markForCheck()}))},e.prototype._subscribeToAllTabChanges=function(){var t=this;this._allTabs.changes.pipe(b.startWith(this._allTabs)).subscribe((function(e){t._tabs.reset(e.filter((function(e){return!e._closestTabGroup||e._closestTabGroup===t}))),t._tabs.notifyOnChanges()}))},e.prototype.ngOnDestroy=function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()},e.prototype.realignInkBar=function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()},e.prototype._focusChanged=function(t){this.focusChange.emit(this._createChangeEvent(t))},e.prototype._createChangeEvent=function(t){var e=new L;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e},e.prototype._subscribeToTabLabels=function(){var t=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=c.merge.apply(void 0,l.__spread(this._tabs.map((function(t){return t._stateChanges})))).subscribe((function(){return t._changeDetectorRef.markForCheck()}))},e.prototype._clampTabIndex=function(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))},e.prototype._getTabLabelId=function(t){return"mat-tab-label-"+this._groupId+"-"+t},e.prototype._getTabContentId=function(t){return"mat-tab-content-"+this._groupId+"-"+t},e.prototype._setTabBodyWrapperHeight=function(t){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}},e.prototype._removeTabBodyWrapperHeight=function(){var t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()},e.prototype._handleClick=function(t,e,a){t.disabled||(this.selectedIndex=e.focusIndex=a)},e.prototype._getTabIndex=function(t,e){return t.disabled?null:this.selectedIndex===e?0:-1},e.decorators=[{type:o.Directive}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:void 0,decorators:[{type:o.Inject,args:[R]},{type:o.Optional}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={dynamicHeight:[{type:o.Input}],selectedIndex:[{type:o.Input}],headerPosition:[{type:o.Input}],animationDuration:[{type:o.Input}],disablePagination:[{type:o.Input}],backgroundColor:[{type:o.Input}],selectedIndexChange:[{type:o.Output}],focusChange:[{type:o.Output}],animationDone:[{type:o.Output}],selectedTabChange:[{type:o.Output}]},e}(r.mixinColor(r.mixinDisableRipple((function M(t){this._elementRef=t})),"primary")),A=function(t){function e(e,a,n,i){return t.call(this,e,a,n,i)||this}return l.__extends(e,t),e.decorators=[{type:o.Component,args:[{selector:"mat-tab-group",exportAs:"matTabGroup",template:'<mat-tab-header #tabHeader\n [selectedIndex]="selectedIndex || 0"\n [disableRipple]="disableRipple"\n [disablePagination]="disablePagination"\n (indexFocused)="_focusChanged($event)"\n (selectFocusedIndex)="selectedIndex = $event">\n <div class="mat-tab-label" role="tab" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor="let tab of _tabs; let i = index"\n [id]="_getTabLabelId(i)"\n [attr.tabIndex]="_getTabIndex(tab, i)"\n [attr.aria-posinset]="i + 1"\n [attr.aria-setsize]="_tabs.length"\n [attr.aria-controls]="_getTabContentId(i)"\n [attr.aria-selected]="selectedIndex == i"\n [attr.aria-label]="tab.ariaLabel || null"\n [attr.aria-labelledby]="(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null"\n [class.mat-tab-label-active]="selectedIndex == i"\n [disabled]="tab.disabled"\n [matRippleDisabled]="tab.disabled || disableRipple"\n (click)="_handleClick(tab, tabHeader, i)">\n\n\n <div class="mat-tab-label-content">\n \x3c!-- If there is a label template, use it. --\x3e\n <ng-template [ngIf]="tab.templateLabel">\n <ng-template [cdkPortalOutlet]="tab.templateLabel"></ng-template>\n </ng-template>\n\n \x3c!-- If there is not a label template, fall back to the text label. --\x3e\n <ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class="mat-tab-body-wrapper"\n [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n #tabBodyWrapper>\n <mat-tab-body role="tabpanel"\n *ngFor="let tab of _tabs; let i = index"\n [id]="_getTabContentId(i)"\n [attr.aria-labelledby]="_getTabLabelId(i)"\n [class.mat-tab-body-active]="selectedIndex == i"\n [content]="tab.content!"\n [position]="tab.position!"\n [origin]="tab.origin"\n [animationDuration]="animationDuration"\n (_onCentered)="_removeTabBodyWrapperHeight()"\n (_onCentering)="_setTabBodyWrapperHeight($event)">\n </mat-tab-body>\n</div>\n',encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.Default,inputs:["color","disableRipple"],providers:[{provide:I,useExisting:e}],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:void 0,decorators:[{type:o.Inject,args:[R]},{type:o.Optional}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={_allTabs:[{type:o.ContentChildren,args:[P,{descendants:!0}]}],_tabBodyWrapper:[{type:o.ViewChild,args:["tabBodyWrapper"]}],_tabHeader:[{type:o.ViewChild,args:["tabHeader"]}]},e}(S),B=function(t){function e(e){var a=t.call(this)||this;return a.elementRef=e,a}return l.__extends(e,t),e.prototype.focus=function(){this.elementRef.nativeElement.focus()},e.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},e.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},e.decorators=[{type:o.Directive,args:[{selector:"[matTabLabelWrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled","[attr.aria-disabled]":"!!disabled"}}]}],e.ctorParameters=function(){return[{type:o.ElementRef}]},e}(r.mixinDisabled((function j(){}))),N=m.normalizePassiveListenerOptions({passive:!0}),H=function(){function t(t,e,a,n,i,r,s){var l=this;this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=a,this._dir=n,this._ngZone=i,this._platform=r,this._animationMode=s,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new c.Subject,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new c.Subject,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new o.EventEmitter,this.indexFocused=new o.EventEmitter,i.runOutsideAngular((function(){c.fromEvent(t.nativeElement,"mouseleave").pipe(b.takeUntil(l._destroyed)).subscribe((function(){l._stopInterval()}))}))}return Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){t=h.coerceNumberProperty(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;c.fromEvent(this._previousPaginator.nativeElement,"touchstart",N).pipe(b.takeUntil(this._destroyed)).subscribe((function(){t._handlePaginatorPress("before")})),c.fromEvent(this._nextPaginator.nativeElement,"touchstart",N).pipe(b.takeUntil(this._destroyed)).subscribe((function(){t._handlePaginatorPress("after")}))},t.prototype.ngAfterContentInit=function(){var t=this,a=this._dir?this._dir.change:c.of(null),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new e.FocusKeyManager(this._items).withHorizontalOrientation(this._getLayoutDirection()).withWrap(),this._keyManager.updateActiveItem(0),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),c.merge(a,n,this._items.changes).pipe(b.takeUntil(this._destroyed)).subscribe((function(){i(),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())})),this._keyManager.change.pipe(b.takeUntil(this._destroyed)).subscribe((function(e){t.indexFocused.emit(e),t._setTabFocus(e)}))},t.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()},t.prototype._handleKeydown=function(t){if(!g.hasModifierKey(t))switch(t.keyCode){case g.HOME:this._keyManager.setFirstItemActive(),t.preventDefault();break;case g.END:this._keyManager.setLastItemActive(),t.preventDefault();break;case g.ENTER:case g.SPACE:this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t);break;default:this._keyManager.onKeydown(t)}},t.prototype._onContentChanges=function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run((function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()})))},t.prototype.updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)},enumerable:!0,configurable:!0}),t.prototype._isValidIndex=function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled},t.prototype._setTabFocus=function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,a=this._getLayoutDirection();e.scrollLeft="ltr"==a?0:e.scrollWidth-e.offsetWidth}},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._updateTabScrollPosition=function(){if(!this.disablePagination){var t=this.scrollDistance,e=this._platform,a="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX("+Math.round(a)+"px)",e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}},Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)},enumerable:!0,configurable:!0}),t.prototype._scrollHeader=function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)},t.prototype._handlePaginatorClick=function(t){this._stopInterval(),this._scrollHeader(t)},t.prototype._scrollToLabel=function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var a,n,i=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,r=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?n=(a=r)+s:a=(n=this._tabList.nativeElement.offsetWidth-r)-s;var l=this.scrollDistance,c=this.scrollDistance+i;a<l?this.scrollDistance-=l-a+60:n>c&&(this.scrollDistance+=n-c+60)}}},t.prototype._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}},t.prototype._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()},t.prototype._stopInterval=function(){this._stopScrolling.next()},t.prototype._handlePaginatorPress=function(t,e){var a=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),c.timer(650,100).pipe(b.takeUntil(c.merge(this._stopScrolling,this._destroyed))).subscribe((function(){var e=a._scrollHeader(t),n=e.distance;(0===n||n>=e.maxScrollDistance)&&a._stopInterval()})))},t.prototype._scrollTo=function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}},t.decorators=[{type:o.Directive}],t.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:u.ViewportRuler},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.NgZone},{type:m.Platform},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},t.propDecorators={disablePagination:[{type:o.Input}]},t}(),F=function(t){function e(e,a,n,i,o,r,s){var l=t.call(this,e,a,n,i,o,r,s)||this;return l._disableRipple=!1,l}return l.__extends(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=h.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(t){t.preventDefault()},e.decorators=[{type:o.Directive}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:u.ViewportRuler},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.NgZone},{type:m.Platform},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={disableRipple:[{type:o.Input}]},e}(H),W=function(t){function e(e,a,n,i,o,r,s){return t.call(this,e,a,n,i,o,r,s)||this}return l.__extends(e,t),e.decorators=[{type:o.Component,args:[{selector:"mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4"\n #previousPaginator\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple"\n [class.mat-tab-header-pagination-disabled]="_disableScrollBefore"\n (click)="_handlePaginatorClick(\'before\')"\n (mousedown)="_handlePaginatorPress(\'before\', $event)"\n (touchend)="_stopInterval()">\n <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n\n<div class="mat-tab-label-container" #tabListContainer (keydown)="_handleKeydown($event)">\n <div\n #tabList\n class="mat-tab-list"\n [class._mat-animation-noopable]="_animationMode === \'NoopAnimations\'"\n role="tablist"\n (cdkObserveContent)="_onContentChanges()">\n <div class="mat-tab-labels">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4"\n #nextPaginator\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple"\n [class.mat-tab-header-pagination-disabled]="_disableScrollAfter"\n (mousedown)="_handlePaginatorPress(\'after\', $event)"\n (click)="_handlePaginatorClick(\'after\')"\n (touchend)="_stopInterval()">\n <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n',inputs:["selectedIndex"],outputs:["selectFocusedIndex","indexFocused"],encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.Default,host:{class:"mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"},styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n']}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:o.ChangeDetectorRef},{type:u.ViewportRuler},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.NgZone},{type:m.Platform},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={_items:[{type:o.ContentChildren,args:[B,{descendants:!1}]}],_inkBar:[{type:o.ViewChild,args:[y,{static:!0}]}],_tabListContainer:[{type:o.ViewChild,args:["tabListContainer",{static:!0}]}],_tabList:[{type:o.ViewChild,args:["tabList",{static:!0}]}],_nextPaginator:[{type:o.ViewChild,args:["nextPaginator"]}],_previousPaginator:[{type:o.ViewChild,args:["previousPaginator"]}]},e}(F),V=function(t){function e(e,a,n,i,o,r,s){var l=t.call(this,e,i,o,a,n,r,s)||this;return l._disableRipple=!1,l.color="primary",l}return l.__extends(e,t),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=h.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this._items.changes.pipe(b.startWith(null),b.takeUntil(this._destroyed)).subscribe((function(){e.updateActiveLink()})),t.prototype.ngAfterContentInit.call(this)},e.prototype.updateActiveLink=function(t){if(this._items){for(var e=this._items.toArray(),a=0;a<e.length;a++)if(e[a].active)return this.selectedIndex=a,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}},e.decorators=[{type:o.Directive}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:u.ViewportRuler},{type:m.Platform,decorators:[{type:o.Optional}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={backgroundColor:[{type:o.Input}],disableRipple:[{type:o.Input}],color:[{type:o.Input}]},e}(H),z=function(t){function e(e,a,n,i,o,r,s){return t.call(this,e,a,n,i,o,r,s)||this}return l.__extends(e,t),e.decorators=[{type:o.Component,args:[{selector:"[mat-tab-nav-bar]",exportAs:"matTabNavBar, matTabNav",inputs:["color"],template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4"\n #previousPaginator\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollBefore || disableRipple"\n [class.mat-tab-header-pagination-disabled]="_disableScrollBefore"\n (click)="_handlePaginatorClick(\'before\')"\n (mousedown)="_handlePaginatorPress(\'before\', $event)"\n (touchend)="_stopInterval()">\n <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n\n<div class="mat-tab-link-container" #tabListContainer (keydown)="_handleKeydown($event)">\n <div class="mat-tab-list" #tabList (cdkObserveContent)="_onContentChanges()">\n <div class="mat-tab-links">\n <ng-content></ng-content>\n </div>\n <mat-ink-bar></mat-ink-bar>\n </div>\n</div>\n\n<div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4"\n #nextPaginator\n aria-hidden="true"\n mat-ripple [matRippleDisabled]="_disableScrollAfter || disableRipple"\n [class.mat-tab-header-pagination-disabled]="_disableScrollAfter"\n (mousedown)="_handlePaginatorPress(\'after\', $event)"\n (click)="_handlePaginatorClick(\'after\')"\n (touchend)="_stopInterval()">\n <div class="mat-tab-header-pagination-chevron"></div>\n</div>\n',host:{class:"mat-tab-nav-bar mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'","[class.mat-primary]":'color !== "warn" && color !== "accent"',"[class.mat-accent]":'color === "accent"',"[class.mat-warn]":'color === "warn"'},encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.Default,styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center] .mat-tab-links{justify-content:center}[mat-align-tabs=end] .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n']}]}],e.ctorParameters=function(){return[{type:o.ElementRef},{type:p.Directionality,decorators:[{type:o.Optional}]},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:u.ViewportRuler},{type:m.Platform,decorators:[{type:o.Optional}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},e.propDecorators={_items:[{type:o.ContentChildren,args:[o.forwardRef((function(){return Y})),{descendants:!0}]}],_inkBar:[{type:o.ViewChild,args:[y,{static:!0}]}],_tabListContainer:[{type:o.ViewChild,args:["tabListContainer",{static:!0}]}],_tabList:[{type:o.ViewChild,args:["tabList",{static:!0}]}],_nextPaginator:[{type:o.ViewChild,args:["nextPaginator"]}],_previousPaginator:[{type:o.ViewChild,args:["previousPaginator"]}]},e}(V),U=function(t){function a(e,a,n,i,o,r){var s=t.call(this)||this;return s._tabNavBar=e,s.elementRef=a,s._focusMonitor=o,s._isActive=!1,s.rippleConfig=n||{},s.tabIndex=parseInt(i)||0,"NoopAnimations"===r&&(s.rippleConfig.animation={enterDuration:0,exitDuration:0}),o.monitor(a),s}return l.__extends(a,t),Object.defineProperty(a.prototype,"active",{get:function(){return this._isActive},set:function(t){t!==this._isActive&&(this._isActive=t,this._tabNavBar.updateActiveLink(this.elementRef))},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled},enumerable:!0,configurable:!0}),a.prototype.focus=function(){this.elementRef.nativeElement.focus()},a.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this.elementRef)},a.decorators=[{type:o.Directive}],a.ctorParameters=function(){return[{type:V},{type:o.ElementRef},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[r.MAT_RIPPLE_GLOBAL_OPTIONS]}]},{type:String,decorators:[{type:o.Attribute,args:["tabindex"]}]},{type:e.FocusMonitor},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},a.propDecorators={active:[{type:o.Input}]},a}(r.mixinTabIndex(r.mixinDisableRipple(r.mixinDisabled((function q(){}))))),Y=function(t){function a(e,a,n,i,o,s,l,c){var p=t.call(this,e,a,o,s,l,c)||this;return p._tabLinkRipple=new r.RippleRenderer(p,n,a,i),p._tabLinkRipple.setupTriggerEvents(a.nativeElement),p}return l.__extends(a,t),a.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._tabLinkRipple._removeTriggerEvents()},a.decorators=[{type:o.Directive,args:[{selector:"[mat-tab-link], [matTabLink]",exportAs:"matTabLink",inputs:["disabled","disableRipple","tabIndex"],host:{class:"mat-tab-link","[attr.aria-current]":'active ? "page" : null',"[attr.aria-disabled]":"disabled","[attr.tabIndex]":"tabIndex","[class.mat-tab-disabled]":"disabled","[class.mat-tab-label-active]":"active"}}]}],a.ctorParameters=function(){return[{type:z},{type:o.ElementRef},{type:o.NgZone},{type:m.Platform},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[r.MAT_RIPPLE_GLOBAL_OPTIONS]}]},{type:String,decorators:[{type:o.Attribute,args:["tabindex"]}]},{type:e.FocusMonitor},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[s.ANIMATION_MODULE_TYPE]}]}]},a}(U),G=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[i.CommonModule,r.MatCommonModule,n.PortalModule,r.MatRippleModule,a.ObserversModule,e.A11yModule],exports:[r.MatCommonModule,A,x,P,z,Y,v],declarations:[A,x,P,y,B,z,Y,E,D,W,v]}]}],t}(); /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ t.MAT_TABS_CONFIG=R,t.MAT_TAB_GROUP=I,t.MatInkBar=y,t.MatTab=P,t.MatTabBody=E,t.MatTabBodyPortal=D,t.MatTabChangeEvent=L,t.MatTabContent=v,t.MatTabGroup=A,t.MatTabHeader=W,t.MatTabLabel=x,t.MatTabLabelWrapper=B,t.MatTabLink=Y,t.MatTabNav=z,t.MatTabsModule=G,t._MAT_INK_BAR_POSITIONER=f,t._MatTabBodyBase=w,t._MatTabGroupBase=S,t._MatTabHeaderBase=F,t._MatTabLinkBase=U,t._MatTabNavBase=V,t.matTabsAnimations=T,t.ɵangular_material_src_material_tabs_tabs_a=_,t.ɵangular_material_src_material_tabs_tabs_b=H,Object.defineProperty(t,"__esModule",{value:!0})}));