text: YUI.add("aui-datepicker",function(e,t){function d(){}var n=e.Lang,r=function(e,t,n){return Math.min(Math.max(e,t),n)},i="activeInput",s="autoHide",o="calendar",u="date",a="dateClick",f="multiple",l="panes",c="selectionChange",h="selectionMode",p="trigger";d.PANES=[e.CalendarBase.ONE_PANE_TEMPLATE,e.CalendarBase.TWO_PANE_TEMPLATE,e.CalendarBase.THREE_PANE_TEMPLATE],d.ATTRS={calendar:{setter:"_setCalendar",value:{},writeOnce:!0},autoHide:{validator:n.isBoolean,value:!0},panes:{setter:"_setPanes",value:1,validator:n.isNumber,writeOnce:!0}},e.mix(d.prototype,{calendar:null,initializer:function(){var e=this;e.after(c,e._afterDatePickerSelectionChange)},clearSelection:function(e){var t=this;t.getCalendar()._clearSelection(e)},deselectDates:function(e){var t=this;t.getCalendar().deselectDates(e)},getCalendar:function(){var t=this,n=t.calendar,r;return n||(r=e.CalendarBase.CONTENT_TEMPLATE,e.CalendarBase.CONTENT_TEMPLATE=d.PANES[t.get(l)-1],t.getPopover(),n=new e.Calendar(t.get(o)),n.render(t.popover.bodyNode),t.calendar=n,n.after(c,t._afterCalendarSelectionChange,t),n.after(a,t._afterCalendarDateClick,t),e.CalendarBase.CONTENT_TEMPLATE=r),n},selectDates:function(e){var t=this;t.getCalendar().selectDates(e)},useInputNode:function(e){var t=this,n=t.getPopover();n.set(p,e),t.set(i,e),t.alignTo(e),t.clearSelection(!0),t.selectDates(t.getParsedDatesFromInputValue())},_afterCalendarDateClick:function(){var e=this,t=e.getCalendar(),n=t.get(h);e.get(s)&&n!==f&&e.hide()},_afterCalendarSelectionChange:function(e){var t=this;t.fire(c,{newSelection:e.newSelection})},_afterDatePickerSelectionChange:function(){var e=this;e._setCalendarToFirstSelectedDate()},_setCalendarToFirstSelectedDate:function(){var e=this,t=e.getSelectedDates(),n=t[0];n&&e.getCalendar().set(u,n)},_onceUserInteractionRelease:function(e){var t=this;t.useInputNodeOnce(e.currentTarget),t.alignTo(e.currentTarget),t._userInteractionInProgress=!1},_setCalendar:function(t){return e.merge({showNextMonth:!0,showPrevMonth:!0},t)},_setPanes:function(e){return r(e,1,3)}},!0),e.DatePickerBase=d,e.DatePicker=e.Base.create("datepicker",e.Base,[e.DatePickerDelegate,e.DatePickerPopover,e.DatePickerBase])},"2.0.0",{requires:["calendar","base","base-build","aui-datepicker-delegate","aui-datepicker-popover"],skinnable:!0});
  