text: $(document).ready(function(){$('[data-toggle="popover-custom-content"]').each(function(e,o){$(this).popover({html:!0,placement:"auto",template:'<div class="popover popover-custom" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',content:function(){var e=$(this).attr("popover-id");return $("#popover-content-"+e).html()}})}),setTimeout(function(){$(".vertical-nav-menu").metisMenu()},100),$(".dropdown-menu").on("click",function(e){var o=$._data(document,"events")||{};o=o.click||[];for(var a=0;a<o.length;a++)o[a].selector&&($(e.target).is(o[a].selector)&&o[a].handler.call(e.target,e),$(e.target).parents(o[a].selector).each(function(){o[a].handler.call(this,e)}));e.stopPropagation()}),$('[data-toggle="popover-custom-bg"]').each(function(e,o){var a=$(this).attr("data-bg-class");$(this).popover({trigger:"focus",placement:"top",template:'<div class="popover popover-bg '+a+'" role="tooltip"><h3 class="popover-header"></h3><div class="popover-body"></div></div>'})}),$(function(){$('[data-toggle="popover"]').popover()}),$('[data-toggle="popover-custom"]').each(function(e,o){$(this).popover({html:!0,container:$(this).parent().find(".rm-max-width"),content:function(){return $(this).next(".rm-max-width").find(".popover-custom-content").html()}})}),$("body").on("click",function(e){$('[rel="popover-focus"]').each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||$(this).popover("hide")})}),$(function(){$('[data-toggle="tooltip"]').tooltip()}),$(function(){$('[data-toggle="tooltip-light"]').tooltip({template:'<div class="tooltip tooltip-light"><div class="tooltip-inner"></div></div>'})}),$(".open-right-drawer").click(function(){$(this).addClass("is-active"),$(".app-drawer-wrapper").addClass("drawer-open"),$(".app-drawer-overlay").removeClass("d-none")}),$(".drawer-nav-btn").click(function(){$(".app-drawer-wrapper").removeClass("drawer-open"),$(".app-drawer-overlay").addClass("d-none"),$(".open-right-drawer").removeClass("is-active")}),$(".app-drawer-overlay").click(function(){$(this).addClass("d-none"),$(".app-drawer-wrapper").removeClass("drawer-open"),$(".open-right-drawer").removeClass("is-active")}),$(".mobile-toggle-sidebar-nav").click(function(){$(this).toggleClass("is-active"),$(".app-container").hasClass("sidebar-mobile-open")?($(".app-container").removeClass("sidebar-mobile-open"),$(".app-sidebar-overlay").addClass("d-none")):($(".app-container").addClass("sidebar-mobile-open"),$(".app-sidebar-overlay").removeClass("d-none"))}),$(".app-sidebar-overlay").click(function(){$(this).addClass("d-none"),$(".mobile-toggle-sidebar-nav").click()}),$(".mobile-toggle-header-nav").click(function(){$(this).toggleClass("active"),$(".app-container").hasClass("header-nav-open")?($(".app-container").removeClass("header-nav-open"),$(".app-header-overlay").addClass("d-none")):($(".app-container").addClass("header-nav-open"),$(".app-header-overlay").removeClass("d-none"))}),$(".app-header-overlay").click(function(){$(this).addClass("d-none"),$(".mobile-toggle-header-nav").click()}),$(".show-menu-btn").on("click",function(){$(".app-inner-layout-page").addClass("app-layout-menu-open")}),$(".close-menu-btn").on("click",function(){$(".app-inner-layout-page").removeClass("app-layout-menu-open")}),$(".mobile-app-menu-btn").click(function(){$(".hamburger",this).toggleClass("is-active"),$(".app-inner-layout").toggleClass("open-mobile-menu")}),$(".mobile-toggle-nav").click(function(){$(this).toggleClass("is-active"),$(".app-container").toggleClass("header-mobile-open")}),$(window).on("resize",function(){$(this).width()>991&&($(".app-container").removeClass("header-mobile-open"),$(".mobile-toggle-nav").removeClass("is-active"))});var e=function(){document.body.clientWidth<1250?$(".app-container").addClass("closed-sidebar-mobile"):$(".app-container").removeClass("closed-sidebar-mobile")};$(window).on("resize",function(){e()}),e()});