text: !function(e){"use strict";function t(){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),t=0,s=e.length;t<s;t++)"nav-item dropdown active"===e[t].parentElement.getAttribute("class")&&(e[t].parentElement.classList.remove("active"),e[t].nextElementSibling.classList.remove("show"))}function s(t){1==e("#light-mode-switch").prop("checked")&&"light-mode-switch"===t?(e("html").removeAttr("dir"),e("#dark-mode-switch").prop("checked",!1),e("#rtl-mode-switch").prop("checked",!1),e("#dark-rtl-mode-switch").prop("checked",!1),e("#bootstrap-style").attr("href","/assets/css/bootstrap.min.css"),e("#app-style").attr("href","/assets/css/app.min.css"),sessionStorage.setItem("is_visited","light-mode-switch")):1==e("#dark-mode-switch").prop("checked")&&"dark-mode-switch"===t?(e("html").removeAttr("dir"),e("#light-mode-switch").prop("checked",!1),e("#rtl-mode-switch").prop("checked",!1),e("#dark-rtl-mode-switch").prop("checked",!1),e("#bootstrap-style").attr("href","/assets/css/bootstrap-dark.min.css"),e("#app-style").attr("href","/assets/css/app-dark.min.css"),sessionStorage.setItem("is_visited","dark-mode-switch")):1==e("#rtl-mode-switch").prop("checked")&&"rtl-mode-switch"===t?(e("#light-mode-switch").prop("checked",!1),e("#dark-mode-switch").prop("checked",!1),e("#dark-rtl-mode-switch").prop("checked",!1),e("#bootstrap-style").attr("href","/assets/css/bootstrap.rtl.css"),e("#app-style").attr("href","/assets/css/app.rtl.css"),e("html").attr("dir","rtl"),sessionStorage.setItem("is_visited","rtl-mode-switch")):1==e("#dark-rtl-mode-switch").prop("checked")&&"dark-rtl-mode-switch"===t&&(e("#light-mode-switch").prop("checked",!1),e("#rtl-mode-switch").prop("checked",!1),e("#dark-mode-switch").prop("checked",!1),e("#bootstrap-style").attr("href","/assets/css/bootstrap-dark.rtl.css"),e("#app-style").attr("href","/assets/css/app-dark.rtl.css"),e("html").attr("dir","rtl"),sessionStorage.setItem("is_visited","dark-rtl-mode-switch"))}e("#side-menu").metisMenu(),e("#vertical-menu-btn").on("click",(function(t){t.preventDefault(),e("body").toggleClass("sidebar-enable"),e(window).width()>=992?e("body").toggleClass("vertical-collpsed"):e("body").removeClass("vertical-collpsed")})),e("#sidebar-menu a").each((function(){var t=window.location.href.split(/[?#]/)[0];this.href==t&&(e(this).addClass("active"),e(this).parent().addClass("mm-active"),e(this).parent().parent().addClass("mm-show"),e(this).parent().parent().prev().addClass("mm-active"),e(this).parent().parent().parent().addClass("mm-active"),e(this).parent().parent().parent().parent().addClass("mm-show"),e(this).parent().parent().parent().parent().parent().addClass("mm-active"))})),e(document).ready((function(){if(e("#sidebar-menu").length>0&&e("#sidebar-menu .mm-active .active").length>0){var t=e("#sidebar-menu .mm-active .active").offset().top;t>300&&(t-=300,e(".vertical-menu .simplebar-content-wrapper").animate({scrollTop:t},"slow"))}})),e(".navbar-nav a").each((function(){var t=window.location.href.split(/[?#]/)[0];this.href==t&&(e(this).addClass("active"),e(this).parent().addClass("active"),e(this).parent().parent().addClass("active"),e(this).parent().parent().parent().addClass("active"),e(this).parent().parent().parent().parent().addClass("active"),e(this).parent().parent().parent().parent().parent().addClass("active"),e(this).parent().parent().parent().parent().parent().parent().addClass("active"))})),function(){function t(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(console.log("pressed"),e("body").removeClass("fullscreen-enable"))}e('[data-toggle="fullscreen"]').on("click",(function(t){t.preventDefault(),e("body").toggleClass("fullscreen-enable"),document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)})),document.addEventListener("fullscreenchange",t),document.addEventListener("webkitfullscreenchange",t),document.addEventListener("mozfullscreenchange",t)}(),e(".right-bar-toggle").on("click",(function(t){e("body").toggleClass("right-bar-enabled")})),e(document).on("click","body",(function(t){e(t.target).closest(".right-bar-toggle, .right-bar").length>0||e("body").removeClass("right-bar-enabled")})),function(){if(document.getElementById("topnav-menu-content")){for(var e=document.getElementById("topnav-menu-content").getElementsByTagName("a"),s=0,n=e.length;s<n;s++)e[s].onclick=function(e){"#"===e.target.getAttribute("href")&&(e.target.parentElement.classList.toggle("active"),e.target.nextElementSibling.classList.toggle("show"))};window.addEventListener("resize",t)}}(),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(e){return new bootstrap.Tooltip(e)})),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map((function(e){return new bootstrap.Popover(e)})),function(){if(window.sessionStorage){var t=sessionStorage.getItem("is_visited");t?(e(".right-bar input:checkbox").prop("checked",!1),e("#"+t).prop("checked",!0),s(t)):sessionStorage.setItem("is_visited","light-mode-switch")}e("#light-mode-switch, #dark-mode-switch, #rtl-mode-switch, #dark-rtl-mode-switch").on("change",(function(e){s(e.target.id)})),e("#password-addon").on("click",(function(){e(this).siblings("input").length>0&&("password"==e(this).siblings("input").attr("type")?e(this).siblings("input").attr("type","input"):e(this).siblings("input").attr("type","password"))}))}(),e(window).on("load",(function(){e("#status").fadeOut(),e("#preloader").delay(350).fadeOut("slow")})),Waves.init(),e("#checkAll").on("change",(function(){e(".table-check .form-check-input").prop("checked",e(this).prop("checked"))})),e(".table-check .form-check-input").change((function(){e(".table-check .form-check-input:checked").length==e(".table-check .form-check-input").length?e("#checkAll").prop("checked",!0):e("#checkAll").prop("checked",!1)}))}(jQuery);
  