").append(l("
").css({width:this.parameters.thumbnailWidth+"px",height:this.parameters.thumbnailHeight+"px",backgroundImage:'url("'+t.getThumbnail()+'")'}).addClass("n2-ss-bullet-thumbnail")).addClass(this.parameters.thumbnailStyle).addClass("n2-ss-bullet-thumbnail-container").appendTo(this.slider.sliderElement);switch(this.parameters.thumbnailPosition){case"right":r.css({left:s.left-i.left+o+"px",top:s.top-i.top+a/2-r.outerHeight(!0)/2+"px"});break;case"left":r.css({left:s.left-i.left-r.outerWidth(!0)+"px",top:s.top-i.top+a/2-r.outerHeight(!0)/2+"px"});break;case"top":r.css({left:s.left-i.left+o/2-r.outerWidth(!0)/2+"px",top:s.top-i.top-r.outerHeight(!0)+"px"});break;case"bottom":r.css({left:s.left-i.left+o/2-r.outerWidth(!0)/2+"px",top:s.top-i.top+a+"px"})}return e.data("thumbnail",r),r},t.prototype.onVisibleSlidesChanged=function(){if(this.$dotsOuter!==s&&(this.$dotsOuter.remove(),delete this.$dotsOuter),this.$bar.html(""),this.slider.visibleSlides.length<=1)this.hasDots=!1;else{this.hasDots=!0,this.$dots=l(),this.$dotsOuter=l();for(var t=0;t
').attr("role","button").attr("aria-label",e.getTitle()).appendTo(this.$bar);switch(this.$dotsOuter=this.$dotsOuter.add(i.wrap(l('
').on(this.event,this.onDotClick.bind(this,e))).on("n2Activate",this.onDotClick.bind(this,e))),e.$dot=i,this.$dots=this.$dots.add(i),this.parameters.mode){case"numeric":i.html(t+1);break;case"title":i.html(e.getTitle())}if(1===this.parameters.thumbnail)e.getThumbnail()&&i.on({universalenter:this.showThumbnail.bind(this,e)},{leaveOnSecond:!0})}this.onSlideSwitch(null,this.slider.currentSlide)}},t.prototype.onDotClick=function(t,e){this.slider.directionalChangeTo(t.index)},t.prototype.calculateDimensions=function(t){this.isVisible()?(this.$widget.addClass("n2-ss-control-bullet--calculate-size"),t[this.key+"width"]=this.$bar.outerWidth(),t[this.key+"height"]=this.$bar.outerHeight(),this.$widget.removeClass("n2-ss-control-bullet--calculate-size")):(t[this.key+"width"]=0,t[this.key+"height"]=0)},t});new N2Classes.SmartSliderWidgetBulletTransition(this, {"area":10,"dotClasses":"n2-style-c0fe1c7a37b7b7c3cb83a8d1cde6e7ce-dot ","mode":"","action":"click","thumbnail":1,"thumbnailWidth":120,"thumbnailHeight":81,"thumbnailStyle":"n2-style-739b6424a8015f4dafd070477b0c4abb-simple ","thumbnailPosition":"top"});}});});