(function(){"use strict";var i={};(function(){i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}})(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}();var a={};i.d(a,{default:function(){return f}});var o=Object(window.WPD).AjaxSearchPro,r=Object(window.WPD).DoMini;o.plugin.showPolaroidResults=function(){let t=this;this.loadASPFonts?.(),t.n("results").addClass("photostack"),r(".photostack>nav",t.n("resultsDiv")).remove();let e=r("figure",t.n("resultsDiv"));if(t.showResultsBox(),e.length>0)if(t.n("results").css({height:t.o.prescontainerheight}),t.keywordHighlight(),typeof Photostack<"u")t.ptstack=new Photostack(t.n("results").get(0),{callback:function(s){}});else return!1;e.length===0&&(t.n("results").css({height:"11110px"}),t.n("results").css({height:"auto"})),t.addAnimation(),t.fixResultsPosition(!0),t.searching=!1,t.initPolaroidEvents(e)},o.plugin.initPolaroidEvents=function(t){let e=this,s=1,n=".photostack>nav span";t.forEach(function(){s>1&&r(this).removeClass("photostack-current"),r(this).attr("idx",s),s++}),t.on("click",function(l){if(r(this).hasClass("photostack-current"))return;l.preventDefault();let h=r(this).attr("idx");r(".photostack>nav span:nth-child("+h+")",e.n("resultsDiv")).trigger("click",[],!0)});const c=()=>{r(n+".current",e.n("resultsDiv")).next().length>0?r(n+".current",e.n("resultsDiv")).next().trigger("click",[],!0):r(n+":nth-child(1)",e.n("resultsDiv")).trigger("click",[],!0)},u=()=>{r(n+".current",e.n("resultsDiv")).prev().length>0?r(n+".current",e.n("resultsDiv")).prev().trigger("click",[],!0):r(n+":nth-last-child(1)",e.n("resultsDiv")).trigger("click",[],!0)};t.on("mousewheel",function(l){l.preventDefault(),(l.deltaY>0?1:-1)>=1?c():u()}),e.n("resultsDiv").on("swiped-left",c),e.n("resultsDiv").on("swiped-right",u)};var d=null,f=o;Object(window.WPD).AjaxSearchPro=a.default})();