@daypilot/daypilot-lite-angular 3.23.0 → 3.25.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.536-lite
133
+ Version: 2024.3.543-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -988,14 +988,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
988
988
  if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
989
989
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
990
990
  var n = this;
991
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.536-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.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) {
991
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.543-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.N || (e.N = !0, clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.N; }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
992
992
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
993
993
  i = i.parentNode;
994
994
  var a = document.createElement("div");
995
995
  a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
996
996
  var o = document.createElement("div");
997
997
  return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
998
- }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
998
+ }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; }, this._.ba = function () {
999
+ if ("Auto" === n.weekStarts) {
1000
+ var e = o.locale();
1001
+ return e ? e.weekStarts : 0;
1002
+ }
1003
+ return n.weekStarts || 0;
1004
+ };
999
1005
  var o = this._;
1000
1006
  this.T = function (e, t) {
1001
1007
  if (e && 0 === e.indexOf("$$$")) {
@@ -1008,15 +1014,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1008
1014
  return void (document.location.href = e.CallBackRedirect);
1009
1015
  if ("None" === e.UpdateType)
1010
1016
  return n.loadingStop(), void n.s();
1011
- 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.ba()), e.Hashes)
1017
+ if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ca()), e.Hashes)
1012
1018
  for (var i in e.Hashes)
1013
1019
  n.hashes[i] = e.Hashes[i];
1014
- n.events.list = e.Events, n.ca(), n.da(), "Full" === e.UpdateType && (n.ea(), n.fa(), n.ga(), n.ha()), n.s(), n.ia(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1015
- }, this.ja = function () { return this.ka() / 36e5; }, this.la = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.ma = function () { return this.ka() / 18e5; }, this.ka = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.la() : 24, 60 * e * 60 * 1e3; }, this.na = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.oa = 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.pa = function (e) {
1020
+ n.events.list = e.Events, n.da(), n.ea(), "Full" === e.UpdateType && (n.fa(), n.ga(), n.ha(), n.ia()), n.s(), n.ja(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
1021
+ }, this.ka = function () { return this.la() / 36e5; }, this.ma = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.na = function () { return this.la() / 18e5; }, this.la = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.ma() : 24, 60 * e * 60 * 1e3; }, this.oa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.pa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.qa = function (e) {
1016
1022
  var t = this, i = t.event;
1017
- if (n.oa()) {
1023
+ if (n.pa()) {
1018
1024
  var a = {};
1019
- 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.qa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
1025
+ if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.ra.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
1020
1026
  return;
1021
1027
  switch (n.eventClickHandling) {
1022
1028
  case "CallBack":
@@ -1029,7 +1035,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1029
1035
  var o = i.client.contextMenu();
1030
1036
  o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
1031
1037
  }
1032
- "function" == typeof n.onEventClicked && n.qa.apply(function () { n.onEventClicked(a); });
1038
+ "function" == typeof n.onEventClicked && n.ra.apply(function () { n.onEventClicked(a); });
1033
1039
  }
1034
1040
  else
1035
1041
  switch (n.eventClickHandling) {
@@ -1041,7 +1047,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1041
1047
  break;
1042
1048
  case "JavaScript": n.onEventClick(i);
1043
1049
  }
1044
- }, this.ra = function (e) {
1050
+ }, this.sa = function (e) {
1045
1051
  var t = this.event;
1046
1052
  if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
1047
1053
  return !1;
@@ -1054,10 +1060,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1054
1060
  a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
1055
1061
  }
1056
1062
  return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
1057
- }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.sa = function (e) {
1058
- if (n.oa()) {
1063
+ }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.ta = function (e) {
1064
+ if (n.pa()) {
1059
1065
  var t = {};
1060
- if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.qa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1066
+ if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ra.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
1061
1067
  return;
1062
1068
  switch (n.eventDeleteHandling) {
1063
1069
  case "CallBack":
@@ -1068,7 +1074,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1068
1074
  break;
1069
1075
  case "Update": n.events.remove(e);
1070
1076
  }
1071
- "function" == typeof n.onEventDeleted && n.qa.apply(function () { n.onEventDeleted(t); });
1077
+ "function" == typeof n.onEventDeleted && n.ra.apply(function () { n.onEventDeleted(t); });
1072
1078
  }
1073
1079
  else
1074
1080
  switch (n.eventDeleteHandling) {
@@ -1097,16 +1103,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1097
1103
  }, this.I = function (e, t, i, a) {
1098
1104
  var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
1099
1105
  if ("top" === a) {
1100
- var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
1106
+ var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
1101
1107
  r = c.addTime(f + m), s = e.end();
1102
1108
  }
1103
1109
  else if ("bottom" === a) {
1104
- var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
1110
+ var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
1105
1111
  r = l, s = c.addTime(f + m);
1106
1112
  }
1107
- if (n.oa()) {
1113
+ if (n.pa()) {
1108
1114
  var p = {};
1109
- 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.qa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1115
+ if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.ra.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
1110
1116
  return;
1111
1117
  switch (n.eventResizeHandling) {
1112
1118
  case "PostBack":
@@ -1117,7 +1123,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1117
1123
  break;
1118
1124
  case "Update": e.start(r), e.end(s), n.events.update(e);
1119
1125
  }
1120
- "function" == typeof n.onEventResized && n.qa.apply(function () { n.onEventResized(p); });
1126
+ "function" == typeof n.onEventResized && n.ra.apply(function () { n.onEventResized(p); });
1121
1127
  }
1122
1128
  else
1123
1129
  switch (n.eventResizeHandling) {
@@ -1146,12 +1152,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1146
1152
  }, this.K = function (e, t, i, a) {
1147
1153
  var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
1148
1154
  l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
1149
- 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.ta[t], m = f.id, p = f.start.getTime(), v = new Date;
1155
+ var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ua[t], m = f.id, p = f.start.getTime(), v = new Date;
1150
1156
  v.setTime(p + s + u);
1151
1157
  var y = new DayPilot.Date(v), g = y.addTime(h);
1152
- if (n.oa()) {
1158
+ if (n.pa()) {
1153
1159
  var b = {};
1154
- 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.qa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1160
+ if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.ra.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
1155
1161
  return;
1156
1162
  switch (n.eventMoveHandling) {
1157
1163
  case "PostBack":
@@ -1162,7 +1168,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1162
1168
  break;
1163
1169
  case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
1164
1170
  }
1165
- "function" == typeof n.onEventMoved && n.qa.apply(function () { n.onEventMoved(b); });
1171
+ "function" == typeof n.onEventMoved && n.ra.apply(function () { n.onEventMoved(b); });
1166
1172
  }
1167
1173
  else
1168
1174
  switch (n.eventMoveHandling) {
@@ -1175,9 +1181,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1175
1181
  case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
1176
1182
  }
1177
1183
  }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) {
1178
- if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.oa()) {
1184
+ if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.pa()) {
1179
1185
  var a = {};
1180
- 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.qa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1186
+ if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ra.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
1181
1187
  return;
1182
1188
  switch (n.timeRangeSelectedHandling) {
1183
1189
  case "PostBack":
@@ -1185,7 +1191,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1185
1191
  break;
1186
1192
  case "CallBack": n.timeRangeSelectedCallBack(e, t);
1187
1193
  }
1188
- "function" == typeof n.onTimeRangeSelected && n.qa.apply(function () { n.onTimeRangeSelected(a); });
1194
+ "function" == typeof n.onTimeRangeSelected && n.ra.apply(function () { n.onTimeRangeSelected(a); });
1189
1195
  }
1190
1196
  else
1191
1197
  switch (n.timeRangeSelectedHandling) {
@@ -1197,13 +1203,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1197
1203
  break;
1198
1204
  case "JavaScript": n.onTimeRangeSelected(e, t);
1199
1205
  }
1200
- }, this.ua = function (e) {
1206
+ }, this.va = function (e) {
1201
1207
  if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
1202
1208
  var i = e.which;
1203
1209
  if (1 === i || 0 === i)
1204
- 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.va(), !1;
1210
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.wa(), !1;
1205
1211
  }
1206
- }, this.va = function () {
1212
+ }, this.wa = function () {
1207
1213
  this.getSelection();
1208
1214
  !function () {
1209
1215
  var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
@@ -1213,7 +1219,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1213
1219
  if (t[i] === e)
1214
1220
  return i;
1215
1221
  return -1;
1216
- }(), o = n.ta[a];
1222
+ }(), o = n.ua[a];
1217
1223
  if (o) {
1218
1224
  var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
1219
1225
  if (n.nav.activeSelection)
@@ -1226,12 +1232,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1226
1232
  c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
1227
1233
  }
1228
1234
  }();
1229
- }, this.wa = function (e) {
1235
+ }, this.xa = function (e) {
1230
1236
  if ("undefined" != typeof t && t.selecting) {
1231
1237
  var i = DayPilot.mc(e);
1232
- 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.va());
1238
+ t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa());
1233
1239
  }
1234
- }, 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.xa = function (e) {
1240
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.ya = function (e) {
1235
1241
  if (e < 0)
1236
1242
  return null;
1237
1243
  for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
@@ -1239,11 +1245,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1239
1245
  return a;
1240
1246
  }
1241
1247
  return null;
1242
- }, this.ya = {}, this.ya.getCellCoords = function () {
1248
+ }, this.za = {}, this.za.getCellCoords = function () {
1243
1249
  var e = {};
1244
1250
  if (e.x = 0, e.y = 0, !n.coords)
1245
1251
  return null;
1246
- e.x = n.xa(n.coords.x);
1252
+ e.x = n.ya(n.coords.x);
1247
1253
  var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
1248
1254
  return e.y = i, e.x < 0 ? null : e;
1249
1255
  }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
@@ -1262,18 +1268,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1262
1268
  var s = {};
1263
1269
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1264
1270
  return;
1265
- n.columns.list = i, n.za && n.update();
1271
+ n.columns.list = i, n.Aa && n.update();
1266
1272
  }
1267
1273
  };
1268
1274
  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 });
