//>>built
define("mill/jssupport/layout/layoutMenu/_LayoutMenuMixin",["dojo/_base/declare","dojo/_base/lang","dojo/dom-construct","mill/jssupport/layout/layoutMenu/LayoutMenuTreeNode","mill/jssupport/TranslatableNode"],function(d,e,c,f,g){return mill.registerAlias("office.layout._LayoutMenuMixin",d("mill.jssupport.layout.layoutMenu._LayoutMenuMixin",null,{region:null,menuContent:null,_sections:null,_treeNodes:null,postMixInProperties:function(){this.inherited(arguments);this._sections=this._sections||{};this._treeNodes=
this._treeNodes||{}},buildRendering:function(){this.inherited(arguments);this._sections.translation=c.create("ul",{className:"officeLayoutMenuSection"},this.menuContent);this._sections.actions=c.create("ul",{className:"officeLayoutMenuSection"},this.menuContent);this._sections["default"]=c.create("ul",{className:"officeLayoutMenuSection"},this.menuContent)},registerItem:function(a){if(a.section&&!this._sections[a.section]&&(this._sections[a.section]=c.create("ul",{className:"officeLayoutMenuSection"},
this.menuContent),a.sectionName)){var b=c.create("li",{className:"officeLayoutMenuElem"},this._sections[a.section]).appendChild(document.createElement("div"));g({text:a.sectionName,className:"officeLayoutMenuItem bold",style:{color:"#7f7f7f"},display:"flex"},b)}b=this._sections[a.section]||this._sections["default"];e.isObject(a.treeNode)&&null!==a.treeNode&&(this._treeNodes.hasOwnProperty(a.treeNode.ident)?b=this._treeNodes[a.treeNode.ident]:(b=f({text:a.treeNode.text},c.create("div",null,b)).domNode,
this._treeNodes[a.treeNode.ident]=b));return b}}))});