{"size": 1246, "ext": "js", "max_stars_repo_path": "public/material_admin_1.7.1/AngularJs/vendors/bower_components/nouislider-angular/nouislider.min.js", "max_stars_repo_name": "karthickmce34/epurple", "max_stars_repo_stars_event_min_datetime": "2018-08-26T14:59:46.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-07T02:26:52.000Z", "max_issues_repo_path": "public/material_admin_1.7.1/AngularJs/vendors/bower_components/nouislider-angular/nouislider.min.js", "max_issues_repo_name": "karthickmce34/epurple", "max_issues_repo_issues_event_min_datetime": "2018-08-20T19:05:31.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-26T14:59:40.000Z", "max_forks_repo_path": "public/material_admin_1.7.1/AngularJs/vendors/bower_components/nouislider-angular/nouislider.min.js", "max_forks_repo_name": "karthickmce34/epurple", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 10, "max_forks_count": null, "avg_line_length": 1246.0, "max_line_length": 1246, "alphanum_fraction": 0.6621187801}
angular.module("ya.nouislider",[]).value("noUiSliderConfig",{}).directive("noUiSlider",["noUiSliderConfig",function(a){function b(a){return angular.isUndefined(a)?0:angular.isArray(a)&&2==a.length?2:1}return a=a||{},{restrict:"A",require:"ngModel",scope:{noUiSlider:"="},link:function(c,d,e,f){function g(){var b=f.$viewValue,e=angular.extend({},a,c.noUiSlider,{start:b});angular.isDefined(e.start)&&angular.isDefined(e.range)&&(d.noUiSlider(e,h),i=angular.copy(b),h||d.on("slide change",function(a,b){f.$setViewValue(b),c.$apply()}),h=!0)}var h=!1,i=void 0;f.$render=function(){if(h){var a=f.$viewValue,e=void 0;if(2==b(a)){a[0]=Math.max(a[0],c.noUiSlider.range.min),a[1]=Math.min(a[1],c.noUiSlider.range.max);var g=a[0]==i[0],j=a[1]==i[1];i=angular.copy(a),a[0]>a[1]&&(g&&(a[1]=a[0]),j&&(a[0]=a[1]),a[0]>a[1]&&(a[1]=a[0])),e=[g?null:a[0],j?null:a[1]]}else{var k=angular.isArray(a);k&&(a=a[0]),a=parseFloat(a)||0,a=Math.min(Math.max(a,c.noUiSlider.range.min),c.noUiSlider.range.max),e=k?[a]:a,f.$setViewValue(e)}d.val(e)}},c.$watch(function(){return c.noUiSlider},function(){g()},!0),c.$watch(function(){return f.$viewValue},function(){f.$render()},!0),c.$watch(function(){return b(f.$viewValue)},function(a){angular.isDefined(a)&&g()},!0)}}}]);