1269
- }, this.ba = function () {
1275
+ }, this.ca = function () {
1270
1276
  var e;
1271
- e = "Resources" !== n.viewType ? this.Aa() : n.columns.list, this.ta = [];
1277
+ e = "Resources" !== n.viewType ? this.Ba() : n.columns.list, this.ua = [];
1272
1278
  for (var t = 0; t < e.length; t++) {
1273
- var i = this.Ba(e[t]);
1274
- this.ta.push(i);
1279
+ var i = this.Ca(e[t]);
1280
+ this.ua.push(i);
1275
1281
  }
1276
- }, this.Ba = function (e) {
1282
+ }, this.Ca = function (e) {
1277
1283
  var t = {};
1278
1284
  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) {
1279
1285
  for (var t = 0; t < this.blocks.length; t++) {
@@ -1314,40 +1320,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1314
1320
  return !0;
1315
1321
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
1316
1322
  }, t;
1317
- }, this.Aa = function () {
1323
+ }, this.Ba = function () {
1318
1324
  var e = [], t = this.startDate.getDatePart(), i = this.days;
1319
1325
  switch (this.viewType) {
1320
1326
  case "Day":
1321
1327
  i = 1;
1322
1328
  break;
1323
1329
  case "Week":
1324
- i = 7, t = t.firstDayOfWeek(o.locale().weekStarts);
1330
+ i = 7;
1331
+ var a = o.ba();
1332
+ t = t.firstDayOfWeek(a);
1325
1333
  break;
1326
1334
  case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
1327
1335
  }
1328
1336
  "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
1329
- for (var a = 0; a < i; a++) {
1330
- var r = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, s = {};
1331
- s.start = t.addDays(a), s.name = s.start.toString(r, o.locale()), e.push(s);
1337
+ for (var r = 0; r < i; r++) {
1338
+ var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
1339
+ l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
1332
1340
  }
1333
1341
  return e;
1334
1342
  }, this.visibleStart = function () {
1335
1343
  if ("Resources" === n.viewType) {
1336
- if (0 === n.ta.length)
1344
+ if (0 === n.ua.length)
1337
1345
  return DayPilot.Date.today();
1338
- var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1346
+ var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
1339
1347
  return new DayPilot.Date(t);
1340
1348
  }
1341
- return this.ta[0].start;
1349
+ return this.ua[0].start;
1342
1350
  }, this.visibleEnd = function () {
1343
1351
  if ("Resources" === n.viewType) {
1344
- if (0 === n.ta.length)
1352
+ if (0 === n.ua.length)
1345
1353
  return DayPilot.Date.today().addDays(1);
1346
- var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1354
+ var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
1347
1355
  return new DayPilot.Date(t).addDays(1);
1348
1356
  }
1349
- var t = this.ta.length - 1;
1350
- return this.ta[t].start.addDays(1);
1357
+ var t = this.ua.length - 1;
1358
+ return this.ua[t].start.addDays(1);
1351
1359
  }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () {
1352
1360
  if (this.elements.events)
1353
1361
  for (var e = 0; e < this.elements.events.length; e++) {
@@ -1359,9 +1367,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1359
1367
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
1360
1368
  }
1361
1369
  this.elements.events = [];
1362
- }, this.Ca = function (e) {
1370
+ }, this.Da = function (e) {
1363
1371
  var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
1364
- 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.pa, DayPilot.re(o, "contextmenu", this.ra), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
1372
+ o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.qa, DayPilot.re(o, "contextmenu", this.sa), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
1365
1373
  var a = 5;
1366
1374
  if ("undefined" != typeof t) {
1367
1375
  var r = DayPilot.mo3(o, i);
@@ -1377,7 +1385,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1377
1385
  if (1 === a && e.client.moveEnabled()) {
1378
1386
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
1379
1387
  var o = t.moving.helper = {};
1380
- o.oldColumn = n.ta[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1388
+ o.oldColumn = n.ua[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
1381
1389
  var r = DayPilot.mo3(this, i);
1382
1390
  r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
1383
1391
  }
@@ -1395,27 +1403,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1395
1403
  }
1396
1404
  if (e.client.deleteEnabled()) {
1397
1405
  var h = document.createElement("div");
1398
- 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.sa(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
1406
+ h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ta(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
1399
1407
  }
1400
1408
  var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
1401
1409
  if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
1402
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
1410
+ a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Ea(o);
1403
1411
  }
1404
1412
  if ("function" == typeof n.onAfterEventRender) {
1405
1413
  var m = {};
1406
1414
  m.e = o.event, m.div = o, n.onAfterEventRender(m);
1407
1415
  }
1408
1416
  n.elements.events.push(o);
1409
- }, this.Da = function (e) {
1417
+ }, this.Ea = function (e) {
1410
1418
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1411
1419
  try {
1412
1420
  var a = e.childNodes[i];
1413
- 1 === a.nodeType && (a.unselectable = "on", this.Da(a));
1421
+ 1 === a.nodeType && (a.unselectable = "on", this.Ea(a));
1414
1422
  }
1415
1423
  catch (e) { }
1416
- }, this.ia = function () {
1417
- for (var e = 0; e < this.ta.length; e++) {
1418
- var t = this.ta[e];
1424
+ }, this.ja = function () {
1425
+ for (var e = 0; e < this.ua.length; e++) {
1426
+ var t = this.ua[e];
1419
1427
  if (t.blocks)
1420
1428
  for (var i = 0; i < t.blocks.length; i++)
1421
1429
  for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
@@ -1423,13 +1431,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1423
1431
  var s = o[r];
1424
1432
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
1425
1433
  var l = n === a.lines.length - 1;
1426
- l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
1434
+ l || (s.part.width = 1.5 * s.part.width), this.Da(s);
1427
1435
  }
1428
1436
  }
1429
- }, this.Ea = 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.Fa() + "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.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); 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.Ia(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ja(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = 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.Ja(), 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.Ka()), n.appendChild(this.La()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ka = 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.La = function () {
1437
+ }, this.Fa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ga() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ha(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ia(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ja(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ha = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ka(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ia = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ka(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.La()), n.appendChild(this.Ma()), e.appendChild(t), this.nav.zoom = e, e; }, this.La = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ma = function () {
1430
1438
  var e = document.createElement("table");
1431
1439
  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;
1432
- for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1440
+ for (var t = this.ua, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
1433
1441
  var r = a.insertCell(-1);
1434
1442
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
1435
1443
  var s = document.createElement("div");
@@ -1438,38 +1446,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1438
1446
  r.selection = l, r.appendChild(s), r.appendChild(l);
1439
1447
  }
1440
1448
  return e;
1441
- }, this.Ja = function () {
1449
+ }, this.Ka = function () {
1442
1450
  var e = document.createElement("table");
1443
1451
  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; };
1444
- for (var t = n.ja(), i = 0; i < t; i++)
1445
- this.Ma(e, i);
1452
+ for (var t = n.ka(), i = 0; i < t; i++)
1453
+ this.Na(e, i);
1446
1454
  return e;
1447
- }, this.Ma = 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.na()), 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.Fa = function () {
1455
+ }, this.Na = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.oa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ga = function () {
1448
1456
  switch (this.heightSpec) {
1449
1457
  case "Full": return 48 * this.cellHeight;
1450
1458
  case "BusinessHours":
1451
- var e = this.la();
1459
+ var e = this.ma();
1452
1460
  return e * this.cellHeight * 2;
1453
1461
  case "BusinessHoursNoScroll":
1454
- var e = this.la();
1462
+ var e = this.ma();
1455
1463
  return e * this.cellHeight * 2;
1456
1464
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1457
1465
  }
1458
- }, this.Na = function () {
1466
+ }, this.Oa = function () {
1459
1467
  var e = n.nav.corner ? n.nav.corner.parentNode : null;
1460
1468
  if (e) {
1461
1469
  e.innerHTML = "";
1462
- var t = this.Oa();
1470
+ var t = this.Pa();
1463
1471
  e.appendChild(t), n.nav.corner = t;
1464
1472
  }
1465
- }, this.Ga = function () {
1473
+ }, this.Ha = function () {
1466
1474
  var e = document.createElement("div");
1467
1475
  e.style.overflow = "auto";
1468
1476
  var t = document.createElement("table");
1469
1477
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1470
1478
  var i = t.insertRow(-1), a = i.insertCell(-1);
1471
1479
  a.style.padding = "0px", a.style.border = "0px none";
1472
- var n = this.Oa();
1480
+ var n = this.Pa();
1473
1481
  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; };
1474
1482
  var o = "hidden" !== this.nav.scroll.style.overflow;
1475
1483
  if (a.appendChild(this.nav.header), o) {
@@ -1480,7 +1488,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1480
1488
  s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
1481
1489
  }
1482
1490
  return e.appendChild(t), e;
1483
- }, this.Oa = 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 () {
1491
+ }, this.Pa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () {
1484
1492
  var e = this.nav.main;
1485
1493
  e.root = null, e.onmouseup = null;
1486
1494
  for (var t = 0; t < e.rows.length; t++)
@@ -1489,8 +1497,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1489
1497
  n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
1490
1498
  }
1491
1499
  this.fasterDispose || DayPilot.pu(e);
1492
- }, this.fa = function () {
1493
- var e = this.nav.main, i = 18e5, a = this.ma(), o = n.ta;
1500
+ }, this.ga = function () {
1501
+ var e = this.nav.main, i = 18e5, a = this.na(), o = n.ua;
1494
1502
  for (e && this.W(); e && e.rows && e.rows.length > 0;)
1495
1503
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1496
1504
  this.tableCreated = !0;
@@ -1508,11 +1516,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1508
1516
  var l = e.insertRow(-1);
1509
1517
  l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
1510
1518
  for (var d = 0; d < r; d++) {
1511
- var m = this.ta[d], c = l.insertCell(-1);
1512
- c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, 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";
1519
+ var m = this.ua[d], c = l.insertCell(-1);
1520
+ c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.va, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1513
1521
  var u = document.createElement("div");
1514
1522
  u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
1515
- var p = this.Pa(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1523
+ var p = this.Qa(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
1516
1524
  !function () {
1517
1525
  if ("function" == typeof n.onBeforeCellRender) {
1518
1526
  var e = {};
@@ -1564,11 +1572,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1564
1572
  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]));
1565
1573
  }
1566
1574
  else if (t.selecting) {
1567
- var a = DayPilot.mc(e), g = n.ya.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1568
- 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.va();
1575
+ var a = DayPilot.mc(e), g = n.za.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1576
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa();
1569
1577
  }
1570
1578
  }, n.nav.scrollable.style.display = "";
1571
- }, this.Pa = 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 () {
1579
+ }, this.Qa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () {
1572
1580
  var e = this.nav.header;
1573
1581
  if (e && e.rows)
1574
1582
  for (var t = 0; t < e.rows.length; t++)
@@ -1577,14 +1585,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1577
1585
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1578
1586
  }
1579
1587
  this.fasterDispose || DayPilot.pu(e);
1580
- }, this.Qa = function (e) {
1588
+ }, this.Ra = function (e) {
1581
1589
  function t(t) {
1582
1590
  var o = a[t], r = e ? i.insertCell(-1) : i.cells[t];
1583
- 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.Ra;
1591
+ r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Sa;
1584
1592
  var s, l = e ? document.createElement("div") : r.firstChild;
1585
1593
  e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.J("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1586
1594
  var d = {};
1587
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Sa(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);
1595
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ta(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o);
1588
1596
  var c = o.verticalAlignment;
1589
1597
  if (c)
1590
1598
  switch (s.style.display = "flex", c) {
@@ -1596,27 +1604,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1596
1604
  break;
1597
1605
  case "bottom": s.style.alignItems = "flex-end";
1598
1606
  }
1599
- l.firstChild.innerHTML = n.Ia(o.name, o.html);
1607
+ l.firstChild.innerHTML = n.Ja(o.name, o.html);
1600
1608
  }
1601
- for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.ta, o = a.length, r = 0; r < o; r++)
1609
+ for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.ua, o = a.length, r = 0; r < o; r++)
1602
1610
  t(r);
1603
- }, this.Ra = function (e) {
1611
+ }, this.Sa = function (e) {
1604
1612
  if ("Disabled" !== n.headerClickHandling) {
1605
- var t = this.data, i = n.Sa(t), a = {};
1613
+ var t = this.data, i = n.Ta(t), a = {};
1606
1614
  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);
1607
1615
  }
1608
- }, this.Sa = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ta = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ea = function () {
1609
- var e = this.nav.header, t = !0, i = this.ta;
1616
+ }, this.Ta = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ua = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.fa = function () {
1617
+ var e = this.nav.header, t = !0, i = this.ua;
1610
1618
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1611
1619
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1612
1620
  this.headerCreated = !0;
1613
- this.Qa(t);
1614
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () {
1615
- var e = this.nav.scroll;
1616
- e.onscroll || (e.onscroll = function () { n.Va(); });
1617
- var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos;
1618
- t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t));
1619
- }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = 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) {
1621
+ this.Ra(t);
1622
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) {
1623
+ this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none";
1624
+ }, this.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1620
1625
  var t = null;
1621
1626
  if (e instanceof DayPilot.Event)
1622
1627
  t = e.data;
@@ -1625,7 +1630,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1625
1630
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1626
1631
  t = e;
1627
1632
  }
1628
- n.events.list || (n.events.list = []), n.events.list.push(t), n.Za({ "eventsOnly": !0 }), n.qa.notify();
1633
+ n.events.list || (n.events.list = []), n.events.list.push(t), n.$a({ "eventsOnly": !0 }), n.ra.notify();
1629
1634
  }, this.events.find = function (e) {
1630
1635
  if (!n.events.list)
1631
1636
  return null;
@@ -1653,7 +1658,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1653
1658
  n.events.list.splice(i, 1, e);
1654
1659
  }
1655
1660
  }
1656
- n.Za({ "eventsOnly": !0 }), n.qa.notify();
1661
+ n.$a({ "eventsOnly": !0 }), n.ra.notify();
1657
1662
  }, this.events.remove = function (e) {
1658
1663
  var t;
1659
1664
  if (e instanceof DayPilot.Event)
@@ -1667,7 +1672,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1667
1672
  i && (t = i.data);
1668
1673
  }
1669
1674
  var a = DayPilot.indexOf(n.events.list, t);
1670
- n.events.list.splice(a, 1), n.Za({ "eventsOnly": !0 }), n.qa.notify();
1675
+ n.events.list.splice(a, 1), n.$a({ "eventsOnly": !0 }), n.ra.notify();
1671
1676
  }, this.events.load = function (e, t, i) {
1672
1677
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
1673
1678
  var i, o = e.request;
@@ -1682,7 +1687,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1682
1687
  var s = {};
1683
1688
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
1684
1689
  return;
1685
- n.events.list = i, n.za && n.Za({ "eventsOnly": !0 });
1690
+ n.events.list = i, n.Aa && n.$a({ "eventsOnly": !0 });
1686
1691
  }
1687
1692
  };
1688
1693
  if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
@@ -1691,7 +1696,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1691
1696
  var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
1692
1697
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
1693
1698
  }
1694
- }, this.$a = function () {
1699
+ }, this._a = function () {
1695
1700
  if (n.nav.top.className !== n.J("_main")) {
1696
1701
  n.nav.top.className = n.J("_main");
1697
1702
  var e = n.nav.corner;
@@ -1702,16 +1707,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1702
1707
  }, this.update = function (e) {
1703
1708
  if (n.N)
1704
1709
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1705
- n._a(e), n.Za();
1706
- }, this.Za = function (e) {
1707
- if (this.za) {
1710
+ n.ab(e), n.$a();
1711
+ }, this.$a = function (e) {
1712
+ if (this.Aa) {
1708
1713
  var e = e || {}, t = !e.eventsOnly;
1709
- n.ab(), n.V(), n.nav.top.style.cursor = "auto", t && (n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Na(), n.Xa(), n.$a(), n.bb()), n.ca(), n.da(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
1714
+ n.bb(), n.V(), n.nav.top.style.cursor = "auto", t && (n.ca(), n.fa(), n.ga(), n.ha(), n.ia(), n.Oa(), n.Ya(), n._a(), n.cb()), n.da(), n.ea(), n.ja(), n.clearSelection(), this.visible ? this.show() : this.hide();
1710
1715
  }
1711
- }, this.cb = null, this._a = function (e) {
1716
+ }, this.db = null, this.ab = function (e) {
1712
1717
  if (e) {
1713
1718
  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; } } };
1714
- this.cb = t;
1719
+ this.db = t;
1715
1720
  for (var i in e)
1716
1721
  if (t[i]) {
1717
1722
  var a = t[i];
@@ -1720,13 +1725,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1720
1725
  else
1721
1726
  n[i] = e[i];
1722
1727
  }
1723
- }, this.db = function () {
1724
- var e = this.cb;
1728
+ }, this.eb = function () {
1729
+ var e = this.db;
1725
1730
  for (var t in e) {
1726
1731
  var i = e[t];
1727
1732
  i.postInit && i.postInit();
1728
1733
  }
1729
- }, this.eb = function () {
1734
+ }, this.fb = function () {
1730
1735
  if (this.id && this.id.tagName)
1731
1736
  this.nav.top = this.id;
1732
1737
  else {
@@ -1735,8 +1740,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1735
1740
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1736
1741
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1737
1742
  }
1738
- }, this.fb = {}, this.fb.events = [], this.gb = function (e) {
1739
- var t = this.fb.events, i = this.events.list[e], a = {};
1743
+ }, this.gb = {}, this.gb.events = [], this.hb = function (e) {
1744
+ var t = this.gb.events, i = this.events.list[e], a = {};
1740
1745
  for (var o in i)
1741
1746
  a[o] = i[o];
1742
1747
  if ("function" == typeof this.onBeforeEventRender) {
@@ -1744,9 +1749,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1744
1749
  r.control = n, r.data = a, this.onBeforeEventRender(r);
1745
1750
  }
1746
1751
  t[e] = a;
1747
- }, this.ca = function () {
1752
+ }, this.da = function () {
1748
1753
  var e = this.events.list;
1749
- if (n.fb.events = [], e) {
1754
+ if (n.gb.events = [], e) {
1750
1755
  if (!DayPilot.isArray(e))
1751
1756
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1752
1757
  var t = e.length, i = 864e5;
@@ -1767,11 +1772,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1767
1772
  }
1768
1773
  if ("function" == typeof this.onBeforeEventRender)
1769
1774
  for (var o = 0; o < t; o++)
1770
- this.gb(o);
1771
- for (var o = 0; o < this.ta.length; o++) {
1775
+ this.hb(o);
1776
+ for (var o = 0; o < this.ua.length; o++) {
1772
1777
  var l = {};
1773
1778
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1774
- var d = this.ta[o];
1779
+ var d = this.ua[o];
1775
1780
  d.events = [], d.lines = [], d.blocks = [];
1776
1781
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
1777
1782
  if (!a[m]) {
@@ -1784,32 +1789,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1784
1789
  var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1785
1790
  if (C === P && (x.cut || w.cut))
1786
1791
  continue;
1787
- var _ = w.boxBottom;
1788
- D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / 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);
1792
+ var k = w.boxBottom;
1793
+ 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);
1789
1794
  var p = D.part.top, v = D.part.top + D.part.height;
1790
- 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.fb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1795
+ p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.gb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
1791
1796
  }
1792
1797
  }
1793
1798
  }
1794
1799
  }
