!function t(i,s,l){function c(r,e){if(!s[r]){if(!i[r]){var a="function"==typeof require&&require;if(!e&&a)return a(r,!0);if(u)return u(r,!0);var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}var n=s[r]={exports:{}};i[r][0].call(n.exports,function(e){return c(i[r][1][e]||e)},n,n.exports,t,i,s,l)}return s[r].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,r,a){Dashboard=Object.assign({},window.Dashboard||{},{Layout:{init:function(r,a,e){function o(){return c.hasClass("sidebar--collapsed")}function n(){return!!a.matchMedia("(max-width: 991px)").matches}function t(e){var r=void 0===e?!o():!e;return n()?(c.toggleClass("sidebar--collapsed",r),c.removeClass("sidebar--slim")):(c.addClass("sidebar--slim"),c.toggleClass("sidebar--collapsed",r),l.toggleClass("layout__sidebar--slim",r),u.toggleClass("sidebar-menu--slim",r)),r}var i,s=r(".action--sidebar-trigger"),l=r(".layout__sidebar"),c=l.find(".sidebar"),u=r(".sidebar-menu"),d=r(".navbar"),f=function(e){void 0!==a.localStorage&&localStorage.setItem("isSlim",e?"on":"off")},g=function(){return void 0!==a.localStorage&&"on"===localStorage.getItem("isSlim")};if(s.on("click",function(e){e.stopImmediatePropagation();var r=t();n()||f(r)}),r(a).on("resize",function(){var e=n();if(e!==i){if(e)t(!1);else{var r=g();t(!r)}i=e}}),r(e).on("click",function(e){n()&&0<l.length&&e.target!==l[0]&&!l[0].contains(e.target)&&!o()&&t(!1)}),d.on("show.bs.dropdown",function(e){0===r(e.target).closest(".navbar-collapse").length&&d.find(".navbar-collapse").collapse("hide")}),n())t(!1);else{var b=g();t(!b)}}}})},{}]},{},[1]);
//# sourceMappingURL=layout.js.map
