@daypilot/daypilot-lite-angular 3.25.0 → 3.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2024 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.3.543-lite
133
+ Version: 2024.4.566-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -322,7 +322,7 @@ if (function () {
322
322
  a.key = i, a.val = e[i], t.push(a);
323
323
  }
324
324
  return t;
325
- }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
325
+ }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
326
326
  var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
327
327
  n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
328
328
  if (DayPilot.Areas.isVisible(a)) {
@@ -358,13 +358,12 @@ if (function () {
358
358
  DayPilot.Menu && DayPilot.Menu.touchPosition(a);
359
359
  var n = i.contextMenu || i.menu;
360
360
  if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
361
- var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
361
+ var o = { "type": "area", "div": e, "e": t, "area": i,
362
+ "a": d };
362
363
  n.show(t, { "initiator": o });
363
364
  }
364
365
  }
365
- function s(e) {
366
- return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0;
367
- }
366
+ function s(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
368
367
  var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
369
368
  d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
370
369
  var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
@@ -509,9 +508,9 @@ if (function () {
509
508
  var t = e.toLowerCase();
510
509
  return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
511
510
  }, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-tw", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "timePattern": "tt hh:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d tt hh:mm", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Switcher = function (e) {
512
- function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.G; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.G = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.q(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
511
+ function t(e, t, a) { var n = {}; n.start = e, n.end = t, n.day = a, n.target = i.k.control, n.preventDefault = function () { this.preventDefault.value = !0; }; var o = i.H; o && o.start === n.start && o.end === n.end && o.day === n.day && o.target === n.target || (i.H = n, "function" == typeof i.onChange && (i.onChange(n), n.preventDefault.value) || "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(n), n.preventDefault.value) || (i.k.s(i.l), "function" == typeof i.onChanged && i.onChanged(n), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(n))); }
513
512
  var i = this;
514
- this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.k = null, this.l = DayPilot.Date.today(), this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) {
513
+ this.f = [], this.i = [], this.j = {}, this.selectedClass = null, this.syncScrollbar = !0, this.k = null, this.l = DayPilot.Date.today(), this.m = null, this.onChange = null, this.onChanged = null, this.onSelect = null, this.j.updateMode = function (e) { var t = i.j.control; t && (t.selectMode = e, t.select(i.l)); }, this.addView = function (e, t) {
515
514
  var a;
516
515
  if ("string" == typeof e) {
517
516
  if (a = document.getElementById(e), !a)
@@ -520,9 +519,9 @@ if (function () {
520
519
  else
521
520
  a = e;
522
521
  var n = a, o = {};
523
- return o.m = !0, o.n = n.id, o.control = n, o.o = t || {}, o.p = function () { n.hide ? n.hide() : n.nav && n.nav.top ? n.nav.top.style.display = "none" : n.style.display = "none"; }, o.q = function (e) { (function () { return !!n.backendUrl || !("function" != typeof WebForm_DoCallback || !n.uniqueID); })() ? n.commandCallBack && n.commandCallBack("navigate", { "day": e }) : (n.startDate = e, n.update()); }, o.s = function () { i.t(), n.show ? n.show() : n.nav && n.nav.top ? n.nav.top.style.display = "" : n.style.display = ""; }, o.u = function () {
524
- if (o.o.navigatorSelectMode)
525
- return o.o.navigatorSelectMode;
522
+ return o.n = !0, o.o = n.id, o.control = n, o.p = t || {}, o.q = function () { n.hide ? n.hide() : n.nav && n.nav.top ? n.nav.top.style.display = "none" : n.style.display = "none"; }, o.s = function (e) { (function () { return !!n.backendUrl || !("function" != typeof WebForm_DoCallback || !n.uniqueID); })() ? n.commandCallBack && n.commandCallBack("navigate", { "day": e }) : (n.startDate = e, n.update()); }, o.t = function () { i.u(), n.show ? n.show() : n.nav && n.nav.top ? n.nav.top.style.display = "" : n.style.display = ""; }, o.z = function () {
523
+ if (o.p.navigatorSelectMode)
524
+ return o.p.navigatorSelectMode;
526
525
  if (n.isCalendar)
527
526
  switch (n.viewType) {
528
527
  case "Day": return "day";
@@ -546,24 +545,24 @@ if (function () {
546
545
  }
547
546
  else
548
547
  a = e;
549
- var n = this.z(t);
548
+ var n = this.A(t);
550
549
  n || (n = this.addView(t));
551
550
  var o = {};
552
- return o.A = !0, o.B = a, o.n = a.id, o.C = n, o.D = function (e) { i.show(o), i.E(o), e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1); }, DayPilot.re(a, "click", o.D), this.i.push(o), o;
553
- }, this.addButton = this.addTrigger, this.select = function (e) { var t = this.F(e); t ? t.D() : this.i.length > 0 && this.i[0].D(); }, this.F = function (e) {
551
+ return o.B = !0, o.C = a, o.o = a.id, o.D = n, o.E = function (e) { i.show(o), i.F(o), e && (e.preventDefault ? e.preventDefault() : e.returnValue = !1); }, DayPilot.re(a, "click", o.E), this.i.push(o), o;
552
+ }, this.addButton = this.addTrigger, this.select = function (e) { var t = this.G(e); t ? t.E() : this.i.length > 0 && this.i[0].E(); }, this.G = function (e) {
554
553
  for (var t = 0; t < this.i.length; t++) {
555
554
  var i = this.i[t];
556
- if (i.n === e)
555
+ if (i.o === e)
557
556
  return i;
558
557
  }
559
558
  return null;
560
- }, this.E = function (e) {
559
+ }, this.F = function (e) {
561
560
  if (this.selectedClass) {
562
561
  for (var t = 0; t < this.i.length; t++) {
563
562
  var i = this.i[t];
564
- DayPilot.Util.removeClass(i.B, this.selectedClass);
563
+ DayPilot.Util.removeClass(i.C, this.selectedClass);
565
564
  }
566
- DayPilot.Util.addClass(e.B, this.selectedClass);
565
+ DayPilot.Util.addClass(e.C, this.selectedClass);
567
566
  }
568
567
  }, this.addNavigator = function (e) {
569
568
  i.j.control = e, e.timeRangeSelectedHandling = "JavaScript", e.onTimeRangeSelected = function () {
@@ -578,31 +577,35 @@ if (function () {
578
577
  };
579
578
  }, this.show = function (e) {
580
579
  var a, n;
581
- if (e.A)
582
- n = e, a = n.C;
583
- else if (a = e.m ? e : this.z(e), this.k === a)
580
+ if (e.B)
581
+ n = e, a = n.D;
582
+ else if (a = e.n ? e : this.A(e),
583
+ this.k === a)
584
584
  return;
585
585
  if (i.onSelect) {
586
586
  var o = {};
587
- o.source = n ? n.B : null, o.target = a.control, i.onSelect(o);
587
+ o.source = n ? n.C : null, o.target = a.control, i.onSelect(o);
588
+ }
589
+ if (i.syncScrollbar) {
590
+ var r = this.k && this.k.control;
591
+ r && r.isCalendar && (i.m = r.getScrollY());
588
592
  }
589
- this.k = a, a.s();
590
- var r = a.u();
591
- i.j.updateMode(r),
592
- t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
593
- }, this.z = function (e) {
593
+ this.k = a, a.t(), null !== i.m && a.control.isCalendar && a.control.setScrollY(i.m);
594
+ var s = a.z();
595
+ i.j.updateMode(s), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
596
+ }, this.A = function (e) {
594
597
  for (var t = 0; t < this.f.length; t++)
595
598
  if (this.f[t].control === e)
596
599
  return this.f[t];
597
600
  return null;
598
- }, this.t = function () {
601
+ }, this.u = function () {
599
602
  for (var e = 0; e < this.f.length; e++)
600
- this.f[e].p();
603
+ this.f[e].q();
601
604
  }, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) {
602
605
  if (!i.k || !i.k.control)
603
606
  throw "DayPilot.Switcher.events.load(): Active view not found";
604
607
  i.k.control.events.load(e, t, a);
605
- }, this.G = null, this.H = function () {
608
+ }, this.H = null, this.I = function () {
606
609
  if (e)
607
610
  for (var t in e)
608
611
  if ("triggers" === t) {
@@ -611,7 +614,7 @@ if (function () {
611
614
  }
612
615
  else
613
616
  "navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t];
614
- }, this.H();
617
+ }, this.I();
615
618
  }, DayPilot.Duration = function (e) {
616
619
  var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3;
617
620
  if (2 === arguments.length) {
@@ -828,7 +831,7 @@ if (function () {
828
831
  if (!/^#[0-9a-f]{6}$/i.test(e))
829
832
  throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
830
833
  return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) };
831
- }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var a = 17, n = t * a, o = DayPilot.ColorUtil.adjustLuminance(i, -n); return DayPilot.ColorUtil.rgbToHex(o); }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), i = t.r / 255, a = t.g / 255, n = t.b / 255; return Math.sqrt(.299 * i * i + .587 * a * a + .114 * n * n); }, DayPilot.ColorUtil.contrasting = function (e, t, i) { var a = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", i = i || "#000000", a > .5 ? i : t; }, DayPilot.Event = function (e, t, i) {
834
+ }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + i(e.r) + i(e.g) + i(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var i = ""; 9 === e.length && (i = e.slice(7, 9), e = e.slice(0, 7)); var a = DayPilot.ColorUtil.hexToRgb(e); "number" != typeof t && (t = 1); var n = 17, o = Math.round(t * n), r = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(r) + i; }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), i = t.r / 255, a = t.g / 255, n = t.b / 255; return Math.sqrt(.299 * i * i + .587 * a * a + .114 * n * n); }, DayPilot.ColorUtil.contrasting = function (e, t, i) { var a = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", i = i || "#000000", a > .5 ? i : t; }, DayPilot.Event = function (e, t, i) {
832
835
  var a = this;
833
836
  this.calendar = t, this.data = e ? e : {}, this.part = i ? i : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
834
837
  var n = {}, o = ["id", "text", "start", "end", "resource"];
@@ -965,45 +968,46 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
965
968
  if (!t.resizingShadow)
966
969
  return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
967
970
  var a = t.resizing.event, n = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
968
- t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.I(a, n, o, r);
971
+ t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", a.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, a.calendar.J(a, n, o, r);
969
972
  }
970
973
  else if (t.moving) {
971
974
  if (!t.movingShadow)
972
975
  return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
973
976
  var o = t.movingShadow.offsetTop, a = t.moving.event;
974
- t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.J("_event_moving_source"));
977
+ t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.K("_event_moving_source"));
975
978
  var s = t.movingShadow.column;
976
- t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.K(a, s, o, i);
979
+ t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
977
980
  }
978
981
  else if (t.selecting && null !== t.topSelectedCell) {
979
982
  var l = t.selecting.calendar;
980
983
  t.selecting = !1;
981
984
  var d = l.getSelection();
982
- l.L(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
985
+ l.M(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
983
986
  }
984
987
  else
985
988
  t.selecting = !1;
986
989
  }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; }, t.Calendar = function (e, i) {
987
990
  var a = !1;
988
- if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
991
+ if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
989
992
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
990
993
  var n = this;
991
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.543-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.N || (e.N = !0, clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.N; }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
994
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.566-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.U, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { n.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this._ = function (e, t) {
992
995
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
993
996
  i = i.parentNode;
994
997
  var a = document.createElement("div");
995
- a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
998
+ a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.K("_shadow");
996
999
  var o = document.createElement("div");
997
- return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
998
- }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; }, this._.ba = function () {
1000
+ return o.className = n.K("_shadow_inner"),
1001
+ a.appendChild(o), i.firstChild.appendChild(a), a;
1002
+ }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; }, this.aa.ca = function () {
999
1003
  if ("Auto" === n.weekStarts) {
1000
1004
  var e = o.locale();
1001
1005
  return e ? e.weekStarts : 0;
1002
1006
  }
1003
1007
  return n.weekStarts || 0;
1004
1008
  };
1005
- var o = this._;
1006
- this.T = function (e, t) {
1009
+ var o = this.aa;
1010
+ this.U = function (e, t) {
1007
1011
  if (e && 0 === e.indexOf("$$$")) {
1008
1012
  if (!window.console)
1009
1013
  throw "Error received from the server side: " + e;
@@ -1013,16 +1017,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1013
1017
  if (e.CallBackRedirect)
1014
1018
  return void (document.location.href = e.CallBackRedirect);
1015
1019
  if ("None" === e.UpdateType)
1016
- return n.loadingStop(), void n.s();
1017
- if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ca()), e.Hashes)
1020
+ return n.loadingStop(), void n.t();
1021
+ if (n.W(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.da()), e.Hashes)
1018
1022
  for (var i in e.Hashes)
1019
1023
  n.hashes[i] = e.Hashes[i];
1020
- n.events.list = e.Events, n.da(), n.ea(), "Full" === e.UpdateType && (n.fa(), n.ga(), n.ha(), n.ia()), n.s(), n.ja(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1021
- }, this.ka = function () { return this.la() / 36e5; }, this.ma = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.na = function () { return this.la() / 18e5; }, this.la = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.ma() : 24, 60 * e * 60 * 1e3; }, this.oa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.pa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.qa = function (e) {
1024
+ n.events.list = e.Events, n.ea(), n.fa(), "Full" === e.UpdateType && (n.ga(), n.ha(), n.ia(), n.ja()), n.t(), n.ka(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1025
+ }, this.la = function () { return this.ma() / 36e5; }, this.na = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.oa = function () { return this.ma() / 18e5; }, this.ma = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.na() : 24, 60 * e * 60 * 1e3; }, this.pa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.qa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.Q("EventClick", t, e); }, this.ra = function (e) {
1022
1026
  var t = this, i = t.event;
1023
- if (n.pa()) {
1027
+ if (n.qa()) {
1024
1028
  var a = {};
1025
- if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.ra.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
1029
+ if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.sa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
1026
1030
  return;
1027
1031
  switch (n.eventClickHandling) {
1028
1032
  case "CallBack":
@@ -1035,7 +1039,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1035
1039
  var o = i.client.contextMenu();
1036
1040
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
1037
1041
  }
1038
- "function" == typeof n.onEventClicked && n.ra.apply(function () { n.onEventClicked(a); });
1042
+ "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
1039
1043
  }
1040
1044
  else
1041
1045
  switch (n.eventClickHandling) {
@@ -1047,7 +1051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1047
1051
  break;
1048
1052
  case "JavaScript": n.onEventClick(i);
1049
1053
  }
1050
- }, this.sa = function (e) {
1054
+ }, this.ta = function (e) {
1051
1055
  var t = this.event;
1052
1056
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1053
1057
  return !1;
@@ -1060,10 +1064,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1060
1064
  a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
1061
1065
  }
1062
1066
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1063
- }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.ta = function (e) {
1064
- if (n.pa()) {
1067
+ }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) {
1068
+ if (n.qa()) {
1065
1069
  var t = {};
1066
- if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ra.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1070
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.sa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1067
1071
  return;
1068
1072
  switch (n.eventDeleteHandling) {
1069
1073
  case "CallBack":
@@ -1074,7 +1078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1074
1078
  break;
1075
1079
  case "Update": n.events.remove(e);
1076
1080
  }
1077
- "function" == typeof n.onEventDeleted && n.ra.apply(function () { n.onEventDeleted(t); });
1081
+ "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
1078
1082
  }
1079
1083
  else
1080
1084
  switch (n.eventDeleteHandling) {
@@ -1092,27 +1096,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1092
1096
  if (!i)
1093
1097
  throw "newEnd is null";
1094
1098
  var n = {};
1095
- n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n);
1099
+ n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
1096
1100
  }, this.eventResizePostBack = function (e, t, i, a) {
1097
1101
  if (!t)
1098
1102
  throw "newStart is null";
1099
1103
  if (!i)
1100
1104
  throw "newEnd is null";
1101
1105
  var n = {};
1102
- n.e = e, n.newStart = t, n.newEnd = i, this.P("EventResize", a, n);
1103
- }, this.I = function (e, t, i, a) {
1106
+ n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n);
1107
+ }, this.J = function (e, t, i, a) {
1104
1108
  var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
1105
1109
  if ("top" === a) {
1106
- var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
1110
+ var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1107
1111
  r = c.addTime(f + m), s = e.end();
1108
1112
  }
1109
1113
  else if ("bottom" === a) {
1110
- var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
1114
+ var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
1111
1115
  r = l, s = c.addTime(f + m);
1112
1116
  }
1113
- if (n.pa()) {
1117
+ if (n.qa()) {
1114
1118
  var p = {};
1115
- if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.ra.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1119
+ if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.sa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1116
1120
  return;
1117
1121
  switch (n.eventResizeHandling) {
1118
1122
  case "PostBack":
@@ -1123,7 +1127,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1123
1127
  break;
1124
1128
  case "Update": e.start(r), e.end(s), n.events.update(e);
1125
1129
  }
1126
- "function" == typeof n.onEventResized && n.ra.apply(function () { n.onEventResized(p); });
1130
+ "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
1127
1131
  }
1128
1132
  else
1129
1133
  switch (n.eventResizeHandling) {
@@ -1141,23 +1145,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1141
1145
  if (!i)
1142
1146
  throw "newEnd is null";
1143
1147
  var o = {};
1144
- o.e = e, o.newStart = t, o.newEnd = i, this.P("EventMove", n, o);
1148
+ o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o);
1145
1149
  }, this.eventMoveCallBack = function (e, t, i, a, n) {
1146
1150
  if (!t)
1147
1151
  throw "newStart is null";
1148
1152
  if (!i)
1149
1153
  throw "newEnd is null";
1150
1154
  var o = {};
1151
- o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o);
1152
- }, this.K = function (e, t, i, a) {
1155
+ o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o);
1156
+ }, this.L = function (e, t, i, a) {
1153
1157
  var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1154
1158
  l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
1155
- var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ua[t], m = f.id, p = f.start.getTime(), v = new Date;
1159
+ var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.va[t], m = f.id, p = f.start.getTime(), v = new Date;
1156
1160
  v.setTime(p + s + u);
1157
1161
  var y = new DayPilot.Date(v), g = y.addTime(h);
1158
- if (n.pa()) {
1162
+ if (n.qa()) {
1159
1163
  var b = {};
1160
- if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.ra.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1164
+ if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.sa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1161
1165
  return;
1162
1166
  switch (n.eventMoveHandling) {
1163
1167
  case "PostBack":
@@ -1168,7 +1172,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1168
1172
  break;
1169
1173
  case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
1170
1174
  }
1171
- "function" == typeof n.onEventMoved && n.ra.apply(function () { n.onEventMoved(b); });
1175
+ "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
1172
1176
  }
1173
1177
  else
1174
1178
  switch (n.eventMoveHandling) {
@@ -1180,10 +1184,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1180
1184
  break;
1181
1185
  case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
1182
1186
  }
1183
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) {
1184
- if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.pa()) {
1187
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.Q("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.S("TimeRangeSelected", a, n); }, this.M = function (e, t, i) {
1188
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
1185
1189
  var a = {};
1186
- if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ra.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1190
+ if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.sa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1187
1191
  return;
1188
1192
  switch (n.timeRangeSelectedHandling) {
1189
1193
  case "PostBack":
@@ -1191,7 +1195,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1191
1195
  break;
1192
1196
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
1193
1197
  }
1194
- "function" == typeof n.onTimeRangeSelected && n.ra.apply(function () { n.onTimeRangeSelected(a); });
1198
+ "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
1195
1199
  }
1196
1200
  else
1197
1201
  switch (n.timeRangeSelectedHandling) {
@@ -1203,13 +1207,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1203
1207
  break;
1204
1208
  case "JavaScript": n.onTimeRangeSelected(e, t);
1205
1209
  }
1206
- }, this.va = function (e) {
1210
+ }, this.wa = function (e) {
1207
1211
  if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
1208
1212
  var i = e.which;
1209
1213
  if (1 === i || 0 === i)
1210
- return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.wa(), !1;
1214
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.xa(), !1;
1211
1215
  }
1212
- }, this.wa = function () {
1216
+ }, this.xa = function () {
1213
1217
  this.getSelection();
1214
1218
  !function () {
1215
1219
  var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
@@ -1219,7 +1223,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1219
1223
  if (t[i] === e)
1220
1224
  return i;
1221
1225
  return -1;
1222
- }(), o = n.ua[a];
1226
+ }(), o = n.va[a];
1223
1227
  if (o) {
1224
1228
  var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
1225
1229
  if (n.nav.activeSelection)
@@ -1227,17 +1231,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1227
1231
  var e = document.createElement("div");
1228
1232
  e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
1229
1233
  var t = document.createElement("div");
1230
- return t.setAttribute("unselectable", "on"), t.className = n.J("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e;
1234
+ return t.setAttribute("unselectable", "on"), t.className = n.K("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e;
1231
1235
  }();
1232
- c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
1236
+ c.className = n.K("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
1233
1237
  }
1234
1238
  }();
1235
- }, this.xa = function (e) {
1239
+ }, this.ya = function (e) {
1236
1240
  if ("undefined" != typeof t && t.selecting) {
1237
1241
  var i = DayPilot.mc(e);
1238
- t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa());
1242
+ t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa());
1239
1243
  }
1240
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.ya = function (e) {
1244
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.za = function (e) {
1241
1245
  if (e < 0)
1242
1246
  return null;
1243
1247
  for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
@@ -1245,11 +1249,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1245
1249
  return a;
1246
1250
  }
1247
1251
  return null;
1248
- }, this.za = {}, this.za.getCellCoords = function () {
1252
+ }, this.Aa = {}, this.Aa.getCellCoords = function () {
1249
1253
  var e = {};
1250
1254
  if (e.x = 0, e.y = 0, !n.coords)
1251
1255
  return null;
1252
- e.x = n.ya(n.coords.x);
1256
+ e.x = n.za(n.coords.x);
1253
1257
  var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
1254
1258
  return e.y = i, e.x < 0 ? null : e;
1255
1259
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
@@ -1268,18 +1272,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1268
1272
  var s = {};
1269
1273
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1270
1274
  return;
1271
- n.columns.list = i, n.Aa && n.update();
1275
+ n.columns.list = i, n.Ba && n.update();
1272
1276
  }
1273
1277
  };
1274
1278
  n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a });
1275
- }, this.ca = function () {
1279
+ }, this.da = function () {
1276
1280
  var e;
1277
- e = "Resources" !== n.viewType ? this.Ba() : n.columns.list, this.ua = [];
1281
+ e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = [];
1278
1282
  for (var t = 0; t < e.length; t++) {
1279
- var i = this.Ca(e[t]);
1280
- this.ua.push(i);
1283
+ var i = this.Da(e[t]);
1284
+ this.va.push(i);
1281
1285
  }
1282
- }, this.Ca = function (e) {
1286
+ }, this.Da = function (e) {
1283
1287
  var t = {};
1284
1288
  return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) {
1285
1289
  for (var t = 0; t < this.blocks.length; t++) {
@@ -1320,7 +1324,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1320
1324
  return !0;
1321
1325
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1322
1326
  }, t;
1323
- }, this.Ba = function () {
1327
+ }, this.Ca = function () {
1324
1328
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1325
1329
  switch (this.viewType) {
1326
1330
  case "Day":
@@ -1328,7 +1332,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1328
1332
  break;
1329
1333
  case "Week":
1330
1334
  i = 7;
1331
- var a = o.ba();
1335
+ var a = o.ca();
1332
1336
  t = t.firstDayOfWeek(a);
1333
1337
  break;
1334
1338
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
@@ -1341,22 +1345,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1341
1345
  return e;
1342
1346
  }, this.visibleStart = function () {
1343
1347
  if ("Resources" === n.viewType) {
1344
- if (0 === n.ua.length)
1348
+ if (0 === n.va.length)
1345
1349
  return DayPilot.Date.today();
1346
- var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1350
+ var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1347
1351
  return new DayPilot.Date(t);
1348
1352
  }
1349
- return this.ua[0].start;
1353
+ return this.va[0].start;
1350
1354
  }, this.visibleEnd = function () {
1351
1355
  if ("Resources" === n.viewType) {
1352
- if (0 === n.ua.length)
1356
+ if (0 === n.va.length)
1353
1357
  return DayPilot.Date.today().addDays(1);
1354
- var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1358
+ var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1355
1359
  return new DayPilot.Date(t).addDays(1);
1356
1360
  }
1357
- var t = this.ua.length - 1;
1358
- return this.ua[t].start.addDays(1);
1359
- }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () {
1361
+ var t = this.va.length - 1;
1362
+ return this.va[t].start.addDays(1);
1363
+ }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () {
1360
1364
  if (this.elements.events)
1361
1365
  for (var e = 0; e < this.elements.events.length; e++) {
1362
1366
  var t = this.elements.events[e], i = t.event;
@@ -1367,9 +1371,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1367
1371
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
1368
1372
  }
1369
1373
  this.elements.events = [];
1370
- }, this.Da = function (e) {
1374
+ }, this.Ea = function (e) {
1371
1375
  var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
1372
- o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.qa, DayPilot.re(o, "contextmenu", this.sa), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
1376
+ o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.ra, DayPilot.re(o, "contextmenu", this.ta), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
1373
1377
  var a = 5;
1374
1378
  if ("undefined" != typeof t) {
1375
1379
  var r = DayPilot.mo3(o, i);
@@ -1385,7 +1389,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1385
1389
  if (1 === a && e.client.moveEnabled()) {
1386
1390
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1387
1391
  var o = t.moving.helper = {};
1388
- o.oldColumn = n.ua[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1392
+ o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1389
1393
  var r = DayPilot.mo3(this, i);
1390
1394
  r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
1391
1395
  }
@@ -1395,35 +1399,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1395
1399
  return !1;
1396
1400
  };
1397
1401
  var r = document.createElement("div");
1398
- if (r.setAttribute("unselectable", "on"), r.className = n.J("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
1402
+ if (r.setAttribute("unselectable", "on"), r.className = n.K("_event_inner"), r.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? r.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : r.style.borderColor = i.borderColor, i.backColor && (r.style.background = i.backColor), i.fontColor && (r.style.color = i.fontColor), o.appendChild(r), e.client.barVisible()) {
1399
1403
  var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
1400
- c.setAttribute("unselectable", "on"), c.className = this.J("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
1404
+ c.setAttribute("unselectable", "on"), c.className = this.K("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
1401
1405
  var u = document.createElement("div");
1402
- u.setAttribute("unselectable", "on"), u.className = this.J("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
1406
+ u.setAttribute("unselectable", "on"), u.className = this.K("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
1403
1407
  }
1404
1408
  if (e.client.deleteEnabled()) {
1405
1409
  var h = document.createElement("div");
1406
- h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ta(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
1410
+ h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.K("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
1407
1411
  }
1408
1412
  var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1409
1413
  if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
1410
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Ea(o);
1414
+ a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Fa(o);
1411
1415
  }
1412
1416
  if ("function" == typeof n.onAfterEventRender) {
1413
1417
  var m = {};
1414
1418
  m.e = o.event, m.div = o, n.onAfterEventRender(m);
1415
1419
  }
1416
1420
  n.elements.events.push(o);
1417
- }, this.Ea = function (e) {
1421
+ }, this.Fa = function (e) {
1418
1422
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1419
1423
  try {
1420
1424
  var a = e.childNodes[i];
1421
- 1 === a.nodeType && (a.unselectable = "on", this.Ea(a));
1425
+ 1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
1422
1426
  }
1423
1427
  catch (e) { }
1424
- }, this.ja = function () {
1425
- for (var e = 0; e < this.ua.length; e++) {
1426
- var t = this.ua[e];
1428
+ }, this.ka = function () {
1429
+ for (var e = 0; e < this.va.length; e++) {
1430
+ var t = this.va[e];
1427
1431
  if (t.blocks)
1428
1432
  for (var i = 0; i < t.blocks.length; i++)
1429
1433
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -1431,64 +1435,64 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1431
1435
  var s = o[r];
1432
1436
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1433
1437
  var l = n === a.lines.length - 1;
1434
- l || (s.part.width = 1.5 * s.part.width), this.Da(s);
1438
+ l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
1435
1439
  }
1436
1440
  }
1437
- }, this.Fa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ga() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ha(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ia(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ja(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ha = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ka(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ia = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ka(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.La()), n.appendChild(this.Ma()), e.appendChild(t), this.nav.zoom = e, e; }, this.La = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ma = function () {
1441
+ }, this.Ga = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ha() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ia(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ja(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ka(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ia = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.La(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ja = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.La(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ma()), n.appendChild(this.Na()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ma = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Na = function () {
1438
1442
  var e = document.createElement("table");
1439
1443
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1440
- for (var t = this.ua, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1444
+ for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1441
1445
  var r = a.insertCell(-1);
1442
1446
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
1443
1447
  var s = document.createElement("div");
1444
- s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1448
+ s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1445
1449
  var l = document.createElement("div");
1446
1450
  r.selection = l, r.appendChild(s), r.appendChild(l);
1447
1451
  }
1448
1452
  return e;
1449
- }, this.Ka = function () {
1453
+ }, this.La = function () {
1450
1454
  var e = document.createElement("table");
1451
1455
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1452
- for (var t = n.ka(), i = 0; i < t; i++)
1453
- this.Na(e, i);
1456
+ for (var t = n.la(), i = 0; i < t; i++)
1457
+ this.Oa(e, i);
1454
1458
  return e;
1455
- }, this.Na = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.oa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ga = function () {
1459
+ }, this.Oa = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.K("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.pa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ha = function () {
1456
1460
  switch (this.heightSpec) {
1457
1461
  case "Full": return 48 * this.cellHeight;
1458
1462
  case "BusinessHours":
1459
- var e = this.ma();
1463
+ var e = this.na();
1460
1464
  return e * this.cellHeight * 2;
1461
1465
  case "BusinessHoursNoScroll":
1462
- var e = this.ma();
1466
+ var e = this.na();
1463
1467
  return e * this.cellHeight * 2;
1464
1468
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1465
1469
  }
1466
- }, this.Oa = function () {
1470
+ }, this.Pa = function () {
1467
1471
  var e = n.nav.corner ? n.nav.corner.parentNode : null;
1468
1472
  if (e) {
1469
1473
  e.innerHTML = "";
1470
- var t = this.Pa();
1474
+ var t = this.Qa();
1471
1475
  e.appendChild(t), n.nav.corner = t;
1472
1476
  }
1473
- }, this.Ha = function () {
1477
+ }, this.Ia = function () {
1474
1478
  var e = document.createElement("div");
1475
1479
  e.style.overflow = "auto";
1476
1480
  var t = document.createElement("table");
1477
1481
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1478
1482
  var i = t.insertRow(-1), a = i.insertCell(-1);
1479
1483
  a.style.padding = "0px", a.style.border = "0px none";
1480
- var n = this.Pa();
1484
+ var n = this.Qa();
1481
1485
  a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1482
1486
  var o = "hidden" !== this.nav.scroll.style.overflow;
1483
1487
  if (a.appendChild(this.nav.header), o) {
1484
1488
  a = i.insertCell(-1), a.unselectable = "on";
1485
1489
  var r = document.createElement("div");
1486
- r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
1490
+ r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
1487
1491
  var s = document.createElement("div");
1488
- s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1492
+ s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1489
1493
  }
1490
1494
  return e.appendChild(t), e;
1491
- }, this.Pa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () {
1495
+ }, this.Qa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.K("_corner_inner"), e.appendChild(t), e; }, this.X = function () {
1492
1496
  var e = this.nav.main;
1493
1497
  e.root = null, e.onmouseup = null;
1494
1498
  for (var t = 0; t < e.rows.length; t++)
@@ -1497,9 +1501,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1497
1501
  n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
1498
1502
  }
1499
1503
  this.fasterDispose || DayPilot.pu(e);
1500
- }, this.ga = function () {
1501
- var e = this.nav.main, i = 18e5, a = this.na(), o = n.ua;
1502
- for (e && this.W(); e && e.rows && e.rows.length > 0;)
1504
+ }, this.ha = function () {
1505
+ var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va;
1506
+ for (e && this.X(); e && e.rows && e.rows.length > 0;)
1503
1507
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1504
1508
  this.tableCreated = !0;
1505
1509
  for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
@@ -1508,7 +1512,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1508
1512
  var c = l.insertCell(-1);
1509
1513
  c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", n.rtl || (c.style.textAlign = "left");
1510
1514
  var u = document.createElement("div");
1511
- u.style.marginRight = n.columnMarginRight + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1515
+ u.style.marginRight = n.columnMarginRight + "px", u.style.marginLeft = n.columnMarginLeft + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1512
1516
  var h = document.createElement("div");
1513
1517
  h.style.position = "relative", c.selection = h, c.appendChild(u), c.appendChild(h);
1514
1518
  }
@@ -1516,19 +1520,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1516
1520
  var l = e.insertRow(-1);
1517
1521
  l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
1518
1522
  for (var d = 0; d < r; d++) {
1519
- var m = this.ua[d], c = l.insertCell(-1);
1520
- c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.va, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1523
+ var m = this.va[d], c = l.insertCell(-1);
1524
+ c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.wa, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1521
1525
  var u = document.createElement("div");
1522
- u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
1523
- var p = this.Qa(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1526
+ u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
1527
+ var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1524
1528
  !function () {
1525
1529
  if ("function" == typeof n.onBeforeCellRender) {
1526
1530
  var e = {};
1527
1531
  e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
1528
1532
  }
1529
- }(), v.business && DayPilot.Util.addClass(u, n.J("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
1533
+ }(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
1530
1534
  var y = document.createElement("div");
1531
- y.setAttribute("unselectable", "on"), y.className = this.J("_cell_inner");
1535
+ y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
1532
1536
  var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
1533
1537
  g && (y.innerHTML = g), v.backColor && (y.style.backgroundColor = v.backColor), v.backImage && (y.style.backgroundImage = "url(" + v.backImage + ")"), v.backRepeat && (y.style.backgroundRepeat = v.backRepeat), u.appendChild(y), c.appendChild(u), c.appendChild(u);
1534
1538
  }
@@ -1538,7 +1542,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1538
1542
  n.coords = DayPilot.mo3(i, e);
1539
1543
  var a = DayPilot.mc(e);
1540
1544
  if (t.resizing) {
1541
- t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
1545
+ t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
1542
1546
  var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
1543
1547
  if ("bottom" === t.resizing.dpBorder) {
1544
1548
  var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
@@ -1560,23 +1564,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1560
1564
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1561
1565
  if (h <= u)
1562
1566
  return;
1563
- t.movingShadow = n.Z(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1567
+ t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1564
1568
  }
1565
1569
  var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1566
1570
  f || (f = o / 2);
1567
1571
  var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1568
1572
  c < r && (c = r);
1569
1573
  var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
1570
- c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1574
+ c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1571
1575
  var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1572
1576
  y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
1573
1577
  }
1574
1578
  else if (t.selecting) {
1575
- var a = DayPilot.mc(e), g = n.za.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1576
- a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa();
1579
+ var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1580
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.xa();
1577
1581
  }
1578
1582
  }, n.nav.scrollable.style.display = "";
1579
- }, this.Qa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () {
1583
+ }, this.Ra = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.Y = function () {
1580
1584
  var e = this.nav.header;
1581
1585
  if (e && e.rows)
1582
1586
  for (var t = 0; t < e.rows.length; t++)
@@ -1585,14 +1589,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1585
1589
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1586
1590
  }
1587
1591
  this.fasterDispose || DayPilot.pu(e);
1588
- }, this.Ra = function (e) {
1592
+ }, this.Sa = function (e) {
1589
1593
  function t(t) {
1590
1594
  var o = a[t], r = e ? i.insertCell(-1) : i.cells[t];
1591
- r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Sa;
1595
+ r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Ta;
1592
1596
  var s, l = e ? document.createElement("div") : r.firstChild;
1593
- e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.J("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1597
+ e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.K("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1594
1598
  var d = {};
1595
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ta(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
1599
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ua(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
1596
1600
  var c = o.verticalAlignment;
1597
1601
  if (c)
1598
1602
  switch (s.style.display = "flex", c) {
@@ -1604,24 +1608,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1604
1608
  break;
1605
1609
  case "bottom": s.style.alignItems = "flex-end";
1606
1610
  }
1607
- l.firstChild.innerHTML = n.Ja(o.name, o.html);
1611
+ l.firstChild.innerHTML = n.Ka(o.name, o.html);
1608
1612
  }
1609
- for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.ua, o = a.length, r = 0; r < o; r++)
1613
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, o = a.length, r = 0; r < o; r++)
1610
1614
  t(r);
1611
- }, this.Sa = function (e) {
1615
+ }, this.Ta = function (e) {
1612
1616
  if ("Disabled" !== n.headerClickHandling) {
1613
- var t = this.data, i = n.Ta(t), a = {};
1617
+ var t = this.data, i = n.Ua(t), a = {};
1614
1618
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
1615
1619
  }
1616
- }, this.Ta = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ua = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.fa = function () {
1617
- var e = this.nav.header, t = !0, i = this.ua;
1620
+ }, this.Ua = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Va = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () {
1621
+ var e = this.nav.header, t = !0, i = this.va;
1618
1622
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1619
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1623
+ this.fasterDispose || DayPilot.pu(e.rows[0]),
1624
+ e.deleteRow(0);
1620
1625
  this.headerCreated = !0;
1621
- this.Ra(t);
1622
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) {
1623
- this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none";
1624
- }, this.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1626
+ this.Sa(t);
1627
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Wa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Xa(); }); var t = "undefined" != typeof this.Ya.scrollpos ? this.Ya.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Za = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.$a = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1625
1628
  var t = null;
1626
1629
  if (e instanceof DayPilot.Event)
1627
1630
  t = e.data;
@@ -1630,7 +1633,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1630
1633
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1631
1634
  t = e;
1632
1635
  }
1633
- n.events.list || (n.events.list = []), n.events.list.push(t), n.$a({ "eventsOnly": !0 }), n.ra.notify();
1636
+ n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify();
1634
1637
  }, this.events.find = function (e) {
1635
1638
  if (!n.events.list)
1636
1639
  return null;
@@ -1658,7 +1661,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1658
1661
  n.events.list.splice(i, 1, e);
1659
1662
  }
1660
1663
  }
1661
- n.$a({ "eventsOnly": !0 }), n.ra.notify();
1664
+ n._a({ "eventsOnly": !0 }), n.sa.notify();
1662
1665
  }, this.events.remove = function (e) {
1663
1666
  var t;
1664
1667
  if (e instanceof DayPilot.Event)
@@ -1672,7 +1675,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1672
1675
  i && (t = i.data);
1673
1676
  }
1674
1677
  var a = DayPilot.indexOf(n.events.list, t);
1675
- n.events.list.splice(a, 1), n.$a({ "eventsOnly": !0 }), n.ra.notify();
1678
+ n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify();
1676
1679
  }, this.events.load = function (e, t, i) {
1677
1680
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1678
1681
  var i, o = e.request;
@@ -1687,7 +1690,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1687
1690
  var s = {};
1688
1691
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1689
1692
  return;
1690
- n.events.list = i, n.Aa && n.$a({ "eventsOnly": !0 });
1693
+ n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
1691
1694
  }
1692
1695
  };
1693
1696
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
@@ -1696,27 +1699,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1696
1699
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1697
1700
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1698
1701
  }
1699
- }, this._a = function () {
1700
- if (n.nav.top.className !== n.J("_main")) {
1701
- n.nav.top.className = n.J("_main");
1702
+ }, this.ab = function () {
1703
+ if (n.nav.top.className !== n.K("_main")) {
1704
+ n.nav.top.className = n.K("_main");
1702
1705
  var e = n.nav.corner;
1703
- e.className = n.J("_corner"), e.firstChild.className = n.J("_corner_inner");
1706
+ e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
1704
1707
  var t = n.nav.cornerRight;
1705
- t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
1708
+ t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
1706
1709
  }
1707
1710
  }, this.update = function (e) {
1708
- if (n.N)
1711
+ if (n.O)
1709
1712
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1710
- n.ab(e), n.$a();
1711
- }, this.$a = function (e) {
1712
- if (this.Aa) {
1713
+ n.bb(e), n._a();
1714
+ }, this._a = function (e) {
1715
+ if (this.Ba) {
1713
1716
  var e = e || {}, t = !e.eventsOnly;
1714
- n.bb(), n.V(), n.nav.top.style.cursor = "auto", t && (n.ca(), n.fa(), n.ga(), n.ha(), n.ia(), n.Oa(), n.Ya(), n._a(), n.cb()), n.da(), n.ea(), n.ja(), n.clearSelection(), this.visible ? this.show() : this.hide();
1717
+ n.cb(), n.W(), n.nav.top.style.cursor = "auto", t && (n.da(), n.ga(), n.ha(), n.ia(), n.ja(), n.Pa(), n.Za(), n.ab(), n.db()), n.ea(), n.fa(), n.ka(), n.clearSelection(), this.visible ? this.show() : this.hide();
1715
1718
  }
1716
- }, this.db = null, this.ab = function (e) {
1719
+ }, this.eb = null, this.bb = function (e) {
1717
1720
  if (e) {
1718
1721
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
1719
- this.db = t;
1722
+ this.eb = t;
1720
1723
  for (var i in e)
1721
1724
  if (t[i]) {
1722
1725
  var a = t[i];
@@ -1725,13 +1728,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1725
1728
  else
1726
1729
  n[i] = e[i];
1727
1730
  }
1728
- }, this.eb = function () {
1729
- var e = this.db;
1731
+ }, this.fb = function () {
1732
+ var e = this.eb;
1730
1733
  for (var t in e) {
1731
1734
  var i = e[t];
1732
1735
  i.postInit && i.postInit();
1733
1736
  }
1734
- }, this.fb = function () {
1737
+ }, this.gb = function () {
1735
1738
  if (this.id && this.id.tagName)
1736
1739
  this.nav.top = this.id;
1737
1740
  else {
@@ -1740,8 +1743,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1740
1743
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1741
1744
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1742
1745
  }
1743
- }, this.gb = {}, this.gb.events = [], this.hb = function (e) {
1744
- var t = this.gb.events, i = this.events.list[e], a = {};
1746
+ }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
1747
+ var t = this.hb.events, i = this.events.list[e], a = {};
1745
1748
  for (var o in i)
1746
1749
  a[o] = i[o];
1747
1750
  if ("function" == typeof this.onBeforeEventRender) {
@@ -1749,9 +1752,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1749
1752
  r.control = n, r.data = a, this.onBeforeEventRender(r);
1750
1753
  }
1751
1754
  t[e] = a;
1752
- }, this.da = function () {
1755
+ }, this.ea = function () {
1753
1756
  var e = this.events.list;
1754
- if (n.gb.events = [], e) {
1757
+ if (n.hb.events = [], e) {
1755
1758
  if (!DayPilot.isArray(e))
1756
1759
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1757
1760
  var t = e.length, i = 864e5;
@@ -1772,11 +1775,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1772
1775
  }
1773
1776
  if ("function" == typeof this.onBeforeEventRender)
1774
1777
  for (var o = 0; o < t; o++)
1775
- this.hb(o);
1776
- for (var o = 0; o < this.ua.length; o++) {
1778
+ this.ib(o);
1779
+ for (var o = 0; o < this.va.length; o++) {
1777
1780
  var l = {};
1778
1781
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1779
- var d = this.ua[o];
1782
+ var d = this.va[o];
1780
1783
  d.events = [], d.lines = [], d.blocks = [];
1781
1784
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1782
1785
  if (!a[m]) {
@@ -1792,21 +1795,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1792
1795
  var k = w.boxBottom;
1793
1796
  D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
1794
1797
  var p = D.part.top, v = D.part.top + D.part.height;
1795
- p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.gb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1798
+ p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.hb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1796
1799
  }
1797
1800
  }
1798
1801
  }
1799
1802
  }
1800
- for (var o = 0; o < this.ua.length; o++) {
1801
- var d = this.ua[o];
1802
- d.events.sort(this.ib);
1803
+ for (var o = 0; o < this.va.length; o++) {
1804
+ var d = this.va[o];
1805
+ d.events.sort(this.jb);
1803
1806
  for (var m = 0; m < d.events.length; m++) {
1804
1807
  var r = d.events[m];
1805
1808
  d.putIntoBlock(r);
1806
1809
  }
1807
1810
  for (var m = 0; m < d.blocks.length; m++) {
1808
1811
  var _ = d.blocks[m];
1809
- _.events.sort(this.ib);
1812
+ _.events.sort(this.jb);
1810
1813
  for (var S = 0; S < _.events.length; S++) {
1811
1814
  var r = _.events[S];
1812
1815
  _.putIntoLine(r);
@@ -1814,7 +1817,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1814
1817
  }
1815
1818
  }
1816
1819
  }
1817
- }, this.ib = function (e, t) {
1820
+ }, this.jb = function (e, t) {
1818
1821
  if (!(e && t && e.start && t.start))
1819
1822
  return 0;
1820
1823
  var i = e.start().getTime() - t.start().getTime();
@@ -1828,30 +1831,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1828
1831
  var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
1829
1832
  0 === s && (d = l);
1830
1833
  var c = {};
1831
- return c.cut = !1, c.top = this.jb(r), c.boxTop = this.jb(l), c.boxBottom = this.jb(d), this.cache.pixels[a + "_" + i] = c, c;
1832
- }, this.jb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.bb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ea = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ia = function () { var e = this.Ga(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { n.ra.scope && n.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.Wa = function () {
1834
+ return c.cut = !1, c.top = this.kb(r), c.boxTop = this.kb(l), c.boxBottom = this.kb(d), this.cache.pixels[a + "_" + i] = c, c;
1835
+ }, this.kb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.cb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Ha(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.Xa = function () {
1833
1836
  if (n.nav.scroll) {
1834
1837
  var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
1835
- n.Xa.scrollHour = t;
1838
+ n.Ya.scrollHour = t;
1836
1839
  }
1837
- }, this.cb = function () { var e = 0; "number" == typeof n.Xa.scrollHour ? e = 2 * n.cellHeight * n.Xa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.kb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Ya(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.lb = function () { this.bb(), this.ca(), this.Fa(), this.fa(), this.ga(), this.Ya(), this.Va(), this.Za(), t.register(this), this.mb(), this.R("Init"); }, this.Xa = {}, this.nb = function () { this.Xa.themes = [], this.Xa.themes.push(this.theme || this.cssClassPrefix); }, this.ob = function () {
1838
- for (var e = this.Xa.themes, t = 0; t < e.length; t++) {
1840
+ }, this.db = function () { var e = 0; "number" == typeof n.Ya.scrollHour ? e = 2 * n.cellHeight * n.Ya.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return n.nav.scroll.scrollTop; }, this.setScrollY = function (e) { n.nav.scroll.scrollTop = e, n.Xa(); }, this.lb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Za(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.mb = function () { this.cb(), this.da(), this.Ga(), this.ga(), this.ha(), this.Za(), this.Wa(), this.$a(), t.register(this), this.nb(), this.S("Init"); }, this.Ya = {}, this.ob = function () { this.Ya.themes = [], this.Ya.themes.push(this.theme || this.cssClassPrefix); }, this.pb = function () {
1841
+ for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
1839
1842
  var i = e[t];
1840
1843
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1841
1844
  }
1842
- this.Xa.themes = [];
1843
- }, this.pb = function () {
1845
+ this.Ya.themes = [];
1846
+ }, this.qb = function () {
1844
1847
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1845
1848
  var e = {};
1846
1849
  e.isCallBack = !1, this.onAfterRender(e);
1847
1850
  }
1848
- }, this.qb = function () {
1849
- if ("function" == typeof this.onInit && !this.rb) {
1850
- this.rb = !0;
1851
+ }, this.rb = function () {
1852
+ if ("function" == typeof this.onInit && !this.sb) {
1853
+ this.sb = !0;
1851
1854
  var e = {};
1852
1855
  this.onInit(e);
1853
1856
  }
1854
- }, this.sb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.mb = function () { var e = n.sb; e() || (n.U = setInterval(function () { e() && (n.Va(), n.Ya(), clearInterval(n.U)); }, 100)); }, this.Ja = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.ab, this.internal.xssTextHtml = n.Ja, this.init = function () { this.fb(); var e = this.kb(); return this.nb(), e ? void this.lb() : (this.bb(), this.ca(), this.da(), this.Fa(), this.fa(), this.ga(), this.s(), this.Ya(), this.Va(), this.Za(), t.register(this), this.events && (this.ea(), this.ja()), this.pb(), this.qb(), this.mb(), this.Aa = !0, this); }, this.Init = this.init, this.ab(i);
1857
+ }, this.tb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.nb = function () { var e = n.tb; e() || (n.V = setInterval(function () { e() && (n.Wa(), n.Za(), clearInterval(n.V)); }, 100)); }, this.Ka = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.bb, this.internal.xssTextHtml = n.Ka, this.init = function () { this.gb(); var e = this.lb(); return this.ob(), e ? void this.mb() : (this.cb(), this.da(), this.ea(), this.Ga(), this.ga(), this.ha(), this.t(), this.Za(), this.Wa(), this.$a(), t.register(this), this.events && (this.fa(), this.ka()), this.qb(), this.rb(), this.nb(), this.Ba = !0, this); }, this.Init = this.init, this.bb(i);
1855
1858
  }, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1856
1859
  e.fn.daypilotCalendar = function (e) {
1857
1860
  var t = null, i = this.each(function () {
@@ -1870,7 +1873,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1870
1873
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1871
1874
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
1872
1875
  var n = new DayPilot.Calendar(i[0]);
1873
- n.ra.scope = t, n.init();
1876
+ n.sa.scope = t, n.init();
1874
1877
  var o = a["id"];
1875
1878
  o && (t[o] = n);
1876
1879
  var r = a["publishAs"];
@@ -1883,7 +1886,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1883
1886
  l.call(t, d, function (e) {
1884
1887
  for (var t in e)
1885
1888
  n[t] = e[t];
1886
- n.update(), n.qb();
1889
+ n.update(), n.rb();
1887
1890
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1888
1891
  } };
1889
1892
  }]);
@@ -1893,14 +1896,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1893
1896
  var DayPilot = {};
1894
1897
  if (function () {
1895
1898
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1896
- this.v = "2024.3.543-lite";
1899
+ this.v = "2024.4.566-lite";
1897
1900
  var t = "navigator_" + (new Date).getTime(), i = this;
1898
1901
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1899
- if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1902
+ if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1900
1903
  for (var t in e)
1901
1904
  this[t] = e[t];
1902
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.tb(); this.resetTarget && !e ? this.ub(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.tb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.sb && (this.sb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.ub(this.date); }, this.tb = function () {
1903
- var e = this.B();
1905
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.ub(); this.resetTarget && !e ? this.vb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.ub(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.tb && (this.tb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.vb(this.date); }, this.ub = function () {
1906
+ var e = this.C();
1904
1907
  if (!e)
1905
1908
  return this.date;
1906
1909
  var t = null;
@@ -1912,26 +1915,26 @@ if (function () {
1912
1915
  a = DayPilot.Date.parse(t, i.patterns[n]);
1913
1916
  }
1914
1917
  return a;
1915
- }, this.ub = function (e) {
1916
- var t = this.B();
1918
+ }, this.vb = function (e) {
1919
+ var t = this.C();
1917
1920
  if (t) {
1918
1921
  var a = e.toString(i.pattern, i.locale);
1919
1922
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1920
1923
  }
1921
- }, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.sb; } }), this.show = function () {
1922
- if (!this.sb) {
1923
- var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
1924
- a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.vb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.ub(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1924
+ }, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.tb; } }), this.show = function () {
1925
+ if (!this.tb) {
1926
+ var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
1927
+ a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.wb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.vb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1925
1928
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1926
1929
  s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
1927
1930
  var l = document.createElement("div");
1928
1931
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1929
- var d = i.tb() || (new DayPilot.Date).getDatePart();
1930
- if (a.startDate = d, a.vb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1932
+ var d = i.ub() || (new DayPilot.Date).getDatePart();
1933
+ if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1931
1934
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1932
1935
  s.style.left = c + "px";
1933
1936
  }
1934
- this.sb = !0, this.onShow && this.onShow();
1937
+ this.tb = !0, this.onShow && this.onShow();
1935
1938
  }
1936
1939
  }, this.prepare(), this.init();
1937
1940
  });
@@ -1943,10 +1946,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1943
1946
  var e = function () { }, t = {};
1944
1947
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1945
1948
  var a = this, n = null;
1946
- this.v = "2024.3.543-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.wb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1949
+ this.v = "2024.4.566-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.xb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1947
1950
  o = o || {};
1948
1951
  var r = null;
1949
- if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.wb.submenu = null, null !== t.mouse) {
1952
+ if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.xb.submenu = null, null !== t.mouse) {
1950
1953
  a.cssOnly || (a.cssOnly = !0);
1951
1954
  var s = null;
1952
1955
  if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
@@ -1955,15 +1958,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1955
1958
  return;
1956
1959
  }
1957
1960
  var d = document.createElement("div");
1958
- if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.xb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1961
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.yb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1959
1962
  throw "No menu items defined.";
1960
1963
  if (this.showMenuTitle) {
1961
1964
  var c = document.createElement("div");
1962
- c.innerHTML = this.menuTitle, c.className = this.xb("title"), d.appendChild(c);
1965
+ c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
1963
1966
  }
1964
1967
  for (var u = 0; u < this.items.length; u++) {
1965
1968
  var h = this.items[u], f = document.createElement("div");
1966
- if (DayPilot.Util.addClass(f, this.xb("item")), h.items && (DayPilot.Util.addClass(f, this.xb("item_haschildren")), DayPilot.Util.addClass(d, this.xb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1969
+ if (DayPilot.Util.addClass(f, this.yb("item")), h.items && (DayPilot.Util.addClass(f, this.yb("item_haschildren")), DayPilot.Util.addClass(d, this.yb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1967
1970
  if ("-" === h.text) {
1968
1971
  var m = document.createElement("div");
1969
1972
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1971,7 +1974,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1971
1974
  else {
1972
1975
  var p = document.createElement("a");
1973
1976
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1974
- DayPilot.Util.addClass(p, a.xb("item_disabled"));
1977
+ DayPilot.Util.addClass(p, a.yb("item_disabled"));
1975
1978
  else {
1976
1979
  if (h.onclick || h.onClick) {
1977
1980
  p.item = h, p.onclick = function (e, t) {
@@ -1999,7 +2002,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1999
2002
  DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
2000
2003
  }
2001
2004
  if (h.items && !h.disabled) {
2002
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.yb(e, t); }; };
2005
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
2003
2006
  p.ontouchend = y(h, p);
2004
2007
  }
2005
2008
  if (h.onclick)
@@ -2035,13 +2038,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2035
2038
  }
2036
2039
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2037
2040
  var g = document.createElement("span");
2038
- if (g.className = a.xb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2041
+ if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2039
2042
  var b = document.createElement("img");
2040
2043
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2041
2044
  }
2042
2045
  if (h.icon) {
2043
2046
  var D = document.createElement("span");
2044
- D.className = a.xb("item_icon");
2047
+ D.className = a.yb("item_icon");
2045
2048
  var x = document.createElement("i");
2046
2049
  x.className = h.icon, D.appendChild(x), p.appendChild(D);
2047
2050
  }
@@ -2051,7 +2054,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2051
2054
  var P = document.createElementNS(w, "use");
2052
2055
  P.setAttribute("href", h.symbol), C.appendChild(P);
2053
2056
  var k = document.createElement("span");
2054
- k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2057
+ k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2055
2058
  }
2056
2059
  var _ = function (e, i) {
2057
2060
  return function () {
@@ -2061,7 +2064,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2061
2064
  return;
2062
2065
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2063
2066
  }
2064
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.yb(n, i); }, 300));
2067
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300));
2065
2068
  };
2066
2069
  };
2067
2070
  p.onmouseover = _(h, p), f.appendChild(p);
@@ -2070,7 +2073,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2070
2073
  }
2071
2074
  }
2072
2075
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2073
- d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.wb.visible = !0, a.wb.source = i, d.style.display = "";
2076
+ d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.xb.visible = !0, a.xb.source = i, d.style.display = "";
2074
2077
  var M = d.offsetHeight, T = d.offsetWidth;
2075
2078
  d.style.display = "none";
2076
2079
  var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
@@ -2098,23 +2101,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2098
2101
  else
2099
2102
  d.style.left = e + "px";
2100
2103
  }(), o.parentLink) {
2101
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + N.offsetWidth, z = R.y - I;
2102
- O + T > H && (O = Math.max(0, R.x - T));
2103
- var U = document.body.scrollTop + document.documentElement.scrollTop;
2104
- z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = O + "px", d.style.top = z + "px";
2104
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), U = O.x + N.offsetWidth, z = O.y - I;
2105
+ U + T > H && (U = Math.max(0, O.x - T));
2106
+ var R = document.body.scrollTop + document.documentElement.scrollTop;
2107
+ z + M - R > A && (z = Math.max(0, A - M + R)), d.style.left = U + "px", d.style.top = z + "px";
2105
2108
  }
2106
- d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
2109
+ d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
2107
2110
  }
2108
- }, this.yb = function (e, t) {
2111
+ }, this.zb = function (e, t) {
2109
2112
  var i = e, n = t.source;
2110
- if ((!a.wb.submenu || a.wb.submenu.item !== e) && (a.wb.submenu && a.wb.submenu.item !== e && (DayPilot.Util.removeClass(a.wb.submenu.link.parentNode, a.xb("item_haschildren_active")), a.wb.submenu.menu.hide(), a.wb.submenu = null), e.items)) {
2113
+ if ((!a.xb.submenu || a.xb.submenu.item !== e) && (a.xb.submenu && a.xb.submenu.item !== e && (DayPilot.Util.removeClass(a.xb.submenu.link.parentNode, a.yb("item_haschildren_active")), a.xb.submenu.menu.hide(), a.xb.submenu = null), e.items)) {
2111
2114
  var o = a.cloneOptions();
2112
- o.items = e.items, a.wb.submenu = {}, a.wb.submenu.menu = new DayPilot.Menu(o), a.wb.submenu.menu.zb = a, a.wb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.wb.submenu.item = e, a.wb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.xb("item_haschildren_active"));
2115
+ o.items = e.items, a.xb.submenu = {}, a.xb.submenu.menu = new DayPilot.Menu(o), a.xb.submenu.menu.Ab = a, a.xb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.xb.submenu.item = e, a.xb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.yb("item_haschildren_active"));
2113
2116
  }
2114
- }, this.xb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2115
- e = e || {}, this.wb.submenu && this.wb.submenu.menu.hide();
2117
+ }, this.yb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2118
+ e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide();
2116
2119
  var i = t.waitingSubmenu;
2117
- if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.wb.div && this.wb.div.parentNode === document.body && document.body.removeChild(this.wb.div), n && (DayPilot.de(n), n = null), a.wb.visible = !1, a.wb.source = null, a.zb && e.hideParent && a.zb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2120
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.xb.div && this.xb.div.parentNode === document.body && document.body.removeChild(this.xb.div), n && (DayPilot.de(n), n = null), a.xb.visible = !1, a.xb.source = null, a.Ab && e.hideParent && a.Ab.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2118
2121
  var o = {};
2119
2122
  this.onHide(o);
2120
2123
  }
@@ -2125,31 +2128,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2125
2128
  this[r] = o[r];
2126
2129
  }, DayPilot.MenuBar = function (e, t) {
2127
2130
  var i = this;
2128
- t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Aa = !1;
2131
+ t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ba = !1;
2129
2132
  for (var a in t)
2130
2133
  this[a] = t[a];
2131
- this.Ab = function (e) { return this.theme + "_" + e; }, this.s = function () {
2134
+ this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () {
2132
2135
  this.nav.top = document.getElementById(e);
2133
2136
  var t = this.nav.top;
2134
- t.className = this.Ab("main"), DayPilot.list(i.items).forEach(function (e) {
2137
+ t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) {
2135
2138
  var a = document.createElement("span");
2136
- a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Ab("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2139
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Bb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2137
2140
  if (i.active && i.active.item === e)
2138
- i.Bb();
2141
+ i.Cb();
2139
2142
  else if (e.children)
2140
- return void i.Cb(a);
2143
+ return void i.Db(a);
2141
2144
  if ("function" == typeof e.onClick) {
2142
2145
  var n = {};
2143
2146
  n.item = e, n.originalEvent = t, e.onClick(n);
2144
2147
  }
2145
- }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Cb(a); }, t.appendChild(a), i.elements.items.push(a);
2148
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Db(a); }, t.appendChild(a), i.elements.items.push(a);
2146
2149
  });
2147
- }, this.Bb = function () { var e = i.Ab("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Db = function (e) { return !!i.active && i.active.item === e.data; }, this.Cb = function (e) {
2148
- if (!i.Db(e)) {
2149
- i.Bb();
2150
+ }, this.Cb = function () { var e = i.Bb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Eb = function (e) { return !!i.active && i.active.item === e.data; }, this.Db = function (e) {
2151
+ if (!i.Eb(e)) {
2152
+ i.Cb();
2150
2153
  var t = e.data, a = i.active = {};
2151
2154
  a.item = t, a.div = e;
2152
- var n = i.Ab("item_active");
2155
+ var n = i.Bb("item_active");
2153
2156
  DayPilot.Util.addClass(e, n);
2154
2157
  var o = DayPilot.abs(e);
2155
2158
  if (t.children) {
@@ -2159,8 +2162,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2159
2162
  }
2160
2163
  DayPilot.MenuBar.active = i;
2161
2164
  }
2162
- }, this.init = function () { return this.s(), this.Aa = !0, this; }, this.dispose = function () { this.Aa && (this.nav.top.innerHTML = "", this.elements.items = []); };
2163
- }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Bb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2165
+ }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); };
2166
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Cb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2164
2167
  if (!e || !e.touches)
2165
2168
  return null;
2166
2169
  var t = e.touches[0], i = {};
@@ -2169,13 +2172,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2169
2172
  if (e = e || {}, e.calendar) {
2170
2173
  var i = DayPilot.Menu.active;
2171
2174
  if (i) {
2172
- var a = i.wb.source;
2175
+ var a = i.xb.source;
2173
2176
  a && a.calendar === e.calendar && t.menuClean();
2174
2177
  }
2175
2178
  }
2176
2179
  else
2177
2180
  t.menuClean();
2178
- }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
2181
+ }, t.handlersRegistered || "undefined" == typeof document || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "wheel", t.wheel), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
2179
2182
  }