1795
- for (var o = 0; o < this.ta.length; o++) {
1796
- var d = this.ta[o];
1797
- d.events.sort(this.hb);
1800
+ for (var o = 0; o < this.ua.length; o++) {
1801
+ var d = this.ua[o];
1802
+ d.events.sort(this.ib);
1798
1803
  for (var m = 0; m < d.events.length; m++) {
1799
1804
  var r = d.events[m];
1800
1805
  d.putIntoBlock(r);
1801
1806
  }
1802
1807
  for (var m = 0; m < d.blocks.length; m++) {
1803
- var k = d.blocks[m];
1804
- k.events.sort(this.hb);
1805
- for (var S = 0; S < k.events.length; S++) {
1806
- var r = k.events[S];
1807
- k.putIntoLine(r);
1808
+ var _ = d.blocks[m];
1809
+ _.events.sort(this.ib);
1810
+ for (var S = 0; S < _.events.length; S++) {
1811
+ var r = _.events[S];
1812
+ _.putIntoLine(r);
1808
1813
  }
1809
1814
  }
1810
1815
  }
1811
1816
  }
1812
- }, this.hb = function (e, t) {
1817
+ }, this.ib = function (e, t) {
1813
1818
  if (!(e && t && e.start && t.start))
1814
1819
  return 0;
1815
1820
  var i = e.start().getTime() - t.start().getTime();
@@ -1823,30 +1828,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1823
1828
  var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
1824
1829
  0 === s && (d = l);
1825
1830
  var c = {};
1826
- return c.cut = !1, c.top = this.ib(r), c.boxTop = this.ib(l), c.boxBottom = this.ib(d), this.cache.pixels[a + "_" + i] = c, c;
1827
- }, this.ib = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.ab = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.da = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ha = function () { var e = this.Fa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { n.qa.scope && n.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.Va = function () {
1831
+ return c.cut = !1, c.top = this.jb(r), c.boxTop = this.jb(l), c.boxBottom = this.jb(d), this.cache.pixels[a + "_" + i] = c, c;
1832
+ }, this.jb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.bb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ea = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ia = function () { var e = this.Ga(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { n.ra.scope && n.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.Wa = function () {
1828
1833
  if (n.nav.scroll) {
1829
1834
  var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
1830
- n.Wa.scrollHour = t;
1835
+ n.Xa.scrollHour = t;
1831
1836
  }
1832
- }, this.bb = function () { var e = 0; "number" == typeof n.Wa.scrollHour ? e = 2 * n.cellHeight * n.Wa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.jb = 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.Xa(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.kb = function () { this.ab(), this.ba(), this.Ea(), this.ea(), this.fa(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.lb(), this.R("Init"); }, this.Wa = {}, this.mb = function () { this.Wa.themes = [], this.Wa.themes.push(this.theme || this.cssClassPrefix); }, this.nb = function () {
1833
- for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
1837
+ }, this.cb = function () { var e = 0; "number" == typeof n.Xa.scrollHour ? e = 2 * n.cellHeight * n.Xa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.kb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Ya(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.lb = function () { this.bb(), this.ca(), this.Fa(), this.fa(), this.ga(), this.Ya(), this.Va(), this.Za(), t.register(this), this.mb(), this.R("Init"); }, this.Xa = {}, this.nb = function () { this.Xa.themes = [], this.Xa.themes.push(this.theme || this.cssClassPrefix); }, this.ob = function () {
1838
+ for (var e = this.Xa.themes, t = 0; t < e.length; t++) {
1834
1839
  var i = e[t];
1835
1840
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1836
1841
  }
1837
- this.Wa.themes = [];
1838
- }, this.ob = function () {
1842
+ this.Xa.themes = [];
1843
+ }, this.pb = function () {
1839
1844
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1840
1845
  var e = {};
1841
1846
  e.isCallBack = !1, this.onAfterRender(e);
1842
1847
  }
1843
- }, this.pb = function () {
1844
- if ("function" == typeof this.onInit && !this.qb) {
1845
- this.qb = !0;
1848
+ }, this.qb = function () {
1849
+ if ("function" == typeof this.onInit && !this.rb) {
1850
+ this.rb = !0;
1846
1851
  var e = {};
1847
1852
  this.onInit(e);
1848
1853
  }
1849
- }, this.rb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.lb = function () { var e = n.rb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ia = 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._a, this.internal.xssTextHtml = n.Ia, this.init = function () { this.eb(); var e = this.jb(); return this.mb(), e ? void this.kb() : (this.ab(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.ob(), this.pb(), this.lb(), this.za = !0, this); }, this.Init = this.init, this._a(i);
1854
+ }, this.sb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.mb = function () { var e = n.sb; e() || (n.U = setInterval(function () { e() && (n.Va(), n.Ya(), clearInterval(n.U)); }, 100)); }, this.Ja = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.ab, this.internal.xssTextHtml = n.Ja, this.init = function () { this.fb(); var e = this.kb(); return this.nb(), e ? void this.lb() : (this.bb(), this.ca(), this.da(), this.Fa(), this.fa(), this.ga(), this.s(), this.Ya(), this.Va(), this.Za(), t.register(this), this.events && (this.ea(), this.ja()), this.pb(), this.qb(), this.mb(), this.Aa = !0, this); }, this.Init = this.init, this.ab(i);
1850
1855
  }, 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) {
1851
1856
  e.fn.daypilotCalendar = function (e) {
1852
1857
  var t = null, i = this.each(function () {
@@ -1865,7 +1870,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1865
1870
  e && e.directive("daypilotCalendar", ["$parse", function (e) {
1866
1871
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
1867
1872
  var n = new DayPilot.Calendar(i[0]);
1868
- n.qa.scope = t, n.init();
1873
+ n.ra.scope = t, n.init();
1869
1874
  var o = a["id"];
1870
1875
  o && (t[o] = n);
1871
1876
  var r = a["publishAs"];
@@ -1878,7 +1883,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1878
1883
  l.call(t, d, function (e) {
1879
1884
  for (var t in e)
1880
1885
  n[t] = e[t];
1881
- n.update(), n.pb();
1886
+ n.update(), n.qb();
1882
1887
  }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
1883
1888
  } };
1884
1889
  }]);
@@ -1888,13 +1893,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1888
1893
  var DayPilot = {};
1889
1894
  if (function () {
1890
1895
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1891
- this.v = "2024.3.536-lite";
1896
+ this.v = "2024.3.543-lite";
1892
1897
  var t = "navigator_" + (new Date).getTime(), i = this;
1893
1898
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1894
1899
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1895
1900
  for (var t in e)
1896
1901
  this[t] = e[t];
1897
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.sb(); this.resetTarget && !e ? this.tb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.sb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.rb && (this.rb = !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.tb(this.date); }, this.sb = function () {
1902
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.tb(); this.resetTarget && !e ? this.ub(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.tb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.sb && (this.sb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.ub(this.date); }, this.tb = function () {
1898
1903
  var e = this.B();
1899
1904
  if (!e)
1900
1905
  return this.date;
@@ -1907,26 +1912,26 @@ if (function () {
1907
1912
  a = DayPilot.Date.parse(t, i.patterns[n]);
1908
1913
  }
1909
1914
  return a;
1910
- }, this.tb = function (e) {
1915
+ }, this.ub = function (e) {
1911
1916
  var t = this.B();
1912
1917
  if (t) {
1913
1918
  var a = e.toString(i.pattern, i.locale);
1914
1919
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1915
1920
  }
1916
- }, 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.rb; } }), this.show = function () {
1917
- if (!this.rb) {
1921
+ }, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.sb; } }), this.show = function () {
1922
+ if (!this.sb) {
1918
1923
  var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
1919
- 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.ub), 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.tb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1924
+ a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.vb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.ub(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
1920
1925
  var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
1921
1926
  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);
1922
1927
  var l = document.createElement("div");
1923
1928
  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;
1924
- var d = i.sb() || (new DayPilot.Date).getDatePart();
1925
- if (a.startDate = d, a.ub = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1929
+ var d = i.tb() || (new DayPilot.Date).getDatePart();
1930
+ if (a.startDate = d, a.vb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
1926
1931
  var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
1927
1932
  s.style.left = c + "px";
1928
1933
  }
1929
- this.rb = !0, this.onShow && this.onShow();
1934
+ this.sb = !0, this.onShow && this.onShow();
1930
1935
  }
1931
1936
  }, this.prepare(), this.init();
1932
1937
  });
@@ -1938,10 +1943,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1938
1943
  var e = function () { }, t = {};
1939
1944
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1940
1945
  var a = this, n = null;
1941
- this.v = "2024.3.536-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.vb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1946
+ this.v = "2024.3.543-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.wb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1942
1947
  o = o || {};
1943
1948
  var r = null;
1944
- 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.vb.submenu = null, null !== t.mouse) {
1949
+ if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.wb.submenu = null, null !== t.mouse) {
1945
1950
  a.cssOnly || (a.cssOnly = !0);
1946
1951
  var s = null;
1947
1952
  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) {
@@ -1950,15 +1955,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1950
1955
  return;
1951
1956
  }
1952
1957
  var d = document.createElement("div");
1953
- 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.wb("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)
1958
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.xb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1954
1959
  throw "No menu items defined.";
1955
1960
  if (this.showMenuTitle) {
1956
1961
  var c = document.createElement("div");
1957
- c.innerHTML = this.menuTitle, c.className = this.wb("title"), d.appendChild(c);
1962
+ c.innerHTML = this.menuTitle, c.className = this.xb("title"), d.appendChild(c);
1958
1963
  }
1959
1964
  for (var u = 0; u < this.items.length; u++) {
1960
1965
  var h = this.items[u], f = document.createElement("div");
1961
- if (DayPilot.Util.addClass(f, this.wb("item")), h.items && (DayPilot.Util.addClass(f, this.wb("item_haschildren")), DayPilot.Util.addClass(d, this.wb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1966
+ if (DayPilot.Util.addClass(f, this.xb("item")), h.items && (DayPilot.Util.addClass(f, this.xb("item_haschildren")), DayPilot.Util.addClass(d, this.xb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1962
1967
  if ("-" === h.text) {
1963
1968
  var m = document.createElement("div");
1964
1969
  m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
@@ -1966,7 +1971,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1966
1971
  else {
1967
1972
  var p = document.createElement("a");
1968
1973
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1969
- DayPilot.Util.addClass(p, a.wb("item_disabled"));
1974
+ DayPilot.Util.addClass(p, a.xb("item_disabled"));
1970
1975
  else {
1971
1976
  if (h.onclick || h.onClick) {
1972
1977
  p.item = h, p.onclick = function (e, t) {
@@ -1994,7 +1999,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1994
1999
  DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
1995
2000
  }
1996
2001
  if (h.items && !h.disabled) {
1997
- var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.xb(e, t); }; };
2002
+ var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.yb(e, t); }; };
1998
2003
  p.ontouchend = y(h, p);
1999
2004
  }
2000
2005
  if (h.onclick)
@@ -2030,13 +2035,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2030
2035
  }
2031
2036
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
2032
2037
  var g = document.createElement("span");
2033
- if (g.className = a.wb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2038
+ if (g.className = a.xb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
2034
2039
  var b = document.createElement("img");
2035
2040
  b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
2036
2041
  }
2037
2042
  if (h.icon) {
2038
2043
  var D = document.createElement("span");
2039
- D.className = a.wb("item_icon");
2044
+ D.className = a.xb("item_icon");
2040
2045
  var x = document.createElement("i");
2041
2046
  x.className = h.icon, D.appendChild(x), p.appendChild(D);
2042
2047
  }
@@ -2045,10 +2050,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2045
2050
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2046
2051
  var P = document.createElementNS(w, "use");
2047
2052
  P.setAttribute("href", h.symbol), C.appendChild(P);
2048
- var _ = document.createElement("span");
2049
- _.className = a.wb("item_symbol"), _.style.position = "absolute", _.style.top = "0px", _.style.left = "0px", _.appendChild(C), p.appendChild(_);
2053
+ var k = document.createElement("span");
2054
+ k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
2050
2055
  }
2051
- var k = function (e, i) {
2056
+ var _ = function (e, i) {
2052
2057
  return function () {
2053
2058
  var n = (i.source, e), o = t.waitingSubmenu;
2054
2059
  if (o) {
@@ -2056,16 +2061,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2056
2061
  return;
2057
2062
  clearTimeout(o.timeout), t.waitingSubmenu = null;
2058
2063
  }
2059
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.xb(n, i); }, 300));
2064
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.yb(n, i); }, 300));
2060
2065
  };
2061
2066
  };
2062
- p.onmouseover = k(h, p), f.appendChild(p);
2067
+ p.onmouseover = _(h, p), f.appendChild(p);
2063
2068
  }
2064
2069
  d.appendChild(f);
2065
2070
  }
2066
2071
  }
2067
2072
  var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2068
- 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.vb.visible = !0, a.vb.source = i, d.style.display = "";
2073
+ d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.wb.visible = !0, a.wb.source = i, d.style.display = "";
2069
2074
  var M = d.offsetHeight, T = d.offsetWidth;
2070
2075
  d.style.display = "none";
2071
2076
  var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
@@ -2093,23 +2098,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2093
2098
  else
2094
2099
  d.style.left = e + "px";
2095
2100
  }(), o.parentLink) {
2096
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), O = z.x + N.offsetWidth, R = z.y - I;
2097
- O + T > H && (O = Math.max(0, z.x - T));
2101
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + N.offsetWidth, z = R.y - I;
2102
+ O + T > H && (O = Math.max(0, R.x - T));
2098
2103
  var U = document.body.scrollTop + document.documentElement.scrollTop;
2099
- R + M - U > A && (R = Math.max(0, A - M + U)), d.style.left = O + "px", d.style.top = R + "px";
2104
+ z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = O + "px", d.style.top = z + "px";
2100
2105
  }
2101
- d.style.display = "", this.addShadow(d), this.vb.div = d, o.submenu || (DayPilot.Menu.active = this);
2106
+ d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
2102
2107
  }
2103
- }, this.xb = function (e, t) {
2108
+ }, this.yb = function (e, t) {
2104
2109
  var i = e, n = t.source;
2105
- if ((!a.vb.submenu || a.vb.submenu.item !== e) && (a.vb.submenu && a.vb.submenu.item !== e && (DayPilot.Util.removeClass(a.vb.submenu.link.parentNode, a.wb("item_haschildren_active")), a.vb.submenu.menu.hide(), a.vb.submenu = null), e.items)) {
2110
+ if ((!a.wb.submenu || a.wb.submenu.item !== e) && (a.wb.submenu && a.wb.submenu.item !== e && (DayPilot.Util.removeClass(a.wb.submenu.link.parentNode, a.xb("item_haschildren_active")), a.wb.submenu.menu.hide(), a.wb.submenu = null), e.items)) {
2106
2111
  var o = a.cloneOptions();
2107
- o.items = e.items, a.vb.submenu = {}, a.vb.submenu.menu = new DayPilot.Menu(o), a.vb.submenu.menu.yb = a, a.vb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.vb.submenu.item = e, a.vb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.wb("item_haschildren_active"));
2112
+ o.items = e.items, a.wb.submenu = {}, a.wb.submenu.menu = new DayPilot.Menu(o), a.wb.submenu.menu.zb = a, a.wb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.wb.submenu.item = e, a.wb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.xb("item_haschildren_active"));
2108
2113
  }
2109
- }, this.wb = 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) {
2110
- e = e || {}, this.vb.submenu && this.vb.submenu.menu.hide();
2114
+ }, this.xb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2115
+ e = e || {}, this.wb.submenu && this.wb.submenu.menu.hide();
2111
2116
  var i = t.waitingSubmenu;
2112
- if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.vb.div && this.vb.div.parentNode === document.body && document.body.removeChild(this.vb.div), n && (DayPilot.de(n), n = null), a.vb.visible = !1, a.vb.source = null, a.yb && e.hideParent && a.yb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2117
+ if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.wb.div && this.wb.div.parentNode === document.body && document.body.removeChild(this.wb.div), n && (DayPilot.de(n), n = null), a.wb.visible = !1, a.wb.source = null, a.zb && e.hideParent && a.zb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2113
2118
  var o = {};
2114
2119
  this.onHide(o);
2115
2120
  }
