@daypilot/daypilot-lite-angular 3.26.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.547-lite
133
+ Version: 2024.4.566-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -384,15 +384,15 @@ if (function () {
384
384
  for (var i in t)
385
385
  this[i] = t[i]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
386
386
  return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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) {
387
- 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))); }
387
+ 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))); }
388
388
  var i = this;
389
- 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) { var a; if ("string" == typeof e) {
389
+ 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) { var a; if ("string" == typeof e) {
390
390
  if (a = document.getElementById(e), !a)
391
391
  throw "Element not found: " + e;
392
392
  }
393
393
  else
394
- a = e; var n = a, o = {}; 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 () { if (o.o.navigatorSelectMode)
395
- return o.o.navigatorSelectMode; if (n.isCalendar)
394
+ a = e; var n = a, o = {}; 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 () { if (o.p.navigatorSelectMode)
395
+ return o.p.navigatorSelectMode; if (n.isCalendar)
396
396
  switch (n.viewType) {
397
397
  case "Day": return "day";
398
398
  case "Week": return "week";
@@ -409,16 +409,16 @@ if (function () {
409
409
  throw "Element not found: " + e;
410
410
  }
411
411
  else
412
- a = e; var n = this.z(t); n || (n = this.addView(t)); var o = {}; 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; }, 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) { for (var t = 0; t < this.i.length; t++) {
412
+ a = e; var n = this.A(t); n || (n = this.addView(t)); var o = {}; 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; }, 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) { for (var t = 0; t < this.i.length; t++) {
413
413
  var i = this.i[t];
414
- if (i.n === e)
414
+ if (i.o === e)
415
415
  return i;
416
- } return null; }, this.E = function (e) { if (this.selectedClass) {
416
+ } return null; }, this.F = function (e) { if (this.selectedClass) {
417
417
  for (var t = 0; t < this.i.length; t++) {
418
418
  var i = this.i[t];
419
- DayPilot.Util.removeClass(i.B, this.selectedClass);
419
+ DayPilot.Util.removeClass(i.C, this.selectedClass);
420
420
  }
421
- DayPilot.Util.addClass(e.B, this.selectedClass);
421
+ DayPilot.Util.addClass(e.C, this.selectedClass);
422
422
  } }, this.addNavigator = function (e) { i.j.control = e, e.timeRangeSelectedHandling = "JavaScript", e.onTimeRangeSelected = function () { var a, n, o; if (1 === e.api)
423
423
  a = arguments[0], n = arguments[1], o = arguments[2];
424
424
  else {
@@ -426,29 +426,34 @@ if (function () {
426
426
  a = r.start, n = r.end, o = r.day;
427
427
  } i.l = o, t(a, n, o); }; }, this.show = function (e) {
428
428
  var a, n;
429
- if (e.A)
430
- n = e, a = n.C;
431
- else if (a = e.m ? e : this.z(e), this.k === a)
429
+ if (e.B)
430
+ n = e, a = n.D;
431
+ else if (a = e.n ? e : this.A(e),
432
+ this.k === a)
432
433
  return;
433
434
  if (i.onSelect) {
434
435
  var o = {};
435
- o.source = n ? n.B : null, o.target = a.control, i.onSelect(o);
436
+ o.source = n ? n.C : null, o.target = a.control, i.onSelect(o);
436
437
  }
437
- this.k = a, a.s();
438
- var r = a.u();
439
- i.j.updateMode(r), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
440
- }, this.z = function (e) { for (var t = 0; t < this.f.length; t++)
438
+ if (i.syncScrollbar) {
439
+ var r = this.k && this.k.control;
440
+ r && r.isCalendar && (i.m = r.getScrollY());
441
+ }
442
+ this.k = a, a.t(), null !== i.m && a.control.isCalendar && a.control.setScrollY(i.m);
443
+ var s = a.z();
444
+ i.j.updateMode(s), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
445
+ }, this.A = function (e) { for (var t = 0; t < this.f.length; t++)
441
446
  if (this.f[t].control === e)
442
- return this.f[t]; return null; }, this.t = function () { for (var e = 0; e < this.f.length; e++)
443
- this.f[e].p(); }, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
444
- throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.G = null, this.H = function () { if (e)
447
+ return this.f[t]; return null; }, this.u = function () { for (var e = 0; e < this.f.length; e++)
448
+ this.f[e].q(); }, Object.defineProperty(this, "active", { get: function () { return i.k; } }), this.events = {}, this.events.load = function (e, t, a) { if (!i.k || !i.k.control)
449
+ throw "DayPilot.Switcher.events.load(): Active view not found"; i.k.control.events.load(e, t, a); }, this.H = null, this.I = function () { if (e)
445
450
  for (var t in e)
446
451
  if ("triggers" === t) {
447
452
  var a = e.triggers || [];
448
453
  a.forEach(function (e) { i.addTrigger(e.id, e.view); });
449
454
  }
450
455
  else
451
- "navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t]; }, this.H();
456
+ "navigator" === t ? i.addNavigator(e.navigator) : i[t] = e[t]; }, this.I();
452
457
  }, DayPilot.Duration = function (e) { var t = this, i = 864e5, a = 36e5, n = 6e4, o = 1e3; if (2 === arguments.length) {
453
458
  var r = arguments[0], s = arguments[1];
454
459
  if (!(r instanceof DayPilot.Date) && "string" != typeof r)
@@ -555,7 +560,7 @@ if (function () {
555
560
  return null; if (s < 0 || s > 59)
556
561
  return null; var c = new Date; return c.setUTCFullYear(t, i - 1, a), c.setUTCHours(o), c.setUTCMinutes(r), c.setUTCSeconds(s), c.setUTCMilliseconds(0), new DayPilot.Date(c); }, this.init(); };
557
562
  DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) { if (!/^#[0-9a-f]{6}$/i.test(e))
558
- throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, 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) { var a = this; this.calendar = t, this.data = e ? e : {}, this.part = i ? i : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var n = {}, o = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (n.dirty)
563
+ throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); 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) }; }, 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) { var a = this; this.calendar = t, this.data = e ? e : {}, this.part = i ? i : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var n = {}, o = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (n.dirty)
559
564
  return n; for (var e = 0; e < o.length; e++)
560
565
  n[o[e]] = a.data[o[e]]; return n.dirty = !0, n; }, this.copy = function () { for (var e = {}, t = 0; t < o.length; t++)
561
566
  e[o[t]] = a.data[o[t]]; return e; }, this.commit = function () { if (n.dirty) {
@@ -628,47 +633,52 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
628
633
  if (!t.resizingShadow)
629
634
  return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
630
635
  var a = t.resizing.event, n = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
631
- 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);
636
+ 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);
632
637
  }
633
638
  else if (t.moving) {
634
639
  if (!t.movingShadow)
635
640
  return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
636
641
  var o = t.movingShadow.offsetTop, a = t.moving.event;
637
- t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.J("_event_moving_source"));
642
+ t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, a.calendar.K("_event_moving_source"));
638
643
  var s = t.movingShadow.column;
639
- t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.K(a, s, o, i);
644
+ t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
640
645
  }
641
646
  else if (t.selecting && null !== t.topSelectedCell) {
642
647
  var l = t.selecting.calendar;
643
648
  t.selecting = !1;
644
649
  var d = l.getSelection();
645
- l.L(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
650
+ l.M(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
646
651
  }
647
652
  else
648
653
  t.selecting = !1; }, 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) {
649
654
  var a = !1;
650
- if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
655
+ if (this instanceof t.Calendar && !this.N && (a = !0, this.N = !0), !a)
651
656
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
652
657
  var n = this;
653
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.547-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.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) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
654
- i = i.parentNode; var a = document.createElement("div"); 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"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, 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 () {
655
- return "Disabled" !== n.xssProtection;
656
- }, this._.ba = function () { if ("Auto" === n.weekStarts) {
658
+ 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) {
659
+ for (var i = e.parentNode; i && "TD" !== i.tagName;)
660
+ i = i.parentNode;
661
+ var a = document.createElement("div");
662
+ 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");
663
+ var o = document.createElement("div");
664
+ return o.className = n.K("_shadow_inner"),
665
+ a.appendChild(o), i.firstChild.appendChild(a), a;
666
+ }, 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 () { if ("Auto" === n.weekStarts) {
657
667
  var e = o.locale();
658
668
  return e ? e.weekStarts : 0;
659
669
  } return n.weekStarts || 0; };
660
- var o = this._;
661
- this.T = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
670
+ var o = this.aa;
671
+ this.U = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
662
672
  if (!window.console)
663
673
  throw "Error received from the server side: " + e;
664
674
  return void console.log("Error received from the server side: " + e);
665
675
  } var e = JSON.parse(e); if (e.CallBackRedirect)
666
676
  return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
667
- return n.loadingStop(), void n.s(); 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)
677
+ return n.loadingStop(), void n.t(); 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)
668
678
  for (var i in e.Hashes)
669
- n.hashes[i] = e.Hashes[i]; 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(); }, 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) { var t = this, i = t.event; if (n.pa()) {
679
+ n.hashes[i] = e.Hashes[i]; 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(); }, 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) { var t = this, i = t.event; if (n.qa()) {
670
680
  var a = {};
671
- 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))
681
+ 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))
672
682
  return;
673
683
  switch (n.eventClickHandling) {
674
684
  case "CallBack":
@@ -681,7 +691,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
681
691
  var o = i.client.contextMenu();
682
692
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
683
693
  }
684
- "function" == typeof n.onEventClicked && n.ra.apply(function () { n.onEventClicked(a); });
694
+ "function" == typeof n.onEventClicked && n.sa.apply(function () { n.onEventClicked(a); });
685
695
  }
686
696
  else
687
697
  switch (n.eventClickHandling) {
@@ -692,15 +702,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
692
702
  n.eventClickCallBack(i);
693
703
  break;
694
704
  case "JavaScript": n.onEventClick(i);
695
- } }, this.sa = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
705
+ } }, this.ta = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
696
706
  return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
697
707
  return !1; switch (n.eventRightClickHandling) {
698
708
  case "ContextMenu":
699
709
  var a = t.client.contextMenu();
700
710
  a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
701
- } return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.ta = function (e) { if (n.pa()) {
711
+ } return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.S("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.Q("EventDelete", t, e); }, this.ua = function (e) { if (n.qa()) {
702
712
  var t = {};
703
- 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))
713
+ 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))
704
714
  return;
705
715
  switch (n.eventDeleteHandling) {
706
716
  case "CallBack":
@@ -711,7 +721,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
711
721
  break;
712
722
  case "Update": n.events.remove(e);
713
723
  }
714
- "function" == typeof n.onEventDeleted && n.ra.apply(function () { n.onEventDeleted(t); });
724
+ "function" == typeof n.onEventDeleted && n.sa.apply(function () { n.onEventDeleted(t); });
715
725
  }
716
726
  else
717
727
  switch (n.eventDeleteHandling) {
@@ -724,18 +734,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
724
734
  case "JavaScript": n.onEventDelete(e);
725
735
  } }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
726
736
  throw "newStart is null"; if (!i)
727
- throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
737
+ throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
728
738
  throw "newStart is null"; if (!i)
729
- throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.P("EventResize", a, n); }, this.I = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
730
- var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
739
+ throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.Q("EventResize", a, n); }, this.J = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
740
+ var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.pa() * 60 * 1e3;
731
741
  r = c.addTime(f + m), s = e.end();
732
742
  }
733
743
  else if ("bottom" === a) {
734
- 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;
744
+ 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;
735
745
  r = l, s = c.addTime(f + m);
736
- } if (n.pa()) {
746
+ } if (n.qa()) {
737
747
  var p = {};
738
- 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))
748
+ 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))
739
749
  return;
740
750
  switch (n.eventResizeHandling) {
741
751
  case "PostBack":
@@ -746,7 +756,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
746
756
  break;
747
757
  case "Update": e.start(r), e.end(s), n.events.update(e);
748
758
  }
749
- "function" == typeof n.onEventResized && n.ra.apply(function () { n.onEventResized(p); });
759
+ "function" == typeof n.onEventResized && n.sa.apply(function () { n.onEventResized(p); });
750
760
  }
751
761
  else
752
762
  switch (n.eventResizeHandling) {
@@ -759,11 +769,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
759
769
  case "JavaScript": n.onEventResize(e, r, s);
760
770
  } }, this.eventMovePostBack = function (e, t, i, a, n) { if (!t)
761
771
  throw "newStart is null"; if (!i)
762
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.P("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
772
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.Q("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
763
773
  throw "newStart is null"; if (!i)
764
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); 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; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.pa()) {
774
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.S("EventMove", n, o); }, this.L = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); 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; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.qa()) {
765
775
  var b = {};
766
- 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))
776
+ 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))
767
777
  return;
768
778
  switch (n.eventMoveHandling) {
769
779
  case "PostBack":
@@ -774,7 +784,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
774
784
  break;
775
785
  case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
776
786
  }
777
- "function" == typeof n.onEventMoved && n.ra.apply(function () { n.onEventMoved(b); });
787
+ "function" == typeof n.onEventMoved && n.sa.apply(function () { n.onEventMoved(b); });
778
788
  }
779
789
  else
