text: define(["require","underscore","jquery","./abstractPanelTrait","common/component/menu/ClickMenu","common/component/menu/groupMenuTrait","text!../template/menuPanelTemplate.htm"],function(e){var t=e("underscore"),n=e("jquery"),i=e("./abstractPanelTrait"),o=e("common/component/menu/ClickMenu"),u=e("common/component/menu/groupMenuTrait"),m=e("text!../template/menuPanelTemplate.htm"),l=o.extend(u);return t.extend({},i,{onConstructor:function(e){e||(e={}),this.menuOptions=e.menuOptions,this.menuOptionSelectable=e.menuOptionSelectable},afterSetElement:function(){this.$menuEl=n(m),this.$el.find(".title").after(this.$menuEl),this.filterMenu=new l(this.menuOptions,this.$menuEl,{toggle:this.menuOptionSelectable,toggleClass:"active"}),this.listenTo(this.filterMenu,"all",function(e,t,n){e.indexOf(this.filterMenu.contextName)>=0&&(this.filterMenu.hide(),this.trigger(e,t,n))},this)},onRemove:function(){this.filterMenu.remove()}})});