//>>built define("dojox/mobile/_DatePickerMixin",["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/date","dojo/date/locale","dojo/date/stamp"],function(_1,_2,_3,_4,_5,_6){ var _7={format:function(d){ return _5.format(d,{datePattern:this.pattern,selector:"date"}); }}; var _8=_3.mixin({initLabels:function(){ this.labels=[]; if(this.labelFrom!==this.labelTo){ var d=new Date(this.labelFrom,0,1); var i,_9; for(i=this.labelFrom,_9=0;i<=this.labelTo;i++,_9++){ d.setFullYear(i); this.labels.push(this.format(d)); } } }},_7); var _a=_3.mixin({initLabels:function(){ this.labels=[]; var d=new Date(2000,0,16); for(var i=0;i<12;i++){ d.setMonth(i); this.labels.push(this.format(d)); } }},_7); var _b=_3.mixin({initLabels:function(){ this.labels=[]; var d=new Date(2000,0,1); for(var i=1;i<=31;i++){ d.setDate(i); this.labels.push(this.format(d)); } }},_7); return _2("dojox.mobile._DatePickerMixin",null,{yearPattern:"yyyy",monthPattern:"MMM",dayPattern:"d",initSlots:function(){ var c=this.slotClasses,p=this.slotProps; c[0]=_2(c[0],_8); c[1]=_2(c[1],_a); c[2]=_2(c[2],_b); p[0].pattern=this.yearPattern; p[1].pattern=this.monthPattern; p[2].pattern=this.dayPattern; this.reorderSlots(); },reorderSlots:function(){ if(this.slotOrder.length){ return; } var a=_5._parseInfo().bundle["dateFormat-short"].toLowerCase().split(/[^ymd]+/,3); this.slotOrder=_1.map(a,function(_c){ return {y:0,m:1,d:2}[_c.charAt(0)]; }); },reset:function(){ var _d=new Date(); var v=_1.map(this.slots,function(w){ return w.format(_d); }); this.set("colors",v); this.disableValues(this.onDaySet()); if(this.value){ this.set("value",this.value); this.value=null; }else{ if(this.values){ this.set("values",this.values); this.values=null; }else{ this.set("values",v); } } },onYearSet:function(){ this.disableValues(this.onDaySet()); },onMonthSet:function(){ this.disableValues(this.onDaySet()); },onDaySet:function(){ var v=this.get("values"),_e=this.slots[0].pattern+"/"+this.slots[1].pattern,_f=_5.parse(v[0]+"/"+v[1],{datePattern:_e,selector:"date"}),_10=_4.getDaysInMonth(_f); if(_10