2180
2183
  }(DayPilot), "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
2181
2184
  "use strict";
@@ -2247,32 +2250,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2247
2250
  "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) {
2248
2251
  this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
2249
2252
  var t = this;
2250
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Eb = !1, this.Fb = null, this.Gb = null, this.showHtml = function (e) {
2253
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) {
2251
2254
  if (DayPilot.ModalStatic.displayed(this))
2252
2255
  throw "This modal dialog is already displayed.";
2253
- if (this.div || this.Hb(), this.$a(), this.useIframe) {
2256
+ if (this.div || this.Ib(), this._a(), this.useIframe) {
2254
2257
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2255
2258
  window.setTimeout(t(this, e), 0);
2256
2259
  }
2257
2260
  else
2258
2261
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2259
- this.$a(), this.Ib(), this.Jb();
2262
+ this._a(), this.Jb(), this.Kb();
2260
2263
  }, this.showUrl = function (e) {
2261
2264
  if (DayPilot.ModalStatic.displayed(this))
2262
2265
  throw "This modal dialog is already displayed.";
2263
2266
  if (this.useIframe) {
2264
- this.div || this.Hb();
2267
+ this.div || this.Ib();
2265
2268
  var i = this.loadingHtml;
2266
- i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Kb), this.iframe.src = e, this.$a(), this.Ib(), this.Jb();
2269
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Lb), this.iframe.src = e, this._a(), this.Jb(), this.Kb();
2267
2270
  }
