PageSourceSearch

https://leafclothing.co.uk/includes/datepick/i18n/DateTimePicker-i18n.js

js leafclothing.co.uk collected 2026-10-09 01:45:31 UTC 48,521 bytes, 2 lines download raw bytes

1$.DateTimePicker=$.DateTimePicker||{name:"DateTimePicker",i18n:{},defaults:{mode:"date",defaultDate:null,dateSeparator:"-",timeSeparator:":",timeMeridiemSeparator:" ",dateTimeSeparator:" ",monthYearSeparator:" ",dateTimeFormat:"dd-MM-yyyy HH:mm",dateFormat:"dd-MM-yyyy",timeFormat:"HH:mm",maxDate:null,minDate:null,maxTime:null,minTime:null,maxDateTime:null,minDateTime:null,shortDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],fullDayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fullMonthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],labels:null,minuteInterval:1,roundOffMinutes:!0,secondsInterval:1,roundOffSeconds:!0,titleContentDate:"Set Date",titleContentTime:"Set Time",titleContentDateTime:"Set Date & Time",buttonsToDisplay:["HeaderCloseButton","SetButton","ClearButton"],setButtonContent:"Set",clearButtonContent:"Clear",incrementButtonContent:"+",decrementButtonContent:"-",setValueInTextboxOnEveryClick:!1,animationDuration:400,isPopup:!0,parentElement:"body",language:"",init:null,addEventHandlers:null,beforeShow:null,afterShow:null,beforeHide:null,afterHide:null,buttonClicked:null,settingValueOfElement:null,formatHumanDate:null,parseDateTimeString:null,formatDateTimeString:null},dataObject:{dCurrentDate:new Date,iCurrentDay:0,iCurrentMonth:0,iCurrentYear:0,iCurrentHour:0,iCurrentMinutes:0,iCurrentSeconds:0,sCurrentMeridiem:"",iMaxNumberOfDays:0,sDateFormat:"",sTimeFormat:"",sDateTimeFormat:"",dMinValue:null,dMaxValue:null,sArrInputDateFormats:[],sArrInputTimeFormats:[],sArrInputDateTimeFormats:[],bArrMatchFormat:[],bDateMode:!1,bTimeMode:!1,bDateTimeMode:!1,oInputElement:null,iTabIndex:0,bElemFocused:!1,bIs12Hour:!1}},$.cf={_isValid:function(t){return void 0!==t&&null!==t&&""!==t},_compare:function(t,e){var a=void 0!==t&&null!==t,r=void 0!==e&&null!==e;return a&&r&&t.toLowerCase()===e.toLowerCase()?!0:!1}},function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function e(e,a){this.element=e;var r="";r=t.cf._isValid(a)&&t.cf._isValid(a.language)?a.language:t.DateTimePicker.defaults.language,this.settings=t.extend({},t.DateTimePicker.defaults,t.DateTimePicker.i18n[r],a),this.options=a,this.oData=t.extend({},t.DateTimePicker.dataObject),this._defaults=t.DateTimePicker.defaults,this._name=t.DateTimePicker.name,this.init()}t.fn.DateTimePicker=function(a){var r,n,o=t(this).data(),i=o?Object.keys(o):[];if("string"!=typeof a)return this.each(function(){t.removeData(this,"plugin_DateTimePicker"),t.data(this,"plugin_DateTimePicker")||t.data(this,"plugin_DateTimePicker",new e(this,a))});if(t.cf._isValid(o))if("destroy"===a)if(i.length>0){for(r in i)if(n=i[r],-1!==n.search("plugin_DateTimePicker")){t(document).unbind("click.DateTimePicker"),t(document).unbind("keydown.DateTimePicker"),t(document).unbind("keyup.DateTimePicker"),t(this).children().remove(),t(this).removeData(),t(this).unbind(),t(this).removeClass("dtpicker-overlay dtpicker-mobile"),o=o[n],console.log("Destroyed DateTimePicker Object"),console.log(o);break}}else console.log("No DateTimePicker Object Defined For This Element");else if("object"===a)if(i.length>0){for(r in i)if(n=i[r],-1!==n.search("plugin_DateTimePicker"))return o[n]}else console.log("No DateTimePicker Object Defined For This Element")},e.prototype={init:function(){var e=this;e._setDateFormatArray(),e._setTimeFormatArray(),e._setDateTimeFormatArray(),e.settings.isPopup&&(e._createPicker(),t(e.element).addClass("dtpicker-mobile")),e.settings.init&&e.settings.init.call(e),e._addEventHandlersForInput()},_setDateFormatArray:function(){var t=this;t.oData.sArrInputDateFormats=[];var e="";e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",t.oData.sArrInputDateFormats.push(e),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MMM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e),e="MMMM"+t.settings.monthYearSeparator+"yyyy",t.oData.sArrInputDateFormats.push(e)},_setTimeFormatArray:function(){var t=this;t.oData.sArrInputTimeFormats=[];var e="";e="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",t.oData.sArrInputTimeFormats.push(e),e="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",t.oData.sArrInputTimeFormats.push(e),e="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",t.oData.sArrInputTimeFormats.push(e),e="HH"+t.settings.timeSeparator+"mm",t.oData.sArrInputTimeFormats.push(e)},_setDateTimeFormatArray:function(){var t=this;t.oData.sArrInputDateTimeFormats=[];var e="",a="",r="";e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="HH"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeSeparator+"ss"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="MM"+t.settings.dateSeparator+"dd"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="HH"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="yyyy"+t.settings.dateSeparator+"MM"+t.settings.dateSeparator+"dd",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r),e="dd"+t.settings.dateSeparator+"MMM"+t.settings.dateSeparator+"yyyy",a="hh"+t.settings.timeSeparator+"mm"+t.settings.timeMeridiemSeparator+"AA",r=e+t.settings.dateTimeSeparator+a,t.oData.sArrInputDateTimeFormats.push(r)},_matchFormat:function(e,a){var r=this;r.oData.bArrMatchFormat=[],r.oData.bDateMode=!1,r.oData.bTimeMode=!1,r.oData.bDateTimeMode=!1;var n,o=[];for(e=t.cf._isValid(e)?e:r.settings.mode,t.cf._compare(e,"date")?(a=t.cf._isValid(a)?a:r.oData.sDateFormat,r.oData.bDateMode=!0,o=r.oData.sArrInputDateFormats):t.cf._compare(e,"time")?(a=t.cf._isValid(a)?a:r.oData.sTimeFormat,r.oData.bTimeMode=!0,o=r.oData.sArrInputTimeFormats):t.cf._compare(e,"datetime")&&(a=t.cf._isValid(a)?a:r.oData.sDateTimeFormat,r.oData.bDateTimeMode=!0,o=r.oData.sArrInputDateTimeFormats),n=0;n<o.length;n++)r.oData.bArrMatchFormat.push(t.cf._compare(a,o[n]))},_setMatchFormat:function(t,e,a){var r=this;t>0&&r._matchFormat(e,a)},_createPicker:function(){var e=this;t(e.element).addClass("dtpicker-overlay"),t(".dtpicker-overlay").click(function(t){e._hidePicker("")});var a="";a+="<div class='dtpicker-bg'>",a+="<div class='dtpicker-cont'>",a+="<div class='dtpicker-content'>",a+="<div class='dtpicker-subcontent'>",a+="</div>",a+="</div>",a+="</div>",a+="</div>",t(e.element).html(a)},_addEventHandlersForInput:function(){var e=this;e.oData.oInputElement=null,t(e.settings.parentElement).find("input[type='date'], input[type='time'], input[type='datetime']").each(function(){t(this).attr("data-field",t(this).attr("type")),t(this).attr("type","text")});var a="[data-field='date'], [data-field='time'], [data-field='datetime']";t(e.settings.parentElement).off("focus",a,e._inputFieldFocus),t(e.settings.parentElement).on("focus",a,{obj:e}
1,e._inputFieldFocus),t(e.settings.parentElement).off("click",a,e._inputFieldClick),t(e.settings.parentElement).on("click",a,{obj:e},e._inputFieldClick),e.settings.addEventHandlers&&e.settings.addEventHandlers.call(e)},_inputFieldFocus:function(t){var e=t.data.obj;e.showDateTimePicker(this),e.oData.bMouseDown=!1},_inputFieldClick:function(e){var a=e.data.obj;t.cf._compare(t(this).prop("tagName"),"input")||a.showDateTimePicker(this),e.stopPropagation()},getDateObjectForInputField:function(e){var a=this;if(t.cf._isValid(e)){var r,n=a._getValueOfElement(e),o=t(e).data("field"),i="";return t.cf._isValid(o)||(o=a.settings.mode),a.settings.formatDateTimeString?r=a.settings.parseDateTimeString.call(a,n,o,t(e)):(i=t(e).data("format"),t.cf._isValid(i)||(t.cf._compare(o,"date")?i=a.settings.dateFormat:t.cf._compare(o,"time")?i=a.settings.timeFormat:t.cf._compare(o,"datetime")&&(i=a.settings.dateTimeFormat)),a._matchFormat(o,i),t.cf._compare(o,"date")?r=a._parseDate(n):t.cf._compare(o,"time")?r=a._parseTime(n):t.cf._compare(o,"datetime")&&(r=a._parseDateTime(n))),r}},setDateTimeStringInInputField:function(e,a){var r=this;a=a||r.oData.dCurrentDate;var n;t.cf._isValid(e)?(n=[],"string"==typeof e?n.push(e):"object"==typeof e&&(n=e)):n=t.cf._isValid(r.settings.parentElement)?t(r.settings.parentElement).find("[data-field='date'], [data-field='time'], [data-field='datetime']"):t("[data-field='date'], [data-field='time'], [data-field='datetime']"),n.each(function(){var e,n,o,i,s=this;e=t(s).data("field"),t.cf._isValid(e)||(e=r.settings.mode),n="Custom",o=!1,r.settings.formatDateTimeString||(n=t(s).data("format"),t.cf._isValid(n)||(t.cf._compare(e,"date")?n=r.settings.dateFormat:t.cf._compare(e,"time")?n=r.settings.timeFormat:t.cf._compare(e,"datetime")&&(n=r.settings.dateTimeFormat)),o=r.getIs12Hour(e,n)),i=r._setOutput(e,n,o,a,s),r._setValueOfElement(i,t(s))})},getDateTimeStringInFormat:function(t,e,a){var r=this;return r._setOutput(t,e,r.getIs12Hour(t,e),a)},showDateTimePicker:function(t){var e=this;null!==e.oData.oInputElement?e._hidePicker(0,t):e._showPicker(t)},_setButtonAction:function(t){var e=this;null!==e.oData.oInputElement&&(e._setValueOfElement(e._setOutput()),t?(e.settings.buttonClicked&&e.settings.buttonClicked.call(e,"TAB",e.oData.oInputElement),e._hidePicker(0)):e._hidePicker(""))},_setOutput:function(e,a,r,n,o){var i=this;n=t.cf._isValid(n)?n:i.oData.dCurrentDate,r=r||i.oData.bIs12Hour;var s,m=i._setVariablesForDate(n,!0,!0),u="",d=i._formatDate(m),c=i._formatTime(m),D=t.extend({},d,c),l="",p="",M=Function.length;return i.settings.formatDateTimeString?u=i.settings.formatDateTimeString.call(i,D,e,o):(i._setMatchFormat(M,e,a),i.oData.bDateMode?i.oData.bArrMatchFormat[0]?u=D.dd+i.settings.dateSeparator+D.MM+i.settings.dateSeparator+D.yyyy:i.oData.bArrMatchFormat[1]?u=D.MM+i.settings.dateSeparator+D.dd+i.settings.dateSeparator+D.yyyy:i.oData.bArrMatchFormat[2]?u=D.yyyy+i.settings.dateSeparator+D.MM+i.settings.dateSeparator+D.dd:i.oData.bArrMatchFormat[3]?u=D.dd+i.settings.dateSeparator+D.monthShort+i.settings.dateSeparator+D.yyyy:i.oData.bArrMatchFormat[4]?u=D.MM+i.settings.monthYearSeparator+D.yyyy:i.oData.bArrMatchFormat[5]?u=D.monthShort+i.settings.monthYearSeparator+D.yyyy:i.oData.bArrMatchFormat[6]&&(u=D.month+i.settings.monthYearSeparator+D.yyyy):i.oData.bTimeMode?i.oData.bArrMatchFormat[0]?u=D.hh+i.settings.timeSeparator+D.mm+i.settings.timeSeparator+D.ss+i.settings.timeMeridiemSeparator+D.ME:i.oData.bArrMatchFormat[1]?u=D.HH+i.settings.timeSeparator+D.mm+i.settings.timeSeparator+D.ss:i.oData.bArrMatchFormat[2]?u=D.hh+i.settings.timeSeparator+D.mm+i.settings.timeMeridiemSeparator+D.ME:i.oData.bArrMatchFormat[3]&&(u=D.HH+i.settings.timeSeparator+D.mm):i.oData.bDateTimeMode&&(i.oData.bArrMatchFormat[0]||i.oData.bArrMatchFormat[1]||i.oData.bArrMatchFormat[8]||i.oData.bArrMatchFormat[9]?l=D.dd+i.settings.dateSeparator+D.MM+i.settings.dateSeparator+D.yyyy:i.oData.bArrMatchFormat[2]||i.oData.bArrMatchFormat[3]||i.oData.bArrMatchFormat[10]||i.oData.bArrMatchFormat[11]?l=D.MM+i.settings.dateSeparator+D.dd+i.settings.dateSeparator+D.yyyy:i.oData.bArrMatchFormat[4]||i.oData.bArrMatchFormat[5]||i.oData.bArrMatchFormat[12]||i.oData.bArrMatchFormat[13]?l=D.yyyy+i.settings.dateSeparator+D.MM+i.settings.dateSeparator+D.dd:(i.oData.bArrMatchFormat[6]||i.oData.bArrMatchFormat[7]||i.oData.bArrMatchFormat[14]||i.oData.bArrMatchFormat[15])&&(l=D.dd+i.settings.dateSeparator+D.monthShort+i.settings.dateSeparator+D.yyyy),s=i.oData.bArrMatchFormat[0]||i.oData.bArrMatchFormat[1]||i.oData.bArrMatchFormat[2]||i.oData.bArrMatchFormat[3]||i.oData.bArrMatchFormat[4]||i.oData.bArrMatchFormat[5]||i.oData.bArrMatchFormat[6]||i.oData.bArrMatchFormat[7],p=r?s?D.hh+i.settings.timeSeparator+D.mm+i.settings.timeSeparator+D.ss+i.settings.timeMeridiemSeparator+D.ME:D.hh+i.settings.timeSeparator+D.mm+i.settings.timeMeridiemSeparator+D.ME:s?D.HH+i.settings.timeSeparator+D.mm+i.settings.timeSeparator+D.ss:D.HH+i.settings.timeSeparator+D.mm,""!==l&&""!==p&&(u=l+i.settings.dateTimeSeparator+p)),i._setMatchFormat(M)),u},_clearButtonAction:function(){var t=this;null!==t.oData.oInputElement&&t._setValueOfElement(""),t._hidePicker("")},_setOutputOnIncrementOrDecrement:function(){var e=this;t.cf._isValid(e.oData.oInputElement)&&e.settings.setValueInTextboxOnEveryClick&&e._setValueOfElement(e._setOutput())},_showPicker:function(e){var a=this;if(null===a.oData.oInputElement){a.oData.oInputElement=e,a.oData.iTabIndex=parseInt(t(e).attr("tabIndex"));var r=t(e).data("field")||"",n=t(e).data("min")||"",o=t(e).data("max")||"",i=t(e).data("format")||"",s=t(e).data("view")||"",m=t(e).data("startend")||"",u=t(e).data("startendelem")||"",d=a._getValueOfElement(e)||"";if(""!==s&&(t.cf._compare(s,"Popup")?a.setIsPopup(!0):a.setIsPopup(!1)),!a.settings.isPopup){a._createPicker();
1var c=t(a.oData.oInputElement).offset().top+t(a.oData.oInputElement).outerHeight(),D=t(a.oData.oInputElement).offset().left,l=t(a.oData.oInputElement).outerWidth();t(a.element).css({position:"absolute",top:c,left:D,width:l,height:"auto"})}a.settings.beforeShow&&a.settings.beforeShow.call(a,e),r=t.cf._isValid(r)?r:a.settings.mode,a.settings.mode=r,t.cf._isValid(i)||(t.cf._compare(r,"date")?i=a.settings.dateFormat:t.cf._compare(r,"time")?i=a.settings.timeFormat:t.cf._compare(r,"datetime")&&(i=a.settings.dateTimeFormat)),a._matchFormat(r,i),a.oData.dMinValue=null,a.oData.dMaxValue=null,a.oData.bIs12Hour=!1;var p,M,h,g,f,C,y,b;a.oData.bDateMode?(p=n||a.settings.minDate,M=o||a.settings.maxDate,a.oData.sDateFormat=i,t.cf._isValid(p)&&(a.oData.dMinValue=a._parseDate(p)),t.cf._isValid(M)&&(a.oData.dMaxValue=a._parseDate(M)),""!==m&&(t.cf._compare(m,"start")||t.cf._compare(m,"end"))&&""!==u&&t(u).length>=1&&(h=a._getValueOfElement(t(u)),""!==h&&(g=a.settings.parseDateTimeString?a.settings.parseDateTimeString.call(a,h,r,t(u)):a._parseDate(h),t.cf._compare(m,"start")?t.cf._isValid(M)?a._compareDates(g,a.oData.dMaxValue)<0&&(a.oData.dMaxValue=new Date(g)):a.oData.dMaxValue=new Date(g):t.cf._compare(m,"end")&&(t.cf._isValid(p)?a._compareDates(g,a.oData.dMinValue)>0&&(a.oData.dMinValue=new Date(g)):a.oData.dMinValue=new Date(g)))),a.settings.parseDateTimeString?a.oData.dCurrentDate=a.settings.parseDateTimeString.call(a,d,r,t(e)):a.oData.dCurrentDate=a._parseDate(d),a.oData.dCurrentDate.setHours(0),a.oData.dCurrentDate.setMinutes(0),a.oData.dCurrentDate.setSeconds(0)):a.oData.bTimeMode?(p=n||a.settings.minTime,M=o||a.settings.maxTime,a.oData.sTimeFormat=i,a.oData.bIs12Hour=a.getIs12Hour(),t.cf._isValid(p)&&
1(a.oData.dMinValue=a._parseTime(p)),t.cf._isValid(M)&&(a.oData.dMaxValue=a._parseTime(M)),""!==m&&(t.cf._compare(m,"start")||t.cf._compare(m,"end"))&&""!==u&&t(u).length>=1&&(f=a._getValueOfElement(t(u)),""!==f&&(a.settings.parseDateTimeString?g=a.settings.parseDateTimeString.call(a,f,r,t(u)):C=a._parseTime(f),t.cf._compare(m,"start")?(C.setMinutes(C.getMinutes()-1),t.cf._isValid(M)?2===a._compareTime(C,a.oData.dMaxValue)&&(a.oData.dMaxValue=new Date(C)):a.oData.dMaxValue=new Date(C)):t.cf._compare(m,"end")&&(C.setMinutes(C.getMinutes()+1),t.cf._isValid(p)?3===a._compareTime(C,a.oData.dMinValue)&&(a.oData.dMinValue=new Date(C)):a.oData.dMinValue=new Date(C)))),a.settings.parseDateTimeString?a.oData.dCurrentDate=a.settings.parseDateTimeString.call(a,d,r,t(e)):a.oData.dCurrentDate=a._parseTime(d)):a.oData.bDateTimeMode&&(p=n||a.settings.minDateTime,M=o||a.settings.maxDateTime,a.oData.sDateTimeFormat=i,a.oData.bIs12Hour=a.getIs12Hour(),t.cf._isValid(p)&&(a.oData.dMinValue=a._parseDateTime(p)),t.cf._isValid(M)&&(a.oData.dMaxValue=a._parseDateTime(M)),""!==m&&(t.cf._compare(m,"start")||t.cf._compare(m,"end"))&&""!==u&&t(u).length>=1&&(y=a._getValueOfElement(t(u)),""!==y&&(b=a.settings.parseDateTimeString?a.settings.parseDateTimeString.call(a,y,r,t(u)):a._parseDateTime(y),t.cf._compare(m,"start")?t.cf._isValid(M)?a._compareDateTime(b,a.oData.dMaxValue)<0&&(a.oData.dMaxValue=new Date(b)):a.oData.dMaxValue=new Date(b):t.cf._compare(m,"end")&&(t.cf._isValid(p)?a._compareDateTime(b,a.oData.dMinValue)>0&&(a.oData.dMinValue=new Date(b)):a.oData.dMinValue=new Date(b)))),a.settings.parseDateTimeString?a.oData.dCurrentDate=a.settings.parseDateTimeString.call(a,d,r,t(e)):a.oData.dCurrentDate=a._parseDateTime(d)),a._setVariablesForDate(),a._modifyPicker(),t(a.element).fadeIn(a.settings.animationDuration),a.settings.afterShow&&setTimeout(function(){a.settings.afterShow.call(a,e)},a.settings.animationDuration)}},_hidePicker:function(e,a){var r=this,n=r.oData.oInputElement;r.settings.beforeHide&&r.settings.beforeHide.call(r,n),t.cf._isValid(e)||(e=r.settings.animationDuration),t.cf._isValid(r.oData.oInputElement)&&(t(r.oData.oInputElement).blur(),r.oData.oInputElement=null),t(r.element).fadeOut(e),0===e?t(r.element).find(".dtpicker-subcontent").html(""):setTimeout(function(){t(r.element).find(".dtpicker-subcontent").html("")},e),t(document).unbind("click.DateTimePicker"),t(document).unbind("keydown.DateTimePicker"),t(document).unbind("keyup.DateTimePicker"),r.settings.afterHide&&(0===e?r.settings.afterHide.call(r,n):setTimeout(function(){r.settings.afterHide.call(r,n)},e)),t.cf._isValid(a)&&r._showPicker(a)},_modifyPicker:function(){var e,a,r=this,n=[];r.oData.bDateMode?(e=r.settings.titleContentDate,a=3,r.oData.bArrMatchFormat[0]?n=["day","month","year"]:r.oData.bArrMatchFormat[1]?n=["month","day","year"]:r.oData.bArrMatchFormat[2]?n=["year","month","day"]:r.oData.bArrMatchFormat[3]?n=["day","month","year"]:r.oData.bArrMatchFormat[4]?(a=2,n=["month","year"]):r.oData.bArrMatchFormat[5]?(a=2,n=["month","year"]):r.oData.bArrMatchFormat[6]&&(a=2,n=["month","year"])):r.oData.bTimeMode?(e=r.settings.titleContentTime,r.oData.bArrMatchFormat[0]?(a=4,n=["hour","minutes","seconds","meridiem"]):r.oData.bArrMatchFormat[1]?(a=3,n=["hour","minutes","seconds"]):r.oData.bArrMatchFormat[2]?(a=3,n=["hour","minutes","meridiem"]):r.oData.bArrMatchFormat[3]&&(a=2,n=["hour","minutes"])):r.oData.bDateTimeMode&&(e=r.settings.titleContentDateTime,r.oData.bArrMatchFormat[0]?(a=6,n=["day","month","year","hour","minutes","seconds"]):r.oData.bArrMatchFormat[1]?(a=7,n=["day","month","year","hour","minutes","seconds","meridiem"]):r.oData.bArrMatchFormat[2]?(a=6,n=["month","day","year","hour","minutes","seconds"]):r.oData.bArrMatchFormat[3]?(a=7,n=["month","day","year","hour","minutes","seconds","meridiem"]):r.oData.bArrMatchFormat[4]?(a=6,n=["year","month","day","hour","minutes","seconds"]):r.oData.bArrMatchFormat[5]?(a=7,n=["year","month","day","hour","minutes","seconds","meridiem"]):r.oData.bArrMatchFormat[6]?(a=6,n=["day","month","year","hour","minutes","seconds"]):r.oData.bArrMatchFormat[7]?(a=7,n=["day","month","year","hour","minutes","seconds","meri
1diem"]):r.oData.bArrMatchFormat[8]?(a=5,n=["day","month","year","hour","minutes"]):r.oData.bArrMatchFormat[9]?(a=6,n=["day","month","year","hour","minutes","meridiem"]):r.oData.bArrMatchFormat[10]?(a=5,n=["month","day","year","hour","minutes"]):r.oData.bArrMatchFormat[11]?(a=6,n=["month","day","year","hour","minutes","meridiem"]):r.oData.bArrMatchFormat[12]?(a=5,n=["year","month","day","hour","minutes"]):r.oData.bArrMatchFormat[13]?(a=6,n=["year","month","day","hour","minutes","meridiem"]):r.oData.bArrMatchFormat[14]?(a=5,n=["day","month","year","hour","minutes"]):r.oData.bArrMatchFormat[15]&&(a=6,n=["day","month","year","hour","minutes","meridiem"]));var o,i="dtpicker-comp"+a,s=!1,m=!1,u=!1;for(o=0;o<r.settings.buttonsToDisplay.length;o++)t.cf._compare(r.settings.buttonsToDisplay[o],"HeaderCloseButton")?s=!0:t.cf._compare(r.settings.buttonsToDisplay[o],"SetButton")?m=!0:t.cf._compare(r.settings.buttonsToDisplay[o],"ClearButton")&&(u=!0);var d="";d+="<div class='dtpicker-header'>",d+="<div class='dtpicker-title'>"+e+"</div>",s&&(d+="<a class='dtpicker-close'>&times;</a>"),d+="<div class='dtpicker-value'></div>",d+="</div>";var c="";for(c+="<div class='dtpicker-components'>",o=0;a>o;o++){var D=n[o];c+="<div class='dtpicker-compOutline "+i+"'>",c+="<div class='dtpicker-comp "+D+"'>",c+="<a class='dtpicker-compButton increment'>"+r.settings.incrementButtonContent+"</a>",c+="<input type='text' class='dtpicker-compValue'></input>",c+="<a class='dtpicker-compButton decrement'>"+r.settings.decrementButtonContent+"</a>",r.settings.labels&&(c+="<div class='dtpicker-label'>"+r.settings.labels[D]+"</div>"),c+="</div>",c+="</div>"}c+="</div>";var l="";l=m&&u?" dtpicker-twoButtons":" dtpicker-singleButton";var p="";p+="<div class='dtpicker-buttonCont"+l+"'>",m&&(p+="<a class='dtpicker-button dtpicker-buttonSet'>"+r.settings.setButtonContent+"</a>"),u&&(p+="<a class='dtpicker-button dtpicker-buttonClear'>"+r.settings.clearButtonContent+"</a>"),p+="</div>";var M=d+c+p;t(r.element).find(".dtpicker-subcontent").html(M),r._setCurrentDate(),r._addEventHandlersForPicker()},_addEventHandlersForPicker:function(){var e=this;t(document).on("click.DateTimePicker",function(t){e._hidePicker("")}),t(document).on("keydown.DateTimePicker",function(a){return t(".dtpicker-compValue").is(":focus")||9!==parseInt(a.keyCode?a.keyCode:a.which)?void 0:(e._setButtonAction(!0),t("[tabIndex="+(e.oData.iTabIndex+1)+"]").focus(),!1)}),t(document).on("keydown.DateTimePicker",function(a){t(".dtpicker-compValue").is(":focus")||9===parseInt(a.keyCode?a.keyCode:a.which)||e._hidePicker("")}),t(".dtpicker-cont *").click(function(t){t.stopPropagation()}),t(".dtpicker-compValue").not(".month .dtpicker-compValue, .meri
1diem .dtpicker-compValue").keyup(function(){this.value=this.value.replace(/[^0-9\.]/g,"")}),t(".dtpicker-compValue").focus(function(){e.oData.bElemFocused=!0,t(this).select()}),t(".dtpicker-compValue").blur(function(){e._getValuesFromInputBoxes(),e._setCurrentDate(),e.oData.bElemFocused=!1;var a=t(this).parent().parent();setTimeout(function(){a.is(":last-child")&&!e.oData.bElemFocused&&e._setButtonAction(!1)},50)}),t(".dtpicker-compValue").keyup(function(e){var a,r=t(this),n=r.val(),o=n.length;r.parent().hasClass("day")||r.parent().hasClass("hour")||r.parent().hasClass("minutes")||r.parent().hasClass("meridiem")?o>2&&(a=n.slice(0,2),r.val(a)):r.parent().hasClass("month")?o>3&&(a=n.slice(0,3),r.val(a)):r.parent().hasClass("year")&&o>4&&(a=n.slice(0,4),r.val(a)),9===parseInt(e.keyCode?e.keyCode:e.which)&&t(this).select()}),t(e.element).find(".dtpicker-close").click(function(t){e.settings.buttonClicked&&e.settings.buttonClicked.call(e,"CLOSE",e.oData.oInputElement),e._hidePicker("")}),t(e.element).find(".dtpicker-buttonSet").click(function(t){e.settings.buttonClicked&&e.settings.buttonClicked.call(e,"SET",e.oData.oInputElement),e._setButtonAction(!1)}),t(e.element).find(".dtpicker-buttonClear").click(function(t){e.settings.buttonClicked&&e.settings.buttonClicked.call(e,"CLEAR",e.oData.oInputElement),e._clearButtonAction()}),t(e.element).find(".day .increment, .day .increment *").click(function(t){e.oData.iCurrentDay++,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".day .decrement, .day .decrement *").click(function(t){e.oData.iCurrentDay--,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".month .increment, .month .increment *").click(function(t){e.oData.iCurrentMonth++,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".month .decrement, .month .decrement *").click(function(t){e.oData.iCurrentMonth--,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".year .increment, .year .increment *").click(function(t){e.oData.iCurrentYear++,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".year .decrement, .year .decrement *").click(function(t){e.oData.iCurrentYear--,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".hour .increment, .hour .increment *").click(function(t){e.oData.iCurrentHour++,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".hour .decrement, .hour .decrement *").click(function(t){e.oData.iCurrentHour--,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".minutes .increment, .minutes .increment *").click(function(t){e.oData.iCurrentMinutes+=e.settings.minuteInterval,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".minutes .decrement, .minutes .decrement *").click(function(t){e.oData.iCurrentMinutes-=e.settings.minuteInterval,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".seconds .increment, .seconds .increment *").click(function(t){e.oData.iCurrentSeconds+=e.settings.secondsInterval,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".seconds .decrement, .seconds .decrement *").click(function(t){e.oData.iCurrentSeconds-=e.settings.secondsInterval,e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()}),t(e.element).find(".meridiem .dtpicker-compButton, .meridiem .dtpicker-compButton *").click(function(a){t.cf._compare(e.oData.sCurrentMeridiem,"AM")?(e.oData.sCurrentMeridiem="PM",e.oData.iCurrentHour+=12):t.cf._compare(e.oData.sCurrentMeridiem,"PM")&&(e.oData.sCurrentMeridiem="AM",e.oData.iCurrentHour-=12),e._setCurrentDate(),e._setOutputOnIncrementOrDecrement()})},_adjustMinutes:function(t){var e=this;return e.settings.roundOffMinutes&&1!==e.settings.minuteInterval&&(t=t%e.settings.minuteInterval?t-t%e.settings.minuteInterval+e.settings.minuteInterval:t),t},_adjustSeconds:function(t){var e=this;return e.settings.roundOffSeconds&&1!==e.settings.secondsInterval&&(t=t%e.settings.secondsInterval?t-t%e.settings.secondsInterval+e.settings.secondsInterval:t),t},_getValueOfElement:function(e){var a="";return a=t.cf._compare(t(e).prop("tagName"),"INPUT")?t(e).val():t(e).html()},_setValueOfElement:function(e,a){var r=this;t.cf._isValid(a)||(a=t(r.oData.oInputElement)),t.cf._compare(a.prop("tagName"),"INPUT")?a.val(e):a.html(e);var n=r.getDateObjectForInputField(a);return r.settings.settingValueOfElement&&r.settings.settingValueOfElement.call(r,e,n,a),a.change(),e},_parseDate:function(e){var a=this,r=a.settings.defaultDate?new Date(a.settings.defaultDate):new Date,n=r.getDate(),o=r.getMonth(),i=r.getFullYear();if(t.cf._isValid(e)){var s;s=a.oData.bArrMatchFormat[4]||a.oData.bArrMatchFormat[5]||a.oData.bArrMatchFormat[6]?e.split(a.settings.monthYearSeparator):e.split(a.settings.dateSeparator),a.oData.bArrMatchFormat[0]?(n=parseInt(s[0]),o=parseInt(s[1]-1),i=parseInt(s[2])):a.oData.bArrMatchFormat[1]?(o=parseInt(s[0]-1),n=parseInt(s[1]),i=parseInt(s[2])):a.oData.bArrMatchFormat[2]?(i=parseInt(s[0]),o=parseInt(s[1]-1),n=parseInt(s[2])):a.oData.bArrMatchFormat[3]?(n=parseInt(s[0]),o=a._getShortMonthIndex(s[1]),i=parseInt(s[2])):a.oData.bArrMatchFormat[4]?(n=1,o=parseInt(s[0])-1,i=parseInt(s[1])):a.oData.bArrMatchFormat[5]?(n=1,o=a._getShortMonthIndex(s[0]),i=parseInt(s[1])):a.oData.bArrMatchFormat[6]&&(n=1,o=a._getFullMonthIndex(s[0]),i=parseInt(s[1]))}return r=new Date(i,o,n,0,0,0,0)},_parseTime:function(e){var a,r,n,o=this,i=o.settings.defaultDate?new Date(o.settings.defaultDate):new Date,s=i.getDate(),m=i.getMonth(),u=i.getFullYear(),d=i.getHours(),c=i.getMinutes(),D=i.getSeconds(),l=o.oData.bArrMatchFormat[0]||o.oData.bArrMatchFormat[1];
1return D=l?o._adjustSeconds(D):0,t.cf._isValid(e)&&(o.oData.bIs12Hour&&(a=e.split(o.settings.timeMeridiemSeparator),e=a[0],r=a[1],t.cf._compare(r,"AM")||t.cf._compare(r,"PM")||(r="")),n=e.split(o.settings.timeSeparator),d=parseInt(n[0]),c=parseInt(n[1]),l&&(D=parseInt(n[2]),D=o._adjustSeconds(D)),12===d&&t.cf._compare(r,"AM")?d=0:12>d&&t.cf._compare(r,"PM")&&(d+=12)),c=o._adjustMinutes(c),i=new Date(u,m,s,d,c,D,0)},_parseDateTime:function(e){var a,r,n,o,i,s=this,m=s.settings.defaultDate?new Date(s.settings.defaultDate):new Date,u=m.getDate(),d=m.getMonth(),c=m.getFullYear(),D=m.getHours(),l=m.getMinutes(),p=m.getSeconds(),M="",h=s.oData.bArrMatchFormat[0]||s.oData.bArrMatchFormat[1]||s.oData.bArrMatchFormat[2]||s.oData.bArrMatchFormat[3]||s.oData.bArrMatchFormat[4]||s.oData.bArrMatchFormat[5]||s.oData.bArrMatchFormat[6]||s.oData.bArrMatchFormat[7];return p=h?s._adjustSeconds(p):0,t.cf._isValid(e)&&(a=e.split(s.settings.dateTimeSeparator),r=a[0].split(s.settings.dateSeparator),s.oData.bArrMatchFormat[0]||s.oData.bArrMatchFormat[1]||s.oData.bArrMatchFormat[8]||s.oData.bArrMatchFormat[9]?(u=parseInt(r[0]),d=parseInt(r[1]-1),c=parseInt(r[2])):s.oData.bArrMatchFormat[2]||s.oData.bArrMatchFormat[3]||s.oData.bArrMatchFormat[10]||s.oData.bArrMatchFormat[11]?(d=parseInt(r[0]-1),u=parseInt(r[1]),c=parseInt(r[2])):s.oData.bArrMatchFormat[4]||s.oData.bArrMatchFormat[5]||s.oData.bArrMatchFormat[12]||s.oData.bArrMatchFormat[13]?(c=parseInt(r[0]),d=parseInt(r[1]-1),u=parseInt(r[2])):(s.oData.bArrMatchFormat[6]||s.oData.bArrMatchFormat[7]||s.oData.bArrMatchFormat[14]||s.oData.bArrMatchFormat[15])&&(u=parseInt(r[0]),d=s._getShortMonthIndex(r[1]),c=parseInt(r[2])),
2n=a[1],t.cf._isValid(n)&&(s.oData.bIs12Hour&&(t.cf._compare(s.settings.dateTimeSeparator,s.settings.timeMeridiemSeparator)&&3===a.length?M=a[2]:(o=n.split(s.settings.timeMeridiemSeparator),n=o[0],M=o[1]),t.cf._compare(M,"AM")||t.cf._compare(M,"PM")||(M="")),i=n.split(s.settings.timeSeparator),D=parseInt(i[0]),l=parseInt(i[1]),h&&(p=parseInt(i[2])),12===D&&t.cf._compare(M,"AM")?D=0:12>D&&t.cf._compare(M,"PM")&&(D+=12))),l=s._adjustMinutes(l),m=new Date(c,d,u,D,l,p,0)},_getShortMonthIndex:function(e){for(var a=this,r=0;r<a.settings.shortMonthNames.length;r++)if(t.cf._compare(e,a.settings.shortMonthNames[r]))return r},_getFullMonthIndex:function(e){for(var a=this,r=0;r<a.settings.fullMonthNames.length;r++)if(t.cf._compare(e,a.settings.fullMonthNames[r]))return r},getIs12Hour:function(t,e){var a=this,r=!1,n=Function.length;return a._setMatchFormat(n,t,e),a.oData.bTimeMode?r=a.oData.bArrMatchFormat[0]||a.oData.bArrMatchFormat[2]:a.oData.bDateTimeMode&&(r=a.oData.bArrMatchFormat[1]||a.oData.bArrMatchFormat[3]||a.oData.bArrMatchFormat[5]||a.oData.bArrMatchFormat[7]||a.oData.bArrMatchFormat[9]||a.oData.bArrMatchFormat[11]||a.oData.bArrMatchFormat[13]||a.oData.bArrMatchFormat[15]),a._setMatchFormat(n),r},_setVariablesForDate:function(e,a,r){var n,o=this,i={},s=t.cf._isValid(e);return s?(n=new Date(e),t.cf._isValid(a)||(a=!0),t.cf._isValid(r)||(r=!0)):(n="[object Date]"===Object.prototype.toString.call(o.oData.dCurrentDate)&&isFinite(o.oData.dCurrentDate)?new Date(o.oData.dCurrentDate):new Date,t.cf._isValid(a)||(a=o.oData.bTimeMode||o.oData.bDateTimeMode),t.cf._isValid(r)||(r=o.oData.bIs12Hour)),i.iCurrentDay=n.getDate(),i.iCurrentMonth=n.getMonth(),i.iCurrentYear=n.getFullYear(),i.iCurrentWeekday=n.getDay(),a&&(i.iCurrentHour=n.getHours(),i.iCurrentMinutes=n.getMinutes(),i.iCurrentSeconds=n.getSeconds(),r&&(i.sCurrentMeridiem=o._determineMeridiemFromHourAndMinutes(i.iCurrentHour,i.iCurrentMinutes))),s?i:void(o.oData=t.extend(o.oData,i))},_getValuesFromInputBoxes:function(){var e=this;if(e.oData.bDateMode||e.oData.bDateTimeMode){var a,r;a=t(e.element).find(".month .dtpicker-compValue").val(),a.length>1&&(a=a.charAt(0).toUpperCase()+a.slice(1)),r=e.settings.shortMonthNames.indexOf(a),-1!==r?e.oData.iCurrentMonth=parseInt(r):a.match("^[+|-]?[0-9]+$")&&(e.oData.iCurrentMonth=parseInt(a-1)),e.oData.iCurrentDay=parseInt(t(e.element).find(".day .dtpicker-compValue").val())||e.oData.iCurrentDay,e.oData.iCurrentYear=parseInt(t(e.element).find(".year .dtpicker-compValue").val())||e.oData.iCurrentYear}if(e.oData.bTimeMode||e.oData.bDateTimeMode){var n,o,i,s;n=parseInt(t(e.element).find(".hour .dtpicker-compValue").val()),o=e._adjustMinutes(parseInt(t(e.element).find(".minutes .dtpicker-compValue").val())),i=e._adjustMinutes(parseInt(t(e.element).find(".seconds .dtpicker-compValue").val())),e.oData.iCurrentHour=isNaN(n)?e.oData.iCurrentHour:n,e.oData.iCurrentMinutes=isNaN(o)?e.oData.iCurrentMinutes:o,e.oData.iCurrentSeconds=isNaN(i)?e.oData.iCurrentSeconds:i,e.oData.iCurrentSeconds>59&&(e.oData.iCurrentMinutes+=e.oData.iCurrentSeconds/60,e.oData.iCurrentSeconds=e.oData.iCurrentSeconds%60),e.oData.iCurrentMinutes>59&&(e.oData.iCurrentHour+=e.oData.iCurrentMinutes/60,e.oData.iCurrentMinutes=e.oData.iCurrentMinutes%60),e.oData.bIs12Hour?e.oData.iCurrentHour>12&&(e.oData.iCurrentHour=e.oData.iCurrentHour%12):e.oData.iCurrentHour>23&&(e.oData.iCurrentHour=e.oData.iCurrentHour%23),e.oData.bIs12Hour&&(s=t(e.element).find(".meridiem .dtpicker-compValue").val(),(t.cf._compare(s,"AM")||t.cf._compare(s,"PM"))&&(e.oData.sCurrentMeridiem=s),t.cf._compare(e.oData.sCurrentMeridiem,"PM")&&12!==e.oData.iCurrentHour&&e.oData.iCurrentHour<13&&(e.oData.iCurrentHour+=12),t.cf._compare(e.oData.sCurrentMeridiem,"AM")&&12===e.oData.iCurrentHour&&(e.oData.iCurrentHour=0))}},_setCurrentDate:function(){var e=this;(e.oData.bTimeMode||e.oData.bDateTimeMode)&&(e.oData.iCurrentSeconds>59?(e.oData.iCurrentMinutes+=e.oData.iCurrentSeconds/60,e.oData.iCurrentSeconds=e.oData.iCurrentSeconds%60):e.oData.iCurrentSeconds<0&&(e.oData.iCurrentMinutes-=e.settings.minuteInterval,e.oData.iCurrentSeconds+=60),e.oData.iCurrentMinutes=e._adjustMinutes(e.oData.iCurrentMinutes),e.oData.iCurrentSeconds=e._adjustSeconds(e.oData.iCurrentSeconds));var a,r,n,o,i,s,m,u=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),d=!1,c=!1;if(null!==e.oData.dMaxValue&&(d=u.getTime()>e.oData.dMaxValue.getTime()),null!==e.oData.dMinValue&&(c=u.getTime()<e.oData.dMinValue.getTime()),d||c){var D=!1,l=!1;null!==e.oData.dMaxValue&&(D=e.oData.dCurrentDate.getTime()>e.oData.dMaxValue.getTime()),null!==e.oData.dMinValue&&(l=e.oData.dCurrentDate.getTime()<e.oData.dMinValue.getTime()),D||l?(D&&(u=new Date(e.oData.dMaxValue),console.log("Info : Date/Time/DateTime you entered is later than Maximum value, so DateTimePicker is showing Maximum value in Input Field.")),l&&(u=new Date(e.oData.dMinValue),console.log("Info : Date/Time/DateTime you entered is earlier than Minimum value, so DateTimePicker is showing Minimum value in Input Field.")),console.log("Please enter proper Date/Time/DateTime values.")):u=new Date(e.oData.dCurrentDate)}if(e.oData.dCurrentDate=new Date(u),e._setVariablesForDate(),r={},i="",s="",m="",(e.oData.bDateMode||e.oData.bDateTimeMode)&&(e.oData.bDateMode&&(e.oData.bArrMatchFormat[4]||e.oData.bArrMatchFormat[5]||e.oData.bArrMatchFormat[6])&&(e.oData.iCurrentDay=1),n=e._formatDate(),t(e.element).find(".day .dtpicker-compValue").val(n.dd),e.oData.bDateMode?e.oData.bArrMatchFormat[4]?t(e.element).find(".month .dtpicker-compValue").val(n.MM):e.oData.bArrMatchFormat[6]?t(e.element).find(".month .dtpicker-compValue").val(n.month):t(e.element).find(".month .dtpicker-compValue").val(n.monthShort):t(e.element).find(".month .dtpicker-compValue").val(n.monthShort),t(e.element).find(".year .dtpicker-compValue").val(n.yyyy),e.settings.formatHumanDate?r=t.extend(r,n):e.oData.bDateMode&&(e.oData.bArrMatchFormat[4]||e.oData.bArrMatchFormat[5]||e.oData.bArrMatchFormat[6])?e.oData.bArrMatchFormat[4]?
2i=n.MM+e.settings.monthYearSeparator+n.yyyy:e.oData.bArrMatchFormat[5]?i=n.monthShort+e.settings.monthYearSeparator+n.yyyy:e.oData.bArrMatchFormat[6]&&(i=n.month+e.settings.monthYearSeparator+n.yyyy):i=n.dayShort+", "+n.month+" "+n.dd+", "+n.yyyy),e.oData.bTimeMode||e.oData.bDateTimeMode)if(o=e._formatTime(),e.oData.bIs12Hour&&t(e.element).find(".meridiem .dtpicker-compValue").val(e.oData.sCurrentMeridiem),t(e.element).find(".hour .dtpicker-compValue").val(o.hour),t(e.element).find(".minutes .dtpicker-compValue").val(o.mm),t(e.element).find(".seconds .dtpicker-compValue").val(o.ss),e.settings.formatHumanDate)r=t.extend(r,o);else{var p=e.oData.bTimeMode&&(e.oData.bArrMatchFormat[0]||e.oData.bArrMatchFormat[1]),M=e.oData.bDateTimeMode&&(e.oData.bArrMatchFormat[0]||e.oData.bArrMatchFormat[1]||e.oData.bArrMatchFormat[2]||e.oData.bArrMatchFormat[3]||e.oData.bArrMatchFormat[4]||e.oData.bArrMatchFormat[5]||e.oData.bArrMatchFormat[6]||e.oData.bArrMatchFormat[7]);s=p||M?o.hour+e.settings.timeSeparator+o.mm+e.settings.timeSeparator+o.ss:o.hour+e.settings.timeSeparator+o.mm,e.oData.bIs12Hour&&(s+=e.settings.timeMeridiemSeparator+e.oData.sCurrentMeridiem)}e.settings.formatHumanDate?(e.oData.bDateTimeMode?a=e.oData.sDateFormat:e.oData.bDateMode?a=e.oData.sTimeFormat:e.oData.bTimeMode&&(a=e.oData.sDateTimeFormat),m=e.settings.formatHumanDate.call(e,r,e.settings.mode,a)):e.oData.bDateTimeMode?m=i+e.settings.dateTimeSeparator+s:e.oData.bDateMode?m=i:e.oData.bTimeMode&&(m=s),t(e.element).find(".dtpicker-value").html(m),e._setButtons()},_formatDate:function(e){var a,r,n,o,i,s,m,u,d,c=this,D={};return t.cf._isValid(e)?D=t.extend({},e):(D.iCurrentDay=c.oData.iCurrentDay,D.iCurrentMonth=c.oData.iCurrentMonth,D.iCurrentYear=c.oData.iCurrentYear,D.iCurrentWeekday=c.oData.iCurrentWeekday),a=D.iCurrentDay,a=10>a?"0"+a:a,n=D.iCurrentMonth,o=D.iCurrentMonth+1,o=10>o?"0"+o:o,i=c.settings.shortMonthNames[n],s=c.settings.fullMonthNames[n],r=D.iCurrentYear,m=D.iCurrentWeekday,u=c.settings.shortDayNames[m],d=c.settings.fullDayNames[m],{dd:a,MM:o,monthShort:i,month:s,yyyy:r,dayShort:u,day:d}},_formatTime:function(e){var a,r,n,o,i,s,m,u=this,d={};return t.cf._isValid(e)?d=t.extend({},e):(d.iCurrentHour=u.oData.iCurrentHour,d.iCurrentMinutes=u.oData.iCurrentMinutes,d.iCurrentSeconds=u.oData.iCurrentSeconds,d.sCurrentMeridiem=u.oData.sCurrentMeridiem),a=d.iCurrentHour,r=10>a?"0"+a:a,i=r,n=d.iCurrentHour,n>12&&(n-=12),"00"===i&&(n=12),o=10>n?"0"+n:n,u.oData.bIs12Hour&&(i=o),s=d.iCurrentMinutes,s=10>s?"0"+s:s,m=d.iCurrentSeconds,m=10>m?"0"+m:m,{H:a,HH:r,h:n,hh:o,hour:i,m:d.iCurrentMinutes,mm:s,s:d.iCurrentSeconds,ss:m,ME:d.sCurrentMeridiem}},_setButtons:function(){var e=this;t(e.element).find(".dtpicker-compButton").removeClass("dtpicker-compButtonDisable").addClass("dtpicker-compButtonEnable");var a;if(null!==e.oData.dMaxValue&&(e.oData.bTimeMode?((e.oData.iCurrentHour+1>e.oData.dMaxValue.getHours()||e.oData.iCurrentHour+1===e.oData.dMaxValue.getHours()&&e.oData.iCurrentMinutes>e.oData.dMaxValue.getMinutes())&&t(e.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),e.oData.iCurrentHour>=e.oData.dMaxValue.getHours()&&e.oData.iCurrentMinutes+1>e.oData.dMaxValue.getMinutes()&&t(e.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):(a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay+1,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".day .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth+1,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".month .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear+1,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".year .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour+1,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".hour .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes+1,e.oData.iCurrentSeconds,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".minutes .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds+1,0),a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".seconds .increment").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))),null!==e.oData.dMinValue&&(e.oData.bTimeMode?((e.oData.iCurrentHour-1<e.oData.dMinValue.getHours()||e.oData.iCurrentHour-1===e.oData.dMinValue.getHours()&&e.oData.iCurrentMinutes<e.oData.dMinValue.getMinutes())&&t(e.element).find(".hour .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),e.oData.iCurrentHour<=e.oData.dMinValue.getHours()&&e.oData.iCurrentMinutes-1<e.oData.dMinValue.getMinutes()&&t(e.element).find(".minutes .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):(a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay-1,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".day .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth-1,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".month .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear-1,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".year .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour-1,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".hour .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes-1,e.oData.iCurrentSeconds,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".minutes .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,e.oData.iCurrentHour,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds-1,0),a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".seconds .decrement").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable"))),e.oData.bIs12Hour){var r,n;(null!==e.oData.dMaxValue||null!==e.oData.dMinValue)&&(r=e.oData.iCurrentHour,t.cf._compare(e.oData.sCurrentMeridiem,"AM")?r+=12:t.cf._compare(e.oData.sCurrentMeridiem,"PM")&&(r-=12),a=new Date(e.oData.iCurrentYear,e.oData.iCurrentMonth,e.oData.iCurrentDay,r,e.oData.iCurrentMinutes,e.oData.iCurrentSeconds,0),null!==e.oData.dMaxValue&&(e.oData.bTimeMode?(n=e.oData.iCurrentMinutes,(r>e.oData.dMaxValue.getHours()||r===e.oData.dMaxValue.getHours()&&n>e.oData.dMaxValue.getMinutes())&&t(e.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):a.getTime()>e.oData.dMaxValue.getTime()&&t(e.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")),null!==e.oData.dMinValue&&(e.oData.bTimeMode?(n=e.oData.iCurrentMinutes,(r<e.oData.dMinValue.getHours()||r===e.oData.dMinValue.getHours()&&n<e.oData.dMinValue.getMinutes())&&t(e.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")):a.getTime()<e.oData.dMinValue.getTime()&&t(e.element).find(".meridiem .dtpicker-compButton").removeClass("dtpicker-compButtonEnable").addClass("dtpicker-compButtonDisable")))}},setIsPopup:function(e){var a=this;if(a.settings.isPopup=e,"none"!==t(a.element).css("display")&&a._hidePicker(0),a.settings.isPopup)t(a.element).addClass("dtpicker-mobile"),t(a.element).css({position:"fixed",top:0,left:0,width:"100%",height:"100%"});else if(t(a.element).removeClass("dtpicker-mobile"),null!==a.oData.oInputElement){var r=t(a.oData.oInputElement).offset().top+t(
2a.oData.oInputElement).outerHeight(),n=t(a.oData.oInputElement).offset().left,o=t(a.oData.oInputElement).outerWidth();t(a.element).css({position:"absolute",top:r,left:n,width:o,height:"auto"})}},_compareDates:function(t,e){t=new Date(t.getDate(),t.getMonth(),t.getFullYear(),0,0,0,0),t=new Date(t.getDate(),t.getMonth(),t.getFullYear(),0,0,0,0);var a=(t.getTime()-e.getTime())/864e5;return 0===a?a:a/Math.abs(a)},_compareTime:function(t,e){var a=0;return t.getHours()===e.getHours()&&t.getMinutes()===e.getMinutes()?a=1:t.getHours()<e.getHours()?a=2:t.getHours()>e.getHours()?a=3:t.getHours()===e.getHours()&&(t.getMinutes()<e.getMinutes()?a=2:t.getMinutes()>e.getMinutes()&&(a=3)),a},_compareDateTime:function(t,e){var a=(t.getTime()-e.getTime())/6e4;return 0===a?a:a/Math.abs(a)},_determineMeridiemFromHourAndMinutes:function(t,e){return t>12?"PM":12===t&&e>=0?"PM":"AM"},setLanguage:function(e){var a=this;return a.settings=t.extend({},t.DateTimePicker.defaults,t.DateTimePicker.i18n[e],a.options),a._setDateFormatArray(),a._setTimeFormatArray(),a._setDateTimeFormatArray(),a}}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.