780
790
  switch (n.eventMoveHandling) {
@@ -785,9 +795,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
785
795
  n.eventMoveCallBack(e, y, g, f.id);
786
796
  break;
787
797
  case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
788
- } }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.pa()) {
798
+ } }, 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) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.qa()) {
789
799
  var a = {};
790
- 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))
800
+ 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))
791
801
  return;
792
802
  switch (n.timeRangeSelectedHandling) {
793
803
  case "PostBack":
@@ -795,7 +805,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
795
805
  break;
796
806
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
797
807
  }
798
- "function" == typeof n.onTimeRangeSelected && n.ra.apply(function () { n.onTimeRangeSelected(a); });
808
+ "function" == typeof n.onTimeRangeSelected && n.sa.apply(function () { n.onTimeRangeSelected(a); });
799
809
  }
800
810
  else
801
811
  switch (n.timeRangeSelectedHandling) {
@@ -806,26 +816,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
806
816
  n.timeRangeSelectedCallBack(e, t);
807
817
  break;
808
818
  case "JavaScript": n.onTimeRangeSelected(e, t);
809
- } }, this.va = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
819
+ } }, this.wa = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
810
820
  var i = e.which;
811
821
  if (1 === i || 0 === i)
812
- 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;
813
- } }, this.wa = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
822
+ 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;
823
+ } }, this.xa = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
814
824
  return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
815
825
  if (t[i] === e)
816
- return i; return -1; }(), o = n.ua[a]; if (o) {
826
+ return i; return -1; }(), o = n.va[a]; if (o) {
817
827
  var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () { if (n.nav.activeSelection)
818
- return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); 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; }();
819
- c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
820
- } }(); }, this.xa = function (e) { if ("undefined" != typeof t && t.selecting) {
828
+ return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); 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; }();
829
+ c.className = n.K("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
830
+ } }(); }, this.ya = function (e) { if ("undefined" != typeof t && t.selecting) {
821
831
  var i = DayPilot.mc(e);
822
- 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());
823
- } }, 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) { if (e < 0)
832
+ 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());
833
+ } }, 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) { if (e < 0)
824
834
  return null; for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
825
835
  if (t += i[a].offsetWidth, e < t)
826
836
  return a;
827
- } return null; }, this.za = {}, this.za.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
828
- return null; e.x = n.ya(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
837
+ } return null; }, this.Aa = {}, this.Aa.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
838
+ return null; e.x = n.za(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
829
839
  throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
830
840
  i = JSON.parse(o.responseText);
831
841
  }
@@ -836,11 +846,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
836
846
  var s = {};
837
847
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
838
848
  return;
839
- n.columns.list = i, n.Aa && n.update();
840
- } }; 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 }); }, this.ca = function () { var e; e = "Resources" !== n.viewType ? this.Ba() : n.columns.list, this.ua = []; for (var t = 0; t < e.length; t++) {
841
- var i = this.Ca(e[t]);
842
- this.ua.push(i);
843
- } }, this.Ca = function (e) { var t = {}; 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) { for (var t = 0; t < this.blocks.length; t++) {
849
+ n.columns.list = i, n.Ba && n.update();
850
+ } }; 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 }); }, this.da = function () { var e; e = "Resources" !== n.viewType ? this.Ca() : n.columns.list, this.va = []; for (var t = 0; t < e.length; t++) {
851
+ var i = this.Da(e[t]);
852
+ this.va.push(i);
853
+ } }, this.Da = function (e) { var t = {}; 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) { for (var t = 0; t < this.blocks.length; t++) {
844
854
  var i = this.blocks[t];
845
855
  if (i.overlapsWith(e.part.top, e.part.height))
846
856
  return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
@@ -860,13 +870,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
860
870
  var o = this[n];
861
871
  if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
862
872
  return !1;
863
- } return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ba = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
873
+ } return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ca = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
864
874
  case "Day":
865
875
  i = 1;
866
876
  break;
867
877
  case "Week":
868
878
  i = 7;
869
- var a = o.ba();
879
+ var a = o.ca();
870
880
  t = t.firstDayOfWeek(a);
871
881
  break;
872
882
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
@@ -874,16 +884,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
874
884
  var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
875
885
  l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
876
886
  } return e; }, this.visibleStart = function () { if ("Resources" === n.viewType) {
877
- if (0 === n.ua.length)
887
+ if (0 === n.va.length)
878
888
  return DayPilot.Date.today();
879
- var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
889
+ var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
880
890
  return new DayPilot.Date(t);
881
- } return this.ua[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
882
- if (0 === n.ua.length)
891
+ } return this.va[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
892
+ if (0 === n.va.length)
883
893
  return DayPilot.Date.today().addDays(1);
884
- var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
894
+ var e = n.va.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
885
895
  return new DayPilot.Date(t).addDays(1);
886
- } var t = this.ua.length - 1; return this.ua[t].start.addDays(1); }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () { if (this.elements.events)
896
+ } var t = this.va.length - 1; return this.va[t].start.addDays(1); }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.W = function () { if (this.elements.events)
887
897
  for (var e = 0; e < this.elements.events.length; e++) {
888
898
  var t = this.elements.events[e], i = t.event;
889
899
  if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
@@ -891,7 +901,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
891
901
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
892
902
  }
893
903
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
894
- } this.elements.events = []; }, this.Da = function (e) { var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div"); 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) { var a = 5; if ("undefined" != typeof t) {
904
+ } this.elements.events = []; }, this.Ea = function (e) { var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div"); 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) { var a = 5; if ("undefined" != typeof t) {
895
905
  var r = DayPilot.mo3(o, i);
896
906
  if (r && !t.resizing && !t.moving) {
897
907
  o.deleteIcon && (o.deleteIcon.style.display = "");
@@ -902,32 +912,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
902
912
  if (1 === a && e.client.moveEnabled()) {
903
913
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
904
914
  var o = t.moving.helper = {};
905
- o.oldColumn = n.ua[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
915
+ o.oldColumn = n.va[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
906
916
  var r = DayPilot.mo3(this, i);
907
917
  r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
908
918
  }
909
919
  }
910
920
  else
911
- t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var r = document.createElement("div"); 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()) {
921
+ t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, n.nav.top.style.cursor = this.style.cursor; return !1; }; var r = document.createElement("div"); 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()) {
912
922
  var s = e.part.height - 2, l = 100 * e.part.barTop / s, d = Math.ceil(100 * e.part.barHeight / s), c = document.createElement("div");
913
- c.setAttribute("unselectable", "on"), c.className = this.J("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
923
+ c.setAttribute("unselectable", "on"), c.className = this.K("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
914
924
  var u = document.createElement("div");
915
- 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);
925
+ 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);
916
926
  } if (e.client.deleteEnabled()) {
917
927
  var h = document.createElement("div");
918
- 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);
928
+ 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);
919
929
  } var f = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
920
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Ea(o);
930
+ a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Fa(o);
921
931
  } if ("function" == typeof n.onAfterEventRender) {
922
932
  var m = {};
923
933
  m.e = o.event, m.div = o, n.onAfterEventRender(m);
924
- } n.elements.events.push(o); }, this.Ea = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
934
+ } n.elements.events.push(o); }, this.Fa = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
925
935
  try {
926
936
  var a = e.childNodes[i];
927
- 1 === a.nodeType && (a.unselectable = "on", this.Ea(a));
937
+ 1 === a.nodeType && (a.unselectable = "on", this.Fa(a));
928
938
  }
929
- catch (e) { } }, this.ja = function () { for (var e = 0; e < this.ua.length; e++) {
930
- var t = this.ua[e];
939
+ catch (e) { } }, this.ka = function () { for (var e = 0; e < this.va.length; e++) {
940
+ var t = this.va[e];
931
941
  if (t.blocks)
932
942
  for (var i = 0; i < t.blocks.length; i++)
933
943
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -935,40 +945,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
935
945
  var s = o[r];
936
946
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
937
947
  var l = n === a.lines.length - 1;
938
- l || (s.part.width = 1.5 * s.part.width), this.Da(s);
948
+ l || (s.part.width = 1.5 * s.part.width), this.Ea(s);
939
949
  }
940
- } }, 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 () { var e = document.createElement("table"); 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; for (var t = this.ua, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
950
+ } }, 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 () { var e = document.createElement("table"); 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; for (var t = this.va, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
941
951
  var r = a.insertCell(-1);
942
952
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
943
953
  var s = document.createElement("div");
944
954
  s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
945
955
  var l = document.createElement("div");
946
956
  r.selection = l, r.appendChild(s), r.appendChild(l);
947
- } return e; }, this.Ka = function () { var e = document.createElement("table"); 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; }; for (var t = n.ka(), i = 0; i < t; i++)
948
- this.Na(e, i); return e; }, 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 () { switch (this.heightSpec) {
957
+ } return e; }, this.La = function () { var e = document.createElement("table"); 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; }; for (var t = n.la(), i = 0; i < t; i++)
958
+ this.Oa(e, i); return e; }, 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 () { switch (this.heightSpec) {
949
959
  case "Full": return 48 * this.cellHeight;
950
960
  case "BusinessHours":
951
- var e = this.ma();
961
+ var e = this.na();
952
962
  return e * this.cellHeight * 2;
953
963
  case "BusinessHoursNoScroll":
954
- var e = this.ma();
964
+ var e = this.na();
955
965
  return e * this.cellHeight * 2;
956
966
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
957
- } }, this.Oa = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
967
+ } }, this.Pa = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
958
968
  e.innerHTML = "";
959
- var t = this.Pa();
969
+ var t = this.Qa();
960
970
  e.appendChild(t), n.nav.corner = t;
961
- } }, this.Ha = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Pa(); 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; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
971
+ } }, this.Ia = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Qa(); 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; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
962
972
  a = i.insertCell(-1), a.unselectable = "on";
963
973
  var r = document.createElement("div");
964
- r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
974
+ r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
965
975
  var s = document.createElement("div");
966
- s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
967
- } return e.appendChild(t), e; }, 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 () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
976
+ s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
977
+ } return e.appendChild(t), e; }, 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 () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
968
978
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
969
979
  var n = i.cells[a];
970
980
  n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
971
- } this.fasterDispose || DayPilot.pu(e); }, this.ga = function () { var e = this.nav.main, i = 18e5, a = this.na(), o = n.ua; for (e && this.W(); e && e.rows && e.rows.length > 0;)
981
+ } this.fasterDispose || DayPilot.pu(e); }, this.ha = function () { var e = this.nav.main, i = 18e5, a = this.oa(), o = n.va; for (e && this.X(); e && e.rows && e.rows.length > 0;)
972
982
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
973
983
  this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0); for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
974
984
  var c = l.insertCell(-1);
@@ -981,22 +991,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
981
991
  var l = e.insertRow(-1);
982
992
  l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
983
993
  for (var d = 0; d < r; d++) {
984
- var m = this.ua[d], c = l.insertCell(-1);
985
- 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";
994
+ var m = this.va[d], c = l.insertCell(-1);
995
+ 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";
986
996
  var u = document.createElement("div");
987
- u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
988
- var p = this.Qa(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
997
+ u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.K("_cell");
998
+ var p = this.Ra(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
989
999
  !function () { if ("function" == typeof n.onBeforeCellRender) {
990
1000
  var e = {};
991
1001
  e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
992
- } }(), v.business && DayPilot.Util.addClass(u, n.J("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
1002
+ } }(), v.business && DayPilot.Util.addClass(u, n.K("_cell_business")), v.cssClass && DayPilot.Util.addClass(u, v.cssClass);
993
1003
  var y = document.createElement("div");
994
- y.setAttribute("unselectable", "on"), y.className = this.J("_cell_inner");
1004
+ y.setAttribute("unselectable", "on"), y.className = this.K("_cell_inner");
995
1005
  var g = DayPilot.Util.escapeTextHtml(v.text, v.html);
996
1006
  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);
997
1007
  }
998
1008
  } e.root = this, n.nav.scrollable.onmousemove = function (e) { var i = n.nav.scrollable; n.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
999
- t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
1009
+ t.resizingShadow || (t.resizingShadow = n._(t.resizing, !1, n.shadow));
1000
1010
  var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
1001
1011
  if ("bottom" === t.resizing.dpBorder) {
1002
1012
  var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
@@ -1018,26 +1028,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1018
1028
  var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1019
1029
  if (h <= u)
1020
1030
  return;
1021
- t.movingShadow = n.Z(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1031
+ t.movingShadow = n._(t.moving, !0, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1022
1032
  }
1023
1033
  var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1024
1034
  f || (f = o / 2);
1025
1035
  var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1026
1036
  c < r && (c = r);
1027
1037
  var m = n.nav.events, d = n.nav.main.clientHeight + r, p = parseInt(t.movingShadow.style.height);
1028
- 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 = "";
1038
+ 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 = "";
1029
1039
  var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1030
1040
  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]));
1031
1041
  }
