| 12 |
- !function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("rxjs/Subject"),require("rxjs/Subscription"),require("@angular/core"),require("rxjs/operators"),require("detect-passive-events"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ng5-slider",["exports","rxjs/Subject","rxjs/Subscription","@angular/core","rxjs/operators","detect-passive-events","@angular/forms","@angular/common"],i):i(e["ng5-slider"]={},e.Rx,e.Rx,e.ng.core,e.Rx.Observable.prototype,e.detectPassiveEvents,e.ng.forms,e.ng.common)}(this,function(e,l,i,s,a,u,t,n){"use strict";u=u&&u.hasOwnProperty("default")?u["default"]:u;var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var t in i)i.hasOwnProperty(t)&&(e[t]=i[t])};function r(e,i){function t(){this.constructor=e}o(e,i),e.prototype=null===i?Object.create(i):(t.prototype=i.prototype,new t)}function h(e){var i="function"==typeof Symbol&&e[Symbol.iterator],t=0;return i?i.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}var p={Min:0,Max:1};p[p.Min]="Min",p[p.Max]="Max";var d={Low:0,High:1,Floor:2,Ceil:3,TickValue:4};d[d.Low]="Low",d[d.High]="High",d[d.Floor]="Floor",d[d.Ceil]="Ceil",d[d.TickValue]="TickValue";var c=function(){this.floor=0,this.ceil=null,this.step=1,this.minRange=null,this.maxRange=null,this.pushRange=!1,this.minLimit=null,this.maxLimit=null,this.translate=null,this.combineLabels=null,this.getLegend=null,this.stepsArray=null,this.bindIndexForStepsArray=!1,this.draggableRange=!1,this.draggableRangeOnly=!1,this.showSelectionBar=!1,this.showSelectionBarEnd=!1,this.showSelectionBarFromValue=null,this.showOuterSelectionBars=!1,this.hidePointerLabels=!1,this.hideLimitLabels=!1,this.autoHideLimitLabels=!0,this.readOnly=!1,this.disabled=!1,this.mouseEventsInterval=50,this.touchEventsInterval=50,this.inputEventsInterval=100,this.outputEventsInterval=100,this.showTicks=!1,this.showTicksValues=!1,this.tickStep=null,this.tickValueStep=1,this.ticksArray=null,this.ticksTooltip=null,this.ticksValuesTooltip=null,this.vertical=!1,this.getSelectionBarColor=null,this.getTickColor=null,this.getPointerColor=null,this.keyboardSupport=!0,this.scale=1,this.enforceStep=!0,this.enforceRange=!0,this.noSwitching=!1,this.onlyBindHandles=!1,this.rightToLeft=!1,this.reversedControls=!1,this.boundPointerLabels=!0,this.logScale=!1,this.customValueToPosition=null,this.customPositionToValue=null,this.precisionLimit=12,this.selectionBarGradient=null,this.ariaLabel=null,this.ariaLabelledBy=null,this.ariaLabelHigh=null,this.ariaLabelledByHigh=null,this.handleDimension=null,this.barDimension=null,this.animate=!0},g=function(){},v=function(){function e(){}return e.isNullOrUndefined=function(e){return e===undefined||null===e},e.linearValueToPosition=function(e,i,t){return(e-i)/(t-i)},e.logValueToPosition=function(e,i,t){return((e=Math.log(e))-(i=Math.log(i)))/((t=Math.log(t))-i)},e.linearPositionToValue=function(e,i,t){return e*(t-i)+i},e.logPositionToValue=function(e,i,t){i=Math.log(i);var n=e*((t=Math.log(t))-i)+i;return Math.exp(n)},e.findStepIndex=function(i,e){for(var t=e.map(function(e){return Math.abs(i-e.value)}),n=0,s=0;s<e.length;s++)t[s]!==t[n]&&t[s]<t[n]&&(n=s);return n},e}(),m=function(){function e(){}return e.isTouchEvent=function(e){return window.TouchEvent!==undefined?e instanceof TouchEvent:e.touches!==undefined},e.isResizeObserverAvailable=function(){return window.ResizeObserver!==undefined},e}(),f=function(){function e(){}return e.roundToPrecisionLimit=function(e,i){return+e.toPrecision(i)},e.clampToRange=function(e,i,t){return Math.min(Math.max(e,i),t)},e}(),w=function(){this.eventName=null,this.events=null,this.eventsSubscription=null,this.teardownCallback=null},b=function(){function e(e){this.renderer=e}return e.prototype.attachPassiveEventListener=function(e,i,t,n){if(!0!==u.hasSupport)return this.attachEventListener(e,i,t,n);var s=new w;s.eventName=i,s.events=new l.Subject;var o=function(e){s.events.next(e)};return e.addEventListener(i,o,{passive:!0,capture:!1}),s.teardownCallback=function(){e.removeEventListener(i,o,{passive:!0,capture:!1})},s.eventsSubscription=s.events.pipe(v.isNullOrUndefined(n)?a.tap(function(){}):a.throttleTime(n,undefined,{leading:!0,trailing:!0})).subscribe(function(e){t(e)}),s},e.prototype.detachEventListener=function(e){v.isNullOrUndefined(e.eventsSubscription)||(e.eventsSubscription.unsubscribe(),e.eventsSubscription=null),v.isNullOrUndefined(e.events)||(e.events.complete(),e.events=null),v.isNullOrUndefined(e.teardownCallback)||(e.teardownCallback(),e.teardownCallback=null)},e.prototype.attachEventListener=function(e,i,t,n){var s=new w;s.eventName=i,s.events=new l.Subject;return s.teardownCallback=this.renderer.listen(e,i,function(e){s.events.next(e)}),s.eventsSubscription=s.events.pipe(v.isNullOrUndefined(n)?a.tap(function(){}):a.throttleTime(n,undefined,{leading:!0,trailing:!0})).subscribe(function(e){t(e)}),s},e}(),O=function(){function e(e,i){this.elemRef=e,this.renderer=i,this._position=0,this._dimension=0,this._alwaysHide=!1,this._vertical=!1,this._scale=1,this.opacity=1,this.visibility="visible",this.left="",this.bottom="",this.height="",this.width="",this.eventListeners=[],this.eventListenerHelper=new b(this.renderer)}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dimension",{get:function(){return this._dimension},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysHide",{get:function(){return this._alwaysHide},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vertical",{get:function(){return this._vertical},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return this._scale},enumerable:!0,configurable:!0}),e.prototype.setAlwaysHide=function(e){this._alwaysHide=e,this.visibility=e?"hidden":"visible"},e.prototype.hide=function(){this.opacity=0},e.prototype.show=function(){this.alwaysHide||(this.opacity=1)},e.prototype.isVisible=function(){return!this.alwaysHide&&0!==this.opacity},e.prototype.setVertical=function(e){this._vertical=e,this._vertical?(this.left="",this.width=""):(this.bottom="",this.height="")},e.prototype.setScale=function(e){this._scale=e},e.prototype.setPosition=function(e){this._position=e,this._vertical?this.bottom=Math.round(e)+"px":this.left=Math.round(e)+"px"},e.prototype.calculateDimension=function(){var e=this.getBoundingClientRect();this.vertical?this._dimension=(e.bottom-e.top)*this.scale:this._dimension=(e.right-e.left)*this.scale},e.prototype.setDimension=function(e){this._dimension=e,this._vertical?this.height=Math.round(e)+"px":this.width=Math.round(e)+"px"},e.prototype.getBoundingClientRect=function(){return this.elemRef.nativeElement.getBoundingClientRect()},e.prototype.on=function(e,i,t){var n=this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement,e,i,t);this.eventListeners.push(n)},e.prototype.onPassive=function(e,i,t){var n=this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement,e,i,t);this.eventListeners.push(n)},e.prototype.off=function(i){var e,t,n,s;v.isNullOrUndefined(i)?(e=[],t=this.eventListeners):(e=this.eventListeners.filter(function(e){return e.eventName!==i}),t=this.eventListeners.filter(function(e){return e.eventName===i}));try{for(var o=h(t),l=o.next();!l.done;l=o.next()){var a=l.value;this.eventListenerHelper.detachEventListener(a)}}catch(r){n={error:r}}finally{try{l&&!l.done&&(s=o["return"])&&s.call(o)}finally{if(n)throw n.error}}this.eventListeners=e},e}();O.decorators=[{type:s.Directive,args:[{selector:"[ng5SliderElement]"}]}],O.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer2}]},O.propDecorators={opacity:[{type:s.HostBinding,args:["style.opacity"]}],visibility:[{type:s.HostBinding,args:["style.visibility"]}],left:[{type:s.HostBinding,args:["style.left"]}],bottom:[{type:s.HostBinding,args:["style.bottom"]}],height:[{type:s.HostBinding,args:["style.height"]}],width:[{type:s.HostBinding,args:["style.width"]}]};var y=function(n){function e(e,i){var t=n.call(this,e,i)||this;return t.active=!1,t.role="",t.tabindex="",t.ariaOrientation="",t.ariaLabel="",t.ariaLabelledBy="",t.ariaValueNow="",t.ariaValueText="",t.ariaValueMin="",t.ariaValueMax="",t}return r(e,n),e.prototype.focus=function(){this.elemRef.nativeElement.focus()},e}(O);y.decorators=[{type:s.Directive,args:[{selector:"[ng5SliderHandle]"}]}],y.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer2}]},y.propDecorators={active:[{type:s.HostBinding,args:["class.ng5-slider-active"]}],role:[{type:s.HostBinding,args:["attr.role"]}],tabindex:[{type:s.HostBinding,args:["attr.tabindex"]}],ariaOrientation:[{type:s.HostBinding,args:["attr.aria-orientation"]}],ariaLabel:[{type:s.HostBinding,args:["attr.aria-label"]}],ariaLabelledBy:[{type:s.HostBinding,args:["attr.aria-labelledby"]}],ariaValueNow:[{type:s.HostBinding,args:["attr.aria-valuenow"]}],ariaValueText:[{type:s.HostBinding,args:["attr.aria-valuetext"]}],ariaValueMin:[{type:s.HostBinding,args:["attr.aria-valuemin"]}],ariaValueMax:[{type:s.HostBinding,args:["attr.aria-valuemax"]}]};var L=function(n){function e(e,i){var t=n.call(this,e,i)||this;return t._value=null,t}return r(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e){var i=!1;!this.alwaysHide&&(v.isNullOrUndefined(this.value)||this.value.length!==e.length||0<this.value.length&&0===this.dimension)&&(i=!0),this._value=e,this.elemRef.nativeElement.innerHTML=e,i&&this.calculateDimension()},e}(O);L.decorators=[{type:s.Directive,args:[{selector:"[ng5SliderLabel]"}]}],L.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer2}]};var E=function(){this.selected=!1,this.style={},this.tooltip=null,this.tooltipPlacement=null,this.value=null,this.valueTooltip=null,this.valueTooltipPlacement=null,this.legend=null},V=function(){this.active=!1,this.value=0,this.difference=0,this.position=0,this.lowLimit=0,this.highLimit=0},H=function(){function e(){}return e.compare=function(e,i){return(!v.isNullOrUndefined(e)||!v.isNullOrUndefined(i))&&(v.isNullOrUndefined(e)===v.isNullOrUndefined(i)&&(e.value===i.value&&e.highValue===i.highValue))},e}(),x=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.compare=function(e,i){return(!v.isNullOrUndefined(e)||!v.isNullOrUndefined(i))&&(v.isNullOrUndefined(e)===v.isNullOrUndefined(i)&&(e.value===i.value&&e.highValue===i.highValue&&e.forceChange===i.forceChange))},i}(H),S={provide:t.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return T}),multi:!0},T=function(){function e(e,i,t,n){this.renderer=e,this.elementRef=i,this.changeDetectionRef=t,this.zone=n,this.value=null,this.valueChange=new s.EventEmitter,this.highValue=null,this.highValueChange=new s.EventEmitter,this.options=new c,this.userChangeStart=new s.EventEmitter,this.userChange=new s.EventEmitter,this.userChangeEnd=new s.EventEmitter,this.initHasRun=!1,this.inputModelChangeSubject=new l.Subject,this.inputModelChangeSubscription=null,this.outputModelChangeSubject=new l.Subject,this.outputModelChangeSubscription=null,this.viewLowValue=null,this.viewHighValue=null,this.viewOptions=new c,this.handleHalfDimension=0,this.maxHandlePosition=0,this.currentTrackingPointer=null,this.currentFocusPointer=null,this.firstKeyDown=!1,this.touchId=null,this.dragging=new V,this.sliderElementVerticalClass=!1,this.sliderElementAnimateClass=!1,this.sliderElementDisabledAttr=null,this.barStyle={},this.minPointerStyle={},this.maxPointerStyle={},this.fullBarTransparentClass=!1,this.selectionBarDraggableClass=!1,this.ticksUnderValuesClass=!1,this.intermediateTicks=!1,this.ticks=[],this.eventListenerHelper=null,this.onMoveEventListener=null,this.onEndEventListener=null,this.resizeObserver=null,this.onTouchedCallback=null,this.onChangeCallback=null,this.eventListenerHelper=new b(this.renderer)}return Object.defineProperty(e.prototype,"manualRefresh",{set:function(e){var i=this;this.unsubscribeManualRefresh(),this.manualRefreshSubscription=e.subscribe(function(){setTimeout(function(){return i.calculateViewDimensionsAndDetectChanges()})})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerFocus",{set:function(e){var i=this;this.unsubscribeTriggerFocus(),this.triggerFocusSubscription=e.subscribe(function(e){i.focusPointer(e)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return!v.isNullOrUndefined(this.value)&&!v.isNullOrUndefined(this.highValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTicks",{get:function(){return this.viewOptions.showTicks},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.viewOptions=new c,Object.assign(this.viewOptions,this.options),this.updateDisabledState(),this.updateVerticalState()},e.prototype.ngAfterViewInit=function(){this.applyOptions(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval),this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.updateVerticalState(),this.manageElementsStyle(),this.updateDisabledState(),this.calculateViewDimensions(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.initHandles(),this.manageEventsBindings(),this.subscribeResizeObserver(),this.initHasRun=!0,this.changeDetectionRef.detectChanges()},e.prototype.ngOnChanges=function(e){v.isNullOrUndefined(e.options)||this.onChangeOptions(),v.isNullOrUndefined(e.value)&&v.isNullOrUndefined(e.highValue)||this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},e.prototype.ngOnDestroy=function(){this.unbindEvents(),this.unsubscribeResizeObserver(),this.unsubscribeInputModelChangeSubject(),this.unsubscribeOutputModelChangeSubject(),this.unsubscribeManualRefresh(),this.unsubscribeTriggerFocus()},e.prototype.writeValue=function(e){e instanceof Array?(this.value=e[0],this.highValue=e[1]):this.value=e,this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!1})},e.prototype.registerOnChange=function(e){this.onChangeCallback=e},e.prototype.registerOnTouched=function(e){this.onTouchedCallback=e},e.prototype.setDisabledState=function(e){this.viewOptions.disabled=e,this.updateDisabledState()},e.prototype.onResize=function(e){this.calculateViewDimensionsAndDetectChanges()},e.prototype.subscribeInputModelChangeSubject=function(e){var i=this;this.inputModelChangeSubscription=this.inputModelChangeSubject.pipe(a.distinctUntilChanged(x.compare),a.filter(function(e){return!e.forceChange&&!e.internalChange}),v.isNullOrUndefined(e)?a.tap(function(){}):a.throttleTime(e,undefined,{leading:!0,trailing:!0})).subscribe(function(e){return i.applyInputModelChange(e)})},e.prototype.subscribeOutputModelChangeSubject=function(e){var i=this;this.outputModelChangeSubscription=this.outputModelChangeSubject.pipe(a.distinctUntilChanged(x.compare),v.isNullOrUndefined(e)?a.tap(function(){}):a.throttleTime(e,undefined,{leading:!0,trailing:!0})).subscribe(function(e){return i.publishOutputModelChange(e)})},e.prototype.subscribeResizeObserver=function(){var e=this;m.isResizeObserverAvailable()&&(this.resizeObserver=new ResizeObserver(function(){return e.calculateViewDimensionsAndDetectChanges()}),this.resizeObserver.observe(this.elementRef.nativeElement))},e.prototype.unsubscribeResizeObserver=function(){m.isResizeObserverAvailable()&&null!==this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},e.prototype.unsubscribeOnMove=function(){v.isNullOrUndefined(this.onMoveEventListener)||(this.eventListenerHelper.detachEventListener(this.onMoveEventListener),this.onMoveEventListener=null)},e.prototype.unsubscribeOnEnd=function(){v.isNullOrUndefined(this.onEndEventListener)||(this.eventListenerHelper.detachEventListener(this.onEndEventListener),this.onEndEventListener=null)},e.prototype.unsubscribeInputModelChangeSubject=function(){v.isNullOrUndefined(this.inputModelChangeSubscription)||(this.inputModelChangeSubscription.unsubscribe(),this.inputModelChangeSubscription=null)},e.prototype.unsubscribeOutputModelChangeSubject=function(){v.isNullOrUndefined(this.outputModelChangeSubscription)||(this.outputModelChangeSubscription.unsubscribe(),this.outputModelChangeSubscription=null)},e.prototype.unsubscribeManualRefresh=function(){v.isNullOrUndefined(this.manualRefreshSubscription)||(this.manualRefreshSubscription.unsubscribe(),this.manualRefreshSubscription=null)},e.prototype.unsubscribeTriggerFocus=function(){v.isNullOrUndefined(this.triggerFocusSubscription)||(this.triggerFocusSubscription.unsubscribe(),this.triggerFocusSubscription=null)},e.prototype.getPointerElement=function(e){return e===p.Min?this.minHandleElement:e===p.Max?this.maxHandleElement:null},e.prototype.getCurrentTrackingValue=function(){return this.currentTrackingPointer===p.Min?this.viewLowValue:this.currentTrackingPointer===p.Max?this.viewHighValue:null},e.prototype.modelValueToViewValue=function(e){return v.isNullOrUndefined(e)?NaN:v.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?+e:v.findStepIndex(+e,this.viewOptions.stepsArray)},e.prototype.viewValueToModelValue=function(e){return v.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray?e:this.getStepValue(e)},e.prototype.getStepValue=function(e){var i=this.viewOptions.stepsArray[e];return v.isNullOrUndefined(i)?NaN:i.value},e.prototype.applyViewChange=function(){this.value=this.viewValueToModelValue(this.viewLowValue),this.range&&(this.highValue=this.viewValueToModelValue(this.viewHighValue)),this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,userEventInitiated:!0,forceChange:!1}),this.inputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!1,internalChange:!0})},e.prototype.applyInputModelChange=function(e){var i=this.normaliseModelValues(e),t=!H.compare(e,i);t&&(this.value=i.value,this.highValue=i.highValue),this.viewLowValue=this.modelValueToViewValue(i.value),this.range?this.viewHighValue=this.modelValueToViewValue(i.highValue):this.viewHighValue=null,this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCombinedLabel(),this.outputModelChangeSubject.next({value:i.value,highValue:i.highValue,forceChange:t,userEventInitiated:!1})},e.prototype.publishOutputModelChange=function(e){var i=this,t=function(){i.valueChange.emit(e.value),i.range&&i.highValueChange.emit(e.highValue),v.isNullOrUndefined(i.onChangeCallback)||(i.range?i.onChangeCallback([e.value,e.highValue]):i.onChangeCallback(e.value)),v.isNullOrUndefined(i.onTouchedCallback)||(i.range?i.onTouchedCallback([e.value,e.highValue]):i.onTouchedCallback(e.value))};e.userEventInitiated?(t(),this.userChange.emit(this.getChangeContext())):setTimeout(function(){t()})},e.prototype.normaliseModelValues=function(e){var i=new H;if(i.value=e.value,i.highValue=e.highValue,this.viewOptions.enforceStep&&(i.value=this.roundStep(i.value),this.range&&(i.highValue=this.roundStep(i.highValue))),!v.isNullOrUndefined(this.viewOptions.stepsArray)||!this.viewOptions.enforceRange)return i;if(i.value=f.clampToRange(i.value,this.viewOptions.floor,this.viewOptions.ceil),this.range&&(i.highValue=f.clampToRange(i.highValue,this.viewOptions.floor,this.viewOptions.ceil)),this.range&&e.value>e.highValue)if(this.viewOptions.noSwitching)i.value=i.highValue;else{var t=e.value;i.value=e.highValue,i.highValue=t}return i},e.prototype.renormaliseModelValues=function(){var e={value:this.value,highValue:this.highValue},i=this.normaliseModelValues(e);H.compare(i,e)||(this.value=i.value,this.highValue=i.highValue,this.outputModelChangeSubject.next({value:this.value,highValue:this.highValue,forceChange:!0,userEventInitiated:!1}))},e.prototype.onChangeOptions=function(){if(this.initHasRun){var e=this.viewOptions.inputEventsInterval,i=this.viewOptions.outputEventsInterval;this.applyOptions(),e!==this.viewOptions.inputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval)),i!==this.viewOptions.outputEventsInterval&&(this.unsubscribeInputModelChangeSubject(),this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval)),this.renormaliseModelValues(),this.viewLowValue=this.modelValueToViewValue(this.value),this.range?this.viewHighValue=this.modelValueToViewValue(this.highValue):this.viewHighValue=null,this.resetSlider()}},e.prototype.applyOptions=function(){if(this.viewOptions=new c,Object.assign(this.viewOptions,this.options),this.viewOptions.draggableRange=this.range&&this.viewOptions.draggableRange,this.viewOptions.draggableRangeOnly=this.range&&this.viewOptions.draggableRangeOnly,this.viewOptions.draggableRangeOnly&&(this.viewOptions.draggableRange=!0),this.viewOptions.showTicks=this.viewOptions.showTicks||this.viewOptions.showTicksValues||!v.isNullOrUndefined(this.viewOptions.ticksArray),!this.viewOptions.showTicks||v.isNullOrUndefined(this.viewOptions.tickStep)&&v.isNullOrUndefined(this.viewOptions.ticksArray)||(this.intermediateTicks=!0),this.viewOptions.showSelectionBar=this.viewOptions.showSelectionBar||this.viewOptions.showSelectionBarEnd||!v.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue),v.isNullOrUndefined(this.viewOptions.stepsArray)?this.applyFloorCeilOptions():this.applyStepsArrayOptions(),v.isNullOrUndefined(this.viewOptions.combineLabels)&&(this.viewOptions.combineLabels=function(e,i){return e+" - "+i}),this.viewOptions.logScale&&0===this.viewOptions.floor)throw Error("Can't use floor=0 with logarithmic scale")},e.prototype.applyStepsArrayOptions=function(){var i=this;this.viewOptions.floor=0,this.viewOptions.ceil=this.viewOptions.stepsArray.length-1,this.viewOptions.step=1,v.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(e){return i.viewOptions.bindIndexForStepsArray?String(i.getStepValue(e)):String(e)}),this.viewOptions.getLegend=function(e){return i.viewOptions.stepsArray[e].legend}},e.prototype.applyFloorCeilOptions=function(){if(v.isNullOrUndefined(this.viewOptions.step)?this.viewOptions.step=1:(this.viewOptions.step=+this.viewOptions.step,this.viewOptions.step<=0&&(this.viewOptions.step=1)),v.isNullOrUndefined(this.viewOptions.ceil)||v.isNullOrUndefined(this.viewOptions.floor))throw Error("floor and ceil options must be supplied");this.viewOptions.ceil=+this.viewOptions.ceil,this.viewOptions.floor=+this.viewOptions.floor,v.isNullOrUndefined(this.viewOptions.translate)&&(this.viewOptions.translate=function(e){return String(e)})},e.prototype.resetSlider=function(){this.manageElementsStyle(),this.addAccessibility(),this.updateCeilLabel(),this.updateFloorLabel(),this.unbindEvents(),this.manageEventsBindings(),this.updateDisabledState(),this.calculateViewDimensions(),this.refocusPointerIfNeeded()},e.prototype.focusPointer=function(e){e!==p.Min&&e!==p.Max&&(e=p.Min),e===p.Min?this.minHandleElement.focus():this.range&&e===p.Max&&this.maxHandleElement.focus()},e.prototype.refocusPointerIfNeeded=function(){v.isNullOrUndefined(this.currentFocusPointer)||(this.onPointerFocus(this.currentFocusPointer),this.getPointerElement(this.currentFocusPointer).focus())},e.prototype.manageElementsStyle=function(){var e=this;this.updateScale(),this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels),this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues||this.viewOptions.hideLimitLabels);var i=this.viewOptions.showTicksValues&&!this.intermediateTicks;this.minHandleLabelElement.setAlwaysHide(i||this.viewOptions.hidePointerLabels),this.maxHandleLabelElement.setAlwaysHide(i||!this.range||this.viewOptions.hidePointerLabels),this.combinedLabelElement.setAlwaysHide(i||!this.range||this.viewOptions.hidePointerLabels),this.selectionBarElement.setAlwaysHide(!this.range&&!this.viewOptions.showSelectionBar),this.leftOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.rightOuterSelectionBarElement.setAlwaysHide(!this.range||!this.viewOptions.showOuterSelectionBars),this.fullBarTransparentClass=this.range&&this.viewOptions.showOuterSelectionBars,this.selectionBarDraggableClass=this.viewOptions.draggableRange&&!this.viewOptions.onlyBindHandles,this.ticksUnderValuesClass=this.intermediateTicks&&this.options.showTicksValues,this.sliderElementVerticalClass!==this.viewOptions.vertical&&(this.updateVerticalState(),setTimeout(function(){e.resetSlider()})),this.sliderElementAnimateClass!==this.viewOptions.animate&&setTimeout(function(){e.sliderElementAnimateClass=e.viewOptions.animate})},e.prototype.manageEventsBindings=function(){this.viewOptions.disabled||this.viewOptions.readOnly?this.unbindEvents():this.bindEvents()},e.prototype.updateDisabledState=function(){this.sliderElementDisabledAttr=this.viewOptions.disabled?"disabled":null},e.prototype.updateVerticalState=function(){this.sliderElementVerticalClass=this.viewOptions.vertical;try{for(var e=h(this.getAllSliderElements()),i=e.next();!i.done;i=e.next()){var t=i.value;v.isNullOrUndefined(t)||t.setVertical(this.viewOptions.vertical)}}catch(o){n={error:o}}finally{try{i&&!i.done&&(s=e["return"])&&s.call(e)}finally{if(n)throw n.error}}var n,s},e.prototype.updateScale=function(){try{for(var e=h(this.getAllSliderElements()),i=e.next();!i.done;i=e.next()){i.value.setScale(this.viewOptions.scale)}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=e["return"])&&n.call(e)}finally{if(t)throw t.error}}var t,n},e.prototype.getAllSliderElements=function(){return[this.leftOuterSelectionBarElement,this.rightOuterSelectionBarElement,this.fullBarElement,this.selectionBarElement,this.minHandleElement,this.maxHandleElement,this.floorLabelElement,this.ceilLabelElement,this.minHandleLabelElement,this.maxHandleLabelElement,this.combinedLabelElement,this.ticksElement]},e.prototype.initHandles=function(){this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateSelectionBar(),this.range&&this.updateCombinedLabel(),this.updateTicksScale()},e.prototype.addAccessibility=function(){this.updateAriaAttributes(),this.minHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.minHandleElement.tabindex="":this.minHandleElement.tabindex="0",this.viewOptions.vertical&&(this.minHandleElement.ariaOrientation="vertical"),v.isNullOrUndefined(this.viewOptions.ariaLabel)?v.isNullOrUndefined(this.viewOptions.ariaLabelledBy)||(this.minHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledBy):this.minHandleElement.ariaLabel=this.viewOptions.ariaLabel,this.range&&(this.maxHandleElement.role="slider",!this.viewOptions.keyboardSupport||this.viewOptions.readOnly||this.viewOptions.disabled?this.maxHandleElement.tabindex="":this.maxHandleElement.tabindex="0",this.maxHandleElement.ariaOrientation=this.viewOptions.vertical?"vertical":"horizontal",v.isNullOrUndefined(this.viewOptions.ariaLabelHigh)?v.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)||(this.maxHandleElement.ariaLabelledBy=this.viewOptions.ariaLabelledByHigh):this.maxHandleElement.ariaLabel=this.viewOptions.ariaLabelHigh)},e.prototype.updateAriaAttributes=function(){this.minHandleElement.ariaValueNow=(+this.value).toString(),this.minHandleElement.ariaValueText=this.viewOptions.translate(+this.value,d.Low),this.minHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.minHandleElement.ariaValueMax=this.viewOptions.ceil.toString(),this.range&&(this.maxHandleElement.ariaValueNow=(+this.highValue).toString(),this.maxHandleElement.ariaValueText=this.viewOptions.translate(+this.highValue,d.High),this.maxHandleElement.ariaValueMin=this.viewOptions.floor.toString(),this.maxHandleElement.ariaValueMax=this.viewOptions.ceil.toString())},e.prototype.calculateViewDimensions=function(){v.isNullOrUndefined(this.viewOptions.handleDimension)?this.minHandleElement.calculateDimension():this.minHandleElement.setDimension(this.viewOptions.handleDimension);var e=this.minHandleElement.dimension;this.handleHalfDimension=e/2,v.isNullOrUndefined(this.viewOptions.barDimension)?this.fullBarElement.calculateDimension():this.fullBarElement.setDimension(this.viewOptions.barDimension),this.maxHandlePosition=this.fullBarElement.dimension-e,this.initHasRun&&(this.updateFloorLabel(),this.updateCeilLabel(),this.initHandles())},e.prototype.calculateViewDimensionsAndDetectChanges=function(){this.calculateViewDimensions(),this.changeDetectionRef.detectChanges()},e.prototype.updateTicksScale=function(){var o=this;if(this.viewOptions.showTicks){var e=v.isNullOrUndefined(this.viewOptions.ticksArray)?this.getTicksArray():this.viewOptions.ticksArray,l=this.viewOptions.vertical?"translateY":"translateX";this.viewOptions.rightToLeft&&e.reverse();var i=e.map(function(e){var i=o.valueToPosition(e);o.viewOptions.vertical&&(i=o.maxHandlePosition-i);var t=l+"("+Math.round(i)+"px)",n=new E;if(n.selected=o.isTickSelected(e),n.style={"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,"-ms-transform":t,transform:t},n.selected&&!v.isNullOrUndefined(o.viewOptions.getSelectionBarColor)&&(n.style["background-color"]=o.getSelectionBarColor()),n.selected||v.isNullOrUndefined(o.viewOptions.getTickColor)||(n.style["background-color"]=o.getTickColor(e)),v.isNullOrUndefined(o.viewOptions.ticksTooltip)||(n.tooltip=o.viewOptions.ticksTooltip(e),n.tooltipPlacement=o.viewOptions.vertical?"right":"top"),o.viewOptions.showTicksValues&&e%o.viewOptions.tickValueStep==0&&(n.value=o.getDisplayValue(e,d.TickValue),v.isNullOrUndefined(o.viewOptions.ticksValuesTooltip)||(n.valueTooltip=o.viewOptions.ticksValuesTooltip(e),n.valueTooltipPlacement=o.viewOptions.vertical?"right":"top")),!v.isNullOrUndefined(o.viewOptions.getLegend)){var s=o.viewOptions.getLegend(e);v.isNullOrUndefined(s)||(n.legend=s)}return n});if(v.isNullOrUndefined(this.ticks)||this.ticks.length!==i.length)this.ticks=i;else for(var t=0;t<i.length;++t)Object.assign(this.ticks[t],i[t]);this.changeDetectionRef.detectChanges()}},e.prototype.getTicksArray=function(){for(var e=v.isNullOrUndefined(this.viewOptions.tickStep)?this.viewOptions.step:this.viewOptions.tickStep,i=[],t=this.viewOptions.floor;t<=this.viewOptions.ceil;t+=e)i.push(t);return i},e.prototype.isTickSelected=function(e){if(!this.range)if(v.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)){if(this.viewOptions.showSelectionBarEnd){if(e>=this.viewLowValue)return!0}else if(this.viewOptions.showSelectionBar&&e<=this.viewLowValue)return!0}else{var i=this.viewOptions.showSelectionBarFromValue;if(this.viewLowValue>i&&i<=e&&e<=this.viewLowValue)return!0;if(this.viewLowValue<i&&e<=i&&e>=this.viewLowValue)return!0}return!!(this.range&&e>=this.viewLowValue&&e<=this.viewHighValue)},e.prototype.updateFloorLabel=function(){if(!this.floorLabelElement.alwaysHide){this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor,d.Floor)),this.floorLabelElement.calculateDimension();var e=this.viewOptions.rightToLeft?this.fullBarElement.dimension-this.floorLabelElement.dimension:0;this.floorLabelElement.setPosition(e)}},e.prototype.updateCeilLabel=function(){if(!this.ceilLabelElement.alwaysHide){this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil,d.Ceil)),this.ceilLabelElement.calculateDimension();var e=this.viewOptions.rightToLeft?0:this.fullBarElement.dimension-this.ceilLabelElement.dimension;this.ceilLabelElement.setPosition(e)}},e.prototype.updateHandles=function(e,i){e===p.Min?this.updateLowHandle(i):e===p.Max&&this.updateHighHandle(i),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCombinedLabel()},e.prototype.getHandleLabelPos=function(e,i){var t=e===p.Min?this.minHandleLabelElement.dimension:this.maxHandleLabelElement.dimension,n=i-t/2+this.handleHalfDimension,s=this.fullBarElement.dimension-t;return this.viewOptions.boundPointerLabels?this.viewOptions.rightToLeft&&e===p.Min||!this.viewOptions.rightToLeft&&e===p.Max?Math.min(n,s):Math.min(Math.max(n,0),s):n},e.prototype.updateLowHandle=function(e){this.minHandleElement.setPosition(e),this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue,d.Low)),this.minHandleLabelElement.setPosition(this.getHandleLabelPos(p.Min,e)),v.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.minPointerStyle={backgroundColor:this.getPointerColor(p.Min)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},e.prototype.updateHighHandle=function(e){this.maxHandleElement.setPosition(e),this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue,d.High)),this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(p.Max,e)),v.isNullOrUndefined(this.viewOptions.getPointerColor)||(this.maxPointerStyle={backgroundColor:this.getPointerColor(p.Max)}),this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},e.prototype.updateFloorAndCeilLabelsVisibility=function(){if(!this.viewOptions.hidePointerLabels){var e=!1,i=!1,t=this.isLabelBelowFloorLabel(this.minHandleLabelElement),n=this.isLabelAboveCeilLabel(this.minHandleLabelElement),s=this.isLabelAboveCeilLabel(this.maxHandleLabelElement),o=this.isLabelBelowFloorLabel(this.combinedLabelElement),l=this.isLabelAboveCeilLabel(this.combinedLabelElement);if(t?(e=!0,this.floorLabelElement.hide()):(e=!1,this.floorLabelElement.show()),n?(i=!0,this.ceilLabelElement.hide()):(i=!1,this.ceilLabelElement.show()),this.range){var a=this.combinedLabelElement.isVisible()?l:s,r=this.combinedLabelElement.isVisible()?o:t;a?this.ceilLabelElement.hide():i||this.ceilLabelElement.show(),r?this.floorLabelElement.hide():e||this.floorLabelElement.show()}}},e.prototype.isLabelBelowFloorLabel=function(e){var i=e.position,t=e.dimension,n=this.floorLabelElement.position,s=this.floorLabelElement.dimension;return this.viewOptions.rightToLeft?n-2<=i+t:i<=n+s+2},e.prototype.isLabelAboveCeilLabel=function(e){var i=e.position,t=e.dimension,n=this.ceilLabelElement.position,s=this.ceilLabelElement.dimension;return this.viewOptions.rightToLeft?i<=n+s+2:n-2<=i+t},e.prototype.updateSelectionBar=function(){var e=0,i=0,t=this.viewOptions.rightToLeft?!this.viewOptions.showSelectionBarEnd:this.viewOptions.showSelectionBarEnd,n=this.viewOptions.rightToLeft?this.maxHandleElement.position+this.handleHalfDimension:this.minHandleElement.position+this.handleHalfDimension;if(this.range)i=Math.abs(this.maxHandleElement.position-this.minHandleElement.position),e=n;else if(v.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))t?(i=Math.ceil(Math.abs(this.maxHandlePosition-this.minHandleElement.position)+this.handleHalfDimension),e=Math.floor(this.minHandleElement.position+this.handleHalfDimension)):(i=this.minHandleElement.position+this.handleHalfDimension,e=0);else{var s=this.viewOptions.showSelectionBarFromValue,o=this.valueToPosition(s);(this.viewOptions.rightToLeft?this.viewLowValue<=s:this.viewLowValue>s)?(i=this.minHandleElement.position-o,e=o+this.handleHalfDimension):(i=o-this.minHandleElement.position,e=this.minHandleElement.position+this.handleHalfDimension)}if(this.selectionBarElement.setDimension(i),this.selectionBarElement.setPosition(e),this.range&&this.viewOptions.showOuterSelectionBars&&(this.viewOptions.rightToLeft?(this.rightOuterSelectionBarElement.setDimension(e),this.rightOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(e+i)),this.leftOuterSelectionBarElement.setPosition(e+i)):(this.leftOuterSelectionBarElement.setDimension(e),this.leftOuterSelectionBarElement.setPosition(0),this.fullBarElement.calculateDimension(),this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension-(e+i)),this.rightOuterSelectionBarElement.setPosition(e+i))),v.isNullOrUndefined(this.viewOptions.getSelectionBarColor)){if(!v.isNullOrUndefined(this.viewOptions.selectionBarGradient)){var l=v.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)?0:this.valueToPosition(this.viewOptions.showSelectionBarFromValue),a=0<l-e&&!t||l-e<=0&&t,r=this.viewOptions.vertical?a?"bottom":"top":a?"left":"right";this.barStyle={backgroundImage:"linear-gradient(to "+r+", "+this.viewOptions.selectionBarGradient.from+" 0%,"+this.viewOptions.selectionBarGradient.to+" 100%)"},this.viewOptions.vertical?(this.barStyle.backgroundPosition="center "+(l+i+e+(a?-this.handleHalfDimension:0))+"px",this.barStyle.backgroundSize="100% "+(this.fullBarElement.dimension-this.handleHalfDimension)+"px"):(this.barStyle.backgroundPosition=l-e+(a?this.handleHalfDimension:0)+"px center",this.barStyle.backgroundSize=this.fullBarElement.dimension-this.handleHalfDimension+"px 100%")}}else{var h=this.getSelectionBarColor();this.barStyle={backgroundColor:h}}},e.prototype.getSelectionBarColor=function(){return this.range?this.viewOptions.getSelectionBarColor(this.value,this.highValue):this.viewOptions.getSelectionBarColor(this.value)},e.prototype.getPointerColor=function(e){return e===p.Max?this.viewOptions.getPointerColor(this.highValue,e):this.viewOptions.getPointerColor(this.value,e)},e.prototype.getTickColor=function(e){return this.viewOptions.getTickColor(e)},e.prototype.updateCombinedLabel=function(){if(this.viewOptions.rightToLeft?this.minHandleLabelElement.position-this.minHandleLabelElement.dimension-10<=this.maxHandleLabelElement.position:this.minHandleLabelElement.position+this.minHandleLabelElement.dimension+10>=this.maxHandleLabelElement.position){var e=this.getDisplayValue(this.viewLowValue,d.Low),i=this.getDisplayValue(this.viewHighValue,d.High),t=this.viewOptions.rightToLeft?this.viewOptions.combineLabels(i,e):this.viewOptions.combineLabels(e,i);this.combinedLabelElement.setValue(t);var n=this.viewOptions.boundPointerLabels?Math.min(Math.max(this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2,0),this.fullBarElement.dimension-this.combinedLabelElement.dimension):this.selectionBarElement.position+this.selectionBarElement.dimension/2-this.combinedLabelElement.dimension/2;this.combinedLabelElement.setPosition(n),this.minHandleLabelElement.hide(),this.maxHandleLabelElement.hide(),this.combinedLabelElement.show()}else this.updateHighHandle(this.valueToPosition(this.viewHighValue)),this.updateLowHandle(this.valueToPosition(this.viewLowValue)),this.maxHandleLabelElement.show(),this.minHandleLabelElement.show(),this.combinedLabelElement.hide();this.viewOptions.autoHideLimitLabels&&this.updateFloorAndCeilLabelsVisibility()},e.prototype.getDisplayValue=function(e,i){return v.isNullOrUndefined(this.viewOptions.stepsArray)||this.viewOptions.bindIndexForStepsArray||(e=this.getStepValue(e)),this.viewOptions.translate(e,i)},e.prototype.roundStep=function(e,i){var t=v.isNullOrUndefined(i)?this.viewOptions.step:i,n=f.roundToPrecisionLimit((e-this.viewOptions.floor)/t,this.viewOptions.precisionLimit);return n=Math.round(n)*t,f.roundToPrecisionLimit(this.viewOptions.floor+n,this.viewOptions.precisionLimit)},e.prototype.valueToPosition=function(e){var i=v.linearValueToPosition;v.isNullOrUndefined(this.viewOptions.customValueToPosition)?this.viewOptions.logScale&&(i=v.logValueToPosition):i=this.viewOptions.customValueToPosition;var t=i(e=f.clampToRange(e,this.viewOptions.floor,this.viewOptions.ceil),this.viewOptions.floor,this.viewOptions.ceil);return v.isNullOrUndefined(t)&&(t=0),this.viewOptions.rightToLeft&&(t=1-t),t*this.maxHandlePosition},e.prototype.positionToValue=function(e){var i=e/this.maxHandlePosition;this.viewOptions.rightToLeft&&(i=1-i);var t=v.linearPositionToValue;v.isNullOrUndefined(this.viewOptions.customPositionToValue)?this.viewOptions.logScale&&(t=v.logPositionToValue):t=this.viewOptions.customPositionToValue;var n=t(i,this.viewOptions.floor,this.viewOptions.ceil);return v.isNullOrUndefined(n)?0:n},e.prototype.getEventXY=function(e,i){if(e instanceof MouseEvent)return this.viewOptions.vertical?e.clientY:e.clientX;var t=0,n=e.touches;if(!v.isNullOrUndefined(i))for(var s=0;s<n.length;s++)if(n[s].identifier===i){t=s;break}return this.viewOptions.vertical?n[t].clientY:n[t].clientX},e.prototype.getEventPosition=function(e,i){var t=this.elementRef.nativeElement.getBoundingClientRect(),n=this.viewOptions.vertical?t.bottom:t.left;return(this.viewOptions.vertical?-this.getEventXY(e,i)+n:this.getEventXY(e,i)-n)*this.viewOptions.scale-this.handleHalfDimension},e.prototype.getNearestHandle=function(e){if(!this.range)return p.Min;var i=this.getEventPosition(e),t=Math.abs(i-this.minHandleElement.position),n=Math.abs(i-this.maxHandleElement.position);return t<n?p.Min:n<t?p.Max:this.viewOptions.rightToLeft?i>this.minHandleElement.position?p.Min:p.Max:i<this.minHandleElement.position?p.Min:p.Max},e.prototype.bindEvents=function(){var i=this,t=this.viewOptions.draggableRange;this.viewOptions.onlyBindHandles||this.selectionBarElement.on("mousedown",function(e){return i.onBarStart(null,t,e,!0,!0,!0)}),this.viewOptions.draggableRangeOnly?(this.minHandleElement.on("mousedown",function(e){return i.onBarStart(p.Min,t,e,!0,!0)}),this.maxHandleElement.on("mousedown",function(e){return i.onBarStart(p.Max,t,e,!0,!0)})):(this.minHandleElement.on("mousedown",function(e){return i.onStart(p.Min,e,!0,!0)}),this.range&&this.maxHandleElement.on("mousedown",function(e){return i.onStart(p.Max,e,!0,!0)}),this.viewOptions.onlyBindHandles||(this.fullBarElement.on("mousedown",function(e){return i.onStart(null,e,!0,!0,!0)}),this.ticksElement.on("mousedown",function(e){return i.onStart(null,e,!0,!0,!0,!0)}))),this.viewOptions.onlyBindHandles||this.selectionBarElement.onPassive("touchstart",function(e){return i.onBarStart(null,t,e,!0,!0,!0)}),this.viewOptions.draggableRangeOnly?(this.minHandleElement.onPassive("touchstart",function(e){return i.onBarStart(p.Min,t,e,!0,!0)}),this.maxHandleElement.onPassive("touchstart",function(e){return i.onBarStart(p.Max,t,e,!0,!0)})):(this.minHandleElement.onPassive("touchstart",function(e){return i.onStart(p.Min,e,!0,!0)}),this.range&&this.maxHandleElement.onPassive("touchstart",function(e){return i.onStart(p.Max,e,!0,!0)}),this.viewOptions.onlyBindHandles||(this.fullBarElement.onPassive("touchstart",function(e){return i.onStart(null,e,!0,!0,!0)}),this.ticksElement.onPassive("touchstart",function(e){return i.onStart(null,e,!1,!1,!0,!0)}))),this.viewOptions.keyboardSupport&&(this.minHandleElement.on("focus",function(){return i.onPointerFocus(p.Min)}),this.range&&this.maxHandleElement.on("focus",function(){return i.onPointerFocus(p.Max)}))},e.prototype.unbindEvents=function(){this.unsubscribeOnMove(),this.unsubscribeOnEnd();try{for(var e=h(this.getAllSliderElements()),i=e.next();!i.done;i=e.next()){i.value.off()}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=e["return"])&&n.call(e)}finally{if(t)throw t.error}}var t,n},e.prototype.onBarStart=function(e,i,t,n,s,o,l){i?this.onDragStart(e,t,n,s):this.onStart(e,t,n,s,o,l)},e.prototype.onStart=function(e,i,t,n,s,o){var l=this;i.stopPropagation(),m.isTouchEvent(i)&&u.hasSupport||i.preventDefault(),this.calculateViewDimensions(),v.isNullOrUndefined(e)&&(e=this.getNearestHandle(i)),this.currentTrackingPointer=e;var a=this.getPointerElement(e);if(a.active=!0,this.viewOptions.keyboardSupport&&a.focus(),t){this.unsubscribeOnMove();var r=function(e){return l.dragging.active?l.onDragMove(e):l.onMove(e)};m.isTouchEvent(i)?this.onMoveEventListener=this.eventListenerHelper.attachPassiveEventListener(document,"touchmove",r,this.viewOptions.touchEventsInterval):this.onMoveEventListener=this.eventListenerHelper.attachEventListener(document,"mousemove",r,this.viewOptions.mouseEventsInterval)}if(n){this.unsubscribeOnEnd();var h=function(e){return l.onEnd(e)};m.isTouchEvent(i)?this.onEndEventListener=this.eventListenerHelper.attachPassiveEventListener(document,"touchend",h):this.onEndEventListener=this.eventListenerHelper.attachEventListener(document,"mouseup",h)}this.userChangeStart.emit(this.getChangeContext()),m.isTouchEvent(i)&&!v.isNullOrUndefined(i.changedTouches)&&v.isNullOrUndefined(this.touchId)&&(this.touchId=i.changedTouches[0].identifier),s&&this.onMove(i,!0),o&&this.onEnd(i)},e.prototype.onMove=function(e,i){var t=null;if(m.isTouchEvent(e)){for(var n=e.changedTouches,s=0;s<n.length;s++)if(n[s].identifier===this.touchId){t=n[s];break}if(v.isNullOrUndefined(t))return}var o,l=v.isNullOrUndefined(t)?this.getEventPosition(e):this.getEventPosition(e,t.identifier),a=this.viewOptions.rightToLeft?this.viewOptions.floor:this.viewOptions.ceil,r=this.viewOptions.rightToLeft?this.viewOptions.ceil:this.viewOptions.floor;l<=0?o=r:l>=this.maxHandlePosition?o=a:(o=this.positionToValue(l),o=i&&!v.isNullOrUndefined(this.viewOptions.tickStep)?this.roundStep(o,this.viewOptions.tickStep):this.roundStep(o)),this.positionTrackingHandle(o)},e.prototype.onEnd=function(e){if(m.isTouchEvent(e)&&e.changedTouches[0].identifier!==this.touchId)return;this.touchId=null,this.viewOptions.keyboardSupport||(this.minHandleElement.active=!1,this.maxHandleElement.active=!1,this.currentTrackingPointer=null),this.dragging.active=!1,this.unsubscribeOnMove(),this.unsubscribeOnEnd(),this.userChangeEnd.emit(this.getChangeContext())},e.prototype.onPointerFocus=function(e){var i=this,t=this.getPointerElement(e);t.on("blur",function(){return i.onPointerBlur(t)}),t.on("keydown",function(e){return i.onKeyboardEvent(e)}),t.on("keyup",function(){return i.onKeyUp()}),t.active=!0,this.currentTrackingPointer=e,this.currentFocusPointer=e,this.firstKeyDown=!0},e.prototype.onKeyUp=function(){this.firstKeyDown=!0,this.userChangeEnd.emit(this.getChangeContext())},e.prototype.onPointerBlur=function(e){e.off("blur"),e.off("keydown"),e.off("keyup"),e.active=!1,v.isNullOrUndefined(this.touchId)&&(this.currentTrackingPointer=null,this.currentFocusPointer=null)},e.prototype.getKeyActions=function(e){var i=this.viewOptions.ceil-this.viewOptions.floor,t=e+this.viewOptions.step,n=e-this.viewOptions.step,s=e+i/10,o=e-i/10;this.viewOptions.reversedControls&&(t=e-this.viewOptions.step,n=e+this.viewOptions.step,s=e-i/10,o=e+i/10);var l={UP:t,DOWN:n,LEFT:n,RIGHT:t,PAGEUP:s,PAGEDOWN:o,HOME:this.viewOptions.reversedControls?this.viewOptions.ceil:this.viewOptions.floor,END:this.viewOptions.reversedControls?this.viewOptions.floor:this.viewOptions.ceil};return this.viewOptions.rightToLeft&&(l.LEFT=t,l.RIGHT=n,this.viewOptions.vertical&&(l.UP=n,l.DOWN=t)),l},e.prototype.onKeyboardEvent=function(e){var i=this.getCurrentTrackingValue(),t=v.isNullOrUndefined(e.keyCode)?e.which:e.keyCode,n=this.getKeyActions(i)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[t]];if(!v.isNullOrUndefined(n)&&!v.isNullOrUndefined(this.currentTrackingPointer)){e.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.userChangeStart.emit(this.getChangeContext()));var s=f.clampToRange(n,this.viewOptions.floor,this.viewOptions.ceil),o=this.roundStep(s);if(this.viewOptions.draggableRangeOnly){var l=this.viewHighValue-this.viewLowValue,a=void 0,r=void 0;this.currentTrackingPointer===p.Min?(r=(a=o)+l)>this.viewOptions.ceil&&(a=(r=this.viewOptions.ceil)-l):this.currentTrackingPointer===p.Max&&(a=(r=o)-l)<this.viewOptions.floor&&(r=(a=this.viewOptions.floor)+l),this.positionTrackingBar(a,r)}else this.positionTrackingHandle(o)}},e.prototype.onDragStart=function(e,i,t,n){var s=this.getEventPosition(i);this.dragging=new V,this.dragging.active=!0,this.dragging.value=this.positionToValue(s),this.dragging.difference=this.viewHighValue-this.viewLowValue,this.dragging.lowLimit=this.viewOptions.rightToLeft?this.minHandleElement.position-s:s-this.minHandleElement.position,this.dragging.highLimit=this.viewOptions.rightToLeft?s-this.maxHandleElement.position:this.maxHandleElement.position-s,this.onStart(e,i,t,n)},e.prototype.getMinValue=function(e,i,t){var n=this.viewOptions.rightToLeft,s=null;return s=i?t?n?this.viewOptions.floor:this.viewOptions.ceil-this.dragging.difference:n?this.viewOptions.ceil-this.dragging.difference:this.viewOptions.floor:n?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit),this.roundStep(s)},e.prototype.getMaxValue=function(e,i,t){var n=this.viewOptions.rightToLeft,s=null;return s=i?t?n?this.viewOptions.floor+this.dragging.difference:this.viewOptions.ceil:n?this.viewOptions.ceil:this.viewOptions.floor+this.dragging.difference:n?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(s)},e.prototype.onDragMove=function(e){var i,t,n,s,o=this.getEventPosition(e);this.viewOptions.rightToLeft?(i=this.dragging.lowLimit,t=this.dragging.highLimit,n=this.maxHandleElement,s=this.minHandleElement):(i=this.dragging.highLimit,t=this.dragging.lowLimit,n=this.minHandleElement,s=this.maxHandleElement);var l,a,r=o<=t,h=o>=this.maxHandlePosition-i;if(r){if(0===n.position)return;l=this.getMinValue(o,!0,!1),a=this.getMaxValue(o,!0,!1)}else if(h){if(s.position===this.maxHandlePosition)return;a=this.getMaxValue(o,!0,!0),l=this.getMinValue(o,!0,!0)}else l=this.getMinValue(o,!1,!1),a=this.getMaxValue(o,!1,!1);this.positionTrackingBar(l,a)},e.prototype.positionTrackingBar=function(e,i){!v.isNullOrUndefined(this.viewOptions.minLimit)&&e<this.viewOptions.minLimit&&(e=this.viewOptions.minLimit,i=f.roundToPrecisionLimit(e+this.dragging.difference,this.viewOptions.precisionLimit)),!v.isNullOrUndefined(this.viewOptions.maxLimit)&&i>this.viewOptions.maxLimit&&(i=this.viewOptions.maxLimit,e=f.roundToPrecisionLimit(i-this.dragging.difference,this.viewOptions.precisionLimit)),this.viewLowValue=e,this.viewHighValue=i,this.applyViewChange(),this.updateHandles(p.Min,this.valueToPosition(e)),this.updateHandles(p.Max,this.valueToPosition(i))},e.prototype.positionTrackingHandle=function(e){e=this.applyMinMaxLimit(e),this.range&&(this.viewOptions.pushRange?e=this.applyPushRange(e):(this.viewOptions.noSwitching&&(this.currentTrackingPointer===p.Min&&e>this.viewHighValue?e=this.applyMinMaxRange(this.viewHighValue):this.currentTrackingPointer===p.Max&&e<this.viewLowValue&&(e=this.applyMinMaxRange(this.viewLowValue))),e=this.applyMinMaxRange(e),this.currentTrackingPointer===p.Min&&e>this.viewHighValue?(this.viewLowValue=this.viewHighValue,this.applyViewChange(),this.updateHandles(p.Min,this.maxHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=p.Max,this.minHandleElement.active=!1,this.maxHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.maxHandleElement.focus()):this.currentTrackingPointer===p.Max&&e<this.viewLowValue&&(this.viewHighValue=this.viewLowValue,this.applyViewChange(),this.updateHandles(p.Max,this.minHandleElement.position),this.updateAriaAttributes(),this.currentTrackingPointer=p.Min,this.maxHandleElement.active=!1,this.minHandleElement.active=!0,this.viewOptions.keyboardSupport&&this.minHandleElement.focus()))),this.getCurrentTrackingValue()!==e&&(this.currentTrackingPointer===p.Min?(this.viewLowValue=e,this.applyViewChange()):this.currentTrackingPointer===p.Max&&(this.viewHighValue=e,this.applyViewChange()),this.updateHandles(this.currentTrackingPointer,this.valueToPosition(e)),this.updateAriaAttributes())},e.prototype.applyMinMaxLimit=function(e){return!v.isNullOrUndefined(this.viewOptions.minLimit)&&e<this.viewOptions.minLimit?this.viewOptions.minLimit:!v.isNullOrUndefined(this.viewOptions.maxLimit)&&e>this.viewOptions.maxLimit?this.viewOptions.maxLimit:e},e.prototype.applyMinMaxRange=function(e){var i=this.currentTrackingPointer===p.Min?this.viewHighValue:this.viewLowValue,t=Math.abs(e-i);if(!v.isNullOrUndefined(this.viewOptions.minRange)&&t<this.viewOptions.minRange){if(this.currentTrackingPointer===p.Min)return f.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.minRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===p.Max)return f.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.minRange,this.viewOptions.precisionLimit)}if(!v.isNullOrUndefined(this.viewOptions.maxRange)&&t>this.viewOptions.maxRange){if(this.currentTrackingPointer===p.Min)return f.roundToPrecisionLimit(this.viewHighValue-this.viewOptions.maxRange,this.viewOptions.precisionLimit);if(this.currentTrackingPointer===p.Max)return f.roundToPrecisionLimit(this.viewLowValue+this.viewOptions.maxRange,this.viewOptions.precisionLimit)}return e},e.prototype.applyPushRange=function(e){var i=this.currentTrackingPointer===p.Min?this.viewHighValue-e:e-this.viewLowValue,t=v.isNullOrUndefined(this.viewOptions.minRange)?this.viewOptions.step:this.viewOptions.minRange,n=this.viewOptions.maxRange;return i<t?(this.currentTrackingPointer===p.Min?(this.viewHighValue=f.roundToPrecisionLimit(Math.min(e+t,this.viewOptions.ceil),this.viewOptions.precisionLimit),e=f.roundToPrecisionLimit(this.viewHighValue-t,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(p.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===p.Max&&(this.viewLowValue=f.roundToPrecisionLimit(Math.max(e-t,this.viewOptions.floor),this.viewOptions.precisionLimit),e=f.roundToPrecisionLimit(this.viewLowValue+t,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(p.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()):!v.isNullOrUndefined(n)&&n<i&&(this.currentTrackingPointer===p.Min?(this.viewHighValue=f.roundToPrecisionLimit(e+n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(p.Max,this.valueToPosition(this.viewHighValue))):this.currentTrackingPointer===p.Max&&(this.viewLowValue=f.roundToPrecisionLimit(e-n,this.viewOptions.precisionLimit),this.applyViewChange(),this.updateHandles(p.Min,this.valueToPosition(this.viewLowValue))),this.updateAriaAttributes()),e},e.prototype.getChangeContext=function(){var e=new g;return e.pointerType=this.currentTrackingPointer,e.value=+this.value,this.range&&(e.highValue=+this.highValue),e},e}();T.decorators=[{type:s.Component,args:[{selector:"ng5-slider",template:'\x3c!-- // 0 Left selection bar outside two handles --\x3e\n<span ng5SliderElement #leftOuterSelectionBar class="ng5-slider-span ng5-slider-bar-wrapper ng5-slider-left-out-selection">\n <span class="ng5-slider-span ng5-slider-bar"></span>\n</span>\n\x3c!-- // 1 Right selection bar outside two handles --\x3e\n<span ng5SliderElement #rightOuterSelectionBar class="ng5-slider-span ng5-slider-bar-wrapper ng5-slider-right-out-selection">\n <span class="ng5-slider-span ng5-slider-bar"></span>\n</span>\n\x3c!-- // 2 The whole slider bar --\x3e\n<span ng5SliderElement #fullBar [class.ng5-slider-transparent]="fullBarTransparentClass" class="ng5-slider-span ng5-slider-bar-wrapper ng5-slider-full-bar">\n <span class="ng5-slider-span ng5-slider-bar"></span>\n</span>\n\x3c!-- // 3 Selection bar between two handles --\x3e\n<span ng5SliderElement #selectionBar [class.ng5-slider-draggable]="selectionBarDraggableClass" class="ng5-slider-span ng5-slider-bar-wrapper ng5-slider-selection-bar">\n <span class="ng5-slider-span ng5-slider-bar ng5-slider-selection" [ngStyle]="barStyle"></span>\n</span>\n\x3c!-- // 4 Low slider handle --\x3e\n<span ng5SliderHandle #minHandle class="ng5-slider-span ng5-slider-pointer ng5-slider-pointer-min" [ngStyle]=minPointerStyle></span>\n\x3c!-- // 5 High slider handle --\x3e\n<span ng5SliderHandle #maxHandle [style.display]="range ? \'inherit\' : \'none\'" class="ng5-slider-span ng5-slider-pointer ng5-slider-pointer-max" [ngStyle]=maxPointerStyle></span>\n\x3c!-- // 6 Floor label --\x3e\n<span ng5SliderLabel #floorLabel class="ng5-slider-span ng5-slider-bubble ng5-slider-limit ng5-slider-floor"></span>\n\x3c!-- // 7 Ceiling label --\x3e\n<span ng5SliderLabel #ceilLabel class="ng5-slider-span ng5-slider-bubble ng5-slider-limit ng5-slider-ceil"></span>\n\x3c!-- // 8 Label above the low slider handle --\x3e\n<span ng5SliderLabel #minHandleLabel class="ng5-slider-span ng5-slider-bubble ng5-slider-model-value"></span>\n\x3c!-- // 9 Label above the high slider handle --\x3e\n<span ng5SliderLabel #maxHandleLabel class="ng5-slider-span ng5-slider-bubble ng5-slider-model-high"></span>\n\x3c!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 --\x3e\n<span ng5SliderLabel #combinedLabel class="ng5-slider-span ng5-slider-bubble ng5-slider-combined"></span>\n\x3c!-- // 11 The ticks --\x3e\n<span ng5SliderElement #ticksElement [hidden]="!showTicks" [class.ng5-slider-ticks-values-under]="ticksUnderValuesClass" class="ng5-slider-ticks">\n <span *ngFor="let t of ticks" class="ng5-slider-tick" [ngClass]="{\'ng5-slider-selected\': t.selected}" [ngStyle]="t.style">\n <ng5-slider-tooltip-wrapper [template]="tooltipTemplate" [tooltip]="t.tooltip" [placement]="t.tooltipPlacement"></ng5-slider-tooltip-wrapper>\n <ng5-slider-tooltip-wrapper *ngIf="t.value != null" class="ng5-slider-span ng5-slider-tick-value"\n [template]="tooltipTemplate" [tooltip]="t.valueTooltip" [placement]="t.valueTooltipPlacement" [content]="t.value"></ng5-slider-tooltip-wrapper>\n <span *ngIf="t.legend != null" class="ng5-slider-span ng5-slider-tick-legend" [innerHTML]="t.legend"></span>\n </span>\n</span>',styles:["::ng-deep .ng5-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y}::ng-deep .ng5-slider.with-legend{margin-bottom:40px}::ng-deep .ng5-slider[disabled]{cursor:not-allowed}::ng-deep .ng5-slider[disabled] .ng5-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}::ng-deep .ng5-slider[disabled] .ng5-slider-draggable{cursor:not-allowed}::ng-deep .ng5-slider[disabled] .ng5-slider-selection{background:#8b91a2}::ng-deep .ng5-slider[disabled] .ng5-slider-tick{cursor:not-allowed}::ng-deep .ng5-slider[disabled] .ng5-slider-tick.ng5-slider-selected{background:#8b91a2}::ng-deep .ng5-slider .ng5-slider-span{white-space:nowrap;position:absolute;display:inline-block}::ng-deep .ng5-slider .ng5-slider-base{width:100%;height:100%;padding:0}::ng-deep .ng5-slider .ng5-slider-bar-wrapper{left:0;-webkit-box-sizing:border-box;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}::ng-deep .ng5-slider .ng5-slider-draggable{cursor:move}::ng-deep .ng5-slider .ng5-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px}::ng-deep .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-transparent .ng5-slider-bar{background:0 0}::ng-deep .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-left-out-selection .ng5-slider-bar{background:#df002d}::ng-deep .ng5-slider .ng5-slider-bar-wrapper.ng5-slider-right-out-selection .ng5-slider-bar{background:#03a688}::ng-deep .ng5-slider .ng5-slider-selection{z-index:2;background:#0db9f0;border-radius:2px}::ng-deep .ng5-slider .ng5-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px}::ng-deep .ng5-slider .ng5-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff}::ng-deep .ng5-slider .ng5-slider-pointer:hover:after{background-color:#fff}::ng-deep .ng5-slider .ng5-slider-pointer.ng5-slider-active{z-index:4}::ng-deep .ng5-slider .ng5-slider-pointer.ng5-slider-active:after{background-color:#451aff}::ng-deep .ng5-slider .ng5-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}::ng-deep .ng5-slider .ng5-slider-bubble.ng5-slider-limit{color:#55637d}::ng-deep .ng5-slider .ng5-slider-ticks{-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}::ng-deep .ng5-slider .ng5-slider-ticks-values-under .ng5-slider-tick-value{top:auto;bottom:-36px}::ng-deep .ng5-slider .ng5-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}::ng-deep .ng5-slider .ng5-slider-tick.ng5-slider-selected{background:#0db9f0}::ng-deep .ng5-slider .ng5-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}::ng-deep .ng5-slider .ng5-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal}::ng-deep .ng5-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;-ms-touch-action:pan-x;touch-action:pan-x}::ng-deep .ng5-slider.vertical .ng5-slider-base{width:100%;height:100%;padding:0}::ng-deep .ng5-slider.vertical .ng5-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}::ng-deep .ng5-slider.vertical .ng5-slider-bar{bottom:0;left:auto;width:4px;height:100%}::ng-deep .ng5-slider.vertical .ng5-slider-pointer{left:-14px!important;top:auto;bottom:0}::ng-deep .ng5-slider.vertical .ng5-slider-bubble{left:16px!important;bottom:0}::ng-deep .ng5-slider.vertical .ng5-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}::ng-deep .ng5-slider.vertical .ng5-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}::ng-deep .ng5-slider.vertical .ng5-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)}::ng-deep .ng5-slider.vertical .ng5-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap}::ng-deep .ng5-slider.vertical .ng5-slider-ticks-values-under .ng5-slider-tick-value{bottom:auto;left:auto;right:24px}::ng-deep .ng5-slider *{-webkit-transition:none;transition:none}::ng-deep .ng5-slider.animate .ng5-slider-bar-wrapper{-webkit-transition:all linear .3s;transition:all linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-selection{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-pointer{-webkit-transition:all linear .3s;transition:all linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-bubble{-webkit-transition:all linear .3s;transition:all linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-bubble.ng5-slider-limit{-webkit-transition:opacity linear .3s;transition:opacity linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-bubble.ng5-slider-combined{-webkit-transition:opacity linear .3s;transition:opacity linear .3s}::ng-deep .ng5-slider.animate .ng5-slider-tick{-webkit-transition:background-color linear .3s;transition:background-color linear .3s}"],host:{"class":"ng5-slider"},providers:[S]}]}],T.ctorParameters=function(){return[{type:s.Renderer2},{type:s.ElementRef},{type:s.ChangeDetectorRef},{type:s.NgZone}]},T.propDecorators={value:[{type:s.Input}],valueChange:[{type:s.Output}],highValue:[{type:s.Input}],highValueChange:[{type:s.Output}],options:[{type:s.Input}],userChangeStart:[{type:s.Output}],userChange:[{type:s.Output}],userChangeEnd:[{type:s.Output}],manualRefresh:[{type:s.Input}],triggerFocus:[{type:s.Input}],leftOuterSelectionBarElement:[{type:s.ViewChild,args:["leftOuterSelectionBar",{read:O}]}],rightOuterSelectionBarElement:[{type:s.ViewChild,args:["rightOuterSelectionBar",{read:O}]}],fullBarElement:[{type:s.ViewChild,args:["fullBar",{read:O}]}],selectionBarElement:[{type:s.ViewChild,args:["selectionBar",{read:O}]}],minHandleElement:[{type:s.ViewChild,args:["minHandle",{read:y}]}],maxHandleElement:[{type:s.ViewChild,args:["maxHandle",{read:y}]}],floorLabelElement:[{type:s.ViewChild,args:["floorLabel",{read:L}]}],ceilLabelElement:[{type:s.ViewChild,args:["ceilLabel",{read:L}]}],minHandleLabelElement:[{type:s.ViewChild,args:["minHandleLabel",{read:L}]}],maxHandleLabelElement:[{type:s.ViewChild,args:["maxHandleLabel",{read:L}]}],combinedLabelElement:[{type:s.ViewChild,args:["combinedLabel",{read:L}]}],ticksElement:[{type:s.ViewChild,args:["ticksElement",{read:O}]}],tooltipTemplate:[{type:s.ContentChild,args:["tooltipTemplate"]}],sliderElementVerticalClass:[{type:s.HostBinding,args:["class.vertical"]}],sliderElementAnimateClass:[{type:s.HostBinding,args:["class.animate"]}],sliderElementDisabledAttr:[{type:s.HostBinding,args:["attr.disabled"]}],onResize:[{type:s.HostListener,args:["window:resize",["$event"]]}]};var C=function(){};C.decorators=[{type:s.Component,args:[{selector:"ng5-slider-tooltip-wrapper",template:'<ng-container *ngIf="template">\n <ng-template *ngTemplateOutlet="template; context: {tooltip: tooltip, placement: placement, content: content}"></ng-template>\n</ng-container>\n\n<ng-container *ngIf="!template">\n <div class="ng5-slider-inner-tooltip" [attr.title]="tooltip" [attr.data-tooltip-placement]="placement">\n {{content}}\n </div>\n</ng-container>',styles:[".ng5-slider-inner-tooltip{height:100%}"]}]}],C.ctorParameters=function(){return[]},C.propDecorators={template:[{type:s.Input}],tooltip:[{type:s.Input}],placement:[{type:s.Input}],content:[{type:s.Input}]};var k=function(){};k.decorators=[{type:s.NgModule,args:[{imports:[n.CommonModule],declarations:[T,O,y,L,C],exports:[T]}]}],k.ctorParameters=function(){return[]},e.Ng5SliderModule=k,e.ChangeContext=g,e.PointerType=p,e.LabelType=d,e.Options=c,e.ɵb=O,e.ɵc=y,e.ɵd=L,e.ɵa=T,e.ɵe=C,Object.defineProperty(e,"__esModule",{value:!0})});
- //# sourceMappingURL=ng5-slider.umd.min.js.map
|