define(["modules/forms/module","nouislider"],function(a){"use strict";return a.registerDirective("smartNouislider",["$parse",function(a){return{restrict:"A",compile:function(b,c){b.removeAttr("smart-nouislider data-smart-nouislider"),b.addClass("noUiSlider");var d={range:{min:c.rangeMin?parseInt(c.rangeMin):0,max:c.rangeMax?parseInt(c.rangeMax):1e3},start:a(c.start)()};c.step&&(d.step=parseInt(c.step)),c.connect&&(d.connect="true"==c.connect?!0:c.connect),b.noUiSlider(d),c.update&&b.on("slide",function(){$(c.update).text(JSON.stringify(b.val()))})}}}])});