@@ -2120,31 +2125,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2120
2125
  this[r] = o[r];
2121
2126
  }, DayPilot.MenuBar = function (e, t) {
2122
2127
  var i = this;
2123
- t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.za = !1;
2128
+ t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Aa = !1;
2124
2129
  for (var a in t)
2125
2130
  this[a] = t[a];
2126
- this.zb = function (e) { return this.theme + "_" + e; }, this.s = function () {
2131
+ this.Ab = function (e) { return this.theme + "_" + e; }, this.s = function () {
2127
2132
  this.nav.top = document.getElementById(e);
2128
2133
  var t = this.nav.top;
2129
- t.className = this.zb("main"), DayPilot.list(i.items).forEach(function (e) {
2134
+ t.className = this.Ab("main"), DayPilot.list(i.items).forEach(function (e) {
2130
2135
  var a = document.createElement("span");
2131
- a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.zb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2136
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Ab("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2132
2137
  if (i.active && i.active.item === e)
2133
- i.Ab();
2138
+ i.Bb();
2134
2139
  else if (e.children)
2135
- return void i.Bb(a);
2140
+ return void i.Cb(a);
2136
2141
  if ("function" == typeof e.onClick) {
2137
2142
  var n = {};
2138
2143
  n.item = e, n.originalEvent = t, e.onClick(n);
2139
2144
  }
2140
- }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Bb(a); }, t.appendChild(a), i.elements.items.push(a);
2145
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Cb(a); }, t.appendChild(a), i.elements.items.push(a);
2141
2146
  });
2142
- }, this.Ab = function () { var e = i.zb("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.Cb = function (e) { return !!i.active && i.active.item === e.data; }, this.Bb = function (e) {
2143
- if (!i.Cb(e)) {
2144
- i.Ab();
2147
+ }, this.Bb = function () { var e = i.Ab("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Db = function (e) { return !!i.active && i.active.item === e.data; }, this.Cb = function (e) {
2148
+ if (!i.Db(e)) {
2149
+ i.Bb();
2145
2150
  var t = e.data, a = i.active = {};
2146
2151
  a.item = t, a.div = e;
2147
- var n = i.zb("item_active");
2152
+ var n = i.Ab("item_active");
2148
2153
  DayPilot.Util.addClass(e, n);
2149
2154
  var o = DayPilot.abs(e);
2150
2155
  if (t.children) {
@@ -2154,8 +2159,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2154
2159
  }
2155
2160
  DayPilot.MenuBar.active = i;
2156
2161
  }
2157
- }, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); };
2158
- }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Ab(), 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) {
2162
+ }, this.init = function () { return this.s(), this.Aa = !0, this; }, this.dispose = function () { this.Aa && (this.nav.top.innerHTML = "", this.elements.items = []); };
2163
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Bb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
2159
2164
  if (!e || !e.touches)
2160
2165
  return null;
2161
2166
  var t = e.touches[0], i = {};
@@ -2164,7 +2169,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2164
2169
  if (e = e || {}, e.calendar) {
2165
2170
  var i = DayPilot.Menu.active;
2166
2171
  if (i) {
2167
- var a = i.vb.source;
2172
+ var a = i.wb.source;
2168
2173
  a && a.calendar === e.calendar && t.menuClean();
2169
2174
  }
2170
2175
  }
@@ -2242,32 +2247,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2242
2247
  "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) {
2243
2248
  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;
2244
2249
  var t = this;
2245
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Db = !1, this.Eb = null, this.Fb = null, this.showHtml = function (e) {
2250
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Eb = !1, this.Fb = null, this.Gb = null, this.showHtml = function (e) {
2246
2251
  if (DayPilot.ModalStatic.displayed(this))
2247
2252
  throw "This modal dialog is already displayed.";
2248
- if (this.div || this.Gb(), this.Za(), this.useIframe) {
2253
+ if (this.div || this.Hb(), this.$a(), this.useIframe) {
2249
2254
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2250
2255
  window.setTimeout(t(this, e), 0);
2251
2256
  }
2252
2257
  else
2253
2258
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2254
- this.Za(), this.Hb(), this.Ib();
2259
+ this.$a(), this.Ib(), this.Jb();
2255
2260
  }, this.showUrl = function (e) {
2256
2261
  if (DayPilot.ModalStatic.displayed(this))
2257
2262
  throw "This modal dialog is already displayed.";
2258
2263
  if (this.useIframe) {
2259
- this.div || this.Gb();
2264
+ this.div || this.Hb();
2260
2265
  var i = this.loadingHtml;
2261
- i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Jb), this.iframe.src = e, this.Za(), this.Hb(), this.Ib();
2266
+ i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Kb), this.iframe.src = e, this.$a(), this.Ib(), this.Jb();
2262
2267
  }
2263
2268
  else
2264
- t.Kb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2265
- }, this.Ib = function () {
2269
+ t.Lb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } });
2270
+ }, this.Jb = function () {
2266
2271
  if ("function" == typeof t.onShow) {
2267
2272
  var e = {};
2268
- e.root = t.Lb(), e.modal = t, t.onShow(e);
2273
+ e.root = t.Mb(), e.modal = t, t.onShow(e);
2269
2274
  }
2270
- }, this.Lb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Kb = function (e) {
2275
+ }, this.Mb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Lb = function (e) {
2271
2276
  var t = new XMLHttpRequest;
2272
2277
  if (t) {
2273
2278
  var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
@@ -2285,30 +2290,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2285
2290
  window.console && console.log("HTTP error " + t.status);
2286
2291
  }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
2287
2292
  }
2288
- }, this.Za = 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.Nb(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Jb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2289
- var e = function () { return t.Mb().y; }, i = function () { return t.Mb().x; };
2293
+ }, this.$a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Ob(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Kb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2294
+ var e = function () { return t.Nb().y; }, i = function () { return t.Nb().x; };
2290
2295
  if (this.useIframe) {
2291
- for (var a = i() - 40, n = this.width; n < a && this.Ob(); n += 10)
2296
+ for (var a = i() - 40, n = this.width; n < a && this.Pb(); n += 10)
2292
2297
  this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
2293
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Pb(); r += 10)
2298
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Qb(); r += 10)
2294
2299
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
2295
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Jb);
2300
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Kb);
2296
2301
  }
2297
2302
  else
2298
2303
  this.div.style.height = "";
2299
- }, this.Ob = function () {
2304
+ }, this.Pb = function () {
2300
2305
  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++) {
2301
2306
  var o = a[n].offsetLeft + a[n].offsetWidth;
2302
2307
  i = Math.max(i, o);
2303
2308
  }
2304
2309
  return i > t.clientWidth;
2305
- }, this.Pb = function () {
2310
+ }, this.Qb = function () {
2306
2311
  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++) {
2307
2312
  var o = a[n].offsetTop + a[n].offsetHeight;
2308
2313
  i = Math.max(i, o);
2309
2314
  }
2310
2315
  return i > t.clientHeight;
2311
- }, this.Mb = function () {
2316
+ }, this.Nb = function () {
2312
2317
  var e = document;
2313
2318
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2314
2319
  var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
@@ -2316,32 +2321,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2316
2321
  }
2317
2322
  var t = e.body.clientWidth, i = e.body.clientHeight;
2318
2323
  return { x: t, y: i };
2319
- }, this.Hb = function () { this.Db || (this.re(window, "resize", this.Qb), this.re(window, "scroll", this.Rb), this.dragDrop && (this.re(document, "mousemove", this.Sb), this.re(document, "mouseup", this.Tb)), this.Db = !0); }, this.Ub = function () { this.ue(window, "resize", this.Qb), this.ue(window, "scroll", this.Rb), this.dragDrop && (this.ue(document, "mousemove", this.Sb), this.ue(document, "mouseup", this.Tb)), this.Db = !1; }, this.Vb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Wb(), t.Fb = t.mc(e || window.event), t.Eb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Sb = function (e) {
2320
- if (t.Fb) {
2321
- var e = e || window.event, i = t.mc(e), a = i.x - t.Fb.x, n = i.y - t.Fb.y;
2322
- t.div.style.marginLeft = "0px", t.div.style.top = t.Eb.y + n + "px", t.div.style.left = t.Eb.x + a + "px";
2324
+ }, this.Ib = function () { this.Eb || (this.re(window, "resize", this.Rb), this.re(window, "scroll", this.Sb), this.dragDrop && (this.re(document, "mousemove", this.Tb), this.re(document, "mouseup", this.Ub)), this.Eb = !0); }, this.Vb = function () { this.ue(window, "resize", this.Rb), this.ue(window, "scroll", this.Sb), this.dragDrop && (this.ue(document, "mousemove", this.Tb), this.ue(document, "mouseup", this.Ub)), this.Eb = !1; }, this.Wb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Xb(), t.Gb = t.mc(e || window.event), t.Fb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Tb = function (e) {
2325
+ if (t.Gb) {
2326
+ var e = e || window.event, i = t.mc(e), a = i.x - t.Gb.x, n = i.y - t.Gb.y;
2327
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Fb.y + n + "px", t.div.style.left = t.Fb.x + a + "px";
2323
2328
  }
2324
- }, this.Tb = function (e) { t.Fb && (t.Xb(), t.div.style.cursor = null, t.Fb = null); }, this.Wb = function () {
2329
+ }, this.Ub = function (e) { t.Gb && (t.Yb(), t.div.style.cursor = null, t.Gb = null); }, this.Xb = function () {
2325
2330
  if (this.useIframe) {
2326
2331
  var e = document.createElement("div");
2327
2332
  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;
2328
2333
  }
2329
- }, this.Xb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Qb = function () { t.Yb(), t.Nb(); }, this.Rb = function () { t.Yb(); }, this.Nb = function () {
2334
+ }, this.Yb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Rb = function () { t.Zb(), t.Ob(); }, this.Sb = function () { t.Zb(); }, this.Ob = function () {
2330
2335
  if (!t.left && t.div) {
2331
2336
  var e = t.div.offsetWidth;
2332
2337
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2333
2338
  }
2334
- }, this.Yb = function () {
2339
+ }, this.Zb = function () {
2335
2340
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2336
- var e = t.Zb.scrollY();
2341
+ var e = t.$b.scrollY();
2337
2342
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2338
2343
  }
2339
- }, this.Zb = {}, this.Zb.container = function () { return t.container || document.body; }, this.Zb.scrollY = function () { var e = t.Zb.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) {
2344
+ }, this.$b = {}, this.$b.container = function () { return t.container || document.body; }, this.$b.scrollY = function () { var e = t.$b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2340
2345
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2341
2346
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2342
2347
  return t;
2343
- }, this.Gb = function () { var e = t.Zb.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.Vb), 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 () {
2344
- for (var e = t.Lb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2348
+ }, this.Hb = function () { var e = t.$b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Wb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t._b || (t.stretch(), t._b = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2349
+ for (var e = t.Mb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
2345
2350
  var o = i[n], r = o.name;
2346
2351
  if (r) {
2347
2352
  var s = o.value;
@@ -2349,11 +2354,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2349
2354
  }
2350
2355
  }
2351
2356
  t.close(a);
2352
- }, 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.Ub(), t._b(t.div), t._b(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this._b = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.bc = function () {
2357
+ }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Vb(), t.bc(t.div), t.bc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.bc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.cc = function () {
2353
2358
  if (e)
2354
2359
  for (var t in e)
2355
2360
  this[t] = e[t];
2356
- }, this.bc();
2361
+ }, this.cc();
2357
2362
  }, 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) {
2358
2363
  "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1;
2359
2364
  var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || "";
@@ -2465,11 +2470,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2465
2470
  t.stretch();
2466
2471
  }, 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)); });
2467
2472
  var r = function (e) {
2468
- this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.cc = [], this.dc = null, this.canceling = !1, this.ec = [], this.f = [], this.fc = null, e = e || {};
2473
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.dc = [], this.ec = null, this.canceling = !1, this.fc = [], this.f = [], this.gc = null, e = e || {};
2469
2474
  for (var t in e)
2470
2475
  this[t] = e[t];
2471
2476
  };