1032
1042
  else if (t.selecting) {
1033
- var a = DayPilot.mc(e), g = n.za.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1034
- 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();
1035
- } }, n.nav.scrollable.style.display = ""; }, 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 () { var e = this.nav.header; if (e && e.rows)
1043
+ var a = DayPilot.mc(e), g = n.Aa.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1044
+ 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();
1045
+ } }, n.nav.scrollable.style.display = ""; }, 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 () { var e = this.nav.header; if (e && e.rows)
1036
1046
  for (var t = 0; t < e.rows.length; t++)
1037
1047
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1038
1048
  var n = i.cells[a];
1039
1049
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1040
- } this.fasterDispose || DayPilot.pu(e); }, this.Ra = function (e) { function t(t) { var o = a[t], r = e ? i.insertCell(-1) : i.cells[t]; 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; var s, l = e ? document.createElement("div") : r.firstChild; 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; var d = {}; 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); var c = o.verticalAlignment; if (c)
1050
+ } this.fasterDispose || DayPilot.pu(e); }, this.Sa = function (e) { function t(t) { var o = a[t], r = e ? i.insertCell(-1) : i.cells[t]; 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; var s, l = e ? document.createElement("div") : r.firstChild; 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; var d = {}; 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); var c = o.verticalAlignment; if (c)
1041
1051
  switch (s.style.display = "flex", c) {
1042
1052
  case "center":
1043
1053
  s.style.alignItems = "center";
@@ -1046,20 +1056,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1046
1056
  s.style.alignItems = "flex-start";
1047
1057
  break;
1048
1058
  case "bottom": s.style.alignItems = "flex-end";
1049
- } l.firstChild.innerHTML = n.Ja(o.name, o.html); } 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++)
1050
- t(r); }, this.Sa = function (e) { if ("Disabled" !== n.headerClickHandling) {
1051
- var t = this.data, i = n.Ta(t), a = {};
1059
+ } l.firstChild.innerHTML = n.Ka(o.name, o.html); } 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++)
1060
+ t(r); }, this.Ta = function (e) { if ("Disabled" !== n.headerClickHandling) {
1061
+ var t = this.data, i = n.Ua(t), a = {};
1052
1062
  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);
1053
- } }, 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 () { var e = this.nav.header, t = !0, i = this.ua; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1054
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Ra(t); }, this.loadingStart = function () {
1055
- this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
1056
- }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, 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) { var t = null; if (e instanceof DayPilot.Event)
1063
+ } }, 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 () {
1064
+ var e = this.nav.header, t = !0, i = this.va;
1065
+ for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1066
+ this.fasterDispose || DayPilot.pu(e.rows[0]),
1067
+ e.deleteRow(0);
1068
+ this.headerCreated = !0;
1069
+ this.Sa(t);
1070
+ }, 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) { var t = null; if (e instanceof DayPilot.Event)
1057
1071
  t = e.data;
1058
1072
  else {
1059
1073
  if ("object" != typeof e)
1060
1074
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1061
1075
  t = e;
1062
- } n.events.list || (n.events.list = []), n.events.list.push(t), n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.find = function (e) { if (!n.events.list)
1076
+ } n.events.list || (n.events.list = []), n.events.list.push(t), n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.find = function (e) { if (!n.events.list)
1063
1077
  return null; if ("function" == typeof e) {
1064
1078
  for (var t = e, i = 0; i < n.events.list.length; i++) {
1065
1079
  var a = new DayPilot.Event(n.events.list[i], n);
@@ -1079,7 +1093,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1079
1093
  var i = DayPilot.indexOf(n.events.list, t.data);
1080
1094
  n.events.list.splice(i, 1, e);
1081
1095
  }
1082
- } n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1096
+ } n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1083
1097
  t = e.data;
1084
1098
  else if ("object" == typeof e) {
1085
1099
  var i = n.events.find(e.id);
@@ -1088,7 +1102,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1088
1102
  else if ("string" == typeof e || "number" == typeof e) {
1089
1103
  var i = n.events.find(e);
1090
1104
  i && (t = i.data);
1091
- } var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1105
+ } var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n._a({ "eventsOnly": !0 }), n.sa.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1092
1106
  i = JSON.parse(o.responseText);
1093
1107
  }
1094
1108
  catch (e) {
@@ -1098,25 +1112,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1098
1112
  var s = {};
1099
1113
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1100
1114
  return;
1101
- n.events.list = i, n.Aa && n.$a({ "eventsOnly": !0 });
1115
+ n.events.list = i, n.Ba && n._a({ "eventsOnly": !0 });
1102
1116
  } }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
1103
1117
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
1104
1118
  else {
1105
1119
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1106
1120
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1107
- } }, this._a = function () { if (n.nav.top.className !== n.J("_main")) {
1108
- n.nav.top.className = n.J("_main");
1121
+ } }, this.ab = function () { if (n.nav.top.className !== n.K("_main")) {
1122
+ n.nav.top.className = n.K("_main");
1109
1123
  var e = n.nav.corner;
1110
- e.className = n.J("_corner"), e.firstChild.className = n.J("_corner_inner");
1124
+ e.className = n.K("_corner"), e.firstChild.className = n.K("_corner_inner");
1111
1125
  var t = n.nav.cornerRight;
1112
- t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
1113
- } }, this.update = function (e) { if (n.N)
1114
- throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.ab(e), n.$a(); }, this.$a = function (e) { if (this.Aa) {
1126
+ t && (t.className = n.K("_cornerright"), t.firstChild.className = n.K("_cornerright_inner"));
1127
+ } }, this.update = function (e) { if (n.O)
1128
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.bb(e), n._a(); }, this._a = function (e) { if (this.Ba) {
1115
1129
  var e = e || {}, t = !e.eventsOnly;
1116
- 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();
1117
- } }, this.db = null, this.ab = function (e) { if (e) {
1130
+ 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();
1131
+ } }, this.eb = null, this.bb = function (e) { if (e) {
1118
1132
  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; } } };
1119
- this.db = t;
1133
+ this.eb = t;
1120
1134
  for (var i in e)
1121
1135
  if (t[i]) {
1122
1136
  var a = t[i];
@@ -1124,21 +1138,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1124
1138
  }
1125
1139
  else
1126
1140
  n[i] = e[i];
1127
- } }, this.eb = function () { var e = this.db; for (var t in e) {
1141
+ } }, this.fb = function () { var e = this.eb; for (var t in e) {
1128
1142
  var i = e[t];
1129
1143
  i.postInit && i.postInit();
1130
- } }, this.fb = function () { if (this.id && this.id.tagName)
1144
+ } }, this.gb = function () { if (this.id && this.id.tagName)
1131
1145
  this.nav.top = this.id;
1132
1146
  else {
1133
1147
  if ("string" != typeof this.id)
1134
1148
  throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1135
1149
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1136
1150
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1137
- } }, this.gb = {}, this.gb.events = [], this.hb = function (e) { var t = this.gb.events, i = this.events.list[e], a = {}; for (var o in i)
1151
+ } }, this.hb = {}, this.hb.events = [], this.ib = function (e) { var t = this.hb.events, i = this.events.list[e], a = {}; for (var o in i)
1138
1152
  a[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
1139
1153
  var r = {};
1140
1154
  r.control = n, r.data = a, this.onBeforeEventRender(r);
1141
- } t[e] = a; }, this.da = function () { var e = this.events.list; if (n.gb.events = [], e) {
1155
+ } t[e] = a; }, this.ea = function () { var e = this.events.list; if (n.hb.events = [], e) {
1142
1156
  if (!DayPilot.isArray(e))
1143
1157
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1144
1158
  var t = e.length, i = 864e5;
@@ -1159,11 +1173,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1159
1173
  }
1160
1174
  if ("function" == typeof this.onBeforeEventRender)
1161
1175
  for (var o = 0; o < t; o++)
1162
- this.hb(o);
1163
- for (var o = 0; o < this.ua.length; o++) {
1176
+ this.ib(o);
1177
+ for (var o = 0; o < this.va.length; o++) {
1164
1178
  var l = {};
1165
1179
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1166
- var d = this.ua[o];
1180
+ var d = this.va[o];
1167
1181
  d.events = [], d.lines = [], d.blocks = [];
1168
1182
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1169
1183
  if (!a[m]) {
@@ -1173,94 +1187,94 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1173
1187
  if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
1174
1188
  var D = new DayPilot.Event(r, n);
1175
1189
  D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
1176
- var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1177
- if (C === P && (w.cut || x.cut))
1190
+ var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1191
+ if (C === P && (x.cut || w.cut))
1178
1192
  continue;
1179
- var k = x.boxBottom;
1193
+ var k = w.boxBottom;
1180
1194
  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);
1181
1195
  var p = D.part.top, v = D.part.top + D.part.height;
1182
- 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);
1196
+ 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);
1183
1197
  }
1184
1198
  }
1185
1199
  }
1186
1200
  }
1187
- for (var o = 0; o < this.ua.length; o++) {
1188
- var d = this.ua[o];
1189
- d.events.sort(this.ib);
1201
+ for (var o = 0; o < this.va.length; o++) {
1202
+ var d = this.va[o];
1203
+ d.events.sort(this.jb);
1190
1204
  for (var m = 0; m < d.events.length; m++) {
1191
1205
  var r = d.events[m];
1192
1206
  d.putIntoBlock(r);
1193
1207
  }
1194
1208
  for (var m = 0; m < d.blocks.length; m++) {
1195
1209
  var _ = d.blocks[m];
1196
- _.events.sort(this.ib);
1210
+ _.events.sort(this.jb);
1197
1211
  for (var S = 0; S < _.events.length; S++) {
1198
1212
  var r = _.events[S];
1199
1213
  _.putIntoLine(r);
1200
1214
  }
1201
1215
  }
1202
1216
  }
1203
- } }, this.ib = function (e, t) { if (!(e && t && e.start && t.start))
1217
+ } }, this.jb = function (e, t) { if (!(e && t && e.start && t.start))
1204
1218
  return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
1205
- return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; 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; }, 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 () { if (n.nav.scroll) {
1219
+ return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; 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; }, 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 () { if (n.nav.scroll) {
1206
1220
  var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
1207
- n.Xa.scrollHour = t;
1208
- } }, 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 () { for (var e = this.Xa.themes, t = 0; t < e.length; t++) {
1221
+ n.Ya.scrollHour = t;
1222
+ } }, 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 () { for (var e = this.Ya.themes, t = 0; t < e.length; t++) {
1209
1223
  var i = e[t];
1210
1224
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1211
- } this.Xa.themes = []; }, this.pb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1225
+ } this.Ya.themes = []; }, this.qb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1212
1226
  var e = {};
1213
1227
  e.isCallBack = !1, this.onAfterRender(e);
1214
- } }, this.qb = function () { if ("function" == typeof this.onInit && !this.rb) {
1215
- this.rb = !0;
1228
+ } }, this.rb = function () { if ("function" == typeof this.onInit && !this.sb) {
1229
+ this.sb = !0;
1216
1230
  var e = {};
1217
1231
  this.onInit(e);
1218
- } }, 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);
1232
+ } }, 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);
1219
1233
  }, 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) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
1220
1234
  var i = new DayPilot.Calendar(this.id);
1221
1235
  this.daypilot = i;
1222
1236
  for (name in e)
1223
1237
  i[name] = e[name];
1224
1238
  i.init(), t || (t = i);
1225
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
1239
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
1226
1240
  (0, e(r).assign)(t, n);
1227
1241
  } for (var s in a)
1228
1242
  0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
1229
- n[t] = e[t]; n.update(), n.qb(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
1243
+ n[t] = e[t]; n.update(), n.rb(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
1230
1244
  }
1231
1245
  }(), "undefined" == typeof DayPilot)
1232
1246
  var DayPilot = {};
1233
- if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.3.547-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1247
+ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.4.566-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1234
1248
  for (var t in e)
1235
- this[t] = e[t]; }, 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 () { var e = this.B(); if (!e)
1249
+ this[t] = e[t]; }, 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 () { var e = this.C(); if (!e)
1236
1250
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
1237
1251
  return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
1238
1252
  if (a)
1239
1253
  return a;
1240
1254
  a = DayPilot.Date.parse(t, i.patterns[n]);
1241
- } return a; }, this.ub = function (e) { var t = this.B(); if (t) {
1255
+ } return a; }, this.vb = function (e) { var t = this.C(); if (t) {
1242
1256
  var a = e.toString(i.pattern, i.locale);
1243
1257
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1244
- } }, 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 () { if (!this.sb) {
1245
- var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
1246
- 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;
1258
+ } }, 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 () { if (!this.tb) {
1259
+ var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
1260
+ 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;
1247
1261
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1248
1262
  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);
1249
1263
  var l = document.createElement("div");
1250
1264
  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;
1251
- var d = i.tb() || (new DayPilot.Date).getDatePart();
1252
- if (a.startDate = d, a.vb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1265
+ var d = i.ub() || (new DayPilot.Date).getDatePart();
1266
+ if (a.startDate = d, a.wb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1253
1267
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1254
1268
  s.style.left = c + "px";
1255
1269
  }
1256
- this.sb = !0, this.onShow && this.onShow();
1270
+ this.tb = !0, this.onShow && this.onShow();
1257
1271
  } }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
1258
1272
  var DayPilot = {};
1259
1273
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
1260
1274
  "use strict";
1261
1275
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1262
1276
  var e = function () { }, t = {};
1263
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.3.547-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) { o = o || {}; var r = null; 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) {
1277
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; 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) { o = o || {}; var r = null; 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) {
1264
1278
  a.cssOnly || (a.cssOnly = !0);
1265
1279
  var s = null;
1266
1280
  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) {
@@ -1269,15 +1283,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1269
1283
  return;
1270
1284
  }
