YUI.add("aui-scheduler-view-month",function(e,t){var n=e.Lang,r=n.isFunction,i=e.DataType.DateMath,s=".",o="col",u="data",a="firstDayOfWeek",f="locale",l="month",c="nomonth",h="scheduler",p="table",d="tableRowContainer",v="title",m="viewDate",g="scheduler-view",y="scheduler-view-month",b=e.getClassName,w=b(y,p,u,o,c),E=b(g,p,u,o,v),S=e.Component.create({NAME:y,ATTRS:{displayDaysInterval:{readOnly:!0,value:42},name:{value:l},navigationDateFormatter:{value:function(t){var n=this,r=n.get(h);return e.DataType.Date.format(t,{format:"%B %Y",locale:r.get(f)})},validator:r}},EXTENDS:e.SchedulerTableView,prototype:{getAdjustedViewDate:function(e){var t=this;return i.toMidnight(i.findMonthStart(e))},getNextDate:function(){var e=this,t=e.get(h),n=t.get(m);return i.toLastHour(i.add(n,i.MONTH,1))},getPrevDate:function(){var e=this,t=e.get(h),n=t.get(m);return i.toMidnight(i.subtract(n,i.MONTH,1))},plotEvents:function(){var t=this;e.SchedulerMonthView.superclass.plotEvents.apply(t,arguments);var n=t.get(h),r=n.get(m),o=i.findMonthEnd(r),u=i.findMonthStart(r),a=t._findCurrentIntervalStart(),f=t[d].all(s+E);f.each(function(e,t){var n=i.add(a,i.DAY,t);(i.before(n,u)||i.after(n,o))&&e.addClass(w)})},_findCurrentIntervalStart:function(){var e=this,t=e.get(h),n=t.get(m);return e._findFirstDayOfWeek(n)},_findFirstDayOfWeek:function(e){var t=this,n=t.get(h),r=n.get(a);return i.getFirstDayOfWeek(e,r)}}});e.SchedulerMonthView=S},"2.0.0",{requires:["aui-scheduler-view-table"],skinnable:!0});
