!function(t){"use strict";function e(){t(".awb-toggle-filter").each(function(e){const a=t(this),o=a.closest(".heading").next();o.attr("id")||o.attr("id","toggle-filter-"+e),a.attr("aria-controls",o.attr("id"))})}t(document).on("awb_woo_filters_ajax_complete",function(){e()}),e(),t(document).on("click",".awb-toggle-filter",function(){const e=t(this),a=e.closest(".heading").next(),o="true"===e.attr("aria-expanded");a.slideToggle(300),e.attr("aria-expanded",!o).toggleClass("awb-rotate")}),"no"===fusionWooFiltersVars.woo_ajax_filters&&t(document).on("click",".widget_layered_nav_filters a",function(e){e.preventDefault(),t(this).closest("li").hasClass("awb-clear-all-filters")&&(window.location=window.location.pathname)})}(jQuery);