1271
1285
  var d = document.createElement("div");
1272
- 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)
1286
+ 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)
1273
1287
  throw "No menu items defined.";
1274
1288
  if (this.showMenuTitle) {
1275
1289
  var c = document.createElement("div");
1276
- c.innerHTML = this.menuTitle, c.className = this.xb("title"), d.appendChild(c);
1290
+ c.innerHTML = this.menuTitle, c.className = this.yb("title"), d.appendChild(c);
1277
1291
  }
1278
1292
  for (var u = 0; u < this.items.length; u++) {
1279
1293
  var h = this.items[u], f = document.createElement("div");
1280
- 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) {
1294
+ 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) {
1281
1295
  if ("-" === h.text) {
1282
1296
  var m = document.createElement("div");
1283
1297
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1285,7 +1299,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1285
1299
  else {
1286
1300
  var p = document.createElement("a");
1287
1301
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1288
- DayPilot.Util.addClass(p, a.xb("item_disabled"));
1302
+ DayPilot.Util.addClass(p, a.yb("item_disabled"));
1289
1303
  else {
1290
1304
  if (h.onclick || h.onClick) {
1291
1305
  p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
@@ -1301,7 +1315,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1301
1315
  DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
1302
1316
  }
1303
1317
  if (h.items && !h.disabled) {
1304
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.yb(e, t); }; };
1318
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.zb(e, t); }; };
1305
1319
  p.ontouchend = y(h, p);
1306
1320
  }
1307
1321
  if (h.onclick)
@@ -1324,36 +1338,36 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1324
1338
  }
1325
1339
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
1326
1340
  var g = document.createElement("span");
1327
- if (g.className = a.xb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
1341
+ if (g.className = a.yb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
1328
1342
  var b = document.createElement("img");
1329
1343
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
1330
1344
  }
1331
1345
  if (h.icon) {
1332
1346
  var D = document.createElement("span");
1333
- D.className = a.xb("item_icon");
1334
- var w = document.createElement("i");
1335
- w.className = h.icon, D.appendChild(w), p.appendChild(D);
1347
+ D.className = a.yb("item_icon");
1348
+ var x = document.createElement("i");
1349
+ x.className = h.icon, D.appendChild(x), p.appendChild(D);
1336
1350
  }
1337
1351
  if (h.symbol) {
1338
- var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
1352
+ var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
1339
1353
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
1340
- var P = document.createElementNS(x, "use");
1354
+ var P = document.createElementNS(w, "use");
1341
1355
  P.setAttribute("href", h.symbol), C.appendChild(P);
1342
1356
  var k = document.createElement("span");
1343
- k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
1357
+ k.className = a.yb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
1344
1358
  }
1345
1359
  var _ = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
1346
1360
  if (o.parent === n)
1347
1361
  return;
1348
1362
  clearTimeout(o.timeout), t.waitingSubmenu = null;
1349
- } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.yb(n, i); }, 300)); }; };
1363
+ } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.zb(n, i); }, 300)); }; };
1350
1364
  p.onmouseover = _(h, p), f.appendChild(p);
1351
1365
  }
1352
1366
  d.appendChild(f);
1353
1367
  }
1354
1368
  }
1355
1369
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1356
- 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 = "";
1370
+ 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 = "";
1357
1371
  var M = d.offsetHeight, T = d.offsetWidth;
1358
1372
  d.style.display = "none";
1359
1373
  var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
@@ -1374,32 +1388,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1374
1388
  }
1375
1389
  else
1376
1390
  d.style.left = e + "px"; }(), o.parentLink) {
1377
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), R = z.x + N.offsetWidth, O = z.y - I;
1378
- R + T > H && (R = Math.max(0, z.x - T));
1379
- var U = document.body.scrollTop + document.documentElement.scrollTop;
1380
- O + M - U > A && (O = Math.max(0, A - M + U)), d.style.left = R + "px", d.style.top = O + "px";
1391
+ 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;
1392
+ U + T > H && (U = Math.max(0, O.x - T));
1393
+ var R = document.body.scrollTop + document.documentElement.scrollTop;
1394
+ z + M - R > A && (z = Math.max(0, A - M + R)), d.style.left = U + "px", d.style.top = z + "px";
1381
1395
  }
1382
- d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
1383
- } }, this.yb = function (e, t) { var i = e, n = t.source; 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)) {
1396
+ d.style.display = "", this.addShadow(d), this.xb.div = d, o.submenu || (DayPilot.Menu.active = this);
1397
+ } }, this.zb = function (e, t) { var i = e, n = t.source; 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)) {
1384
1398
  var o = a.cloneOptions();
1385
- 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"));
1386
- } }, 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) { e = e || {}, this.wb.submenu && this.wb.submenu.menu.hide(); var i = t.waitingSubmenu; 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) {
1399
+ 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"));
1400
+ } }, 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) { e = e || {}, this.xb.submenu && this.xb.submenu.menu.hide(); var i = t.waitingSubmenu; 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) {
1387
1401
  var o = {};
1388
1402
  this.onHide(o);
1389
1403
  } }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
1390
1404
  for (var r in o)
1391
- this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; 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; for (var a in t)
1392
- this[a] = t[a]; this.Ab = function (e) { return this.theme + "_" + e; }, this.s = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ab("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); 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) { if (i.active && i.active.item === e)
1393
- i.Bb();
1405
+ this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; 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; for (var a in t)
1406
+ this[a] = t[a]; this.Bb = function (e) { return this.theme + "_" + e; }, this.t = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Bb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); 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) { if (i.active && i.active.item === e)
1407
+ i.Cb();
1394
1408
  else if (e.children)
1395
- return void i.Cb(a); if ("function" == typeof e.onClick) {
1409
+ return void i.Db(a); if ("function" == typeof e.onClick) {
1396
1410
  var n = {};
1397
1411
  n.item = e, n.originalEvent = t, e.onClick(n);
1398
- } }, 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); }); }, 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) { if (!i.Db(e)) {
1399
- i.Bb();
1412
+ } }, 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); }); }, 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) { if (!i.Eb(e)) {
1413
+ i.Cb();
1400
1414
  var t = e.data, a = i.active = {};
1401
1415
  a.item = t, a.div = e;
1402
- var n = i.Ab("item_active");
1416
+ var n = i.Bb("item_active");
1403
1417
  DayPilot.Util.addClass(e, n);
1404
1418
  var o = DayPilot.abs(e);
1405
1419
  if (t.children) {
@@ -1408,16 +1422,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1408
1422
  "right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
1409
1423
  }
1410
1424
  DayPilot.MenuBar.active = i;
1411
- } }, this.init = function () { return this.s(), this.Aa = !0, this; }, this.dispose = function () { this.Aa && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, 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) { if (!e || !e.touches)
1425
+ } }, this.init = function () { return this.t(), this.Ba = !0, this; }, this.dispose = function () { this.Ba && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, 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) { if (!e || !e.touches)
1412
1426
  return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
1413
1427
  var i = DayPilot.Menu.active;
1414
1428
  if (i) {
1415
- var a = i.wb.source;
1429
+ var a = i.xb.source;
1416
1430
  a && a.calendar === e.calendar && t.menuClean();
1417
1431
  }
1418
1432
  }
1419
1433
  else
1420
- t.menuClean(); }, 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 = {};
1434
+ t.menuClean(); }, 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 = {};
1421
1435
  }
1422
1436
  }(DayPilot), "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
1423
1437
  "use strict";
@@ -1457,23 +1471,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1457
1471
  t.sheet.addRule(e, a, n);
1458
1472
  } }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
1459
1473
  n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
1460
- "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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Eb = !1, this.Fb = null, this.Gb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1461
- throw "This modal dialog is already displayed."; if (this.div || this.Hb(), this.$a(), this.useIframe) {
1474
+ "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) { 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; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Fb = !1, this.Gb = null, this.Hb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1475
+ throw "This modal dialog is already displayed."; if (this.div || this.Ib(), this._a(), this.useIframe) {
1462
1476
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1463
1477
  window.setTimeout(t(this, e), 0);
1464
1478
  }
1465
1479
  else
1466
- e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.$a(), this.Ib(), this.Jb(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1480
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this._a(), this.Jb(), this.Kb(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1467
1481
  throw "This modal dialog is already displayed."; if (this.useIframe) {
1468
- this.div || this.Hb();
1482
+ this.div || this.Ib();
1469
1483
  var i = this.loadingHtml;
1470
- 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();
1484
+ 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();
1471
1485
  }
1472
1486
  else
1473
- 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"); } }); }, this.Jb = function () { if ("function" == typeof t.onShow) {
1487
+ 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"); } }); }, this.Kb = function () { if ("function" == typeof t.onShow) {
1474
1488
  var e = {};
1475
- e.root = t.Mb(), e.modal = t, t.onShow(e);
1476
- } }, this.Mb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Lb = function (e) { var t = new XMLHttpRequest; if (t) {
1489
+ e.root = t.Nb(), e.modal = t, t.onShow(e);
1490
+ } }, this.Nb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Mb = function (e) { var t = new XMLHttpRequest; if (t) {
1477
1491
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
1478
1492
  t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
1479
1493
  if (200 === t.status || 304 === t.status) {
@@ -1486,45 +1500,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1486
1500
  }
1487
1501
  else
1488
1502
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1489
- } }, 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 () { var e = function () { return t.Nb().y; }, i = function () { return t.Nb().x; }; if (this.useIframe) {
1490
- for (var a = i() - 40, n = this.width; n < a && this.Pb(); n += 10)
1503
+ } }, 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 () { var e = function () { return t.Ob().y; }, i = function () { return t.Ob().x; }; if (this.useIframe) {
1504
+ for (var a = i() - 40, n = this.width; n < a && this.Qb(); n += 10)
1491
1505
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
1492
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Qb(); r += 10)
1506
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Rb(); r += 10)
1493
1507
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
1494
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Kb);
1508
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Lb);
1495
1509
  }
1496
1510
  else
1497
- this.div.style.height = ""; }, this.Pb = function () { 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++) {
1511
+ this.div.style.height = ""; }, this.Qb = function () { 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++) {
1498
1512
  var o = a[n].offsetLeft + a[n].offsetWidth;
1499
1513
  i = Math.max(i, o);
1500
- } return i > t.clientWidth; }, this.Qb = function () { 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++) {
1514
+ } return i > t.clientWidth; }, this.Rb = function () { 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++) {
1501
1515
  var o = a[n].offsetTop + a[n].offsetHeight;
1502
1516
  i = Math.max(i, o);
1503
- } return i > t.clientHeight; }, this.Nb = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1517
+ } return i > t.clientHeight; }, this.Ob = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1504
1518
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
1505
1519
  return { x: t, y: i };
1506
- } var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, 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) { if (t.Gb) {
1507
- var e = e || window.event, i = t.mc(e), a = i.x - t.Gb.x, n = i.y - t.Gb.y;
1508
- t.div.style.marginLeft = "0px", t.div.style.top = t.Fb.y + n + "px", t.div.style.left = t.Fb.x + a + "px";
1509
- } }, this.Ub = function (e) { t.Gb && (t.Yb(), t.div.style.cursor = null, t.Gb = null); }, this.Xb = function () { if (this.useIframe) {
1520
+ } var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, 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) { if (t.Hb) {
1521
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Hb.x, n = i.y - t.Hb.y;
1522
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Gb.y + n + "px", t.div.style.left = t.Gb.x + a + "px";
1523
+ } }, this.Vb = function (e) { t.Hb && (t.Zb(), t.div.style.cursor = null, t.Hb = null); }, this.Yb = function () { if (this.useIframe) {
1510
1524
  var e = document.createElement("div");
1511
1525
  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;
1512
- } }, 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 () { if (!t.left && t.div) {
1526
+ } }, 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 () { if (!t.left && t.div) {
1513
1527
  var e = t.div.offsetWidth;
1514
1528
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1515
- } }, this.Zb = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1516
- var e = t.$b.scrollY();
1529
+ } }, this.$b = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1530
+ var e = t._b.scrollY();
1517
1531
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1518
- } }, 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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1519
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, 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 () { for (var e = t.Mb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1532
+ } }, 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) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1533
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, 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 () { for (var e = t.Nb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
1520
1534
  var o = i[n], r = o.name;
1521
1535
  if (r) {
1522
1536
  var s = o.value;
1523
1537
  a[r] = s;
1524
1538
  }
1525
- } t.close(a); }, 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 () { if (e)
1539
+ } t.close(a); }, 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 () { if (e)
1526
1540
  for (var t in e)
1527
- this[t] = e[t]; }, this.cc(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1541
+ this[t] = e[t]; }, this.dc(); }, 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) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1528
1542
  case 13:
1529
1543
  s.close(this.value);
1530
1544
  break;
@@ -1574,28 +1588,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1574
1588
  g && g.focus();
1575
1589
  }
1576
1590
  else {
1577
- var w = h.firstFocusable();
1578
- o.autoFocus && w ? w.focus() : o.div.focus();
1591
+ var x = h.firstFocusable();
1592
+ o.autoFocus && x ? x.focus() : o.div.focus();
1579
1593
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
1580
1594
  throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, 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)); });
