//>>built require({cache:{"url:dijit/layout/templates/_TabButton.html":"
\n\t\n\t\n\t\n\t\t[x]\n
\n"}});define("dijit/layout/TabController",["dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/has","dojo/i18n","dojo/_base/lang","./StackController","../registry","../Menu","../MenuItem","dojo/text!./templates/_TabButton.html","dojo/i18n!../nls/common"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c){var _d=_1("dijit.layout._TabButton"+(_5("dojo-bidi")?"_NoBidi":""),_8.StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:_c,_setNameAttr:"focusNode",scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);_2.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;this.defer(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(_e){this._set("closeButton",_e);_4.toggle(this.domNode,"dijitClosable",_e);this.closeNode.style.display=_e?"":"none";if(_e){var _f=_6.getLocalization("dijit","common");if(this.closeNode){_3.set(this.closeNode,"title",_f.itemClose);}}},_setDisabledAttr:function(_10){this.inherited(arguments);if(this.closeNode){if(_10){_3.remove(this.closeNode,"title");}else{var _11=_6.getLocalization("dijit","common");_3.set(this.closeNode,"title",_11.itemClose);}}},_setLabelAttr:function(_12){this.inherited(arguments);if(!this.showLabel&&!this.params.title){this.iconNode.alt=_7.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});if(_5("dojo-bidi")){_d=_1("dijit.layout._TabButton",_d,{_setLabelAttr:function(_13){this.inherited(arguments);this.applyTextDir(this.iconNode,this.iconNode.alt);}});}var _14=_1("dijit.layout.TabController",_8,{baseClass:"dijitTabController",templateString:"
",tabPosition:"top",buttonWidget:_d,buttonWidgetCloseClass:"dijitTabCloseButton",postCreate:function(){this.inherited(arguments);var _15=new _a({id:this.id+"_Menu",ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,targetNodeIds:[this.domNode],selector:function(_16){return _4.contains(_16,"dijitClosable")&&!_4.contains(_16,"dijitTabDisabled");}});this.own(_15);var _17=_6.getLocalization("dijit","common"),_18=this;_15.addChild(new _b({label:_17.itemClose,ownerDocument:this.ownerDocument,dir:this.dir,lang:this.lang,textDir:this.textDir,onClick:function(evt){var _19=_9.byNode(this.getParent().currentTarget);_18.onCloseButtonClick(_19.page);}}));}});_14.TabButton=_d;return _14;});