//>>built
define("dojox/mobile/Slider","dojo/_base/array dojo/_base/connect dojo/_base/declare dojo/_base/lang dojo/_base/window dojo/sniff dojo/dom-class dojo/dom-construct dojo/dom-geometry dojo/dom-style dojo/keys dojo/touch dijit/_WidgetBase dijit/form/_FormValueMixin ./common".split(" "),function(z,F,G,p,B,q,m,f,C,r,g,t,H,I,J){return G("dojox.mobile.Slider",[H,I],{value:0,min:0,max:100,step:1,baseClass:"mblSlider",flip:!1,orientation:"auto",halo:"8pt",buildRendering:function(){if(!this.templateString){this.focusNode=
this.domNode=f.create("div",{});this.valueNode=f.create("input",this.srcNodeRef&&this.srcNodeRef.name?{type:"hidden",name:this.srcNodeRef.name}:{type:"hidden"},this.domNode,"last");var b=f.create("div",{style:{position:"relative",height:"100%",width:"100%"}},this.domNode,"last");this.progressBar=f.create("div",{style:{position:"absolute"},"class":"mblSliderProgressBar"},b,"last");this.touchBox=f.create("div",{style:{position:"absolute"},"class":"mblSliderTouchBox"},b,"last");this.handle=f.create("div",
{style:{position:"absolute"},"class":"mblSliderHandle"},b,"last");this.handle.setAttribute("role","slider");this.handle.setAttribute("tabindex",0)}this.inherited(arguments);J._setTouchAction(this.domNode,"none")},_setMinAttr:function(b){this.handle.setAttribute("aria-valuemin",b);this._set("min",b)},_setMaxAttr:function(b){this.handle.setAttribute("aria-valuemax",b);this._set("max",b)},_setValueAttr:function(b,u){b=Math.max(Math.min(b,this.max),this.min);this.valueNode.value=b;this.inherited(arguments);
if(this._started){var e=100*(b-this.min)/(this.max-this.min);!0===u?(m.add(this.handle,"mblSliderTransition"),m.add(this.progressBar,"mblSliderTransition")):(m.remove(this.handle,"mblSliderTransition"),m.remove(this.progressBar,"mblSliderTransition"));r.set(this.handle,this._attrs.handleLeft,(this._reversed?100-e:e)+"%");r.set(this.progressBar,this._attrs.width,e+"%");this.handle.setAttribute("aria-valuenow",b)}},postCreate:function(){function b(a){function d(c){u=h?c[this._attrs.pageX]:c.touches?
c.touches[0][this._attrs.pageX]:c[this._attrs.clientX];e=u-K;e=Math.min(Math.max(e,0),v);c=this.step?(this.max-this.min)/this.step:v;if(1>=c||Infinity==c)c=v;k=(this.max-this.min)*Math.round(e*c/v)/c;k=this._reversed?this.max-k:this.min+k}a.stopPropagation();a.target.focus();a.preventDefault();var h="mousedown"==a.type,D=C.position(w,!1),x=q("ie")||6<q("trident")?1:r.get(B.body(),"zoom")||1;isNaN(x)&&(x=1);var y=q("ie")||6<q("trident")?1:r.get(w,"zoom")||1;isNaN(y)&&(y=1);var K=D[this._attrs.x]*y*
x+C.docScroll()[this._attrs.x],v=D[this._attrs.w]*y*x;p.hitch(this,d)(a);a.target==this.touchBox&&this.set("value",k,!0);z.forEach(A,F.disconnect);a=B.doc.documentElement;var A=[this.connect(a,t.move,function(c){c.preventDefault();p.hitch(this,d)(c);this.set("value",k,!1)}),this.connect(a,t.release,function(c){c.preventDefault();z.forEach(A,p.hitch(this,"disconnect"));A=[];this.set("value",this.value,!0)})]}this.inherited(arguments);var u,e,k,w=this.domNode;"auto"==this.orientation&&(this.orientation=
w.offsetHeight<=w.offsetWidth?"H":"V");m.add(this.domNode,z.map(this.baseClass.split(" "),p.hitch(this,function(a){return a+this.orientation})));var l="V"!=this.orientation,E=l?this.isLeftToRight():!1,n=!!this.flip;this._reversed=!(l&&(E&&!n||!E&&n)||!l&&n);this._attrs=l?{x:"x",w:"w",l:"l",r:"r",pageX:"pageX",clientX:"clientX",handleLeft:"left",left:this._reversed?"right":"left",width:"width"}:{x:"y",w:"h",l:"t",r:"b",pageX:"pageY",clientX:"clientY",handleLeft:"top",left:this._reversed?"bottom":"top",
width:"height"};this.progressBar.style[this._attrs.left]="0px";this.connect(this.touchBox,t.press,b);this.connect(this.handle,t.press,b);this.connect(this.domNode,"onkeypress",function(a){if(!(this.disabled||this.readOnly||a.altKey||a.ctrlKey||a.metaKey)){var d=this.step,h=1;switch(a.keyCode){case g.HOME:d=this.min;break;case g.END:d=this.max;break;case g.RIGHT_ARROW:h=-1;case g.LEFT_ARROW:d=this.value+h*(n&&l?d:-d);break;case g.DOWN_ARROW:h=-1;case g.UP_ARROW:d=this.value+h*(!n||l?d:-d);break;default:return}a.preventDefault();
this._setValueAttr(d,!1)}});this.connect(this.domNode,"onkeyup",function(a){this.disabled||this.readOnly||a.altKey||a.ctrlKey||a.metaKey||this._setValueAttr(this.value,!0)});this.startup();this.set("value",this.value)}})});