text: !function(i,t,e){"use strict";function s(t,e,s){this.slider=window[t],this.slider.started(i.proxy(this.start,this,t,e,s))}s.prototype.start=function(t,e,s){if(this.slider.sliderElement.data("bar"))return!1;if(this.slider.sliderElement.data("bar",this),this.offset=0,this.tween=null,this.originalBars=this.bars=e,"undefined"!=typeof this.slider.shuffled){for(var r=[],n=0;n<this.slider.shuffled.length;n++)r.push(this.bars[this.slider.shuffled[n]]);this.originalBars=this.bars=r}if(this.bar=this.slider.sliderElement.find(".nextend-bar"),this.innerBar=this.bar.find("> div"),this.slider.sliderElement.on("slideCountChanged",i.proxy(this.onSlideCountChanged,this)),s.animate?this.slider.sliderElement.on("mainAnimationStart",i.proxy(this.onSliderSwitchToAnimateStart,this)):this.slider.sliderElement.on("sliderSwitchTo",i.proxy(this.onSliderSwitchTo,this)),this.onSliderSwitchTo(null,this.slider.currentSlideIndex),0==s.overlay){var o=!1;switch(s.area){case 1:o="Top";break;case 12:o="Bottom"}o&&(this.offset=parseFloat(this.bar.data("offset")),this.slider.responsive.addStaticMargin(o,this))}var h="click";"0"!=this.slider.parameters.controls.touch&&this.slider.parameters.controls.touch&&(h="n2click"),this.bar.on("click",i.proxy(function(i){this.slider.sliderElement.find(".n2-ss-slide-active .n2-ss-layers-container").trigger(h)},this))},s.prototype.onSliderSwitchTo=function(i,t){this.innerBar.html(this.bars[t].html),this.setCursor(this.bars[t].hasLink)},s.prototype.onSliderSwitchToAnimateStart=function(){var t=i.Deferred();this.slider.sliderElement.on("mainAnimationComplete.n2Bar",i.proxy(this.onSliderSwitchToAnimateEnd,this,t)),this.tween&&this.tween.pause(),NextendTween.to(this.innerBar,.3,{opacity:0,onComplete:function(){t.resolve()}}).play()},s.prototype.onSliderSwitchToAnimateEnd=function(t,e,s,r,n){this.slider.sliderElement.off(".n2Bar"),t.done(i.proxy(function(){var i=this.innerBar.clone();this.innerBar.remove(),this.innerBar=i.css("opacity",0).html(this.bars[n].html).appendTo(this.bar),this.setCursor(this.bars[n].hasLink),this.tween=NextendTween.to(this.innerBar,.3,{opacity:1}).play()},this))},s.prototype.setCursor=function(i){i?this.innerBar.css("cursor","pointer"):this.innerBar.css("cursor","inherit")},s.prototype.isVisible=function(){return this.bar.is(":visible")},s.prototype.getSize=function(){return this.bar.height()+this.offset},s.prototype.onSlideCountChanged=function(i,t,e){this.bars=[];for(var s=0;s<this.originalBars.length;s++)s%e==0&&this.bars.push(this.originalBars[s])},t.NextendSmartSliderWidgetBarHorizontal=s}(n2,window);