!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/material/slider"),require("@angular/material/divider"),require("@angular/forms"),require("@angular/common"),require("@angular/material/list")):"function"==typeof define&&define.amd?define("ngx-mat-range-slider",["exports","@angular/core","@angular/material/slider","@angular/material/divider","@angular/forms","@angular/common","@angular/material/list"],t):t((e=e||self)["ngx-mat-range-slider"]={},e.ng.core,e.ng.material.slider,e.ng.material.divider,e.ng.forms,e.ng.common,e.ng.material.list)}(this,(function(e,t,i,n,r,a,l){"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.
    ***************************************************************************** */Object.create;function o(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,a=i.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return l}Object.create;var s=function(){function e(){this.isMinValueInit=!0,this.isMaxValueInit=!0,this.thumbLabel=!0,this.minColor="accent",this.maxColor="primary",this.showRuler=!1,this.formatLabel=function(e){return e},this.output=new t.EventEmitter,this.maxConf=75,this.minConf=18}return Object.defineProperty(e.prototype,"max",{get:function(){return this.maxConf},set:function(e){this.maxConf=parseInt(e.toString(),10)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this.minConf},set:function(e){this.minConf=parseInt(e.toString(),10)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this.minValue=e.min,this.maxValue=e.max},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rulerArray",{get:function(){var e=this;return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}(Array(this.max-this.min).keys()).map((function(t){return t+e.min}))},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.minValue||(this.minValue=this.min),this.maxValue||(this.maxValue=this.max),this.isMinValueInit=this.minValue===this.min,this.isMaxValueInit=this.maxValue===this.max,this.output.emit({min:this.minValue,max:this.maxValue})},e.prototype.valueChange=function(){this.output.emit({min:this.minValue,max:this.maxValue})},e.prototype.minValueInput=function(e){this.isMinValueInit=e.value===this.min,e.value>=this.maxValue&&(e.source.value=this.maxValue)},e.prototype.maxValueInput=function(e){this.isMaxValueInit=e.value===this.max,e.value<=this.minValue&&(e.source.value=this.minValue)},e}();s.decorators=[{type:t.Component,args:[{selector:"lib-ngx-mat-range-slider",template:'<div class="full-width ranger-slider">\n  <mat-slider\n    (change)="valueChange()"\n    (input)="minValueInput($event)"\n    [(ngModel)]="minValue"\n    [color]="minColor"\n    [displayWith]="formatLabel"\n    [max]="max"\n    [min]="min"\n    [thumbLabel]="thumbLabel"\n    class="full-width cdk-focused slider-over slider-min-value"\n    step="1">\n  </mat-slider>\n  <mat-slider\n    (change)="valueChange()"\n    (input)="maxValueInput($event)"\n    [(ngModel)]="maxValue"\n    [color]="maxColor"\n    [displayWith]="formatLabel"\n    [max]="max"\n    [min]="min"\n    [thumbLabel]="thumbLabel"\n    class="full-width cdk-focused slider-over slider-max-value"\n    step="1">\n  </mat-slider>\n  <div class="full-width slider-over slider-line-cover-wrapper">\n    <mat-divider [class]="isMinValueInit? \'slider-line-cover-init\' : \'slider-line-cover\'"></mat-divider>\n    <mat-divider [class]="isMaxValueInit? \'slider-line-cover-init\' : \'slider-line-cover\'"></mat-divider>\n  </div>\n\n  <div *ngIf="showRuler" class="outer">\n    <div class="middle">\n      <div *ngFor="let key of rulerArray" class="inner">|</div>\n    </div>\n    <div class="middle">\n      <div *ngFor="let key of rulerArray" class="inner"><span>{{key}}</span></div>\n    </div>\n  </div>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:[".slider-over{left:0;position:absolute!important;top:16px}mat-slider{padding-left:0;padding-right:0}ngx-mat-range-slider{height:60px}ngx-mat-range-slider .mat-slider-thumb-label{border-radius:50% 50% 0!important;transform:rotate(45deg)!important}ngx-mat-range-slider .mat-slider-thumb-label-text{opacity:1!important;transform:rotate(-45deg)!important}ngx-mat-range-slider .mat-slider-thumb{transform:scale(0)}ngx-mat-range-slider .mat-slider-track-wrapper{background:#66bb6a}ngx-mat-range-slider .slider-min-value .mat-slider-track-fill,ngx-mat-range-slider .slider-min-value .mat-slider-track-fill:focus{background-color:#bdbdbd!important;outline:#bdbdbd;z-index:99}ngx-mat-range-slider .slider-min-value .mat-slider-track-background,ngx-mat-range-slider .slider-min-value .mat-slider-track-background:focus{display:none}ngx-mat-range-slider .slider-max-value .mat-slider-track-background,ngx-mat-range-slider .slider-max-value .mat-slider-track-background:focus{background-color:#bdbdbd!important;outline:#bdbdbd;z-index:99}ngx-mat-range-slider .slider-max-value .mat-slider-track-fill,ngx-mat-range-slider .slider-max-value .mat-slider-track-fill:focus{display:none}ngx-mat-range-slider .slider-line-cover-wrapper{display:table;top:39px;z-index:-1}ngx-mat-range-slider .slider-line-cover-wrapper .slider-line-cover{background-color:#bdbdbd!important;border-bottom:1px solid #bdbdbd!important;display:table-cell;width:50%}ngx-mat-range-slider .slider-line-cover-wrapper .slider-line-cover-init{background-color:#66bb6a!important;border-bottom:1px solid #66bb6a!important;display:table-cell;width:50%}ngx-mat-range-slider div.outer{border-top:2px solid red;display:table;width:100%}ngx-mat-range-slider div.middle:first-of-type{display:table-row;font-size:5px}ngx-mat-range-slider div.middle:nth-of-type(2){display:table-row;font-size:10px}ngx-mat-range-slider div.middle:nth-of-type(2) span{-ms-writing-mode:tb-rl;-webkit-text-orientation:upright;font-size:10px;text-orientation:upright;writing-mode:vertical-rl}ngx-mat-range-slider div.inner{align-content:center;align-items:center;display:table-cell;text-align:center}"]}]}],s.propDecorators={minValue:[{type:t.Input}],maxValue:[{type:t.Input}],minColor:[{type:t.Input}],maxColor:[{type:t.Input}],showRuler:[{type:t.Input}],formatLabel:[{type:t.Input}],output:[{type:t.Output}],max:[{type:t.Input}],min:[{type:t.Input}],value:[{type:t.Input}]};var d=function(){};d.decorators=[{type:t.NgModule,args:[{declarations:[s],imports:[a.CommonModule,r.FormsModule,i.MatSliderModule,n.MatDividerModule,l.MatListModule],exports:[s]}]}],e.NgxMatRangeSliderComponent=s,e.NgxMatRangeSliderModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-mat-range-slider.umd.min.js.map