2472
- r.prototype.create = function () { return this.load(), this.render(), this.fc; }, r.prototype.render = function () { var e = this; this.fc = document.createElement("div"), this.cc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2477
+ r.prototype.create = function () { return this.load(), this.render(), this.gc; }, r.prototype.render = function () { var e = this; this.gc = document.createElement("div"), this.dc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
2473
2478
  var t = this.theme, i = this, a = document.createElement("div");
2474
2479
  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) {
2475
2480
  var n = document.createElement("div");
@@ -2477,13 +2482,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2477
2482
  }
2478
2483
  var o = this.createInteractive(e);
2479
2484
  o.onInput = function (e) {
2480
- if (e = e || {}, i.gc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2485
+ if (e = e || {}, i.hc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
2481
2486
  var t = {};
2482
2487
  t.result = i.serialize(), i.onChange(t);
2483
2488
  }
2484
- }, o.onBlur = function () { i.canceling || i.gc(o); }, o.apply(e), o.fc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.fc.appendChild(a);
2485
- }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.gc(i); t = t && a; }), t; }, r.prototype.gc = function (e, t) {
2486
- function i() { e.hc && (e.hc.remove(), e.hc = null), e.fc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.hc = t, e.fc.appendChild(t); }
2489
+ }, o.onBlur = function () { i.canceling || i.hc(o); }, o.apply(e), o.gc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.gc.appendChild(a);
2490
+ }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.hc(i); t = t && a; }), t; }, r.prototype.hc = function (e, t) {
2491
+ function i() { e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.ic = t, e.gc.appendChild(t); }
2487
2492
  t = t || {};
2488
2493
  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;
2489
2494
  if (d) {
@@ -2491,11 +2496,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2491
2496
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2492
2497
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2493
2498
  if (c.valid)
2494
- clearTimeout(this.ec[o.field]), e.hc && (e.hc.remove(), e.hc = null), e.fc.classList.remove(u);
2499
+ clearTimeout(this.fc[o.field]), e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.remove(u);
2495
2500
  else if (!n)
2496
2501
  if (a) {
2497
2502
  var f = 1e3;
2498
- clearTimeout(this.ec[o.field]), this.ec[o.field] = setTimeout(function () { i(); }, f);
2503
+ clearTimeout(this.fc[o.field]), this.fc[o.field] = setTimeout(function () { i(); }, f);
2499
2504
  }
2500
2505
  else
2501
2506
  i();
@@ -2515,34 +2520,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2515
2520
  }
2516
2521
  for (var n in i)
2517
2522
  this.setValue(n, i[n]);
2518
- }, r.prototype.setValue = function (e, t) { this.cc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.dc ? this.dc : this.cc).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) {
2523
+ }, r.prototype.setValue = function (e, t) { this.dc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.ec ? this.ec : this.dc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
2519
2524
  var i = this, a = this.getFieldType(e), n = [];
2520
2525
  if ("radio" === a) {
2521
2526
  if (e.name) {
2522
2527
  var o = new s;
2523
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.cc.push(o), n.push(o);
2528
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
2524
2529
  }
2525
- 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.cc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2530
+ e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.dc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
2526
2531
  }
2527
2532
  else if ("title" === a) {
2528
2533
  var o = new s;
2529
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.cc.push(o), n.push(o);
2534
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
2530
2535
  }
2531
2536
  else if ("image" === a) {
2532
2537
  var o = new s;
2533
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
2538
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2534
2539
  }
2535
2540
  else if ("html" === a) {
2536
2541
  var o = new s;
2537
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
2542
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2538
2543
  }
2539
2544
  else if ("scrollable" === a) {
2540
2545
  var o = new s;
2541
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.cc.push(o), n.push(o);
2546
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
2542
2547
  }
2543
2548
  else {
2544
2549
  var o = new s;
2545
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.cc.push(o), n.push(o);
2550
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.dc.push(o), n.push(o);
2546
2551
  }
2547
2552
  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;
2548
2553
  }, r.prototype.doOnKey = function (e) {
@@ -2607,21 +2612,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2607
2612
  }
2608
2613
  i || (e.preventDefault(), e.stopPropagation());
2609
2614
  }, 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;
2610
- }, "time": function () { return t.ic(e); }, "datetime": function () { return t.jc(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.kc = 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.kc && (t = a.kc); 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 () {
2615
+ }, "time": function () { return t.jc(e); }, "datetime": function () { return t.kc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.lc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.lc && (t = a.lc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () {
2611
2616
  var i = new l;
2612
2617
  i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2613
2618
  var a = document.createElement("label"), n = document.createElement("input");
2614
- n.type = "radio", n.name = e.field, n.kc = 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);
2619
+ n.type = "radio", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n);
2615
2620
  var o = document.createTextNode(e.text);
2616
2621
  return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () {
2617
2622
  if (!n.checked)
2618
2623
  return {};
2619
- var t = n.kc, i = {};
2624
+ var t = n.lc, i = {};
2620
2625
  return i[e.field] = t, i;
2621
2626
  }, i;
2622
- }, "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.kc = 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; } };
2627
+ }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
2623
2628
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
2624
- }, r.prototype.ic = function (e) {
2629
+ }, r.prototype.jc = function (e) {
2625
2630
  var t = this, i = new l;
2626
2631
  i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); };
2627
2632
  var a = [], n = e.data.timeInterval || 15;
@@ -2632,7 +2637,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2632
2637
  }
2633
2638
  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();
2634
2639
  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;
2635
- }, r.prototype.jc = function (e) {
2640
+ }, r.prototype.kc = function (e) {
2636
2641
  var t = this, i = new l;
2637
2642
  i.apply = function (e) {
2638
2643
  i.row = e;
@@ -2682,9 +2687,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2682
2687
  return i.searchable = f, f.create();
2683
2688
  }(), o = document.createElement("div");
2684
2689
  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;
2685
- }, r.prototype.findRowsByField = function (e) { return this.cc.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) {
2686
- var i = this.dc ? this.dc : this.cc, a = i.indexOf(e);
2687
- return this.dc = i.map(function (i) {
2690
+ }, r.prototype.findRowsByField = function (e) { return this.dc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) {
2691
+ var i = this.ec ? this.ec : this.dc, a = i.indexOf(e);
2692
+ return this.ec = i.map(function (i) {
2688
2693
  if (i !== e)
2689
2694
  return i;
2690
2695
  if (e.propsEqual(t))
@@ -2693,11 +2698,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2693
2698
  for (var n in t)
2694
2699
  a[n] = t[n];
2695
2700
  return a;
2696
- }), this.dc[a];
2697
- }, r.prototype.updateInteractive = function (e) { var t = this.dc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2701
+ }), this.ec[a];
2702
+ }, r.prototype.updateInteractive = function (e) { var t = this.ec.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () {
2698
2703
  var e = this;
2699
- if (this.updateDependentState(), this.dc) {
2700
- this.dc.filter(function (t, i) { return e.cc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.cc = this.dc, this.dc = null;
2704
+ if (this.updateDependentState(), this.ec) {
2705
+ this.ec.filter(function (t, i) { return e.dc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.dc = this.ec, this.ec = null;
2701
2706
  }
2702
2707
  }, 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 () {
2703
2708
  var e = {};
@@ -2720,18 +2725,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2720
2725
  return !0;
2721
2726
  }, 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)); };
2722
2727
  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) {
2723
- this.data = [], this.name = null, this.theme = "searchable_default", this.lc = !1, this.listZIndex = 1e5, this.onSelect = null, this.nc = null, this.oc = null, this.pc = !1, this.qc = null, this.rc = null, this.o = [], this.sc = null, e = e || {};
2724
- var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.nc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2725
- Object.defineProperty(this, "selected", { get: function () { return this.nc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.lc; }, set: function (e) { this.lc = e, this.qc && (this.qc.disabled = e, e && this.tc()); } });
2728
+ this.data = [], this.name = null, this.theme = "searchable_default", this.nc = !1, this.listZIndex = 1e5, this.onSelect = null, this.oc = null, this.pc = null, this.qc = !1, this.rc = null, this.sc = null, this.o = [], this.tc = null, e = e || {};
2729
+ var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.oc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2730
+ Object.defineProperty(this, "selected", { get: function () { return this.oc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.nc; }, set: function (e) { this.nc = e, this.rc && (this.rc.disabled = e, e && this.uc()); } });
2726
2731
  for (var a in e)
2727
2732
  i[a] || (this[a] = e[a]);
2728
2733
  for (var a in e)
2729
2734
  i[a] && i[a].post(e[a]);
2730
2735
  };
2731
- d.prototype.select = function (e) { return this.nc = this.data.find(function (t) { return t.id === e; }), this.uc(!1), this; }, d.prototype.create = function () {
2736
+ d.prototype.select = function (e) { return this.oc = this.data.find(function (t) { return t.id === e; }), this.vc(!1), this; }, d.prototype.create = function () {
2732
2737
  function e(e) {
2733
2738
  var i = l.strategy;
2734
- "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.oc = null, l.o = [];
2739
+ "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.pc = null, l.o = [];
2735
2740
  var n = null;
2736
2741
  l.data.forEach(function (i) {
2737
2742
  var o = i.name || i.id;
@@ -2742,27 +2747,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2742
2747
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
2743
2748
  return;
2744
2749
  var r = document.createElement("div");
2745
- r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.nc && (l.oc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.oc !== r && (l.oc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.o.push(r);
2746
- }), l.oc || (l.oc = n), t();
2750
+ r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.oc && (l.pc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.pc !== r && (l.pc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.o.push(r);
2751
+ }), l.pc || (l.pc = n), t();
2747
2752
  }
2748
- 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.oc && (l.oc.className += " " + l.theme + "_list_item_highlight", t && !i(l.oc, h) && l.oc.scrollIntoView()); }
2753
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.pc && (l.pc.className += " " + l.theme + "_list_item_highlight", t && !i(l.pc, h) && l.pc.scrollIntoView()); }
2749
2754
  function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; }
2750
- function a(e) { var t = e.item; l.nc = t, l.uc(!0), o(), r(); }
2751
- function n() { l.tc(); }
2755
+ function a(e) { var t = e.item; l.oc = t, l.vc(!0), o(), r(); }
2756
+ function n() { l.uc(); }
2752
2757
  function o() { l.p(); }
2753
- function r() { l.pc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2754
- function s() { l.pc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2758
+ function r() { l.qc = !0, m.setAttribute("readonly", "readonly"), m.focus(); }
2759
+ function s() { l.qc = !1, m.removeAttribute("readonly"), m.select(), e("all"); }
2755
2760
  var l = this, d = this, c = document.createElement("div");
2756
2761
  c.className = this.theme + "_main", c.style.position = "relative";
2757
2762
  var u = document.createElement("div");
2758
- 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.pc ? (l.focus(), s()) : (n(), r()); });
2763
+ u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.qc ? (l.focus(), s()) : (n(), r()); });
2759
2764
  var h = document.createElement("div");
2760
2765
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2761
2766
  var f = document.createElement("input");
2762
- f.type = "hidden", f.name = this.name, f.searchable = d, this.sc = f;
2767
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.tc = f;
2763
2768
  var m = document.createElement("input");
2764
- return m.type = "text", m.className = this.theme + "_input", m.disabled = this.lc, 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) {
2765
- if (l.pc) {
2769
+ return m.type = "text", m.className = this.theme + "_input", m.disabled = this.nc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) {
2770
+ if (l.qc) {
2766
2771
  if ("Enter" === e.key)
2767
2772
  return;
2768
2773
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2770,24 +2775,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2770
2775
  s();
2771
2776
  }
2772
2777
  if ("ArrowDown" === e.key) {
2773
- var i = d.o.indexOf(d.oc);
2774
- i + 1 < d.o.length && (d.oc = d.o[i + 1]), t();
2778
+ var i = d.o.indexOf(d.pc);
2779
+ i + 1 < d.o.length && (d.pc = d.o[i + 1]), t();
2775
2780
  }
2776
2781
  else if ("ArrowUp" === e.key) {
2777
- var i = d.o.indexOf(d.oc);
2778
- i - 1 >= 0 && (d.oc = d.o[i - 1]), t();
2782
+ var i = d.o.indexOf(d.pc);
2783
+ i - 1 >= 0 && (d.pc = d.o[i - 1]), t();
2779
2784
  }
2780
2785
  else
2781
- "Enter" === e.key ? l.oc ? (e.stopPropagation(), a(l.oc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2782
- }), this.qc = m, this.rc = h, this.nc || (this.nc = this.data[0], this.nc && (m.value = this.nc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2783
- }, d.prototype.tc = function () { this.p(), this.nc ? this.qc.value = this.nc.name : (this.qc.value = "", this.uc(!0)); }, d.prototype.focus = function () { this.pc = !0, this.qc.setAttribute("readonly", "readonly"), this.qc.focus(), this.tc(); }, d.prototype.p = function () { this.rc.style.display = "none"; }, d.prototype.uc = function (e) {
2784
- if (this.sc.value = this.selected ? this.selected.id : null, this.nc ? this.qc.value = this.nc.name : this.qc.value = "", "function" == typeof this.onSelect) {
2786
+ "Enter" === e.key ? l.pc ? (e.stopPropagation(), a(l.pc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r());
2787
+ }), this.rc = m, this.sc = h, this.oc || (this.oc = this.data[0], this.oc && (m.value = this.oc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2788
+ }, d.prototype.uc = function () { this.p(), this.oc ? this.rc.value = this.oc.name : (this.rc.value = "", this.vc(!0)); }, d.prototype.focus = function () { this.qc = !0, this.rc.setAttribute("readonly", "readonly"), this.rc.focus(), this.uc(); }, d.prototype.p = function () { this.sc.style.display = "none"; }, d.prototype.vc = function (e) {
2789
+ if (this.tc.value = this.selected ? this.selected.id : null, this.oc ? this.rc.value = this.oc.name : this.rc.value = "", "function" == typeof this.onSelect) {
2785
2790
  var t = { control: this, ui: e };
2786
2791
  this.onSelect(t);
2787
2792
  }
2788
2793
  };
2789
2794
  var c = function (e) {
2790
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.vc = null, this.cc = [], e = e || {};
2795
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.wc = null, this.dc = [], e = e || {};
2791
2796
  for (var t in e)
2792
2797
  this[t] = e[t];
2793
2798
  };
@@ -2798,11 +2803,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2798
2803
  i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i);
2799
2804
  var a = document.createElement("div");
2800
2805
  a.className = this.theme + "_table";
2801
- var n = this.wc();
2806
+ var n = this.xc();
2802
2807
  a.appendChild(n);
2803
- var o = e.xc({});
2808
+ var o = e.yc({});
2804
2809
  o.spacer = !0;
2805
- var r = this.yc(o);
2810
+ var r = this.zc(o);
2806
2811
  r.classList.add(e.theme + "_spacer"), a.appendChild(r);
2807
2812
  var s = document.createElement("div");
2808
2813
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2816,18 +2821,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2816
2821
  var n = {};
2817
2822
  n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
2818
2823
  }
2819
- var o = e.xc(a);
2820
- e.cc.push(o), e.zc(), e.Ac();
2824
+ var o = e.yc(a);
2825
+ e.dc.push(o), e.Ac(), e.Bc();
2821
2826
  }
2822
2827
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2823
- }, c.prototype.wc = 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.Bc = function () { var e = this.item.max || 0; return !!(e && this.cc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.cc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2828
+ }, c.prototype.xc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Cc = function () { var e = this.item.max || 0; return !!(e && this.dc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.dc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) {
2824
2829
  if ("[object Array]" !== Object.prototype.toString.call(e))
2825
2830
  throw new Error("Array expected");
2826
- this.data = e, this.Cc(), this.zc();
2827
- }, c.prototype.Dc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Bc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Cc = function () { var e = this; this.cc = [], this.data.forEach(function (t) { var i = e.xc(t); e.cc.push(i); }); }, c.prototype.Ec = function (e) { var t = this, i = t.cc.indexOf(e); t.cc.splice(i, 1); }, c.prototype.xc = function (e) {
2831
+ this.data = e, this.Dc(), this.Ac();
2832
+ }, c.prototype.Ec = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Cc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Dc = function () { var e = this; this.dc = [], this.data.forEach(function (t) { var i = e.yc(t); e.dc.push(i); }); }, c.prototype.Fc = function (e) { var t = this, i = t.dc.indexOf(e); t.dc.splice(i, 1); }, c.prototype.yc = function (e) {
2828
2833
  var t = this, i = {};
2829
2834
  return i.data = e, i.cells = [], t.item.columns.forEach(function (a) {
2830
- var n = a.id, o = e[n], r = t.Fc(a);
2835
+ var n = a.id, o = e[n], r = t.Gc(a);
2831
2836
  if ("undefined" == typeof o)
2832
2837
  if ("text" === r)
2833
2838
  o = "";
@@ -2840,19 +2845,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2840
2845
  var l = {};
2841
2846
  l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l);
2842
2847
  }), i;
2843
- }, c.prototype.Fc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.zc = function () {
2848
+ }, c.prototype.Gc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Ac = function () {
2844
2849
  var e = this;
2845
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.cc.forEach(function (t) { var i = e.yc(t); e.nav.body.appendChild(i); }), 0 === this.cc.length) {
2846
- var t = e.Gc();
2850
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.dc.forEach(function (t) { var i = e.zc(t); e.nav.body.appendChild(i); }), 0 === this.dc.length) {
2851
+ var t = e.Hc();
2847
2852
  e.nav.after.appendChild(t);
2848
2853
  }
2849
- this.Dc();
2850
- }, c.prototype.Gc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.yc = function (e) {
2854
+ this.Ec();
2855
+ }, c.prototype.Hc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.zc = function (e) {
2851
2856
  var t = this, i = document.createElement("div");
2852
2857
  i.className = t.theme + "_row", e.cells.forEach(function (a) {
2853
2858
  var n = document.createElement("div");
2854
2859
  n.className = t.theme + "_cell";
2855
- var o = t.Hc(a);
2860
+ var o = t.Ic(a);
2856
2861
  if (e.spacer) {
2857
2862
  var r = document.createElement("div");
2858
2863
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
@@ -2864,22 +2869,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2864
2869
  var a = document.createElement("div");
2865
2870
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2866
2871
  var n = document.createElement("span");
2867
- return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Ec(e), t.zc(), t.Ac()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2868
- }, c.prototype.Ac = function () {
2872
+ return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Fc(e), t.Ac(), t.Bc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i;
2873
+ }, c.prototype.Bc = function () {
2869
2874
  var e = this;
2870
2875
  if ("function" == typeof e.onInput) {
2871
2876
  var t = {};
2872
2877
  e.onInput(t);
2873
2878
  }
2874
- }, c.prototype.Hc = function (e) {
2879
+ }, c.prototype.Ic = function (e) {
2875
2880
  var t = this, i = e.type;
2876
2881
  if ("text" === i || "number" === i) {
2877
2882
  var a = document.createElement("input");
2878
- 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.Ac(); }), a;
2883
+ return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Bc(); }), a;
2879
2884
  }
2880
2885
  if ("select" === i) {
2881
2886
  var n = document.createElement("select");
2882
- 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.kc = 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.kc && (e.value = a.kc), t.Ac(); }), n;
2887
+ return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.lc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.lc && (e.value = a.lc), t.Bc(); }), n;
2883
2888
  }
