(function(e){let g=window.WPD.ajaxsearchpro.helpers;e.fn.extend(window.WPD.ajaxsearchpro.plugin,{showHorizontalResults:function(){this.n("resultsDiv").css("display","block");this.fixResultsPosition(!0);this.n("items").css("opacity",this.animationOpacity);"hover"==this.o.resultsposition&&this.n("resultsDiv").css("width",this.n("search").width()-(this.n("resultsDiv").outerWidth(!0)-this.n("resultsDiv").width())+"px");if(0<this.n("items").length&&this.o.scrollBar.horizontal.enabled){let a=parseInt(this.n("items").css("marginLeft")),
d=this.n("items").outerWidth()+2*a;this.n("results").css("overflowX","auto");this.n("resdrg").css("width",this.n("items").length*d+2*a+"px")}else this.n("results").css("overflowX","hidden"),this.n("resdrg").css("width","auto");1==this.o.highlight&&e("div.item",this.n("resultsDiv")).highlight(this.n("text").val().split(" "),{element:"span",className:"highlighted",wordsOnly:1==this.o.highlightWholewords});if(1>this.call_num){let a=this.n("results");a.get(0).scrollLeft=0;if(this.o.scrollBar.horizontal.enabled){let d=
0,h=Date.now();a.off("mousewheel");a.on("mousewheel",function(b){let k="undefined"!=typeof b.deltaFactor?b.deltaFactor:65,f=0<b.deltaY?1:-1;var c=Date.now()-h;c=100<c?1:3-2*c/100;d!=b.deltaY&&(c=1);e(this).animate(!1).animate({scrollLeft:this.scrollLeft+f*k*2*c},250,"easeOutQuad");d=b.deltaY;h=Date.now();g.isScrolledToRight(a.get(0))&&1==f||g.isScrolledToLeft(a.get(0))&&-1==f||b.preventDefault()})}}this.showResultsBox();this.addAnimation();this.searching=!1}})})(WPD.dom);