2268
2271
  else
2269
- t.Lb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2270
- }, this.Jb = function () {
2272
+ t.Mb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2273
+ }, this.Kb = function () {
2271
2274
  if ("function" == typeof t.onShow) {
2272
2275
  var e = {};
2273
- e.root = t.Mb(), e.modal = t, t.onShow(e);
2276
+ e.root = t.Nb(), e.modal = t, t.onShow(e);
2274
2277
  }
2275
- }, this.Mb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Lb = function (e) {
2278
+ }, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) {
2276
2279
  var t = new XMLHttpRequest;
2277
2280
  if (t) {
2278
2281
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2290,30 +2293,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2290
2293
  window.console && console.log("HTTP error " + t.status);
2291
2294
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2292
2295
  }
2293
- }, this.$a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Ob(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Kb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2294
- var e = function () { return t.Nb().y; }, i = function () { return t.Nb().x; };
2296
+ }, this._a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Pb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Lb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2297
+ var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; };
2295
2298
  if (this.useIframe) {
2296
- for (var a = i() - 40, n = this.width; n < a && this.Pb(); n += 10)
2299
+ for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
2297
2300
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2298
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Qb(); r += 10)
2301
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
2299
2302
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2300
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Kb);
2303
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
2301
2304
  }
2302
2305
  else