2884
2889
  throw new Error("Unsupported item type: " + i);
2885
2890
  }, c.prototype.focus = function () { };
@@ -2890,9 +2895,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2890
2895
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2891
2896
  var e = {};
2892
2897
  e.Month = function (t, i) {
2893
- this.v = "2024.3.536-lite", this.nav = {};
2898
+ this.v = "2024.3.543-lite", this.nav = {};
2894
2899
  var a = this;
2895
- 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 = 1, 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.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), 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) {
2900
+ this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.N = !1, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Jc(), a.da(), "Full" === e.UpdateType && (a.Kc(), a.Lc()), a.ia(), a.show(), a.ja(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2896
2901
  var t = null;
2897
2902
  if (e instanceof DayPilot.Event)
2898
2903
  t = e.data;
@@ -2901,7 +2906,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2901
2906
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
2902
2907
  t = e;
2903
2908
  }
2904
- a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify();
2909
+ a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.ra.notify();
2905
2910
  }, this.events.find = function (e) {
2906
2911
  if (!a.events.list)
2907
2912
  return null;
@@ -2929,7 +2934,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2929
2934
  a.events.list.splice(i, 1, e);
2930
2935
  }
2931
2936
  }
2932
- a.update(), a.qa.notify();
2937
+ a.update(), a.ra.notify();
2933
2938
  }, this.events.remove = function (e) {
2934
2939
  var t;
2935
2940
  if (e instanceof DayPilot.Event)
@@ -2943,7 +2948,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2943
2948
  i && (t = i.data);
2944
2949
  }
2945
2950
  var n = DayPilot.indexOf(a.events.list, t);
2946
- a.events.list.splice(n, 1), a.update(), a.qa.notify();
2951
+ a.events.list.splice(n, 1), a.update(), a.ra.notify();
2947
2952
  }, this.events.load = function (e, t, i) {
2948
2953
  var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
2949
2954
  var i, o = e.request;
@@ -2958,7 +2963,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2958
2963
  var s = {};
2959
2964
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
2960
2965
  return;
2961
- a.events.list = i, a.za && a.update();
2966
+ a.events.list = i, a.Aa && a.update();
2962
2967
  }
2963
2968
  };
2964
2969
  if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
@@ -2968,17 +2973,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2968
2973
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
2969
2974
  }
2970
2975
  }, this.update = function (e) {
2971
- if (a._a(e), this.za) {
2976
+ if (a.ab(e), this.Aa) {
2972
2977
  if (a.N)
2973
2978
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
2974
2979
  if (this.cells) {
2975
- a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
2980
+ a.V(), a.Jc(), a.da(), a.Kc(), a.Lc(), a.ia(), a.s(), a.ja(), this.visible ? this.show() : this.hide();
2976
2981
  }
2977
2982
  }
2978
- }, this.cb = null, this._a = function (e) {
2983
+ }, this.db = null, this.ab = function (e) {
2979
2984
  if (e) {
2980
2985
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
2981
- this.cb = t;
2986
+ this.db = t;
2982
2987
  for (var i in e)
2983
2988
  if (t[i]) {
2984
2989
  var n = t[i];
@@ -2987,14 +2992,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2987
2992
  else
2988
2993
  a[i] = e[i];
2989
2994
  }
2990
- }, this.db = function () {
2991
- var e = this.cb;
2995
+ }, this.eb = function () {
2996
+ var e = this.db;
2992
2997
  for (var t in e) {
2993
2998
  var i = e[t];
2994
2999
  i.postInit && i.postInit();
2995
3000
  }
2996
- }, this.fb = {}, this.fb.events = [], this.gb = function (e) {
2997
- var t = this.fb.events, i = this.events.list[e], n = {};
3001
+ }, this.gb = {}, this.gb.events = [], this.hb = function (e) {
3002
+ var t = this.gb.events, i = this.events.list[e], n = {};
2998
3003
  for (var o in i)
2999
3004
  n[o] = i[o];
3000
3005
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3002,14 +3007,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3002
3007
  r.control = a, r.data = n, this.onBeforeEventRender(r);
3003
3008
  }
3004
3009
  t[e] = n;
3005
- }, this.ca = function () {
3010
+ }, this.da = function () {
3006
3011
  var e = this.events.list;
3007
3012
  if (e) {
3008
3013
  if (!DayPilot.isArray(e))
3009
3014
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3010
3015
  if ("function" == typeof this.onBeforeEventRender)
3011
3016
  for (var t = 0; t < e.length; t++)
3012
- this.gb(t);
3017
+ this.hb(t);
3013
3018
  for (var i = 0; i < e.length; i++) {
3014
3019
  var a = e[i];
3015
3020
  if ("object" != typeof a)
@@ -3022,12 +3027,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3022
3027
  if (!(n.getTime() > o.getTime()))
3023
3028
  for (var t = 0; t < this.rows.length; t++) {
3024
3029
  var r = this.rows[t], s = new DayPilot.Event(a, this);
3025
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.fb.events[i]));
3030
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.gb.events[i]));
3026
3031
  }
3027
3032
  }
3028
3033
  for (var l = 0; l < this.rows.length; l++) {
3029
3034
  var r = this.rows[l];
3030
- r.events.sort(this.hb);
3035
+ r.events.sort(this.ib);
3031
3036
  for (var d = 0; d < this.rows[l].events.length; d++) {
3032
3037
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
3033
3038
  r.putIntoLine(c, u, h, l);
@@ -3040,13 +3045,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3040
3045
  t.event = null, t.click = null, t.parentNode.removeChild(t);
3041
3046
  }
3042
3047
  this.elements.events = [];
3043
- }, this.ia = function () { this.Lc(); }, this.Lc = function () {
3048
+ }, this.ja = function () { this.Mc(); }, this.Mc = function () {
3044
3049
  this.elements.events = [];
3045
3050
  for (var e = 0; e < this.rows.length; e++)
3046
3051
  for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
3047
3052
  for (var a = t.lines[i], n = 0; n < a.length; n++)
3048
- this.Ca(a[n]);
3049
- }, this.hb = function (e, t) {
3053
+ this.Da(a[n]);
3054
+ }, this.ib = function (e, t) {
3050
3055
  if (!(e && t && e.start && t.start))
3051
3056
  return 0;
3052
3057
  var i = e.start().getTime() - t.start().getTime();
@@ -3082,9 +3087,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3082
3087
  for (var i = this.headerHeight, a = 0; a < e; a++)
3083
3088
  i += this.rows[a].getHeight();
3084
3089
  return i += this.cellHeaderHeight, i += t * this.lineHeight();
3085
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ca = function (t) {
3090
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Da = function (t) {
3086
3091
  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");
3087
- 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.pa, u.oncontextmenu = a.Mc, u.onmousedown = function (i) {
3092
+ u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.qa, u.oncontextmenu = a.Nc, u.onmousedown = function (i) {
3088
3093
  i = i || window.event;
3089
3094
  var l = i.which || i.button;
3090
3095
  if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
@@ -3121,7 +3126,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3121
3126
  }
3122
3127
  if (t.client.deleteEnabled()) {
3123
3128
  var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
3124
- 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.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3129
+ v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ta(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
3125
3130
  }
3126
3131
  var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
3127
3132
  if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
@@ -3129,7 +3134,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3129
3134
  g.e = u.event, g.div = u, a.onAfterEventRender(g);
3130
3135
  }
3131
3136
  this.elements.events.push(u), this.nav.events.appendChild(u);
3132
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () {
3137
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Jc = function () {
3133
3138
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3134
3139
  var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
3135
3140
  e = Math.ceil(i / 7), this.days = 7 * e, this.rows = [];
@@ -3157,7 +3162,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3157
3162
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3158
3163
  e += this.rows[t].getHeight();
3159
3164
  return e;
3160
- }, 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.Ea = function () {
3165
+ }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Fa = function () {
3161
3166
  var t = this.nav.top;
3162
3167
  t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main");
3163
3168
  var i = document.createElement("div");
@@ -3209,7 +3214,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3209
3214
  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);
3210
3215
  }
3211
3216
  };
3212
- }, this.ha = function () {
3217
+ }, this.ia = function () {
3213
3218
  this.nav.top.style.height = this.getHeight() + "px";
3214
3219
  for (var e = 0; e < this.cells.length; e++)
3215
3220
  for (var t = 0; t < this.cells[e].length; t++)
@@ -3229,7 +3234,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3229
3234
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
3230
3235
  i.y++, t -= 7;
3231
3236
  return i.x = t, i;
3232
- }, this.Kc = function () {
3237
+ }, this.Lc = function () {
3233
3238
  var e = document.createElement("div");
3234
3239
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3235
3240
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3239,17 +3244,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3239
3244
  var a = t + this.getWeekStart();
3240
3245
  a > 6 && (a -= 7), i.className = this.J("_header");
3241
3246
  var o = document.createElement("div");
3242
- 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",
3243
- o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3247
+ o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px",
3248
+ o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3244
3249
  for (var r = 0; r < this.rows.length; r++)
3245
- this.Nc(t, r, e);
3250
+ this.Oc(t, r, e);
3246
3251
  }
3247
- }, this.Jc = function () {
3252
+ }, this.Kc = function () {
3248
3253
  for (var e = 0; e < this.cells.length; e++)
3249
3254
  for (var t = 0; t < this.cells[e].length; t++)
3250
3255
  this.cells[e][t].onclick = null;
3251
3256
  this.nav.cells.innerHTML = "";
3252
- }, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
3257
+ }, this.pa = function () { return 2 === a.api; }, this.Oc = function (t, i, o) {
3253
3258
  var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null;
3254
3259
  d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l;
3255
3260
  var c = !a.isWeekend(s), u = {};
@@ -3277,16 +3282,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3277
3282
  v.style.height = r.getHeight() - this.cellHeaderHeight + "px", v.style.overflow = "hidden", v.innerHTML = h.html, m.appendChild(v);
3278
3283
  }
3279
3284
  this.cells[t][i] = f, o.appendChild(f);
3280
- }, this.getWeekStart = function () { return n.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) {
3285
+ }, this.getWeekStart = function () {
3286
+ if ("Auto" === a.weekStarts) {
3287
+ var e = n.locale();
3288
+ return e ? e.weekStarts : 0;
3289
+ }
3290
+ return a.weekStarts || 0;
3291
+ }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) {
3281
3292
  for (var t = this.headerHeight, i = 0; i < e; i++)
3282
3293
  t += this.rows[i].getHeight();
3283
3294
  return t;
3284
- }, 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.pa = 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) {
3295
+ }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.qa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3285
3296
  var i = e.event;
3286
3297
  if (i && i.client.clickEnabled())
