$((function(){"use strict";$("#chatActiveContacts").lightSlider({autoWidth:!0,controls:!1,pager:!1,slideMargin:12}),window.matchMedia("(min-width: 992px)").matches&&(new PerfectScrollbar("#ChatList",{suppressScrollX:!0}),new PerfectScrollbar("#ChatBody",{suppressScrollX:!0}),$("#ChatBody").scrollTop($("#ChatBody").prop("scrollHeight"))),$(".main-chat-list .media").on("click touch",(function(){$(this).addClass("selected").removeClass("new"),$(this).siblings().removeClass("selected"),window.matchMedia("(max-width: 991px)").matches&&($("body").addClass("main-content-body-show"),$("html body").scrollTop($("html body").prop("scrollHeight")))})),$('[data-toggle="tooltip"]').tooltip(),$("#ChatBodyHide").on("click touch",(function(t){t.preventDefault(),$("body").removeClass("main-content-body-show")}))}));