(function(c){let d=window.WPD.ajaxsearchpro.helpers;c.fn.extend(window.WPD.ajaxsearchpro.plugin,{showSettings:function(a){let b=this;a="undefined"==typeof a?!0:a;b.n.s.trigger("asp_settings_show",[b.o.id,b.o.iid],!0,!0);a?(b.n.searchsettings.css(b.settAnim.showCSS),b.n.searchsettings.removeClass(b.settAnim.hideClass).addClass(b.settAnim.showClass)):b.n.searchsettings.css({display:"block",visibility:"visible",opacity:1});null==b.settScroll&&b.is_scroll&&(b.settScroll=[],c(".asp_sett_scroll",b.n.searchsettings).each(function(e, g){let f=this;setTimeout(function(){b.settScroll[g]=new asp_SimpleBar(c(f).get(0),{direction:c("body").hasClass("rtl")?"rtl":"ltr",autoHide:b.o.scrollBar.settings.autoHide})},15)}));if(!("masonry"!=b.o.fss_layout||null!=b.sIsotope||d.isMobile()&&d.detectIOS()))if("undefined"!==typeof rpp_isotope)setTimeout(function(){let e=b.n.searchsettings.attr("id");b.n.searchsettings.css("width","100%");b.sIsotope=new rpp_isotope("#"+e+" form",{isOriginLeft:!c("body").hasClass("rtl"),itemSelector:"fieldset",layoutMode:"masonry", transitionDuration:0,masonry:{columnWidth:b.n.searchsettings.find("fieldset:not(.hiddend)").outerWidth()}})},20);else return!1;"undefined"!=typeof b.select2jQuery&&b.select2jQuery(b.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").trigger("change.asp_select2");b.n.prosettings.data("opened",1);b.fixSettingsPosition(!0);b.fixAccessibility()},hideSettings:function(){let a=this;a.n.s.trigger("asp_settings_hide",[a.o.id,a.o.iid],!0,!0);a.n.searchsettings.removeClass(a.settAnim.showClass).addClass(a.settAnim.hideClass); setTimeout(function(){a.n.searchsettings.css(a.settAnim.hideCSS)},a.settAnim.duration);a.n.prosettings.data("opened",0);null!=a.sIsotope&&setTimeout(function(){a.sIsotope.destroy();a.sIsotope=null},a.settAnim.duration);"undefined"!=typeof a.select2jQuery&&"undefined"!=typeof a.select2jQuery.fn.asp_select2&&a.select2jQuery(a.n.searchsettings.get(0)).find(".asp_gochosen,.asp_goselect2").asp_select2("close");a.hideArrowBox()},reportSettingsValidity:function(){let a=!0;if("hidden"==this.n.searchsettings.css("visibility"))return!0; this.n.searchsettings.find("fieldset.asp_required").each(function(){let b=c(this),e=!0;b.find("input[type=text]:not(.asp_select2-search__field)").each(function(){""==c(this).val()&&(e=!1)});b.find("select").each(function(){if(null==c(this).val()||""==c(this).val()||c(this).closest("fieldset").is(".asp_filter_tax, .asp_filter_content_type")&&"-1"==c(this).val())e=!1});0"),f=g.find(".asp_arrow_box"),f.on("mouseout",function(){e.hideArrowBox()}));g=c(a).offset().top-window.scrollY;var h=!1;let l=a;for(;l;)if(l=l.parentElement,null!=l&&"fixed"==window.getComputedStyle(l).position){h=!0;break}h?(f.css("position","fixed"),h=0):(f.css("position","absolute"),h=window.scrollY);f.html(b);f.css("display","block");b=a.getBoundingClientRect().left+ c(a).outerWidth()/2-f.outerWidth()/2+"px";100a?0:a;window.scrollTo({top:a,behavior:"smooth"})}}}, settingsCheckboxToggle:function(a,b){b="undefined"==typeof b?!0:b;let e=a,g=a.find('input[type="checkbox"]');a=parseInt(a.data("lvl"))+1;let f=0;for(;;){e=e.next();if(0=a)b&&e.find('input[type="checkbox"]').prop("checked",g.prop("checked")),this.o.settings.hideChildren&&(g.prop("checked")?e.removeClass("hiddend"):e.addClass("hiddend"));else break;f++;if(400f.id.indexOf("__original__")&&(f.id="__original__"+f.id)});a.n.searchsettings.find("*[id]").forEach(function(f){-1