2303
2306
  this.div.style.height = "";
2304
- }, this.Pb = function () {
2307
+ }, this.Qb = function () {
2305
2308
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
2306
2309
  var o = a[n].offsetLeft + a[n].offsetWidth;
2307
2310
  i = Math.max(i, o);
2308
2311
  }
2309
2312
  return i > t.clientWidth;
2310
- }, this.Qb = function () {
2313
+ }, this.Rb = function () {
2311
2314
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
2312
2315
  var o = a[n].offsetTop + a[n].offsetHeight;
2313
2316
  i = Math.max(i, o);
2314
2317
  }
2315
2318
  return i > t.clientHeight;
2316
- }, this.Nb = function () {
2319
+ }, this.Ob = function () {
2317
2320
  var e = document;
2318
2321
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2319
2322
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2321,32 +2324,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2321
2324
  }
2322
2325
  var t = e.body.clientWidth, i = e.body.clientHeight;
2323
2326
  return { x: t, y: i };
2324
- }, this.Ib = function () { this.Eb || (this.re(window, "resize", this.Rb), this.re(window, "scroll", this.Sb), this.dragDrop && (this.re(document, "mousemove", this.Tb), this.re(document, "mouseup", this.Ub)), this.Eb = !0); }, this.Vb = function () { this.ue(window, "resize", this.Rb), this.ue(window, "scroll", this.Sb), this.dragDrop && (this.ue(document, "mousemove", this.Tb), this.ue(document, "mouseup", this.Ub)), this.Eb = !1; }, this.Wb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Xb(), t.Gb = t.mc(e || window.event), t.Fb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Tb = function (e) {
2325
- if (t.Gb) {
2326
- var e = e || window.event, i = t.mc(e), a = i.x - t.Gb.x, n = i.y - t.Gb.y;
2327
- t.div.style.marginLeft = "0px", t.div.style.top = t.Fb.y + n + "px", t.div.style.left = t.Fb.x + a + "px";
2327
+ }, this.Jb = function () { this.Fb || (this.re(window, "resize", this.Sb), this.re(window, "scroll", this.Tb), this.dragDrop && (this.re(document, "mousemove", this.Ub), this.re(document, "mouseup", this.Vb)), this.Fb = !0); }, this.Wb = function () { this.ue(window, "resize", this.Sb), this.ue(window, "scroll", this.Tb), this.dragDrop && (this.ue(document, "mousemove", this.Ub), this.ue(document, "mouseup", this.Vb)), this.Fb = !1; }, this.Xb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Yb(), t.Hb = t.mc(e || window.event), t.Gb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Ub = function (e) {
2328
+ if (t.Hb) {
2329
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
2330
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
2328
2331
  }
2329
- }, this.Ub = function (e) { t.Gb && (t.Yb(), t.div.style.cursor = null, t.Gb = null); }, this.Xb = function () {
2332
+ }, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () {
2330
2333
  if (this.useIframe) {
2331
2334
  var e = document.createElement("div");
2332
2335
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
2333
2336
  }
2334
- }, this.Yb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Rb = function () { t.Zb(), t.Ob(); }, this.Sb = function () { t.Zb(); }, this.Ob = function () {
2337
+ }, this.Zb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Sb = function () { t.$b(), t.Pb(); }, this.Tb = function () { t.$b(); }, this.Pb = function () {
2335
2338
  if (!t.left && t.div) {
2336
2339
  var e = t.div.offsetWidth;
2337
2340
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2338
2341
  }
2339
- }, this.Zb = function () {
2342
+ }, this.$b = function () {
2340
2343
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2341
- var e = t.$b.scrollY();
2344
+ var e = t._b.scrollY();
2342
2345
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2343
2346
  }
2344
- }, this.$b = {}, this.$b.container = function () { return t.container || document.body; }, this.$b.scrollY = function () { var e = t.$b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2347
+ }, this._b = {}, this._b.container = function () { return t.container || document.body; }, this._b.scrollY = function () { var e = t._b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2345
2348
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2346
2349
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2347
2350
  return t;
2348
- }, this.Hb = function () { var e = t.$b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Wb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t._b || (t.stretch(), t._b = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2349
- for (var e = t.Mb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2351
+ }, this.Ib = function () { var e = t._b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Xb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.bc || (t.stretch(), t.bc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2352
+ for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2350
2353
  var o = i[n], r = o.name;
2351
2354
  if (r) {
2352
2355
  var s = o.value;
@@ -2354,11 +2357,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2354
2357
  }
2355
2358
  }
2356
2359
  t.close(a);
2357
- }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Vb(), t.bc(t.div), t.bc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.bc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.cc = function () {
2360
+ }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Wb(), t.cc(t.div), t.cc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.cc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.dc = function () {
2358
2361
  if (e)
2359
2362
  for (var t in e)
2360
2363
  this[t] = e[t];
2361
- }, this.cc();
2364
+ }, this.dc();
2362
2365
  }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) {
2363
2366
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2364
2367
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2470,11 +2473,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2470
2473
  t.stretch();
2471
2474
  }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
