jQuery(document).ready((function(t){t.productFilterAttr=function(e){var i=t(e),n=i.find(".the7-product-filter.filter-navigation-scroll .filter-container"),o={};i.vars={toogleSpeed:250,animationSpeed:150,fadeIn:{opacity:1},fadeOut:{opacity:0}},t.data(e,"productFilterAttr",i),o={init:function(){o.updateScroll(),i.on("click",".filter-show-more",(function(e){t(this).addClass("hidden").parents(".filter-container").find(".filter-nav li:not(.show)").css(i.vars.fadeOut).slideDown(i.vars.toogleSpeed).animate(i.vars.fadeIn,{duration:i.vars.animationSpeed,queue:!1})})),i.find(".the7-product-filter.collapsible").on("click",".filter-header",(function(e){var n=t(this).parent(".the7-product-filter"),r=n.find(".filter-container");n.hasClass("closed")?(o.updateScroll(),r.css(i.vars.fadeOut).slideDown(i.vars.toogleSpeed).animate(i.vars.fadeIn,{duration:i.vars.animationSpeed,queue:!1})):r.css(i.vars.fadeOut).slideUp(i.vars.toogleSpeed),n.toggleClass("closed")})),elementorFrontend.isEditMode()&&i.find(".filter-nav-item").first().addClass("active"),i.find(".filter-nav-item-container").on("click",(function(e){t(this).find("a")[0].click()})),n.bind("mousewheel",(function(e,i){var n=e.deltaY||i;n=n<0?-1:1;var o=t(this).scrollTop(),r=!0;(-1===n&&o+t(this).innerHeight()>=this.scrollHeight||1===n&&o<=0)&&(r=!1),r&&e.stopImmediatePropagation()})),"undefined"!=typeof dtGlobals&&dtGlobals.addOnloadEvent((function(){i.find(".the7-product-filter").addClass("animate")}))},updateScroll:function(){i.find(".the7-product-filter").hasClass("collapsible")&&n.length&&"function"==typeof window.the7GetHiddenHeight&&(window.the7GetHiddenHeight(n,"")<window.the7GetHiddenHeight(n,"> .filter-nav")?n.addClass("show-scroll"):n.removeClass("show-scroll"))}},i.refresh=function(){o.updateScroll()},o.init()},t.fn.productFilterAttr=function(){return this.each((function(){void 0!==t(this).data("productFilterAttr")&&t(this).removeData("productFilterAttr"),new t.productFilterAttr(this)}))}})),jQuery(window).on("elementor/frontend/init",(function(){var t;function e(e,i){clearTimeout(t);var n=window.jQuery(i.$el).data("productFilterAttr");void 0!==n&&(t=setTimeout((function(){n.refresh()}),500))}function i(t,e){t=t?":"+t:"","undefined"!=typeof elementor&&elementor.channels.editor.on("change"+t,e)}elementorFrontend.hooks.addAction("frontend/element_ready/the7-woocommerce-filter-attribute.default",(function(t,e){e(document).ready((function(){t.productFilterAttr()}))})),elementorFrontend.hooks.addAction("frontend/element_ready/the7-woocommerce-filter-active.default",(function(t,e){e(document).ready((function(){t.productFilterAttr()}))})),i("the7-woocommerce-filter-attribute:navigation_max_height",e),i("the7-woocommerce-filter-attribute:navigation_max_height_tablet",e),i("the7-woocommerce-filter-attribute:navigation_max_height_mobile",e)}));