/*! list-view.js | Huro | Css Ninja 2020-2021 */
"use strict";function disableSearchWhentListEmpty(){$(".is-slider .tabs li").on("click",(function(){setTimeout((function(){0===$(".page-content.tabs-wrapper .tab-content.is-active .list-view-item").length?$(".list-view-toolbar input").addClass("is-disabled"):$(".list-view-toolbar input").removeClass("is-disabled")}),400)}))}$((function(){if($(".list-view-v1").length&&$(".infinite-scroll-loader").length){var i=0;$(window).on("scroll",(function(){if($(window).scrollTop()>=$("body").offset().top+$("body").outerHeight()-window.innerHeight){var e=$(".list-view .list-view-inner").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".list-view .list-view-inner").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}if($(".list-view-v2").length&&(disableSearchWhentListEmpty(),$(".infinite-scroll-loader").length)){i=0;$(window).on("scroll",(function(){if($(window).scrollTop()>=$("body").offset().top+$("body").outerHeight()-window.innerHeight){var e=$(".list-view .tab-content.is-active .list-view-inner").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".list-view .tab-content.is-active .list-view-inner").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}if($(".list-view-v3").length&&(disableSearchWhentListEmpty(),$(".infinite-scroll-loader").length)){i=0;$(window).on("scroll",(function(){if($(window).scrollTop()>=$("body").offset().top+$("body").outerHeight()-window.innerHeight){var e=$(".list-view .tab-content.is-active .list-view-inner").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".list-view .tab-content.is-active .list-view-inner").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}if($(".list-view-v4").length&&(disableSearchWhentListEmpty(),$(".infinite-scroll-loader").length)){i=0;$(window).on("scroll",(function(){if($(window).scrollTop()>=$("body").offset().top+$("body").outerHeight()-window.innerHeight){var e=$(".list-view .tab-content.is-active .list-view-inner").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".list-view .tab-content.is-active .list-view-inner").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}}));