var __cov_iFlUFoON8vnVWN4OWN67oA = (Function('return this'))();
if (!__cov_iFlUFoON8vnVWN4OWN67oA.__coverage__) { __cov_iFlUFoON8vnVWN4OWN67oA.__coverage__ = {}; }
__cov_iFlUFoON8vnVWN4OWN67oA = __cov_iFlUFoON8vnVWN4OWN67oA.__coverage__;
if (!(__cov_iFlUFoON8vnVWN4OWN67oA['build/calendarnavigator/calendarnavigator.js'])) {
__cov_iFlUFoON8vnVWN4OWN67oA['build/calendarnavigator/calendarnavigator.js'] = {"path":"build/calendarnavigator/calendarnavigator.js","s":{"1":0,"2":0,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0},"b":{"1":[0,0],"2":[0,0,0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":48}}},"2":{"name":"CalendarNavigator","line":28,"loc":{"start":{"line":28,"column":0},"end":{"line":28,"column":29}}},"3":{"name":"(anonymous_3)","line":122,"loc":{"start":{"line":122,"column":18},"end":{"line":122,"column":29}}},"4":{"name":"(anonymous_4)","line":137,"loc":{"start":{"line":137,"column":17},"end":{"line":137,"column":28}}},"5":{"name":"(anonymous_5)","line":149,"loc":{"start":{"line":149,"column":23},"end":{"line":149,"column":37}}},"6":{"name":"(anonymous_6)","line":161,"loc":{"start":{"line":161,"column":22},"end":{"line":161,"column":36}}},"7":{"name":"(anonymous_7)","line":178,"loc":{"start":{"line":178,"column":17},"end":{"line":178,"column":31}}},"8":{"name":"(anonymous_8)","line":188,"loc":{"start":{"line":188,"column":26},"end":{"line":188,"column":38}}},"9":{"name":"(anonymous_9)","line":247,"loc":{"start":{"line":247,"column":26},"end":{"line":247,"column":38}}},"10":{"name":"(anonymous_10)","line":261,"loc":{"start":{"line":261,"column":26},"end":{"line":261,"column":38}}},"11":{"name":"(anonymous_11)","line":274,"loc":{"start":{"line":274,"column":30},"end":{"line":274,"column":41}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":297,"column":106}},"2":{"start":{"line":8,"column":0},"end":{"line":20,"column":34}},"3":{"start":{"line":28,"column":0},"end":{"line":30,"column":1}},"4":{"start":{"line":29,"column":4},"end":{"line":29,"column":68}},"5":{"start":{"line":41,"column":0},"end":{"line":41,"column":35}},"6":{"start":{"line":52,"column":0},"end":{"line":52,"column":51}},"7":{"start":{"line":63,"column":0},"end":{"line":75,"column":2}},"8":{"start":{"line":85,"column":0},"end":{"line":88,"column":2}},"9":{"start":{"line":97,"column":0},"end":{"line":98,"column":87}},"10":{"start":{"line":107,"column":0},"end":{"line":108,"column":87}},"11":{"start":{"line":111,"column":0},"end":{"line":292,"column":3}},"12":{"start":{"line":125,"column":8},"end":{"line":125,"column":28}},"13":{"start":{"line":126,"column":8},"end":{"line":126,"column":36}},"14":{"start":{"line":128,"column":8},"end":{"line":128,"column":71}},"15":{"start":{"line":150,"column":8},"end":{"line":150,"column":33}},"16":{"start":{"line":162,"column":8},"end":{"line":167,"column":9}},"17":{"start":{"line":163,"column":12},"end":{"line":164,"column":43}},"18":{"start":{"line":165,"column":12},"end":{"line":165,"column":85}},"19":{"start":{"line":166,"column":12},"end":{"line":166,"column":32}},"20":{"start":{"line":179,"column":8},"end":{"line":184,"column":9}},"21":{"start":{"line":180,"column":12},"end":{"line":181,"column":43}},"22":{"start":{"line":182,"column":12},"end":{"line":182,"column":82}},"23":{"start":{"line":183,"column":12},"end":{"line":183,"column":32}},"24":{"start":{"line":190,"column":8},"end":{"line":194,"column":69}},"25":{"start":{"line":196,"column":8},"end":{"line":213,"column":9}},"26":{"start":{"line":197,"column":12},"end":{"line":200,"column":13}},"27":{"start":{"line":198,"column":16},"end":{"line":198,"column":58}},"28":{"start":{"line":199,"column":16},"end":{"line":199,"column":57}},"29":{"start":{"line":202,"column":12},"end":{"line":204,"column":13}},"30":{"start":{"line":203,"column":16},"end":{"line":203,"column":99}},"31":{"start":{"line":207,"column":12},"end":{"line":209,"column":13}},"32":{"start":{"line":208,"column":12},"end":{"line":208,"column":125}},"33":{"start":{"line":210,"column":12},"end":{"line":212,"column":13}},"34":{"start":{"line":211,"column":14},"end":{"line":211,"column":101}},"35":{"start":{"line":215,"column":8},"end":{"line":232,"column":9}},"36":{"start":{"line":216,"column":12},"end":{"line":219,"column":13}},"37":{"start":{"line":217,"column":16},"end":{"line":217,"column":58}},"38":{"start":{"line":218,"column":16},"end":{"line":218,"column":57}},"39":{"start":{"line":221,"column":12},"end":{"line":223,"column":13}},"40":{"start":{"line":222,"column":16},"end":{"line":222,"column":99}},"41":{"start":{"line":226,"column":12},"end":{"line":228,"column":13}},"42":{"start":{"line":227,"column":12},"end":{"line":227,"column":120}},"43":{"start":{"line":229,"column":12},"end":{"line":231,"column":13}},"44":{"start":{"line":230,"column":14},"end":{"line":230,"column":101}},"45":{"start":{"line":234,"column":8},"end":{"line":234,"column":87}},"46":{"start":{"line":235,"column":8},"end":{"line":235,"column":87}},"47":{"start":{"line":248,"column":6},"end":{"line":249,"column":71}},"48":{"start":{"line":250,"column":6},"end":{"line":250,"column":79}},"49":{"start":{"line":252,"column":6},"end":{"line":252,"column":29}},"50":{"start":{"line":262,"column":6},"end":{"line":263,"column":71}},"51":{"start":{"line":264,"column":6},"end":{"line":264,"column":79}},"52":{"start":{"line":266,"column":6},"end":{"line":266,"column":29}},"53":{"start":{"line":275,"column":8},"end":{"line":276,"column":65}},"54":{"start":{"line":278,"column":8},"end":{"line":278,"column":86}},"55":{"start":{"line":279,"column":8},"end":{"line":279,"column":92}},"56":{"start":{"line":280,"column":8},"end":{"line":280,"column":88}},"57":{"start":{"line":282,"column":8},"end":{"line":282,"column":62}},"58":{"start":{"line":283,"column":8},"end":{"line":283,"column":62}},"59":{"start":{"line":285,"column":8},"end":{"line":285,"column":35}},"60":{"start":{"line":287,"column":8},"end":{"line":287,"column":109}},"61":{"start":{"line":289,"column":8},"end":{"line":289,"column":53}},"62":{"start":{"line":290,"column":8},"end":{"line":290,"column":52}},"63":{"start":{"line":294,"column":0},"end":{"line":294,"column":60}}},"branchMap":{"1":{"line":162,"type":"if","locations":[{"start":{"line":162,"column":8},"end":{"line":162,"column":8}},{"start":{"line":162,"column":8},"end":{"line":162,"column":8}}]},"2":{"line":162,"type":"binary-expr","locations":[{"start":{"line":162,"column":14},"end":{"line":162,"column":33}},{"start":{"line":162,"column":39},"end":{"line":162,"column":60}},{"start":{"line":162,"column":65},"end":{"line":162,"column":82}},{"start":{"line":162,"column":86},"end":{"line":162,"column":103}}]},"3":{"line":179,"type":"if","locations":[{"start":{"line":179,"column":8},"end":{"line":179,"column":8}},{"start":{"line":179,"column":8},"end":{"line":179,"column":8}}]},"4":{"line":179,"type":"binary-expr","locations":[{"start":{"line":179,"column":14},"end":{"line":179,"column":33}},{"start":{"line":179,"column":39},"end":{"line":179,"column":60}},{"start":{"line":179,"column":65},"end":{"line":179,"column":82}},{"start":{"line":179,"column":86},"end":{"line":179,"column":103}}]},"5":{"line":196,"type":"if","locations":[{"start":{"line":196,"column":8},"end":{"line":196,"column":8}},{"start":{"line":196,"column":8},"end":{"line":196,"column":8}}]},"6":{"line":197,"type":"if","locations":[{"start":{"line":197,"column":12},"end":{"line":197,"column":12}},{"start":{"line":197,"column":12},"end":{"line":197,"column":12}}]},"7":{"line":202,"type":"if","locations":[{"start":{"line":202,"column":12},"end":{"line":202,"column":12}},{"start":{"line":202,"column":12},"end":{"line":202,"column":12}}]},"8":{"line":207,"type":"if","locations":[{"start":{"line":207,"column":12},"end":{"line":207,"column":12}},{"start":{"line":207,"column":12},"end":{"line":207,"column":12}}]},"9":{"line":210,"type":"if","locations":[{"start":{"line":210,"column":12},"end":{"line":210,"column":12}},{"start":{"line":210,"column":12},"end":{"line":210,"column":12}}]},"10":{"line":215,"type":"if","locations":[{"start":{"line":215,"column":8},"end":{"line":215,"column":8}},{"start":{"line":215,"column":8},"end":{"line":215,"column":8}}]},"11":{"line":216,"type":"if","locations":[{"start":{"line":216,"column":12},"end":{"line":216,"column":12}},{"start":{"line":216,"column":12},"end":{"line":216,"column":12}}]},"12":{"line":221,"type":"if","locations":[{"start":{"line":221,"column":12},"end":{"line":221,"column":12}},{"start":{"line":221,"column":12},"end":{"line":221,"column":12}}]},"13":{"line":226,"type":"if","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":12}},{"start":{"line":226,"column":12},"end":{"line":226,"column":12}}]},"14":{"line":229,"type":"if","locations":[{"start":{"line":229,"column":12},"end":{"line":229,"column":12}},{"start":{"line":229,"column":12},"end":{"line":229,"column":12}}]}},"code":["(function () { YUI.add('calendarnavigator', function (Y, NAME) {","","/**"," * Provides a plugin which adds navigation controls to Calendar."," *"," * @module calendarnavigator"," */","var CONTENT_BOX = \"contentBox\","," HOST = \"host\","," getCN = Y.ClassNameManager.getClassName,"," substitute = Y.Lang.sub,"," node = Y.Node,"," create = node.create,"," CALENDAR = 'calendar',"," CALENDARNAV = 'calendarnav',"," CAL_HD = getCN(CALENDAR, 'header'),"," CAL_PREV_M = getCN(CALENDARNAV, 'prevmonth'),"," CAL_NEXT_M = getCN(CALENDARNAV, 'nextmonth'),"," CAL_DIS_M = getCN(CALENDARNAV, 'month-disabled'),"," ydate = Y.DataType.Date;","/**"," * A plugin class which adds navigation controls to Calendar."," *"," * @class CalendarNavigator"," * @extends Plugin.Base"," * @namespace Plugin"," */","function CalendarNavigator() {"," CalendarNavigator.superclass.constructor.apply(this, arguments);","}","","/**"," * The namespace for the plugin. This will be the property on the widget, which will"," * reference the plugin instance, when it's plugged in."," *"," * @property NS"," * @static"," * @type String"," * @default \"navigator\""," */","CalendarNavigator.NS = \"navigator\";","","/**"," * The NAME of the CalendarNavigator class. Used to prefix events generated"," * by the plugin class."," *"," * @property NAME"," * @static"," * @type String"," * @default \"pluginCalendarNavigator\""," */","CalendarNavigator.NAME = \"pluginCalendarNavigator\";","","","/**"," * Static property used to define the default attribute"," * configuration for the plugin."," *"," * @property ATTRS"," * @type Object"," * @static"," */","CalendarNavigator.ATTRS = {",""," /**"," * The number of months to shift by when the control arrows are clicked."," *"," * @attribute shiftByMonths"," * @type Number"," * @default 1 (months)"," */"," shiftByMonths : {"," value: 1"," }","};",""," /**"," * The CSS classnames for the calendar navigator controls."," * @property CALENDARNAV_STRINGS"," * @type Object"," * @readOnly"," * @protected"," * @static"," */","CalendarNavigator.CALENDARNAV_STRINGS = {"," prev_month_class: CAL_PREV_M,"," next_month_class: CAL_NEXT_M","};",""," /**"," * The template for the calendar navigator previous month control."," * @property PREV_MONTH_CONTROL_TEMPLATE"," * @type String"," * @protected"," * @static"," */","CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE = '';"," /**"," * The template for the calendar navigator next month control."," * @property NEXT_MONTH_CONTROL_TEMPLATE"," * @type String"," * @readOnly"," * @protected"," * @static"," */","CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE = '';","","","Y.extend(CalendarNavigator, Y.Plugin.Base, {",""," _eventAttachments : {},"," _controls: {},",""," /**"," * The initializer lifecycle implementation. Modifies the host widget's"," * render to add navigation controls."," *"," * @method initializer"," */"," initializer : function() {",""," // After the host has rendered its UI, place the navigation cotnrols"," this._controls = {};"," this._eventAttachments = {};",""," this.afterHostMethod(\"renderUI\", this._initNavigationControls);"," },",""," /**"," * The initializer destructor implementation. Responsible for destroying the initialized"," * control mechanisms."," *"," * @method destructor"," */"," destructor : function() {",""," },",""," /**"," * Private utility method that focuses on a navigation button when it is clicked"," * or pressed with a keyboard."," *"," * @method _focusNavigation"," * @param {Event} ev Click or keydown event from the controls"," * @protected"," */"," _focusNavigation : function (ev) {"," ev.currentTarget.focus();"," },",""," /**"," * Private utility method that subtracts months from the host calendar date"," * based on the control click and the shiftByMonths property."," *"," * @method _subtractMonths"," * @param {Event} ev Click event from the controls"," * @protected"," */"," _subtractMonths : function (ev) {"," if ( (ev.type === \"click\") || (ev.type === \"keydown\" && (ev.keyCode === 13 || ev.keyCode === 32)) ) {"," var host = this.get(HOST),"," oldDate = host.get(\"date\");"," host.set(\"date\", ydate.addMonths(oldDate, -1*this.get(\"shiftByMonths\")));"," ev.preventDefault();"," }"," },",""," /**"," * Private utility method that adds months to the host calendar date"," * based on the control click and the shiftByMonths property."," *"," * @method _addMonths"," * @param {Event} ev Click event from the controls"," * @protected"," */"," _addMonths : function (ev) {"," if ( (ev.type === \"click\") || (ev.type === \"keydown\" && (ev.keyCode === 13 || ev.keyCode === 32)) ) {"," var host = this.get(HOST),"," oldDate = host.get(\"date\");"," host.set(\"date\", ydate.addMonths(oldDate, this.get(\"shiftByMonths\")));"," ev.preventDefault();"," }"," },","",""," _updateControlState : function () {",""," var host = this.get(HOST),"," startDate = host.get('date'),"," endDate = ydate.addMonths(startDate, host._paneNumber - 1),"," minDate = host._normalizeDate(host.get(\"minimumDate\")),"," maxDate = host._normalizeDate(host.get(\"maximumDate\"));",""," if (ydate.areEqual(minDate, startDate)) {"," if (this._eventAttachments.prevMonth) {"," this._eventAttachments.prevMonth.detach();"," this._eventAttachments.prevMonth = false;"," }",""," if (!this._controls.prevMonth.hasClass(CAL_DIS_M)) {"," this._controls.prevMonth.addClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"true\");"," }"," }"," else {"," if (!this._eventAttachments.prevMonth) {"," this._eventAttachments.prevMonth = this._controls.prevMonth.on([\"click\", \"keydown\"], this._subtractMonths, this);"," }"," if (this._controls.prevMonth.hasClass(CAL_DIS_M)) {"," this._controls.prevMonth.removeClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"false\");"," }"," }",""," if (ydate.areEqual(maxDate, endDate)) {"," if (this._eventAttachments.nextMonth) {"," this._eventAttachments.nextMonth.detach();"," this._eventAttachments.nextMonth = false;"," }",""," if (!this._controls.nextMonth.hasClass(CAL_DIS_M)) {"," this._controls.nextMonth.addClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"true\");"," }"," }"," else {"," if (!this._eventAttachments.nextMonth) {"," this._eventAttachments.nextMonth = this._controls.nextMonth.on([\"click\", \"keydown\"], this._addMonths, this);"," }"," if (this._controls.nextMonth.hasClass(CAL_DIS_M)) {"," this._controls.nextMonth.removeClass(CAL_DIS_M).setAttribute(\"aria-disabled\", \"false\");"," }"," }",""," this._controls.prevMonth.on([\"click\", \"keydown\"], this._focusNavigation, this);"," this._controls.nextMonth.on([\"click\", \"keydown\"], this._focusNavigation, this);"," },","","","",""," /**"," * Private render assist method that renders the previous month control"," *"," * @method _renderPrevControls"," * @private"," */"," _renderPrevControls : function () {"," var prevControlNode = create(substitute (CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE,"," CalendarNavigator.CALENDARNAV_STRINGS));"," prevControlNode.on(\"selectstart\", this.get(HOST)._preventSelectionStart);",""," return prevControlNode;"," },",""," /**"," * Private render assist method that renders the next month control"," *"," * @method _renderNextControls"," * @private"," */"," _renderNextControls : function () {"," var nextControlNode = create(substitute (CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE,"," CalendarNavigator.CALENDARNAV_STRINGS));"," nextControlNode.on(\"selectstart\", this.get(HOST)._preventSelectionStart);",""," return nextControlNode;"," },",""," /**"," * Protected render assist method that initialized and renders the navigation controls."," * @method _initNavigationControls"," * @protected"," */"," _initNavigationControls : function() {"," var host = this.get(HOST),"," headerCell = host.get(CONTENT_BOX).one(\".\" + CAL_HD);",""," CalendarNavigator.CALENDARNAV_STRINGS.control_tabindex = host.get(\"tabIndex\");"," CalendarNavigator.CALENDARNAV_STRINGS.prev_month_arialabel = \"Go to previous month\";"," CalendarNavigator.CALENDARNAV_STRINGS.next_month_arialabel = \"Go to next month\";",""," this._controls.prevMonth = this._renderPrevControls();"," this._controls.nextMonth = this._renderNextControls();",""," this._updateControlState();",""," host.after([\"dateChange\", \"minimumDateChange\", \"maximumDateChange\"], this._updateControlState, this);",""," headerCell.prepend(this._controls.prevMonth);"," headerCell.append(this._controls.nextMonth);"," }","});","","Y.namespace(\"Plugin\").CalendarNavigator = CalendarNavigator;","","","}, '@VERSION@', {\"requires\": [\"plugin\", \"classnamemanager\", \"datatype-date\", \"node\"], \"skinnable\": true});","","}());"]};
}
__cov_iFlUFoON8vnVWN4OWN67oA = __cov_iFlUFoON8vnVWN4OWN67oA['build/calendarnavigator/calendarnavigator.js'];
__cov_iFlUFoON8vnVWN4OWN67oA.s['1']++;YUI.add('calendarnavigator',function(Y,NAME){__cov_iFlUFoON8vnVWN4OWN67oA.f['1']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['2']++;var CONTENT_BOX='contentBox',HOST='host',getCN=Y.ClassNameManager.getClassName,substitute=Y.Lang.sub,node=Y.Node,create=node.create,CALENDAR='calendar',CALENDARNAV='calendarnav',CAL_HD=getCN(CALENDAR,'header'),CAL_PREV_M=getCN(CALENDARNAV,'prevmonth'),CAL_NEXT_M=getCN(CALENDARNAV,'nextmonth'),CAL_DIS_M=getCN(CALENDARNAV,'month-disabled'),ydate=Y.DataType.Date;function CalendarNavigator(){__cov_iFlUFoON8vnVWN4OWN67oA.f['2']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['4']++;CalendarNavigator.superclass.constructor.apply(this,arguments);}__cov_iFlUFoON8vnVWN4OWN67oA.s['5']++;CalendarNavigator.NS='navigator';__cov_iFlUFoON8vnVWN4OWN67oA.s['6']++;CalendarNavigator.NAME='pluginCalendarNavigator';__cov_iFlUFoON8vnVWN4OWN67oA.s['7']++;CalendarNavigator.ATTRS={shiftByMonths:{value:1}};__cov_iFlUFoON8vnVWN4OWN67oA.s['8']++;CalendarNavigator.CALENDARNAV_STRINGS={prev_month_class:CAL_PREV_M,next_month_class:CAL_NEXT_M};__cov_iFlUFoON8vnVWN4OWN67oA.s['9']++;CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE='';__cov_iFlUFoON8vnVWN4OWN67oA.s['10']++;CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE='';__cov_iFlUFoON8vnVWN4OWN67oA.s['11']++;Y.extend(CalendarNavigator,Y.Plugin.Base,{_eventAttachments:{},_controls:{},initializer:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['3']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['12']++;this._controls={};__cov_iFlUFoON8vnVWN4OWN67oA.s['13']++;this._eventAttachments={};__cov_iFlUFoON8vnVWN4OWN67oA.s['14']++;this.afterHostMethod('renderUI',this._initNavigationControls);},destructor:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['4']++;},_focusNavigation:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['5']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['15']++;ev.currentTarget.focus();},_subtractMonths:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['6']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['16']++;if((__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][0]++,ev.type==='click')||(__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][1]++,ev.type==='keydown')&&((__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][2]++,ev.keyCode===13)||(__cov_iFlUFoON8vnVWN4OWN67oA.b['2'][3]++,ev.keyCode===32))){__cov_iFlUFoON8vnVWN4OWN67oA.b['1'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['17']++;var host=this.get(HOST),oldDate=host.get('date');__cov_iFlUFoON8vnVWN4OWN67oA.s['18']++;host.set('date',ydate.addMonths(oldDate,-1*this.get('shiftByMonths')));__cov_iFlUFoON8vnVWN4OWN67oA.s['19']++;ev.preventDefault();}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['1'][1]++;}},_addMonths:function(ev){__cov_iFlUFoON8vnVWN4OWN67oA.f['7']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['20']++;if((__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][0]++,ev.type==='click')||(__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][1]++,ev.type==='keydown')&&((__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][2]++,ev.keyCode===13)||(__cov_iFlUFoON8vnVWN4OWN67oA.b['4'][3]++,ev.keyCode===32))){__cov_iFlUFoON8vnVWN4OWN67oA.b['3'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['21']++;var host=this.get(HOST),oldDate=host.get('date');__cov_iFlUFoON8vnVWN4OWN67oA.s['22']++;host.set('date',ydate.addMonths(oldDate,this.get('shiftByMonths')));__cov_iFlUFoON8vnVWN4OWN67oA.s['23']++;ev.preventDefault();}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['3'][1]++;}},_updateControlState:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['8']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['24']++;var host=this.get(HOST),startDate=host.get('date'),endDate=ydate.addMonths(startDate,host._paneNumber-1),minDate=host._normalizeDate(host.get('minimumDate')),maxDate=host._normalizeDate(host.get('maximumDate'));__cov_iFlUFoON8vnVWN4OWN67oA.s['25']++;if(ydate.areEqual(minDate,startDate)){__cov_iFlUFoON8vnVWN4OWN67oA.b['5'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['26']++;if(this._eventAttachments.prevMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['6'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['27']++;this._eventAttachments.prevMonth.detach();__cov_iFlUFoON8vnVWN4OWN67oA.s['28']++;this._eventAttachments.prevMonth=false;}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['6'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['29']++;if(!this._controls.prevMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['7'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['30']++;this._controls.prevMonth.addClass(CAL_DIS_M).setAttribute('aria-disabled','true');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['7'][1]++;}}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['5'][1]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['31']++;if(!this._eventAttachments.prevMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['8'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['32']++;this._eventAttachments.prevMonth=this._controls.prevMonth.on(['click','keydown'],this._subtractMonths,this);}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['8'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['33']++;if(this._controls.prevMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['9'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['34']++;this._controls.prevMonth.removeClass(CAL_DIS_M).setAttribute('aria-disabled','false');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['9'][1]++;}}__cov_iFlUFoON8vnVWN4OWN67oA.s['35']++;if(ydate.areEqual(maxDate,endDate)){__cov_iFlUFoON8vnVWN4OWN67oA.b['10'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['36']++;if(this._eventAttachments.nextMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['11'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['37']++;this._eventAttachments.nextMonth.detach();__cov_iFlUFoON8vnVWN4OWN67oA.s['38']++;this._eventAttachments.nextMonth=false;}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['11'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['39']++;if(!this._controls.nextMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['12'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['40']++;this._controls.nextMonth.addClass(CAL_DIS_M).setAttribute('aria-disabled','true');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['12'][1]++;}}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['10'][1]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['41']++;if(!this._eventAttachments.nextMonth){__cov_iFlUFoON8vnVWN4OWN67oA.b['13'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['42']++;this._eventAttachments.nextMonth=this._controls.nextMonth.on(['click','keydown'],this._addMonths,this);}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['13'][1]++;}__cov_iFlUFoON8vnVWN4OWN67oA.s['43']++;if(this._controls.nextMonth.hasClass(CAL_DIS_M)){__cov_iFlUFoON8vnVWN4OWN67oA.b['14'][0]++;__cov_iFlUFoON8vnVWN4OWN67oA.s['44']++;this._controls.nextMonth.removeClass(CAL_DIS_M).setAttribute('aria-disabled','false');}else{__cov_iFlUFoON8vnVWN4OWN67oA.b['14'][1]++;}}__cov_iFlUFoON8vnVWN4OWN67oA.s['45']++;this._controls.prevMonth.on(['click','keydown'],this._focusNavigation,this);__cov_iFlUFoON8vnVWN4OWN67oA.s['46']++;this._controls.nextMonth.on(['click','keydown'],this._focusNavigation,this);},_renderPrevControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['9']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['47']++;var prevControlNode=create(substitute(CalendarNavigator.PREV_MONTH_CONTROL_TEMPLATE,CalendarNavigator.CALENDARNAV_STRINGS));__cov_iFlUFoON8vnVWN4OWN67oA.s['48']++;prevControlNode.on('selectstart',this.get(HOST)._preventSelectionStart);__cov_iFlUFoON8vnVWN4OWN67oA.s['49']++;return prevControlNode;},_renderNextControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['10']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['50']++;var nextControlNode=create(substitute(CalendarNavigator.NEXT_MONTH_CONTROL_TEMPLATE,CalendarNavigator.CALENDARNAV_STRINGS));__cov_iFlUFoON8vnVWN4OWN67oA.s['51']++;nextControlNode.on('selectstart',this.get(HOST)._preventSelectionStart);__cov_iFlUFoON8vnVWN4OWN67oA.s['52']++;return nextControlNode;},_initNavigationControls:function(){__cov_iFlUFoON8vnVWN4OWN67oA.f['11']++;__cov_iFlUFoON8vnVWN4OWN67oA.s['53']++;var host=this.get(HOST),headerCell=host.get(CONTENT_BOX).one('.'+CAL_HD);__cov_iFlUFoON8vnVWN4OWN67oA.s['54']++;CalendarNavigator.CALENDARNAV_STRINGS.control_tabindex=host.get('tabIndex');__cov_iFlUFoON8vnVWN4OWN67oA.s['55']++;CalendarNavigator.CALENDARNAV_STRINGS.prev_month_arialabel='Go to previous month';__cov_iFlUFoON8vnVWN4OWN67oA.s['56']++;CalendarNavigator.CALENDARNAV_STRINGS.next_month_arialabel='Go to next month';__cov_iFlUFoON8vnVWN4OWN67oA.s['57']++;this._controls.prevMonth=this._renderPrevControls();__cov_iFlUFoON8vnVWN4OWN67oA.s['58']++;this._controls.nextMonth=this._renderNextControls();__cov_iFlUFoON8vnVWN4OWN67oA.s['59']++;this._updateControlState();__cov_iFlUFoON8vnVWN4OWN67oA.s['60']++;host.after(['dateChange','minimumDateChange','maximumDateChange'],this._updateControlState,this);__cov_iFlUFoON8vnVWN4OWN67oA.s['61']++;headerCell.prepend(this._controls.prevMonth);__cov_iFlUFoON8vnVWN4OWN67oA.s['62']++;headerCell.append(this._controls.nextMonth);}});__cov_iFlUFoON8vnVWN4OWN67oA.s['63']++;Y.namespace('Plugin').CalendarNavigator=CalendarNavigator;},'@VERSION@',{'requires':['plugin','classnamemanager','datatype-date','node'],'skinnable':true});