1581
- var r = function (e) { 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 || {}; for (var t in e)
1595
+ var r = function (e) { 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 || {}; for (var t in e)
1582
1596
  this[t] = e[t]; };
1583
- 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) { var t = this.theme, i = this, a = document.createElement("div"); 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) {
1597
+ 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) { var t = this.theme, i = this, a = document.createElement("div"); 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) {
1584
1598
  var n = document.createElement("div");
1585
1599
  n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
1586
- } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.hc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1600
+ } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.ic(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
1587
1601
  var t = {};
1588
1602
  t.result = i.serialize(), i.onChange(t);
1589
- } }, 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); }, 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) { 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); } t = t || {}; 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; if (d) {
1603
+ } }, 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); }, 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) { 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); } t = t || {}; 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; if (d) {
1590
1604
  var c = {};
1591
1605
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
1592
1606
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1593
1607
  if (c.valid)
1594
- clearTimeout(this.fc[o.field]), e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.remove(u);
1608
+ clearTimeout(this.gc[o.field]), e.jc && (e.jc.remove(), e.jc = null), e.hc.classList.remove(u);
1595
1609
  else if (!n)
1596
1610
  if (a) {
1597
1611
  var f = 1e3;
1598
- clearTimeout(this.fc[o.field]), this.fc[o.field] = setTimeout(function () { i(); }, f);
1612
+ clearTimeout(this.gc[o.field]), this.gc[o.field] = setTimeout(function () { i(); }, f);
1599
1613
  }
1600
1614
  else
1601
1615
  i();
@@ -1607,32 +1621,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1607
1621
  catch (e) {
1608
1622
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1609
1623
  } for (var n in i)
1610
- this.setValue(n, i[n]); }, 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) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1624
+ this.setValue(n, i[n]); }, 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) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1611
1625
  if (e.name) {
1612
1626
  var o = new s;
1613
- 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);
1627
+ 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);
1614
1628
  }
1615
- 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); }); });
1629
+ 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); }); });
1616
1630
  }
1617
1631
  else if ("title" === a) {
1618
1632
  var o = new s;
1619
- 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);
1633
+ 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);
1620
1634
  }
1621
1635
  else if ("image" === a) {
1622
1636
  var o = new s;
1623
- 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);
1637
+ 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);
1624
1638
  }
1625
1639
  else if ("html" === a) {
1626
1640
  var o = new s;
1627
- 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);
1641
+ 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);
1628
1642
  }
1629
1643
  else if ("scrollable" === a) {
1630
1644
  var o = new s;
1631
- 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);
1645
+ 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);
1632
1646
  }
1633
1647
  else {
1634
1648
  var o = new s;
1635
- 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);
1649
+ 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);
1636
1650
  } 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; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1637
1651
  var t = { key: e };
1638
1652
  this.onKey(t);
@@ -1664,13 +1678,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1664
1678
  n.close(), i = !0;
1665
1679
  break;
1666
1680
  default: i = !0;
1667
- } i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "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 () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); 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); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
1668
- return {}; var t = n.lc, i = {}; return i[e.field] = t, i; }, i; }, "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; } };
1681
+ } i || (e.preventDefault(), e.stopPropagation()); }, 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; }, "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 () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); 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); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
1682
+ return {}; var t = n.nc, i = {}; return i[e.field] = t, i; }, i; }, "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; } };
1669
1683
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
1670
- }, r.prototype.jc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1684
+ }, r.prototype.kc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1671
1685
  var h = c.addMinutes(n * u), f = {};
1672
1686
  f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
1673
- } 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(); 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; }, r.prototype.kc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1687
+ } 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(); 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; }, r.prototype.lc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1674
1688
  var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
1675
1689
  r.locale = s, r.pattern = l.datePattern;
1676
1690
  } o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
@@ -1687,11 +1701,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1687
1701
  } i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
1688
1702
  var u = l.addMinutes(n * c), h = {};
1689
1703
  h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
1690
- } var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); 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; }, 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) { var i = this.ec ? this.ec : this.dc, a = i.indexOf(e); return this.ec = i.map(function (i) { if (i !== e)
1704
+ } var f = 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 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); 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; }, 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) { var i = this.fc ? this.fc : this.ec, a = i.indexOf(e); return this.fc = i.map(function (i) { if (i !== e)
1691
1705
  return i; if (e.propsEqual(t))
1692
1706
  return e; var a = e.clone(); for (var n in t)
1693
- a[n] = t[n]; return a; }), this.ec[a]; }, r.prototype.updateInteractive = function (e) { var t = this.ec.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.ec) {
1694
- this.ec.filter(function (t, i) { return e.dc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.dc = this.ec, this.ec = null;
1707
+ a[n] = t[n]; return a; }), this.fc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.fc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.fc) {
1708
+ this.fc.filter(function (t, i) { return e.ec[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.ec = this.fc, this.fc = null;
1695
1709
  } }, 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 () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
1696
1710
  e[a] = i[a]; }), e; };
1697
1711
  var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
@@ -1699,45 +1713,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1699
1713
  "id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
1700
1714
  if (this[t] !== e[t])
1701
1715
  return !1; return !0; }, 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)); };
1702
- 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) { 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 || {}; 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); } } }; 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()); } }); for (var a in e)
1716
+ 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) { 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 || {}; 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); } } }; 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()); } }); for (var a in e)
1703
1717
  i[a] || (this[a] = e[a]); for (var a in e)
1704
1718
  i[a] && i[a].post(e[a]); };
1705
- 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 () { function e(e) { var i = l.strategy; "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 = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
1719
+ 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 () { function e(e) { var i = l.strategy; "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 = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
1706
1720
  if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
1707
1721
  return;
1708
1722
  }
1709
1723
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
1710
- return; var r = document.createElement("div"); 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); }), l.pc || (l.pc = n), t(); } 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()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.oc = t, l.vc(!0), o(), r(); } function n() { l.uc(); } function o() { l.p(); } function r() { l.qc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.qc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); 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()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.tc = f; var m = document.createElement("input"); 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) { if (l.qc) {
1724
+ return; var r = document.createElement("div"); 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); }), l.qc || (l.qc = n), t(); } 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()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.pc = t, l.wc(!0), o(), r(); } function n() { l.vc(); } function o() { l.q(); } function r() { l.rc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.rc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); 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()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.uc = f; var m = document.createElement("input"); 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) { if (l.rc) {
1711
1725
  if ("Enter" === e.key)
1712
1726
  return;
1713
1727
  if ("Esc" === e.key || "Escape" === e.key)
1714
1728
  return;
1715
1729
  s();
1716
1730
  } if ("ArrowDown" === e.key) {
1717
- var i = d.o.indexOf(d.pc);
1718
- i + 1 < d.o.length && (d.pc = d.o[i + 1]), t();
1731
+ var i = d.p.indexOf(d.qc);
1732
+ i + 1 < d.p.length && (d.qc = d.p[i + 1]), t();
1719
1733
  }
1720
1734
  else if ("ArrowUp" === e.key) {
1721
- var i = d.o.indexOf(d.pc);
1722
- i - 1 >= 0 && (d.pc = d.o[i - 1]), t();
1735
+ var i = d.p.indexOf(d.qc);
1736
+ i - 1 >= 0 && (d.qc = d.p[i - 1]), t();
1723
1737
  }
1724
1738
  else
1725
- "Enter" === e.key ? l.pc ? (e.stopPropagation(), a(l.pc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), 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; }, 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) { 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) {
1739
+ "Enter" === e.key ? l.qc ? (e.stopPropagation(), a(l.qc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), 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; }, 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) { 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) {
1726
1740
  var t = { control: this, ui: e };
1727
1741
  this.onSelect(t);
1728
1742
  } };
1729
- var c = function (e) { 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 || {}; for (var t in e)
1743
+ var c = function (e) { 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 || {}; for (var t in e)
1730
1744
  this[t] = e[t]; };
1731
- c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.xc(); a.appendChild(n); var o = e.yc({}); o.spacer = !0; var r = this.zc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1745
+ c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.yc(); a.appendChild(n); var o = e.zc({}); o.spacer = !0; var r = this.Ac(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1732
1746
  var i = e.item.onNewRow, a = {};
1733
1747
  if ("function" == typeof i) {
1734
1748
  var n = {};
1735
1749
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
1736
1750
  }
1737
- var o = e.yc(a);
1738
- e.dc.push(o), e.Ac(), e.Bc();
1739
- } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, 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) { if ("[object Array]" !== Object.prototype.toString.call(e))
1740
- throw new Error("Array expected"); this.data = e, this.Dc(), this.Ac(); }, 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) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Gc(a); if ("undefined" == typeof o)
1751
+ var o = e.zc(a);
1752
+ e.ec.push(o), e.Bc(), e.Cc();
1753
+ } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, 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) { if ("[object Array]" !== Object.prototype.toString.call(e))
1754
+ throw new Error("Array expected"); this.data = e, this.Ec(), this.Bc(); }, 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) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Hc(a); if ("undefined" == typeof o)
1741
1755
  if ("text" === r)
1742
1756
  o = "";
1743
1757
  else if ("number" === r)
@@ -1745,23 +1759,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1745
1759
  else if ("select" === r) {
1746
1760
  var s = a.options;
1747
1761
  o = s && s[0].id;
1748
- } var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Gc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Ac = function () { var e = this; 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) {
1749
- var t = e.Hc();
1762
+ } var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Hc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Bc = function () { var e = this; 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) {
1763
+ var t = e.Ic();
1750
1764
  e.nav.after.appendChild(t);
1751
- } this.Ec(); }, c.prototype.Hc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.zc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Ic(a); if (e.spacer) {
1765
+ } this.Fc(); }, c.prototype.Ic = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Ac = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Jc(a); if (e.spacer) {
1752
1766
  var r = document.createElement("div");
1753
1767
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
1754
1768
  }
1755
1769
  else
1756
- n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); 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; }, c.prototype.Bc = function () { var e = this; if ("function" == typeof e.onInput) {
1770
+ n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); 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; }, c.prototype.Cc = function () { var e = this; if ("function" == typeof e.onInput) {
1757
1771
  var t = {};
1758
1772
  e.onInput(t);
1759
- } }, c.prototype.Ic = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
1773
+ } }, c.prototype.Jc = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
1760
1774
  var a = document.createElement("input");
1761
- 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;
1775
+ 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;
1762
1776
  } if ("select" === i) {
1763
1777
  var n = document.createElement("select");
1764
- 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;
1778
+ 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;
1765
1779
  } throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
1766
1780
  }
1767
1781
  }(DayPilot), "undefined" == typeof DayPilot)
@@ -1770,15 +1784,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1770
1784
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1771
1785
  var e = {};
1772
1786
  e.Month = function (t, i) {
1773
- this.v = "2024.3.547-lite", this.nav = {};
1787
+ this.v = "2024.4.566-lite", this.nav = {};
1774
1788
  var a = this;
1775
- 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) { var t = null; if (e instanceof DayPilot.Event)
1789
+ 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) { var t = null; if (e instanceof DayPilot.Event)
1776
1790
  t = e.data;
1777
1791
  else {
1778
1792
  if ("object" != typeof e)
1779
1793
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
1780
1794
  t = e;
1781
- } a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.ra.notify(); }, this.events.find = function (e) { if (!a.events.list)
1795
+ } a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.sa.notify(); }, this.events.find = function (e) { if (!a.events.list)
1782
1796
  return null; if ("function" == typeof e) {
1783
1797
  for (var t = e, i = 0; i < a.events.list.length; i++) {
1784
1798
  var n = new DayPilot.Event(a.events.list[i], a);
@@ -1798,7 +1812,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1798
1812
  var i = DayPilot.indexOf(a.events.list, t.data);
1799
1813
  a.events.list.splice(i, 1, e);
1800
1814
  }
1801
- } a.update(), a.ra.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1815
+ } a.update(), a.sa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1802
1816
  t = e.data;
1803
1817
  else if ("object" == typeof e) {
1804
1818
  var i = a.events.find(e.id);
@@ -1807,7 +1821,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1807
1821
  else if ("string" == typeof e || "number" == typeof e) {
1808
1822
  var i = a.events.find(e);
1809
1823
  i && (t = i.data);
1810
- } var n = DayPilot.indexOf(a.events.list, t); a.events.list.splice(n, 1), a.update(), a.ra.notify(); }, this.events.load = function (e, t, i) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1824
+ } var n = DayPilot.indexOf(a.events.list, t); a.events.list.splice(n, 1), a.update(), a.sa.notify(); }, this.events.load = function (e, t, i) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
1811
1825
  i = JSON.parse(o.responseText);
1812
1826
  }
1813
1827
  catch (e) {
@@ -1817,21 +1831,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1817
1831
  var s = {};
1818
1832
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1819
1833
  return;
1820
- a.events.list = i, a.Aa && a.update();
1834
+ a.events.list = i, a.Ba && a.update();
1821
1835
  } }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
