From d2ba49d54d50dafd9818a8a54c94bb572843c865 Mon Sep 17 00:00:00 2001 From: Christopher Lassen Date: Mon, 12 Oct 2020 12:24:08 +0200 Subject: [PATCH] Fresh build --- build/jquery.datetimepicker.full.js | 10 +++++----- build/jquery.datetimepicker.full.min.js | 2 +- build/jquery.datetimepicker.min.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/jquery.datetimepicker.full.js b/build/jquery.datetimepicker.full.js index 96f86e5..86cf7fe 100644 --- a/build/jquery.datetimepicker.full.js +++ b/build/jquery.datetimepicker.full.js @@ -1319,8 +1319,8 @@ var datetimepickerFactory = function ($) { input .off('blur.xdsoft') .on('blur.xdsoft', function () { - if (options.allowBlank && (!$.trim($(this).val()).length || - (typeof options.mask === "string" && $.trim($(this).val()) === options.mask.replace(/[0-9]/g, '_')))) { + if (options.allowBlank && (!$(this).val().trim().length || + (typeof options.mask === "string" && $(this).val().trim() === options.mask.replace(/[0-9]/g, '_')))) { $(this).val(null); datetimepicker.data('xdsoft_datetime').empty(); } else { @@ -2454,7 +2454,7 @@ var datetimepickerFactory = function ($) { if (isValidValue(options.mask, val)) { this.value = val; setCaretPos(this, pos); - } else if ($.trim(val) === '') { + } else if (val.trim() === '') { this.value = options.mask.replace(/[0-9]/g, '_'); } else { input.trigger('error_input.xdsoft'); @@ -2534,7 +2534,7 @@ var datetimepickerFactory = function ($) { val = valueBeforeCursor + insertChar + valueAfterNextChar } - if ($.trim(val) === '') { + if (val.trim() === '') { // if empty, set to default val = defaultBlank } else { @@ -2555,7 +2555,7 @@ var datetimepickerFactory = function ($) { if (isValidValue(options.mask, val)) { this.value = val; setCaretPos(this, pos); - } else if ($.trim(val) === '') { + } else if (val.trim() === '') { this.value = options.mask.replace(/[0-9]/g, '_'); } else { input.trigger('error_input.xdsoft'); diff --git a/build/jquery.datetimepicker.full.min.js b/build/jquery.datetimepicker.full.min.js index 85768bc..8d2faec 100644 --- a/build/jquery.datetimepicker.full.min.js +++ b/build/jquery.datetimepicker.full.min.js @@ -1 +1 @@ -!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.DateFormatter=t()}("undefined"!=typeof self?self:this,function(){var g={DAY:864e5,HOUR:3600,defaults:{dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(e){var t=e%10,a={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&a[t]?a[t]:"th"}},separators:/[ \-+\/.:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g},getInt:function(e,t){return parseInt(e,t||10)},compare:function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},lpad:function(e,t,a){e=e.toString();return a=a||"0",e.length'),u=N('
'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&N(y.ownerDocument.body).addClass("xdsoft_noselect"),N([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){N([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),N(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1'),e=N(''),m=N('
'),_=N('
'),C=N('
'),o=N('
'),l=o.find(".xdsoft_time_box").eq(0),P=N('
'),i=N(''),A=N('
'),Y=N('
'),s=!1,d=0;I.id&&W.attr("id",I.id),I.style&&W.attr("style",I.style),I.weeks&&W.addClass("xdsoft_showweeks"),I.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+I.theme),W.addClass(I.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(Y),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,n=N(this).find(".xdsoft_select").eq(0),r=0,o=0,i=n.is(":visible");for(_.find(".xdsoft_select").hide(),O.currentTime&&(r=O.currentTime[N(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[i?"hide":"show"](),t=n.find("div.xdsoft_option"),a=0;aI.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return I.startDate?t=O.strToDate(I.startDate):(t=I.value||(w&&w.val&&w.val()?w.val():""))?(t=O.strToDateTime(t),I.yearOffset&&(t=new Date(t.getFullYear()-I.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):I.defaultDate&&(t=O.strToDateTime(I.defaultDate),I.defaultTime&&(e=O.strtotime(I.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&O.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&w.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,w.val())||(w.val(c.mask.replace(/[0-9]/g,"_")),h(w[0],0)),w.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,n=this.selectionStart,a=a.substr(0,n)+t+a.substr(n+t.length);return n+=t.length,m(c.mask,a)?(this.value=a,h(this,n)):""===N.trim(a)?this.value=c.mask.replace(/[0-9]/g,"_"):w.trigger("error_input.xdsoft"),e.preventDefault(),!1}),w.on("keydown.xdsoft",function(e){var t,a,n,r=this.value,o=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=o&&o<=57||96<=o&&o<=105||8===o||46===o){for(t=8===o||46===o?"_":String.fromCharCode(96<=o&&o<=105?o-48:o),8===o&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i",I.weeks&&(u+=""),e=0;e<7;e+=1)u+=""+I.i18n[E].dayOfWeekShort[(e+I.dayOfWeekStart)%7]+"";for(u+="",u+="",!1!==I.maxDate&&(m=O.strToDate(I.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==I.minDate&&(h=O.strToDate(I.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==I.minDateTime&&(g=O.strToDate(I.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==I.maxDateTime&&(p=O.strToDate(I.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f"+r+"")),u+='
'+a+"
",l.getDay()===I.dayOfWeekStartPrev&&(u+="",D=!0),l.setDate(a+1)}u+="",C.html(u),_.find(".xdsoft_label span").eq(0).text(I.i18n[E].months[O.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+I.yearOffset),T=v="";var b=0;!1!==I.minTime&&(b=60*(x=O.strtotime(I.minTime)).getHours()+x.getMinutes());var x,T,S=1440;if(!1!==I.maxTime&&(S=60*(x=O.strtotime(I.maxTime)).getHours()+x.getMinutes()),!1!==I.minDateTime&&(x=O.strToDateTime(I.minDateTime),L.formatDate(O.currentTime,I.formatDate)===L.formatDate(x,I.formatDate)&&(T=60*x.getHours()+x.getMinutes(),b'+L.formatDate(a,I.formatTime)+""},I.allowTimes&&Array.isArray(I.allowTimes)&&I.allowTimes.length)for(f=0;f'+(f+I.yearOffset)+"";for(Y.children().eq(0).html(F),f=parseInt(I.monthStart,10),F="";f<=parseInt(I.monthEnd,10);f+=1)F+='
'+I.i18n[E].months[f]+"
";A.children().eq(0).html(F),N(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;I.timepicker&&(P.find(".xdsoft_current").length?a=".xdsoft_current":P.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=P[0].offsetHeight)-e<(a=P.find(a).index()*I.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),n=0,C.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),n+=1;var t=N(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),w.val(O.str()),I.onSelectDate&&"function"==typeof I.onSelectDate&&I.onSelectDate.call(W,O.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1l+f?(o="bottom",i=l+f-n.top):i-=f):i+W[0].offsetHeight>l+f&&(i=n.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),n=W[0],c(n,function(e){if("relative"===I.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:I.insideParent?r.offsetLeft:s,top:"",bottom:""},I.insideParent?d[o]=r.offsetTop+r.offsetHeight:d[o]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;I.onShow&&"function"==typeof I.onShow&&(t=I.onShow.call(W,O.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),N(I.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),I.closeOnWithoutClick&&N([I.ownerDocument.body,I.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),N([I.ownerDocument.body,I.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),I.onClose&&"function"==typeof I.onClose&&(t=I.onClose.call(W,O.currentTime,W.data("input"),e)),!1===t||I.opened||I.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",w),d=0,W.data("xdsoft_datetime",O),W.setOptions(I),O.setCurrentTime(f()),w.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){w.is(":disabled")||w.data("xdsoft_datetimepicker").is(":visible")&&I.closeOnInputClick||I.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){w.is(":disabled")||(s=!0,O.setCurrentTime(f(),!0),I.mask&&h(I),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&I.enterLikeTab?(e=N("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[x].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),N(I.contentWindow).off("resize.xdsoft"),N([I.contentWindow,I.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return N(I.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=N(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof F)switch(F){case"show":N(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(N(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,I.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[F]&&"function"==typeof e[F]&&(n=e[F](a))}else e.setOptions(F);return 0}"string"!=typeof F&&(!I.lazyInit||I.open||I.inline?o(N(this)):(t=N(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||o(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),n},N.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(l){var f,c,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(l.event.fixHooks)for(var a=e.length;a;)l.event.fixHooks[e[--a]]=l.event.mouseHooks;var h=l.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,!1);else this.onmousewheel=n;l.data(this,"mousewheel-line-height",h.getLineHeight(this)),l.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=l(e),e=t["offsetParent"in l.fn?"offsetParent":"parent"]();return e.length||(e=l("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return l(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,a=e||window.event,n=m.call(arguments,1),r=0,o=0,i=0,s=0,d=0,u=0;if((e=l.event.fix(a)).type="mousewheel","detail"in a&&(i=-1*a.detail),"wheelDelta"in a&&(i=a.wheelDelta),"wheelDeltaY"in a&&(i=a.wheelDeltaY),"wheelDeltaX"in a&&(o=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(o=-1*i,i=0),r=0===i?o:i,"deltaY"in a&&(r=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(r=-1*o)),0!==i||0!==o)return 1===a.deltaMode?(r*=t=l.data(this,"mousewheel-line-height"),i*=t,o*=t):2===a.deltaMode&&(r*=t=l.data(this,"mousewheel-page-height"),i*=t,o*=t),s=Math.max(Math.abs(i),Math.abs(o)),(!c||s'),u=N('
'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&N(y.ownerDocument.body).addClass("xdsoft_noselect"),N([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){N([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),N(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1'),e=N(''),m=N('
'),_=N('
'),C=N('
'),o=N('
'),l=o.find(".xdsoft_time_box").eq(0),P=N('
'),i=N(''),A=N('
'),Y=N('
'),s=!1,d=0;I.id&&W.attr("id",I.id),I.style&&W.attr("style",I.style),I.weeks&&W.addClass("xdsoft_showweeks"),I.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+I.theme),W.addClass(I.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(Y),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,n=N(this).find(".xdsoft_select").eq(0),r=0,o=0,i=n.is(":visible");for(_.find(".xdsoft_select").hide(),O.currentTime&&(r=O.currentTime[N(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n[i?"hide":"show"](),t=n.find("div.xdsoft_option"),a=0;aI.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return I.startDate?t=O.strToDate(I.startDate):(t=I.value||(w&&w.val&&w.val()?w.val():""))?(t=O.strToDateTime(t),I.yearOffset&&(t=new Date(t.getFullYear()-I.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):I.defaultDate&&(t=O.strToDateTime(I.defaultDate),I.defaultTime&&(e=O.strtotime(I.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&O.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&w.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,w.val())||(w.val(c.mask.replace(/[0-9]/g,"_")),h(w[0],0)),w.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,n=this.selectionStart,a=a.substr(0,n)+t+a.substr(n+t.length);return n+=t.length,m(c.mask,a)?(this.value=a,h(this,n)):""===a.trim()?this.value=c.mask.replace(/[0-9]/g,"_"):w.trigger("error_input.xdsoft"),e.preventDefault(),!1}),w.on("keydown.xdsoft",function(e){var t,a,n,r=this.value,o=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=o&&o<=57||96<=o&&o<=105||8===o||46===o){for(t=8===o||46===o?"_":String.fromCharCode(96<=o&&o<=105?o-48:o),8===o&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i",I.weeks&&(u+=""),e=0;e<7;e+=1)u+=""+I.i18n[E].dayOfWeekShort[(e+I.dayOfWeekStart)%7]+"";for(u+="",u+="",!1!==I.maxDate&&(m=O.strToDate(I.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==I.minDate&&(h=O.strToDate(I.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==I.minDateTime&&(g=O.strToDate(I.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==I.maxDateTime&&(p=O.strToDate(I.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f"+r+"")),u+='
'+a+"
",l.getDay()===I.dayOfWeekStartPrev&&(u+="",D=!0),l.setDate(a+1)}u+="",C.html(u),_.find(".xdsoft_label span").eq(0).text(I.i18n[E].months[O.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(O.currentTime.getFullYear()+I.yearOffset),T=v="";var b=0;!1!==I.minTime&&(b=60*(x=O.strtotime(I.minTime)).getHours()+x.getMinutes());var x,T,S=1440;if(!1!==I.maxTime&&(S=60*(x=O.strtotime(I.maxTime)).getHours()+x.getMinutes()),!1!==I.minDateTime&&(x=O.strToDateTime(I.minDateTime),L.formatDate(O.currentTime,I.formatDate)===L.formatDate(x,I.formatDate)&&(T=60*x.getHours()+x.getMinutes(),b'+L.formatDate(a,I.formatTime)+""},I.allowTimes&&Array.isArray(I.allowTimes)&&I.allowTimes.length)for(f=0;f'+(f+I.yearOffset)+"";for(Y.children().eq(0).html(F),f=parseInt(I.monthStart,10),F="";f<=parseInt(I.monthEnd,10);f+=1)F+='
'+I.i18n[E].months[f]+"
";A.children().eq(0).html(F),N(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;I.timepicker&&(P.find(".xdsoft_current").length?a=".xdsoft_current":P.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=P[0].offsetHeight)-e<(a=P.find(a).index()*I.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),n=0,C.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),n+=1;var t=N(this),a=O.currentTime;if(null==a&&(O.currentTime=O.now(),a=O.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),w.val(O.str()),I.onSelectDate&&"function"==typeof I.onSelectDate&&I.onSelectDate.call(W,O.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1l+f?(o="bottom",i=l+f-n.top):i-=f):i+W[0].offsetHeight>l+f&&(i=n.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),n=W[0],c(n,function(e){if("relative"===I.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:I.insideParent?r.offsetLeft:s,top:"",bottom:""},I.insideParent?d[o]=r.offsetTop+r.offsetHeight:d[o]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;I.onShow&&"function"==typeof I.onShow&&(t=I.onShow.call(W,O.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),N(I.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),I.closeOnWithoutClick&&N([I.ownerDocument.body,I.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),N([I.ownerDocument.body,I.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),I.onClose&&"function"==typeof I.onClose&&(t=I.onClose.call(W,O.currentTime,W.data("input"),e)),!1===t||I.opened||I.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",w),d=0,W.data("xdsoft_datetime",O),W.setOptions(I),O.setCurrentTime(f()),w.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){w.is(":disabled")||w.data("xdsoft_datetimepicker").is(":visible")&&I.closeOnInputClick||I.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){w.is(":disabled")||(s=!0,O.setCurrentTime(f(),!0),I.mask&&h(I),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&I.enterLikeTab?(e=N("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[x].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),N(I.contentWindow).off("resize.xdsoft"),N([I.contentWindow,I.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return N(I.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=N(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof F)switch(F){case"show":N(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(N(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,I.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[F]&&"function"==typeof e[F]&&(n=e[F](a))}else e.setOptions(F);return 0}"string"!=typeof F&&(!I.lazyInit||I.open||I.inline?o(N(this)):(t=N(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||o(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),n},N.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(l){var f,c,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(l.event.fixHooks)for(var a=e.length;a;)l.event.fixHooks[e[--a]]=l.event.mouseHooks;var h=l.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],n,!1);else this.onmousewheel=n;l.data(this,"mousewheel-line-height",h.getLineHeight(this)),l.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],n,!1);else this.onmousewheel=null;l.removeData(this,"mousewheel-line-height"),l.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=l(e),e=t["offsetParent"in l.fn?"offsetParent":"parent"]();return e.length||(e=l("body")),parseInt(e.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return l(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function n(e){var t,a=e||window.event,n=m.call(arguments,1),r=0,o=0,i=0,s=0,d=0,u=0;if((e=l.event.fix(a)).type="mousewheel","detail"in a&&(i=-1*a.detail),"wheelDelta"in a&&(i=a.wheelDelta),"wheelDeltaY"in a&&(i=a.wheelDeltaY),"wheelDeltaX"in a&&(o=-1*a.wheelDeltaX),"axis"in a&&a.axis===a.HORIZONTAL_AXIS&&(o=-1*i,i=0),r=0===i?o:i,"deltaY"in a&&(r=i=-1*a.deltaY),"deltaX"in a&&(o=a.deltaX,0===i&&(r=-1*o)),0!==i||0!==o)return 1===a.deltaMode?(r*=t=l.data(this,"mousewheel-line-height"),i*=t,o*=t):2===a.deltaMode&&(r*=t=l.data(this,"mousewheel-page-height"),i*=t,o*=t),s=Math.max(Math.abs(i),Math.abs(o)),(!c||s'),u=I('
'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&I(y.ownerDocument.body).addClass("xdsoft_noselect"),I([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){I([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),I(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1'),e=I(''),m=I('
'),_=I('
'),F=I('
'),n=I('
'),l=n.find(".xdsoft_time_box").eq(0),C=I('
'),i=I(''),A=I('
'),P=I('
'),s=!1,d=0;N.id&&W.attr("id",N.id),N.style&&W.attr("style",N.style),N.weeks&&W.addClass("xdsoft_showweeks"),N.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+N.theme),W.addClass(N.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(P),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,o=I(this).find(".xdsoft_select").eq(0),r=0,n=0,i=o.is(":visible");for(_.find(".xdsoft_select").hide(),w.currentTime&&(r=w.currentTime[I(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[i?"hide":"show"](),t=o.find("div.xdsoft_option"),a=0;aN.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return N.startDate?t=w.strToDate(N.startDate):(t=N.value||(M&&M.val&&M.val()?M.val():""))?(t=w.strToDateTime(t),N.yearOffset&&(t=new Date(t.getFullYear()-N.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):N.defaultDate&&(t=w.strToDateTime(N.defaultDate),N.defaultTime&&(e=w.strtotime(N.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&w.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&M.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,M.val())||(M.val(c.mask.replace(/[0-9]/g,"_")),h(M[0],0)),M.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,o=this.selectionStart,a=a.substr(0,o)+t+a.substr(o+t.length);return o+=t.length,m(c.mask,a)?(this.value=a,h(this,o)):""===I.trim(a)?this.value=c.mask.replace(/[0-9]/g,"_"):M.trigger("error_input.xdsoft"),e.preventDefault(),!1}),M.on("keydown.xdsoft",function(e){var t,a,o,r=this.value,n=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=n&&n<=57||96<=n&&n<=105||8===n||46===n){for(t=8===n||46===n?"_":String.fromCharCode(96<=n&&n<=105?n-48:n),8===n&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i",N.weeks&&(u+=""),e=0;e<7;e+=1)u+=""+N.i18n[E].dayOfWeekShort[(e+N.dayOfWeekStart)%7]+"";for(u+="",u+="",!1!==N.maxDate&&(m=w.strToDate(N.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==N.minDate&&(h=w.strToDate(N.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==N.minDateTime&&(g=w.strToDate(N.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==N.maxDateTime&&(p=w.strToDate(N.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f"+r+"")),u+='
'+a+"
",l.getDay()===N.dayOfWeekStartPrev&&(u+="",D=!0),l.setDate(a+1)}u+="",F.html(u),_.find(".xdsoft_label span").eq(0).text(N.i18n[E].months[w.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(w.currentTime.getFullYear()+N.yearOffset),T=k="";var b=0;!1!==N.minTime&&(b=60*(v=w.strtotime(N.minTime)).getHours()+v.getMinutes());var v,T,S=1440;if(!1!==N.maxTime&&(S=60*(v=w.strtotime(N.maxTime)).getHours()+v.getMinutes()),!1!==N.minDateTime&&(v=w.strToDateTime(N.minDateTime),L.formatDate(w.currentTime,N.formatDate)===L.formatDate(v,N.formatDate)&&(T=60*v.getHours()+v.getMinutes(),b'+L.formatDate(a,N.formatTime)+""},N.allowTimes&&Array.isArray(N.allowTimes)&&N.allowTimes.length)for(f=0;f'+(f+N.yearOffset)+"";for(P.children().eq(0).html(Y),f=parseInt(N.monthStart,10),Y="";f<=parseInt(N.monthEnd,10);f+=1)Y+='
'+N.i18n[E].months[f]+"
";A.children().eq(0).html(Y),I(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;N.timepicker&&(C.find(".xdsoft_current").length?a=".xdsoft_current":C.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=C[0].offsetHeight)-e<(a=C.find(a).index()*N.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),o=0,F.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),o+=1;var t=I(this),a=w.currentTime;if(null==a&&(w.currentTime=w.now(),a=w.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),M.val(w.str()),N.onSelectDate&&"function"==typeof N.onSelectDate&&N.onSelectDate.call(W,w.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1l+f?(n="bottom",i=l+f-o.top):i-=f):i+W[0].offsetHeight>l+f&&(i=o.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),o=W[0],c(o,function(e){if("relative"===N.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:N.insideParent?r.offsetLeft:s,top:"",bottom:""},N.insideParent?d[n]=r.offsetTop+r.offsetHeight:d[n]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;N.onShow&&"function"==typeof N.onShow&&(t=N.onShow.call(W,w.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),I(N.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),N.closeOnWithoutClick&&I([N.ownerDocument.body,N.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),I([N.ownerDocument.body,N.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),N.onClose&&"function"==typeof N.onClose&&(t=N.onClose.call(W,w.currentTime,W.data("input"),e)),!1===t||N.opened||N.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",M),d=0,W.data("xdsoft_datetime",w),W.setOptions(N),w.setCurrentTime(f()),M.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){M.is(":disabled")||M.data("xdsoft_datetimepicker").is(":visible")&&N.closeOnInputClick||N.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){M.is(":disabled")||(s=!0,w.setCurrentTime(f(),!0),N.mask&&h(N),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&N.enterLikeTab?(e=I("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[v].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),I(N.contentWindow).off("resize.xdsoft"),I([N.contentWindow,N.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return I(N.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=I(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof Y)switch(Y){case"show":I(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(I(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,N.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[Y]&&"function"==typeof e[Y]&&(o=e[Y](a))}else e.setOptions(Y);return 0}"string"!=typeof Y&&(!N.lazyInit||N.open||N.inline?n(I(this)):(t=I(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||n(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),o},I.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory); \ No newline at end of file +var datetimepickerFactory=function(I){"use strict";function t(){var e={days:(e=s.i18n[E]).dayOfWeek,daysShort:e.dayOfWeekShort,months:e.months,monthsShort:I.map(e.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(L=a=new DateFormatter({dateSettings:I.extend({},o,e)}))}var s={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},kk:{months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],dayOfWeekShort:["Жк","Дс","Сс","Ср","Бс","Жм","Сб"],dayOfWeek:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},L=null,a=null,E="en",o={meridiem:["AM","PM"]},r={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(i(t))return a.parseDate(e,t);t=moment(e,t);return!!t.isValid()&&t.toDate()},formatDate:function(e,t){return i(t)?a.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};I.datetimepicker={setLocale:function(e){e=s.i18n[e]?e:"en";E!==e&&(E=e,t())},setDateFormatter:function(e){var t;L="string"==typeof e&&r.hasOwnProperty(e)?(t=r[e],I.extend(s,t.default_options),t.formatter):e}};var n={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},i=function(e){return-1!==Object.values(n).indexOf(e)};function V(e,t,a){this.date=e,this.desc=t,this.style=a}I.extend(I.datetimepicker,n),t(),window.getComputedStyle||(window.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(e){var t=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(e,t,a){return a.toUpperCase()})),a.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){for(var a=t||0,o=this.length;a'),u=I('
'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&I(y.ownerDocument.body).addClass("xdsoft_noselect"),I([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){I([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),I(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1'),e=I(''),m=I('
'),_=I('
'),F=I('
'),n=I('
'),l=n.find(".xdsoft_time_box").eq(0),C=I('
'),i=I(''),A=I('
'),P=I('
'),s=!1,d=0;N.id&&W.attr("id",N.id),N.style&&W.attr("style",N.style),N.weeks&&W.addClass("xdsoft_showweeks"),N.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+N.theme),W.addClass(N.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(P),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,o=I(this).find(".xdsoft_select").eq(0),r=0,n=0,i=o.is(":visible");for(_.find(".xdsoft_select").hide(),w.currentTime&&(r=w.currentTime[I(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[i?"hide":"show"](),t=o.find("div.xdsoft_option"),a=0;aN.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return N.startDate?t=w.strToDate(N.startDate):(t=N.value||(M&&M.val&&M.val()?M.val():""))?(t=w.strToDateTime(t),N.yearOffset&&(t=new Date(t.getFullYear()-N.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):N.defaultDate&&(t=w.strToDateTime(N.defaultDate),N.defaultTime&&(e=w.strtotime(N.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&w.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&M.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"==typeof c.mask&&(m(c.mask,M.val())||(M.val(c.mask.replace(/[0-9]/g,"_")),h(M[0],0)),M.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,o=this.selectionStart,a=a.substr(0,o)+t+a.substr(o+t.length);return o+=t.length,m(c.mask,a)?(this.value=a,h(this,o)):""===a.trim()?this.value=c.mask.replace(/[0-9]/g,"_"):M.trigger("error_input.xdsoft"),e.preventDefault(),!1}),M.on("keydown.xdsoft",function(e){var t,a,o,r=this.value,n=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=n&&n<=57||96<=n&&n<=105||8===n||46===n){for(t=8===n||46===n?"_":String.fromCharCode(96<=n&&n<=105?n-48:n),8===n&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i",N.weeks&&(u+=""),e=0;e<7;e+=1)u+=""+N.i18n[E].dayOfWeekShort[(e+N.dayOfWeekStart)%7]+"";for(u+="",u+="",!1!==N.maxDate&&(m=w.strToDate(N.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==N.minDate&&(h=w.strToDate(N.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==N.minDateTime&&(g=w.strToDate(N.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==N.maxDateTime&&(p=w.strToDate(N.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f"+r+"")),u+='
'+a+"
",l.getDay()===N.dayOfWeekStartPrev&&(u+="",D=!0),l.setDate(a+1)}u+="",F.html(u),_.find(".xdsoft_label span").eq(0).text(N.i18n[E].months[w.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(w.currentTime.getFullYear()+N.yearOffset),T=k="";var b=0;!1!==N.minTime&&(b=60*(v=w.strtotime(N.minTime)).getHours()+v.getMinutes());var v,T,S=1440;if(!1!==N.maxTime&&(S=60*(v=w.strtotime(N.maxTime)).getHours()+v.getMinutes()),!1!==N.minDateTime&&(v=w.strToDateTime(N.minDateTime),L.formatDate(w.currentTime,N.formatDate)===L.formatDate(v,N.formatDate)&&(T=60*v.getHours()+v.getMinutes(),b'+L.formatDate(a,N.formatTime)+""},N.allowTimes&&Array.isArray(N.allowTimes)&&N.allowTimes.length)for(f=0;f'+(f+N.yearOffset)+"";for(P.children().eq(0).html(Y),f=parseInt(N.monthStart,10),Y="";f<=parseInt(N.monthEnd,10);f+=1)Y+='
'+N.i18n[E].months[f]+"
";A.children().eq(0).html(Y),I(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;N.timepicker&&(C.find(".xdsoft_current").length?a=".xdsoft_current":C.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=C[0].offsetHeight)-e<(a=C.find(a).index()*N.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),o=0,F.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),o+=1;var t=I(this),a=w.currentTime;if(null==a&&(w.currentTime=w.now(),a=w.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),M.val(w.str()),N.onSelectDate&&"function"==typeof N.onSelectDate&&N.onSelectDate.call(W,w.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1l+f?(n="bottom",i=l+f-o.top):i-=f):i+W[0].offsetHeight>l+f&&(i=o.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),o=W[0],c(o,function(e){if("relative"===N.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:N.insideParent?r.offsetLeft:s,top:"",bottom:""},N.insideParent?d[n]=r.offsetTop+r.offsetHeight:d[n]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;N.onShow&&"function"==typeof N.onShow&&(t=N.onShow.call(W,w.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),I(N.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),N.closeOnWithoutClick&&I([N.ownerDocument.body,N.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),I([N.ownerDocument.body,N.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),N.onClose&&"function"==typeof N.onClose&&(t=N.onClose.call(W,w.currentTime,W.data("input"),e)),!1===t||N.opened||N.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",M),d=0,W.data("xdsoft_datetime",w),W.setOptions(N),w.setCurrentTime(f()),M.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){M.is(":disabled")||M.data("xdsoft_datetimepicker").is(":visible")&&N.closeOnInputClick||N.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){M.is(":disabled")||(s=!0,w.setCurrentTime(f(),!0),N.mask&&h(N),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&N.enterLikeTab?(e=I("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[v].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),I(N.contentWindow).off("resize.xdsoft"),I([N.contentWindow,N.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return I(N.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=I(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof Y)switch(Y){case"show":I(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(I(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,N.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[Y]&&"function"==typeof e[Y]&&(o=e[Y](a))}else e.setOptions(Y);return 0}"string"!=typeof Y&&(!N.lazyInit||N.open||N.inline?n(I(this)):(t=I(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||n(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),o},I.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory); \ No newline at end of file