/*! user-grids.js | Huro | Css Ninja 2020-2021 */
"use strict";$((function(){if($(".user-grid-v1, .user-grid-v2").length&&$(".infinite-scroll-loader").length){var i=0;$(window).scroll((function(){if($(window).scrollTop()+$(window).height()>$(document).height()-5){var e=$(".user-grid .columns").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".user-grid .columns").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}$(".user-grid-v3").length&&($(".icon-tabs .tab-item").on("click",(function(){console.log("clicked");var i=$(this).closest(".icon-tabs-wrapper"),e=$(this).attr("data-target-section");$(this).siblings(".tab-item").removeClass("is-active"),$(this).addClass("is-active"),i.find(".icon-tabs-content").removeClass("is-active"),i.find("."+e).addClass("is-active")})),$(".mini-line-chart").peity("line",{delimiter:",",fill:null,height:45,max:null,min:0,stroke:themeColors.primary,strokeWidth:1.6,width:130}),$(".mini-bar-chart").peity("bar",{delimiter:",",fill:[themeColors.accent],height:45,max:null,min:0,padding:.1,width:100}),$(".mini-donut-chart").peity("donut",{delimiter:null,fill:[themeColors.accent,"#efefef",themeColors.primaryMedium],height:45,innerRadius:18,radius:8,width:45}),$(".updating-chart").each((function(){var i=$(this).peity("line",{delimiter:",",fill:null,height:45,max:null,min:0,stroke:themeColors.accent,strokeWidth:1.6,width:100});setInterval((function(){var e=Math.round(10*Math.random()),t=i.text().split(",");t.shift(),t.push(e),i.text(t.join(",")).change()}),1e3)})),$(window).scroll((function(){if($(window).scrollTop()+$(window).height()>$(document).height()-5){var e=$(".user-grid .columns").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".user-grid .columns").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))),$(".user-grid-v4").length&&$(window).scroll((function(){if($(window).scrollTop()+$(window).height()>$(document).height()-5){var e=$(".user-grid .columns").html();$(".infinite-scroll-loader").addClass("is-active"),i<2?setTimeout((function(){$(".infinite-scroll-loader").removeClass("is-active"),$(".user-grid .columns").append(e),i+=1}),1200):setTimeout((function(){$(".loader, .loader-end").toggleClass("is-hidden")}),1200)}}))}));