@angular/material
Version:
Angular Material
22 lines • 24.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("@angular/core"),require("@angular/material/core"),require("tslib"),require("@angular/cdk/a11y"),require("@angular/cdk/bidi"),require("@angular/cdk/coercion"),require("@angular/cdk/keycodes"),require("@angular/forms"),require("@angular/platform-browser/animations"),require("@angular/cdk/platform"),require("rxjs")):"function"==typeof define&&define.amd?define("@angular/material/slider",["exports","@angular/common","@angular/core","@angular/material/core","tslib","@angular/cdk/a11y","@angular/cdk/bidi","@angular/cdk/coercion","@angular/cdk/keycodes","@angular/forms","@angular/platform-browser/animations","@angular/cdk/platform","rxjs"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.slider={}),t.ng.common,t.ng.core,t.ng.material.core,t.tslib,t.ng.cdk.a11y,t.ng.cdk.bidi,t.ng.cdk.coercion,t.ng.cdk.keycodes,t.ng.forms,t.ng.platformBrowser.animations,t.ng.cdk.platform,t.rxjs)}(this,(function(t,e,i,r,n,a,s,o,l,c,d,u,m){"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 h=u.normalizePassiveListenerOptions({passive:!1}),p={provide:c.NG_VALUE_ACCESSOR,useExisting:i.forwardRef((function(){return _})),multi:!0},b=function b(){},_=function(t){function r(e,r,n,a,s,o,l,c){var d=t.call(this,e)||this;return d._focusMonitor=r,d._changeDetectorRef=n,d._dir=a,d._animationMode=o,d._ngZone=l,d._invert=!1,d._max=100,d._min=0,d._step=1,d._thumbLabel=!1,d._tickInterval=0,d._value=null,d._vertical=!1,d.change=new i.EventEmitter,d.input=new i.EventEmitter,d.valueChange=new i.EventEmitter,d.onTouched=function(){},d._percent=0,d._isSliding=!1,d._isActive=!1,d._tickIntervalPercent=0,d._sliderDimensions=null,d._controlValueAccessorChangeFn=function(){},d._dirChangeSubscription=m.Subscription.EMPTY,d._pointerDown=function(t){d.disabled||d._isSliding||!v(t)&&0!==t.button||d._runInsideZone((function(){var e=d.value,i=g(t);d._isSliding=!0,d._lastPointerEvent=t,t.preventDefault(),d._focusHostElement(),d._onMouseenter(),d._bindGlobalEvents(t),d._focusHostElement(),d._updateValueFromPosition(i),d._valueOnSlideStart=d.value,d._pointerPositionOnStart=i,e!=d.value&&(d._emitInputEvent(),d._emitChangeEvent())}))},d._pointerMove=function(t){if(d._isSliding){t.preventDefault();var e=d.value;d._lastPointerEvent=t,d._updateValueFromPosition(g(t)),e!=d.value&&d._emitInputEvent()}},d._pointerUp=function(t){if(d._isSliding){var e=d._pointerPositionOnStart,i=g(t);t.preventDefault(),d._removeGlobalEvents(),d._valueOnSlideStart=d._pointerPositionOnStart=d._lastPointerEvent=null,d._isSliding=!1,d._valueOnSlideStart==d.value||d.disabled||!e||e.x===i.x&&e.y===i.y||d._emitChangeEvent()}},d._windowBlur=function(){d._lastPointerEvent&&d._pointerUp(d._lastPointerEvent)},d._document=c,d.tabIndex=parseInt(s)||0,d._runOutsizeZone((function(){var t=e.nativeElement;t.addEventListener("mousedown",d._pointerDown,h),t.addEventListener("touchstart",d._pointerDown,h)})),d}return n.__extends(r,t),Object.defineProperty(r.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"max",{get:function(){return this._max},set:function(t){this._max=o.coerceNumberProperty(t,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"min",{get:function(){return this._min},set:function(t){this._min=o.coerceNumberProperty(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"step",{get:function(){return this._step},set:function(t){this._step=o.coerceNumberProperty(t,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?o.coerceNumberProperty(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){if(t!==this._value){var e=o.coerceNumberProperty(t);this._roundToDecimal&&(e=parseFloat(e.toFixed(this._roundToDecimal))),this._value=e,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=o.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"displayValue",{get:function(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0},enumerable:!0,configurable:!0}),r.prototype.focus=function(t){this._focusHostElement(t)},r.prototype.blur=function(){this._blurHostElement()},Object.defineProperty(r.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"1, "+(1-this.percent)+", 1":1-this.percent+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"-":"")+this._thumbGap+"px) scale3d("+t+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_trackFillStyles",{get:function(){var t=this.percent,e=this.vertical?"1, "+t+", 1":t+", 1, 1";return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this._shouldInvertMouseCoords()?"":"-")+this._thumbGap+"px) scale3d("+e+")",display:0===t?"none":""}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._getDirection()?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)")};return this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px"),e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),r.prototype._shouldInvertMouseCoords=function(){return"rtl"!=this._getDirection()||this.vertical?this._invertAxis:!this._invertAxis},r.prototype._getDirection=function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},r.prototype.ngOnInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){t._isActive=!!e&&"keyboard"!==e,t._changeDetectorRef.detectChanges()})),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe((function(){t._changeDetectorRef.markForCheck()})))},r.prototype.ngOnDestroy=function(){var t=this._elementRef.nativeElement;t.removeEventListener("mousedown",this._pointerDown,h),t.removeEventListener("touchstart",this._pointerDown,h),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()},r.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())},r.prototype._onFocus=function(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()},r.prototype._onBlur=function(){this.onTouched()},r.prototype._onKeydown=function(t){if(!this.disabled&&!l.hasModifierKey(t)){var e=this.value;switch(t.keyCode){case l.PAGE_UP:this._increment(10);break;case l.PAGE_DOWN:this._increment(-10);break;case l.END:this.value=this.max;break;case l.HOME:this.value=this.min;break;case l.LEFT_ARROW:this._increment("rtl"==this._getDirection()?1:-1);break;case l.UP_ARROW:this._increment(1);break;case l.RIGHT_ARROW:this._increment("rtl"==this._getDirection()?-1:1);break;case l.DOWN_ARROW:this._increment(-1);break;default:return}e!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,t.preventDefault()}},r.prototype._onKeyup=function(){this._isSliding=!1},r.prototype._bindGlobalEvents=function(t){if(void 0!==this._document&&this._document){var e=this._document.body,i=v(t),r=i?"touchend":"mouseup";e.addEventListener(i?"touchmove":"mousemove",this._pointerMove,h),e.addEventListener(r,this._pointerUp,h),i&&e.addEventListener("touchcancel",this._pointerUp,h)}"undefined"!=typeof window&&window&&window.addEventListener("blur",this._windowBlur)},r.prototype._removeGlobalEvents=function(){if(void 0!==this._document&&this._document){var t=this._document.body;t.removeEventListener("mousemove",this._pointerMove,h),t.removeEventListener("mouseup",this._pointerUp,h),t.removeEventListener("touchmove",this._pointerMove,h),t.removeEventListener("touchend",this._pointerUp,h),t.removeEventListener("touchcancel",this._pointerUp,h)}"undefined"!=typeof window&&window&&window.removeEventListener("blur",this._windowBlur)},r.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max)},r.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this._clamp(((this.vertical?t.y:t.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(e=1-e),0===e)this.value=this.min;else if(1===e)this.value=this.max;else{var i=this._calculateValue(e),r=Math.round((i-this.min)/this.step)*this.step+this.min;this.value=this._clamp(r,this.min,this.max)}}},r.prototype._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())},r.prototype._emitInputEvent=function(){this.input.emit(this._createChangeEvent())},r.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=Math.ceil(30/(t*this.step/(this.max-this.min)));this._tickIntervalPercent=e*this.step/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},r.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new b;return e.source=this,e.value=t,e},r.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},r.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},r.prototype._clamp=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),Math.max(e,Math.min(t,i))},r.prototype._getSliderDimensions=function(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null},r.prototype._focusHostElement=function(t){this._elementRef.nativeElement.focus(t)},r.prototype._blurHostElement=function(){this._elementRef.nativeElement.blur()},r.prototype._runInsideZone=function(t){this._ngZone?this._ngZone.run(t):t()},r.prototype._runOutsizeZone=function(t){this._ngZone?this._ngZone.runOutsideAngular(t):t()},r.prototype.writeValue=function(t){this.value=t},r.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},r.prototype.registerOnTouched=function(t){this.onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t},r.decorators=[{type:i.Component,args:[{selector:"mat-slider",exportAs:"matSlider",providers:[p],host:{"(focus)":"_onFocus()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)","(keyup)":"_onKeyup()","(mouseenter)":"_onMouseenter()","(selectstart)":"$event.preventDefault()",class:"mat-slider",role:"slider","[tabIndex]":"tabIndex","[attr.aria-disabled]":"disabled","[attr.aria-valuemax]":"max","[attr.aria-valuemin]":"min","[attr.aria-valuenow]":"value","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-slider-disabled]":"disabled","[class.mat-slider-has-ticks]":"tickInterval","[class.mat-slider-horizontal]":"!vertical","[class.mat-slider-axis-inverted]":"_invertAxis","[class.mat-slider-invert-mouse-coords]":"_shouldInvertMouseCoords()","[class.mat-slider-sliding]":"_isSliding","[class.mat-slider-thumb-label-showing]":"thumbLabel","[class.mat-slider-vertical]":"vertical","[class.mat-slider-min-value]":"_isMinValue","[class.mat-slider-hide-last-tick]":"disabled || _isMinValue && _thumbGap && _invertAxis","[class._mat-animation-noopable]":'_animationMode === "NoopAnimations"'},template:'<div class="mat-slider-wrapper" #sliderWrapper>\n <div class="mat-slider-track-wrapper">\n <div class="mat-slider-track-background" [ngStyle]="_trackBackgroundStyles"></div>\n <div class="mat-slider-track-fill" [ngStyle]="_trackFillStyles"></div>\n </div>\n <div class="mat-slider-ticks-container" [ngStyle]="_ticksContainerStyles">\n <div class="mat-slider-ticks" [ngStyle]="_ticksStyles"></div>\n </div>\n <div class="mat-slider-thumb-container" [ngStyle]="_thumbContainerStyles">\n <div class="mat-slider-focus-ring"></div>\n <div class="mat-slider-thumb"></div>\n <div class="mat-slider-thumb-label">\n <span class="mat-slider-thumb-label-text">{{displayValue}}</span>\n </div>\n </div>\n</div>\n',inputs:["disabled","color","tabIndex"],encapsulation:i.ViewEncapsulation.None,changeDetection:i.ChangeDetectionStrategy.OnPush,styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n']}]}],r.ctorParameters=function(){return[{type:i.ElementRef},{type:a.FocusMonitor},{type:i.ChangeDetectorRef},{type:s.Directionality,decorators:[{type:i.Optional}]},{type:String,decorators:[{type:i.Attribute,args:["tabindex"]}]},{type:String,decorators:[{type:i.Optional},{type:i.Inject,args:[d.ANIMATION_MODULE_TYPE]}]},{type:i.NgZone},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[e.DOCUMENT]}]}]},r.propDecorators={invert:[{type:i.Input}],max:[{type:i.Input}],min:[{type:i.Input}],step:[{type:i.Input}],thumbLabel:[{type:i.Input}],tickInterval:[{type:i.Input}],value:[{type:i.Input}],displayWith:[{type:i.Input}],vertical:[{type:i.Input}],change:[{type:i.Output}],input:[{type:i.Output}],valueChange:[{type:i.Output}],_sliderWrapper:[{type:i.ViewChild,args:["sliderWrapper"]}]},r}(r.mixinTabIndex(r.mixinColor(r.mixinDisabled((function f(t){this._elementRef=t})),"accent")));function v(t){return"t"===t.type[0]}function g(t){var e=v(t)?t.touches[0]||t.changedTouches[0]:t;return{x:e.clientX,y:e.clientY}}
/**
* @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 y=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{imports:[e.CommonModule,r.MatCommonModule],exports:[_,r.MatCommonModule],declarations:[_]}]}],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
*/t.MAT_SLIDER_VALUE_ACCESSOR=p,t.MatSlider=_,t.MatSliderChange=b,t.MatSliderModule=y,Object.defineProperty(t,"__esModule",{value:!0})}));