1822
1836
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
1823
1837
  else {
1824
1838
  var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
1825
1839
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
1826
- } }, 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.ib), 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) { if (a.ab(e), this.Aa) {
1827
- if (a.N)
1840
+ } }, 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) { if (a.bb(e), this.Ba) {
1841
+ if (a.O)
1828
1842
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
1829
1843
  if (this.cells) {
1830
- a.V(), a.Jc(), a.da(), a.Kc(), a.Lc(), a.ia(), a.s(), a.ja(), this.visible ? this.show() : this.hide();
1844
+ a.W(), a.Kc(), a.ea(), a.Lc(), a.Mc(), a.ja(), a.t(), a.ka(), this.visible ? this.show() : this.hide();
1831
1845
  }
1832
- } }, this.db = null, this.ab = function (e) { if (e) {
1846
+ } }, this.eb = null, this.bb = function (e) { if (e) {
1833
1847
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
1834
- this.db = t;
1848
+ this.eb = t;
1835
1849
  for (var i in e)
1836
1850
  if (t[i]) {
1837
1851
  var n = t[i];
@@ -1839,19 +1853,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1839
1853
  }
1840
1854
  else
1841
1855
  a[i] = e[i];
1842
- } }, this.eb = function () { var e = this.db; for (var t in e) {
1856
+ } }, this.fb = function () { var e = this.eb; for (var t in e) {
1843
1857
  var i = e[t];
1844
1858
  i.postInit && i.postInit();
1845
- } }, this.gb = {}, this.gb.events = [], this.hb = function (e) { var t = this.gb.events, i = this.events.list[e], n = {}; for (var o in i)
1859
+ } }, this.hb = {}, this.hb.events = [], this.ib = function (e) { var t = this.hb.events, i = this.events.list[e], n = {}; for (var o in i)
1846
1860
  n[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
1847
1861
  var r = {};
1848
1862
  r.control = a, r.data = n, this.onBeforeEventRender(r);
1849
- } t[e] = n; }, this.da = function () { var e = this.events.list; if (e) {
1863
+ } t[e] = n; }, this.ea = function () { var e = this.events.list; if (e) {
1850
1864
  if (!DayPilot.isArray(e))
1851
1865
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
1852
1866
  if ("function" == typeof this.onBeforeEventRender)
1853
1867
  for (var t = 0; t < e.length; t++)
1854
- this.hb(t);
1868
+ this.ib(t);
1855
1869
  for (var i = 0; i < e.length; i++) {
1856
1870
  var a = e[i];
1857
1871
  if ("object" != typeof a)
@@ -1864,24 +1878,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1864
1878
  if (!(n.getTime() > o.getTime()))
1865
1879
  for (var t = 0; t < this.rows.length; t++) {
1866
1880
  var r = this.rows[t], s = new DayPilot.Event(a, this);
1867
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.gb.events[i]));
1881
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.hb.events[i]));
1868
1882
  }
1869
1883
  }
1870
1884
  for (var l = 0; l < this.rows.length; l++) {
1871
1885
  var r = this.rows[l];
1872
- r.events.sort(this.ib);
1886
+ r.events.sort(this.jb);
1873
1887
  for (var d = 0; d < this.rows[l].events.length; d++) {
1874
1888
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
1875
1889
  r.putIntoLine(c, u, h, l);
1876
1890
  }
1877
1891
  }
1878
- } }, this.V = function () { for (var e = 0; e < this.elements.events.length; e++) {
1892
+ } }, this.W = function () { for (var e = 0; e < this.elements.events.length; e++) {
1879
1893
  var t = this.elements.events[e];
1880
1894
  t.event = null, t.click = null, t.parentNode.removeChild(t);
1881
- } this.elements.events = []; }, this.ja = function () { this.Mc(); }, this.Mc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1895
+ } this.elements.events = []; }, this.ka = function () { this.Nc(); }, this.Nc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1882
1896
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
1883
1897
  for (var a = t.lines[i], n = 0; n < a.length; n++)
1884
- this.Da(a[n]); }, this.ib = function (e, t) { if (!(e && t && e.start && t.start))
1898
+ this.Ea(a[n]); }, this.jb = function (e, t) { if (!(e && t && e.start && t.start))
1885
1899
  return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, n, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o; var d = 7 * i + t - r; d < 0 && (l += d, t = 0, i = 0); for (var c = r; c >= 7;)
1886
1900
  i--, c -= 7; if (c > t) {
1887
1901
  c > t + (7 - this.getColCount()) ? (i--, t = t + 7 - c) : (l = l - c + t, t = 0);
@@ -1889,15 +1903,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1889
1903
  else
1890
1904
  t -= c; i < 0 && (i = 0, t = 0); var u = null; for (e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u; l > 0 && i < this.rows.length;) {
1891
1905
  var h = Math.min(this.getColCount() - t, l), f = this.rows[i], m = this.getRowTop(i), p = f.getHeight(), v = document.createElement("div");
1892
- 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"));
1906
+ 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"));
1893
1907
  var y = document.createElement("div");
1894
- 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++;
1908
+ 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++;
1895
1909
  } }, this.clearShadow = function () { if (this.shadow) {
1896
1910
  for (var e = 0; e < this.shadow.list.length; e++)
1897
1911
  this.nav.top.removeChild(this.shadow.list[e]);
1898
1912
  this.shadow = null, this.nav.top.style.cursor = "";
1899
1913
  } }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
1900
- i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Da = function (t) { 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"); 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) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
1914
+ i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ea = function (t) { 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"); 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) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
1901
1915
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1902
1916
  var d = {};
1903
1917
  d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
@@ -1918,18 +1932,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1918
1932
  var n = 6;
1919
1933
  a.x <= n && t.client.resizeEnabled() ? t.part.startsHere ? (u.style.cursor = "w-resize", u.dpBorder = "left") : u.style.cursor = "not-allowed" : u.clientWidth - a.x <= n && t.client.resizeEnabled() ? t.part.endsHere ? (u.style.cursor = "e-resize", u.dpBorder = "right") : u.style.cursor = "not-allowed" : t.client.clickEnabled() ? u.style.cursor = "pointer" : u.style.cursor = "default";
1920
1934
  }
1921
- } }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); }; var h = document.createElement("div"); 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()) {
1935
+ } }, u.onmouseleave = function (e) { u.deleteIcon && (u.deleteIcon.style.display = "none"), u.style.cursor = ""; }, u.onmouseenter = function (e) { u.deleteIcon && (u.deleteIcon.style.display = ""); }; var h = document.createElement("div"); 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()) {
1922
1936
  var f = document.createElement("div");
1923
- f.setAttribute("unselectable", "on"), f.className = this.J("_event_bar"), f.style.position = "absolute";
1937
+ f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar"), f.style.position = "absolute";
1924
1938
  var m = document.createElement("div");
1925
- 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);
1939
+ 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);
1926
1940
  } if (t.client.deleteEnabled()) {
1927
1941
  var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
1928
- 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);
1942
+ 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);
1929
1943
  } var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
1930
1944
  var g = {};
1931
1945
  g.e = u.event, g.div = u, a.onAfterEventRender(g);
1932
- } this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Jc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
1946
+ } this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Kc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
1933
1947
  var o = {};
1934
1948
  o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
1935
1949
  var r = this.lines[o];
@@ -1939,7 +1953,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1939
1953
  e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
1940
1954
  e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
1941
1955
  } this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
1942
- e += this.rows[t].getHeight(); return e; }, 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 () { var t = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
1956
+ e += this.rows[t].getHeight(); return e; }, 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 () { var t = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
1943
1957
  var i = DayPilot.mo3(a.nav.top, t);
1944
1958
  if (!i)
1945
1959
  return;
@@ -1982,7 +1996,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1982
1996
  o < 1 && (o = 1);
1983
1997
  var v = m < p ? r : n;
1984
1998
  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);
1985
- } }; }, this.ia = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
1999
+ } }; }, this.ja = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
1986
2000
  for (var t = 0; t < this.cells[e].length; t++)
1987
2001
  this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
1988
2002
  var l = o;
@@ -1991,7 +2005,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1991
2005
  break;
1992
2006
  }
1993
2007
  } null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
1994
- i.y++, t -= 7; return i.x = t, i; }, this.Lc = function () {
2008
+ i.y++, t -= 7; return i.x = t, i; }, this.Mc = function () {
1995
2009
  var e = document.createElement("div");
1996
2010
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
1997
2011
  for (var t = 0; t < this.getColCount(); t++) {
@@ -1999,19 +2013,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1999
2013
  var i = document.createElement("div");
2000
2014
  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";
2001
2015
  var a = t + this.getWeekStart();
2002
- a > 6 && (a -= 7), i.className = this.J("_header");
2016
+ a > 6 && (a -= 7), i.className = this.K("_header");
2003
2017
  var o = document.createElement("div");
2004
- 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.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
2018
+ 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);
2005
2019
  for (var r = 0; r < this.rows.length; r++)
2006
- this.Oc(t, r, e);
2020
+ this.Pc(t, r, e);
2007
2021
  }
2008
- }, this.Kc = function () { for (var e = 0; e < this.cells.length; e++)
2022
+ }, this.Lc = function () { for (var e = 0; e < this.cells.length; e++)
2009
2023
  for (var t = 0; t < this.cells[e].length; t++)
2010
- this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.pa = function () { return 2 === a.api; }, this.Oc = function (t, i, o) { var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null; d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l; var c = !a.isWeekend(s), u = {}; 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); var h = u.cell.properties, f = document.createElement("div"); 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) {
2011
- var c = this.J("_cell_business");
2024
+ this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.qa = function () { return 2 === a.api; }, this.Pc = function (t, i, o) { var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null; d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l; var c = !a.isWeekend(s), u = {}; 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); var h = u.cell.properties, f = document.createElement("div"); 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) {
2025
+ var c = this.K("_cell_business");
2012
2026
  DayPilot.Util.addClass(f, c);
2013
- } var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
2014
- return void e(s); }; var p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.J("_cell_header"), p.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
2027
+ } var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.M(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
2028
+ return void e(s); }; var p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.height = this.cellHeaderHeight + "px", p.className = this.K("_cell_header"), p.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
2015
2029
  e.stopPropagation();
2016
2030
  var t = {};
2017
2031
  t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
@@ -2022,10 +2036,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2022
2036
  var e = n.locale();
2023
2037
  return e ? e.weekStarts : 0;
2024
2038
  } return a.weekStarts || 0; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
2025
- t += this.rows[i].getHeight(); return t; }, 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) { var i = e.event; if (i && i.client.clickEnabled())
2026
- if (a.pa()) {
2039
+ t += this.rows[i].getHeight(); return t; }, 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) { var i = e.event; if (i && i.client.clickEnabled())
2040
+ if (a.qa()) {
2027
2041
  var n = {};
2028
- 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))
2042
+ 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))
2029
2043
  return;
2030
2044
  switch (a.eventClickHandling) {
2031
2045
  case "CallBack":
@@ -2035,7 +2049,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2035
2049
  var o = i.client.contextMenu();
2036
2050
  o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
2037
2051
  }
2038
- "function" == typeof a.onEventClicked && a.ra.apply(function () { a.onEventClicked(n); });
2052
+ "function" == typeof a.onEventClicked && a.sa.apply(function () { a.onEventClicked(n); });
2039
2053
  }
2040
2054
  else
2041
2055
  switch (a.eventClickHandling) {
@@ -2043,7 +2057,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2043
2057
  a.eventClickCallBack(i);
2044
2058
  break;
2045
2059
  case "JavaScript": a.onEventClick(i);
2046
- } }, this.Nc = function () { var e = this; return a.sa(e.event), !1; }, this.sa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2060
+ } }, this.Oc = function () { var e = this; return a.ta(e.event), !1; }, this.ta = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2047
2061
  return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
2048
2062
  switch (a.eventRightClickHandling) {
2049
2063
  case "ContextMenu":
@@ -2051,9 +2065,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2051
2065
  i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
2052
2066
  }
2053
2067
  return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
2054
- } }, this.ta = function (e) { if (a.pa()) {
2068
+ } }, this.ua = function (e) { if (a.qa()) {
2055
2069
  var t = {};
2056
- 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))
2070
+ 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))
2057
2071
  return;
2058
2072
  switch (a.eventDeleteHandling) {
2059
2073
  case "CallBack":
@@ -2064,7 +2078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2064
2078
  break;
2065
2079
  case "Update": a.events.remove(e);
2066
2080
  }
2067
- "function" == typeof a.onEventDeleted && a.ra.apply(function () { a.onEventDeleted(t); });
2081
+ "function" == typeof a.onEventDeleted && a.sa.apply(function () { a.onEventDeleted(t); });
2068
2082
  }
2069
2083
  else
2070
2084
  switch (a.eventDeleteHandling) {
@@ -2075,11 +2089,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2075
2089
  a.eventDeleteCallBack(e);
2076
2090
  break;
2077
2091
  case "JavaScript": a.onEventDelete(e);
2078
- } }, 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) { if (!t)
2092
+ } }, 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) { if (!t)
2079
2093
  throw "newStart is null"; if (!i)
2080
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.pa()) {
2094
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.S("EventMove", a, o); }, this.L = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.qa()) {
2081
2095
  var p = {};
2082
- 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))
2096
+ 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))
2083
2097
  return;
2084
2098
  switch (a.eventMoveHandling) {
2085
2099
  case "CallBack":
@@ -2087,7 +2101,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2087
2101
  break;
2088
2102
  case "Update": e.start(f), e.end(m), a.events.update(e);
2089
2103
  }
2090
- "function" == typeof a.onEventMoved && a.ra.apply(function () { a.onEventMoved(p); });
2104
+ "function" == typeof a.onEventMoved && a.sa.apply(function () { a.onEventMoved(p); });
2091
2105
  }
