@ipscape/ips-datetime-picker
Version:
A datetime picker component
1 lines • 164 kB
JavaScript
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ips-datetime-picker"]=t():e["ips-datetime-picker"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="77c0")}({"0200":function(e,t,n){"use strict";n("1b97")},"1b97":function(e,t,n){},"24de":function(e,t,n){},3871:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{staticClass:"ips ips-icon",class:e.iconClasses,on:{click:e.handleClick}})},i=[],o={name:"IpsIcon",props:{icon:{name:"icon",description:"The name of the icon",type:String,default:null,required:!0},size:{name:"size",description:"The icon size",type:String,default:"md",required:!1,validator:e=>-1!==["","sm","md","lg"].indexOf(e)}},computed:{iconClasses(){const e=[this.icon];return e.push("ips-icon-"+this.size),e}},methods:{handleClick(e){this.$emit("click",e)}}},a=o,s=n("b41a"),u=Object(s["a"])(a,r,i,!1,null,null,null),l=u.exports;n("24de"),t["a"]=l},"38a7":function(e,t,n){"use strict";(function(e){var r=n("3871"),i=n("4375"),o=(n("3ef7"),n("ddad")),a=n.n(o);e.jQuery=a.a,e.$=a.a,t["a"]={name:"IpsDatetimePicker",components:{IpsIcon:r["a"]},mixins:[i["a"]],props:{dateFormat:{name:"dateFormat",description:"The date format",type:String,default:"d.m.Y H:i",required:!1},startDate:{name:"startDate",description:"The start date",type:Date,default(){return new Date},required:!1},minDate:{name:"minDate",description:'The minimum date (i.e. "2013/12/03")',type:String,default:void 0,required:!1},stepMinutes:{name:"stepMinutes",description:"The step minutes",type:Number,default:15,required:!1},showTimePicker:{name:"showTimePicker",description:"Shows time picker if enabled",type:Boolean,default:!1,required:!1},showDatePicker:{name:"showDatePicker",description:"Shows date picker if enabled",type:Boolean,default:!0,required:!1},inlinePicker:{name:"inlinePicker",description:"Shows inline date picker if enabled",type:Boolean,default:!1,required:!1},locale:{name:"locale",description:"The locale",type:String,default:"en",required:!1}},mounted(){let e=this;$.datetimepicker.setLocale(this.locale),a()("#"+this.id).datetimepicker({format:this.dateFormat,startDate:this.startDate,minDate:this.minDate,step:this.stepMinutes,timepicker:this.showTimePicker,datepicker:this.showDatePicker,inline:this.inlinePicker}).on("change",(function(){let t=$(this).val();e.$emit("input",t)}))},methods:{calendarIconClicked(){a()("#"+this.id).focus()},clearInputValue(){this.disabled||(a()("#"+this.id).val(""),this.$emit("input",""))}}}}).call(this,n("b8a8"))},"3ef7":function(e,t,n){var r,i,o,a;!function(){"use strict";var e,t,n,r,i;e=function(e,t){return"string"==typeof e&&"string"==typeof t&&e.toLowerCase()===t.toLowerCase()},t=function(e,n,r){var i=r||"0",o=e.toString();return o.length<n?t(i+o,n):o},n=function(e){var t,r;for(e=e||{},t=1;t<arguments.length;t++)if(r=arguments[t])for(var i in r)r.hasOwnProperty(i)&&("object"==typeof r[i]?n(e[i],r[i]):e[i]=r[i]);return e},r=function(e,t){for(var n=0;n<t.length;n++)if(t[n].toLowerCase()===e.toLowerCase())return n;return-1},i={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,n={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(e%100/10)&&n[t]?n[t]:"th"}},separators:/[ \-+\/\.T:@]/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},(a=function(e){var t=this,r=n(i,e);t.dateSettings=r.dateSettings,t.separators=r.separators,t.validParts=r.validParts,t.intParts=r.intParts,t.tzParts=r.tzParts,t.tzClip=r.tzClip}).prototype={constructor:a,getMonth:function(e){var t;return 0===(t=r(e,this.dateSettings.monthsShort)+1)&&(t=r(e,this.dateSettings.months)+1),t},parseDate:function(t,n){var r,i,o,a,s,u,l,c,d,f,h=this,p=!1,m=!1,g=h.dateSettings,v={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!t)return null;if(t instanceof Date)return t;if("U"===n)return(o=parseInt(t))?new Date(1e3*o):t;switch(typeof t){case"number":return new Date(t);case"string":break;default:return null}if(!(r=n.match(h.validParts))||0===r.length)throw new Error("Invalid date format definition.");for(i=t.replace(h.separators,"\0").split("\0"),o=0;o<i.length;o++)switch(a=i[o],s=parseInt(a),r[o]){case"y":case"Y":if(!s)return null;d=a.length,v.year=2===d?parseInt((s<70?"20":"19")+a):s,p=!0;break;case"m":case"n":case"M":case"F":if(isNaN(s)){if(!(0<(u=h.getMonth(a))))return null;v.month=u}else{if(!(1<=s&&s<=12))return null;v.month=s}p=!0;break;case"d":case"j":if(!(1<=s&&s<=31))return null;v.day=s,p=!0;break;case"g":case"h":if(f=i[l=-1<r.indexOf("a")?r.indexOf("a"):-1<r.indexOf("A")?r.indexOf("A"):-1],-1<l)c=e(f,g.meridiem[0])?0:e(f,g.meridiem[1])?12:-1,1<=s&&s<=12&&-1<c?v.hour=s+c-1:0<=s&&s<=23&&(v.hour=s);else{if(!(0<=s&&s<=23))return null;v.hour=s}m=!0;break;case"G":case"H":if(!(0<=s&&s<=23))return null;v.hour=s,m=!0;break;case"i":if(!(0<=s&&s<=59))return null;v.min=s,m=!0;break;case"s":if(!(0<=s&&s<=59))return null;v.sec=s,m=!0}if(!0===p&&v.year&&v.month&&v.day)v.date=new Date(v.year,v.month-1,v.day,v.hour,v.min,v.sec,0);else{if(!0!==m)return null;v.date=new Date(0,0,0,v.hour,v.min,v.sec,0)}return v.date},guessDate:function(e,t){if("string"!=typeof e)return e;var n,r,i,o,a,s,u=e.replace(this.separators,"\0").split("\0"),l=t.match(this.validParts),c=new Date,d=0;if(!/^[djmn]/g.test(l[0]))return e;for(i=0;i<u.length;i++){if(d=2,a=u[i],s=parseInt(a.substr(0,2)),isNaN(s))return null;switch(i){case 0:"m"===l[0]||"n"===l[0]?c.setMonth(s-1):c.setDate(s);break;case 1:"m"===l[0]||"n"===l[0]?c.setDate(s):c.setMonth(s-1);break;case 2:if(r=c.getFullYear(),d=(n=a.length)<4?n:4,!(r=parseInt(n<4?r.toString().substr(0,4-n)+a:a.substr(0,4))))return null;c.setFullYear(r);break;case 3:c.setHours(s);break;case 4:c.setMinutes(s);break;case 5:c.setSeconds(s)}0<(o=a.substr(d)).length&&u.splice(i+1,0,o)}return c},parseFormat:function(e,n){var r,i=this,o=i.dateSettings,a=/\\?(.?)/gi,s=function(e,t){return r[e]?r[e]():t};return r={d:function(){return t(r.j(),2)},D:function(){return o.daysShort[r.w()]},j:function(){return n.getDate()},l:function(){return o.days[r.w()]},N:function(){return r.w()||7},w:function(){return n.getDay()},z:function(){var e=new Date(r.Y(),r.n()-1,r.j()),t=new Date(r.Y(),0,1);return Math.round((e-t)/864e5)},W:function(){var e=new Date(r.Y(),r.n()-1,r.j()-r.N()+3),n=new Date(e.getFullYear(),0,4);return t(1+Math.round((e-n)/864e5/7),2)},F:function(){return o.months[n.getMonth()]},m:function(){return t(r.n(),2)},M:function(){return o.monthsShort[n.getMonth()]},n:function(){return n.getMonth()+1},t:function(){return new Date(r.Y(),r.n(),0).getDate()},L:function(){var e=r.Y();return e%4==0&&e%100!=0||e%400==0?1:0},o:function(){var e=r.n(),t=r.W();return r.Y()+(12===e&&t<9?1:1===e&&9<t?-1:0)},Y:function(){return n.getFullYear()},y:function(){return r.Y().toString().slice(-2)},a:function(){return r.A().toLowerCase()},A:function(){var e=r.G()<12?0:1;return o.meridiem[e]},B:function(){var e=3600*n.getUTCHours(),r=60*n.getUTCMinutes(),i=n.getUTCSeconds();return t(Math.floor((e+r+i+3600)/86.4)%1e3,3)},g:function(){return r.G()%12||12},G:function(){return n.getHours()},h:function(){return t(r.g(),2)},H:function(){return t(r.G(),2)},i:function(){return t(n.getMinutes(),2)},s:function(){return t(n.getSeconds(),2)},u:function(){return t(1e3*n.getMilliseconds(),6)},e:function(){return/\((.*)\)/.exec(String(n))[1]||"Coordinated Universal Time"},I:function(){return new Date(r.Y(),0)-Date.UTC(r.Y(),0)!=new Date(r.Y(),6)-Date.UTC(r.Y(),6)?1:0},O:function(){var e=n.getTimezoneOffset(),r=Math.abs(e);return(0<e?"-":"+")+t(100*Math.floor(r/60)+r%60,4)},P:function(){var e=r.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return(String(n).match(i.tzParts)||[""]).pop().replace(i.tzClip,"")||"UTC"},Z:function(){return 60*-n.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(a,s)},r:function(){return"D, d M Y H:i:s O".replace(a,s)},U:function(){return n.getTime()/1e3||0}},s(e,e)},formatDate:function(e,t){var n,r,i,o,a,s="";if("string"==typeof e&&!(e=this.parseDate(e,t)))return null;if(e instanceof Date){for(i=t.length,n=0;n<i;n++)"S"!==(a=t.charAt(n))&&"\\"!==a&&(0<n&&"\\"===t.charAt(n-1)?s+=a:(o=this.parseFormat(a,e),n!==i-1&&this.intParts.test(a)&&"S"===t.charAt(n+1)&&(r=parseInt(o)||0,o+=this.dateSettings.ordinal(r)),s+=o));return s}return""}}}();var s=function(e){"use strict";var t={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:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},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},n=null,r=null,i="en",o={meridiem:["AM","PM"]},s=function(){var s=t.i18n[i],u={days:s.dayOfWeek,daysShort:s.dayOfWeekShort,months:s.months,monthsShort:e.map(s.months,(function(e){return e.substring(0,3)}))};"function"==typeof a&&(n=r=new a({dateSettings:e.extend({},o,u)}))},u={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(c(t))return r.parseDate(e,t);var n=moment(e,t);return!!n.isValid()&&n.toDate()},formatDate:function(e,t){return c(t)?r.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")}}}};e.datetimepicker={setLocale:function(e){var n=t.i18n[e]?e:"en";i!==n&&(i=n,s())},setDateFormatter:function(r){if("string"==typeof r&&u.hasOwnProperty(r)){var i=u[r];e.extend(t,i.default_options),n=i.formatter}else n=r}};var l={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"},c=function(e){return-1!==Object.values(l).indexOf(e)};function d(e,t,n){this.date=e,this.desc=t,this.style=n}e.extend(e.datetimepicker,l),s(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var n=/(-([a-z]))/g;return"float"===t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,(function(e,t,n){return n.toUpperCase()}))),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n,r;for(n=t||0,r=this.length;n<r;n+=1)if(this[n]===e)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},e.fn.xdsoftScroller=function(t,n){return this.each((function(){var r,i,o,a,s,u=e(this),l=function(e){var t,n={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],n.x=t.clientX,n.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(n.x=e.clientX,n.y=e.clientY),n},c=100,d=!1,f=0,h=0,p=0,m=!1,g=0,v=function(){};"hide"!==n?(e(this).hasClass("xdsoft_scroller_box")||(r=u.children().eq(0),i=u[0].clientHeight,o=r[0].offsetHeight,a=e('<div class="xdsoft_scrollbar"></div>'),s=e('<div class="xdsoft_scroller"></div>'),a.append(s),u.addClass("xdsoft_scroller_box").append(a),v=function(e){var t=l(e).y-f+g;t<0&&(t=0),t+s[0].offsetHeight>p&&(t=p-s[0].offsetHeight),u.trigger("scroll_element.xdsoft_scroller",[c?t/c:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",(function(r){i||u.trigger("resize_scroll.xdsoft_scroller",[n]),f=l(r).y,g=parseInt(s.css("margin-top"),10),p=a[0].offsetHeight,"mousedown"===r.type||"touchstart"===r.type?(t.ownerDocument&&e(t.ownerDocument.body).addClass("xdsoft_noselect"),e([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",(function n(){e([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",n).off("mousemove.xdsoft_scroller",v).removeClass("xdsoft_noselect")})),e(t.ownerDocument.body).on("mousemove.xdsoft_scroller",v)):(m=!0,r.stopPropagation(),r.preventDefault())})).on("touchmove",(function(e){m&&(e.preventDefault(),v(e))})).on("touchend touchcancel",(function(){m=!1,g=0})),u.on("scroll_element.xdsoft_scroller",(function(e,t){i||u.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1<t?1:t<0||isNaN(t)?0:t,s.css("margin-top",c*t),setTimeout((function(){r.css("marginTop",-parseInt((r[0].offsetHeight-i)*t,10))}),10)})).on("resize_scroll.xdsoft_scroller",(function(e,t,n){var l,d;i=u[0].clientHeight,o=r[0].offsetHeight,d=(l=i/o)*a[0].offsetHeight,1<l?s.hide():(s.show(),s.css("height",parseInt(10<d?d:10,10)),c=a[0].offsetHeight-s[0].offsetHeight,!0!==n&&u.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(r.css("marginTop"),10))/(o-i)]))})),u.on("mousewheel",(function(e){var t=Math.abs(parseInt(r.css("marginTop"),10));return(t-=20*e.deltaY)<0&&(t=0),u.trigger("scroll_element.xdsoft_scroller",[t/(o-i)]),e.stopPropagation(),!1})),u.on("touchstart",(function(e){d=l(e),h=Math.abs(parseInt(r.css("marginTop"),10))})),u.on("touchmove",(function(e){if(d){e.preventDefault();var t=l(e);u.trigger("scroll_element.xdsoft_scroller",[(h-(t.y-d.y))/(o-i)])}})),u.on("touchend touchcancel",(function(){d=!1,h=0}))),u.trigger("resize_scroll.xdsoft_scroller",[n])):u.find(".xdsoft_scrollbar").hide()}))},e.fn.datetimepicker=function(r,o){var a,s,u=this,l=17,c=13,f=27,h=37,p=38,m=39,g=40,v=9,y=116,x=65,b=67,w=86,T=90,D=89,k=!1,S=e.isPlainObject(r)||!r?e.extend(!0,{},t,r):e.extend(!0,{},t),C=0;return a=function(t){var o,a,s,u,C,M,O=e('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),A=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),_=e('<div class="xdsoft_datepicker active"></div>'),j=e('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),W=e('<div class="xdsoft_calendar"></div>'),E=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),N=E.find(".xdsoft_time_box").eq(0),P=e('<div class="xdsoft_time_variant"></div>'),H=e('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),F=e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),L=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),q=!1,I=0;S.id&&O.attr("id",S.id),S.style&&O.attr("style",S.style),S.weeks&&O.addClass("xdsoft_showweeks"),S.rtl&&O.addClass("xdsoft_rtl"),O.addClass("xdsoft_"+S.theme),O.addClass(S.className),j.find(".xdsoft_month span").after(F),j.find(".xdsoft_year span").after(L),j.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",(function(t){var n,r,i=e(this).find(".xdsoft_select").eq(0),o=0,a=0,s=i.is(":visible");for(j.find(".xdsoft_select").hide(),C.currentTime&&(o=C.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),i[s?"hide":"show"](),n=i.find("div.xdsoft_option"),r=0;r<n.length&&n.eq(r).data("value")!==o;r+=1)a+=n[0].offsetHeight;return i.xdsoftScroller(S,a/(i.children()[0].offsetHeight-i[0].clientHeight)),t.stopPropagation(),!1}));var Y=function(e){var t=e.originalEvent,n=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||n;var r=Math.abs(this.touchStartPosition.clientX-n.clientX),i=Math.abs(this.touchStartPosition.clientY-n.clientY);Math.sqrt(r*r+i*i)>S.touchMovedThreshold&&(this.touchMoved=!0)};function z(){var e,n=!1;return S.startDate?n=C.strToDate(S.startDate):(n=S.value||(t&&t.val&&t.val()?t.val():""))?(n=C.strToDateTime(n),S.yearOffset&&(n=new Date(n.getFullYear()-S.yearOffset,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))):S.defaultDate&&(n=C.strToDateTime(S.defaultDate),S.defaultTime&&(e=C.strtotime(S.defaultTime),n.setHours(e.getHours()),n.setMinutes(e.getMinutes()))),n&&C.isValidDate(n)?O.data("changed",!0):n="",n||0}function R(r){var i=function(e,t){var n=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}");return new RegExp(n).test(t)},o=function(e,t){if(!(e="string"==typeof e||e instanceof String?r.ownerDocument.getElementById(e):e))return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};r.mask&&t.off("keydown.xdsoft"),!0===r.mask&&(n.formatMask?r.mask=n.formatMask(r.format):r.mask=r.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"===e.type(r.mask)&&(i(r.mask,t.val())||(t.val(r.mask.replace(/[0-9]/g,"_")),o(t[0],0)),t.on("paste.xdsoft",(function(n){var a=(n.clipboardData||n.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,u=this.selectionStart;return s=s.substr(0,u)+a+s.substr(u+a.length),u+=a.length,i(r.mask,s)?(this.value=s,o(this,u)):""===e.trim(s)?this.value=r.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft"),n.preventDefault(),!1})),t.on("keydown.xdsoft",(function(n){var a,s=this.value,u=n.which,d=this.selectionStart,S=this.selectionEnd,C=d!==S;if(48<=u&&u<=57||96<=u&&u<=105||8===u||46===u){for(a=8===u||46===u?"_":String.fromCharCode(96<=u&&u<=105?u-48:u),8===u&&d&&!C&&(d-=1);;){var M=r.mask.substr(d,1),O=d<r.mask.length,A=0<d;if(!(/[^0-9_]/.test(M)&&O&&A))break;d+=8!==u||C?1:-1}if(n.metaKey&&(C=!(d=0)),C){var _=S-d,j=r.mask.replace(/[0-9]/g,"_"),W=j.substr(d,_).substr(1);s=s.substr(0,d)+(a+W)+s.substr(d+_)}else s=s.substr(0,d)+a+s.substr(d+1);if(""===e.trim(s))s=j;else if(d===r.mask.length)return n.preventDefault(),!1;for(d+=8===u?0:1;/[^0-9_]/.test(r.mask.substr(d,1))&&d<r.mask.length&&0<d;)d+=8===u?0:1;i(r.mask,s)?(this.value=s,o(this,d)):""===e.trim(s)?this.value=r.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[x,b,w,T,D].indexOf(u)&&k||-1!==[f,p,g,h,m,y,l,v,c].indexOf(u))return!0;return n.preventDefault(),!1})))}j.find(".xdsoft_select").xdsoftScroller(S).on("touchstart mousedown.xdsoft",(function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()})).on("touchmove",".xdsoft_option",Y).on("touchend mousedown.xdsoft",".xdsoft_option",(function(){if(!this.touchMoved){void 0!==C.currentTime&&null!==C.currentTime||(C.currentTime=C.now());var t=C.currentTime.getFullYear();C&&C.currentTime&&C.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),O.trigger("xchange.xdsoft"),S.onChangeMonth&&e.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(O,C.currentTime,O.data("input")),t!==C.currentTime.getFullYear()&&e.isFunction(S.onChangeYear)&&S.onChangeYear.call(O,C.currentTime,O.data("input"))}})),O.getValue=function(){return C.getCurrentTime()},O.setOptions=function(r){var i={};S=e.extend(!0,{},S,r),r.allowTimes&&e.isArray(r.allowTimes)&&r.allowTimes.length&&(S.allowTimes=e.extend(!0,[],r.allowTimes)),r.weekends&&e.isArray(r.weekends)&&r.weekends.length&&(S.weekends=e.extend(!0,[],r.weekends)),r.allowDates&&e.isArray(r.allowDates)&&r.allowDates.length&&(S.allowDates=e.extend(!0,[],r.allowDates)),r.allowDateRe&&"[object String]"===Object.prototype.toString.call(r.allowDateRe)&&(S.allowDateRe=new RegExp(r.allowDateRe)),r.highlightedDates&&e.isArray(r.highlightedDates)&&r.highlightedDates.length&&(e.each(r.highlightedDates,(function(t,r){var o,a=e.map(r.split(","),e.trim),s=new d(n.parseDate(a[0],S.formatDate),a[1],a[2]),u=n.formatDate(s.date,S.formatDate);void 0!==i[u]?(o=i[u].desc)&&o.length&&s.desc&&s.desc.length&&(i[u].desc=o+"\n"+s.desc):i[u]=s})),S.highlightedDates=e.extend(!0,[],i)),r.highlightedPeriods&&e.isArray(r.highlightedPeriods)&&r.highlightedPeriods.length&&(i=e.extend(!0,[],S.highlightedDates),e.each(r.highlightedPeriods,(function(t,r){var o,a,s,u,l,c,f;if(e.isArray(r))o=r[0],a=r[1],s=r[2],f=r[3];else{var h=e.map(r.split(","),e.trim);o=n.parseDate(h[0],S.formatDate),a=n.parseDate(h[1],S.formatDate),s=h[2],f=h[3]}for(;o<=a;)u=new d(o,s,f),l=n.formatDate(o,S.formatDate),o.setDate(o.getDate()+1),void 0!==i[l]?(c=i[l].desc)&&c.length&&u.desc&&u.desc.length&&(i[l].desc=c+"\n"+u.desc):i[l]=u})),S.highlightedDates=e.extend(!0,[],i)),r.disabledDates&&e.isArray(r.disabledDates)&&r.disabledDates.length&&(S.disabledDates=e.extend(!0,[],r.disabledDates)),r.disabledWeekDays&&e.isArray(r.disabledWeekDays)&&r.disabledWeekDays.length&&(S.disabledWeekDays=e.extend(!0,[],r.disabledWeekDays)),!S.open&&!S.opened||S.inline||t.trigger("open.xdsoft"),S.inline&&(q=!0,O.addClass("xdsoft_inline"),t.after(O).hide()),S.inverseButton&&(S.next="xdsoft_prev",S.prev="xdsoft_next"),S.datepicker?_.addClass("active"):_.removeClass("active"),S.timepicker?E.addClass("active"):E.removeClass("active"),S.value&&(C.setCurrentTime(S.value),t&&t.val&&t.val(C.str)),isNaN(S.dayOfWeekStart)?S.dayOfWeekStart=0:S.dayOfWeekStart=parseInt(S.dayOfWeekStart,10)%7,S.timepickerScrollbar||N.xdsoftScroller(S,"hide"),S.minDate&&/^[\+\-](.*)$/.test(S.minDate)&&(S.minDate=n.formatDate(C.strToDateTime(S.minDate),S.formatDate)),S.maxDate&&/^[\+\-](.*)$/.test(S.maxDate)&&(S.maxDate=n.formatDate(C.strToDateTime(S.maxDate),S.formatDate)),S.minDateTime&&/^\+(.*)$/.test(S.minDateTime)&&(S.minDateTime=C.strToDateTime(S.minDateTime).dateFormat(S.formatDate)),S.maxDateTime&&/^\+(.*)$/.test(S.maxDateTime)&&(S.maxDateTime=C.strToDateTime(S.maxDateTime).dateFormat(S.formatDate)),H.toggle(S.showApplyButton),j.find(".xdsoft_today_button").css("visibility",S.todayButton?"visible":"hidden"),j.find("."+S.prev).css("visibility",S.prevButton?"visible":"hidden"),j.find("."+S.next).css("visibility",S.nextButton?"visible":"hidden"),R(S),S.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",(function(){if(S.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof S.mask&&e.trim(e(this).val())===S.mask.replace(/[0-9]/g,"_")))e(this).val(null),O.data("xdsoft_datetime").empty();else{var t=n.parseDate(e(this).val(),S.format);if(t)e(this).val(n.formatDate(t,S.format));else{var r=+[e(this).val()[0],e(this).val()[1]].join(""),i=+[e(this).val()[2],e(this).val()[3]].join("");!S.datepicker&&S.timepicker&&0<=r&&r<24&&0<=i&&i<60?e(this).val([r,i].map((function(e){return 9<e?e:"0"+e})).join(":")):e(this).val(n.formatDate(C.now(),S.format))}O.data("xdsoft_datetime").setCurrentTime(e(this).val())}O.trigger("changedatetime.xdsoft"),O.trigger("close.xdsoft")})),S.dayOfWeekStartPrev=0===S.dayOfWeekStart?6:S.dayOfWeekStart-1,O.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},O.data("options",S).on("touchstart mousedown.xdsoft",(function(e){return e.stopPropagation(),e.preventDefault(),L.hide(),F.hide(),!1})),N.append(P),N.xdsoftScroller(S),O.on("afterOpen.xdsoft",(function(){N.xdsoftScroller(S)})),O.append(_).append(E),!0!==S.withoutCopyright&&O.append(A),_.append(j).append(W).append(H),S.insideParent?e(t).parent().append(O):e(S.parentID).append(O),C=new function(){var t=this;t.now=function(e){var n,r,i=new Date;return!e&&S.defaultDate&&(n=t.strToDateTime(S.defaultDate),i.setFullYear(n.getFullYear()),i.setMonth(n.getMonth()),i.setDate(n.getDate())),i.setFullYear(i.getFullYear()),!e&&S.defaultTime&&(r=t.strtotime(S.defaultTime),i.setHours(r.getHours()),i.setMinutes(r.getMinutes()),i.setSeconds(r.getSeconds()),i.setMilliseconds(r.getMilliseconds())),i},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e,n){"string"==typeof e?t.currentTime=t.strToDateTime(e):t.isValidDate(e)?t.currentTime=e:e||n||!S.allowBlank||S.inline?t.currentTime=t.now():t.currentTime=null,O.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var n,r=t.currentTime.getMonth()+1;return 12===r&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),r=0),n=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),r+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(r),S.onChangeMonth&&e.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(O,C.currentTime,O.data("input")),n!==t.currentTime.getFullYear()&&e.isFunction(S.onChangeYear)&&S.onChangeYear.call(O,C.currentTime,O.data("input")),O.trigger("xchange.xdsoft"),r},t.prevMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var n=t.currentTime.getMonth()-1;return-1===n&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),n=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),n+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(n),S.onChangeMonth&&e.isFunction(S.onChangeMonth)&&S.onChangeMonth.call(O,C.currentTime,O.data("input")),O.trigger("xchange.xdsoft"),n},t.getWeekOfYear=function(t){if(S.onGetWeekOfYear&&e.isFunction(S.onGetWeekOfYear)){var n=S.onGetWeekOfYear.call(O,t);if(void 0!==n)return n}var r=new Date(t.getFullYear(),0,1);return 4!==r.getDay()&&r.setMonth(0,1+(4-r.getDay()+7)%7),Math.ceil(((t-r)/864e5+r.getDay()+1)/7)},t.strToDateTime=function(e){var r,i,o=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((o=/^([+-]{1})(.*)$/.exec(e))&&(o[2]=n.parseDate(o[2],S.formatDate)),i=o&&o[2]?(r=o[2].getTime()-6e4*o[2].getTimezoneOffset(),new Date(t.now(!0).getTime()+parseInt(o[1]+"1",10)*r)):e?n.parseDate(e,S.format):t.now(),t.isValidDate(i)||(i=t.now()),i)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var r=e?n.parseDate(e,S.formatDate):t.now(!0);return t.isValidDate(r)||(r=t.now(!0)),r},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var r=e?n.parseDate(e,S.formatTime):t.now(!0);return t.isValidDate(r)||(r=t.now(!0)),r},t.str=function(){var e=S.format;return S.yearOffset&&(e=(e=e.replace("Y",t.currentTime.getFullYear()+S.yearOffset)).replace("y",String(t.currentTime.getFullYear()+S.yearOffset).substring(2,4))),n.formatDate(t.currentTime,e)},t.currentTime=this.now()},H.on("touchend click",(function(e){e.preventDefault(),O.data("changed",!0),C.setCurrentTime(z()),t.val(C.str()),O.trigger("close.xdsoft")})),j.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",(function(){O.data("changed",!0),C.setCurrentTime(0,!0),O.trigger("afterOpen.xdsoft")})).on("dblclick.xdsoft",(function(){var e,n,r=C.getCurrentTime();r=new Date(r.getFullYear(),r.getMonth(),r.getDate()),e=C.strToDate(S.minDate),r<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(n=C.strToDate(S.maxDate),(n=new Date(n.getFullYear(),n.getMonth(),n.getDate()))<r||(t.val(C.str()),t.trigger("change"),O.trigger("close.xdsoft")))})),j.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var t=e(this),n=0,r=!1;!function e(i){t.hasClass(S.next)?C.nextMonth():t.hasClass(S.prev)&&C.prevMonth(),S.monthChangeSpinner&&(r||(n=setTimeout(e,i||100)))}(500),e([S.ownerDocument.body,S.contentWindow]).on("touchend mouseup.xdsoft",(function t(){clearTimeout(n),r=!0,e([S.ownerDocument.body,S.contentWindow]).off("touchend mouseup.xdsoft",t)}))})),E.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",(function(){var t=e(this),n=0,r=!1,i=110;!function e(o){var a=N[0].clientHeight,s=P[0].offsetHeight,u=Math.abs(parseInt(P.css("marginTop"),10));t.hasClass(S.next)&&s-a-S.timeHeightInTimePicker>=u?P.css("marginTop","-"+(u+S.timeHeightInTimePicker)+"px"):t.hasClass(S.prev)&&0<=u-S.timeHeightInTimePicker&&P.css("marginTop","-"+(u-S.timeHeightInTimePicker)+"px"),N.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(P[0].style.marginTop,10)/(s-a))]),i=10<i?10:i-10,r||(n=setTimeout(e,o||i))}(500),e([S.ownerDocument.body,S.contentWindow]).on("touchend mouseup.xdsoft",(function t(){clearTimeout(n),r=!0,e([S.ownerDocument.body,S.contentWindow]).off("touchend mouseup.xdsoft",t)}))})),o=0,O.on("xchange.xdsoft",(function(a){clearTimeout(o),o=setTimeout((function(){void 0!==C.currentTime&&null!==C.currentTime||(C.currentTime=C.now());for(var o,a,s,u,l,c,d,f,h,p,m="",g=new Date(C.currentTime.getFullYear(),C.currentTime.getMonth(),1,12,0,0),v=0,y=C.now(),x=!1,b=!1,w=!1,T=!1,D=[],k=!0,M="";g.getDay()!==S.dayOfWeekStart;)g.setDate(g.getDate()-1);for(m+="<table><thead><tr>",S.weeks&&(m+="<th></th>"),o=0;o<7;o+=1)m+="<th>"+S.i18n[i].dayOfWeekShort[(o+S.dayOfWeekStart)%7]+"</th>";for(m+="</tr></thead>",m+="<tbody>",!1!==S.maxDate&&(x=C.strToDate(S.maxDate),x=new Date(x.getFullYear(),x.getMonth(),x.getDate(),23,59,59,999)),!1!==S.minDate&&(b=C.strToDate(S.minDate),b=new Date(b.getFullYear(),b.getMonth(),b.getDate())),!1!==S.minDateTime&&(w=C.strToDate(S.minDateTime),w=new Date(w.getFullYear(),w.getMonth(),w.getDate(),w.getHours(),w.getMinutes(),w.getSeconds())),!1!==S.maxDateTime&&(T=C.strToDate(S.maxDateTime),T=new Date(T.getFullYear(),T.getMonth(),T.getDate(),T.getHours(),T.getMinutes(),T.getSeconds())),!1!==T&&(p=31*(12*T.getFullYear()+T.getMonth())+T.getDate());v<C.currentTime.countDaysInMonth()||g.getDay()!==S.dayOfWeekStart||C.currentTime.getMonth()===g.getMonth();){D=[],v+=1,s=g.getDay(),u=g.getDate(),l=g.getFullYear(),H=g.getMonth(),c=C.getWeekOfYear(g),h="",D.push("xdsoft_date"),d=S.beforeShowDay&&e.isFunction(S.beforeShowDay.call)?S.beforeShowDay.call(O,g):null,S.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(S.allowDateRe)&&(S.allowDateRe.test(n.formatDate(g,S.formatDate))||D.push("xdsoft_disabled")),S.allowDates&&0<S.allowDates.length&&-1===S.allowDates.indexOf(n.formatDate(g,S.formatDate))&&D.push("xdsoft_disabled");var A=31*(12*g.getFullYear()+g.getMonth())+g.getDate();(!1!==x&&x<g||!1!==w&&g<w||!1!==b&&g<b||!1!==T&&p<A||d&&!1===d[0])&&D.push("xdsoft_disabled"),-1!==S.disabledDates.indexOf(n.formatDate(g,S.formatDate))&&D.push("xdsoft_disabled"),-1!==S.disabledWeekDays.indexOf(s)&&D.push("xdsoft_disabled"),t.is("[disabled]")&&D.push("xdsoft_disabled"),d&&""!==d[1]&&D.push(d[1]),C.currentTime.getMonth()!==H&&D.push("xdsoft_other_month"),(S.defaultSelect||O.data("changed"))&&n.formatDate(C.currentTime,S.formatDate)===n.formatDate(g,S.formatDate)&&D.push("xdsoft_current"),n.formatDate(y,S.formatDate)===n.formatDate(g,S.formatDate)&&D.push("xdsoft_today"),0!==g.getDay()&&6!==g.getDay()&&-1===S.weekends.indexOf(n.formatDate(g,S.formatDate))||D.push("xdsoft_weekend"),void 0!==S.highlightedDates[n.formatDate(g,S.formatDate)]&&(a=S.highlightedDates[n.formatDate(g,S.formatDate)],D.push(void 0===a.style?"xdsoft_highlighted_default":a.style),h=void 0===a.desc?"":a.desc),S.beforeShowDay&&e.isFunction(S.beforeShowDay)&&D.push(S.beforeShowDay(g)),k&&(m+="<tr>",k=!1,S.weeks&&(m+="<th>"+c+"</th>")),m+='<td data-date="'+u+'" data-month="'+H+'" data-year="'+l+'" class="xdsoft_date xdsoft_day_of_week'+g.getDay()+" "+D.join(" ")+'" title="'+h+'"><div>'+u+"</div></td>",g.getDay()===S.dayOfWeekStartPrev&&(m+="</tr>",k=!0),g.setDate(u+1)}m+="</tbody></table>",W.html(m),j.find(".xdsoft_label span").eq(0).text(S.i18n[i].months[C.currentTime.getMonth()]),j.find(".xdsoft_label span").eq(1).text(C.currentTime.getFullYear()+S.yearOffset),H=M="";var _=0;if(!1!==S.minTime){var E=C.strtotime(S.minTime);_=60*E.getHours()+E.getMinutes()}var N=1440;if(!1!==S.maxTime&&(E=C.strtotime(S.maxTime),N=60*E.getHours()+E.getMinutes()),!1!==S.minDateTime&&(E=C.strToDateTime(S.minDateTime),n.formatDate(C.currentTime,S.formatDate)===n.formatDate(E,S.formatDate))){var H=60*E.getHours()+E.getMinutes();_<H&&(_=H)}if(!1!==S.maxDateTime&&(E=C.strToDateTime(S.maxDateTime),n.formatDate(C.currentTime,S.formatDate)===n.formatDate(E,S.formatDate)&&(H=60*E.getHours()+E.getMinutes())<N&&(N=H)),f=function(r,i){var o,a=C.now(),s=S.allowTimes&&e.isArray(S.allowTimes)&&S.allowTimes.length;a.setHours(r),r=parseInt(a.getHours(),10),a.setMinutes(i),i=parseInt(a.getMinutes(),10),D=[];var u=60*r+i;(t.is("[disabled]")||N<=u||u<_)&&D.push("xdsoft_disabled"),(o=new Date(C.currentTime)).setHours(parseInt(C.currentTime.getHours(),10)),s||o.setMinutes(Math[S.roundTime](C.currentTime.getMinutes()/S.step)*S.step),(S.initTime||S.defaultSelect||O.data("changed"))&&o.getHours()===parseInt(r,10)&&(!s&&59<S.step||o.getMinutes()===parseInt(i,10))&&(S.defaultSelect||O.data("changed")?D.push("xdsoft_current"):S.initTime&&D.push("xdsoft_init_time")),parseInt(