//>>built
define("mill/managementConsole","mill/mill mill/imageList mill/icon dijit/layout/BorderContainer dijit/layout/ContentPane dijit/layout/_ContentPaneResizeMixin".split(" "),function(){dojo.declare("mill._managementConsoleBarMixin",null,{imageList:null,imageIndex:"",widgetsInTemplate:!0,showButton:!0,colorLetter:"b",managementConsoleRootBarImageList:function(){var a=mill["managementConsoleRootBarImageList"+this.colorLetter];if(!a){a=new mill.imageList({definition:{".filename":dojo.moduleUrl("mill","managementConsole"+
this.colorLetter+".png"),".width":28,".height":48,".perrow":1}});var b={};b["managementConsoleRootBarImageList"+this.colorLetter]=a;dojo.mixin(mill,b)}return a},startup:function(){this.inherited(arguments);this.render()},contentClick:function(){}});dojo.declare("mill.managementConsoleRootBar",[dijit._Widget,dijit._Templated,mill._managementConsoleBarMixin],{templateString:dojo.cache("mill","managementConsoleRootBar.html",'\x3cdiv class\x3d"managementConsoleRootBar"\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundLeft" dojoAttachPoint\x3d"backgroundLeftNode" dojoType\x3d"mill.icon" imageIndex\x3d"0"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundCenter" dojoAttachPoint\x3d"backgroundCenterNode"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarBackground managementConsoleRootBarBackgroundRight" dojoAttachPoint\x3d"backgroundRightNode" dojoType\x3d"mill.icon" imageIndex\x3d"2"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarButton" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"buttonNode" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarIcon" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"icon" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleRootBarContainer" dojoAttachEvent\x3d"onclick: contentClick" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
_expandedButtonIndex:4,_collapsedButtonIndex:3,render:function(){mill.enqueueRender(this)},_render:function(){this.imageList&&(this.icon.domNode.style.top=Math.floor((48-this.imageList.height)/2)+"px",this.icon.imageList=this.imageList,this.icon.imageIndex=this.imageIndex,this.icon.render());this.backgroundLeftNode.imageList=this.managementConsoleRootBarImageList();this.backgroundLeftNode.render();this.backgroundRightNode.imageList=this.managementConsoleRootBarImageList();this.backgroundRightNode.render();
this.showButton&&(this.buttonNode.imageList=this.managementConsoleRootBarImageList(),this.buttonNode.render());var a=this.domNode.offsetWidth-28-28+1;this.backgroundCenterNode.style.width=(0<a?a:0)+"px";this.backgroundCenterNode.style.backgroundImage="url("+this.managementConsoleRootBarImageList().imageUrl+")";a=this.domNode.offsetWidth-8-28-28-8-this.icon.domNode.offsetWidth;this.containerNode.style.width=(0<a?a:0)+"px";this.containerNode.style.top=Math.floor((48-this.containerNode.offsetHeight)/
2)+"px"}});dojo.declare("mill.managementConsoleBar",[dijit._Widget,dijit._Templated,mill._managementConsoleBarMixin],{templateString:dojo.cache("mill","managementConsoleBar.html",'\x3cdiv class\x3d"managementConsoleBar"\x3e\x3cdiv class\x3d"managementConsoleBarButton" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"buttonNode" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleBarIcon" dojoAttachEvent\x3d"onClick: contentClick" dojoAttachPoint\x3d"icon" dojoType\x3d"mill.icon"\x3e\x3c/div\x3e\x3cdiv class\x3d"managementConsoleBarContainer" dojoAttachEvent\x3d"onclick: contentClick" dojoAttachPoint\x3d"containerNode"\x3e\x3c/div\x3e\x3c/div\x3e'),
_expandedButtonIndex:6,_collapsedButtonIndex:5,render:function(){mill.enqueueRender(this)},_render:function(){this.imageList&&(this.icon.domNode.style.top=Math.floor((48-this.imageList.height)/2)+"px",this.icon.imageList=this.imageList,this.icon.imageIndex=this.imageIndex,this.icon.render());this.showButton&&(this.buttonNode.imageList=this.managementConsoleRootBarImageList(),this.buttonNode.render());var a=this.domNode.offsetWidth-8-28-28-28-8-this.icon.domNode.offsetWidth;0<a&&(this.containerNode.style.width=
a+"px");this.containerNode.style.top=Math.floor((48-this.containerNode.offsetHeight)/2)+"px"}});dojo.declare("mill.managementConsole",[dijit.layout.ContentPane],{imageList:null,colorLetter:"b",items:null,constructor:function(){this.inherited(arguments);this.items=[]},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onscroll","render")},render:function(){mill.enqueueRender(this)},_render:function(){dojo.forEach(this.items,function(a){a.render()});6>=dojo.isIE||(this.domNode.style.backgroundImage=
"url("+dojo.moduleUrl("mill","managementConsoleBackground.png")+")",this.domNode.style.backgroundRepeat="repeat-x",this.domNode.style.backgroundSize="contain",this.domNode.style.backgroundColor="#FEFEFD");dojo.style(this.domNode,{"-webkit-overflow-scrolling":"touch"})},resize:function(){this.inherited(arguments);this.render()}});dojo.declare("mill.managementConsoleItem",[dijit._Widget],{imageList:null,imageIndex:"",barNode:null,bar:null,parent:null,console:null,level:0,expanded:!0,showButton:!0,colorLetter:"",
attributeMap:dojo.delegate(dijit._WidgetBase,{expanded:""}),_setExpandedAttr:function(a){this.showButton&&(this.expanded=a,this.domNode.style.display=this.expanded?"":"none",this.bar&&this.bar.buttonNode.set("imageIndex",this.expanded?this.bar._expandedButtonIndex:this.bar._collapsedButtonIndex),this.console&&this.console.render())},toggle:function(){this._setExpandedAttr(!this.expanded)},startup:function(){this.inherited(arguments);this.parent=dijit.byNode(this.domNode.parentNode);for(var a=this.parent.domNode,
b=dijit.byNode(a);b&&a&&!b.isInstanceOf(mill.managementConsole);)b=(a=a.parentNode)?dijit.byNode(a):null,this.level++;this.console=b;this.console.items.push(this);this.colorLetter=this.colorLetter||this.console.colorLetter;this.barNode=document.createElement("div");this.parent.domNode.insertBefore(this.barNode,this.domNode);a=!1;for(b=this.domNode.childNodes.length-1;0<=b;b--){var c=this.domNode.childNodes[b],d=1==c.nodeType?dijit.byNode(c):null;d&&d.isInstanceOf(mill.managementConsoleItem)?a=!0:
this.barNode.insertBefore(c,this.barNode.firstChild)}a||this.parent.isInstanceOf(mill.managementConsole)||this.imageIndex?(this.bar=new (this.parent.isInstanceOf(mill.managementConsole)?mill.managementConsoleRootBar:mill.managementConsoleBar)({imageIndex:this.imageIndex,imageList:this.imageList||this.console.imageList,showButton:this.showButton,colorLetter:this.colorLetter},this.barNode),this.bar.domNode.style.marginLeft=24*this.level+"px",this.bar.render(),a?this.bar.contentClick=dojo.hitch(this,
this.toggle):(this.bar.buttonNode.set("visible",!1),dojo.addClass(this.bar.containerNode,"managementConsoleContent")),this.barNode=this.bar.domNode):(dojo.addClass(this.barNode,"managementConsoleContent"),this.barNode.style.marginLeft=24+24*this.level+"px");this._setExpandedAttr(this.expanded)},render:function(){this.bar&&this.bar.render()}})});