(function(){"use strict";var i={};(function(){i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}})(),function(){i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}();var r={};i.d(r,{default:function(){return u}});var c=Object(window.WPD).AjaxSearchPro,s=Object(window.WPD).DoMini;c.plugin.initCompact=function(){let t=this;t.o.compact.enabled&&t.o.compact.position!=="fixed"&&(t.o.compact.overlay=0),t.o.compact.enabled&&t.n("trythis").css({display:"none"}),t.o.compact.enabled&&t.o.compact.position==="fixed"&&window.WPD.intervalUntilExecute(function(){let e=s("body");t.nodes.container=t.n("search").closest(".asp_w_container"),e.append(t.n("search").detach()),e.append(t.n("trythis").detach()),t.n("search").css({top:t.n("search").position().top+"px"})},function(){return t.n("search").css("position")==="fixed"})};var h=null;const f=()=>{let t=window.innerWidth;return t<=640?"phone":t<=1024?"tablet":"desktop"},l=()=>typeof window.navigator<"u"&&typeof window.navigator.userAgent<"u"?window.navigator.userAgent.match(/(iPod|iPhone|iPad)/)!=null:!1,m=()=>{try{return document.createEvent("TouchEvent"),!0}catch{return!1}},w=()=>"ontouchstart"in window,x=navigator.userAgent.toLowerCase().includes("firefox"),p=navigator.userAgent,b=/AppleWebKit/.test(p)&&!/Edge/.test(p);let o;const d=t=>{if(!l()){t?.focus();return}(t===void 0||o===void 0)&&(o=document.createElement("input"),o.setAttribute("type","text"),o.style.position="absolute",o.style.opacity="0",o.style.height="0",o.style.fontSize="16px",document.body.prepend(o)),t===void 0?o.focus():t.focus()};let a=c.helpers;c.plugin.openCompact=function(){let t=this;t.n("search").is("[data-asp-compact-w]")||(t.n("probox").attr("data-asp-compact-w",t.n("probox").innerWidth()),t.n("search").attr("data-asp-compact-w",t.n("search").innerWidth())),t.n("search").css({width:t.n("search").width()+"px"}),t.n("probox").css({width:"auto"}),setTimeout(function(){t.n("search").find(".probox>div:not(.promagnifier)").removeClass("hiddend")},80),clearTimeout(t.timeouts.compactBeforeOpen),t.timeouts.compactBeforeOpen=setTimeout(function(){let e;a.deviceType()==="phone"?e=t.o.compact.width_phone:a.deviceType()==="tablet"?e=t.o.compact.width_tablet:e=t.o.compact.width,e=a.Hooks.applyFilters("asp_compact_width",e,t.o.id,t.o.iid),e=isNaN(e)?e:e+"px",t.o.compact.position!=="static"?t.n("search").css({"max-width":e,width:e}):(t.n("container").css({"max-width":e,width:e}),t.n("search").css({"max-width":"100%",width:"100%"})),t.o.compact.overlay&&(t.n("search").css("z-index",999999),t.n("searchsettings").css("z-index",999999),t.n("resultsDiv").css("z-index",999999),t.n("trythis").css("z-index",999998),s("#asp_absolute_overlay").css({opacity:1,width:"100%",height:"100%","z-index":999990})),t.n("search").attr("data-asp-compact","open")},50),t.o.compact.focus&&d(),clearTimeout(t.timeouts.compactAfterOpen),t.timeouts.compactAfterOpen=setTimeout(function(){t.resize(),t.n("trythis").css({display:"block"}),t.o.compact.enabled&&t.o.compact.position!=="static"&&t.n("trythis").css({top:t.n("search").offset().top+t.n("search").outerHeight(!0)+"px",left:t.n("search").offset().left+"px"}),t.o.compact.focus&&d(t.n("text").get(0)),t.n("text").trigger("focus"),t.scrolling()},500)},c.plugin.closeCompact=function(){let t=this;clearTimeout(t.timeouts.compactBeforeOpen),clearTimeout(t.timeouts.compactAfterOpen),t.timeouts.compactBeforeOpen=setTimeout(function(){t.n("search").attr("data-asp-compact","closed")},50),t.n("search").find(".probox>div:not(.promagnifier)").addClass("hiddend"),t.o.compact.position!=="static"?t.n("search").css({width:"auto"}):(t.n("container").css({width:"auto"}),t.n("search").css({"max-width":"unset",width:"auto"})),t.n("probox").css({width:t.n("probox").attr("data-asp-compact-w")+"px"}),t.n("trythis").css({left:t.n("search").position().left,display:"none"}),t.o.compact.overlay&&(t.n("search").css("z-index",""),t.n("searchsettings").css("z-index",""),t.n("resultsDiv").css("z-index",""),t.n("trythis").css("z-index",""),s("#asp_absolute_overlay").css({opacity:0,width:0,height:0,"z-index":0}))};var v=null;c.plugin.initCompactEvents=function(){let t=this,e=0;t.n("promagnifier").on("click",function(){let n=t.n("search").attr("data-asp-compact")||"closed";if(e=window.scrollY,t.hideSettings?.(),t.hideResults(),n==="closed")t.openCompact(),t.n("text").trigger("focus");else{if(!t.o.compact.closeOnMagnifier)return;t.closeCompact(),t.searchAbort(),t.n("proloading").css("display","none")}})};var y=null,u=c;Object(window.WPD).AjaxSearchPro=r.default})();