//>>built
define("dojox/mobile/PageIndicator","dojo/_base/connect,dojo/_base/declare,dojo/dom,dojo/dom-class,dojo/dom-construct,dijit/registry,dijit/_Contained,dijit/_WidgetBase".split(","),function(h,i,j,f,g,k,l,m){return i("dojox.mobile.PageIndicator",[m,l],{refId:"",baseClass:"mblPageIndicator",buildRendering:function(){this.inherited(arguments);this._tblNode=g.create("table",{className:"mblPageIndicatorContainer"},this.domNode);this._tblNode.insertRow(-1);this._clickHandle=this.connect(this.domNode,"onclick",
"_onClick");this.subscribe("/dojox/mobile/viewChanged",function(){this.reset()})},startup:function(){var a=this;setTimeout(function(){a.reset()},0)},reset:function(){var a=this._tblNode.rows[0],b,c,d=[],e=(this.refId&&j.byId(this.refId)||this.domNode).parentNode.childNodes;for(b=0;b<e.length;b++)c=e[b],this.isView(c)&&d.push(c);if(a.cells.length!==d.length){g.empty(a);for(b=0;b<d.length;b++)c=g.create("div",{className:"mblPageIndicatorDot"}),a.insertCell(-1).appendChild(c)}if(0!==d.length){e=k.byNode(d[0]).getShowingView();
for(b=0;b<a.cells.length;b++)c=a.cells[b].firstChild,d[b]===e.domNode?f.add(c,"mblPageIndicatorDotSelected"):f.remove(c,"mblPageIndicatorDotSelected")}},isView:function(a){return a&&1===a.nodeType&&f.contains(a,"mblView")},_onClick:function(a){!1===this.onClick(a)||a.target!==this.domNode||(a.layerX<this._tblNode.offsetLeft?h.publish("/dojox/mobile/prevPage",[this]):a.layerX>this._tblNode.offsetLeft+this._tblNode.offsetWidth&&h.publish("/dojox/mobile/nextPage",[this]))},onClick:function(){}})});