/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!*********************************************************!*\
  !*** ./resources/assets/js/support/support-sidemenu.js ***!
  \*********************************************************/
(function ($) {
  "use strict";

  // Activate sidebar slide toggle
  $(".slide-show").on('click', function (e) {
    var $this = $(this);
    var checkElement = $this.next();
    var animationSpeed = 300,
      slideMenuSelector = '.slide-menu';
    if (checkElement.is(slideMenuSelector) && checkElement.is(':visible')) {
      checkElement.slideUp(animationSpeed, function () {
        checkElement.removeClass('open');
      });
      checkElement.parent("li").removeClass("is-expanded");
    } else if (checkElement.is(slideMenuSelector) && !checkElement.is(':visible')) {
      var parent = $this.parents('ul').first();
      var ul = parent.find('ul:visible').slideUp(animationSpeed);
      ul.removeClass('open');
      var parent_li = $this.parent("li");
      checkElement.slideDown(animationSpeed, function () {
        checkElement.addClass('open');
        parent.find('li.is-expanded').removeClass('is-expanded');
        parent_li.addClass('is-expanded');
      });
    }
    if (checkElement.is(slideMenuSelector)) {
      e.preventDefault();
    }
  });

  // Active menu
  $(".support-sidebar li a").each(function () {
    var pageUrl = window.location.href.split(/[?#]/)[0];
    if (this.href == pageUrl) {
      $(this).addClass("active");
      $(this).parent().parent().prev().addClass("active");
      $(this).parent().parent().prev().click();
    }
  });
})(jQuery);
/******/ })()
;