define(["layout/module"],function(a){"use strict";a.registerDirective("toggleMenu",function(){return{restrict:"A",link:function(a,b){var c=$("body"),d=function(){c.hasClass("menu-on-top")?c.hasClass("menu-on-top")&&c.hasClass("mobile-view-activated")&&($("html").toggleClass("hidden-menu-mobile-lock"),c.toggleClass("hidden-menu"),c.removeClass("minified")):($("html").toggleClass("hidden-menu-mobile-lock"),c.toggleClass("hidden-menu"),c.removeClass("minified"))};b.on("click",d),a.$on("requestToggleMenu",function(){d()})}}})});