//>>built
define("dojox/mobile/TabBar","dojo/_base/array,dojo/_base/declare,dojo/_base/window,dojo/dom-class,dojo/dom-construct,dojo/dom-geometry,dojo/dom-style,dijit/_Contained,dijit/_Container,dijit/_WidgetBase,./TabBarButton".split(","),function(f,j,k,e,l,g,m,n,o,p){return j("dojox.mobile.TabBar",[p,o,n],{iconBase:"",iconPos:"",barType:"tabBar",closable:!1,center:!0,syncWithViews:!1,tag:"ul",selectOne:!0,baseClass:"mblTabBar",_fixedButtonWidth:76,_fixedButtonMargin:17,_largeScreenWidth:500,buildRendering:function(){this.domNode=
this.srcNodeRef||l.create(this.tag);this.reset();this.inherited(arguments)},postCreate:function(){if(this.syncWithViews){var b=function(a){var b=f.filter(this.getChildren(),function(b){return b.moveTo==="#"+a.id||b.moveTo===a.id})[0];b&&b.set("selected",!0)};this.subscribe("/dojox/mobile/afterTransitionIn",b);this.subscribe("/dojox/mobile/startView",b)}},startup:function(){this._started||(this.inherited(arguments),this.resize())},reset:function(){var b=this._barType;if("object"===typeof this.barType){this._barType=
this.barType["*"];for(var a in this.barType)if(e.contains(k.doc.documentElement,a)){this._barType=this.barType[a];break}}else this._barType=this.barType;b&&e.remove(this.domNode,this.baseClass+(b.charAt(0).toUpperCase()+b.substring(1)));e.add(this.domNode,this.baseClass+(this._barType.charAt(0).toUpperCase()+this._barType.substring(1)))},resize:function(b){var a;b&&b.w?(g.setMarginBox(this.domNode,b),b=b.w):b="absolute"===m.get(this.domNode,"position")?g.getContentBox(this.domNode).w:g.getMarginBox(this.domNode).w;
var i=this._fixedButtonWidth,h=this._fixedButtonMargin,c=f.map(this.getChildren(),function(a){return a.domNode});e.toggle(this.domNode,"mblTabBarNoIcons",!f.some(this.getChildren(),function(a){return a.iconNode1}));e.toggle(this.domNode,"mblTabBarNoText",!f.some(this.getChildren(),function(a){return a.label}));var d=0;if("tabBar"==this._barType)if(this.containerNode.style.paddingLeft="",d=Math.floor((b-(i+2*h)*c.length)/2),b<this._largeScreenWidth||0>d)for(a=0;a<c.length;a++)c[a].style.width=Math.round(98/
c.length)+"%",c[a].style.margin="0";else{for(a=0;a<c.length;a++)c[a].style.width=i+"px",c[a].style.margin="0 "+h+"px";if(0<c.length)c[0].style.marginLeft=d+h+"px";this.containerNode.style.padding="0px"}else{for(a=0;a<c.length;a++)c[a].style.width=c[a].style.margin="";a=this.getParent();if(this.center&&(!a||!e.contains(a.domNode,"mblHeading"))){d=b;for(a=0;a<c.length;a++)d-=g.getMarginBox(c[a]).w;d=Math.floor(d/2)}this.containerNode.style.paddingLeft=d?d+"px":""}},getSelectedTab:function(){return f.filter(this.getChildren(),
function(b){return b.selected})[0]},onCloseButtonClick:function(){return!0}})});