text: "use strict";
  
  /**
   * Reza-Admin v1.0.2
   * Copyright (c) 2020 Reza Admin
   * Released under the MIT License
  */
  var sidebar = document.querySelector("aside.sidebar");
  var main = document.querySelector("main.main");
  /* show hide menu sidebar */
  
  var navbarSidebarToggler = document.querySelector("a.navbar__sidebar-toggler");
  
  if (navbarSidebarToggler !== null) {
    navbarSidebarToggler.addEventListener('click', function (e) {
      // not aktifkan fungsi default link
      e.preventDefault();
      sidebar.classList.toggle("sidebar--show-sm");
    });
  }
  /* sidebar dropdown */
  
  
  if (sidebar !== null) {
    sidebar.addEventListener('click', function (e) {
      var targetDropdown = e.target;
      if (!targetDropdown.classList.contains("sidebar__btn-dropdown")) targetDropdown = e.target.parentElement;
  
      if (targetDropdown.classList.contains("sidebar__btn-dropdown")) {
        e.preventDefault();
        targetDropdown.parentElement.classList.toggle("sidebar__item--dropdown-active");
        targetDropdown.nextElementSibling.classList.toggle("sidebar__dropdown--show");
      }
    });
  }
  /* alert close */
  
  
  if (main !== null) {
    main.addEventListener('click', function (e) {
      var btnClose = e.target;
  
      if (btnClose.classList.contains("alert__close-btn")) {
        btnClose.parentElement.parentElement.remove();
      }
    });
  }
  