2472
2475
  var r = function (e) {
2473
- this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.dc = [], this.ec = null, this.canceling = !1, this.fc = [], this.f = [], this.gc = null, e = e || {};
2476
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.ec = [], this.fc = null, this.canceling = !1, this.gc = [], this.f = [], this.hc = null, e = e || {};
2474
2477
  for (var t in e)
2475
2478
  this[t] = e[t];
2476
2479
  };
2477
- r.prototype.create = function () { return this.load(), this.render(), this.gc; }, r.prototype.render = function () { var e = this; this.gc = document.createElement("div"), this.dc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2480
+ r.prototype.create = function () { return this.load(), this.render(), this.hc; }, r.prototype.render = function () { var e = this; this.hc = document.createElement("div"), this.ec.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2478
2481
  var t = this.theme, i = this, a = document.createElement("div");
2479
2482
  if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
2480
2483
  var n = document.createElement("div");
@@ -2482,13 +2485,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2482
2485
  }
2483
2486
  var o = this.createInteractive(e);
2484
2487
  o.onInput = function (e) {
2485
- if (e = e || {}, i.hc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2488
+ if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2486
2489
  var t = {};
2487
2490
  t.result = i.serialize(), i.onChange(t);
2488
2491
  }
2489
- }, o.onBlur = function () { i.canceling || i.hc(o); }, o.apply(e), o.gc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.gc.appendChild(a);
2490
- }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.hc(i); t = t && a; }), t; }, r.prototype.hc = function (e, t) {
2491
- function i() { e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.ic = t, e.gc.appendChild(t); }
2492
+ }, o.onBlur = function () { i.canceling || i.ic(o); }, o.apply(e), o.hc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.hc.appendChild(a);
2493
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.ic(i); t = t && a; }), t; }, r.prototype.ic = function (e, t) {
2494
+ function i() { e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.jc = t, e.hc.appendChild(t); }
2492
2495
  t = t || {};
2493
2496
  var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
2494
2497
  if (d) {
@@ -2496,11 +2499,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2496
2499
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2497
2500
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2498
2501
  if (c.valid)
2499
- clearTimeout(this.fc[o.field]), e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.remove(u);
2502
+ clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
2500
2503
  else if (!n)
2501
2504
  if (a) {
2502
2505
  var f = 1e3;
2503
- clearTimeout(this.fc[o.field]), this.fc[o.field] = setTimeout(function () { i(); }, f);
2506
+ clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
2504
2507
  }
2505
2508
  else
2506
2509
  i();
@@ -2520,34 +2523,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2520
2523
  }
2521
2524
  for (var n in i)
2522
2525
  this.setValue(n, i[n]);
2523
- }, r.prototype.setValue = function (e, t) { this.dc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.ec ? this.ec : this.dc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2526
+ }, r.prototype.setValue = function (e, t) { this.ec.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.fc ? this.fc : this.ec).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2524
2527
  var i = this, a = this.getFieldType(e), n = [];
2525
2528
  if ("radio" === a) {
2526
2529
  if (e.name) {
2527
2530
  var o = new s;
2528
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
2531
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2529
2532
  }
2530
- e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.dc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2533
+ e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.ec.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2531
2534
  }
2532
2535
  else if ("title" === a) {
2533
2536
  var o = new s;
2534
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
2537
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.ec.push(o), n.push(o);
2535
2538
  }
2536
2539
  else if ("image" === a) {
2537
2540
  var o = new s;
2538
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2541
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2539
2542
  }
2540
2543
  else if ("html" === a) {
2541
2544
  var o = new s;
2542
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2545
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2543
2546
  }
2544
2547
  else if ("scrollable" === a) {
2545
2548
  var o = new s;
2546
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2549
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.ec.push(o), n.push(o);
2547
2550
  }
2548
2551
  else {
2549
2552
  var o = new s;
2550
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.dc.push(o), n.push(o);
2553
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.ec.push(o), n.push(o);
2551
2554
  }
2552
2555
  return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n;
2553
2556
  }, r.prototype.doOnKey = function (e) {
@@ -2612,21 +2615,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2612
2615
  }
2613
2616
  i || (e.preventDefault(), e.stopPropagation());
2614
2617
  }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i;
2615
- }, "time": function () { return t.jc(e); }, "datetime": function () { return t.kc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.lc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.lc && (t = a.lc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2618
+ }, "time": function () { return t.kc(e); }, "datetime": function () { return t.lc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.nc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.nc && (t = a.nc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2616
2619
  var i = new l;
2617
2620
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2618
2621
  var a = document.createElement("label"), n = document.createElement("input");
2619
- n.type = "radio", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2622
+ n.type = "radio", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2620
2623
  var o = document.createTextNode(e.text);
2621
2624
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2622
2625
  if (!n.checked)
2623
2626
  return {};
2624
- var t = n.lc, i = {};
2627
+ var t = n.nc, i = {};
2625
2628
  return i[e.field] = t, i;
2626
2629
  }, i;
2627
- }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2630
+ }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.nc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2628
2631
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2629
- }, r.prototype.jc = function (e) {
2632
+ }, r.prototype.kc = function (e) {
2630
2633
  var t = this, i = new l;
2631
2634
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2632
2635
  var a = [], n = e.data.timeInterval || 15;
@@ -2637,7 +2640,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2637
2640
  }
2638
2641
  var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create();
2639
2642
  return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i;
2640
- }, r.prototype.kc = function (e) {
2643
+ }, r.prototype.lc = function (e) {
2641
2644
  var t = this, i = new l;
2642
2645
  i.apply = function (e) {
2643
2646
  i.row = e;
@@ -2687,9 +2690,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2687
2690
  return i.searchable = f, f.create();
2688
2691
  }(), o = document.createElement("div");
2689
2692
  return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i;
2690
- }, r.prototype.findRowsByField = function (e) { return this.dc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2691
- var i = this.ec ? this.ec : this.dc, a = i.indexOf(e);
2692
- return this.ec = i.map(function (i) {
2693
+ }, r.prototype.findRowsByField = function (e) { return this.ec.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2694
+ var i = this.fc ? this.fc : this.ec, a = i.indexOf(e);
2695
+ return this.fc = i.map(function (i) {
2693
2696
  if (i !== e)
2694
2697
  return i;
2695
2698
  if (e.propsEqual(t))
@@ -2698,11 +2701,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2698
2701
  for (var n in t)
2699
2702
  a[n] = t[n];
2700
2703
  return a;
2701
- }), this.ec[a];
2702
- }, r.prototype.updateInteractive = function (e) { var t = this.ec.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2704
+ }), this.fc[a];
2705
+ }, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2703
2706
  var e = this;
2704
- if (this.updateDependentState(), this.ec) {
2705
- this.ec.filter(function (t, i) { return e.dc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.dc = this.ec, this.ec = null;
2707
+ if (this.updateDependentState(), this.fc) {
2708
+ this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
2706
2709
  }
2707
2710
  }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () {
2708
2711
  var e = {};
@@ -2725,18 +2728,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2725
2728
  return !0;
2726
2729
  }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
2727
2730
  var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) {
2728
- this.data = [], this.name = null, this.theme = "searchable_default", this.nc = !1, this.listZIndex = 1e5, this.onSelect = null, this.oc = null, this.pc = null, this.qc = !1, this.rc = null, this.sc = null, this.o = [], this.tc = null, e = e || {};
2729
- var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.oc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2730
- Object.defineProperty(this, "selected", { get: function () { return this.oc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.nc; }, set: function (e) { this.nc = e, this.rc && (this.rc.disabled = e, e && this.uc()); } });
2731
+ this.data = [], this.name = null, this.theme = "searchable_default", this.oc = !1, this.listZIndex = 1e5, this.onSelect = null, this.pc = null, this.qc = null, this.rc = !1, this.sc = null, this.tc = null, this.p = [], this.uc = null, e = e || {};
2732
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.pc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2733
+ Object.defineProperty(this, "selected", { get: function () { return this.pc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.oc; }, set: function (e) { this.oc = e, this.sc && (this.sc.disabled = e, e && this.vc()); } });
2731
2734
  for (var a in e)
2732
2735
  i[a] || (this[a] = e[a]);
2733
2736
  for (var a in e)
2734
2737
  i[a] && i[a].post(e[a]);
2735
2738
  };
2736
- d.prototype.select = function (e) { return this.oc = this.data.find(function (t) { return t.id === e; }), this.vc(!1), this; }, d.prototype.create = function () {
2739
+ d.prototype.select = function (e) { return this.pc = this.data.find(function (t) { return t.id === e; }), this.wc(!1), this; }, d.prototype.create = function () {
2737
2740
  function e(e) {
2738
2741
  var i = l.strategy;
2739
- "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.pc = null, l.o = [];
2742
+ "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.qc = null, l.p = [];
2740
2743
  var n = null;
2741
2744
  l.data.forEach(function (i) {
2742
2745
  var o = i.name || i.id;
@@ -2747,27 +2750,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2747
2750
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2748
2751
  return;
2749
2752
  var r = document.createElement("div");
2750
- r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.oc && (l.pc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.pc !== r && (l.pc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.o.push(r);
2751
- }), l.pc || (l.pc = n), t();
2753
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.pc && (l.qc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.qc !== r && (l.qc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r);
2754
+ }), l.qc || (l.qc = n), t();
2752
2755
  }
2753
- function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.pc && (l.pc.className += " " + l.theme + "_list_item_highlight", t && !i(l.pc, h) && l.pc.scrollIntoView()); }
2756
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.qc && (l.qc.className += " " + l.theme + "_list_item_highlight", t && !i(l.qc, h) && l.qc.scrollIntoView()); }
2754
2757
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2755
- function a(e) { var t = e.item; l.oc = t, l.vc(!0), o(), r(); }
2756
- function n() { l.uc(); }
2757
- function o() { l.p(); }
2758
- function r() { l.qc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2759
- function s() { l.qc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2758
+ function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); }
2759
+ function n() { l.vc(); }
2760
+ function o() { l.q(); }
2761
+ function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2762
+ function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2760
2763
  var l = this, d = this, c = document.createElement("div");
2761
2764
  c.className = this.theme + "_main", c.style.position = "relative";
2762
2765
  var u = document.createElement("div");
2763
- u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.qc ? (l.focus(), s()) : (n(), r()); });
2766
+ u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.rc ? (l.focus(), s()) : (n(), r()); });
2764
2767
  var h = document.createElement("div");
2765
2768
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2766
2769
  var f = document.createElement("input");
2767
- f.type = "hidden", f.name = this.name, f.searchable = d, this.tc = f;
2770
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f;
2768
2771
  var m = document.createElement("input");
2769
- return m.type = "text", m.className = this.theme + "_input", m.disabled = this.nc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2770
- if (l.qc) {
2772
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.oc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2773
+ if (l.rc) {
2771
2774
  if ("Enter" === e.key)
2772
2775
  return;
2773
2776
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2775,24 +2778,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2775
2778
  s();
2776
2779
  }
2777
2780
  if ("ArrowDown" === e.key) {
2778
- var i = d.o.indexOf(d.pc);
2779
- i + 1 < d.o.length && (d.pc = d.o[i + 1]), t();
2781
+ var i = d.p.indexOf(d.qc);
2782
+ i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
2780
2783
  }
2781
2784
  else if ("ArrowUp" === e.key) {
2782
- var i = d.o.indexOf(d.pc);
2783
- i - 1 >= 0 && (d.pc = d.o[i - 1]), t();
2785
+ var i = d.p.indexOf(d.qc);
2786
+ i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
2784
2787
  }
2785
2788
  else
2786
- "Enter" === e.key ? l.pc ? (e.stopPropagation(), a(l.pc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2787
- }), this.rc = m, this.sc = h, this.oc || (this.oc = this.data[0], this.oc && (m.value = this.oc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2788
- }, d.prototype.uc = function () { this.p(), this.oc ? this.rc.value = this.oc.name : (this.rc.value = "", this.vc(!0)); }, d.prototype.focus = function () { this.qc = !0, this.rc.setAttribute("readonly", "readonly"), this.rc.focus(), this.uc(); }, d.prototype.p = function () { this.sc.style.display = "none"; }, d.prototype.vc = function (e) {
2789
- if (this.tc.value = this.selected ? this.selected.id : null, this.oc ? this.rc.value = this.oc.name : this.rc.value = "", "function" == typeof this.onSelect) {
2789
+ "Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2790
+ }), this.sc = m, this.tc = h, this.pc || (this.pc = this.data[0], this.pc && (m.value = this.pc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2791
+ }, d.prototype.vc = function () { this.q(), this.pc ? this.sc.value = this.pc.name : (this.sc.value = "", this.wc(!0)); }, d.prototype.focus = function () { this.rc = !0, this.sc.setAttribute("readonly", "readonly"), this.sc.focus(), this.vc(); }, d.prototype.q = function () { this.tc.style.display = "none"; }, d.prototype.wc = function (e) {
2792
+ if (this.uc.value = this.selected ? this.selected.id : null, this.pc ? this.sc.value = this.pc.name : this.sc.value = "", "function" == typeof this.onSelect) {
2790
2793
  var t = { control: this, ui: e };
2791
2794
  this.onSelect(t);
2792
2795
  }
2793
2796
  };
2794
2797
  var c = function (e) {
2795
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.wc = null, this.dc = [], e = e || {};
2798
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.xc = null, this.ec = [], e = e || {};
2796
2799
  for (var t in e)
2797
2800
  this[t] = e[t];
2798
2801
  };
@@ -2803,11 +2806,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2803
2806
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2804
2807
  var a = document.createElement("div");
2805
2808
  a.className = this.theme + "_table";
2806
- var n = this.xc();
2809
+ var n = this.yc();
2807
2810
  a.appendChild(n);
2808
- var o = e.yc({});
2811
+ var o = e.zc({});
2809
2812
  o.spacer = !0;
2810
- var r = this.zc(o);
2813
+ var r = this.Ac(o);
2811
2814
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2812
2815
  var s = document.createElement("div");
2813
2816
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2821,18 +2824,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2821
2824
  var n = {};
2822
2825
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2823
2826
  }
2824
- var o = e.yc(a);
2825
- e.dc.push(o), e.Ac(), e.Bc();
2827
+ var o = e.zc(a);
2828
+ e.ec.push(o), e.Bc(), e.Cc();
2826
2829
  }
2827
2830
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2828
- }, c.prototype.xc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Cc = function () { var e = this.item.max || 0; return !!(e && this.dc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.dc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2831
+ }, c.prototype.yc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Dc = function () { var e = this.item.max || 0; return !!(e && this.ec.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.ec.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2829
2832
  if ("[object Array]" !== Object.prototype.toString.call(e))
2830
2833
  throw new Error("Array expected");
2831
- this.data = e, this.Dc(), this.Ac();
2832
- }, c.prototype.Ec = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Cc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Dc = function () { var e = this; this.dc = [], this.data.forEach(function (t) { var i = e.yc(t); e.dc.push(i); }); }, c.prototype.Fc = function (e) { var t = this, i = t.dc.indexOf(e); t.dc.splice(i, 1); }, c.prototype.yc = function (e) {
2834
+ this.data = e, this.Ec(), this.Bc();
2835
+ }, c.prototype.Fc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Dc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Ec = function () { var e = this; this.ec = [], this.data.forEach(function (t) { var i = e.zc(t); e.ec.push(i); }); }, c.prototype.Gc = function (e) { var t = this, i = t.ec.indexOf(e); t.ec.splice(i, 1); }, c.prototype.zc = function (e) {
2833
2836
  var t = this, i = {};
2834
2837
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2835
- var n = a.id, o = e[n], r = t.Gc(a);
2838
+ var n = a.id, o = e[n], r = t.Hc(a);
2836
2839
  if ("undefined" == typeof o)
2837
2840
  if ("text" === r)
2838
2841
  o = "";
@@ -2845,19 +2848,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2845
2848
  var l = {};
2846
2849
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2847
2850
  }), i;
2848
- }, c.prototype.Gc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Ac = function () {
2851
+ }, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () {
2849
2852
  var e = this;
2850
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.dc.forEach(function (t) { var i = e.zc(t); e.nav.body.appendChild(i); }), 0 === this.dc.length) {
2851
- var t = e.Hc();
2853
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.ec.forEach(function (t) { var i = e.Ac(t); e.nav.body.appendChild(i); }), 0 === this.ec.length) {
2854
+ var t = e.Ic();
2852
2855
  e.nav.after.appendChild(t);
2853
2856
  }
