//>>built
define("dojox/mobile/Rating","dojo/_base/declare dojo/_base/lang dojo/dom-construct dijit/_WidgetBase ./iconUtils dojo/has dojo/has!dojo-bidi?dojox/mobile/bidi/Rating".split(" "),function(g,m,d,c,h,k,n){c=g(k("dojo-bidi")?"dojox.mobile.NonBidiRating":"dojox.mobile.Rating",[c],{image:"",numStars:5,value:0,alt:"",baseClass:"mblRating",buildRendering:function(){this.inherited(arguments);this.domNode.style.display="inline-block";var a=this.imgNode=d.create("img");this.connect(a,"onload",m.hitch(this,
function(){this.set("value",this.value)}));h.createIcon(this.image,null,a)},_setValueAttr:function(a){this._set("value",a);var l=this.imgNode.height;if(0!=l){d.empty(this.domNode);var b,e=this.imgNode.width/3;for(b=0;b<this.numStars;b++){var p=b<=a-1?0:b>=a?e:2*e;var f=d.create("div",{style:{"float":"left"}},this.domNode);this.isLeftToRight()||(f=this._setCustomTransform(f));h.createIcon(this.image,"0,"+p+","+e+","+l,null,this.alt,f)}}},_setCustomTransform:function(a){return a}});return k("dojo-bidi")?
g("dojox.mobile.Rating",[c,n]):c});