2092
2106
  else
2093
2107
  switch (a.eventMoveHandling) {
@@ -2097,9 +2111,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2097
2111
  case "JavaScript": a.onEventMove(e, f, m);
2098
2112
  } }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
2099
2113
  throw "newStart is null"; if (!i)
2100
- throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); 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); if (a.pa()) {
2114
+ throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.S("EventResize", a, n); }, this.J = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); 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); if (a.qa()) {
2101
2115
  var u = {};
2102
- 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))
2116
+ 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))
2103
2117
  return;
2104
2118
  switch (a.eventResizeHandling) {
2105
2119
  case "CallBack":
@@ -2107,7 +2121,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2107
2121
  break;
2108
2122
  case "Update": e.start(d), e.end(c), a.events.update(e);
2109
2123
  }
2110
- "function" == typeof a.onEventResized && a.ra.apply(function () { a.onEventResized(u); });
2124
+ "function" == typeof a.onEventResized && a.sa.apply(function () { a.onEventResized(u); });
2111
2125
  }
2112
2126
  else
2113
2127
  switch (a.eventResizeHandling) {
@@ -2115,14 +2129,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2115
2129
  a.eventResizeCallBack(e, d, c);
2116
2130
  break;
2117
2131
  case "JavaScript": a.onEventResize(e, d, c);
2118
- } }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.pa()) {
2132
+ } }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.S("TimeRangeSelected", i, a); }, this.M = function (e, t) { if (this.qa()) {
2119
2133
  var i = {};
2120
- 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))
2134
+ 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))
2121
2135
  return;
2122
2136
  switch (a.timeRangeSelectedHandling) {
2123
2137
  case "CallBack": a.timeRangeSelectedCallBack(e, t);
2124
2138
  }
2125
- "function" == typeof a.onTimeRangeSelected && a.ra.apply(function () { a.onTimeRangeSelected(i); });
2139
+ "function" == typeof a.onTimeRangeSelected && a.sa.apply(function () { a.onTimeRangeSelected(i); });
2126
2140
  }
2127
2141
  else
2128
2142
  switch (a.timeRangeSelectedHandling) {
@@ -2130,16 +2144,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2130
2144
  a.timeRangeSelectedCallBack(e, t);
2131
2145
  break;
2132
2146
  case "JavaScript": a.onTimeRangeSelected(e, t);
2133
- } }, 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; };
2134
- var n = this._;
2135
- 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 () { if (this.id && this.id.tagName)
2147
+ } }, 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; };
2148
+ var n = this.aa;
2149
+ 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 () { if (this.id && this.id.tagName)
2136
2150
  this.nav.top = this.id;
2137
2151
  else {
2138
2152
  if ("string" != typeof this.id)
2139
2153
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2140
2154
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2141
2155
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2142
- } }, 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);
2156
+ } }, 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);
2143
2157
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2144
2158
  var i = e.movingEvent;
2145
2159
  if (!i.event)
@@ -2153,7 +2167,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2153
2167
  var a = e.movingEvent.event.calendar, n = e.movingEvent.event, o = a.shadow.start, r = a.shadow.position, s = e.movingEvent.offset;
2154
2168
  a.clearShadow(), e.movingEvent = null;
2155
2169
  var t = t || window.event;
2156
- return a.K(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
2170
+ return a.L(n, o.x, o.y, s, t, r), t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), e.movingEvent = null, !1;
2157
2171
  } if (e.resizingEvent) {
2158
2172
  var i = e.resizingEvent;
2159
2173
  if (!i.event)
@@ -2165,11 +2179,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2165
2179
  if (!i.event.calendar.shadow.start)
2166
2180
  return;
2167
2181
  var a = e.resizingEvent.event.calendar, n = e.resizingEvent.event, o = a.shadow.start, l = a.shadow.width;
2168
- return a.clearShadow(), e.resizingEvent = null, a.I(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
2182
+ return a.clearShadow(), e.resizingEvent = null, a.J(n, o, l), t.cancelBubble = !0, e.resizingEvent = null, !1;
2169
2183
  } if (e.timeRangeSelecting) {
2170
2184
  if (e.timeRangeSelecting.moved) {
2171
2185
  var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
2172
- a.L(o, c), a.clearShadow();
2186
+ a.M(o, c), a.clearShadow();
2173
2187
  }
2174
2188
  e.timeRangeSelecting = null;
2175
2189
  } }, DayPilot.Month = e.Month, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotMonth = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
@@ -2178,7 +2192,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2178
2192
  for (name in e)
2179
2193
  i[name] = e[name];
2180
2194
  i.Init(), t || (t = i);
2181
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2195
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2182
2196
  (0, e(r).assign)(t, n);
2183
2197
  } for (var s in a)
2184
2198
  0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
@@ -2190,16 +2204,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2190
2204
  "use strict";
2191
2205
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2192
2206
  DayPilot.Navigator = function (e, t) {
2193
- this.v = "2024.3.547-lite";
2207
+ this.v = "2024.4.566-lite";
2194
2208
  var i = this;
2195
- 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 ? (o.Qc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Rc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Qc() || (this.root.style.width = 7 * o.cellWidth() + this.Rc() + "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.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Tc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Uc = function () { if (!o.Qc())
2196
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.Vc = function () { return o.Qc() ? null : o.cellWidth(); }, this.Wc = function (e) { return "number" != typeof e && (e = 1), o.Qc() ? this.Uc() * e : this.Vc() * e; }, this.Xc = function (e) { var t = o.Qc() ? "%" : "px"; return this.Wc(e) + t; }, this.Lc = function (e, t) { var a = {}; a.cells = [], a.days = [], a.weeks = []; 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; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Rc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (o.Qc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
2197
- v.style.position = "absolute", o.Qc() ? (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;
2209
+ 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 () { if (!o.Rc())
2210
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, 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) { var a = {}; a.cells = [], a.days = [], a.weeks = []; 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; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Sc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); 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)
2211
+ 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;
2198
2212
  else {
2199
2213
  v.style.position = "relative";
2200
2214
  var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
2201
2215
  a.top = y, a.left = 0, a.leftPct = 0;
2202
- } v.className = this.J("_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); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Xc(), 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.Yc), v.appendChild(b), this.tl = b; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = i.Xc(), D.style.top = "0px", D.style.width = i.Xc(i.showWeekNumbers ? 6 : 5), 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; var w = document.createElement("div"); w.style.position = "absolute", w.style.left = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.right = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.top = "0px", w.style.width = i.Xc(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.J("_titleright"), t.right && (w.style.cursor = "pointer", w.innerHTML = "<span>&gt;</span>", w.onclick = this.Zc), v.appendChild(w), this.tr = w; var x = (this.Rc(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
2216
+ } 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); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); 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; var D = document.createElement("div"); 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; var x = document.createElement("div"); 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; var w = (this.Sc(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
2203
2217
  for (var C = 0; C < h; C++) {
2204
2218
  var P = d.addDays(7 * C), k = null;
2205
2219
  switch (this.weekNumberAlgorithm) {
@@ -2215,45 +2229,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2215
2229
  default: throw "Unknown weekNumberAlgorithm value.";
2216
2230
  }
2217
2231
  var _ = document.createElement("div");
2218
- _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Xc(), _.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(_);
2232
+ _.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(_);
2219
2233
  } for (var S = 0; S < 7; S++) {
2220
2234
  a.cells[S] = [];
2221
2235
  var _ = document.createElement("div");
2222
- _.style.position = "absolute", _.style.left = i.Xc(S + x), _.style.right = i.Xc(S + x), _.style.top = this.titleHeight + "px", _.style.width = i.Xc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.$c(S) + "</span>", v.appendChild(_), a.days.push(_);
2236
+ _.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(_);
2223
2237
  for (var C = 0; C < h; C++) {
2224
- var P = d.addDays(7 * C + S), M = this._c(P) && "none" !== this.ad(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
2225
- if ("month" === this.ad())
2238
+ 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);
2239
+ if ("month" === this.bd())
2226
2240
  M = M && T;
2227
- else if ("day" === this.ad())
2241
+ else if ("day" === this.bd())
2228
2242
  M = M && (T || r && A || s && H);
2229
- else if ("week" === this.ad()) {
2243
+ else if ("week" === this.bd()) {
2230
2244
  var E = P.firstDayOfMonth() === n;
2231
2245
  M = M && (E || r && A || s && H);
2232
2246
  }
2233
2247
  var N = document.createElement("div");
2234
2248
  a.cells[S][C] = N;
2235
- var I = i.bd(S, C), z = I.x, R = I.y, O = o.Qc() ? "%" : "px";
2236
- N.day = P, N.x = S, N.y = C, N.left = z, N.top = R, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Sc(N, "cell"), P.getTime() === f.getTime() && T && this.Sc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Sc(N, "weekend"), N.style.position = "absolute", N.style.left = z + O, N.style.right = z + O, N.style.top = R + "px", N.style.width = i.Xc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
2237
- var U = document.createElement("div");
2238
- U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Sc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
2239
- var L = null;
2240
- if (this.cells && this.cells[P.toStringSortable()] && (L = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
2241
- var B = {};
2242
- B.cell = L || {}, 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(), L ? (B.cell.html = L.html || P.getDay(), B.cell.cssClass = L.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), L = B.cell;
2249
+ var I = i.cd(S, C), O = I.x, U = I.y, z = o.Rc() ? "%" : "px";
2250
+ 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";
2251
+ var R = document.createElement("div");
2252
+ 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);
2253
+ var B = null;
2254
+ if (this.cells && this.cells[P.toStringSortable()] && (B = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
2255
+ var j = {};
2256
+ 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;
2243
2257
  }
2244
- if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || r && A || s && H) {
2245
- var j = document.createElement("div");
2246
- j.innerHTML = P.getDay(), j.style.position = "absolute", j.style.left = "0px", j.style.top = "0px", j.style.right = "0px", j.style.bottom = "0px", i.Sc(j, "cell_text"), N.isClickable = !0, L && L.html && (j.innerHTML = L.html), N.appendChild(j);
2258
+ if (B && DayPilot.Util.addClass(N, B.cssClass || B.css), T || r && A || s && H) {
2259
+ var L = document.createElement("div");
2260
+ 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);
2247
2261
  }
2248
- N.setAttribute("unselectable", "on"), N.onclick = this.cd, v.appendChild(N), M && (i.dd(v, S, C), this.selected.push(N));
2262
+ N.setAttribute("unselectable", "on"), N.onclick = this.dd, v.appendChild(N), M && (i.ed(v, S, C), this.selected.push(N));
2249
2263
  }
2250
- } var W = document.createElement("div"); W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Xc(7 + x), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.J("_line"), v.appendChild(W), this.months.push(a); }, this.bd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Rc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Wc(e + n), "y": t * this.cellHeight + a }; }, this.dd = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.Rc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.fd = function () { if (this.items)
2264
+ } var W = document.createElement("div"); 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); }, 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 () { if (this.items)
2251
2265
  for (var e = 0; e < this.showMonths; e++)
2252
2266
  for (var t = 0; t < 7; t++)
2253
2267
  for (var i = 0; i < 6; i++) {
2254
2268
  var a = this.months[e].cells[t][i];
2255
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Sc(a, "busy"), this.Tc(a, "free")) : (this.Tc(a, "busy"), this.Sc(a, "free")));
2256
- } }, this.gd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.ad = function () { return (this.selectMode || "").toLowerCase(); }, this.hd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.ad()) {
2269
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.Tc(a, "busy"), this.Uc(a, "free")) : (this.Uc(a, "busy"), this.Tc(a, "free")));
2270
+ } }, 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 () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.bd()) {
2257
2271
  case "day":
2258
2272
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
2259
2273
  break;
@@ -2267,19 +2281,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2267
2281
  this.selectionEnd = e;
2268
2282
  break;
2269
2283
  default: throw "Unknown selectMode value.";
2270
- } }, this.jd = null, this.select = function (e, t, a) { 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; if (!this.Aa)
2271
- return void (this.jd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2284
+ } }, this.kd = null, this.select = function (e, t, a) { 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; if (!this.Ba)
2285
+ return void (this.kd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2272
2286
  var m = this.startDate;
2273
- (this.selectionStart < this.kd() || this.selectionStart >= this.ld()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
2274
- } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.hd(), this.Kc(), this.Pc(), this.md(), this.fd(), this.gd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.nd(); }, this.update = function (e) { if (i.ab(e), this.Aa) {
2275
- if (i.N)
2287
+ (this.selectionStart < this.ld() || this.selectionStart >= this.md()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
2288
+ } 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(); }, this.update = function (e) { if (i.bb(e), this.Ba) {
2289
+ if (i.O)
2276
2290
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2277
- i.od();
2291
+ i.pd();
2278
2292
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2279
- i.$a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.L();
2280
- } }, this.$a = function () { this.Kc(), this.Pc(), this.hd(), this.md(), this.da(), this.fd(), this.gd(), this.visible ? this.show() : this.hide(); }, this.od = function () { i.gb = {}; }, this.db = null, this.ab = function (e) { if (e) {
2293
+ i._a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.M();
2294
+ } }, 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) { if (e) {
2281
2295
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
2282
- this.db = t;
2296
+ this.eb = t;
2283
2297
  for (var a in e)
2284
2298
  if (t[a]) {
2285
2299
  var n = t[a];
@@ -2287,15 +2301,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2287
2301
  }
2288
2302
  else
2289
2303
  i[a] = e[a];
2290
- } }, this.eb = function () { var e = this.db; for (var t in e) {
2304
+ } }, this.fb = function () { var e = this.eb; for (var t in e) {
2291
2305
  var i = e[t];
2292
2306
  i.postInit && i.postInit();
2293
- } }, 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.pd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.pd = function (e) { if ("function" == typeof i.onAjaxError) {
2307
+ } }, 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) { if ("function" == typeof i.onAjaxError) {
2294
2308
  var t = {};
2295
2309
  t.request = e, i.onAjaxError(t);
2296
2310
  }
2297
2311
  else
2298
- "function" == typeof i.ajaxError && i.ajaxError(e); }, 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.qd = function (e, t) { "refresh" === e && this.nd(); }, this.$c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this._c = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.rd = function (e) { for (var t = 0; t < i.months.length; t++) {
2312
+ "function" == typeof i.ajaxError && i.ajaxError(e); }, 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) { for (var t = 0; t < i.months.length; t++) {
2299
2313
  var a = i.months[t];
2300
2314
  if (!a)
2301
2315
  return null;
@@ -2306,19 +2320,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2306
2320
  if (a.top <= e.y && e.y < a.top + a.height)
2307
2321
  return t;
2308
2322
  }
2309
- } return null; }, this.sd = function (e) { }, this.td = function () { if (!o.Qc())
2310
- return void (i.ud = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.ud = 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; }); }); }); }, this.vd = function (e) { i.td(); var t = DayPilot.mo3(i.nav.top, e), a = i.rd(t); if (null === a)
2323
+ } return null; }, this.td = function (e) { }, this.ud = function () { if (!o.Rc())
2324
+ return void (i.vd = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; 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; }); }); }); }, this.wd = function (e) { i.ud(); var t = DayPilot.mo3(i.nav.top, e), a = i.sd(t); if (null === a)
2311
2325
  return null; var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
2312
2326
  return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
2313
2327
  for (var s = 0; s < n.cells[r].length; s++) {
2314
2328
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
2315
- if (c <= t.x && t.x < c + i.ud && d <= t.y && t.y < d + i.cellHeight)
2329
+ if (c <= t.x && t.x < c + i.vd && d <= t.y && t.y < d + i.cellHeight)
2316
2330
  return { "month": a, "x": r, "y": s, "coords": t };
2317
- } return null; }, this.wd = function (e) { if (i.freeHandSelectionEnabled) {
2318
- var t = i.vd(e);
2331
+ } return null; }, this.xd = function (e) { if (i.freeHandSelectionEnabled) {
2332
+ var t = i.wd(e);
2319
2333
  t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
2320
- } }, this.xd = function (e) { if (a.start) {
2321
- var t = i.vd(e);
2334
+ } }, this.yd = function (e) { if (a.start) {
2335
+ var t = i.wd(e);
2322
2336
  if (a.end)
2323
2337
  a.end = t;
2324
2338
  else if (t) {
@@ -2326,11 +2340,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2326
2340
  o > n && (a.end = t);
2327
2341
  }
2328
2342
  a.end && (a.clear(), a.draw());
2329
- } }, this.yd = {};
2330
- var a = this.yd;
2331
- a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.bd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Xc(); if (o.Qc()) {
2343
+ } }, this.zd = {};
2344
+ var a = this.zd;
2345
+ a.start = null, a.drawCell = function (e) { 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(); if (o.Rc()) {
2332
2346
  var c = "Horizontal" === i.orientation ? i.showMonths : 1;
2333
- s = t.leftPct + n.x / c, l = "%", d = i.Xc(1 / c);
2347
+ s = t.leftPct + n.x / c, l = "%", d = i.Yc(1 / c);
2334
2348
  } var u = document.createElement("div"); 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); }, a.clear = function () { if (a.cells) {
2335
2349
  for (var e = 0; e < a.cells.length; e++)
2336
2350
  i.nav.preselection.removeChild(a.cells[e]);
@@ -2373,49 +2387,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2373
2387
  return null;
2374
2388
  e = new n(t);
2375
2389
  } return e; }, 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(); }; };