2854
- this.Ec();
2855
- }, c.prototype.Hc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.zc = function (e) {
2857
+ this.Fc();
2858
+ }, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) {
2856
2859
  var t = this, i = document.createElement("div");
2857
2860
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2858
2861
  var n = document.createElement("div");
2859
2862
  n.className = t.theme + "_cell";
2860
- var o = t.Ic(a);
2863
+ var o = t.Jc(a);
2861
2864
  if (e.spacer) {
2862
2865
  var r = document.createElement("div");
2863
2866
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2869,22 +2872,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2869
2872
  var a = document.createElement("div");
2870
2873
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2871
2874
  var n = document.createElement("span");
2872
- return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Fc(e), t.Ac(), t.Bc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2873
- }, c.prototype.Bc = function () {
2875
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Gc(e), t.Bc(), t.Cc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2876
+ }, c.prototype.Cc = function () {
2874
2877
  var e = this;
2875
2878
  if ("function" == typeof e.onInput) {
2876
2879
  var t = {};
2877
2880
  e.onInput(t);
2878
2881
  }
2879
- }, c.prototype.Ic = function (e) {
2882
+ }, c.prototype.Jc = function (e) {
2880
2883
  var t = this, i = e.type;
2881
2884
  if ("text" === i || "number" === i) {
2882
2885
  var a = document.createElement("input");
2883
- return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Bc(); }), a;
2886
+ return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Cc(); }), a;
2884
2887
  }
2885
2888
  if ("select" === i) {
2886
2889
  var n = document.createElement("select");
2887
- return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.lc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.lc && (e.value = a.lc), t.Bc(); }), n;
2890
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.nc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.nc && (e.value = a.nc), t.Cc(); }), n;
2888
2891
  }
2889
2892
  throw new Error("Unsupported item type: " + i);
2890
2893
  }, c.prototype.focus = function () { };
@@ -2895,9 +2898,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2895
2898
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2896
2899
  var e = {};
2897
2900
  e.Month = function (t, i) {
2898
- this.v = "2024.3.543-lite", this.nav = {};
2901
+ this.v = "2024.4.566-lite", this.nav = {};
2899
2902
  var a = this;
2900
- this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.N = !1, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Jc(), a.da(), "Full" === e.UpdateType && (a.Kc(), a.Lc()), a.ia(), a.show(), a.ja(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2903
+ this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.W(), a.Kc(), a.ea(), "Full" === e.UpdateType && (a.Lc(), a.Mc()), a.ja(), a.show(), a.ka(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2901
2904
  var t = null;
2902
2905
  if (e instanceof DayPilot.Event)
2903
2906
  t = e.data;
@@ -2906,7 +2909,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2906
2909
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
2907
2910
  t = e;
2908
2911
  }
2909
- a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.ra.notify();
2912
+ a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify();
2910
2913
  }, this.events.find = function (e) {
2911
2914
  if (!a.events.list)
2912
2915
  return null;
@@ -2934,7 +2937,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2934
2937
  a.events.list.splice(i, 1, e);
2935
2938
  }
2936
2939
  }
2937
- a.update(), a.ra.notify();
2940
+ a.update(), a.sa.notify();
2938
2941
  }, this.events.remove = function (e) {
2939
2942
  var t;
2940
2943
  if (e instanceof DayPilot.Event)
@@ -2948,7 +2951,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2948
2951
  i && (t = i.data);
2949
2952
  }
2950
2953
  var n = DayPilot.indexOf(a.events.list, t);
2951
- a.events.list.splice(n, 1), a.update(), a.ra.notify();
2954
+ a.events.list.splice(n, 1), a.update(), a.sa.notify();
2952
2955
  }, this.events.load = function (e, t, i) {
2953
2956
  var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
2954
2957
  var i, o = e.request;
@@ -2963,7 +2966,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2963
2966
  var s = {};
2964
2967
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
2965
2968
  return;
2966
- a.events.list = i, a.Aa && a.update();
2969
+ a.events.list = i, a.Ba && a.update();
2967
2970
  }
2968
2971
  };
2969
2972
  if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
@@ -2972,18 +2975,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2972
2975
  var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
2973
2976
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
2974
2977
  }
2975
- }, this.update = function (e) {
2976
- if (a.ab(e), this.Aa) {
2977
- if (a.N)
2978
+ }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.jb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
2979
+ if (a.bb(e), this.Ba) {
2980
+ if (a.O)
2978
2981
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
2979
2982
  if (this.cells) {
2980
- a.V(), a.Jc(), a.da(), a.Kc(), a.Lc(), a.ia(), a.s(), a.ja(), this.visible ? this.show() : this.hide();
2983
+ a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
2981
2984
  }
2982
2985
  }
2983
- }, this.db = null, this.ab = function (e) {
2986
+ }, this.eb = null, this.bb = function (e) {
2984
2987
  if (e) {
2985
2988
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
2986
- this.db = t;
2989
+ this.eb = t;
2987
2990
  for (var i in e)
2988
2991
  if (t[i]) {
2989
2992
  var n = t[i];
@@ -2992,14 +2995,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2992
2995
  else
2993
2996
  a[i] = e[i];
2994
2997
  }
2995
- }, this.eb = function () {
2996
- var e = this.db;
2998
+ }, this.fb = function () {
2999
+ var e = this.eb;
2997
3000
  for (var t in e) {
2998
3001
  var i = e[t];
2999
3002
  i.postInit && i.postInit();
3000
3003
  }
3001
- }, this.gb = {}, this.gb.events = [], this.hb = function (e) {
3002
- var t = this.gb.events, i = this.events.list[e], n = {};
3004
+ }, this.hb = {}, this.hb.events = [], this.ib = function (e) {
3005
+ var t = this.hb.events, i = this.events.list[e], n = {};
3003
3006
  for (var o in i)
3004
3007
  n[o] = i[o];
3005
3008
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3007,14 +3010,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3007
3010
  r.control = a, r.data = n, this.onBeforeEventRender(r);
3008
3011
  }
3009
3012
  t[e] = n;
3010
- }, this.da = function () {
3013
+ }, this.ea = function () {
3011
3014
  var e = this.events.list;
3012
3015
  if (e) {
3013
3016
  if (!DayPilot.isArray(e))
3014
3017
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3015
3018
  if ("function" == typeof this.onBeforeEventRender)
3016
3019
  for (var t = 0; t < e.length; t++)
3017
- this.hb(t);
3020
+ this.ib(t);
3018
3021
  for (var i = 0; i < e.length; i++) {
3019
3022
  var a = e[i];
3020
3023
  if ("object" != typeof a)
@@ -3027,31 +3030,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3027
3030
  if (!(n.getTime() > o.getTime()))
3028
3031
  for (var t = 0; t < this.rows.length; t++) {
3029
3032
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3030
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.gb.events[i]));
3033
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
3031
3034
  }
3032
3035
  }
3033
3036
  for (var l = 0; l < this.rows.length; l++) {
3034
3037
  var r = this.rows[l];
3035
- r.events.sort(this.ib);
3038
+ r.events.sort(this.jb);
3036
3039
  for (var d = 0; d < this.rows[l].events.length; d++) {
3037
3040
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3038
3041
  r.putIntoLine(c, u, h, l);
3039
3042
  }
3040
3043
  }
3041
3044
  }
3042
- }, this.V = function () {
3045
+ }, this.W = function () {
3043
3046
  for (var e = 0; e < this.elements.events.length; e++) {
3044
3047
  var t = this.elements.events[e];
3045
3048
  t.event = null, t.click = null, t.parentNode.removeChild(t);
3046
3049
  }
3047
3050
  this.elements.events = [];
3048
- }, this.ja = function () { this.Mc(); }, this.Mc = function () {
3051
+ }, this.ka = function () { this.Nc(); }, this.Nc = function () {
3049
3052
  this.elements.events = [];
3050
3053
  for (var e = 0; e < this.rows.length; e++)
3051
3054
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3052
3055
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3053
- this.Da(a[n]);
3054
- }, this.ib = function (e, t) {
3056
+ this.Ea(a[n]);
3057
+ }, this.jb = function (e, t) {
3055
3058
  if (!(e && t && e.start && t.start))
3056
3059
  return 0;
3057
3060
  var i = e.start().getTime() - t.start().getTime();
@@ -3073,9 +3076,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3073
3076
  var u = null;
3074
3077
  for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
3075
3078
  var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
3076
- v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.J("_shadow"));
3079
+ v.setAttribute("unselectable", "on"), v.style.position = "absolute", v.style.left = this.getCellWidth() * t + "%", v.style.width = this.getCellWidth() * h + "%", v.style.top = m + "px", v.style.height = p + "px", v.style.cursor = u, v.classList.add(a.K("_shadow"));
3077
3080
  var y = document.createElement("div");
3078
- y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.J("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
3081
+ y.setAttribute("unselectable", "on"), v.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.classList.add(a.K("_shadow_inner")), this.nav.top.appendChild(v), this.shadow.list.push(v), l -= h + 7 - this.getColCount(), t = 0, i++;
3079
3082
  }
3080
3083
  }, this.clearShadow = function () {
3081
3084
  if (this.shadow) {
@@ -3087,9 +3090,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3087
3090
  for (var i = this.headerHeight, a = 0; a < e; a++)
3088
3091
  i += this.rows[a].getHeight();
3089
3092
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3090
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Da = function (t) {
3093
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) {
3091
3094
  var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
3092
- u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.qa, u.oncontextmenu = a.Nc, u.onmousedown = function (i) {
3095
+ u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.K("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.K("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.K("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.ra, u.oncontextmenu = a.Oc, u.onmousedown = function (i) {
3093
3096
  i = i || window.event;
3094
3097
  var l = i.which || i.button;
3095
3098
  if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
@@ -3118,15 +3121,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3118
3121
  }
3119
3122
  }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); };
3120
3123
  var h = document.createElement("div");
3121
- if (h.setAttribute("unselectable", "on"), h.className = this.J("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
3124
+ if (h.setAttribute("unselectable", "on"), h.className = this.K("_event_inner"), "darker" === i.borderColor && i.backColor ? h.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : h.style.borderColor = i.borderColor, i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor), h.innerHTML = t.client.html(), u.appendChild(h), t.client.barVisible()) {
3122
3125
  var f = document.createElement("div");
3123
- f.setAttribute("unselectable", "on"), f.className = this.J("_event_bar"), f.style.position = "absolute";
3126
+ f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
3124
3127
  var m = document.createElement("div");
3125
- m.setAttribute("unselectable", "on"), m.className = this.J("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
3128
+ m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
3126
3129
  }
3127
3130
  if (t.client.deleteEnabled()) {
3128
3131
  var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
3129
- v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ta(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3132
+ v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.K("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ua(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3130
3133
  }
3131
3134
  var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
3132
3135
  if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
@@ -3134,7 +3137,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3134
3137
  g.e = u.event, g.div = u, a.onAfterEventRender(g);
3135
3138
  }
3136
3139
  this.elements.events.push(u), this.nav.events.appendChild(u);
3137
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Jc = function () {
3140
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () {
3138
3141
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3139
3142
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3140
3143
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
@@ -3162,9 +3165,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3162
3165
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3163
3166
  e += this.rows[t].getHeight();
3164
3167
  return e;
3165
- }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Fa = function () {
3168
+ }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ga = function () {
3166
3169
  var t = this.nav.top;
3167
- t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main");
3170
+ t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.K("_main");
3168
3171
  var i = document.createElement("div");
3169
3172
  this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i);
3170
3173
  var n = document.createElement("div");
@@ -3214,7 +3217,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3214
3217
  e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
3215
3218
  }
3216
3219
  };
3217
- }, this.ia = function () {
3220
+ }, this.ja = function () {
3218
3221
  this.nav.top.style.height = this.getHeight() + "px";
3219
3222
  for (var e = 0; e < this.cells.length; e++)
3220
3223
  for (var t = 0; t < this.cells[e].length; t++)
@@ -3234,7 +3237,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3234
3237
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3235
3238
  i.y++, t -= 7;
3236
3239
  return i.x = t, i;
3237
- }, this.Lc = function () {
3240
+ }, this.Mc = function () {
3238
3241
  var e = document.createElement("div");
3239
3242
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3240
3243
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3242,36 +3245,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3242
3245
  var i = document.createElement("div");
3243
3246
  i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
3244
3247
  var a = t + this.getWeekStart();
3245
- a > 6 && (a -= 7), i.className = this.J("_header");
3248
+ a > 6 && (a -= 7), i.className = this.K("_header");
3246
3249
  var o = document.createElement("div");
3247
- o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px",
3248
- o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3250
+ o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.K("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3249
3251
  for (var r = 0; r < this.rows.length; r++)
3250
- this.Oc(t, r, e);
3252
+ this.Pc(t, r, e);
3251
3253
  }
3252
- }, this.Kc = function () {
3254
+ }, this.Lc = function () {
3253
3255
  for (var e = 0; e < this.cells.length; e++)
3254
3256
  for (var t = 0; t < this.cells[e].length; t++)
3255
3257
  this.cells[e][t].onclick = null;
3256
3258
  this.nav.cells.innerHTML = "";
3257
- }, this.pa = function () { return 2 === a.api; }, this.Oc = function (t, i, o) {
3259
+ }, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) {
3258
3260
  var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null;
3259
3261
  d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l;
3260
3262
  var c = !a.isWeekend(s), u = {};
3261
3263
  u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u);
3262
3264
  var h = u.cell.properties, f = document.createElement("div");
3263
- if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.J("_cell"), h.business) {
3264
- var c = this.J("_cell_business");
3265
+ if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.K("_cell"), h.business) {
3266
+ var c = this.K("_cell_business");
3265
3267
  DayPilot.Util.addClass(f, c);
3266
3268
  }
3267
3269
  var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
3268
- m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.J("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () {
3269
- var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); };
3270
+ m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.K("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () {
3271
+ var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); };
3270
3272
  if ("Disabled" !== a.timeRangeSelectedHandling)
3271
3273
  return void e(s);
3272
3274
  };
3273
3275
  var p = document.createElement("div");
3274
- if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.J("_cell_header"), p.onclick = function (e) {
3276
+ if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) {
3275
3277
  if ("Enabled" === a.cellHeaderClickHandling) {
3276
3278
  e.stopPropagation();
3277
3279
  var t = {};
@@ -3292,12 +3294,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3292
3294
  for (var t = this.headerHeight, i = 0; i < e; i++)
3293
3295
  t += this.rows[i].getHeight();
3294
3296
  return t;
3295
- }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.qa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3297
+ }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.T, n, this.ajaxError); }, this.T = function (e) { a.U(e.responseText); }, this.R = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.S("EventClick", t, e); }, this.ra = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3296
3298
  var i = e.event;
3297
3299
  if (i && i.client.clickEnabled())
3298
- if (a.pa()) {
3300
+ if (a.qa()) {
3299
3301
  var n = {};
3300
- if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.ra.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3302
+ if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.sa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3301
3303
  return;
3302
3304
  switch (a.eventClickHandling) {
3303
3305
  case "CallBack":
@@ -3307,7 +3309,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3307
3309
  var o = i.client.contextMenu();
3308
3310
  o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
3309
3311
  }
3310
- "function" == typeof a.onEventClicked && a.ra.apply(function () { a.onEventClicked(n); });
3312
+ "function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
3311
3313
  }
3312
3314
  else
3313
3315
  switch (a.eventClickHandling) {
@@ -3316,7 +3318,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3316
3318
  break;
3317
3319
  case "JavaScript": a.onEventClick(i);
3318
3320
  }
3319
- }, this.Nc = function () { var e = this; return a.sa(e.event), !1; }, this.sa = function (e) {
3321
+ }, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) {
3320
3322
  if (this.event = e, !e.client.rightClickEnabled())
3321
3323
  return !1;
3322
3324
  var t = {};
@@ -3328,10 +3330,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3328
3330
  }
3329
3331
  return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
3330
3332
  }
