(function($){var gridwooIso=function($scope,$){if(jQuery("body:not(.elementor-editor-active) .loadmore-wrapper-woo").length){var jQueryloadmorexen=jQuery('.container-after-woo');var jQuerycontainer=jQuery('.loadmore-wrapper-woo').isotope({itemSelector:'.isotope-item',layoutMode:"packery",transitionDuration:"0.7s",percentPosition:true});jQuerycontainer.imagesLoaded(function(){jQuerycontainer.isotope("layout");});jQuery(".gallery-filter-car").on("click",".gallery-filter-item-car",function(b){b.preventDefault();var c=jQuery(this).attr("data-filter"),d=jQuery(this).text();jQuerycontainer.isotope({filter:c,animationOptions:{duration:750,easing:'linear',queue:false,}});jQuery(".gallery-filter-item-car").removeClass("active");jQuery(this).addClass("active");});var itemcount=jQuery('.loadmore-wrapper-woo').data('load-item');var buttontext=jQuery('.loadmore-wrapper-woo').data('button-text');var initShow=itemcount;var counter=initShow;var iso=jQuerycontainer.data('isotope');loadMore(initShow);function loadMore(toShow){jQuerycontainer.find(".hidden").removeClass("hidden");var hiddenElems=iso.filteredItems.slice(toShow,iso.filteredItems.length).map(function(item){return item.element;});jQuery(hiddenElems).addClass('hidden');jQuerycontainer.isotope('layout');if(hiddenElems.length==0){jQuery(".iso-load-more-wrap-car").hide();}
else{jQuery(".iso-load-more-wrap-car").show();};}
if(iso.filteredItems.length<initShow){}
else if(iso.filteredItems.length==initShow){}
else{jQueryloadmorexen.after('<div class="renax-more-wrapper-car text-center  iso-load-more-wrap-car" ><button class="button-4 "  id="load-more-car"><a> '+buttontext+' </a></button></div>');}
jQuery("#load-more-car").click(function(){if(jQuery('.gallery-filter-car').data('clicked')){counter=initShow;jQuery('.gallery-filter-car').data('clicked',false);}else{counter=counter;};counter=counter+initShow;loadMore(counter);});jQuery(".gallery-filter-car").on("click",".gallery-filter-item-car",function(b){jQuery(this).data('clicked',true);loadMore(initShow);});}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/renax-woo-grid.default',gridwooIso);});})(jQuery);