blob: 4b94db8976faf747bb7a3e158f1dd58935677462 [file] [log] [blame]
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/cdk/platform"),require("@angular/cdk/scrolling"),require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("rxjs"),require("rxjs/operators"),require("@angular/animations"),require("@angular/platform-browser/animations")):"function"==typeof define&&define.amd?define("@angular/material/sidenav",["exports","@angular/cdk/platform","@angular/cdk/scrolling","@angular/common","@angular/core","@angular/material/core","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/keycodes","rxjs","rxjs/operators","@angular/animations","@angular/platform-browser/animations"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.sidenav={}),t.ng.cdk.platform,t.ng.cdk.scrolling,t.ng.common,t.ng.core,t.ng.material.core,t.ng.cdk.a11y,t.ng.cdk.bidi,t.ng.cdk.coercion,t.ng.cdk.keycodes,t.rxjs,t.rxjs.operators,t.ng.animations,t.ng.platformBrowser.animations)}(this,(function(t,e,n,r,o,a,i,s,c,d,p,l,u,h){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,a=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function _(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(g(arguments[e]));return 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
*/
var w={transformDrawer:u.trigger("transform",[u.state("open, open-instant",u.style({transform:"none",visibility:"visible"})),u.state("void",u.style({"box-shadow":"none",visibility:"hidden"})),u.transition("void => open-instant",u.animate("0ms")),u.transition("void <=> open, open-instant => void",u.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},y=new o.InjectionToken("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:v}),b=new o.InjectionToken("MAT_DRAWER_CONTAINER");function v(){return!1}var k=function(t){function e(e,n,r,o,a){var i=t.call(this,r,o,a)||this;return i._changeDetectorRef=e,i._container=n,i}return f(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe((function(){t._changeDetectorRef.markForCheck()}))},e}(n.CdkScrollable);k.decorators=[{type:o.Component,args:[{selector:"mat-drawer-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content","[style.margin-left.px]":"_container._contentMargins.left","[style.margin-right.px]":"_container._contentMargins.right"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None}]}],k.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:x,decorators:[{type:o.Inject,args:[o.forwardRef((function(){return x}))]}]},{type:o.ElementRef},{type:n.ScrollDispatcher},{type:o.NgZone}]};var C=function(){function t(t,e,n,r,a,i,s){var c=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=r,this._ngZone=a,this._doc=i,this._container=s,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new p.Subject,this._animationEnd=new p.Subject,this._animationState="void",this.openedChange=new o.EventEmitter(!0),this._openedStream=this.openedChange.pipe(l.filter((function(t){return t})),l.map((function(){}))),this.openedStart=this._animationStarted.pipe(l.filter((function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")})),l.mapTo(void 0)),this._closedStream=this.openedChange.pipe(l.filter((function(t){return!t})),l.map((function(){}))),this.closedStart=this._animationStarted.pipe(l.filter((function(t){return t.fromState!==t.toState&&"void"===t.toState})),l.mapTo(void 0)),this._destroyed=new p.Subject,this.onPositionChanged=new o.EventEmitter,this._modeChanged=new p.Subject,this.openedChange.subscribe((function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()})),this._ngZone.runOutsideAngular((function(){p.fromEvent(c._elementRef.nativeElement,"keydown").pipe(l.filter((function(t){return t.keyCode===d.ESCAPE&&!c.disableClose&&!d.hasModifierKey(t)})),l.takeUntil(c._destroyed)).subscribe((function(t){return c._ngZone.run((function(){c.close(),t.stopPropagation(),t.preventDefault()}))}))})),this._animationEnd.pipe(l.distinctUntilChanged((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=c.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=c.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(c.coerceBooleanProperty(t))},enumerable:!1,configurable:!0}),t.prototype._takeFocus=function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then((function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()}))},t.prototype._restoreFocus=function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)},t.prototype._isFocusWithinDrawer=function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype._closeViaBackdropClick=function(){return this._setOpen(!1,!0)},t.prototype.toggle=function(t,e){return void 0===t&&(t=!this.opened),this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)},t.prototype._setOpen=function(t,e,n){var r=this;return void 0===n&&(n="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise((function(t){r.openedChange.pipe(l.take(1)).subscribe((function(e){return t(e?"open":"close")}))}))},t.prototype._getWidth=function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},t.prototype._updateFocusTrapState=function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)},t.prototype._animationStartListener=function(t){this._animationStarted.next(t)},t.prototype._animationDoneListener=function(t){this._animationEnd.next(t)},t}();C.decorators=[{type:o.Component,args:[{selector:"mat-drawer",exportAs:"matDrawer",template:'<div class="mat-drawer-inner-container" cdkScrollable>\r\n <ng-content></ng-content>\r\n</div>\r\n',animations:[w.transformDrawer],host:{class:"mat-drawer","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',"[class.mat-drawer-opened]":"opened",tabIndex:"-1"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None}]}],C.ctorParameters=function(){return[{type:o.ElementRef},{type:i.FocusTrapFactory},{type:i.FocusMonitor},{type:e.Platform},{type:o.NgZone},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[r.DOCUMENT]}]},{type:x,decorators:[{type:o.Optional},{type:o.Inject,args:[b]}]}]},C.propDecorators={position:[{type:o.Input}],mode:[{type:o.Input}],disableClose:[{type:o.Input}],autoFocus:[{type:o.Input}],opened:[{type:o.Input}],_animationState:[{type:o.HostBinding,args:["@transform"]}],openedChange:[{type:o.Output}],_openedStream:[{type:o.Output,args:["opened"]}],openedStart:[{type:o.Output}],_closedStream:[{type:o.Output,args:["closed"]}],closedStart:[{type:o.Output}],onPositionChanged:[{type:o.Output,args:["positionChanged"]}],_animationStartListener:[{type:o.HostListener,args:["@transform.start",["$event"]]}],_animationDoneListener:[{type:o.HostListener,args:["@transform.done",["$event"]]}]};var x=function(){function t(t,e,n,r,a,i,s){var c=this;void 0===i&&(i=!1),this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=s,this._drawers=new o.QueryList,this.backdropClick=new o.EventEmitter,this._destroyed=new p.Subject,this._doCheckSubject=new p.Subject,this._contentMargins={left:null,right:null},this._contentMarginChanges=new p.Subject,t&&t.change.pipe(l.takeUntil(this._destroyed)).subscribe((function(){c._validateDrawers(),c.updateContentMargins()})),a.change().pipe(l.takeUntil(this._destroyed)).subscribe((function(){return c.updateContentMargins()})),this._autosize=i}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=c.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:c.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!1,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._allDrawers.changes.pipe(l.startWith(this._allDrawers),l.takeUntil(this._destroyed)).subscribe((function(e){t._drawers.reset(e.filter((function(e){return!e._container||e._container===t}))),t._drawers.notifyOnChanges()})),this._drawers.changes.pipe(l.startWith(null)).subscribe((function(){t._validateDrawers(),t._drawers.forEach((function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)})),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._doCheckSubject.pipe(l.debounceTime(10),l.takeUntil(t._destroyed)).subscribe((function(){return t.updateContentMargins()}))}))},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach((function(t){return t.open()}))},t.prototype.close=function(){this._drawers.forEach((function(t){return t.close()}))},t.prototype.updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._getWidth():"push"==this._left.mode&&(e+=r=this._left._getWidth(),n-=r)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var r;n+=r=this._right._getWidth(),e-=r}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run((function(){return t._contentMarginChanges.next(t._contentMargins)})))},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular((function(){return t._doCheckSubject.next()}))},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(l.filter((function(t){return t.fromState!==t.toState})),l.takeUntil(this._drawers.changes)).subscribe((function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()})),"side"!==t.mode&&t.openedChange.pipe(l.takeUntil(this._drawers.changes)).subscribe((function(){return e._setContainerClass(t.opened)}))},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(l.takeUntil(this._drawers.changes)).subscribe((function(){e._ngZone.onMicrotaskEmpty.pipe(l.take(1)).subscribe((function(){e._validateDrawers()}))}))},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(l.takeUntil(p.merge(this._drawers.changes,this._destroyed))).subscribe((function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()}))},t.prototype._setContainerClass=function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach((function(e){"end"==e.position?t._end=e:t._start=e})),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()},t.prototype._closeModalDrawersViaBackdrop=function(){var t=this;[this._start,this._end].filter((function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)})).forEach((function(t){return t._closeViaBackdropClick()}))},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t}();x.decorators=[{type:o.Component,args:[{selector:"mat-drawer-container",exportAs:"matDrawerContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" *ngIf="hasBackdrop"\n [class.mat-drawer-shown]="_isShowingBackdrop()"></div>\n\n<ng-content select="mat-drawer"></ng-content>\n\n<ng-content select="mat-drawer-content">\n</ng-content>\n<mat-drawer-content *ngIf="!_content">\n <ng-content></ng-content>\n</mat-drawer-content>\n',host:{class:"mat-drawer-container","[class.mat-drawer-container-explicit-backdrop]":"_backdropOverride"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,providers:[{provide:b,useExisting:x}],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"]}]}],x.ctorParameters=function(){return[{type:s.Directionality,decorators:[{type:o.Optional}]},{type:o.ElementRef},{type:o.NgZone},{type:o.ChangeDetectorRef},{type:n.ViewportRuler},{type:void 0,decorators:[{type:o.Inject,args:[y]}]},{type:String,decorators:[{type:o.Optional},{type:o.Inject,args:[h.ANIMATION_MODULE_TYPE]}]}]},x.propDecorators={_allDrawers:[{type:o.ContentChildren,args:[C,{descendants:!0}]}],_content:[{type:o.ContentChild,args:[k]}],_userContent:[{type:o.ViewChild,args:[k]}],autosize:[{type:o.Input}],hasBackdrop:[{type:o.Input}],backdropClick:[{type:o.Output}]};var D=function(t){function e(e,n,r,o,a){return t.call(this,e,n,r,o,a)||this}return f(e,t),e}(k);D.decorators=[{type:o.Component,args:[{selector:"mat-sidenav-content",template:"<ng-content></ng-content>",host:{class:"mat-drawer-content mat-sidenav-content","[style.margin-left.px]":"_container._contentMargins.left","[style.margin-right.px]":"_container._contentMargins.right"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None}]}],D.ctorParameters=function(){return[{type:o.ChangeDetectorRef},{type:E,decorators:[{type:o.Inject,args:[o.forwardRef((function(){return E}))]}]},{type:o.ElementRef},{type:n.ScrollDispatcher},{type:o.NgZone}]};var S=function(t){function e(){var e=t.apply(this,_(arguments))||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return f(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=c.coerceBooleanProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=c.coerceNumberProperty(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=c.coerceNumberProperty(t)},enumerable:!1,configurable:!0}),e}(C);S.decorators=[{type:o.Component,args:[{selector:"mat-sidenav",exportAs:"matSidenav",template:'<div class="mat-drawer-inner-container" cdkScrollable>\r\n <ng-content></ng-content>\r\n</div>\r\n',animations:[w.transformDrawer],host:{class:"mat-drawer mat-sidenav",tabIndex:"-1","[attr.align]":"null","[class.mat-drawer-end]":'position === "end"',"[class.mat-drawer-over]":'mode === "over"',"[class.mat-drawer-push]":'mode === "push"',"[class.mat-drawer-side]":'mode === "side"',"[class.mat-drawer-opened]":"opened","[class.mat-sidenav-fixed]":"fixedInViewport","[style.top.px]":"fixedInViewport ? fixedTopGap : null","[style.bottom.px]":"fixedInViewport ? fixedBottomGap : null"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None}]}],S.propDecorators={fixedInViewport:[{type:o.Input}],fixedTopGap:[{type:o.Input}],fixedBottomGap:[{type:o.Input}]};var O,E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(x);E.decorators=[{type:o.Component,args:[{selector:"mat-sidenav-container",exportAs:"matSidenavContainer",template:'<div class="mat-drawer-backdrop" (click)="_onBackdropClicked()" *ngIf="hasBackdrop"\n [class.mat-drawer-shown]="_isShowingBackdrop()"></div>\n\n<ng-content select="mat-sidenav"></ng-content>\n\n<ng-content select="mat-sidenav-content">\n</ng-content>\n<mat-sidenav-content *ngIf="!_content" cdkScrollable>\n <ng-content></ng-content>\n</mat-sidenav-content>\n',host:{class:"mat-drawer-container mat-sidenav-container","[class.mat-drawer-container-explicit-backdrop]":"_backdropOverride"},changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,providers:[{provide:b,useExisting:E}],styles:[".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n"]}]}],E.propDecorators={_allDrawers:[{type:o.ContentChildren,args:[S,{descendants:!0}]}],_content:[{type:o.ContentChild,args:[D]}]},(O=function O(){}).decorators=[{type:o.NgModule,args:[{imports:[r.CommonModule,a.MatCommonModule,e.PlatformModule,n.CdkScrollableModule],exports:[n.CdkScrollableModule,a.MatCommonModule,C,x,k,S,E,D],declarations:[C,x,k,S,E,D]}]}],
/**
* @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_DRAWER_DEFAULT_AUTOSIZE=y,t.MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY=v,t.MatDrawer=C,t.MatDrawerContainer=x,t.MatDrawerContent=k,t.MatSidenav=S,t.MatSidenavContainer=E,t.MatSidenavContent=D,t.MatSidenavModule=O,t.matDrawerAnimations=w,t.throwMatDuplicatedDrawerError=function M(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")},tangular_material_src_material_sidenav_sidenav_a=b,Object.defineProperty(t,"__esModule",{value:!0})}));