3287
- if (a.oa()) {
3298
+ if (a.pa()) {
3288
3299
  var n = {};
3289
- 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.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3300
+ if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.ra.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
3290
3301
  return;
3291
3302
  switch (a.eventClickHandling) {
3292
3303
  case "CallBack":
@@ -3296,7 +3307,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3296
3307
  var o = i.client.contextMenu();
3297
3308
  o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
3298
3309
  }
3299
- "function" == typeof a.onEventClicked && a.qa.apply(function () { a.onEventClicked(n); });
3310
+ "function" == typeof a.onEventClicked && a.ra.apply(function () { a.onEventClicked(n); });
3300
3311
  }
3301
3312
  else
3302
3313
  switch (a.eventClickHandling) {
@@ -3305,7 +3316,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3305
3316
  break;
3306
3317
  case "JavaScript": a.onEventClick(i);
3307
3318
  }
3308
- }, this.Mc = function () { var e = this; return a.ra(e.event), !1; }, this.ra = function (e) {
3319
+ }, this.Nc = function () { var e = this; return a.sa(e.event), !1; }, this.sa = function (e) {
3309
3320
  if (this.event = e, !e.client.rightClickEnabled())
3310
3321
  return !1;
3311
3322
  var t = {};
@@ -3317,10 +3328,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3317
3328
  }
3318
3329
  return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
3319
3330
  }
