(function($){"use strict";$("#sidebar_menu").metisMenu();$("#admin_profile_active").metisMenu();$(".open_miniSide").click(function(){$(".sidebar").toggleClass("mini_sidebar");$(".main_content ").toggleClass("full_main_content");$(".footer_part ").toggleClass("full_footer");});$(window).on('scroll',function(){var scroll=$(window).scrollTop();if(scroll<400){$('#back-top').fadeOut(500);}else{$('#back-top').fadeIn(500);}});$('#back-top a').on("click",function(){$('body,html').animate({scrollTop:0},1000);return false;});$("#sidebar_menu").find("a").removeClass("active");$("#sidebar_menu").find("li").removeClass("mm-active");$("#sidebar_menu").find("li ul").removeClass("mm-show");var current=window.location.pathname
$("#sidebar_menu >li a").filter(function(){var link=$(this).attr("href");if(link){if(current.indexOf(link)!=-1){$(this).parents().parents().children('ul.mm-collapse').addClass('mm-show').closest('li').addClass('mm-active');$(this).addClass('active');return false;}}});$('.bell_notification_clicker').on('click',function(){$('.Menu_NOtification_Wrap').toggleClass('active');});$(document).click(function(event){if(!$(event.target).closest(".bell_notification_clicker ,.Menu_NOtification_Wrap").length){$("body").find(".Menu_NOtification_Wrap").removeClass("active");}});$('.CHATBOX_open').on('click',function(){$('.CHAT_MESSAGE_POPUPBOX').toggleClass('active');});$('.MSEESAGE_CHATBOX_CLOSE').on('click',function(){$('.CHAT_MESSAGE_POPUPBOX').removeClass('active');});$(document).click(function(event){if(!$(event.target).closest(".CHAT_MESSAGE_POPUPBOX, .CHATBOX_open").length){$("body").find(".CHAT_MESSAGE_POPUPBOX").removeClass("active");}});$('.serach_button').on('click',function(){$('.serach_field-area ').addClass('active');});$(document).click(function(event){if(!$(event.target).closest(".serach_button, .serach_field-area").length){$("body").find(".serach_field-area").removeClass("active");}});$(document).ready(function(){var proBar=$('#bar1');if(proBar.length){proBar.barfiller({barColor:'#FFBF43',duration:2000});}
var proBar=$('#bar2');if(proBar.length){proBar.barfiller({barColor:'#508FF4',duration:2100});}
var proBar=$('#bar3');if(proBar.length){proBar.barfiller({barColor:'#4BE69D',duration:2200});}
var proBar=$('#bar4');if(proBar.length){proBar.barfiller({barColor:'#FD3C97',duration:2200});}
var proBar=$('#bar5');if(proBar.length){proBar.barfiller({barColor:'#6D81F5',duration:2200});}
var proBar=$('#bar6');if(proBar.length){proBar.barfiller({barColor:'#0DC8DE',duration:2200});}
var proBar=$('#bar7');if(proBar.length){proBar.barfiller({barColor:'#FFB822',duration:2200});}});$(".close_icon").click(function(){$(this).parents(".hide_content").slideToggle("0");});var count=$('.counter');if(count.length){count.counterUp({delay:100,time:5000});}
var niceSelect=$('.nice_Select');if(niceSelect.length){niceSelect.niceSelect();};var niceSelect=$('.nice_Select2');if(niceSelect.length){niceSelect.niceSelect();};var niceSelect=$('.default_sel');if(niceSelect.length){niceSelect.niceSelect();};$(document).ready(function(){var date_picker=$('#start_datepicker');if(date_picker.length){date_picker.datepicker();}
var date_picker=$('#end_datepicker');if(date_picker.length){date_picker.datepicker();}});var delay=500;$(".progress-bar").each(function(i){$(this).delay(delay*i).animate({width:$(this).attr('aria-valuenow')+'%'},delay);$(this).prop('Counter',0).animate({Counter:$(this).text()},{duration:delay,easing:'swing',step:function(now){$(this).text(Math.ceil(now)+'%');}});});$('.sidebar_icon').on('click',function(){$('.sidebar').toggleClass('active_sidebar');});$('.sidebar_close_icon i').on('click',function(){$('.sidebar').removeClass('active_sidebar');});$('.troggle_icon').on('click',function(){$('.setting_navbar_bar').toggleClass('active_menu');});$('.custom_select').click(function(){if($(this).hasClass('active')){$(this).removeClass('active');}else{$('.custom_select.active').removeClass('active');$(this).addClass('active');}});$(document).click(function(event){if(!$(event.target).closest(".custom_select").length){$("body").find(".custom_select").removeClass("active");}});$(document).click(function(event){if(!$(event.target).closest(".sidebar_icon, .sidebar").length){$("body").find(".sidebar").removeClass("active_sidebar");}});$("#checkAll").click(function(){$('input:checkbox').not(this).prop('checked',this.checked);});var summerNote=$('#summernote');if(summerNote.length){summerNote.summernote({placeholder:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',tabsize:2,height:305});}
var summerNote=$('.lms_summernote');if(summerNote.length){summerNote.summernote({placeholder:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',tabsize:2,height:305});}
var summerNote=$('.lms_summernote');if(summerNote.length){summerNote.summernote({placeholder:'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',tabsize:2,height:305});}
$('.input-file').each(function(){var $input=$(this),$label=$input.next('.js-labelFile'),labelVal=$label.html();$input.on('change',function(element){var fileName='';if(element.target.value)fileName=element.target.value.split('\\').pop();fileName?$label.addClass('has-file').find('.js-fileName').html(fileName):$label.removeClass('has-file').html(labelVal);});});$('.input-file2').each(function(){var $input=$(this),$label=$input.next('.js-labelFile1'),labelVal=$label.html();$input.on('change',function(element){var fileName='';if(element.target.value)fileName=element.target.value.split('\\').pop();fileName?$label.addClass('has-file').find('.js-fileName1').html(fileName):$label.removeClass('has-file').html(labelVal);});});var bootstrapTag=$("#meta_keywords");if(bootstrapTag.length){bootstrapTag.tagsinput();}
if($('.lms_table_active').length){$('.lms_table_active').DataTable({bLengthChange:false,"bDestroy":true,language:{search:"<i class='ti-search'></i>",searchPlaceholder:'Quick Search',paginate:{next:"<i class='ti-arrow-right'></i>",previous:"<i class='ti-arrow-left'></i>"}},columnDefs:[{visible:false}],responsive:true,searching:false,});}
if($('.lms_table_active2').length){$('.lms_table_active2').DataTable({bLengthChange:false,"bDestroy":false,language:{search:"<i class='ti-search'></i>",searchPlaceholder:'Quick Search',paginate:{next:"<i class='ti-arrow-right'></i>",previous:"<i class='ti-arrow-left'></i>"}},columnDefs:[{visible:false}],responsive:true,searching:false,info:false,paging:false});}
$('.layout_style').click(function(){if($(this).hasClass('layout_style_selected')){$(this).removeClass('layout_style_selected');}else{$('.layout_style.layout_style_selected').removeClass('layout_style_selected');$(this).addClass('layout_style_selected');}});$('.switcher_wrap li.Horizontal').click(function(){$('.sidebar').addClass('hide_vertical_menu');$('.main_content ').addClass('main_content_padding_hide');$('.horizontal_menu').addClass('horizontal_menu_active');$('.main_content_iner').addClass('main_content_iner_padding');$('.footer_part').addClass('pl-0');});$('.switcher_wrap li.vertical').click(function(){$('.sidebar').removeClass('hide_vertical_menu');$('.main_content ').removeClass('main_content_padding_hide');$('.horizontal_menu').removeClass('horizontal_menu_active');$('.main_content_iner').removeClass('main_content_iner_padding');$('.footer_part').removeClass('pl-0');});$('.switcher_wrap li').click(function(){$('li').removeClass("active");$(this).addClass("active");});$('.custom_lms_choose li').click(function(){$('li').removeClass("selected_lang");$(this).addClass("selected_lang");});$('.spin_icon_clicker').on('click',function(e){$('.switcher_slide_wrapper').toggleClass("swith_show");e.preventDefault();});$(document).ready(function(){$(function(){"use strict";$(".pCard_add").click(function(){$(".pCard_card").toggleClass("pCard_on");$(".pCard_add i").toggleClass("fa-minus");});});});}(jQuery));