js-custom-datepicker
Version:
Сalendar was written on javascript using es6 format and was redone to es5 using webpack and babel tools. There are many classes for easy styling for the desired website design.
2 lines • 19.6 kB
JavaScript
(function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist",t(t.s=4)})([function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);var r={};r.createTag=function(e,t){var a=r.e(e);if(t instanceof Object&&Object.keys(t).length)for(var n in t)a.setAttribute(n,t[n]);return a},r.e=function(e,t){var a=document.createElement(e);return t&&(a.className=t),a},r.remove=function(e){void 0!==e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)},t.default=r},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){var a=e.className.split(" ");a.indexOf(t)<0&&a.push(t),e.className=a.join(" ")},n=function(e,t){var a=e.className.split(" "),r=a.indexOf(t);r>=0&&a.splice(r,1),e.className=a.join(" ")};t.add=function(e,t){e.classList?e.classList.add(t):r(e,t)},t.remove=function(e,t){e.classList?e.classList.remove(t):n(e,t)},t.list=function(e){return e.classList?Array.prototype.slice.apply(e.classList):e.className.split(" ")}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.de={month:{"month.1":"Januar","month.2":"Februar","month.3":"März","month.4":"April","month.5":"Mai","month.6":"Juni","month.7":"Juli","month.8":"August","month.9":"September","month.10":"Oktober","month.11":"November","month.12":"Dezember","month.short.1":"Jan.","month.short.2":"Feb.","month.short.3":"März","month.short.4":"Apr.","month.short.5":"Mai","month.short.6":"Juni","month.short.7":"Juli","month.short.8":"Aug.","month.short.9":"Sep.","month.short.10":"Okt.","month.short.11":"Nov.","month.short.12":"Dez."},dayNames:{short:{1:"Mo",2:"Di",3:"Mi",4:"Do",5:"Fr",6:"Sa",7:"So"}}},t.en={month:{"month.1":"January","month.2":"February","month.3":"March","month.4":"April","month.5":"May","month.6":"June","month.7":"July","month.8":"August","month.9":"September","month.10":"October","month.11":"November","month.12":"December","month.short.1":"Jan.","month.short.2":"Feb.","month.short.3":"März","month.short.4":"Apr.","month.short.5":"Mai","month.short.6":"Juni","month.short.7":"Juli","month.short.8":"Aug.","month.short.9":"Sep.","month.short.10":"Okt.","month.short.11":"Nov.","month.short.12":"Dez."},dayNames:{short:{1:"Mo",2:"Di",3:"Mi",4:"Do",5:"Fr",6:"Sa",7:"So"}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=t.clone=function e(t){if(t){if(t.constructor===Array)return t.map(e);if("object"===(void 0===t?"undefined":r(t))){var a={};for(var n in t)a[n]=e(t[n]);return a}return t}return null};t.extend=function(e,t){var a=n(e);for(var r in t)a[r]=n(t[r]);return a},t.browser={addEventListener:!!window.addEventListener,touch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch}},function(e,t,a){a(5),e.exports=a(12)},function(e,t,a){"use strict";a(6)},function(e,t,a){"use strict";var r,n,o=("function"==typeof Symbol&&Symbol.iterator,a(7));(function(a,o){r=[],void 0!==(n=function(){return a.jsCustomDatepicker=o()}.apply(t,r))&&(e.exports=n)})(window,function(){var e=window;return(e.jQuery||e.Zepto)&&function(){var e=this;$.fn.jsCustomDatepicker=function(t){return e.each(function(){$(e).data("jsCustomDatepicker",new o.jsCustomDatepicker($(e)[0],t||[]))})}}(e.jQuery||e.Zepto),o.jsCustomDatepicker})},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.jsCustomDatepicker=void 0;var n=a(8),o=a(9),i=a(10);a(11);var s=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=a(1),c=r(l),d=a(3),m=r(d);t.jsCustomDatepicker=function(e,t){if(!e)return new TypeError("No element specified");e.readOnly=!0;var a=window,r=a.document,s=m.extend(i.Default,t),l=e.getAttribute("data-options");if(l)try{var d=JSON.parse(l);for(var f in d)s[f]=d[f]}catch(e){console.error(e)}s.isInput="INPUT"===e.tagName,s.element=e,s.getDate=function(e){var t=e.target;y(),p(t.value||t.getAttribute("data-date"))},s.getDateIsoFormat=function(e,t){if("string"!=typeof e)return e;var a=e.match(/(\d+)/g),r=0,n={};return a?(s.dateFormat.replace(/(YYYY|dd|mm)/g,function(e){n[e]=r++}),new Date(a[n.YYYY],a[n.mm]-1,a[n.dd])):t?void 0:new Date};var p=function(t){var i=s.getDateIsoFormat(t||"");i instanceof Object&&"Invalid Date"===i.toString()&&(i=new Date),s.current_day=i.getDate(),s.current_month=i.getMonth()+1,s.current_year=i.getFullYear(),s.minYear&&(s.years={from:s.minYear}),s.maxYear&&(s.to={from:s.maxYear}),s.maxDate&&(s.maxYear=s.getDateIsoFormat(s.maxDate).getFullYear()),s.minDate&&(s.minYear=s.getDateIsoFormat(s.minDate).getFullYear());var l=u.default.createTag("div",{class:"custom-calendar"});if(l.appendChild((0,n.Control)(s)),l.appendChild((0,o.Calendar)(s,{close:v})),s.isInput?r.body.appendChild(l):(c.add(l,"static"),e.appendChild(l)),"function"==typeof jsCustomSelect)for(var d=l.getElementsByClassName("js-custom-select"),f=0;f<d.length;f++)s["select"+d[f].getAttribute("data-type")+"Obj"]=new jsCustomSelect(d[f],s.select);s.isInput&&(g(),m.browser.addEventListener?(m.browser.touch?a.addEventListener("touchsend",h,!1):a.addEventListener("mouseup",h,!1),a.addEventListener("resize",g,!1)):(a.onclick=h.close,a.onresize=g))},h={handleEvent:function(e){switch(e.type){case"mouseup":case"touchsend":var t=e.target;t.classList.contains("dp-wpl-open")||t.closest(".custom-calendar:not(.static)")||v(0,e,!0)}}},g=function(){var e=r.querySelector(".custom-calendar:not(.static)");if(!e||!s.isInput)return!1;var t=r.querySelector(".dp-wpl-open"),n=t.getBoundingClientRect(),o=r.documentElement;o.clientWidth-n.left-s.width>0?e.style.left=n.left+"px":e.style.left=n.right-s.width+"px",e.style.top=(a.pageYOffset||o.scrollTop)-(o.clientTop||0)+n.top+n.height+10+"px",e.style.width=s.width+"px",e.style.position="absolute",e.style.display="block"},v=function(t,n,o){var i=function(){(s.isInput||o)&&(u.default.remove(r.querySelector(".custom-calendar:not(.static)")),c.remove(r.querySelector(".dp-wpl-open"),"dp-wpl-open"),"function"==typeof e.onchange&&e.onchange(),m.browser.addEventListener?(m.browser.touch?a.removeEventListener("touchsend",h,!1):a.removeEventListener("mouseup",h,!1),a.removeEventListener("resize",g,!1)):(a.onclick=null,a.onresize=null)),s.onClose&&s.onClose.call(n,e,s.selectedDate)};t?setTimeout(i,t):i()},y=function(){s.isInput?u.default.remove(r.querySelector(".custom-calendar:not(.static)")):u.default.remove(e.querySelector(".custom-calendar"))};return s.isInput?e.onclick=function(e){var t=e.target;t.classList.contains("dp-wpl-open")||(c.add(t,"dp-wpl-open"),p(t.value))}:p(),{getOptions:function(){return s},setOptions:function(e){for(var t in e)s[t]=e[t]},close:v,kill:y}}},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.Control=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=a(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=a(2),u=r(s),l=a(1),c=r(l);t.Control=function(e){var t=function(t){for(var a=i.default.createTag("select",t),r=1;r<=12;r++){var o={value:new Date(e.current_year,r-1,1,0,0,0,0).format(e.dateFormat)};r===e.current_month&&(o.selected="selected");var s=i.default.createTag("option",o),l="object"===n(u[e.language])?u[e.language]:u.de;s.innerHTML=l.month["month."+r],a.onchange=e.getDate,a.appendChild(s)}return a},a=function(t,a){var r=i.default.createTag("select",t);if(void 0===a||void 0===a.from?a.from=e.current_year-10:e.minYear||(e.minYear=a.from),void 0===a||void 0===a.to?a.to=e.current_year+10:e.maxYear||(e.maxYear=a.to),parseInt(a.from)>parseInt(a.to))return r;for(var n=a.to;n>=a.from;){var o={value:new Date(n,e.current_month-1,1,0,0,0,0).format(e.dateFormat)};n===e.current_year&&(o.selected="selected");var s=i.default.createTag("option",o);s.innerHTML=n,r.onchange=e.getDate,r.appendChild(s),n--}return r},r=i.default.createTag("div",{class:"datepicker-header"});return r.appendChild(function(){var t=i.default.createTag("span",{class:"datepicker-prev text-left","data-date":new Date(e.current_year,e.current_month-2,1,0,0,0,0).format(e.dateFormat)});return e.minYear?new Date(e.current_year,e.current_month-1,0,0,0,0).getFullYear()>=e.minYear?t.onclick=e.getDate:c.add(t,"disabled"):t.onclick=e.getDate,t.innerHTML='<i class="fa fa-caret-left" aria-hidden="true"></i>',t}()),r.appendChild(function(){var r=i.default.createTag("div",{class:"datepicker-title clearfix"}),n=i.default.createTag("div",{class:"datepicker-month"}),o=t({class:"js-custom-select datepicker-select-month","data-type":"MonthsList"});if(n.appendChild(o),r.appendChild(n),e.changeYear){var s=a({class:"js-custom-select datepicker-select-year","data-type":"YearsList"},e.years||{}),u=i.default.createTag("div",{class:"datepicker-year"});u.appendChild(s),r.appendChild(u)}return r}()),r.appendChild(function(){var t=i.default.createTag("span",{class:"datepicker-next text-left","data-date":new Date(e.current_year,e.current_month,1,0,0,0,0).format(e.dateFormat)});return e.maxYear?new Date(e.current_year,e.current_month,1,0,0,0,0).getFullYear()<=e.maxYear?t.onclick=e.getDate:c.add(t,"disabled"):t.onclick=e.getDate,t.innerHTML='<i class="fa fa-caret-right" aria-hidden="true"></i>',t}()),r}},function(e,t,a){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=a(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o),s=a(2),u=r(s),l=a(1),c=r(l),d=a(3);r(d),t.Calendar=function(e,t){function a(t){M++%7||(f=i.default.createTag("tr",{class:"datepicker-days"}));var a=new Date(D.format("YYYY-mm-dd")).adjustDate(t-1),n=a.getDate(),s=a.format(e.dateFormat);F[s]=M;var u={"data-date":s},c=!1;t>0&&t<b&&s===g.value?u.class="current":(t<1||t>b)&&(u.class="disabled",c=!0),T&&!c&&T.getTime()>a.getTime()&&("string"==typeof u.class?u.class+=" disabled":u.class="disabled",c=!0),S&&!c&&S.getTime()<a.getTime()&&("string"==typeof u.class?u.class+=" disabled":u.class="disabled",c=!0),s===(new Date).format(e.dateFormat)&&("string"==typeof u.class?u.class+=" today":u.class="today");var d=v;if(w){if(c||(w.from===s&&(u.class="current"),w.to===s&&(u.class="current")),w.from&&w.to){var h=e.getDateIsoFormat(w.from),y=e.getDateIsoFormat(w.to);c||(a.getTime()>h.getTime()&&a.getTime()<y.getTime()&&(u.class="hovering"),a.getTime()>y.getTime()&&a.getTime()<h.getTime()&&(u.class="hovering"))}}else if(Y||_){var C=Y?Y.value:_.value;d=e.getDateIsoFormat(C,!0),d instanceof Object&&(c||a.getTime()!==d.getTime()||(u.class="current hovering"),v instanceof Object?(c||(a.getTime()>v.getTime()&&a.getTime()<d.getTime()&&(u.class="hovering",m=!1),a.getTime()>d.getTime()&&a.getTime()<v.getTime()&&(u.class="hovering",m=!1)),c||a.getTime()!==v.getTime()||(u.class="current")):m=!0)}var I=i.default.createTag("td",u);c||(I.onclick=l,I.onmouseenter=function(){if(m){var t=p.querySelector(".current"),a=t?t.getAttribute("data-date"):d||g.value;a instanceof Object&&(a=a.format(e.dateFormat)),r(this,a)}w&&w.from&&!w.to&&r(this,w.from)}),I.onmouseout=function(){(m||w)&&o(this,!0)},I.innerHTML=n,f.appendChild(I),M%7||p.appendChild(f)}function r(t,a){var r=p.getElementsByTagName("td"),n=F[t.getAttribute("data-date")]-1;if(a){var i=F[a]-1;if(i)n=i;else{var s=e.getDateIsoFormat(t.getAttribute("data-date")).getTime();a=a instanceof Object?a.getTime():e.getDateIsoFormat(a).getTime();var u=p.querySelectorAll("td:not(.disabled)");n=a>s?F[u[u.length-1].getAttribute("data-date")]-1:F[u[0].getAttribute("data-date")]-1}}if(0!==p.getElementsByClassName("current").length||n){var l=F[t.getAttribute("data-date")]-1;o(t);for(var d=Math.min(l,n);d<=Math.max(l,n);d++)r[d]&&c.add(r[d],"hovering")}}function o(){for(var e=p.getElementsByTagName("td"),t=0;t<e.length;t++)c.remove(e[t],"hovering")}function s(e,t){var a=p.getElementsByClassName("current");if(a.length)for(var r=0;r<=a.length;r++)(t||r!==a.length)&&c.remove(a[0],"current")}function l(a){function n(e){for(var t=e.closest("tbody").querySelectorAll("td"),a=0;a<t.length;a++)t[a].onmouseenter=null,t[a].onmouseout=null}d=this.getAttribute("data-date");var i=this.closest("tbody"),u=i.getElementsByClassName("current");e.between?function(t){if(w&&w.from&&w.to&&(s(t,!0),o(t,!0),w=null),w){c.add(t,"current");var u=e.getDateIsoFormat(w.from||d),l=e.getDateIsoFormat(w.to||d);w.from=new Date(Math.min(u.getTime(),l.getTime())).format(e.dateFormat),w.to=new Date(Math.max(u.getTime(),l.getTime())).format(e.dateFormat),n(t),g.setAttribute("data-between",JSON.stringify(w)),e.between.end&&e.between.end.onSelect&&e.between.end.call(a,g,d),e.onSelect&&e.onSelect.call(a,g,w)}else{c.add(t,"current"),w={from:d,to:null},g.setAttribute("data-between",JSON.stringify(w));for(var m=i.querySelectorAll("td:not(.disabled)"),f=0;f<m.length;f++)m[f].onmouseenter=function(){r(this,d)};e.between.start&&e.between.start.onSelect&&e.between.start.call(a,g,d)}}(this):function(l){if(e.binderID&&Y){m=!0;var f=e.getDateIsoFormat(Y.value,!0);return f instanceof Object&&"Invalid Date"!==f.toString()?void(e.getDateIsoFormat(d).getTime()<e.getDateIsoFormat(Y.value).getTime()?(s(l),o(l),c.add(l,"current"),F[Y.value]&&c.add(i.querySelectorAll("td")[F[Y.value]-1],"current"),r(l,Y.value),g.value=d,n(l),e.onSelect&&e.onSelect.call(a,g,d),t.close(e.dragAutoClose),m=!1):(s(l,!0),o(l),c.add(l,"current"),g.value=d,Y.value=Y.getAttribute("value"),e.onSelect&&e.onSelect.call(a,g,d))):Y&&e.getDateIsoFormat(g.value,!0)?(e.getDateIsoFormat(g.value).getTime()>e.getDateIsoFormat(d).getTime()?(Y.value=g.value,g.value=d):Y.value=d,c.add(l,"current"),n(l),e.onSelect&&e.onSelect.call(a,Y,d),void t.close(e.dragAutoClose)):(c.add(l,"current"),g.value=d,void(e.onSelect&&e.onSelect.call(a,g,d)))}if(_){if(void 0!==F[g.value]){var p=i.querySelector('[data-date="'+g.value+'"]');p&&c.remove(p,"current")}var h=e.getDateIsoFormat(_.value,!0)?e.getDateIsoFormat(_.value,!0):u[0]?u[0].getAttribute("data-date"):null;return h instanceof Object&&(h=h.format(e.dateFormat)),c.add(l,"current"),c.add(_,"current"),h&&e.getDateIsoFormat(h).getTime()>e.getDateIsoFormat(d).getTime()?(g.value=_.value,_.value=d):g.value=d,n(l),r(l,h),e.onSelect&&e.onSelect.call(a,g,d),void t.close(e.dragAutoClose)}s(l,!0),c.add(l,"current"),g.value=d,e.onSelect&&e.onSelect.call(a,g,d),e.autoclose&&t.close(e.dragAutoClose)}(this)}var d,m,f,p,h=document,g=e.element,v=e.getDateIsoFormat(g.value,!0),y=new Date(e.current_year,e.current_month-1,1,0,0,0,0),b=new Date(y.getDate(),y.getMonth()+1,0).getDate(),D=new Date(e.current_year,e.current_month-1,1,0,0,0),T=!!e.minDate&&e.getDateIsoFormat(e.minDate),S=!!e.maxDate&&e.getDateIsoFormat(e.maxDate),w=!1,M=0,F=new Array,Y=null,_=null;if(e.between){w=g.getAttribute("data-between");try{w=JSON.parse(w)}catch(e){w=null}}return e.binderID&&((Y=h.getElementById(e.binderID))&&Y.id!==g.id||(Y=null)),g.getAttribute("data-binderID")&&(_=h.getElementById(g.getAttribute("data-binderID"))),function(){var t=i.default.createTag("tr",{class:"datepicker-week"}),r=y.getDay();0===r&&(r=7);for(var o=-(r-2),s=(b+r-1)%7,l=0===s?b:b+7-s,c=1;c<=7;c++){var d=i.default.createTag("td"),m="object"===n(u[e.language])?u[e.language]:u.de;d.innerHTML=m.dayNames.short[c],t.appendChild(d)}var f=i.default.createTag("thead");f.appendChild(t),p=i.default.createTag("tbody");for(var h=o;h<=l;h++)a(h);var g=i.default.createTag("table");g.appendChild(f),g.appendChild(p);var v=i.default.createTag("div",{class:"datepicker-calendar"});return v.appendChild(g),v}()}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Default={dateFormat:"dd-mm-YYYY",autoclose:!0,dragAutoClose:200,changeYear:!0,width:300,binderID:!1,between:!1,language:"en",select:{"max-height":200}}},function(e,t,a){"use strict";Date.prototype.format||(Date.prototype.getMonthName=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"][this.getMonth()]},Date.prototype.getMonthAbbr=function(){return["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][this.getMonth()]},Date.prototype.getDayFull=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][this.getDay()]},Date.prototype.getDayAbbr=function(){return["Sun","Mon","Tue","Wed","Thur","Fri","Sat"][this.getDay()]},Date.prototype.getDayOfYear=function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil((this-e)/864e5)},Date.prototype.getDaySuffix=function(){var e=this.getDate(),t=["th","st","nd","rd"],a=e%100;return t[(a-20)%10]||t[a]||t[0]},Date.prototype.getWeekOfYear=function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil(((this-e)/864e5+e.getDay()+1)/7)},Date.prototype.isLeapYear=function(){var e=this.getFullYear();if(parseInt(e)%4==0){if(parseInt(e)%100==0){if(parseInt(e)%400!=0)return!1;if(parseInt(e)%400==0)return!0}if(parseInt(e)%100!=0)return!0}if(parseInt(e)%4!=0)return!1},Date.prototype.getMonthDayCount=function(){return[31,this.isLeapYear()?29:28,31,30,31,30,31,31,30,31,30,31][this.getMonth()]},Date.prototype.format=function(e){e=(e||"dd-mm-YYYY").split("");for(var t=this.getDate(),a=this.getMonth(),r=this.getHours(),n=this.getMinutes(),o=this.getSeconds(),i={d:t<10?"0"+t:t,D:this.getDayAbbr(),j:this.getDate(),l:this.getDayFull(),S:this.getDaySuffix(),w:this.getDay(),z:this.getDayOfYear(),W:this.getWeekOfYear(),F:this.getMonthName(),m:a<9?"0"+(a+1):a+1,M:this.getMonthAbbr(),n:a+1,t:this.getMonthDayCount(),L:this.isLeapYear()?"1":"0",Y:this.getFullYear(),y:this.getFullYear()+"".substring(2,4),a:r>12?"pm":"am",A:r>12?"PM":"AM",g:r%12>0?r%12:12,G:r>0?r:"12",h:r%12>0?r%12:12,H:r,i:n<10?"0"+n:n,s:o<10?"0"+o:o},s="",u="",l=0;l<e.length;l++){var c=e[l];u!==c&&(c.match(/[a-zA-Z]/g)?s+=i[c]?i[c]:"":s+=c,u=c)}return s}),Date.prototype.adjustDate||(Date.prototype.adjustDate=function(e){var t=void 0;return e=e||0,t=0===e?this.getTime():e>0?this.getTime()+Math.abs(864e5*e):this.getTime()-Math.abs(864e5*e),this.setTime(t),this.setHours(0),this})},function(e,t){}]);
//# sourceMappingURL=js-custom-datepicker.min.js.map