3320
- }, this.sa = function (e) {
3321
- if (a.oa()) {
3331
+ }, this.ta = function (e) {
3332
+ if (a.pa()) {
3322
3333
  var t = {};
3323
- if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.qa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3334
+ if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.ra.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
3324
3335
  return;
3325
3336
  switch (a.eventDeleteHandling) {
3326
3337
  case "CallBack":
@@ -3331,7 +3342,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3331
3342
  break;
3332
3343
  case "Update": a.events.remove(e);
3333
3344
  }
3334
- "function" == typeof a.onEventDeleted && a.qa.apply(function () { a.onEventDeleted(t); });
3345
+ "function" == typeof a.onEventDeleted && a.ra.apply(function () { a.onEventDeleted(t); });
3335
3346
  }
3336
3347
  else
3337
3348
  switch (a.eventDeleteHandling) {
@@ -3356,9 +3367,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3356
3367
  var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
3357
3368
  c = c.addDays(-n);
3358
3369
  var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
3359
- if (a.oa()) {
3370
+ if (a.pa()) {
3360
3371
  var p = {};
3361
- 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.qa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3372
+ if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.ra.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
3362
3373
  return;
3363
3374
  switch (a.eventMoveHandling) {
3364
3375
  case "CallBack":
@@ -3366,7 +3377,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3366
3377
  break;
3367
3378
  case "Update": e.start(f), e.end(m), a.events.update(e);
3368
3379
  }
3369
- "function" == typeof a.onEventMoved && a.qa.apply(function () { a.onEventMoved(p); });
3380
+ "function" == typeof a.onEventMoved && a.ra.apply(function () { a.onEventMoved(p); });
3370
3381
  }
3371
3382
  else
3372
3383
  switch (a.eventMoveHandling) {
@@ -3386,9 +3397,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3386
3397
  var n = e.start().getTimePart(), o = e.end().getDatePart();
3387
3398
  o.getTime() !== e.end().getTime() && (o = o.addDays(1));
3388
3399
  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);
3389
- if (a.oa()) {
3400
+ if (a.pa()) {
3390
3401
  var u = {};
3391
- 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.qa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3402
+ if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.ra.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
3392
3403
  return;
3393
3404
  switch (a.eventResizeHandling) {
3394
3405
  case "CallBack":
@@ -3396,7 +3407,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3396
3407
  break;
3397
3408
  case "Update": e.start(d), e.end(c), a.events.update(e);
3398
3409
  }
3399
- "function" == typeof a.onEventResized && a.qa.apply(function () { a.onEventResized(u); });
3410
+ "function" == typeof a.onEventResized && a.ra.apply(function () { a.onEventResized(u); });
3400
3411
  }
3401
3412
  else
3402
3413
  switch (a.eventResizeHandling) {
@@ -3406,14 +3417,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3406
3417
  case "JavaScript": a.onEventResize(e, d, c);
3407
3418
  }
3408
3419
  }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) {
3409
- if (this.oa()) {
3420
+ if (this.pa()) {
3410
3421
  var i = {};
3411
- if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.qa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3422
+ if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.ra.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
3412
3423
  return;
3413
3424
  switch (a.timeRangeSelectedHandling) {
3414
3425
  case "CallBack": a.timeRangeSelectedCallBack(e, t);
3415
3426
  }
3416
- "function" == typeof a.onTimeRangeSelected && a.qa.apply(function () { a.onTimeRangeSelected(i); });
3427
+ "function" == typeof a.onTimeRangeSelected && a.ra.apply(function () { a.onTimeRangeSelected(i); });
3417
3428
  }
3418
3429
  else
3419
3430
  switch (a.timeRangeSelectedHandling) {
@@ -3422,9 +3433,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3422
3433
  break;
3423
3434
  case "JavaScript": a.onTimeRangeSelected(e, t);
3424
3435
  }
3425
- }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { a.qa.scope && a.qa.scope["$apply"](); }, this.qa.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; };
3436
+ }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { a.ra.scope && a.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
3426
3437
  var n = this._;
3427
- 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.Ya = 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.eb = function () {
3438
+ this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.N || (e.N = !0, e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.N; }, this.Za = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.fb = function () {
3428
3439
  if (this.id && this.id.tagName)
3429
3440
  this.nav.top = this.id;
3430
3441
  else {
@@ -3433,7 +3444,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3433
3444
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3434
3445
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
3435
3446
  }
3436
- }, this.kb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ia = 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._a, this.internal.xssTextHtml = a.Ia, this.init = function () { return this.eb(), this.loadFromServer() ? void this.kb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this._a(i);
3447
+ }, this.lb = function () { this.Jc(), this.Fa(), this.Lc(), this.Za(), this.R("Init"); }, this.Ja = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.ab, this.internal.xssTextHtml = a.Ja, this.init = function () { return this.fb(), this.loadFromServer() ? void this.lb() : (this.Jc(), this.da(), this.Fa(), this.Lc(), this.s(), this.ja(), this.Za(), this.fireAfterRenderDetached(null, !1), this.Aa = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.ab(i);
3437
3448
  }, e.gMouseUp = function (t) {
3438
3449
  if (e.movingEvent) {
3439
3450
  var i = e.movingEvent;
@@ -3488,7 +3499,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3488
3499
  e && e.directive("daypilotMonth", ["$parse", function (e) {
3489
3500
  return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
3490
3501
  var n = new DayPilot.Month(i[0]);
3491
- n.qa.scope = t, n.init();
3502
+ n.ra.scope = t, n.init();
3492
3503
  var o = a["id"];
3493
3504
  o && (t[o] = n);
3494
3505
  var r = a["publishAs"];
@@ -3512,14 +3523,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3512
3523
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3513
3524
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3514
3525
  DayPilot.Navigator = function (e, t) {
3515
- this.v = "2024.3.536-lite";
3526
+ this.v = "2024.3.543-lite";
3516
3527
  var i = this;
3517
- 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.fb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "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.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) {
3528
+ this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Qc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Qc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.pa = function () { return 2 === i.api; }, this.Kc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Lc = function (e, t) {
3518
3529
  var a = {};
3519
3530
  a.cells = [], a.days = [], a.weeks = [];
3520
3531
  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;
3521
3532
  a.rowCount = h;
3522
- var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Pc();
3533
+ var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Qc();
3523
3534
  a.width = m;
3524
3535
  var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
3525
3536
  a.height = p;
@@ -3533,50 +3544,50 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3533
3544
  }
3534
3545
  v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, this.root.appendChild(v);
3535
3546
  var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
3536
- b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Sc), v.appendChild(b), this.tl = b;
3547
+ b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Tc), v.appendChild(b), this.tl = b;
3537
3548
  var D = document.createElement("div");
3538
- D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Pc() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3549
+ D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Qc() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3539
3550
  var x = document.createElement("div");
3540
- x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Pc() + "px", x.style.right = 6 * o.cellWidth() + this.Pc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.Tc), v.appendChild(x), this.tr = x;
3541
- var w = this.Pc();
3551
+ x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Qc() + "px", x.style.right = 6 * o.cellWidth() + this.Qc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.Uc), v.appendChild(x), this.tr = x;
3552
+ var w = this.Qc();
3542
3553
  if (this.showWeekNumbers)
3543
3554
  for (var C = 0; C < h; C++) {
3544
- var P = d.addDays(7 * C), _ = null;
3555
+ var P = d.addDays(7 * C), k = null;
3545
3556
  switch (this.weekNumberAlgorithm) {
3546
3557
  case "Auto":
3547
- _ = 1 === o.weekStarts() ? P.weekNumberISO() : P.weekNumber();
3558
+ k = 1 === o.weekStarts() ? P.weekNumberISO() : P.weekNumber();
3548
3559
  break;
3549
3560
  case "US":
3550
- _ = P.weekNumber();
3561
+ k = P.weekNumber();
3551
3562
  break;
3552
3563
  case "ISO8601":
3553
- _ = P.weekNumberISO();
3564
+ k = P.weekNumberISO();
3554
3565
  break;
3555
3566
  default: throw "Unknown weekNumberAlgorithm value.";
3556
3567
  }
3557
- var k = document.createElement("div");
3558
- k.style.position = "absolute", k.style.left = "0px", k.style.right = "0px", k.style.top = C * this.cellHeight + g + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.cellHeight + "px", k.style.lineHeight = this.cellHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_weeknumber"), k.innerHTML = "<span>" + _ + "</span>", v.appendChild(k), a.weeks.push(k);
3568
+ var _ = document.createElement("div");
3569
+ _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3559
3570
  }
3560
3571
  for (var S = 0; S < 7; S++) {
3561
3572
  a.cells[S] = [];
3562
- var k = document.createElement("div");
3563
- k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_dayheader"), k.innerHTML = "<span>" + this.Uc(S) + "</span>", v.appendChild(k), a.days.push(k);
3573
+ var _ = document.createElement("div");
3574
+ _.style.position = "absolute", _.style.left = S * o.cellWidth() + w + "px", _.style.right = S * o.cellWidth() + w + "px", _.style.top = this.titleHeight + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.Vc(S) + "</span>", v.appendChild(_), a.days.push(_);
3564
3575
  for (var C = 0; C < h; C++) {
3565
- var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3566
- if ("month" === this.Wc())
3576
+ var P = d.addDays(7 * C + S), M = this.Wc(P) && "none" !== this.Xc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3577
+ if ("month" === this.Xc())
3567
3578
  M = M && T;
3568
- else if ("day" === this.Wc())
3579
+ else if ("day" === this.Xc())
3569
3580
  M = M && (T || r && A || s && H);
3570
- else if ("week" === this.Wc()) {
3581
+ else if ("week" === this.Xc()) {
3571
3582
  var E = P.firstDayOfMonth() === n;
3572
3583
  M = M && (E || r && A || s && H);
3573
3584
  }
3574
3585
  var N = document.createElement("div");
3575
3586
  a.cells[S][C] = N;
3576
- var I = i.Xc(S, C), z = I.x, O = I.y;
3577
- N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3578
- var R = document.createElement("div");
3579
- R.style.position = "absolute", R.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Qc(R, "cell_box"), R.style.left = "0px", R.style.top = "0px", R.style.right = "0px", R.style.bottom = "0px", N.appendChild(R);
3587
+ var I = i.Yc(S, C), R = I.x, O = I.y;
3588
+ N.day = P, N.x = S, N.y = C, N.left = R, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Rc(N, "cell"), P.getTime() === f.getTime() && T && this.Rc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Rc(N, "weekend"), N.style.position = "absolute", N.style.left = R + "px", N.style.right = R + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3589
+ var z = document.createElement("div");
3590
+ z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Rc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
3580
3591
  var U = null;
3581
3592
  if (this.cells && this.cells[P.toStringSortable()] && (U = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3582
3593
  var B = {};
@@ -3584,24 +3595,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3584
3595
  }
3585
3596
  if (U && DayPilot.Util.addClass(N, U.cssClass || U.css), T || r && A || s && H) {
3586
3597
  var L = document.createElement("div");
3587
- 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.Qc(L, "cell_text"), N.isClickable = !0, U && U.html && (L.innerHTML = U.html), N.appendChild(L);
3598
+ L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Rc(L, "cell_text"), N.isClickable = !0, U && U.html && (L.innerHTML = U.html), N.appendChild(L);
3588
3599
  }
3589
- N.setAttribute("unselectable", "on"), N.onclick = this.Yc, v.appendChild(N), M && (i.Zc(v, S, C), this.selected.push(N));
3600
+ N.setAttribute("unselectable", "on"), N.onclick = this.Zc, v.appendChild(N), M && (i.$c(v, S, C), this.selected.push(N));
3590
3601
  }
3591
3602
  }
3592
3603
  var j = document.createElement("div");
3593
- j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.Pc() + "px", j.style.height = "1px", j.style.fontSize = "1px", j.style.lineHeight = "1px", j.className = this.J("_line"), v.appendChild(j), this.months.push(a);
3594
- }, this.Xc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Pc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.Zc = function (e, t, a) { var n = e.month.cells[t][a]; i.Qc(n, "select"); }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this.Pc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this._c = function () {
3604
+ j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.Qc() + "px", j.style.height = "1px", j.style.fontSize = "1px", j.style.lineHeight = "1px", j.className = this.J("_line"), v.appendChild(j), this.months.push(a);
3605
+ }, this.Yc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Qc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this._c = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.Qc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.ad = function () {
3595
3606
  if (this.items)
3596
3607
  for (var e = 0; e < this.showMonths; e++)
3597
3608
  for (var t = 0; t < 7; t++)
3598
3609
  for (var i = 0; i < 6; i++) {
3599
3610
  var a = this.months[e].cells[t][i];
3600
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Qc(a, "busy"), this.Rc(a, "free")) : (this.Rc(a, "busy"), this.Qc(a, "free")));
3611
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.Rc(a, "busy"), this.Sc(a, "free")) : (this.Sc(a, "busy"), this.Rc(a, "free")));
3601
3612
  }
3602
- }, this.ad = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Wc = function () { return (this.selectMode || "").toLowerCase(); }, this.bd = function () {
3613
+ }, this.bd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Xc = function () { return (this.selectMode || "").toLowerCase(); }, this.cd = function () {
3603
3614
  var e = this.selectionDay || this.selectionStart;
3604
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Wc()) {
3615
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Xc()) {
3605
3616
  case "day":
3606
3617
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3607
3618
  break;
@@ -3616,10 +3627,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3616
3627
  break;
3617
3628
  default: throw "Unknown selectMode value.";
3618
3629
  }
3619
- }, this.cd = null, this.select = function (e, t, a) {
3630
+ }, this.dd = null, this.select = function (e, t, a) {
3620
3631
  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;
3621
- if (!this.za)
3622
- return void (this.cd = { "date1": r, "date2": s, "options": l });
3632
+ if (!this.Aa)
3633
+ return void (this.dd = { "date1": r, "date2": s, "options": l });
3623
3634
  var d = !0, c = !0;
3624
3635
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3625
3636
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3627,21 +3638,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3627
3638
  var f = !1;
3628
3639
  if (d) {
3629
3640
  var m = this.startDate;
3630
- (this.selectionStart < this.dd() || this.selectionStart >= this.ed()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3641
+ (this.selectionStart < this.ed() || this.selectionStart >= this.fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3631
3642
  }
3632
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.bd(), this.Jc(), this.Oc(), this.fd(), this._c(), this.ad(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.gd();
3643
+ s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.cd(), this.Kc(), this.Pc(), this.gd(), this.ad(), this.bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.hd();
3633
3644
  }, this.update = function (e) {
3634
- if (i._a(e), this.za) {
3645
+ if (i.ab(e), this.Aa) {
3635
3646
  if (i.N)
3636
3647
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3637
- i.hd();
3648
+ i.jd();
3638
3649
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3639
- i.Za(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
3650
+ i.$a(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
3640
3651
  }
3641
- }, this.Za = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.ca(), this._c(), this.ad(), this.visible ? this.show() : this.hide(); }, this.hd = function () { i.fb = {}; }, this.cb = null, this._a = function (e) {
3652
+ }, this.$a = function () { this.Kc(), this.Pc(), this.cd(), this.gd(), this.da(), this.ad(), this.bd(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.gb = {}; }, this.db = null, this.ab = function (e) {
3642
3653
  if (e) {
3643
3654
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
3644
- this.cb = t;
3655
+ this.db = t;
3645
3656
  for (var a in e)
3646
3657
  if (t[a]) {
3647
3658
  var n = t[a];
@@ -3650,20 +3661,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3650
3661
  else
3651
3662
  i[a] = e[a];
3652
3663
  }
3653
- }, this.db = function () {
3654
- var e = this.cb;
3664
+ }, this.eb = function () {
3665
+ var e = this.db;
3655
3666
  for (var t in e) {
3656
3667
  var i = e[t];
3657
3668
  i.postInit && i.postInit();
3658
3669
  }
3659
- }, 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.jd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.jd = function (e) {
3670
+ }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) {
3660
3671
  if ("function" == typeof i.onAjaxError) {
3661
3672
  var t = {};
3662
3673
  t.request = e, i.onAjaxError(t);
3663
3674
  }
3664
3675
  else
3665
3676
  "function" == typeof i.ajaxError && i.ajaxError(e);
3666
- }, 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.kd = function (e, t) { "refresh" === e && this.gd(); }, this.Uc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Vc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.ld = function (e) {
3677
+ }, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ld = function (e, t) { "refresh" === e && this.hd(); }, this.Vc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Wc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.md = function (e) {
3667
3678
  for (var t = 0; t < i.months.length; t++) {
3668
3679
  var a = i.months[t];
3669
3680
  if (!a)
@@ -3675,8 +3686,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3675
3686
  return t;
3676
3687
  }
3677
3688
  return null;
3678
- }, this.md = function (e) {
3679
- var t = DayPilot.mo3(i.nav.top, e), a = i.ld(t);
3689
+ }, this.nd = function (e) {
3690
+ var t = DayPilot.mo3(i.nav.top, e), a = i.md(t);
3680
3691
  if (null === a)
3681
3692
  return null;
3682
3693
  var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
@@ -3689,14 +3700,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3689
3700
  return { "month": a, "x": r, "y": s, "coords": t };
3690
3701
  }
3691
3702
  return null;
3692
- }, this.nd = function (e) {
3703
+ }, this.od = function (e) {
3693
3704
  if (i.freeHandSelectionEnabled) {
3694
- var t = i.md(e);
3705
+ var t = i.nd(e);
3695
3706
  t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
3696
3707
  }
3697
- }, this.od = function (e) {
3708
+ }, this.pd = function (e) {
3698
3709
  if (a.start) {
3699
- var t = i.md(e);
3710
+ var t = i.nd(e);
3700
3711
  if (a.end)
3701
3712
  a.end = t;
3702
3713
  else if (t) {
@@ -3705,9 +3716,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3705
3716
  }
3706
3717
  a.end && (a.clear(), a.draw());
3707
3718
  }
3708
- }, this.pd = {};
3709
- var a = this.pd;
3710
- a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Xc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () {
3719
+ }, this.qd = {};
3720
+ var a = this.qd;
3721
+ a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Yc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () {
3711
3722
  if (a.cells) {
3712
3723
  for (var e = 0; e < a.cells.length; e++)
3713
3724
  i.nav.preselection.removeChild(a.cells[e]);
@@ -3776,54 +3787,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3776
3787
  return e;
3777
3788
  }, 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(); };
3778
3789
  };
3779
- this.Yc = function (e) {
3790
+ this.Zc = function (e) {
3780
3791
  var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
3781
3792
  if (a.cells[n][o].isClickable) {
3782
3793
  i.clearSelection(), i.selectionDay = r;
3783
3794
  var r = i.selectionDay;
3784
- switch (i.Wc()) {
3795
+ switch (i.Xc()) {
3785
3796
  case "none":
3786
3797
  i.selectionStart = r, i.selectionEnd = r;
3787
3798
  break;
3788
3799
  case "day":
3789
3800
  if (i.autoFocusOnClick) {
3790
3801
  var s = r;
3791
- if (r < i.dd() || r >= i.ed())
3802
+ if (r < i.ed() || r >= i.fd())
3792
3803
  return void i.select(r);
3793
3804
  }
3794
3805
  var l = a.cells[n][o];
3795
- i.Zc(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3806
+ i.$c(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3796
3807
  break;
3797
3808
  case "week":
3798
3809
  if (i.autoFocusOnClick) {
3799
3810
  var s = a.cells[0][o].day, d = a.cells[6][o].day;
3800
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.dd() || d >= i.ed()))
3811
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ed() || d >= i.fd()))
3801
3812
  return void i.select(r);
3802
3813
  }
3803
3814
  for (var c = 0; c < 7; c++)
3804
- i.Zc(t, c, o), i.selected.push(a.cells[c][o]);
3815
+ i.$c(t, c, o), i.selected.push(a.cells[c][o]);
3805
3816
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
3806
3817
  break;
3807
3818
  case "month":
3808
3819
  if (i.autoFocusOnClick) {
3809
3820
  var s = r;
3810
- if (r < i.dd() || r >= i.ed())
3821
+ if (r < i.ed() || r >= i.fd())
3811
3822
  return void i.select(r);
3812
3823
  }
3813
3824
  for (var s = null, d = null, o = 0; o < 6; o++)
3814
3825
  for (var n = 0; n < 7; n++) {
3815
3826
  var l = a.cells[n][o];
3816
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.Zc(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3827
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.$c(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3817
3828
  }
3818
3829
  i.selectionStart = s, i.selectionEnd = d;
3819
3830
  break;
3820
3831
  default: throw "unknown selectMode";
3821
3832
  }
3822
- i.ad(), i.L();
3833
+ i.bd(), i.L();
3823
3834
  }
3824
3835
  }, this.L = function (e) {
3825
3836
  var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
3826
- if (e = e || {}, i.oa()) {
3837
+ if (e = e || {}, i.pa()) {
3827
3838
  var r = {};
3828
3839
  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))
3829
3840
  return;
@@ -3853,9 +3864,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3853
3864
  case "None": break;
3854
3865
  case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
3855
3866
  }
3856
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.qd(i.skipMonths); }, this.Sc = function (e) { i.qd(-i.skipMonths); }, this.qd = function (e) { this.startDate = this.startDate.addMonths(e), this.Jc(), this.Oc(), this.fd(), this.ad(), this.gd(), this._c(); }, this.dd = function () { return i.startDate.firstDayOfMonth(); }, this.ed = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.gd = function () {
3867
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Uc = function (e) { i.rd(i.skipMonths); }, this.Tc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.gd(), this.bd(), this.hd(), this.ad(); }, this.ed = function () { return i.startDate.firstDayOfMonth(); }, this.fd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.hd = function () {
3857
3868
  var e = this.visibleStart(), t = this.visibleEnd();
3858
- if (i.oa()) {
3869
+ if (i.pa()) {
3859
3870
  var a = {};
3860
3871
  if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
3861
3872
  return;
@@ -3883,14 +3894,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3883
3894
  break;
3884
3895
  case "Disabled":
3885
3896
  }
3886
- }, 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._c(); }, this.fd = function () {
3897
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.ad(); }, this.gd = function () {
3887
3898
  for (var e = 0; e < this.showMonths; e++) {
3888
- var t = this.rd(e);
3889
- this.Kc(e, t);
3899
+ var t = this.sd(e);
3900
+ this.Lc(e, t);
3890
3901
  }
3891
- this.root.style.height = this.sd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px",
3892
- this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3893
- }, this.sd = function () {
3902
+ this.root.style.height = this.td() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3903
+ }, this.td = function () {
3894
3904
  if ("Horizontal" === this.orientation) {
3895
3905
  for (var e = 0, t = 0; t < this.months.length; t++) {
3896
3906
  var i = this.months[t];
@@ -3903,12 +3913,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3903
3913
  a += i.height;
3904
3914
  }
3905
3915
  return a;
3906
- }, this.rd = function (e) {
3916
+ }, this.sd = function (e) {
3907
3917
  if (this.internal.showLinks)
3908
3918
  return this.internal.showLinks;
3909
3919
  var t = {};
3910
3920
  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;
3911
- }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i._a, this.internal.initialized = function () { return i.za; }, this._ = {};
3921
+ }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { i.ra.scope && i.ra.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.ab, this.internal.initialized = function () { return i.Aa; }, this._ = {};
3912
3922
  var o = this._;
3913
3923
  o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
3914
3924
  if ("Auto" === i.weekStarts) {
@@ -3917,33 +3927,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3917
3927
  }
3918
3928
  return i.weekStarts;
3919
3929
  }, o.cellWidth = function () {
3920
- if (i.fb.cellWidth)
3921
- return i.fb.cellWidth;
3922
- var e = i.td("_cell_dimensions").width;
3923
- return e || (e = i.cellWidth), i.fb.cellWidth = e, e;
3930
+ if (i.gb.cellWidth)
3931
+ return i.gb.cellWidth;
3932
+ var e = i.ud("_cell_dimensions").width;
3933
+ return e || (e = i.cellWidth), i.gb.cellWidth = e, e;
3924
3934
  }, this.clearSelection = function () {
3925
3935
  for (var e = 0; e < this.selected.length; e++) {
3926
3936
  var t = this.selected[e];
3927
- i.$c(t.parentNode, t.x, t.y);
3937
+ i._c(t.parentNode, t.x, t.y);
3928
3938
  }
3929
3939
  this.selected = [];
3930
- }, this.ud = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () {
3940
+ }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () {
3931
3941
  if (DayPilot.isArray(this.events.list)) {
3932
3942
  this.items = {};
3933
3943
  for (var e = 0; e < this.events.list.length; e++) {
3934
3944
  var t = this.events.list[e];
3935
3945
  if (!t.hidden) {
3936
- var i = this.vd(t);
3946
+ var i = this.wd(t);
3937
3947
  for (var a in i)
3938
3948
  this.items[a] = 1;
3939
3949
  }
3940
3950
  }
3941
3951
  }
3942
- }, this.td = 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.vd = function (e) {
3952
+ }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) {
3943
3953
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3944
3954
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3945
3955
  return a;
3946
- }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.eb = function () {
3956
+ }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.fb = function () {
3947
3957
  if (this.id && this.id.tagName)
3948
3958
  this.nav.top = this.id;
3949
3959
  else {
@@ -3954,26 +3964,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3954
3964
  }
3955
3965
  this.root = this.nav.top;
3956
3966
  }, this.init = function () {
3957
- if (this.eb(), !this.root.dp) {
3958
- this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.wd(), this.Ya();
3959
- if (this.ud() && this.gd(), this.za = !0, this.db(), this.cd) {
3960
- var e = this.cd;
3961
- this.select(e.date1, e.date2, e.options), this.cd = null;
3967
+ if (this.fb(), !this.root.dp) {
3968
+ this.cd(), this.Pc(), this.gd(), this.da(), this.ad(), this.Y(), this.xd(), this.Za();
3969
+ if (this.vd() && this.hd(), this.Aa = !0, this.eb(), this.dd) {
3970
+ var e = this.dd;
3971
+ this.select(e.date1, e.date2, e.options), this.dd = null;
3962
3972
  }
3963
3973
  return this;
3964
3974
  }
3965
- }, this.wd = function () { i.nav.top.onmousedown = this.nd, i.nav.top.onmousemove = this.od; }, this.Ya = function () { DayPilot.re(document, "mouseup", i.xd); }, this.xd = function (e) {
3975
+ }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) {
3966
3976
  if (a.start && a.end) {
3967
3977
  var t = DayPilot.mo3(i.nav.top, e);
3968
3978
  if (t.x === a.start.coords.x && t.y === a.start.coords.y)
3969
3979
  return a.start = null, void a.clear();
3970
3980
  a.clear();
3971
3981
  var o = a.ordered();
3972
- 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.Jc(), i.Oc(), i.fd(), i._c(), i.ad();
3982
+ o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.gd(), i.ad(), i.bd();
3973
3983
  i.L({ "mode": "FreeHand" });
3974
3984
  }
3975
3985
  a.start = null, a.end = null;
3976
- }, 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._a(t);
3986
+ }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.N = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ab(t);
3977
3987
  }, "undefined" != typeof jQuery && !function (e) {
3978
3988
  e.fn.daypilotNavigator = function (e) {
3979
3989
  var t = null, i = this.each(function () {
@@ -3993,7 +4003,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3993
4003
  return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
3994
4004
  return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
3995
4005
  var n = new DayPilot.Navigator(i[0]);
3996
- n.qa.scope = t, n.init();
4006
+ n.ra.scope = t, n.init();
3997
4007
  var o = a["id"];
3998
4008
  o && (t[o] = n);
3999
4009
  var r = a["publishAs"];
@@ -4010,7 +4020,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4010
4020
  for (var i in e)
4011
4021
  n[i] = e[i];
4012
4022
  n.update();
4013
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.ca(), n._c(); }, !0);
4023
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.ad(); }, !0);
4014
4024
  };
4015
4025
  } };
4016
4026
  }]);