//>>built
require({cache:{"url:dojox/widget/Calendar/CalendarMonthYear.html":'\x3cdiv class\x3d"dojoxCal-MY-labels" style\x3d"left: 0px;"\t\n\tdojoAttachPoint\x3d"myContainer" dojoAttachEvent\x3d"onclick: onClick"\x3e\n\t\t\x3ctable cellspacing\x3d"0" cellpadding\x3d"0" border\x3d"0" style\x3d"margin: auto;"\x3e\n\t\t\t\t\x3ctbody\x3e\n\t\t\t\t\t\t\x3ctr class\x3d"dojoxCal-MY-G-Template"\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxCal-MY-M-Template"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxCalendarMonthLabel"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxCal-MY-M-Template"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxCalendarMonthLabel"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxCal-MY-Y-Template"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxCalendarYearLabel"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t\t\t\x3ctd class\x3d"dojoxCal-MY-Y-Template"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"dojoxCalendarYearLabel"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/td\x3e\n\t\t\t\t\t\t \x3c/tr\x3e\n\t\t\t\t\t\t \x3ctr class\x3d"dojoxCal-MY-btns"\x3e\n\t\t\t\t\t\t \t \x3ctd class\x3d"dojoxCal-MY-btns" colspan\x3d"4"\x3e\n\t\t\t\t\t\t \t\t \x3cspan class\x3d"dijitReset dijitInline dijitButtonNode ok-btn" dojoAttachEvent\x3d"onclick: onOk" dojoAttachPoint\x3d"okBtn"\x3e\n\t\t\t\t\t\t \t \t \t \x3cbutton\tclass\x3d"dijitReset dijitStretch dijitButtonContents"\x3eOK\x3c/button\x3e\n\t\t\t\t\t\t\t\t \x3c/span\x3e\n\t\t\t\t\t\t\t\t \x3cspan class\x3d"dijitReset dijitInline dijitButtonNode cancel-btn" dojoAttachEvent\x3d"onclick: onCancel" dojoAttachPoint\x3d"cancelBtn"\x3e\n\t\t\t\t\t\t \t \t\t \x3cbutton\tclass\x3d"dijitReset dijitStretch dijitButtonContents"\x3eCancel\x3c/button\x3e\n\t\t\t\t\t\t\t\t \x3c/span\x3e\n\t\t\t\t\t\t \t \x3c/td\x3e\n\t\t\t\t\t\t \x3c/tr\x3e\n\t\t\t\t\x3c/tbody\x3e\n\t\t\x3c/table\x3e\n\x3c/div\x3e\n'}});
define("dojox/widget/_CalendarMonthYearView","dojo/_base/declare ./_CalendarView dijit/_TemplatedMixin dojo/query dojo/dom-class dojo/_base/connect dojo/_base/event dojo/_base/lang dojo/date/locale dojo/text!./Calendar/CalendarMonthYear.html".split(" "),function(u,v,w,l,e,t,r,m,x,y){return u("dojox.widget._CalendarMonthYearView",[v,w],{templateString:y,datePart:"year",displayedYears:10,useHeader:!1,postCreate:function(){this.cloneClass(".dojoxCal-MY-G-Template",5,".dojoxCal-MY-btns");this.monthContainer=
this.yearContainer=this.myContainer;l(".dojoxCalendarYearLabel",this.myContainer).forEach(function(a,d){var b="dojoxCalendarIncrease";switch(d){case 0:b="dojoxCalendarDecrease";case 1:e.remove(a,"dojoxCalendarYearLabel"),e.add(a,b)}});this._decBtn=l(".dojoxCalendarDecrease",this.myContainer)[0];this._incBtn=l(".dojoxCalendarIncrease",this.myContainer)[0];l(".dojoxCal-MY-M-Template",this.domNode).filter(function(a){return 1==a.cellIndex}).addClass("dojoxCal-MY-M-last");t.connect(this,"onBeforeDisplay",
m.hitch(this,function(){this._cachedDate=new Date(this.get("value").getTime());this._populateYears(this._cachedDate.getFullYear());this._populateMonths();this._updateSelectedMonth();this._updateSelectedYear()}));t.connect(this,"_populateYears",m.hitch(this,function(){this._updateSelectedYear()}));t.connect(this,"_populateMonths",m.hitch(this,function(){this._updateSelectedMonth()}));this._cachedDate=this.get("value");this._populateYears();this._populateMonths();this.addFx(".dojoxCalendarMonthLabel,.dojoxCalendarYearLabel ",
this.myContainer)},_setValueAttr:function(a){a&&a.getFullYear()&&this._populateYears(a.getFullYear())},getHeader:function(){return null},_getMonthNames:function(a){return this._monthNames=this._monthNames||x.getNames("months",a,"standAlone",this.getLang())},_populateMonths:function(){var a,d=this._getMonthNames("abbr"),b=this.get("value").getFullYear(),f=d[this.get("value").getMonth()],g=this.get("displayedYear");l(".dojoxCalendarMonthLabel",this.monthContainer).forEach(m.hitch(this,function(h,q){this._setText(h,
d[q]);a=f===d[q]&&b===g;e.toggle(h.parentNode,["dijitCalendarSelectedDate","dijitCalendarCurrentDate"],a)}));var c=this.get("constraints");if(c){(new Date).setFullYear(this._year);var n=-1,p=12;if(c.min){var k=c.min.getFullYear();k>this._year?n=12:k==this._year&&(n=c.min.getMonth())}c.max&&(k=c.max.getFullYear(),k<this._year?p=-1:k==this._year&&(p=c.max.getMonth()));l(".dojoxCalendarMonthLabel",this.monthContainer).forEach(m.hitch(this,function(h,q){e[q<n||q>p?"add":"remove"](h,"dijitCalendarDisabledDate")}))}},
_populateYears:function(a){var d,b=this.get("constraints"),f=this.get("value").getFullYear(),g=a||f,c=g-Math.floor(this.displayedYears/2);a=b&&b.min?b.min.getFullYear():c-1E4;this._displayedYear=g;g=l(".dojoxCalendarYearLabel",this.yearContainer);var n=b&&b.max?b.max.getFullYear()-c:g.length,p;g.forEach(m.hitch(this,function(k,h){h<=n&&this._setText(k,c+h);p=c+h==f;e.toggle(k.parentNode,["dijitCalendarSelectedDate","dijitCalendarCurrentDate"],p);e.toggle(k,"dijitCalendarDisabledDate",h>n);d=c+h==
f;e.toggle(k.parentNode,["dijitCalendarSelectedDate","dijitCalendarCurrentDate"],d)}));this._incBtn&&e.toggle(this._incBtn,"dijitCalendarDisabledDate",n<g.length);this._decBtn&&e.toggle(this._decBtn,"dijitCalendarDisabledDate",a>=c);this.getHeader()&&this._setText(this.getHeader(),c+" - "+(c+11))},_updateSelectedYear:function(){this._year=String((this._cachedDate||this.get("value")).getFullYear());this._updateSelectedNode(".dojoxCalendarYearLabel",m.hitch(this,function(a){return null!==this._year&&
a.innerHTML==this._year}))},_updateSelectedMonth:function(){var a=(this._cachedDate||this.get("value")).getMonth();this._month=a;this._updateSelectedNode(".dojoxCalendarMonthLabel",function(d,b){return b==a})},_updateSelectedNode:function(a,d){l(a,this.domNode).forEach(function(f,g,c){e.toggle(f.parentNode,"dijitCalendarSelectedDate",d(f,g,c))});var b=l(".dojoxCal-MY-M-Template div",this.myContainer).filter(function(f){return e.contains(f.parentNode,"dijitCalendarSelectedDate")})[0];b&&(b=e.contains(b,
"dijitCalendarDisabledDate"),e.toggle(this.okBtn,"dijitDisabled",b))},onClick:function(a){function d(b){return e.contains(a.target,b)}if(d("dijitCalendarDisabledDate"))return r.stop(a),!1;if(d("dojoxCalendarMonthLabel"))this._month=a.target.parentNode.cellIndex+2*a.target.parentNode.parentNode.rowIndex,this._cachedDate.setMonth(this._month),this._updateSelectedMonth();else if(d("dojoxCalendarYearLabel"))this._year=Number(a.target.innerHTML),this._cachedDate.setYear(this._year),this._populateMonths(),
this._updateSelectedYear();else return d("dojoxCalendarDecrease")?this._populateYears(this._displayedYear-10):d("dojoxCalendarIncrease")&&this._populateYears(this._displayedYear+10),!0;r.stop(a);return!1},onOk:function(a){r.stop(a);if(e.contains(this.okBtn,"dijitDisabled"))return!1;this.onValueSelected(this._cachedDate);return!1},onCancel:function(a){r.stop(a);this.onValueSelected(this.get("value"));return!1}})});