3331
- }, this.ta = function (e) {
3332
- if (a.pa()) {
3333
+ }, this.ua = function (e) {
3334
+ if (a.qa()) {
3333
3335
  var t = {};
3334
- if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.ra.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3336
+ if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.sa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3335
3337
  return;
3336
3338
  switch (a.eventDeleteHandling) {
3337
3339
  case "CallBack":
@@ -3342,7 +3344,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3342
3344
  break;
3343
3345
  case "Update": a.events.remove(e);
3344
3346
  }
3345
- "function" == typeof a.onEventDeleted && a.ra.apply(function () { a.onEventDeleted(t); });
3347
+ "function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
3346
3348
  }
3347
3349
  else
3348
3350
  switch (a.eventDeleteHandling) {
@@ -3354,22 +3356,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3354
3356
  break;
3355
3357
  case "JavaScript": a.onEventDelete(e);
3356
3358
  }
3357
- }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3359
+ }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) {
3358
3360
  if (!t)
3359
3361
  throw "newStart is null";
3360
3362
  if (!i)
3361
3363
  throw "newEnd is null";
3362
3364
  var o = {};
3363
- o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o);
3364
- }, this.K = function (e, t, i, n, o, r) {
3365
+ o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o);
3366
+ }, this.L = function (e, t, i, n, o, r) {
3365
3367
  var s = e.start().getTimePart(), l = e.end().getDatePart();
3366
3368
  l.getTime() !== e.end().getTime() && (l = l.addDays(1));
3367
3369
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3368
3370
  c = c.addDays(-n);
3369
3371
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3370
- if (a.pa()) {
3372
+ if (a.qa()) {
3371
3373
  var p = {};
3372
- if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.ra.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3374
+ if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.sa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3373
3375
  return;
3374
3376
  switch (a.eventMoveHandling) {
3375
3377
  case "CallBack":
@@ -3377,7 +3379,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3377
3379
  break;
3378
3380
  case "Update": e.start(f), e.end(m), a.events.update(e);
3379
3381
  }
3380
- "function" == typeof a.onEventMoved && a.ra.apply(function () { a.onEventMoved(p); });
3382
+ "function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
3381
3383
  }
3382
3384
  else
3383
3385
  switch (a.eventMoveHandling) {
@@ -3392,14 +3394,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3392
3394
  if (!i)
3393
3395
  throw "newEnd is null";
3394
3396
  var n = {};
3395
- n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n);
3396
- }, this.I = function (e, t, i) {
3397
+ n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n);
3398
+ }, this.J = function (e, t, i) {
3397
3399
  var n = e.start().getTimePart(), o = e.end().getDatePart();
3398
3400
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3399
3401
  var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r);