2376
- this.cd = function (e) { var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day; if (a.cells[n][o].isClickable) {
2390
+ this.dd = function (e) { var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day; if (a.cells[n][o].isClickable) {
2377
2391
  i.clearSelection(), i.selectionDay = r;
2378
2392
  var r = i.selectionDay;
2379
- switch (i.ad()) {
2393
+ switch (i.bd()) {
2380
2394
  case "none":
2381
2395
  i.selectionStart = r, i.selectionEnd = r;
2382
2396
  break;
2383
2397
  case "day":
2384
2398
  if (i.autoFocusOnClick) {
2385
2399
  var s = r;
2386
- if (r < i.kd() || r >= i.ld())
2400
+ if (r < i.ld() || r >= i.md())
2387
2401
  return void i.select(r);
2388
2402
  }
2389
2403
  var l = a.cells[n][o];
2390
- i.dd(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2404
+ i.ed(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2391
2405
  break;
2392
2406
  case "week":
2393
2407
  if (i.autoFocusOnClick) {
2394
2408
  var s = a.cells[0][o].day, d = a.cells[6][o].day;
2395
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.kd() || d >= i.ld()))
2409
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ld() || d >= i.md()))
2396
2410
  return void i.select(r);
2397
2411
  }
2398
2412
  for (var c = 0; c < 7; c++)
2399
- i.dd(t, c, o), i.selected.push(a.cells[c][o]);
2413
+ i.ed(t, c, o), i.selected.push(a.cells[c][o]);
2400
2414
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
2401
2415
  break;
2402
2416
  case "month":
2403
2417
  if (i.autoFocusOnClick) {
2404
2418
  var s = r;
2405
- if (r < i.kd() || r >= i.ld())
2419
+ if (r < i.ld() || r >= i.md())
2406
2420
  return void i.select(r);
2407
2421
  }
2408
2422
  for (var s = null, d = null, o = 0; o < 6; o++)
2409
2423
  for (var n = 0; n < 7; n++) {
2410
2424
  var l = a.cells[n][o];
2411
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.dd(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
2425
+ 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);
2412
2426
  }
2413
2427
  i.selectionStart = s, i.selectionEnd = d;
2414
2428
  break;
2415
2429
  default: throw "unknown selectMode";
2416
2430
  }
2417
- i.gd(), i.L();
2418
- } }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.pa()) {
2431
+ i.hd(), i.M();
2432
+ } }, this.M = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.qa()) {
2419
2433
  var r = {};
2420
2434
  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))
2421
2435
  return;
@@ -2444,9 +2458,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2444
2458
  break;
2445
2459
  case "None": break;
2446
2460
  case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
2447
- } }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Zc = function (e) { i.zd(i.skipMonths); }, this.Yc = function (e) { i.zd(-i.skipMonths); }, this.zd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.md(), this.gd(), this.nd(), this.fd(); }, this.kd = function () { return i.startDate.firstDayOfMonth(); }, this.ld = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
2461
+ } }, 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 () {
2448
2462
  return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
2449
- }, this.nd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.pa()) {
2463
+ }, this.od = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.qa()) {
2450
2464
  var a = {};
2451
2465
  if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
2452
2466
  return;
@@ -2473,10 +2487,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2473
2487
  this.onVisibleRangeChanged(e, t);
2474
2488
  break;
2475
2489
  case "Disabled":
2476
- } }, 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.fd(); }, this.md = function () { for (var e = 0; e < this.showMonths; e++) {
2477
- var t = this.Ad(e);
2478
- this.Lc(e, t);
2479
- } this.root.style.height = this.Bd() + "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); }, this.Bd = function () { if ("Horizontal" === this.orientation) {
2490
+ } }, 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 () { for (var e = 0; e < this.showMonths; e++) {
2491
+ var t = this.Bd(e);
2492
+ this.Mc(e, t);
2493
+ } 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); }, this.Cd = function () { if ("Horizontal" === this.orientation) {
2480
2494
  for (var e = 0, t = 0; t < this.months.length; t++) {
2481
2495
  var i = this.months[t];
2482
2496
  i.height > e && (e = i.height);
@@ -2485,64 +2499,64 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2485
2499
  } for (var a = 0, t = 0; t < this.months.length; t++) {
2486
2500
  var i = this.months[t];
2487
2501
  a += i.height;
2488
- } return a; }, this.Ad = function (e) { if (this.internal.showLinks)
2489
- return this.internal.showLinks; var t = {}; 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; }, 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._ = {};
2490
- var o = this._;
2502
+ } return a; }, this.Bd = function (e) { if (this.internal.showLinks)
2503
+ return this.internal.showLinks; var t = {}; 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; }, 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 = {};
2504
+ var o = this.aa;
2491
2505
  o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
2492
2506
  var e = o.locale();
2493
2507
  return e ? e.weekStarts : 0;
2494
- } return i.weekStarts; }, o.cellWidth = function () { if (i.gb.cellWidth)
2495
- return i.gb.cellWidth; var e = i.Cd("_cell_dimensions").width; return e || (e = i.cellWidth), i.gb.cellWidth = e, e; }, o.Qc = function () { return "Auto" === i._.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2508
+ } return i.weekStarts; }, o.cellWidth = function () { if (i.hb.cellWidth)
2509
+ return i.hb.cellWidth; var e = i.Dd("_cell_dimensions").width; return e || (e = i.cellWidth), i.hb.cellWidth = e, e; }, o.Rc = function () { return "Auto" === i.aa.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2496
2510
  var t = this.selected[e];
2497
- i.ed(t.parentNode, t.x, t.y);
2498
- } this.selected = []; }, this.Dd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () { if (DayPilot.isArray(this.events.list)) {
2511
+ i.fd(t.parentNode, t.x, t.y);
2512
+ } this.selected = []; }, this.Ed = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ea = function () { if (DayPilot.isArray(this.events.list)) {
2499
2513
  this.items = {};
2500
2514
  for (var e = 0; e < this.events.list.length; e++) {
2501
2515
  var t = this.events.list[e];
2502
2516
  if (!t.hidden) {
2503
- var i = this.Ed(t);
2517
+ var i = this.Fd(t);
2504
2518
  for (var a in i)
2505
2519
  this.items[a] = 1;
2506
2520
  }
2507
2521
  }
2508
- } }, this.Cd = 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.Ed = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
2509
- a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.fb = function () { if (this.id && this.id.tagName)
2522
+ } }, 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) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
2523
+ a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.gb = function () { if (this.id && this.id.tagName)
2510
2524
  this.nav.top = this.id;
2511
2525
  else {
2512
2526
  if ("string" != typeof this.id)
2513
2527
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
2514
2528
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2515
2529
  throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
2516
- } this.root = this.nav.top; }, this.init = function () { if (this.fb(), !this.root.dp) {
2517
- this.hd(), this.Pc(), this.md(), this.da(), this.fd(), this.Y(), this.Fd(), this.Za();
2518
- if (this.Dd() && this.nd(), this.Aa = !0, this.eb(), this.jd) {
2519
- var e = this.jd;
2520
- this.select(e.date1, e.date2, e.options), this.jd = null;
2530
+ } this.root = this.nav.top; }, this.init = function () { if (this.gb(), !this.root.dp) {
2531
+ this.jd(), this.Qc(), this.nd(), this.ea(), this.gd(), this.Z(), this.Gd(), this.$a();
2532
+ if (this.Ed() && this.od(), this.Ba = !0, this.fb(), this.kd) {
2533
+ var e = this.kd;
2534
+ this.select(e.date1, e.date2, e.options), this.kd = null;
2521
2535
  }
2522
2536
  return this;
2523
- } }, this.Fd = function () { i.nav.top.onmousedown = this.wd, i.nav.top.onmousemove = this.xd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.Gd); }, this.Gd = function (e) { if (a.start && a.end) {
2537
+ } }, 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) { if (a.start && a.end) {
2524
2538
  var t = DayPilot.mo3(i.nav.top, e);
2525
2539
  if (t.x === a.start.coords.x && t.y === a.start.coords.y)
2526
2540
  return a.start = null, void a.clear();
2527
2541
  a.clear();
2528
2542
  var o = a.ordered();
2529
- 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.md(), i.fd(), i.gd();
2530
- i.L({ "mode": "FreeHand" });
2531
- } a.start = null, a.end = null; }, 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);
2543
+ 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();
2544
+ i.M({ "mode": "FreeHand" });
2545
+ } a.start = null, a.end = null; }, 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);
2532
2546
  }, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
2533
2547
  var i = new DayPilot.Navigator(this.id);
2534
2548
  this.daypilot = i;
2535
2549
  for (var a in e)
2536
2550
  i[a] = e[a];
2537
2551
  i.Init(), t || (t = i);
2538
- } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2552
+ } }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.sa.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
2539
2553
  (0, e(r).assign)(t, n);
2540
2554
  } for (var s in a)
2541
2555
  if (0 === s.indexOf("on")) {
2542
2556
  var l = DayPilot.Util.shouldApply(s);
2543
2557
  l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
2544
2558
  } var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
2545
- n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.fd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2559
+ n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ea(), n.gd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2546
2560
  }
2547
2561
  }(DayPilot);
2548
2562