//>>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 dojo/i18n!dojox/mobile/nls/messages".split(" "),function(h,l,m,f,g,n,p,q,r){return l("dojox.mobile.PageIndicator",[q,p],{refId:"",baseClass:"mblPageIndicator",buildRendering:function(){this.inherited(arguments);this.domNode.setAttribute("role","img");this._tblNode=g.create("table",{className:"mblPageIndicatorContainer"},this.domNode);
this._tblNode.insertRow(-1);this.connect(this.domNode,"onclick","_onClick");this.subscribe("/dojox/mobile/viewChanged",function(a){this.reset()})},startup:function(){var a=this;a.defer(function(){a.reset()})},reset:function(){var a=this._tblNode.rows[0],b,d=[],k=0,e=(this.refId&&m.byId(this.refId)||this.domNode).parentNode.childNodes;for(b=0;b<e.length;b++){var c=e[b];this.isView(c)&&d.push(c)}if(a.cells.length!==d.length)for(g.empty(a),b=0;b<d.length;b++)c=d[b],c=g.create("div",{className:"mblPageIndicatorDot"}),
a.insertCell(-1).appendChild(c);if(0!==d.length){e=n.byNode(d[0]).getShowingView();for(b=0;b<a.cells.length;b++)c=a.cells[b].firstChild,d[b]===e.domNode?(k=b+1,f.add(c,"mblPageIndicatorDotSelected")):f.remove(c,"mblPageIndicatorDotSelected");a.cells.length?this.domNode.setAttribute("alt",r.PageIndicatorLabel.replace("$0",k).replace("$1",a.cells.length)):this.domNode.removeAttribute("alt")}},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(){}})});