3400
- if (a.pa()) {
3402
+ if (a.qa()) {
3401
3403
  var u = {};
3402
- if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.ra.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3404
+ if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.sa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3403
3405
  return;
3404
3406
  switch (a.eventResizeHandling) {
3405
3407
  case "CallBack":
@@ -3407,7 +3409,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3407
3409
  break;
3408
3410
  case "Update": e.start(d), e.end(c), a.events.update(e);
3409
3411
  }
3410
- "function" == typeof a.onEventResized && a.ra.apply(function () { a.onEventResized(u); });
3412
+ "function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
3411
3413
  }
3412
3414
  else
3413
3415
  switch (a.eventResizeHandling) {
@@ -3416,15 +3418,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3416
3418
  break;
3417
3419
  case "JavaScript": a.onEventResize(e, d, c);
3418
3420
  }
3419
- }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) {
3420
- if (this.pa()) {
3421
+ }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) {
3422
+ if (this.qa()) {
3421
3423
  var i = {};
3422
- if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.ra.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3424
+ if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.sa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3423
3425
  return;
3424
3426
  switch (a.timeRangeSelectedHandling) {
3425
3427
  case "CallBack": a.timeRangeSelectedCallBack(e, t);
3426
3428
  }
3427
- "function" == typeof a.onTimeRangeSelected && a.ra.apply(function () { a.onTimeRangeSelected(i); });
3429
+ "function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
3428
3430
  }
3429
3431
  else
3430
3432
  switch (a.timeRangeSelectedHandling) {
@@ -3433,9 +3435,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3433
3435
  break;
3434
3436
  case "JavaScript": a.onTimeRangeSelected(e, t);
3435
3437
  }
3436
- }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { a.ra.scope && a.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
3437
- var n = this._;
3438
- this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.N || (e.N = !0, e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.N; }, this.Za = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.fb = function () {
3438
+ }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { a.sa.scope && a.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== a.xssProtection; };
3439
+ var n = this.aa;
3440
+ this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.O || (e.O = !0, e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.$a = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.gb = function () {
3439
3441
  if (this.id && this.id.tagName)
3440
3442
  this.nav.top = this.id;
3441
3443
  else {
@@ -3444,7 +3446,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3444
3446
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3445
3447
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3446
3448
  }
3447
- }, this.lb = function () { this.Jc(), this.Fa(), this.Lc(), this.Za(), this.R("Init"); }, this.Ja = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.ab, this.internal.xssTextHtml = a.Ja, this.init = function () { return this.fb(), this.loadFromServer() ? void this.lb() : (this.Jc(), this.da(), this.Fa(), this.Lc(), this.s(), this.ja(), this.Za(), this.fireAfterRenderDetached(null, !1), this.Aa = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.ab(i);
3449
+ }, this.mb = function () { this.Kc(), this.Ga(), this.Mc(), this.$a(), this.S("Init"); }, this.Ka = function (e, t) { return a.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.bb, this.internal.xssTextHtml = a.Ka, this.init = function () { return this.gb(), this.loadFromServer() ? void this.mb() : (this.Kc(), this.ea(), this.Ga(), this.Mc(), this.t(), this.ka(), this.$a(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.bb(i);
3448
3450
  }, e.gMouseUp = function (t) {
3449
3451
  if (e.movingEvent) {
3450
3452
  var i = e.movingEvent;
@@ -3459,7 +3461,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3459
3461
  var a = e.movingEvent.event.calendar, n = e.movingEvent.event, o = a.shadow.start, r = a.shadow.position, s = e.movingEvent.offset;
3460
3462
  a.clearShadow(), e.movingEvent = null;
3461
3463
  var t = t || window.event;
3462
- return a.K(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
3464
+ return a.L(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
3463
3465
  }
3464
3466
  if (e.resizingEvent) {
3465
3467
  var i = e.resizingEvent;
@@ -3472,12 +3474,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3472
3474
  if (!i.event.calendar.shadow.start)
3473
3475
  return;
3474
3476
  var a = e.resizingEvent.event.calendar, n = e.resizingEvent.event, o = a.shadow.start, l = a.shadow.width;
3475
- return a.clearShadow(), e.resizingEvent = null, a.I(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
3477
+ return a.clearShadow(), e.resizingEvent = null, a.J(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
3476
3478
  }
3477
3479
  if (e.timeRangeSelecting) {
3478
3480
  if (e.timeRangeSelecting.moved) {
3479
3481
  var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
3480
- a.L(o, c), a.clearShadow();
3482
+ a.M(o, c), a.clearShadow();
3481
3483
  }
3482
3484
  e.timeRangeSelecting = null;
3483
3485
  }
@@ -3499,7 +3501,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3499
3501
  e && e.directive("daypilotMonth", ["$parse", function (e) {
3500
3502
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
3501
3503
  var n = new DayPilot.Month(i[0]);
3502
- n.ra.scope = t, n.init();
3504
+ n.sa.scope = t, n.init();
3503
3505
  var o = a["id"];
3504
3506
  o && (t[o] = n);
3505
3507
  var r = a["publishAs"];
@@ -3520,36 +3522,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3520
3522
  }
3521
3523
  }(), "undefined" == typeof DayPilot)
3522
3524
  var DayPilot = {};
3523
- "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3524
- if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3525
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
3526
+ "use strict";
3527
+ if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3525
3528
  DayPilot.Navigator = function (e, t) {
3526
- this.v = "2024.3.543-lite";
3529
+ this.v = "2024.4.566-lite";
3527
3530
  var i = this;
3528
- this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Qc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Qc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.pa = function () { return 2 === i.api; }, this.Kc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Lc = function (e, t) {
3531
+ this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.hb = {}, this.Qc = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (o.Rc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Sc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Rc() || (this.root.style.width = 7 * o.cellWidth() + this.Sc() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.qa = function () { return 2 === i.api; }, this.Lc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Tc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.Uc = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.Vc = function () {
3532
+ if (!o.Rc())
3533
+ return null;
3534
+ var e = 7;
3535
+ return this.showWeekNumbers && e++, 100 / e;
3536
+ }, this.Wc = function () { return o.Rc() ? null : o.cellWidth(); }, this.Xc = function (e) { return "number" != typeof e && (e = 1), o.Rc() ? this.Vc() * e : this.Wc() * e; }, this.Yc = function (e) { var t = o.Rc() ? "%" : "px"; return this.Xc(e) + t; }, this.Mc = function (e, t) {
3529
3537
  var a = {};
3530
3538
  a.cells = [], a.days = [], a.weeks = [];
3531
3539
  var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
3532
3540
  a.rowCount = h;
3533
- var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Qc();
3541
+ var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc();
3534
3542
  a.width = m;
3535
3543
  var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
3536
3544
  a.height = p;
3537
3545
  var v = document.createElement("div");
3538
- if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3539
- v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3546
+ if (o.Rc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3547
+ v.style.position = "absolute", o.Rc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3540
3548
  else {
3541
3549
  v.style.position = "relative";
3542
3550
  var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
3543
- a.top = y, a.left = 0;
3551
+ a.top = y, a.left = 0, a.leftPct = 0;
3544
3552
  }
3545
- v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, this.root.appendChild(v);
3553
+ v.className = this.K("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
3546
3554
  var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
3547
- b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Tc), v.appendChild(b), this.tl = b;
3555
+ b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Yc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.K("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Zc), v.appendChild(b), this.tl = b;
3548
3556
  var D = document.createElement("div");
3549
- D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Qc() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3557
+ D.style.position = "absolute", D.style.left = i.Yc(), D.style.top = "0px", D.style.width = i.Yc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3550
3558
  var x = document.createElement("div");
3551
- x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Qc() + "px", x.style.right = 6 * o.cellWidth() + this.Qc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.Uc), v.appendChild(x), this.tr = x;
3552
- var w = this.Qc();
3559
+ x.style.position = "absolute", x.style.left = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.right = i.Yc(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.Yc(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.$c), v.appendChild(x), this.tr = x;
3560
+ var w = (this.Sc(), i.showWeekNumbers ? 1 : 0);
3553
3561
  if (this.showWeekNumbers)
3554
3562
  for (var C = 0; C < h; C++) {
3555
3563
  var P = d.addDays(7 * C), k = null;
@@ -3566,53 +3574,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3566
3574
  default: throw "Unknown weekNumberAlgorithm value.";
3567
3575
  }
3568
3576
  var _ = document.createElement("div");
3569
- _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3577
+ _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Yc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3570
3578
  }
3571
3579
  for (var S = 0; S < 7; S++) {
3572
3580
  a.cells[S] = [];
3573
3581
  var _ = document.createElement("div");
3574
- _.style.position = "absolute", _.style.left = S * o.cellWidth() + w + "px", _.style.right = S * o.cellWidth() + w + "px", _.style.top = this.titleHeight + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.Vc(S) + "</span>", v.appendChild(_), a.days.push(_);
3582
+ _.style.position = "absolute", _.style.left = i.Yc(S + w), _.style.right = i.Yc(S + w), _.style.top = this.titleHeight + "px", _.style.width = i.Yc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.K("_dayheader"), _.innerHTML = "<span>" + this._c(S) + "</span>", v.appendChild(_), a.days.push(_);
3575
3583
  for (var C = 0; C < h; C++) {
3576
- var P = d.addDays(7 * C + S), M = this.Wc(P) && "none" !== this.Xc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3577
- if ("month" === this.Xc())
3584
+ var P = d.addDays(7 * C + S), M = this.ad(P) && "none" !== this.bd(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3585
+ if ("month" === this.bd())
3578
3586
  M = M && T;
3579
- else if ("day" === this.Xc())
3587
+ else if ("day" === this.bd())
3580
3588
  M = M && (T || r && A || s && H);
3581
- else if ("week" === this.Xc()) {
3589
+ else if ("week" === this.bd()) {
3582
3590
  var E = P.firstDayOfMonth() === n;
3583
3591
  M = M && (E || r && A || s && H);
3584
3592
  }
3585
3593
  var N = document.createElement("div");
3586
3594
  a.cells[S][C] = N;
3587
- var I = i.Yc(S, C), R = I.x, O = I.y;
3588
- N.day = P, N.x = S, N.y = C, N.left = R, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Rc(N, "cell"), P.getTime() === f.getTime() && T && this.Rc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Rc(N, "weekend"), N.style.position = "absolute", N.style.left = R + "px", N.style.right = R + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3589
- var z = document.createElement("div");
3590
- z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Rc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
3591
- var U = null;
3592
- if (this.cells && this.cells[P.toStringSortable()] && (U = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3593
- var B = {};
3594
- B.cell = U || {}, B.cell.day = P, B.cell.isCurrentMonth = T, B.cell.isToday = P.getTime() === f.getTime() && T, B.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), U ? (B.cell.html = U.html || P.getDay(), B.cell.cssClass = U.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), U = B.cell;
3595
+ var I = i.cd(S, C), O = I.x, U = I.y, z = o.Rc() ? "%" : "px";
3596
+ N.day = P, N.x = S, N.y = C, N.left = O, N.top = U, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.K(T ? "_day" : "_dayother"), i.Tc(N, "cell"), P.getTime() === f.getTime() && T && this.Tc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Tc(N, "weekend"), N.style.position = "absolute", N.style.left = O + z, N.style.right = O + z, N.style.top = U + "px", N.style.width = i.Yc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3597
+ var R = document.createElement("div");
3598
+ R.style.position = "absolute", R.className = P.getTime() === f.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), i.Tc(R, "cell_box"), R.style.left = "0px", R.style.top = "0px", R.style.right = "0px", R.style.bottom = "0px", N.appendChild(R);
3599
+ var B = null;
3600
+ if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3601
+ var j = {};
3602
+ j.cell = B || {}, j.cell.day = P, j.cell.isCurrentMonth = T, j.cell.isToday = P.getTime() === f.getTime() && T, j.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), B ? (j.cell.html = B.html || P.getDay(), j.cell.cssClass = B.css) : (j.cell.html = P.getDay(), j.cell.cssClass = null), i.onBeforeCellRender(j), B = j.cell;
3595
3603
  }
3596
- if (U && DayPilot.Util.addClass(N, U.cssClass || U.css), T || r && A || s && H) {
3604
+ if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
3597
3605
  var L = document.createElement("div");
3598
- L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Rc(L, "cell_text"), N.isClickable = !0, U && U.html && (L.innerHTML = U.html), N.appendChild(L);
3606
+ L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Tc(L, "cell_text"), N.isClickable = !0, B && B.html && (L.innerHTML = B.html), N.appendChild(L);
3599
3607
  }
3600
- N.setAttribute("unselectable", "on"), N.onclick = this.Zc, v.appendChild(N), M && (i.$c(v, S, C), this.selected.push(N));
3608
+ N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
3601
3609
  }
3602
3610
  }
3603
- var j = document.createElement("div");
3604
- j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.Qc() + "px", j.style.height = "1px", j.style.fontSize = "1px", j.style.lineHeight = "1px", j.className = this.J("_line"), v.appendChild(j), this.months.push(a);
3605
- }, this.Yc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Qc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this._c = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.Qc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.ad = function () {
3611
+ var W = document.createElement("div");
3612
+ W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Yc(7 + w), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.K("_line"), v.appendChild(W), this.months.push(a);
3613
+ }, this.cd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Sc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Xc(e + n), "y": t * this.cellHeight + a }; }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.fd = function (e, t, a) { var n = e.month.cells[t][a]; i.Uc(n, "select"); }, this.Sc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.gd = function () {
3606
3614
  if (this.items)
3607
3615
  for (var e = 0; e < this.showMonths; e++)
3608
3616
  for (var t = 0; t < 7; t++)
3609
3617
  for (var i = 0; i < 6; i++) {
3610
3618
  var a = this.months[e].cells[t][i];
3611
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Rc(a, "busy"), this.Sc(a, "free")) : (this.Sc(a, "busy"), this.Rc(a, "free")));
3619
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
3612
3620
  }
3613
- }, this.bd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Xc = function () { return (this.selectMode || "").toLowerCase(); }, this.cd = function () {
3621
+ }, this.hd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.bd = function () { return (this.selectMode || "").toLowerCase(); }, this.jd = function () {
3614
3622
  var e = this.selectionDay || this.selectionStart;
3615
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Xc()) {
3623
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
3616
3624
  case "day":
3617
3625
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3618
3626
  break;
@@ -3627,10 +3635,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3627
3635
  break;
3628
3636
  default: throw "Unknown selectMode value.";
3629
3637
  }
3630
- }, this.dd = null, this.select = function (e, t, a) {
3638
+ }, this.kd = null, this.select = function (e, t, a) {
3631
3639
  var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
3632
- if (!this.Aa)
3633
- return void (this.dd = { "date1": r, "date2": s, "options": l });
3640
+ if (!this.Ba)
3641
+ return void (this.kd = { "date1": r, "date2": s, "options": l });
3634
3642
  var d = !0, c = !0;
3635
3643
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3636
3644
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3638,21 +3646,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3638
3646
  var f = !1;
3639
3647
  if (d) {
3640
3648
  var m = this.startDate;
3641
- (this.selectionStart < this.ed() || this.selectionStart >= this.fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3649
+ (this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3642
3650
  }
3643
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.cd(), this.Kc(), this.Pc(), this.gd(), this.ad(), this.bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.hd();
3651
+ s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.jd(), this.Lc(), this.Qc(), this.nd(), this.gd(), this.hd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.M(), f && this.od();
3644
3652
  }, this.update = function (e) {
3645
- if (i.ab(e), this.Aa) {
3646
- if (i.N)
3653
+ if (i.bb(e), this.Ba) {
3654
+ if (i.O)
3647
3655
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3648
- i.jd();
3656
+ i.pd();
3649
3657
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3650
- i.$a(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
3658
+ i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
3651
3659
  }
3652
- }, this.$a = function () { this.Kc(), this.Pc(), this.cd(), this.gd(), this.da(), this.ad(), this.bd(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.gb = {}; }, this.db = null, this.ab = function (e) {
3660
+ }, this._a = function () { this.Lc(), this.Qc(), this.jd(), this.nd(), this.ea(), this.gd(), this.hd(), this.visible ? this.show() : this.hide(); }, this.pd = function () { i.hb = {}; }, this.eb = null, this.bb = function (e) {
3653
3661
  if (e) {
3654
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
3655
- this.db = t;
3662
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
3663
+ this.eb = t;
3656
3664
  for (var a in e)
3657
3665
  if (t[a]) {
3658
3666
  var n = t[a];
@@ -3661,33 +3669,41 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3661
3669
  else
3662
3670
  i[a] = e[a];
3663
3671
  }
3664
- }, this.eb = function () {
3665
- var e = this.db;
3672
+ }, this.fb = function () {
3673
+ var e = this.eb;
3666
3674
  for (var t in e) {
3667
3675
  var i = e[t];
3668
3676
  i.postInit && i.postInit();
3669
3677
  }
3670
- }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) {
3678
+ }, this.S = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.qd) : WebForm_DoCallback(this.uniqueID, n, this.U, null, this.callbackError, !0); }, this.qd = function (e) {
3671
3679
  if ("function" == typeof i.onAjaxError) {
3672
3680
  var t = {};
3673
3681
  t.request = e, i.onAjaxError(t);
3674
3682
  }
3675
3683
  else
3676
3684
  "function" == typeof i.ajaxError && i.ajaxError(e);
3677
- }, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ld = function (e, t) { "refresh" === e && this.hd(); }, this.Vc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Wc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.md = function (e) {
3685
+ }, this.T = function (e) { i.U(e.responseText); }, this.Q = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.R(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.R = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.rd = function (e, t) { "refresh" === e && this.od(); }, this._c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.ad = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.sd = function (e) {
3678
3686
  for (var t = 0; t < i.months.length; t++) {
3679
3687
  var a = i.months[t];
3680
3688
  if (!a)
3681
3689
  return null;
3682
- if (e.x < a.left || a.width < e.x)
3690
+ if (e.x < a.left)
3683
3691
  return null;
3684
- i.months[t].height;
3685
- if (a.top <= e.y && e.y < a.top + a.height)
3686
- return t;
3692
+ if (!(a.left + a.width < e.x)) {
3693
+ i.months[t].height;
3694
+ if (a.top <= e.y && e.y < a.top + a.height)
3695
+ return t;
3696
+ }
3687
3697
  }
3688
3698
  return null;
3689
- }, this.nd = function (e) {
3690
- var t = DayPilot.mo3(i.nav.top, e), a = i.md(t);
3699
+ }, this.td = function (e) { }, this.ud = function () {
3700
+ if (!o.Rc())
3701
+ return void (i.vd = i.cellWidth);
3702
+ var e = i.months[0].cells[0][0], t = e.clientWidth;
3703
+ i.vd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
3704
+ }, this.wd = function (e) {
3705
+ i.ud();
3706
+ var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t);
3691
3707
  if (null === a)
3692
3708
  return null;
3693
3709
  var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
@@ -3696,18 +3712,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3696
3712
  for (var r = 0; r < n.cells.length; r++)
3697
3713
  for (var s = 0; s < n.cells[r].length; s++) {
3698
3714
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3699
- if (c <= t.x && t.x < c + i.cellWidth && d <= t.y && t.y < d + i.cellHeight)
3715
+ if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
3700
3716
  return { "month": a, "x": r, "y": s, "coords": t };
3701
3717
  }
3702
3718
  return null;
3703
- }, this.od = function (e) {
3719
+ }, this.xd = function (e) {
3704
3720
  if (i.freeHandSelectionEnabled) {
3705
- var t = i.nd(e);
3721
+ var t = i.wd(e);
3706
3722
  t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
3707
3723
  }
3708
- }, this.pd = function (e) {
3724
+ }, this.yd = function (e) {
3709
3725
  if (a.start) {
3710
- var t = i.nd(e);
3726
+ var t = i.wd(e);
3711
3727
  if (a.end)
3712
3728
  a.end = t;
3713
3729
  else if (t) {
@@ -3716,9 +3732,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3716
3732
  }
3717
3733
  a.end && (a.clear(), a.draw());
3718
3734
  }
3719
- }, this.qd = {};
3720
- var a = this.qd;
3721
- a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Yc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () {
3735
+ }, this.zd = {};
3736
+ var a = this.zd;
3737
+ a.start = null, a.drawCell = function (e) {
3738
+ var t = i.months[e.month], n = i.cd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Yc();
3739
+ if (o.Rc()) {
3740
+ var c = "Horizontal" === i.orientation ? i.showMonths : 1;
3741
+ s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
3742
+ }
3743
+ var u = document.createElement("div");
3744
+ u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
3745
+ }, a.clear = function () {
3722
3746
  if (a.cells) {
3723
3747
  for (var e = 0; e < a.cells.length; e++)
3724
3748
  i.nav.preselection.removeChild(a.cells[e]);
@@ -3733,13 +3757,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3733
3757
  o.x = 6, o.y = r.rowCount - 1;
3734
3758
  }
3735
3759
  for (a.cells = []; !t.is(o);) {
3736
- a.drawCell(t);
3760
+ t.visible() && a.drawCell(t);
3737
3761
  var s = new n(t).next();
3738
3762
  if (!s)
3739
3763
  return;
3740
3764
  t.month = s.month, t.x = s.x, t.y = s.y;
3741
3765
  }
3742
- a.drawCell(t);
3766
+ t.visible() && a.drawCell(t);
3743
3767
  }
3744
3768
  }, a.ordered = function () { var e = a.start, t = a.end, i = {}; return !t || new n(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3745
3769
  var n = function (e, t, a) {
@@ -3787,54 +3811,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3787
3811
  return e;
3788
3812
  }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
3789
3813
  };
3790
- this.Zc = function (e) {
3814
+ this.dd = function (e) {
3791
3815
  var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
3792
3816
  if (a.cells[n][o].isClickable) {
3793
3817
  i.clearSelection(), i.selectionDay = r;
3794
3818
  var r = i.selectionDay;
3795
- switch (i.Xc()) {
3819
+ switch (i.bd()) {
3796
3820
  case "none":
3797
3821
  i.selectionStart = r, i.selectionEnd = r;
3798
3822
  break;
3799
3823
  case "day":
3800
3824
  if (i.autoFocusOnClick) {
3801
3825
  var s = r;
3802
- if (r < i.ed() || r >= i.fd())
3826
+ if (r < i.ld() || r >= i.md())
3803
3827
  return void i.select(r);
3804
3828
  }
3805
3829
  var l = a.cells[n][o];
3806
- i.$c(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3830
+ i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3807
3831
  break;
3808
3832
  case "week":
3809
3833
  if (i.autoFocusOnClick) {
3810
3834
  var s = a.cells[0][o].day, d = a.cells[6][o].day;
3811
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ed() || d >= i.fd()))
3835
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
3812
3836
  return void i.select(r);
3813
3837
  }
3814
3838
  for (var c = 0; c < 7; c++)
3815
- i.$c(t, c, o), i.selected.push(a.cells[c][o]);
3839
+ i.ed(t, c, o), i.selected.push(a.cells[c][o]);
3816
3840
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
3817
3841
  break;
3818
3842
  case "month":
3819
3843
  if (i.autoFocusOnClick) {
3820
3844
  var s = r;
3821
- if (r < i.ed() || r >= i.fd())
3845
+ if (r < i.ld() || r >= i.md())
3822
3846
  return void i.select(r);
3823
3847
  }
3824
3848
  for (var s = null, d = null, o = 0; o < 6; o++)
3825
3849
  for (var n = 0; n < 7; n++) {
3826
3850
  var l = a.cells[n][o];
3827
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.$c(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3851
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.ed(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3828
3852
  }
3829
3853
  i.selectionStart = s, i.selectionEnd = d;
3830
3854
  break;
3831
3855
  default: throw "unknown selectMode";
3832
3856
  }
3833
- i.bd(), i.L();
3857
+ i.hd(), i.M();
3834
3858
  }
3835
- }, this.L = function (e) {
3859
+ }, this.M = function (e) {
3836
3860
  var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
3837
- if (e = e || {}, i.pa()) {
3861
+ if (e = e || {}, i.qa()) {
3838
3862
  var r = {};
3839
3863
  if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
3840
3864
  return;
@@ -3864,9 +3888,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3864
3888
  case "None": break;
3865
3889
  case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
3866
3890
  }
3867
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Uc = function (e) { i.rd(i.skipMonths); }, this.Tc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.gd(), this.bd(), this.hd(), this.ad(); }, this.ed = function () { return i.startDate.firstDayOfMonth(); }, this.fd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.hd = function () {
3891
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.Q("TimeRangeSelected", i, n); }, this.$c = function (e) { i.Ad(i.skipMonths); }, this.Zc = function (e) { i.Ad(-i.skipMonths); }, this.Ad = function (e) { this.startDate = this.startDate.addMonths(e), this.Lc(), this.Qc(), this.nd(), this.hd(), this.od(), this.gd(); }, this.ld = function () { return i.startDate.firstDayOfMonth(); }, this.md = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
3892
+ return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
3893
+ }, this.od = function () {
3868
3894
  var e = this.visibleStart(), t = this.visibleEnd();
3869
- if (i.pa()) {
3895
+ if (i.qa()) {
3870
3896
  var a = {};
3871
3897
  if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
3872
3898
  return;
@@ -3894,13 +3920,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3894
3920
  break;
3895
3921
  case "Disabled":
3896
3922
  }
3897
- }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.ad(); }, this.gd = function () {
3923
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.Q("Visible", e, t); }, this.U = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.gd(); }, this.nd = function () {
3898
3924
  for (var e = 0; e < this.showMonths; e++) {
3899
- var t = this.sd(e);
3900
- this.Lc(e, t);
3925
+ var t = this.Bd(e);
3926
+ this.Mc(e, t);
3901
3927
  }
3902
- this.root.style.height = this.td() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3903
- }, this.td = function () {
3928
+ this.root.style.height = this.Cd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3929
+ }, this.Cd = function () {
3904
3930
  if ("Horizontal" === this.orientation) {
3905
3931
  for (var e = 0, t = 0; t < this.months.length; t++) {
3906
3932
  var i = this.months[t];
@@ -3913,13 +3939,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3913
3939
  a += i.height;
3914
3940
  }
3915
3941
  return a;
3916
- }, this.sd = function (e) {
3942
+ }, this.Bd = function (e) {
3917
3943
  if (this.internal.showLinks)
3918
3944
  return this.internal.showLinks;
3919
3945
  var t = {};
3920
3946
  return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t;
3921
- }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { i.ra.scope && i.ra.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.ab, this.internal.initialized = function () { return i.Aa; }, this._ = {};
3922
- var o = this._;
3947
+ }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { i.sa.scope && i.sa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.bb, this.internal.initialized = function () { return i.Ba; }, this.aa = {};
3948
+ var o = this.aa;
3923
3949
  o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
3924
3950
  if ("Auto" === i.weekStarts) {
3925
3951
  var e = o.locale();
@@ -3927,33 +3953,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3927
3953
  }
3928
3954
  return i.weekStarts;
3929
3955
  }, o.cellWidth = function () {
3930
- if (i.gb.cellWidth)
3931
- return i.gb.cellWidth;
3932
- var e = i.ud("_cell_dimensions").width;
3933
- return e || (e = i.cellWidth), i.gb.cellWidth = e, e;
3934
- }, this.clearSelection = function () {
3956
+ if (i.hb.cellWidth)
3957
+ return i.hb.cellWidth;
3958
+ var e = i.Dd("_cell_dimensions").width;
3959
+ return e || (e = i.cellWidth), i.hb.cellWidth = e, e;
3960
+ }, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () {
3935
3961
  for (var e = 0; e < this.selected.length; e++) {
3936
3962
  var t = this.selected[e];
3937
- i._c(t.parentNode, t.x, t.y);
3963
+ i.fd(t.parentNode, t.x, t.y);
3938
3964
  }
3939
3965
  this.selected = [];
3940
- }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () {
3966
+ }, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () {
3941
3967
  if (DayPilot.isArray(this.events.list)) {
3942
3968
  this.items = {};
3943
3969
  for (var e = 0; e < this.events.list.length; e++) {
3944
3970
  var t = this.events.list[e];
3945
3971
  if (!t.hidden) {
3946
- var i = this.wd(t);
3972
+ var i = this.Fd(t);
3947
3973
  for (var a in i)
3948
3974
  this.items[a] = 1;
3949
3975
  }
3950
3976
  }
3951
3977
  }
3952
- }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) {
3978
+ }, this.Dd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Fd = function (e) {
3953
3979
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3954
3980
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3955
3981
  return a;
3956
- }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.fb = function () {
3982
+ }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () {
3957
3983
  if (this.id && this.id.tagName)
3958
3984
  this.nav.top = this.id;
3959
3985
  else {
@@ -3964,26 +3990,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3964
3990
  }
3965
3991
  this.root = this.nav.top;
3966
3992
  }, this.init = function () {
3967
- if (this.fb(), !this.root.dp) {
3968
- this.cd(), this.Pc(), this.gd(), this.da(), this.ad(), this.Y(), this.xd(), this.Za();
3969
- if (this.vd() && this.hd(), this.Aa = !0, this.eb(), this.dd) {
3970
- var e = this.dd;
3971
- this.select(e.date1, e.date2, e.options), this.dd = null;
3993
+ if (this.gb(), !this.root.dp) {
3994
+ this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
3995
+ if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
3996
+ var e = this.kd;
3997
+ this.select(e.date1, e.date2, e.options), this.kd = null;
3972
3998
  }
3973
3999
  return this;
3974
4000
  }
3975
- }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) {
4001
+ }, this.Gd = function () { i.nav.top.onmousedown = this.xd, i.nav.top.onmousemove = this.yd; }, this.$a = function () { DayPilot.re(document, "mouseup", i.Hd); }, this.Hd = function (e) {
3976
4002
  if (a.start && a.end) {
3977
4003
  var t = DayPilot.mo3(i.nav.top, e);
3978
4004
  if (t.x === a.start.coords.x && t.y === a.start.coords.y)
3979
4005
  return a.start = null, void a.clear();
3980
4006
  a.clear();
3981
4007
  var o = a.ordered();
3982
- o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.gd(), i.ad(), i.bd();
3983
- i.L({ "mode": "FreeHand" });
4008
+ o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Lc(), i.Qc(), i.nd(), i.gd(), i.hd();
4009
+ i.M({ "mode": "FreeHand" });
3984
4010
  }
3985
4011
  a.start = null, a.end = null;
3986
- }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.N = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ab(t);
4012
+ }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.O = !0); }, this.Z = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.bb(t);
3987
4013
  }, "undefined" != typeof jQuery && !function (e) {
3988
4014
  e.fn.daypilotNavigator = function (e) {
3989
4015
  var t = null, i = this.each(function () {
@@ -4003,7 +4029,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4003
4029
  return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
4004
4030
  return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
4005
4031
  var n = new DayPilot.Navigator(i[0]);
4006
- n.ra.scope = t, n.init();
4032
+ n.sa.scope = t, n.init();
4007
4033
  var o = a["id"];
4008
4034
  o && (t[o] = n);
4009
4035
  var r = a["publishAs"];
@@ -4020,13 +4046,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4020
4046
  for (var i in e)
4021
4047
  n[i] = e[i];
4022
4048
  n.update();
4023
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.ad(); }, !0);
4049
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0);
4024
4050
  };
4025
4051
  } };
4026
4052
  }]);
4027
- }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
4053
+ }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
4028
4054
  }
4029
- }();
4055
+ }(DayPilot);
4030
4056
 
4031
4057
  function rand() {
4032
4058
  return ((1 + Math.random()) * 0x10000) | 0;