@daypilot/daypilot-lite-angular 4.7.0 → 4.8.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.
@@ -132,7 +132,7 @@ DayPilot Lite
132
132
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
133
133
  https://www.daypilot.org/
134
134
  Licensed under Apache Software License 2.0
135
- Version: 2025.4.743-lite
135
+ Version: 2025.4.750-lite
136
136
  */
137
137
  "use strict";
138
138
  var DayPilot = { Global: {} };
@@ -634,7 +634,7 @@ var DayPilot = { Global: {} };
634
634
  if (this instanceof t.Calendar && !this.P && (r = !0, this.P = !0), !r)
635
635
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
636
636
  var o = this;
637
- this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", 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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, 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.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", 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.Q = !1, this.R = {};
637
+ this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", 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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, 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.rtl = !1, this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", 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.Q = !1, this.R = {};
638
638
  var s = this.R;
639
639
  this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.S(); }, this.S = function () { DayPilot.de(o.elements.selection), o.elements.selection = [], o.nav.activeSelection = null; }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); __doPostBack(o.uniqueID, i); }, this.V = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { o.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, i, this.X, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = o; e.Q || (e.Q = !0, clearInterval(e.Y), e.Z(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e._(), e.aa(), 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.Q; }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.W = function (e) { o.X(e.responseText); }, this.U = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = o.days, e.startDate = o.startDate, e.heightSpec = o.heightSpec, e.businessBeginsHour = o.businessBeginsHour, e.businessEndsHour = o.businessEndsHour, e.hashes = o.hashes, e.timeFormat = o.timeFormat, e.viewType = o.viewType, e.locale = o.locale, e; }, this.ca = function (e) { for (var t = e.parentNode; t && "TD" !== t.tagName;)
640
640
  t = t.parentNode; var n = o.eventBorderRadius; "number" == typeof n && (n += "px"); var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = o.L("_shadow"); var i = document.createElement("div"); return i.className = o.L("_shadow_inner"), n && (i.style.borderRadius = n, a.style.borderRadius = n), a.appendChild(i), t.firstChild.appendChild(a), a; }, this.R.locale = function () { var e = DayPilot.Locale.find(o.locale); return e ? e : DayPilot.Locale.US; }, this.R.timeFormat = function () { return "Auto" !== o.timeFormat ? o.timeFormat : this.locale().timeFormat; }, this.R.da = function () { return "Disabled" !== o.xssProtection; }, this.R.ea = function () { if ("Auto" === o.weekStarts) {
@@ -794,17 +794,18 @@ var DayPilot = { Global: {} };
794
794
  } }, this.Ca = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== o.timeRangeSelectedHandling) {
795
795
  var t = e.which;
796
796
  if (1 === t || 0 === t) {
797
- DayPilot.Global.selecting = { calendar: o, start: o.coords };
798
- var n = DayPilot.Global.selecting;
799
- return n.start.time = o.Da(o.coords.x, o.coords.y), n.start.columnIndex = o.Ea(o.coords.x), n.start.column = o.Ba[n.start.columnIndex], o.Fa(), o.Ga(), !1;
797
+ var n = o.nav.scrollable;
798
+ o.coords = DayPilot.mo3(n, e), DayPilot.Global.selecting = { calendar: o, start: o.coords };
799
+ var a = DayPilot.Global.selecting;
800
+ return a.start.time = o.Da(o.coords.x, o.coords.y), a.start.columnIndex = o.Ea(o.coords.x), a.start.column = o.Ba[a.start.columnIndex], o.Fa(), o.Ga(), !1;
800
801
  }
801
802
  } }, this.Ga = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, a = t.start, i = o.getPixels(e.startTime, a), r = o.getPixels(e.endTime, a), s = i.boxTop, l = r.boxBottom; o.snapToGrid || (s = i.top, l = r.top); var d = l - s, c = o.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (o.nav.activeSelection)
802
- return o.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = o.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), o.nav.events.rows[0].cells[n].selection.appendChild(e), o.elements.selection.push(e), o.nav.activeSelection = e, e; }(); u.className = o.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px", o.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha && (e.end.time = o.Da(e.end.x, e.end.y)), o.Ia(e); }, this.Ia = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ja(e.end.time, e.start.column.start), n = o.Ka(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ja(e.start.time, e.start.column.start), n = o.Ka(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!o.N)
803
- return null; var e = o.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, o); }, this.Ea = function (e) { if (e -= o.hourWidth, e < 0)
804
- return null; for (var t = 0, n = o.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
803
+ return o.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = o.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), o.nav.events.rows[0].cells[n].selection.appendChild(e), o.elements.selection.push(e), o.nav.activeSelection = e, e; }(); u.className = o.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px", o.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha(e); }, this.Ha = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ia(e.end.time, e.start.column.start), n = o.Ja(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ia(e.start.time, e.start.column.start), n = o.Ja(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!o.N)
804
+ return null; var e = o.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, o); }, this.Ea = function (e) { if (e < 0)
805
+ return 0; o.rtl ? e = o.nav.main.offsetWidth - e : e -= o.hourWidth; for (var t = 0, n = o.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
805
806
  if (t += n[a].offsetWidth, e < t)
806
807
  return a;
807
- } return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ka = function (e, t) { var n = this.Ja(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.La = {}, this.La.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !o.coords)
808
+ } return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ia = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ja = function (e, t) { var n = this.Ia(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ka = {}, this.Ka.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !o.coords)
808
809
  return null; e.x = o.Ea(o.coords.x); var t = 0, n = Math.floor((o.coords.y - t) / o.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, n) { if (!e)
809
810
  throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
810
811
  n = JSON.parse(i.responseText);
@@ -816,11 +817,11 @@ var DayPilot = { Global: {} };
816
817
  var s = {};
817
818
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
818
819
  return;
819
- o.columns.list = n, o.Ma && o.update();
820
- } }; o.columnsLoadMethod && "POST" === o.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.ga = function () { var e; e = "Resources" !== o.viewType ? this.Na() : o.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
821
- var n = this.Oa(e[t]);
820
+ o.columns.list = n, o.La && o.update();
821
+ } }; o.columnsLoadMethod && "POST" === o.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.ga = function () { var e; e = "Resources" !== o.viewType ? this.Ma() : o.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
822
+ var n = this.Na(e[t]);
822
823
  this.Ba.push(n);
823
- } }, this.Oa = function (e) { var t = {}; if (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(o.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
824
+ } }, this.Na = function (e) { var t = {}; if (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(o.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
824
825
  var n = t.start.getDatePart();
825
826
  t.start = n.addHours(this.businessBeginsHour);
826
827
  } return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
@@ -843,7 +844,7 @@ var DayPilot = { Global: {} };
843
844
  var r = this[i];
844
845
  if (!(n < r.part.top || e > r.part.top + r.part.height - 1))
845
846
  return !1;
846
- } return !0; }, a.push(e), this.lines.push(a), this.lines.length - 1; }, t; }, this.Na = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
847
+ } return !0; }, a.push(e), this.lines.push(a), this.lines.length - 1; }, t; }, this.Ma = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
847
848
  case "Day":
848
849
  n = 1;
849
850
  break;
@@ -869,16 +870,16 @@ var DayPilot = { Global: {} };
869
870
  } var n = this.Ba.length - 1; return this.Ba[n].start.addDays(1); }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Z = function () { if (this.elements.events)
870
871
  for (var e = 0; e < this.elements.events.length; e++) {
871
872
  var t = this.elements.events[e];
872
- o.Pa(t);
873
- } this.elements.events = []; }, this.Pa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof o.onBeforeEventDomRemove && o.onBeforeEventDomRemove(t), t && "function" == typeof o.onBeforeEventDomAdd) {
874
- var a = t && t.Qa;
873
+ o.Oa(t);
874
+ } this.elements.events = []; }, this.Oa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof o.onBeforeEventDomRemove && o.onBeforeEventDomRemove(t), t && "function" == typeof o.onBeforeEventDomAdd) {
875
+ var a = t && t.Pa;
875
876
  if (a) {
876
- o.Sa.Ra && n(t.element) && (o.Sa.Ta = !0, o.Sa.Ua(a), o.Sa.Ta = !1);
877
+ o.Ra.Qa && n(t.element) && (o.Ra.Sa = !0, o.Ra.Ta(a), o.Ra.Sa = !1);
877
878
  }
878
879
  } }(); var t = e.event; if (t && (t.calendar = null), e.onclick = null, e.onclickSave = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.tagName && "IMG" === e.firstChild.firstChild.tagName.toUpperCase()) {
879
880
  var a = e.firstChild.firstChild;
880
881
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
881
- } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Va = function (e) { var a = e.cache || e.data, i = this.nav.events, r = a.borderRadius || o.eventBorderRadius; "number" == typeof r && (r += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), o.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.va, DayPilot.re(s, "contextmenu", this.xa), s.onmouseout = function () { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var a = 5; if ("undefined" != typeof t) {
882
+ } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Ua = function (e) { var a = e.cache || e.data, i = this.nav.events, r = a.borderRadius || o.eventBorderRadius; "number" == typeof r && (r += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(s, a.cssClass), o.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.va, DayPilot.re(s, "contextmenu", this.xa), s.onmouseout = function () { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var a = 5; if ("undefined" != typeof t) {
882
883
  var i = DayPilot.mo3(s, n);
883
884
  if (i && !t.resizing && !t.moving) {
884
885
  s.deleteIcon && (s.deleteIcon.style.display = "");
@@ -909,11 +910,11 @@ var DayPilot = { Global: {} };
909
910
  } if (function () { var t = {}; if (t.control = o, t.e = e, t.element = null, s.domArgs = t, "function" == typeof o.onBeforeEventDomAdd && o.onBeforeEventDomAdd(t), t.element) {
910
911
  var a = l;
911
912
  if (a) {
912
- t.Qa = a;
913
+ t.Pa = a;
913
914
  if (n(t.element)) {
914
- if (!o.Sa.Ra)
915
+ if (!o.Ra.Qa)
915
916
  throw new DayPilot.Exception("Can't reach Vue");
916
- o.Sa.Ta = !0, o.Sa.Wa(t.element, a), o.Sa.Ta = !1;
917
+ o.Ra.Sa = !0, o.Ra.Va(t.element, a), o.Ra.Sa = !1;
917
918
  }
918
919
  else
919
920
  a.appendChild(t.element);
@@ -931,17 +932,17 @@ var DayPilot = { Global: {} };
931
932
  var s = r[o];
932
933
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * i;
933
934
  var l = i === a.lines.length - 1;
934
- l || (s.part.width = 1.5 * s.part.width), this.Va(s);
935
+ l || (s.part.width = 1.5 * s.part.width), this.Ua(s);
935
936
  }
936
- } }, this.Xa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_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.Ya() + "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.Za(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.$a(); 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 = o._a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ab(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.$a = 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 n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this.ab(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.bb()), i.appendChild(this.cb()), e.appendChild(t), this.nav.zoom = e, e; }, this.bb = 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.cb = function () { var e = document.createElement("table"); e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e; for (var t = this.Ba, n = t.length, a = e.insertRow(-1), i = 0; i < n; i++) {
937
+ } }, this.Wa = function () { var e = this.nav.top; e.innerHTML = "", DayPilot.Util.addClass(e, this.L("_main")), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.position = "relative", e.style.width = this.width ? this.width : "100%", this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), this.rtl && (e.style.direction = "rtl"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Xa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var t = this.Ya(); this.nav.top.appendChild(t), this.nav.scroll.style.zoom = 1; var n = this.Za(); this.nav.scrollable = n.firstChild, this.nav.scroll.appendChild(n), e.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", e.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 = o.$a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", e.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this._a(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Za = 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 n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this._a(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.ab()), i.appendChild(this.bb()), e.appendChild(t), this.nav.zoom = e, e; }, this.ab = 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.bb = function () { var e = document.createElement("table"); e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e; for (var t = this.Ba, n = t.length, a = e.insertRow(-1), i = 0; i < n; i++) {
937
938
  var r = a.insertCell(-1);
938
939
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", o.rtl || (r.style.textAlign = "left");
939
940
  var s = document.createElement("div");
940
941
  s.style.marginRight = o.columnMarginRight + "px", s.style.marginLeft = o.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
941
942
  var l = document.createElement("div");
942
943
  r.selection = l, r.appendChild(s), r.appendChild(l);
943
- } return e; }, this.ab = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = o.oa(), n = 0; n < t; n++)
944
- this.db(e, n); return e; }, this.db = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Ya = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
944
+ } return e; }, this._a = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = o.oa(), n = 0; n < t; n++)
945
+ this.cb(e, n); return e; }, this.cb = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Xa = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
945
946
  case "Full": return 24 * t * this.cellHeight;
946
947
  case "BusinessHours":
947
948
  var n = this.qa();
@@ -950,24 +951,24 @@ var DayPilot = { Global: {} };
950
951
  var n = this.qa();
951
952
  return n * this.cellHeight * t;
952
953
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
953
- } }, this.eb = function () { var e = o.nav.corner ? o.nav.corner.parentNode : null; if (e) {
954
+ } }, this.db = function () { var e = o.nav.corner ? o.nav.corner.parentNode : null; if (e) {
954
955
  e.innerHTML = "";
955
- var t = this.fb();
956
+ var t = this.eb();
956
957
  e.appendChild(t), o.nav.corner = t;
957
- } }, this.Za = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var n = t.insertRow(-1), a = n.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var i = this.fb(); a.appendChild(i), this.nav.corner = i, a = n.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var r = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), r) {
958
+ } }, this.Ya = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var n = t.insertRow(-1), a = n.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var i = this.eb(); a.appendChild(i), this.nav.corner = i, a = n.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var r = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), r) {
958
959
  a = n.insertCell(-1), a.unselectable = "on";
959
960
  var o = document.createElement("div");
960
961
  o.unselectable = "on", o.style.position = "relative", o.style.width = "16px", o.style.height = this.headerHeight + "px", o.className = this.L("_cornerright");
961
962
  var s = document.createElement("div");
962
963
  s.className = this.L("_cornerright_inner"), o.appendChild(s), a.appendChild(o), this.nav.cornerRight = o;
963
- } return e.appendChild(t), e; }, this.fb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_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.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
964
+ } return e.appendChild(t), e; }, this.eb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_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.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
964
965
  for (var n = e.rows[t], a = 0; a < n.cells.length; a++) {
965
966
  var i = n.cells[a];
966
- o.gb(i);
967
- } this.fasterDispose || DayPilot.pu(e); }, this.gb = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof o.onBeforeCellDomRemove && o.onBeforeCellDomRemove(a), a && "function" == typeof o.onBeforeCellDomAdd) {
968
- var i = a && a.Qa;
967
+ o.fb(i);
968
+ } this.fasterDispose || DayPilot.pu(e); }, this.fb = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof o.onBeforeCellDomRemove && o.onBeforeCellDomRemove(a), a && "function" == typeof o.onBeforeCellDomAdd) {
969
+ var i = a && a.Pa;
969
970
  if (i) {
970
- o.Sa.Ra && n(a.element) && (o.Sa.Ta = !0, o.Sa.Ua(i), o.Sa.Ta = !1);
971
+ o.Ra.Qa && n(a.element) && (o.Ra.Sa = !0, o.Ra.Ta(i), o.Ra.Sa = !1);
971
972
  }
972
973
  } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), a = this.nav.main, i = 60 * e * 1e3, r = this.ra(), l = o.Ba; for (a && this._(); a && a.rows && a.rows.length > 0;)
973
974
  this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0); this.tableCreated = !0; for (var d = this.nav.events; d && d.rows && d.rows.length > 0;)
@@ -981,7 +982,7 @@ var DayPilot = { Global: {} };
981
982
  } for (var m = 0; m < r; m++) {
982
983
  var g = a.insertRow(-1);
983
984
  g.style.MozUserSelect = "none", g.style.KhtmlUserSelect = "none";
984
- for (var y = function (e) { var t = b.Ba[e], a = g.insertCell(-1); a.start = t.start.addTime(m * i), a.end = a.start.addTime(i), a.resource = t.id, a.onmousedown = b.Ca, a.onmouseup = function () { return !1; }, a.onclick = function () { return !1; }, a.root = b, a.style.padding = "0px", a.style.border = "0px none", a.style.verticalAlign = "top", a.style.height = o.cellHeight + "px", a.style.overflow = "hidden", a.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on", r.style.height = o.cellHeight + "px", r.style.position = "relative", r.className = b.L("_cell"); var s = b.hb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m }; !function () { if ("function" == typeof o.onBeforeCellRender) {
985
+ for (var y = function (e) { var t = b.Ba[e], a = g.insertCell(-1); a.start = t.start.addTime(m * i), a.end = a.start.addTime(i), a.resource = t.id, a.onmousedown = b.Ca, a.onmouseup = function () { return !1; }, a.onclick = function () { return !1; }, a.root = b, a.style.padding = "0px", a.style.border = "0px none", a.style.verticalAlign = "top", a.style.height = o.cellHeight + "px", a.style.overflow = "hidden", a.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on", r.style.height = o.cellHeight + "px", r.style.position = "relative", r.className = b.L("_cell"); var s = b.gb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m }; !function () { if ("function" == typeof o.onBeforeCellRender) {
985
986
  var e = {};
986
987
  e.cell = d, o.onBeforeCellRender(e);
987
988
  } }(), l.business && DayPilot.Util.addClass(r, o.L("_cell_business")), l.cssClass && DayPilot.Util.addClass(r, l.cssClass); var c = document.createElement("div"); c.setAttribute("unselectable", "on"), c.className = b.L("_cell_inner"); var u = DayPilot.Util.escapeTextHtml(l.text, l.html); u && (c.innerHTML = u), l.backColor && (c.style.backgroundColor = l.backColor), l.backImage && (c.style.backgroundImage = "url(" + l.backImage + ")"), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.fontColor && (c.style.color = l.fontColor), r.appendChild(c), function () { if ("function" == typeof o.onBeforeCellDomAdd || "function" == typeof o.onBeforeCellDomRemove) {
@@ -989,11 +990,11 @@ var DayPilot = { Global: {} };
989
990
  if (e.control = o, e.cell = d, e.element = null, a.domArgs = e, "function" == typeof o.onBeforeCellDomAdd && o.onBeforeCellDomAdd(e), e.element) {
990
991
  var t = c;
991
992
  if (t) {
992
- e.Qa = t;
993
+ e.Pa = t;
993
994
  if (n(e.element)) {
994
- if (!o.Sa.Ra)
995
+ if (!o.Ra.Qa)
995
996
  throw new DayPilot.Exception("Can't reach Vue");
996
- o.Sa.Ta = !0, o.Sa.Wa(e.element, t), o.Sa.Ta = !1;
997
+ o.Ra.Sa = !0, o.Ra.Va(e.element, t), o.Ra.Sa = !1;
997
998
  }
998
999
  else
999
1000
  t.appendChild(e.element);
@@ -1032,16 +1033,16 @@ var DayPilot = { Global: {} };
1032
1033
  o.snapToGrid && (c = Math.floor((o.coords.y - v - r + i / 2) / i) * i + r), c < r && (c = r);
1033
1034
  var p = o.nav.events, d = o.nav.main.clientHeight + r, m = parseInt(t.movingShadow.style.height);
1034
1035
  c + m > d && (c = d - m), DayPilot.Util.addClass(t.moving, o.L("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1035
- var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - 45) / g);
1036
- y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1036
+ var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - o.hourWidth) / g);
1037
+ o.rtl && (y = o.Ba.length - y - 1), y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1037
1038
  }
1038
1039
  else
1039
- DayPilot.Global.selecting && (o.Fa(), o.Ga()); }, o.nav.scrollable.style.display = ""; }, this.hb = function (e) { 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.aa = function () { var e = this.nav.header; if (e && e.rows)
1040
+ DayPilot.Global.selecting && (o.Fa(), o.Ga()); }, o.nav.scrollable.style.display = ""; }, this.gb = function (e) { 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.aa = function () { var e = this.nav.header; if (e && e.rows)
1040
1041
  for (var t = 0; t < e.rows.length; t++)
1041
1042
  for (var n = e.rows[t], a = 0; a < n.cells.length; a++) {
1042
1043
  var i = n.cells[a];
1043
1044
  i.onclick = null, i.onmousemove = null, i.onmouseout = null;
1044
- } this.fasterDispose || DayPilot.pu(e); }, this.ib = function (e) { function t(t) { var i = a[t], r = e ? n.insertCell(-1) : n.cells[t]; r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.jb; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = o.L("_colheader"), l.style.height = o.headerHeight + "px", o.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = o.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.kb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i); var c = i.verticalAlignment; if (c)
1045
+ } this.fasterDispose || DayPilot.pu(e); }, this.hb = function (e) { function t(t) { var i = a[t], r = e ? n.insertCell(-1) : n.cells[t]; r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.ib; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = o.L("_colheader"), l.style.height = o.headerHeight + "px", o.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = o.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.jb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i); var c = i.verticalAlignment; if (c)
1045
1046
  switch (s.style.display = "flex", c) {
1046
1047
  case "center":
1047
1048
  s.style.alignItems = "center";
@@ -1059,12 +1060,12 @@ var DayPilot = { Global: {} };
1059
1060
  s.style.justifyContent = "flex-start";
1060
1061
  break;
1061
1062
  case "right": s.style.justifyContent = "flex-end";
1062
- } l.firstChild.innerHTML = o._a(i.name, i.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.Ba, i = a.length, r = 0; r < i; r++)
1063
- t(r); }, this.jb = function (e) { if ("Disabled" !== o.headerClickHandling) {
1064
- var t = this.data, n = o.kb(t), a = {};
1063
+ } l.firstChild.innerHTML = o.$a(i.name, i.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.Ba, i = a.length, r = 0; r < i; r++)
1064
+ t(r); }, this.ib = function (e) { if ("Disabled" !== o.headerClickHandling) {
1065
+ var t = this.data, n = o.jb(t), a = {};
1065
1066
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = n, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof o.onHeaderClick && (o.onHeaderClick(a), a.preventDefault.value) || "function" == typeof o.onHeaderClicked && o.onHeaderClicked(a);
1066
- } }, this.kb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.lb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { for (var e = this.nav.header, t = !0; this.headerCreated && e && e.rows && e.rows.length > 0;)
1067
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.ib(t); }, 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 n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.mb = function () { var e = this.nav.scroll; e.root = this, o.nb(), e.onscroll || (e.onscroll = function () { o.ob(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.pb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.qb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1067
+ } }, this.jb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.kb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { for (var e = this.nav.header, t = !0; this.headerCreated && e && e.rows && e.rows.length > 0;)
1068
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.hb(t); }, 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 n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.lb = function () { var e = this.nav.scroll; e.root = this, o.mb(), e.onscroll || (e.onscroll = function () { o.nb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ob = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.pb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1068
1069
  var t = null;
1069
1070
  if (e instanceof DayPilot.Event)
1070
1071
  t = e.data;
@@ -1073,7 +1074,7 @@ var DayPilot = { Global: {} };
1073
1074
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1074
1075
  t = e;
1075
1076
  }
1076
- o.events.list || (o.events.list = []), o.events.list.push(t), o.rb({ "eventsOnly": !0 }), o.wa.notify();
1077
+ o.events.list || (o.events.list = []), o.events.list.push(t), o.qb({ "eventsOnly": !0 }), o.wa.notify();
1077
1078
  }, this.events.find = function (e) { if (!o.events.list)
1078
1079
  return null; if ("function" == typeof e) {
1079
1080
  for (var t = e, n = 0; n < o.events.list.length; n++) {
@@ -1094,7 +1095,7 @@ var DayPilot = { Global: {} };
1094
1095
  var n = DayPilot.indexOf(o.events.list, t.data);
1095
1096
  o.events.list.splice(n, 1, e);
1096
1097
  }
1097
- } o.rb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1098
+ } o.qb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1098
1099
  t = e.data;
1099
1100
  else if ("object" == typeof e) {
1100
1101
  var n = o.events.find(e.id);
@@ -1103,7 +1104,7 @@ var DayPilot = { Global: {} };
1103
1104
  else if ("string" == typeof e || "number" == typeof e) {
1104
1105
  var n = o.events.find(e);
1105
1106
  n && (t = n.data);
1106
- } var a = DayPilot.indexOf(o.events.list, t); o.events.list.splice(a, 1), o.rb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.load = function (e, t, n) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
1107
+ } var a = DayPilot.indexOf(o.events.list, t); o.events.list.splice(a, 1), o.qb({ "eventsOnly": !0 }), o.wa.notify(); }, this.events.load = function (e, t, n) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
1107
1108
  n = JSON.parse(i.responseText);
1108
1109
  }
1109
1110
  catch (e) {
@@ -1113,26 +1114,26 @@ var DayPilot = { Global: {} };
1113
1114
  var s = {};
1114
1115
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1115
1116
  return;
1116
- o.events.list = n, o.Ma && o.rb({ "eventsOnly": !0 });
1117
+ o.events.list = n, o.La && o.qb({ "eventsOnly": !0 });
1117
1118
  } }; if (o.eventsLoadMethod && "POST" === o.eventsLoadMethod.toUpperCase())
1118
1119
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": o.visibleStart().toString(), "end": o.visibleEnd().toString() }, "url": e, "success": i, "error": a });
1119
1120
  else {
1120
1121
  var r = e, s = "start=" + o.visibleStart().toString() + "&end=" + o.visibleEnd().toString();
1121
1122
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": i, "error": a });
1122
- } }, this.sb = function () { if (o.nav.top.className !== o.L("_main")) {
1123
- o.nav.top.className = o.L("_main");
1124
- var e = o.nav.corner;
1125
- e.className = o.L("_corner"), e.firstChild.className = o.L("_corner_inner");
1126
- var t = o.nav.cornerRight;
1127
- t && (t.className = o.L("_cornerright"), t.firstChild.className = o.L("_cornerright_inner"));
1123
+ } }, this.rb = function () { var e = o.L("_main"); if (o.cssClass && (e += " " + o.cssClass), o.rtl && (e += " " + o.L("_direction_rtl")), o.nav.top.className !== e) {
1124
+ o.nav.top.className = e;
1125
+ var t = o.nav.corner;
1126
+ t.className = o.L("_corner"), t.firstChild.className = o.L("_corner_inner");
1127
+ var n = o.nav.cornerRight;
1128
+ n && (n.className = o.L("_cornerright"), n.firstChild.className = o.L("_cornerright_inner"));
1128
1129
  } }, this.update = function (e) { if (o.Q)
1129
- throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); o.tb(e), o.rb(); }, this.rb = function (e) { if (this.Ma) {
1130
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); o.sb(e), o.qb(); }, this.qb = function (e) { if (this.La) {
1130
1131
  e = e || {};
1131
1132
  var t = !e.eventsOnly;
1132
- o.ub(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.eb(), o.pb(), o.sb(), o.nb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1133
- } }, this.vb = null, this.tb = function (e) { if (e) {
1133
+ o.tb(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.db(), o.ob(), o.rb(), o.mb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1134
+ } }, this.ub = null, this.sb = function (e) { if (e) {
1134
1135
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? o.events.list = e.list : o.events.list = e; } }, "columns": { "preInit": function () { o.columns.list = this.data; } } };
1135
- this.vb = t;
1136
+ this.ub = t;
1136
1137
  for (var n in e)
1137
1138
  if (t[n]) {
1138
1139
  var a = t[n];
@@ -1140,21 +1141,21 @@ var DayPilot = { Global: {} };
1140
1141
  }
1141
1142
  else
1142
1143
  o[n] = e[n];
1143
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
1144
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
1144
1145
  var n = e[t];
1145
1146
  n.postInit && n.postInit();
1146
- } }, this.xb = function () { if (this.id && this.id.tagName)
1147
+ } }, this.wb = function () { if (this.id && this.id.tagName)
1147
1148
  this.nav.top = this.id;
1148
1149
  else {
1149
1150
  if ("string" != typeof this.id)
1150
1151
  throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1151
1152
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1152
1153
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1153
- } }, this.yb = {}, this.yb.events = [], this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; for (var i in n)
1154
+ } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; for (var i in n)
1154
1155
  a[i] = n[i]; if (a.start = new DayPilot.Date(n.start), a.end = new DayPilot.Date(n.end), "function" == typeof this.onBeforeEventRender) {
1155
1156
  var r = {};
1156
1157
  r.control = o, r.data = a, this.onBeforeEventRender(r);
1157
- } t[e] = a; }, this.ha = function () { var e = this.events.list; if (o.yb.events = [], e) {
1158
+ } t[e] = a; }, this.ha = function () { var e = this.events.list; if (o.xb.events = [], e) {
1158
1159
  if (!DayPilot.isArray(e))
1159
1160
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1160
1161
  var t = e.length, n = 864e5;
@@ -1174,7 +1175,7 @@ var DayPilot = { Global: {} };
1174
1175
  }
1175
1176
  if ("function" == typeof this.onBeforeEventRender)
1176
1177
  for (var i = 0; i < t; i++)
1177
- this.zb(i);
1178
+ this.yb(i);
1178
1179
  for (var i = 0; i < this.Ba.length; i++) {
1179
1180
  var l = {};
1180
1181
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
@@ -1194,49 +1195,49 @@ var DayPilot = { Global: {} };
1194
1195
  var D = _.boxBottom, S = "Always" === o.useEventBoxes;
1195
1196
  S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
1196
1197
  var M = w.part.top, T = w.part.top + w.part.height;
1197
- M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1198
+ M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.xb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1198
1199
  }
1199
1200
  }
1200
1201
  }
1201
1202
  }
1202
1203
  for (var i = 0; i < this.Ba.length; i++) {
1203
1204
  var d = this.Ba[i];
1204
- d.events.sort(this.Ab);
1205
+ d.events.sort(this.zb);
1205
1206
  for (var v = 0; v < d.events.length; v++) {
1206
1207
  var r = d.events[v];
1207
1208
  d.putIntoBlock(r);
1208
1209
  }
1209
1210
  for (var v = 0; v < d.blocks.length; v++) {
1210
1211
  var A = d.blocks[v];
1211
- A.events.sort(this.Ab);
1212
+ A.events.sort(this.zb);
1212
1213
  for (var E = 0; E < A.events.length; E++) {
1213
1214
  var r = A.events[E];
1214
1215
  A.putIntoLine(r);
1215
1216
  }
1216
1217
  }
1217
1218
  }
1218
- } }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
1219
+ } }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1219
1220
  return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.debug = function (e) { this.debuggingEnabled && (o.debugMessages || (o.debugMessages = []), o.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var n = t.getTime(), a = e.getTime(), i = s.fa(), r = this.cache.pixels[a + "_" + n]; if (r)
1220
- return r; n = t.getTime(); var o = 60 * i * 1e3, l = a - n, d = l % o, c = l - d, u = c + o; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Bb(l), h.boxTop = this.Bb(c), h.boxBottom = this.Bb(u), this.cache.pixels[a + "_" + n] = h, h; }, this.Bb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.ub = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Ya(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.ob = function () { if (o.nav.scroll && o.Cb()) {
1221
+ return r; n = t.getTime(); var o = 60 * i * 1e3, l = a - n, d = l % o, c = l - d, u = c + o; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Ab(l), h.boxTop = this.Ab(c), h.boxBottom = this.Ab(u), this.cache.pixels[a + "_" + n] = h, h; }, this.Ab = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.tb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Xa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.nb = function () { if (o.nav.scroll && o.Bb()) {
1221
1222
  var e = o.nav.scroll.scrollTop, t = s.fa(), n = 60 / t, a = e / (n * o.cellHeight);
1222
- o.Db.scrollHour = a;
1223
- } }, this.nb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Db.scrollHour ? t * o.cellHeight * o.Db.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.ob(); }, this.Eb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.pb(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Fb = function () { this.ub(), this.ga(), this.Xa(), this.ja(), this.ka(), this.pb(), this.mb(), this.qb(), t.register(this), this.Gb(), this.V("Init"); }, this.Db = {}, this.Hb = function () { this.Db.themes = [], this.Db.themes.push(this.theme || this.cssClassPrefix); }, this.Ib = function () { for (var e = this.Db.themes, t = 0; t < e.length; t++) {
1223
+ o.Cb.scrollHour = a;
1224
+ } }, this.mb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Cb.scrollHour ? t * o.cellHeight * o.Cb.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.nb(); }, this.Db = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.ob(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Eb = function () { this.tb(), this.ga(), this.Wa(), this.ja(), this.ka(), this.ob(), this.lb(), this.pb(), t.register(this), this.Fb(), this.V("Init"); }, this.Cb = {}, this.Gb = function () { this.Cb.themes = [], this.Cb.themes.push(this.theme || this.cssClassPrefix); }, this.Hb = function () { for (var e = this.Cb.themes, t = 0; t < e.length; t++) {
1224
1225
  var n = e[t];
1225
1226
  DayPilot.Util.removeClass(this.nav.top, n + "_main");
1226
- } this.Db.themes = []; }, this.Jb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1227
+ } this.Cb.themes = []; }, this.Ib = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1227
1228
  var e = {};
1228
1229
  e.isCallBack = !1, this.onAfterRender(e);
1229
- } }, this.Kb = function () { if ("function" == typeof this.onInit && !this.Lb) {
1230
- this.Lb = !0;
1230
+ } }, this.Jb = function () { if ("function" == typeof this.onInit && !this.Kb) {
1231
+ this.Kb = !0;
1231
1232
  var e = {};
1232
1233
  this.onInit(e);
1233
- } }, this.Cb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Gb = function () { var e = o.Cb; e() || (o.Y = setInterval(function () { e() && (o.mb(), o.pb(), clearInterval(o.Y)); }, 100)); }, this._a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = o.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1234
+ } }, this.Bb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Fb = function () { var e = o.Bb; e() || (o.Y = setInterval(function () { e() && (o.lb(), o.ob(), clearInterval(o.Y)); }, 100)); }, this.$a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = o.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1234
1235
  var i = a.createVNode(e, n);
1235
1236
  a.render(i, t);
1236
- } }, this.Sa.Wa = function (e, t) { var n = o.Sa.Ra; if ("function" == typeof n.render) {
1237
+ } }, this.Ra.Va = function (e, t) { var n = o.Ra.Qa; if ("function" == typeof n.render) {
1237
1238
  var a = e;
1238
1239
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
1239
- } }, this.Sa.Ua = function (e) { var t = o.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.tb, this.internal.xssTextHtml = o._a, this.internal.enableVue = function (e) { o.Sa.Ra = e; }, this.internal.vueRef = function () { return o.Sa.Ra; }, this.internal.vueRendering = function () { return o.Sa.Ta; }, this.init = function () { this.xb(); var e = this.Eb(); return this.Hb(), e ? void this.Fb() : (this.ub(), this.ga(), this.ha(), this.Xa(), this.ja(), this.ka(), this.u(), this.pb(), this.mb(), this.qb(), t.register(this), this.events && (this.ia(), this.na()), this.Jb(), this.Kb(), this.Gb(), this.Ma = !0, this); }, this.Init = this.init, this.tb(i);
1240
+ } }, this.Ra.Ta = function (e) { var t = o.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.sb, this.internal.xssTextHtml = o.$a, this.internal.enableVue = function (e) { o.Ra.Qa = e; }, this.internal.vueRef = function () { return o.Ra.Qa; }, this.internal.vueRendering = function () { return o.Ra.Sa; }, this.init = function () { this.wb(); var e = this.Db(); return this.Gb(), e ? void this.Eb() : (this.tb(), this.ga(), this.ha(), this.Wa(), this.ja(), this.ka(), this.u(), this.ob(), this.lb(), this.pb(), t.register(this), this.events && (this.ia(), this.na()), this.Ib(), this.Jb(), this.Fb(), this.La = !0, this); }, this.Init = this.init, this.sb(i);
1240
1241
  }, DayPilot.CalendarColumn = function (e, t) { var n = this; n.id = e.id, n.name = e.name, n.data = e.data, n.start = new DayPilot.Date(e.start), n.calendar = t, n.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
1241
1242
  var n = new DayPilot.Calendar(this.id);
1242
1243
  this.daypilot = n;
@@ -1247,41 +1248,41 @@ var DayPilot = { Global: {} };
1247
1248
  (0, e(o).assign)(t, i);
1248
1249
  } for (var s in a)
1249
1250
  0 === s.indexOf("on") && !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
1250
- i[t] = e[t]; i.update(), i.Kb(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0); } }; }]); }();
1251
+ i[t] = e[t]; i.update(), i.Jb(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0); } }; }]); }();
1251
1252
  }
1252
1253
  }(DayPilot), function (DayPilot) { "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "${v}"; var t = "navigator_" + (new Date).getTime(), n = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.R.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", this.weekStarts = "Auto", e)
1253
1254
  for (var t in e)
1254
- this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Nb(); this.resetTarget && !e ? this.Ob(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Nb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Cb && (n.Cb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Pb = function (e) { this.date = new DayPilot.Date(e), this.Ob(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Pb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Nb = function () { var e = this.D(); if (!e)
1255
+ this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Mb(); this.resetTarget && !e ? this.Nb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Mb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Bb && (n.Bb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Ob = function (e) { this.date = new DayPilot.Date(e), this.Nb(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Ob(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Mb = function () { var e = this.D(); if (!e)
1255
1256
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
1256
1257
  return null; for (var a = DayPilot.Date.parse(t, n.pattern), i = 0; i < n.patterns.length; i++) {
1257
1258
  if (a)
1258
1259
  return a;
1259
1260
  a = DayPilot.Date.parse(t, n.patterns[i]);
1260
- } return a; }, this.Ob = function (e) { var t = this.D(); if (t) {
1261
+ } return a; }, this.Nb = function (e) { var t = this.D(); if (t) {
1261
1262
  var a = e.toString(n.pattern, n.locale);
1262
1263
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1263
- } }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Cb; } }), this.show = function () { if (!this.Cb) {
1264
+ } }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Bb; } }), this.show = function () { if (!this.Bb) {
1264
1265
  document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
1265
1266
  var e = this.D(), a = new DayPilot.Navigator(t);
1266
- a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Qb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Ob(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1267
+ a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Pb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Nb(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1267
1268
  var i = { x: 0, y: 0, w: 0, h: 0 };
1268
1269
  e && (i = DayPilot.abs(e));
1269
1270
  var r = i.h, o = n.targetAlignment, s = document.createElement("div");
1270
1271
  s.style.position = "absolute", "left" === o && (s.style.left = i.x + "px"), s.style.top = i.y + r + "px", n.zIndex && (s.style.zIndex = n.zIndex);
1271
1272
  var l = document.createElement("div");
1272
1273
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1273
- var d = n.Nb() || n.date;
1274
- if (a.startDate = d, a.Qb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
1274
+ var d = n.Mb() || n.date;
1275
+ if (a.startDate = d, a.Pb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
1275
1276
  var c = i.x + i.w - a.nav.top.offsetWidth;
1276
1277
  s.style.left = c + "px";
1277
1278
  }
1278
- if (this.Cb = !0, this.onShow) {
1279
+ if (this.Bb = !0, this.onShow) {
1279
1280
  var u = {};
1280
1281
  this.onShow(u);
1281
1282
  }
1282
1283
  } }, this.prepare(), this.init(); }); }(DayPilot), function (DayPilot) { if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1283
1284
  var e = function () { }, t = {};
1284
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var a = this, i = null; this.v = "${v}", 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; var r = DayPilot.isArray(n) ? null : n; if (this.Rb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) { r = r || {}; var o = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Rb.submenu = null, null !== t.mouse) {
1285
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var a = this, i = null; this.v = "${v}", 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; var r = DayPilot.isArray(n) ? null : n; if (this.Qb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) { r = r || {}; var o = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Qb.submenu = null, null !== t.mouse) {
1285
1286
  a.cssOnly || (a.cssOnly = !0);
1286
1287
  var s = null;
1287
1288
  if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof a.onShow) {
@@ -1290,15 +1291,15 @@ var DayPilot = { Global: {} };
1290
1291
  return;
1291
1292
  }
1292
1293
  var d = document.createElement("div");
1293
- 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.Sb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1294
+ 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.Rb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1294
1295
  throw "No menu items defined.";
1295
1296
  if (this.showMenuTitle) {
1296
1297
  var c = document.createElement("div");
1297
- c.innerHTML = this.menuTitle, c.className = this.Sb("title"), d.appendChild(c);
1298
+ c.innerHTML = this.menuTitle, c.className = this.Rb("title"), d.appendChild(c);
1298
1299
  }
1299
1300
  for (var u = 0; u < this.items.length; u++) {
1300
1301
  var h = this.items[u], f = document.createElement("div");
1301
- if (DayPilot.Util.addClass(f, this.Sb("item")), h.items && (DayPilot.Util.addClass(f, this.Sb("item_haschildren")), DayPilot.Util.addClass(d, this.Sb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1302
+ if (DayPilot.Util.addClass(f, this.Rb("item")), h.items && (DayPilot.Util.addClass(f, this.Rb("item_haschildren")), DayPilot.Util.addClass(d, this.Rb("withchildren"))), "undefined" != typeof h && !h.hidden) {
1302
1303
  if ("-" === h.text) {
1303
1304
  var v = document.createElement("div");
1304
1305
  v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
@@ -1306,7 +1307,7 @@ var DayPilot = { Global: {} };
1306
1307
  else {
1307
1308
  var p = document.createElement("a");
1308
1309
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1309
- DayPilot.Util.addClass(p, a.Sb("item_disabled"));
1310
+ DayPilot.Util.addClass(p, a.Rb("item_disabled"));
1310
1311
  else {
1311
1312
  if (h.onclick || h.onClick) {
1312
1313
  p.item = h, p.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
@@ -1322,7 +1323,7 @@ var DayPilot = { Global: {} };
1322
1323
  DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
1323
1324
  }
1324
1325
  if (h.items && !h.disabled) {
1325
- var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Tb(e, t); }; };
1326
+ var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Sb(e, t); }; };
1326
1327
  p.ontouchend = y(h, p);
1327
1328
  }
1328
1329
  if (h.onclick)
@@ -1353,13 +1354,13 @@ var DayPilot = { Global: {} };
1353
1354
  }
1354
1355
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
1355
1356
  var b = document.createElement("span");
1356
- if (b.className = a.Sb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1357
+ if (b.className = a.Rb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1357
1358
  var w = document.createElement("img");
1358
1359
  w.src = h.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", p.appendChild(w);
1359
1360
  }
1360
1361
  if (h.icon) {
1361
1362
  var x = document.createElement("span");
1362
- x.className = a.Sb("item_icon");
1363
+ x.className = a.Rb("item_icon");
1363
1364
  var _ = document.createElement("i");
1364
1365
  _.className = h.icon, x.appendChild(_), p.appendChild(x);
1365
1366
  }
@@ -1369,23 +1370,23 @@ var DayPilot = { Global: {} };
1369
1370
  var D = document.createElementNS(C, "use");
1370
1371
  D.setAttribute("href", h.symbol), k.appendChild(D);
1371
1372
  var S = document.createElement("span");
1372
- S.className = a.Sb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
1373
+ S.className = a.Rb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
1373
1374
  }
1374
1375
  var M = function (e, n) { return function () { var i = e, r = t.waitingSubmenu; if (r) {
1375
1376
  if (r.parent === i)
1376
1377
  return;
1377
1378
  clearTimeout(r.timeout), t.waitingSubmenu = null;
1378
- } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Tb(i, n); }, 300)); }; };
1379
+ } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Sb(i, n); }, 300)); }; };
1379
1380
  p.onmouseover = M(h, p), f.appendChild(p);
1380
1381
  }
1381
1382
  d.appendChild(f);
1382
1383
  }
1383
1384
  }
1384
1385
  var T = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1385
- d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Rb.visible = !0, a.Rb.source = n, d.style.display = "";
1386
+ d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Qb.visible = !0, a.Qb.source = n, d.style.display = "";
1386
1387
  var A = d.offsetHeight, E = d.offsetWidth;
1387
1388
  d.style.display = "none";
1388
- var H = document.documentElement.clientHeight, N = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1389
+ var H = document.documentElement.clientHeight, R = window.innerWidth, N = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1389
1390
  if (function () { var e = r.initiator; if (e) {
1390
1391
  var t = e.div, n = e.e, a = e.area, o = a.visibility || a.v || "Visible", s = e.a;
1391
1392
  if ("Visible" !== o && (s = DayPilot.Areas.createArea(t, n, a), t.appendChild(s), i = s), s) {
@@ -1393,43 +1394,43 @@ var DayPilot = { Global: {} };
1393
1394
  r.x = l.x, r.y = l.y + l.h + 2;
1394
1395
  }
1395
1396
  } }(), function () { var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - i > H - A && 0 !== H) {
1396
- s = n - (n - i - (H - A) + R);
1397
+ s = n - (n - i - (H - A) + N);
1397
1398
  }
1398
1399
  else
1399
- s = n; if (a.Rb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > N - E && 0 !== N) {
1400
- l = e - (e - o - (N - E) + R);
1400
+ s = n; if (a.Qb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > R - E && 0 !== R) {
1401
+ l = e - (e - o - (R - E) + N);
1401
1402
  }
1402
1403
  else
1403
- l = e; a.Rb.x = l, d.style.left = l + "px"; }(), r.parentLink) {
1404
- var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), z = P.x + I.offsetWidth, B = P.y - L;
1405
- z + E > N && (z = Math.max(0, P.x - E));
1404
+ l = e; a.Qb.x = l, d.style.left = l + "px"; }(), r.parentLink) {
1405
+ var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), B = P.x + I.offsetWidth, z = P.y - L;
1406
+ B + E > R && (B = Math.max(0, P.x - E));
1406
1407
  var U = document.body.scrollTop + document.documentElement.scrollTop;
1407
- B + A - U > H && (B = Math.max(0, H - A + U)), d.style.left = z + "px", d.style.top = B + "px";
1408
+ z + A - U > H && (z = Math.max(0, H - A + U)), d.style.left = B + "px", d.style.top = z + "px";
1408
1409
  }
1409
- d.style.display = "", this.addShadow(d), this.Rb.div = d, r.submenu || (DayPilot.Menu.active = this);
1410
- } }, this.update = function () { if (a.Rb.visible) {
1411
- var e = a.Rb.source;
1412
- a.hide(), a.show(e, { "x": a.Rb.x, "y": a.Rb.y });
1413
- } }, this.Tb = function (e, t) { var n = e, i = t.source; if ((!a.Rb.submenu || a.Rb.submenu.item !== e) && (a.Rb.submenu && a.Rb.submenu.item !== e && (DayPilot.Util.removeClass(a.Rb.submenu.link.parentNode, a.Sb("item_haschildren_active")), a.Rb.submenu.menu.hide(), a.Rb.submenu = null), e.items)) {
1410
+ d.style.display = "", this.addShadow(d), this.Qb.div = d, r.submenu || (DayPilot.Menu.active = this);
1411
+ } }, this.update = function () { if (a.Qb.visible) {
1412
+ var e = a.Qb.source;
1413
+ a.hide(), a.show(e, { "x": a.Qb.x, "y": a.Qb.y });
1414
+ } }, this.Sb = function (e, t) { var n = e, i = t.source; if ((!a.Qb.submenu || a.Qb.submenu.item !== e) && (a.Qb.submenu && a.Qb.submenu.item !== e && (DayPilot.Util.removeClass(a.Qb.submenu.link.parentNode, a.Rb("item_haschildren_active")), a.Qb.submenu.menu.hide(), a.Qb.submenu = null), e.items)) {
1414
1415
  var r = a.cloneOptions();
1415
- r.items = e.items, a.Rb.submenu = {}, a.Rb.submenu.menu = new DayPilot.Menu(r), a.Rb.submenu.menu.Ub = a, a.Rb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Rb.submenu.item = e, a.Rb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Sb("item_haschildren_active"));
1416
- } }, this.Sb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Rb.submenu && this.Rb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Rb.div && this.Rb.div.parentNode === document.body && document.body.removeChild(this.Rb.div), i && (DayPilot.de(i), i = null), a.Rb.visible = !1, a.Rb.source = null, a.Ub && e.hideParent && a.Ub.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1416
+ r.items = e.items, a.Qb.submenu = {}, a.Qb.submenu.menu = new DayPilot.Menu(r), a.Qb.submenu.menu.Tb = a, a.Qb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Qb.submenu.item = e, a.Qb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Rb("item_haschildren_active"));
1417
+ } }, this.Rb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Qb.submenu && this.Qb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Qb.div && this.Qb.div.parentNode === document.body && document.body.removeChild(this.Qb.div), i && (DayPilot.de(i), i = null), a.Qb.visible = !1, a.Qb.source = null, a.Tb && e.hideParent && a.Tb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1417
1418
  var r = {};
1418
1419
  this.onHide(r);
1419
1420
  } }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function () { }, this.removeShadow = function () { }, r)
1420
1421
  for (var o in r)
1421
- this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.Ma = !1; for (var a in t)
1422
- this[a] = t[a]; this.Vb = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Vb("main"), DayPilot.list(n.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Vb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (n.active && n.active.item === e)
1423
- n.Wb();
1422
+ this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.La = !1; for (var a in t)
1423
+ this[a] = t[a]; this.Ub = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ub("main"), DayPilot.list(n.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Ub("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (n.active && n.active.item === e)
1424
+ n.Vb();
1424
1425
  else if (e.children)
1425
- return void n.Xb(a); if ("function" == typeof e.onClick) {
1426
+ return void n.Wb(a); if ("function" == typeof e.onClick) {
1426
1427
  var i = {};
1427
1428
  i.item = e, i.originalEvent = t, e.onClick(i);
1428
- } }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Xb(a); }, t.appendChild(a), n.elements.items.push(a); }); }, this.Wb = function () { var e = n.Vb("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Yb = function (e) { return !!n.active && n.active.item === e.data; }, this.Xb = function (e) { if (!n.Yb(e)) {
1429
- n.Wb();
1429
+ } }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Wb(a); }, t.appendChild(a), n.elements.items.push(a); }); }, this.Vb = function () { var e = n.Ub("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Xb = function (e) { return !!n.active && n.active.item === e.data; }, this.Wb = function (e) { if (!n.Xb(e)) {
1430
+ n.Vb();
1430
1431
  var t = e.data, a = n.active = {};
1431
1432
  a.item = t, a.div = e;
1432
- var i = n.Vb("item_active");
1433
+ var i = n.Ub("item_active");
1433
1434
  DayPilot.Util.addClass(e, i);
1434
1435
  var r = DayPilot.abs(e);
1435
1436
  if (t.children) {
@@ -1438,11 +1439,11 @@ var DayPilot = { Global: {} };
1438
1439
  "right" === t.align && (o += r.w), a.menu.show(null, { "x": o, "y": r.y + r.h, "align": t.align, "windowMargin": n.windowMargin });
1439
1440
  }
1440
1441
  DayPilot.MenuBar.active = n;
1441
- } }, this.init = function () { return this.u(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Wb(), 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 () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "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 () { }, t.touchPosition = function (e) { if (!e || !e.touches)
1442
+ } }, this.init = function () { return this.u(), this.La = !0, this; }, this.dispose = function () { this.La && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Vb(), 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 () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "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 () { }, t.touchPosition = function (e) { if (!e || !e.touches)
1442
1443
  return null; var t = e.touches[0], n = {}; return n.x = t.pageX, n.y = t.pageY, n; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.mousePosition = function (e) { t.mouse = t.mousePosition(e); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
1443
1444
  var n = DayPilot.Menu.active;
1444
1445
  if (n) {
1445
- var a = n.Rb.source;
1446
+ var a = n.Qb.source;
1446
1447
  a && a.calendar === e.calendar && t.menuClean();
1447
1448
  }
1448
1449
  }
@@ -1454,7 +1455,7 @@ var DayPilot = { Global: {} };
1454
1455
  var o = n.substring(i + 1), s = t[r];
1455
1456
  "object" == typeof s && null !== s || (t[r] = {}, s = t[r]), e(s, o, a);
1456
1457
  } }
1457
- function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.zc = [], this.Ac = null, this.canceling = !1, this.Bc = [], this.f = [], this.Cc = null, e = e || {}; for (var t in e)
1458
+ function t(e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.yc = [], this.zc = null, this.canceling = !1, this.Ac = [], this.f = [], this.Bc = null, e = e || {}; for (var t in e)
1458
1459
  this[t] = e[t]; }
1459
1460
  function n() { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; }
1460
1461
  function a() { this.element = null, this.canFocus = function () { return !1; }, this.apply = function () { }, this.focus = function () { }, this.save = function () { return {}; }; }
@@ -1462,10 +1463,10 @@ var DayPilot = { Global: {} };
1462
1463
  var r = e[a];
1463
1464
  "object" == typeof r ? "[object Array]" === Object.prototype.toString.call(r) ? t[n + a] = r : r && r.toJSON ? t[n + a] = r.toJSON() : i(r, t, n + a + ".") : t[n + a] = r;
1464
1465
  } return t; }
1465
- function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Ic = !1, this.listZIndex = 1e5, this.onSelect = null, this.Jc = null, this.Kc = null, this.Lc = !1, this.Mc = null, this.Nc = null, this.q = [], this.Oc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Jc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Jc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Ic; }, set: function (e) { this.Ic = e, this.Mc && (this.Mc.disabled = e, e && this.Pc()); } }); for (var a in e)
1466
+ function r(e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Hc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Ic = null, this.Jc = null, this.Kc = !1, this.Lc = null, this.Mc = null, this.q = [], this.Nc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Ic = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Ic; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Hc; }, set: function (e) { this.Hc = e, this.Lc && (this.Lc.disabled = e, e && this.Oc()); } }); for (var a in e)
1466
1467
  n[a] || (this[a] = e[a]); for (var i in e)
1467
1468
  n[i] && n[i].post(e[i]); }
1468
- function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Rc = null, this.zc = [], e = e || {}; for (var t in e)
1469
+ function o(e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Qc = null, this.yc = [], e = e || {}; for (var t in e)
1469
1470
  this[t] = e[t]; }
1470
1471
  if (!DayPilot.ModalStatic) {
1471
1472
  DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [], DayPilot.ModalStatic.hide = function () { if (this.list.length > 0) {
@@ -1503,23 +1504,23 @@ var DayPilot = { Global: {} };
1503
1504
  n.sheet.addRule(e, t, i);
1504
1505
  } }, i.print = function () { for (var e = n.sheet.cssRules, t = [], a = 0; a < e.length; a++)
1505
1506
  t.push(e[a].cssText); return t.join("\n"); }, i; }, l = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", d = new s;
1506
- d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.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;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.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;"), d.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==\")"), d.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;"), d.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==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Zb = !1, this.$b = null, this._b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1507
- throw "This modal dialog is already displayed."; if (this.div || this.bc(), this.rb(), this.useIframe) {
1507
+ d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.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(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.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;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.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;"), d.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==\")"), d.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;"), d.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==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.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;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Yb = !1, this.Zb = null, this.$b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1508
+ throw "This modal dialog is already displayed."; if (this.div || this._b(), this.qb(), this.useIframe) {
1508
1509
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1509
1510
  window.setTimeout(t(this, e), 0);
1510
1511
  }
1511
1512
  else
1512
- e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.rb(), this.cc(), this.dc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1513
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.qb(), this.bc(), this.cc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1513
1514
  throw "This modal dialog is already displayed."; if (this.useIframe) {
1514
- this.div || this.bc();
1515
+ this.div || this._b();
1515
1516
  var n = this.loadingHtml;
1516
- n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.ec), this.iframe.src = e, this.rb(), this.cc(), this.dc();
1517
+ n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.dc), this.iframe.src = e, this.qb(), this.bc(), this.cc();
1517
1518
  }
1518
1519
  else
1519
- t.fc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } }); }, this.dc = function () { if ("function" == typeof t.onShow) {
1520
+ t.ec({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } }); }, this.cc = function () { if ("function" == typeof t.onShow) {
1520
1521
  var e = {};
1521
- e.root = t.gc(), e.modal = t, t.onShow(e);
1522
- } }, this.gc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.fc = function (e) { var t = new XMLHttpRequest; if (t) {
1522
+ e.root = t.fc(), e.modal = t, t.onShow(e);
1523
+ } }, this.fc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.ec = function (e) { var t = new XMLHttpRequest; if (t) {
1523
1524
  var n = e.method || "GET", a = e.success || function () { }, i = e.error || function () { }, r = e.data, o = e.url;
1524
1525
  t.open(n, o, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
1525
1526
  if (200 === t.status || 304 === t.status) {
@@ -1532,45 +1533,45 @@ var DayPilot = { Global: {} };
1532
1533
  }
1533
1534
  else
1534
1535
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof r && (r = JSON.stringify(r)), t.send(r));
1535
- } }, this.rb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.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.hc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.ec = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.ic().y; }, n = function () { return t.ic().x; }; if (this.useIframe) {
1536
- for (var a = n() - 40, i = this.width; i < a && this.jc(); i += 10)
1536
+ } }, this.qb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.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.gc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.dc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.hc().y; }, n = function () { return t.hc().x; }; if (this.useIframe) {
1537
+ for (var a = n() - 40, i = this.width; i < a && this.ic(); i += 10)
1537
1538
  this.div.style.width = i + "px", this.div.style.marginLeft = "-" + Math.floor(i / 2) + "px";
1538
- for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.kc(); o += 10)
1539
+ for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.jc(); o += 10)
1539
1540
  this.iframe.style.height = o + "px", this.div.style.height = o + "px";
1540
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.ec);
1541
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.dc);
1541
1542
  }
1542
1543
  else
1543
- this.div.style.height = ""; }, this.jc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
1544
+ this.div.style.height = ""; }, this.ic = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
1544
1545
  var r = a[i].offsetLeft + a[i].offsetWidth;
1545
1546
  n = Math.max(n, r);
1546
- } return n > t.clientWidth; }, this.kc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
1547
+ } return n > t.clientWidth; }, this.jc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
1547
1548
  var r = a[i].offsetTop + a[i].offsetHeight;
1548
1549
  n = Math.max(n, r);
1549
- } return n > t.clientHeight; }, this.ic = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1550
+ } return n > t.clientHeight; }, this.hc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1550
1551
  var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
1551
1552
  return { x: t, y: n };
1552
- } var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.cc = function () { this.Zb || (this.re(window, "resize", this.lc), this.re(window, "scroll", this.nc), this.dragDrop && (this.re(document, "mousemove", this.oc), this.re(document, "mouseup", this.pc)), this.Zb = !0); }, this.qc = function () { this.ue(window, "resize", this.lc), this.ue(window, "scroll", this.nc), this.dragDrop && (this.ue(document, "mousemove", this.oc), this.ue(document, "mouseup", this.pc)), this.Zb = !1; }, this.rc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.sc(), t._b = t.mc(e || window.event), t.$b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.oc = function (e) { if (t._b) {
1553
- var n = t.mc(e), a = n.x - t._b.x, i = n.y - t._b.y;
1554
- t.div.style.marginLeft = "0px", t.div.style.top = t.$b.y + i + "px", t.div.style.left = t.$b.x + a + "px";
1555
- } }, this.pc = function () { t._b && (t.tc(), t.div.style.cursor = null, t._b = null); }, this.sc = function () { if (this.useIframe) {
1553
+ } var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.bc = function () { this.Yb || (this.re(window, "resize", this.kc), this.re(window, "scroll", this.lc), this.dragDrop && (this.re(document, "mousemove", this.nc), this.re(document, "mouseup", this.oc)), this.Yb = !0); }, this.pc = function () { this.ue(window, "resize", this.kc), this.ue(window, "scroll", this.lc), this.dragDrop && (this.ue(document, "mousemove", this.nc), this.ue(document, "mouseup", this.oc)), this.Yb = !1; }, this.qc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.rc(), t.$b = t.mc(e || window.event), t.Zb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.nc = function (e) { if (t.$b) {
1554
+ var n = t.mc(e), a = n.x - t.$b.x, i = n.y - t.$b.y;
1555
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Zb.y + i + "px", t.div.style.left = t.Zb.x + a + "px";
1556
+ } }, this.oc = function () { t.$b && (t.sc(), t.div.style.cursor = null, t.$b = null); }, this.rc = function () { if (this.useIframe) {
1556
1557
  var e = document.createElement("div");
1557
1558
  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;
1558
- } }, this.tc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.lc = function () { t.uc(), t.hc(); }, this.nc = function () { t.uc(); }, this.hc = function () { if (!t.left && t.div) {
1559
+ } }, this.sc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.kc = function () { t.tc(), t.gc(); }, this.lc = function () { t.tc(); }, this.gc = function () { if (!t.left && t.div) {
1559
1560
  var e = t.div.offsetWidth;
1560
1561
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1561
- } }, this.uc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1562
- var e = t.vc.scrollY();
1562
+ } }, this.tc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1563
+ var e = t.uc.scrollY();
1563
1564
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1564
- } }, this.vc = {}, this.vc.container = function () { return t.container || document.body; }, this.vc.scrollY = function () { var e = t.vc.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, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1565
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.bc = function () { var e = t.vc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.rc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.wc || (t.stretch(), t.wc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.gc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1565
+ } }, this.uc = {}, this.uc.container = function () { return t.container || document.body; }, this.uc.scrollY = function () { var e = t.uc.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, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1566
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this._b = function () { var e = t.uc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.qc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.vc || (t.stretch(), t.vc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.fc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1566
1567
  var r = n[i], o = r.name;
1567
1568
  if (o) {
1568
1569
  var s = r.value;
1569
1570
  a[o] = s;
1570
1571
  }
1571
- } t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.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(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.qc(), t.xc(t.div), t.xc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.xc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.yc = function () { if (e)
1572
+ } t.close(a); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.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(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.pc(), t.wc(t.div), t.wc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.wc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.xc = function () { if (e)
1572
1573
  for (var t in e)
1573
- this[t] = e[t]; }, this.yc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || ""; return DayPilot.getPromise(function (t) { n.onClosed = function (e) { t(e); }; var o = new DayPilot.Modal(n), s = document.createElement("div"); s.className = o.theme + "_inner"; var l = document.createElement("div"); l.className = o.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = o.theme + "_input"; var c = document.createElement("input"); c.value = r, c.style.width = "100%", c.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1574
+ this[t] = e[t]; }, this.xc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || ""; return DayPilot.getPromise(function (t) { n.onClosed = function (e) { t(e); }; var o = new DayPilot.Modal(n), s = document.createElement("div"); s.className = o.theme + "_inner"; var l = document.createElement("div"); l.className = o.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = o.theme + "_input"; var c = document.createElement("input"); c.value = r, c.style.width = "100%", c.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1574
1575
  case 13:
1575
1576
  o.close(this.value);
1576
1577
  break;
@@ -1623,22 +1624,22 @@ var DayPilot = { Global: {} };
1623
1624
  var w = d.firstFocusable();
1624
1625
  r.autoFocus && w ? w.focus() : r.div.focus();
1625
1626
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function () { var e = DayPilot.Modal.opener(); if (!e)
1626
- throw "Unable to find the opener DayPilot.Modal instance."; e.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "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, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Cc; }, t.prototype.render = function () { var e = this; this.Cc = document.createElement("div"), this.zc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) { var t = this.theme, n = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
1627
+ throw "Unable to find the opener DayPilot.Modal instance."; e.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "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, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Bc; }, t.prototype.render = function () { var e = this; this.Bc = document.createElement("div"), this.yc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) { var t = this.theme, n = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
1627
1628
  var i = document.createElement("div");
1628
1629
  i.className = t + "_form_item_label", i.innerText = e.text, a.appendChild(i);
1629
- } var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.Dc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1630
+ } var r = this.createInteractive(e); r.onInput = function (e) { if (e = e || {}, n.Cc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1630
1631
  var t = {};
1631
1632
  t.result = n.serialize(), n.onChange(t);
1632
- } }, r.onBlur = function () { n.canceling || n.Dc(r); }, r.apply(e), r.Cc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Cc.appendChild(a); }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Dc(n); t = t && a; }), t; }, t.prototype.Dc = function (e, t) { function n() { e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Ec = t, e.Cc.appendChild(t); } t = t || {}; var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l; if (d) {
1633
+ } }, r.onBlur = function () { n.canceling || n.Cc(r); }, r.apply(e), r.Bc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Bc.appendChild(a); }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Cc(n); t = t && a; }), t; }, t.prototype.Cc = function (e, t) { function n() { e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Dc = t, e.Bc.appendChild(t); } t = t || {}; var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l; if (d) {
1633
1634
  var c = {};
1634
1635
  c.valid = !0, c.value = e.save()[r.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
1635
1636
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1636
1637
  if (c.valid)
1637
- clearTimeout(this.Bc[r.field]), e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.remove(u);
1638
+ clearTimeout(this.Ac[r.field]), e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.remove(u);
1638
1639
  else if (!i)
1639
1640
  if (a) {
1640
1641
  var f = 1e3;
1641
- clearTimeout(this.Bc[r.field]), this.Bc[r.field] = setTimeout(function () { n(); }, f);
1642
+ clearTimeout(this.Ac[r.field]), this.Ac[r.field] = setTimeout(function () { n(); }, f);
1642
1643
  }
1643
1644
  else
1644
1645
  n();
@@ -1650,38 +1651,38 @@ var DayPilot = { Global: {} };
1650
1651
  catch (e) {
1651
1652
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1652
1653
  } for (var a in t)
1653
- this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.zc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Ac ? this.Ac : this.zc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
1654
+ this.setValue(a, t[a]); }, t.prototype.setValue = function (e, t) { this.yc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.zc ? this.zc : this.yc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
1654
1655
  var a = this, i = this.getFieldType(e), r = [];
1655
1656
  if ("radio" === i) {
1656
1657
  if (e.name) {
1657
1658
  var o = new n;
1658
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
1659
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
1659
1660
  }
1660
1661
  e.options.forEach(function (o) {
1661
1662
  var s = new n;
1662
1663
  s.field = e.id, s.data = o, s.level = t, s.type = i, s.isValue = !0, s.text = o.name, s.resolved = o.id,
1663
- a.zc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
1664
+ a.yc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
1664
1665
  });
1665
1666
  }
1666
1667
  else if ("title" === i) {
1667
1668
  var o = new n;
1668
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
1669
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
1669
1670
  }
1670
1671
  else if ("image" === i) {
1671
1672
  var o = new n;
1672
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1673
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1673
1674
  }
1674
1675
  else if ("html" === i) {
1675
1676
  var o = new n;
1676
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1677
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1677
1678
  }
1678
1679
  else if ("scrollable" === i) {
1679
1680
  var o = new n;
1680
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
1681
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
1681
1682
  }
1682
1683
  else {
1683
1684
  var o = new n;
1684
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.zc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
1685
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.yc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
1685
1686
  }
1686
1687
  return r;
1687
1688
  }, t.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
@@ -1714,11 +1715,11 @@ var DayPilot = { Global: {} };
1714
1715
  r.close(), n = !0;
1715
1716
  break;
1716
1717
  default: n = !0;
1717
- } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Fc(e); }, "datetime": function () { return t.Gc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.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.Hc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Hc && (t = a.Hc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "radio", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!r.checked)
1718
- return {}; var t = r.Hc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, t.prototype.Fc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], o = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(o) || (o = 15); for (var s = 60 / o, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * s; u++) {
1718
+ } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Ec(e); }, "datetime": function () { return t.Fc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.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.Gc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Gc && (t = a.Gc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "radio", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!r.checked)
1719
+ return {}; var t = r.Gc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, t.prototype.Ec = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], o = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(o) || (o = 15); for (var s = 60 / o, l = e.data.locale || t.locale, d = DayPilot.Locale.find(l) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * s; u++) {
1719
1720
  var h = c.addMinutes(o * u), f = {};
1720
1721
  f.name = h.toString(e.data.timeFormat || d.timePattern, d), f.id = h.toString("HH:mm"), i.push(f);
1721
- } var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.Gc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var a = n.searchable; a.disabled = !e.enabled; var i = new DayPilot.Date(e.value).toString("HH:mm"); a.select(i); var r = n.dateInput, o = n.picker; e.data.dateFormat && (o.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1722
+ } var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, t.prototype.Fc = function (e) { var t = this, n = new a; n.apply = function (e) { n.row = e; var a = n.searchable; a.disabled = !e.enabled; var i = new DayPilot.Date(e.value).toString("HH:mm"); a.select(i); var r = n.dateInput, o = n.picker; e.data.dateFormat && (o.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1722
1723
  var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
1723
1724
  o.locale = s, o.pattern = l.datePattern;
1724
1725
  } r.disabled = !e.enabled, o.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || o.pattern, o.locale); r.value = d; }; var i = function () { var a = document.createElement("input"); a.name = e.field; var i = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function () { n.onInput({ "immediate": !0 }); } }); return a.picker = i, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var n = !1; switch (e.keyCode) {
@@ -1735,48 +1736,48 @@ var DayPilot = { Global: {} };
1735
1736
  } n || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { i.show(); }, a.onclick = function () { i.show(); }, a.oninput = function () { n.onInput(); }, a.onblur = function () { n.onBlur(); }, n.dateInput = a, n.picker = i, a; }(), o = function () { var a = [], i = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(i) || (i = 15); for (var o = 60 / i, s = e.data.locale || t.locale, l = DayPilot.Locale.find(s) || DayPilot.Locale.US, d = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
1736
1737
  var u = d.addMinutes(i * c), h = {};
1737
1738
  h.name = u.toString(e.data.timeFormat || l.timePattern, l), h.id = u.toString("HH:mm"), a.push(h);
1738
- } var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.zc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) { var n = this.Ac ? this.Ac : this.zc, a = n.indexOf(e); return this.Ac = n.map(function (n) { if (n !== e)
1739
+ } var f = new r({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), s = document.createElement("div"); return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n; }, t.prototype.findRowsByField = function (e) { return this.yc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) { var n = this.zc ? this.zc : this.yc, a = n.indexOf(e); return this.zc = n.map(function (n) { if (n !== e)
1739
1740
  return n; if (e.propsEqual(t))
1740
1741
  return e; var a = e.clone(); for (var i in t)
1741
- a[i] = t[i]; return a; }), this.Ac[a]; }, t.prototype.updateInteractive = function (e) { var t = this.Ac.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Ac) {
1742
- this.Ac.filter(function (t, n) { return e.zc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.zc = this.Ac, this.Ac = null;
1742
+ a[i] = t[i]; return a; }), this.zc[a]; }, t.prototype.updateInteractive = function (e) { var t = this.zc.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.zc) {
1743
+ this.zc.filter(function (t, n) { return e.yc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.yc = this.zc, this.zc = null;
1743
1744
  } }, t.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"; }, t.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var n = t.save(); for (var a in n)
1744
1745
  e[a] = n[a]; }), e; }, n.prototype.clone = function () { var e = new n; for (var t in this)
1745
1746
  "id" !== t && (e[t] = this[t]); return e; }, n.prototype.propsEqual = function (e) { for (var t in e)
1746
1747
  if (this[t] !== e[t])
1747
- return !1; return !0; }, n.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(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Jc = this.data.find(function (t) { return t.id === e; }), this.Qc(!1), this; }, r.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Kc = null, l.q = []; var i = null; l.data.forEach(function (n) { var r = n.name || n.id; if ("includes" === e) {
1748
+ return !1; return !0; }, n.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(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Ic = this.data.find(function (t) { return t.id === e; }), this.Pc(!1), this; }, r.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Jc = null, l.q = []; var i = null; l.data.forEach(function (n) { var r = n.name || n.id; if ("includes" === e) {
1748
1749
  if (r.toLowerCase().indexOf(v.value.toLowerCase()) === -1)
1749
1750
  return;
1750
1751
  }
1751
1752
  else if ("startsWith" === e && 0 !== r.toLowerCase().indexOf(v.value.toLowerCase()))
1752
- return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Jc && (l.Kc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Kc !== o && (l.Kc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o); }), l.Kc || (l.Kc = i), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Kc && (l.Kc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Kc, h) && l.Kc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; } function a(e) { var t = e.item; l.Jc = t, l.Qc(!0), r(), o(); } function i() { l.Pc(); } function r() { l.s(); } function o() { l.Lc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Lc = !1, v.removeAttribute("readonly"), v.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Lc ? (l.focus(), s()) : (i(), o()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Oc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Ic, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) { if (l.Lc) {
1753
+ return; var o = document.createElement("div"); o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Ic && (l.Jc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Jc !== o && (l.Jc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o); }), l.Jc || (l.Jc = i), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Jc && (l.Jc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Jc, h) && l.Jc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; } function a(e) { var t = e.item; l.Ic = t, l.Pc(!0), r(), o(); } function i() { l.Oc(); } function r() { l.s(); } function o() { l.Kc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Kc = !1, v.removeAttribute("readonly"), v.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Kc ? (l.focus(), s()) : (i(), o()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Nc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Hc, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) { if (l.Kc) {
1753
1754
  if ("Enter" === e.key)
1754
1755
  return;
1755
1756
  if ("Esc" === e.key || "Escape" === e.key)
1756
1757
  return;
1757
1758
  s();
1758
1759
  } if ("ArrowDown" === e.key) {
1759
- var n = d.q.indexOf(d.Kc);
1760
- n + 1 < d.q.length && (d.Kc = d.q[n + 1]), t();
1760
+ var n = d.q.indexOf(d.Jc);
1761
+ n + 1 < d.q.length && (d.Jc = d.q[n + 1]), t();
1761
1762
  }
1762
1763
  else if ("ArrowUp" === e.key) {
1763
- var n = d.q.indexOf(d.Kc);
1764
- n - 1 >= 0 && (d.Kc = d.q[n - 1]), t();
1764
+ var n = d.q.indexOf(d.Jc);
1765
+ n - 1 >= 0 && (d.Jc = d.q[n - 1]), t();
1765
1766
  }
1766
1767
  else
1767
- "Enter" === e.key ? l.Kc ? (e.stopPropagation(), a(l.Kc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o()); }), this.Mc = v, this.Nc = h, this.Jc || (this.Jc = this.data[0], this.Jc && (v.value = this.Jc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, r.prototype.Pc = function () { this.s(), this.Jc ? this.Mc.value = this.Jc.name : (this.Mc.value = "", this.Qc(!0)); }, r.prototype.focus = function () { this.Lc = !0, this.Mc.setAttribute("readonly", "readonly"), this.Mc.focus(), this.Pc(); }, r.prototype.s = function () { this.Nc.style.display = "none"; }, r.prototype.Qc = function (e) { if (this.Oc.value = this.selected ? this.selected.id : null, this.Jc ? this.Mc.value = this.Jc.name : this.Mc.value = "", "function" == typeof this.onSelect) {
1768
+ "Enter" === e.key ? l.Jc ? (e.stopPropagation(), a(l.Jc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o()); }), this.Lc = v, this.Mc = h, this.Ic || (this.Ic = this.data[0], this.Ic && (v.value = this.Ic.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, r.prototype.Oc = function () { this.s(), this.Ic ? this.Lc.value = this.Ic.name : (this.Lc.value = "", this.Pc(!0)); }, r.prototype.focus = function () { this.Kc = !0, this.Lc.setAttribute("readonly", "readonly"), this.Lc.focus(), this.Oc(); }, r.prototype.s = function () { this.Mc.style.display = "none"; }, r.prototype.Pc = function (e) { if (this.Nc.value = this.selected ? this.selected.id : null, this.Ic ? this.Lc.value = this.Ic.name : this.Lc.value = "", "function" == typeof this.onSelect) {
1768
1769
  var t = { control: this, ui: e };
1769
1770
  this.onSelect(t);
1770
- } }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.Sc(); a.appendChild(i); var r = e.Tc({}); r.spacer = !0; var o = this.Uc(r); o.classList.add(e.theme + "_spacer"), a.appendChild(o); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function () { if (!e.disabled) {
1771
+ } }, o.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var a = document.createElement("div"); a.className = this.theme + "_table"; var i = this.Rc(); a.appendChild(i); var r = e.Sc({}); r.spacer = !0; var o = this.Tc(r); o.classList.add(e.theme + "_spacer"), a.appendChild(o); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function () { if (!e.disabled) {
1771
1772
  var t = e.item.onNewRow, n = {};
1772
1773
  if ("function" == typeof t) {
1773
1774
  var a = {};
1774
1775
  a.result = e.form.serialize(), a.value = {}, t(a), n = a.value;
1775
1776
  }
1776
- var i = e.Tc(n);
1777
- e.zc.push(i), e.Vc(), e.Wc();
1778
- } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.Sc = 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 (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Xc = function () { var e = this.item.max || 0; return !!(e && this.zc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.zc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1779
- throw new Error("Array expected"); this.data = e, this.Yc(), this.Vc(); }, o.prototype.Zc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Xc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Yc = function () { var e = this; this.zc = [], this.data.forEach(function (t) { var n = e.Tc(t); e.zc.push(n); }); }, o.prototype.$c = function (e) { var t = this, n = t.zc.indexOf(e); t.zc.splice(n, 1); }, o.prototype.Tc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (a) { var i = a.id, r = e[i], o = t._c(a); if ("undefined" == typeof r)
1777
+ var i = e.Sc(n);
1778
+ e.yc.push(i), e.Uc(), e.Vc();
1779
+ } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, o.prototype.Rc = 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 (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Wc = function () { var e = this.item.max || 0; return !!(e && this.yc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.yc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1780
+ throw new Error("Array expected"); this.data = e, this.Xc(), this.Uc(); }, o.prototype.Yc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Wc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Xc = function () { var e = this; this.yc = [], this.data.forEach(function (t) { var n = e.Sc(t); e.yc.push(n); }); }, o.prototype.Zc = function (e) { var t = this, n = t.yc.indexOf(e); t.yc.splice(n, 1); }, o.prototype.Sc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (a) { var i = a.id, r = e[i], o = t.$c(a); if ("undefined" == typeof r)
1780
1781
  if ("text" === o)
1781
1782
  r = "";
1782
1783
  else if ("number" === o)
@@ -1784,23 +1785,23 @@ var DayPilot = { Global: {} };
1784
1785
  else if ("select" === o) {
1785
1786
  var s = a.options;
1786
1787
  r = s && s[0].id;
1787
- } var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype._c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Vc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.zc.forEach(function (t) { var n = e.Uc(t); e.nav.body.appendChild(n); }), 0 === this.zc.length) {
1788
- var t = e.ad();
1788
+ } var l = {}; l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l); }), n; }, o.prototype.$c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Uc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.yc.forEach(function (t) { var n = e.Tc(t); e.nav.body.appendChild(n); }), 0 === this.yc.length) {
1789
+ var t = e._c();
1789
1790
  e.nav.after.appendChild(t);
1790
- } this.Zc(); }, o.prototype.ad = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Uc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (a) { var i = document.createElement("div"); i.className = t.theme + "_cell"; var r = t.bd(a); if (e.spacer) {
1791
+ } this.Yc(); }, o.prototype._c = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Tc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (a) { var i = document.createElement("div"); i.className = t.theme + "_cell"; var r = t.ad(a); if (e.spacer) {
1791
1792
  var o = document.createElement("div");
1792
1793
  o.style.height = "0px", o.style.overflow = "hidden", o.appendChild(r), i.appendChild(o);
1793
1794
  }
1794
1795
  else
1795
- i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.$c(e), t.Vc(), t.Wc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n; }, o.prototype.Wc = function () { var e = this; if ("function" == typeof e.onInput) {
1796
+ i.appendChild(r); n.appendChild(i); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var i = document.createElement("span"); return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.Zc(e), t.Uc(), t.Vc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n; }, o.prototype.Vc = function () { var e = this; if ("function" == typeof e.onInput) {
1796
1797
  var t = {};
1797
1798
  e.onInput(t);
1798
- } }, o.prototype.bd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1799
+ } }, o.prototype.ad = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1799
1800
  var a = document.createElement("input");
1800
- return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Wc(); }), a;
1801
+ return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Vc(); }), a;
1801
1802
  } if ("select" === n) {
1802
1803
  var i = document.createElement("select");
1803
- return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Hc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Hc && (e.value = n.Hc), t.Wc(); }), i;
1804
+ return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Gc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Gc && (e.value = n.Gc), t.Vc(); }), i;
1804
1805
  } throw new Error("Unsupported item type: " + n); }, o.prototype.focus = function () { };
1805
1806
  }
1806
1807
  }(DayPilot), function (DayPilot) {
@@ -1811,7 +1812,7 @@ var DayPilot = { Global: {} };
1811
1812
  var i = this;
1812
1813
  this.id = n, 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.eventBorderRadius = null, 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.Q = !1, this.R = {};
1813
1814
  var r = this.R;
1814
- this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.cd(), i.ha(), "Full" === t.UpdateType && (i.dd(), i.ed()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1815
+ this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.bd(), i.ha(), "Full" === t.UpdateType && (i.cd(), i.dd()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1815
1816
  t = e.data;
1816
1817
  else {
1817
1818
  if ("object" != typeof e)
@@ -1856,21 +1857,21 @@ var DayPilot = { Global: {} };
1856
1857
  var s = {};
1857
1858
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1858
1859
  return;
1859
- i.events.list = n, i.Ma && i.update();
1860
+ i.events.list = n, i.La && i.update();
1860
1861
  } }; if (i.eventsLoadMethod && "POST" === i.eventsLoadMethod.toUpperCase())
1861
1862
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": i.visibleStart().toString(), "end": i.visibleEnd().toString() }, "url": e, "success": r, "error": a });
1862
1863
  else {
1863
1864
  var o = e, s = "start=" + i.visibleStart().toString() + "&end=" + i.visibleEnd().toString();
1864
1865
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": r, "error": a });
1865
- } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.Ab), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) { if (i.tb(e), this.Ma) {
1866
+ } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.zb), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) { if (i.sb(e), this.La) {
1866
1867
  if (i.Q)
1867
1868
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
1868
1869
  if (this.cells) {
1869
- i.Z(), i.cd(), i.ha(), i.dd(), i.ed(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
1870
+ i.Z(), i.bd(), i.ha(), i.cd(), i.dd(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
1870
1871
  }
1871
- } }, this.vb = null, this.tb = function (e) { if (e) {
1872
+ } }, this.ub = null, this.sb = function (e) { if (e) {
1872
1873
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
1873
- this.vb = t;
1874
+ this.ub = t;
1874
1875
  for (var n in e)
1875
1876
  if (t[n]) {
1876
1877
  var a = t[n];
@@ -1878,10 +1879,10 @@ var DayPilot = { Global: {} };
1878
1879
  }
1879
1880
  else
1880
1881
  i[n] = e[n];
1881
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
1882
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
1882
1883
  var n = e[t];
1883
1884
  n.postInit && n.postInit();
1884
- } }, this.yb = {}, this.yb.events = [], this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; for (var r in n)
1885
+ } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; for (var r in n)
1885
1886
  a[r] = n[r]; if ("function" == typeof this.onBeforeEventRender) {
1886
1887
  var o = {};
1887
1888
  o.control = i, o.data = a, this.onBeforeEventRender(o);
@@ -1890,7 +1891,7 @@ var DayPilot = { Global: {} };
1890
1891
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
1891
1892
  if ("function" == typeof this.onBeforeEventRender)
1892
1893
  for (var t = 0; t < e.length; t++)
1893
- this.zb(t);
1894
+ this.yb(t);
1894
1895
  for (var n = 0; n < e.length; n++) {
1895
1896
  var a = e[n];
1896
1897
  if ("object" != typeof a)
@@ -1903,12 +1904,12 @@ var DayPilot = { Global: {} };
1903
1904
  if (!(i.getTime() > r.getTime()))
1904
1905
  for (var t = 0; t < this.rows.length; t++) {
1905
1906
  var o = this.rows[t], s = new DayPilot.Event(a, this);
1906
- o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.yb.events[n]));
1907
+ o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.xb.events[n]));
1907
1908
  }
1908
1909
  }
1909
1910
  for (var l = 0; l < this.rows.length; l++) {
1910
1911
  var o = this.rows[l];
1911
- o.events.sort(this.Ab);
1912
+ o.events.sort(this.zb);
1912
1913
  for (var d = 0; d < this.rows[l].events.length; d++) {
1913
1914
  var c = o.events[d], u = o.getStartColumn(c), h = o.getWidth(c);
1914
1915
  o.putIntoLine(c, u, h, l);
@@ -1916,16 +1917,16 @@ var DayPilot = { Global: {} };
1916
1917
  }
1917
1918
  } }, this.Z = function () { for (var e = 0; e < this.elements.events.length; e++) {
1918
1919
  var t = this.elements.events[e];
1919
- i.Pa(t);
1920
- } this.elements.events = []; }, this.Pa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
1921
- var a = n && n.Qa;
1920
+ i.Oa(t);
1921
+ } this.elements.events = []; }, this.Oa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
1922
+ var a = n && n.Pa;
1922
1923
  if (a) {
1923
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
1924
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
1924
1925
  }
1925
- } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.fd(); }, this.fd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1926
+ } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.ed(); }, this.ed = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1926
1927
  for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
1927
1928
  for (var a = t.lines[n], i = 0; i < a.length; i++)
1928
- this.Va(a[i]); }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
1929
+ this.Ua(a[i]); }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1929
1930
  return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, n, a, r, o) { o || (o = 0); var s = r; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: n }, this.shadow.width = r; var l = 7 * n + t - o; l < 0 && (s += l, t = 0, n = 0); for (var d = o; d >= 7;)
1930
1931
  n--, d -= 7; if (d > t) {
1931
1932
  d > t + (7 - this.getColCount()) ? (n--, t = t + 7 - d) : (s = s - d + t, t = 0);
@@ -1941,11 +1942,11 @@ var DayPilot = { Global: {} };
1941
1942
  this.nav.top.removeChild(this.shadow.list[e]);
1942
1943
  this.shadow = null, this.nav.top.style.cursor = "";
1943
1944
  } }, this.getEventTop = function (e, t) { for (var n = this.headerHeight, a = 0; a < e; a++)
1944
- n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) {
1945
+ n += this.rows[a].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ua = function (n) {
1945
1946
  var a = n.cache || n.data, r = a.borderRadius || i.eventBorderRadius;
1946
1947
  "number" == typeof r && (r += "px");
1947
1948
  var o = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(o, s), f = document.createElement("div");
1948
- f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.gd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1949
+ f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.fd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1949
1950
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1950
1951
  var r = {};
1951
1952
  r.start = {}, r.start.x = l, r.start.y = o, r.event = f.event, r.width = DayPilot.DateUtil.daysSpan(r.event.start(), r.event.end()) + 1, r.direction = this.style.cursor, e.resizingEvent = r;
@@ -1987,11 +1988,11 @@ var DayPilot = { Global: {} };
1987
1988
  !function () { var e = {}; if (e.control = i, e.e = n, e.element = null, f.domArgs = e, "function" == typeof i.onBeforeEventDomAdd && i.onBeforeEventDomAdd(e), e.element) {
1988
1989
  var a = v;
1989
1990
  if (a) {
1990
- e.Qa = a;
1991
+ e.Pa = a;
1991
1992
  if (t(e.element)) {
1992
- if (!i.Sa.Ra)
1993
+ if (!i.Ra.Qa)
1993
1994
  throw new DayPilot.Exception("Can't reach Vue");
1994
- i.Sa.Ta = !0, i.Sa.Wa(e.element, a, { "style": { "flexGrow": 1 } }), i.Sa.Ta = !1;
1995
+ i.Ra.Sa = !0, i.Ra.Va(e.element, a, { "style": { "flexGrow": 1 } }), i.Ra.Sa = !1;
1995
1996
  }
1996
1997
  else
1997
1998
  a.appendChild(e.element);
@@ -1999,14 +2000,14 @@ var DayPilot = { Global: {} };
1999
2000
  }
2000
2001
  else
2001
2002
  v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f);
2002
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.cd = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7); this.days = 7 * n, this.rows = []; for (var a = function (e) { var t = {}; t.start = r.firstDate.addDays(7 * e), t.end = t.start.addDays(r.getColCount()), t.events = [], t.lines = [], t.index = e, t.minHeight = r.cellHeight, t.calendar = r, t.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, t.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, t.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, t.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, t.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, t.putIntoLine = function (e, n, a, i) { for (var r = t, o = 0; o < this.lines.length; o++) {
2003
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.bd = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7); this.days = 7 * n, this.rows = []; for (var a = function (e) { var t = {}; t.start = r.firstDate.addDays(7 * e), t.end = t.start.addDays(r.getColCount()), t.events = [], t.lines = [], t.index = e, t.minHeight = r.cellHeight, t.calendar = r, t.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, t.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, t.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, t.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, t.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, t.putIntoLine = function (e, n, a, i) { for (var r = t, o = 0; o < this.lines.length; o++) {
2003
2004
  var s = this.lines[o];
2004
2005
  if (s.isFree(n, a))
2005
2006
  return s.addEvent(e, n, a, i, o), o;
2006
2007
  } var l = []; return l.isFree = function (e, t) { for (var n = !0, a = 0; a < this.length; a++)
2007
2008
  e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (n = !1); return n; }, l.addEvent = function (e, t, n, a, i) { e.part.colStart = t, e.part.colWidth = n, e.part.row = a, e.part.line = i, e.part.startsHere = r.start.getTime() <= e.start().getTime(), e.part.endsHere = r.end.getTime() >= e.end().getTime(), this.push(e); }, l.addEvent(e, n, a, i, this.lines.length), this.lines.push(l), this.lines.length - 1; }, t.getHeight = function () { return Math.max(this.lines.length * i.lineHeight() + i.cellHeaderHeight + i.cellMarginBottom, this.calendar.cellHeight); }, r.rows.push(t); }, r = this, o = 0; o < n; o++)
2008
2009
  a(o); this.endDate = this.firstDate.addDays(7 * n); }, this.visibleStart = function () { return i.firstDate; }, this.visibleEnd = function () { return i.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
2009
- e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Xa = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function () { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.L("_main"); var n = document.createElement("div"); this.nav.cells = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) { if (e.resizingEvent) {
2010
+ e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Wa = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function () { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.L("_main"); var n = document.createElement("div"); this.nav.cells = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) { if (e.resizingEvent) {
2010
2011
  var n = DayPilot.mo3(i.nav.top, t);
2011
2012
  if (!n)
2012
2013
  return;
@@ -2057,7 +2058,7 @@ var DayPilot = { Global: {} };
2057
2058
  break;
2058
2059
  }
2059
2060
  } null === i && (i = this.rows.length - 1); var d = {}; return d.x = a, d.y = i, d.relativeY = o, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
2060
- n.y++, t -= 7; return n.x = t, n; }, this.ed = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2061
+ n.y++, t -= 7; return n.x = t, n; }, this.dd = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2061
2062
  this.cells[t] = [];
2062
2063
  var n = document.createElement("div");
2063
2064
  n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.left = this.getCellWidth() * t + "%", n.style.width = this.getCellWidth() + "%", n.style.top = "0px", n.style.height = this.headerHeight + "px";
@@ -2066,17 +2067,17 @@ var DayPilot = { Global: {} };
2066
2067
  var i = document.createElement("div");
2067
2068
  i.setAttribute("unselectable", "on"), i.innerHTML = r.locale().dayNames[a], n.appendChild(i), i.style.position = "absolute", i.style.top = "0px", i.style.bottom = "0px", i.style.left = "0px", i.style.right = "0px", i.className = this.L("_header_inner"), i.innerHTML = r.locale().dayNames[a], e.appendChild(n);
2068
2069
  for (var o = 0; o < this.rows.length; o++)
2069
- this.hd(t, o, e);
2070
- } }, this.dd = function () { for (var e = 0; e < this.cells.length; e++)
2070
+ this.gd(t, o, e);
2071
+ } }, this.cd = function () { for (var e = 0; e < this.cells.length; e++)
2071
2072
  for (var t = 0; t < this.cells[e].length; t++) {
2072
2073
  var n = i.cells[e][t];
2073
- i.gb(n);
2074
- } this.nav.cells.innerHTML = ""; }, this.gb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeCellDomRemove && i.onBeforeCellDomRemove(n), n && "function" == typeof i.onBeforeCellDomAdd) {
2075
- var a = n && n.Qa;
2074
+ i.fb(n);
2075
+ } this.nav.cells.innerHTML = ""; }, this.fb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof i.onBeforeCellDomRemove && i.onBeforeCellDomRemove(n), n && "function" == typeof i.onBeforeCellDomAdd) {
2076
+ var a = n && n.Pa;
2076
2077
  if (a) {
2077
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
2078
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
2078
2079
  }
2079
- } }(), e.onclick = null; }, this.ta = function () { return 2 === i.api; }, this.hd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2080
+ } }(), e.onclick = null; }, this.ta = function () { return 2 === i.api; }, this.gd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2080
2081
  var m = this.L("_cell_business");
2081
2082
  DayPilot.Util.addClass(p, m);
2082
2083
  } var g = document.createElement("div"); g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.left = "0px", g.style.right = "0px", g.style.top = "0px", g.style.bottom = "0px", g.className = this.L("_cell_inner"), v.backColor && (g.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function () { "Disabled" !== i.timeRangeSelectedHandling && (i.clearShadow(), e.timeRangeSelecting = { "root": i, "x": n, "y": a, "from": { x: n, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); i.O(t, n); }; if ("Disabled" !== i.timeRangeSelectedHandling)
@@ -2092,11 +2093,11 @@ var DayPilot = { Global: {} };
2092
2093
  if (e.control = i, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(e), e.element) {
2093
2094
  var n = g;
2094
2095
  if (n) {
2095
- e.Qa = n;
2096
+ e.Pa = n;
2096
2097
  if (t(e.element)) {
2097
- if (!i.Sa.Ra)
2098
+ if (!i.Ra.Qa)
2098
2099
  throw new DayPilot.Exception("Can't reach Vue");
2099
- i.Sa.Ta = !0, i.Sa.Wa(e.element, n), i.Sa.Ta = !1;
2100
+ i.Ra.Sa = !0, i.Ra.Va(e.element, n), i.Ra.Sa = !1;
2100
2101
  }
2101
2102
  else
2102
2103
  n.appendChild(e.element);
@@ -2127,7 +2128,7 @@ var DayPilot = { Global: {} };
2127
2128
  i.eventClickCallBack(n);
2128
2129
  break;
2129
2130
  case "JavaScript": i.onEventClick(n);
2130
- } }, this.gd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2131
+ } }, this.fd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2131
2132
  return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof i.onEventRightClick || (i.onEventRightClick(t), !t.preventDefault.value)) {
2132
2133
  switch (i.eventRightClickHandling) {
2133
2134
  case "ContextMenu":
@@ -2214,20 +2215,20 @@ var DayPilot = { Global: {} };
2214
2215
  i.timeRangeSelectedCallBack(e, t);
2215
2216
  break;
2216
2217
  case "JavaScript": i.onTimeRangeSelected(e, t);
2217
- } }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.dd(), e.Z(), 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.Q; }, this.qb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
2218
+ } }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.cd(), e.Z(), 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.Q; }, this.pb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.wb = function () { if (this.id && this.id.tagName)
2218
2219
  this.nav.top = this.id;
2219
2220
  else {
2220
2221
  if ("string" != typeof this.id)
2221
2222
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2222
2223
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2223
2224
  throw "DayPilot.Month: The placeholder element not found: '" + this.id + "'.";
2224
- } }, this.Fb = function () { this.cd(), this.Xa(), this.ed(), this.qb(), this.V("Init"); }, this._a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2225
+ } }, this.Eb = function () { this.bd(), this.Wa(), this.dd(), this.pb(), this.V("Init"); }, this.$a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2225
2226
  var r = a.createVNode(e, n);
2226
2227
  a.render(r, t);
2227
- } }, this.Sa.Wa = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.render) {
2228
+ } }, this.Ra.Va = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.render) {
2228
2229
  var r = e;
2229
2230
  DayPilot.isArray(e) && (r = a.h("div", n, e)), a.render(r, t);
2230
- } }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.tb, this.internal.xssTextHtml = i._a, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.init = function () { return this.xb(), this.loadFromServer() ? void this.Fb() : (this.cd(), this.ha(), this.Xa(), this.ed(), this.u(), this.na(), this.qb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.tb(a);
2231
+ } }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.sb, this.internal.xssTextHtml = i.$a, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.init = function () { return this.wb(), this.loadFromServer() ? void this.Eb() : (this.bd(), this.ha(), this.Wa(), this.dd(), this.u(), this.na(), this.pb(), this.fireAfterRenderDetached(null, !1), this.La = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.sb(a);
2231
2232
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2232
2233
  var n = e.movingEvent;
2233
2234
  if (!n.event)
@@ -2301,16 +2302,16 @@ var DayPilot = { Global: {} };
2301
2302
  var i = this;
2302
2303
  this.id = t, 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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.R = {};
2303
2304
  var r = this.R;
2304
- this.jd = {};
2305
- var o = this.jd;
2306
- this.nav = {}, this.yb = {}, this.kd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.ld() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.md()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ld() || (this.root.style.width = 7 * r.cellWidth() + this.md() + "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.ta = function () { return 2 === i.api; }, this.dd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.od = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.pd = function () { if (!r.ld())
2307
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.qd = function () { return r.ld() ? null : r.cellWidth(); }, this.rd = function (e) { return "number" != typeof e && (e = 1), r.ld() ? this.pd() * e : this.qd() * e; }, this.sd = function (e) { var t = r.ld() ? "%" : "px"; return this.rd(e) + t; }, this.ed = function (t, n) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; a.rowCount = f; var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.md(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.ld() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2308
- g.style.position = "absolute", r.ld() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
2305
+ this.hd = {};
2306
+ var o = this.hd;
2307
+ this.nav = {}, this.xb = {}, this.jd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.kd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.ld()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.kd() || (this.root.style.width = 7 * r.cellWidth() + this.ld() + "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.ta = function () { return 2 === i.api; }, this.cd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.md = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.od = function () { if (!r.kd())
2308
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.pd = function () { return r.kd() ? null : r.cellWidth(); }, this.qd = function (e) { return "number" != typeof e && (e = 1), r.kd() ? this.od() * e : this.pd() * e; }, this.rd = function (e) { var t = r.kd() ? "%" : "px"; return this.qd(e) + t; }, this.dd = function (t, n) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; a.rowCount = f; var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.ld(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.kd() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2309
+ g.style.position = "absolute", r.kd() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
2309
2310
  else {
2310
2311
  g.style.position = "relative";
2311
2312
  var y = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
2312
2313
  a.top = y, a.left = 0, a.leftPct = 0;
2313
- } g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.sd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.td), g.appendChild(w); var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.sd(), x.style.top = "0px", x.style.width = i.sd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x; var _ = document.createElement("div"); _.style.position = "absolute", _.style.left = i.sd(i.showWeekNumbers ? 7 : 6), _.style.right = i.sd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.sd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.ud), g.appendChild(_), this.tr = _; var C = i.showWeekNumbers ? 1 : 0; if (this.showWeekNumbers)
2314
+ } g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.rd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.sd), g.appendChild(w); var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.rd(), x.style.top = "0px", x.style.width = i.rd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x; var _ = document.createElement("div"); _.style.position = "absolute", _.style.left = i.rd(i.showWeekNumbers ? 7 : 6), _.style.right = i.rd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.rd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.td), g.appendChild(_), this.tr = _; var C = i.showWeekNumbers ? 1 : 0; if (this.showWeekNumbers)
2314
2315
  for (var k = 0; k < f; k++) {
2315
2316
  var D = c.addDays(7 * k), S = null;
2316
2317
  switch (this.weekNumberAlgorithm) {
@@ -2326,54 +2327,54 @@ var DayPilot = { Global: {} };
2326
2327
  default: throw "Unknown weekNumberAlgorithm value.";
2327
2328
  }
2328
2329
  var M = document.createElement("div");
2329
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.sd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
2330
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.rd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
2330
2331
  } if (i.showWeekNumbers) {
2331
2332
  var M = document.createElement("div");
2332
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
2333
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
2333
2334
  } for (var T = 0; T < 7; T++) {
2334
2335
  a.cells[T] = [];
2335
2336
  var M = document.createElement("div");
2336
- M.style.position = "absolute", M.style.left = i.sd(T + C), M.style.right = i.sd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.vd(T) + "</span>", g.appendChild(M), a.days.push(M);
2337
- for (var A = function (t) { var n = c.addDays(7 * t + T), d = E.wd(n) && "none" !== E.xd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1); if ("month" === E.xd())
2337
+ M.style.position = "absolute", M.style.left = i.rd(T + C), M.style.right = i.rd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.ud(T) + "</span>", g.appendChild(M), a.days.push(M);
2338
+ for (var A = function (t) { var n = c.addDays(7 * t + T), d = E.vd(n) && "none" !== E.wd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1); if ("month" === E.wd())
2338
2339
  d = d && u;
2339
- else if ("day" === E.xd())
2340
+ else if ("day" === E.wd())
2340
2341
  d = d && (u || s && h || l && f);
2341
- else if ("week" === E.xd()) {
2342
+ else if ("week" === E.wd()) {
2342
2343
  var p = n.firstDayOfMonth() === o;
2343
2344
  d = d && (p || s && h || l && f);
2344
- } var m = document.createElement("div"); a.cells[T][t] = m; var y = i.yd(T, t), b = y.x, w = y.y, x = r.ld() ? "%" : "px"; m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.nd(m, "cell"), n.getTime() === v.getTime() && u && E.nd(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.nd(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.sd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px"; var _ = document.createElement("div"); _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.nd(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_); var C = null; E.cells && E.cells[n.toStringSortable()] && (C = E.cells[n.toStringSortable()]); var k = C || {}; if (k.day = n, k.isCurrentMonth = u, k.isToday = n.getTime() === v.getTime() && u, k.isWeekend = 0 === n.dayOfWeek() || 6 === n.dayOfWeek(), C ? (k.html = C.html || n.getDay(), k.cssClass = C.css) : (k.html = n.getDay(), k.cssClass = null), "function" == typeof i.onBeforeCellRender) {
2345
+ } var m = document.createElement("div"); a.cells[T][t] = m; var y = i.xd(T, t), b = y.x, w = y.y, x = r.kd() ? "%" : "px"; m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.md(m, "cell"), n.getTime() === v.getTime() && u && E.md(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.md(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.rd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px"; var _ = document.createElement("div"); _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.md(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_); var C = null; E.cells && E.cells[n.toStringSortable()] && (C = E.cells[n.toStringSortable()]); var k = C || {}; if (k.day = n, k.isCurrentMonth = u, k.isToday = n.getTime() === v.getTime() && u, k.isWeekend = 0 === n.dayOfWeek() || 6 === n.dayOfWeek(), C ? (k.html = C.html || n.getDay(), k.cssClass = C.css) : (k.html = n.getDay(), k.cssClass = null), "function" == typeof i.onBeforeCellRender) {
2345
2346
  var D = {};
2346
2347
  D.cell = k, i.onBeforeCellRender(D), C = D.cell;
2347
2348
  } if (C && DayPilot.Util.addClass(m, C.cssClass || C.css), u || s && h || l && f) {
2348
2349
  var S = document.createElement("div");
2349
- S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.nd(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
2350
- } m.onclick = E.zd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2350
+ S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.md(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
2351
+ } m.onclick = E.yd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2351
2352
  var t = {};
2352
2353
  if (t.control = i, t.cell = k, t.element = null, m.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
2353
2354
  var n = _;
2354
2355
  if (n) {
2355
- t.Qa = n;
2356
+ t.Pa = n;
2356
2357
  if (e(t.element)) {
2357
- if (!i.Sa.Ra)
2358
+ if (!i.Ra.Qa)
2358
2359
  throw new DayPilot.Exception("Can't reach Vue");
2359
- i.Sa.Ta = !0, i.Sa.Wa(t.element, n), i.Sa.Ta = !1;
2360
+ i.Ra.Sa = !0, i.Ra.Va(t.element, n), i.Ra.Sa = !1;
2360
2361
  }
2361
2362
  else
2362
2363
  n.appendChild(t.element);
2363
2364
  }
2364
2365
  }
2365
- } }(), g.appendChild(m), d && (i.Ad(g, T, t), E.selected.push(m)); }, E = this, k = 0; k < f; k++)
2366
+ } }(), g.appendChild(m), d && (i.zd(g, T, t), E.selected.push(m)); }, E = this, k = 0; k < f; k++)
2366
2367
  A(k);
2367
- } var H = document.createElement("div"); H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.sd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a); }, this.yd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.rd(e + a), "y": t * this.cellHeight + n }; }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.Bd = function (e, t, n) { var a = e.month.cells[t][n]; i.od(a, "select"); }, this.md = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Cd = function () {
2368
+ } var H = document.createElement("div"); H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.rd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a); }, this.xd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.qd(e + a), "y": t * this.cellHeight + n }; }, this.zd = function (e, t, n) { var a = e.month.cells[t][n]; i.md(a, "select"); }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.ld = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Bd = function () {
2368
2369
  if (this.items)
2369
2370
  for (var e = 0; e < this.showMonths; e++)
2370
2371
  for (var t = 0; t < 7; t++)
2371
2372
  for (var n = 0; n < 6; n++) {
2372
2373
  var a = this.months[e].cells[t][n];
2373
- a && (1 === this.items[a.day.toStringSortable()] ? (this.nd(a, "busy"), this.od(a, "free")) : (this.od(a, "busy"),
2374
- this.nd(a, "free")));
2374
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.md(a, "busy"), this.nd(a, "free")) : (this.nd(a, "busy"),
2375
+ this.md(a, "free")));
2375
2376
  }
2376
- }, this.Dd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.xd = function () { return (this.selectMode || "").toLowerCase(); }, this.Ed = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.xd()) {
2377
+ }, this.Cd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.wd = function () { return (this.selectMode || "").toLowerCase(); }, this.Dd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.wd()) {
2377
2378
  case "day":
2378
2379
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
2379
2380
  break;
@@ -2387,19 +2388,19 @@ var DayPilot = { Global: {} };
2387
2388
  this.selectionEnd = e;
2388
2389
  break;
2389
2390
  default: throw "Unknown selectMode value.";
2390
- } }, this.Fd = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n; if (!this.Ma)
2391
- return void (this.Fd = { "date1": o, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2391
+ } }, this.Ed = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n; if (!this.La)
2392
+ return void (this.Ed = { "date1": o, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2392
2393
  var v = this.startDate;
2393
- (this.selectionStart < this.Gd() || this.selectionStart >= this.Hd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2394
- } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Ed(), this.dd(), this.kd(), this.Id(), this.Cd(), this.Dd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Jd(); }, this.update = function (e) { i.Kd(e); }, this.Kd = function (e) { if (i.tb(e), this.Ma) {
2394
+ (this.selectionStart < this.Fd() || this.selectionStart >= this.Gd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2395
+ } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Dd(), this.cd(), this.jd(), this.Hd(), this.Bd(), this.Cd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Id(); }, this.update = function (e) { i.Jd(e); }, this.Jd = function (e) { if (i.sb(e), this.La) {
2395
2396
  if (i.Q)
2396
2397
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2397
- i.Ld();
2398
+ i.Kd();
2398
2399
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2399
- i.rb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2400
- } }, this.rb = function () { this.dd(), this.kd(), this.Ed(), this.Id(), this.ha(), this.Cd(), this.Dd(), this.visible ? this.show() : this.hide(); }, this.Ld = function () { i.yb = {}; }, this.vb = null, this.tb = function (e) { if (e) {
2400
+ i.qb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2401
+ } }, this.qb = function () { this.cd(), this.jd(), this.Dd(), this.Hd(), this.ha(), this.Bd(), this.Cd(), this.visible ? this.show() : this.hide(); }, this.Kd = function () { i.xb = {}; }, this.ub = null, this.sb = function (e) { if (e) {
2401
2402
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
2402
- this.vb = t;
2403
+ this.ub = t;
2403
2404
  for (var n in e)
2404
2405
  if (t[n]) {
2405
2406
  var a = t[n];
@@ -2407,15 +2408,15 @@ var DayPilot = { Global: {} };
2407
2408
  }
2408
2409
  else
2409
2410
  i[n] = e[n];
2410
- } }, this.wb = function () { var e = this.vb; for (var t in e) {
2411
+ } }, this.vb = function () { var e = this.ub; for (var t in e) {
2411
2412
  var n = e[t];
2412
2413
  n.postInit && n.postInit();
2413
- } }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Md) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Md = function (e) { if ("function" == typeof i.onAjaxError) {
2414
+ } }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Ld) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Ld = function (e) { if ("function" == typeof i.onAjaxError) {
2414
2415
  var t = {};
2415
2416
  t.request = e, i.onAjaxError(t);
2416
2417
  }
2417
2418
  else
2418
- "function" == typeof i.ajaxError && i.ajaxError(e); }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.vd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.wd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Nd = function (e) { for (var t = 0; t < i.months.length; t++) {
2419
+ "function" == typeof i.ajaxError && i.ajaxError(e); }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ud = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.vd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Md = function (e) { for (var t = 0; t < i.months.length; t++) {
2419
2420
  var n = i.months[t];
2420
2421
  if (!n)
2421
2422
  return null;
@@ -2423,19 +2424,19 @@ var DayPilot = { Global: {} };
2423
2424
  return null;
2424
2425
  if (!(n.left + n.width < e.x) && n.top <= e.y && e.y < n.top + n.height)
2425
2426
  return t;
2426
- } return null; }, this.Od = function () { if (!r.ld())
2427
- return void (i.Pd = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Pd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); }); }, this.Qd = function (e) { i.Od(); var t = DayPilot.mo3(i.nav.top, e), n = i.Nd(t); if (null === n)
2427
+ } return null; }, this.Nd = function () { if (!r.kd())
2428
+ return void (i.Od = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Od = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); }); }, this.Pd = function (e) { i.Nd(); var t = DayPilot.mo3(i.nav.top, e), n = i.Md(t); if (null === n)
2428
2429
  return null; var a = i.months[n], r = this.titleHeight + this.dayHeaderHeight; if (a.top <= t.y && t.y < a.top + r)
2429
2430
  return { "month": n, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var o = 0; o < a.cells.length; o++)
2430
2431
  for (var s = 0; s < a.cells[o].length; s++) {
2431
2432
  var l = a.cells[o][s], d = l.top + a.top, c = l.left + a.left;
2432
- if (c <= t.x && t.x < c + i.Pd && d <= t.y && t.y < d + i.cellHeight)
2433
+ if (c <= t.x && t.x < c + i.Od && d <= t.y && t.y < d + i.cellHeight)
2433
2434
  return { "month": n, "x": o, "y": s, "coords": t };
2434
- } return null; }, this.Rd = function (e) { if (i.freeHandSelectionEnabled) {
2435
- var t = i.Qd(e);
2435
+ } return null; }, this.Qd = function (e) { if (i.freeHandSelectionEnabled) {
2436
+ var t = i.Pd(e);
2436
2437
  t && !t.header && (o.start = t), e.preventDefault();
2437
- } }, this.Sd = function (e) { if (o.start) {
2438
- var t = i.Qd(e);
2438
+ } }, this.Rd = function (e) { if (o.start) {
2439
+ var t = i.Pd(e);
2439
2440
  if (o.end)
2440
2441
  o.end = t;
2441
2442
  else if (t) {
@@ -2443,9 +2444,9 @@ var DayPilot = { Global: {} };
2443
2444
  a > n && (o.end = t);
2444
2445
  }
2445
2446
  o.end && (o.clear(), o.draw());
2446
- } }, o.start = null, o.drawCell = function (e) { var t = i.months[e.month], n = i.yd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.sd(); if (r.ld()) {
2447
+ } }, o.start = null, o.drawCell = function (e) { var t = i.months[e.month], n = i.xd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.rd(); if (r.kd()) {
2447
2448
  var c = "Horizontal" === i.orientation ? i.showMonths : 1;
2448
- s = t.leftPct + n.x / c, l = "%", d = i.sd(1 / c);
2449
+ s = t.leftPct + n.x / c, l = "%", d = i.rd(1 / c);
2449
2450
  } var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = a + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), o.cells.push(u); }, o.clear = function () { if (o.cells) {
2450
2451
  for (var e = 0; e < o.cells.length; e++)
2451
2452
  i.nav.preselection.removeChild(o.cells[e]);
@@ -2464,40 +2465,40 @@ var DayPilot = { Global: {} };
2464
2465
  t.month = s.month, t.x = s.x, t.y = s.y;
2465
2466
  }
2466
2467
  t.visible() && o.drawCell(t);
2467
- } }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.zd = function (e) { var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, r = t.x, o = t.y, s = a.cells[r][o].day; if (a.cells[r][o].isClickable) {
2468
- switch (i.clearSelection(), i.selectionDay = s, i.xd()) {
2468
+ } }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.yd = function (e) { var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, r = t.x, o = t.y, s = a.cells[r][o].day; if (a.cells[r][o].isClickable) {
2469
+ switch (i.clearSelection(), i.selectionDay = s, i.wd()) {
2469
2470
  case "none":
2470
2471
  i.selectionStart = s, i.selectionEnd = s;
2471
2472
  break;
2472
2473
  case "day":
2473
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
2474
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
2474
2475
  return void i.select(s);
2475
2476
  var l = a.cells[r][o];
2476
- i.Ad(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2477
+ i.zd(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2477
2478
  break;
2478
2479
  case "week":
2479
2480
  if (i.autoFocusOnClick) {
2480
2481
  var d = a.cells[0][o].day, c = a.cells[6][o].day;
2481
- if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Gd() || c >= i.Hd()))
2482
+ if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Fd() || c >= i.Gd()))
2482
2483
  return void i.select(s);
2483
2484
  }
2484
2485
  for (var u = 0; u < 7; u++)
2485
- i.Ad(n, u, o), i.selected.push(a.cells[u][o]);
2486
+ i.zd(n, u, o), i.selected.push(a.cells[u][o]);
2486
2487
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
2487
2488
  break;
2488
2489
  case "month":
2489
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
2490
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
2490
2491
  return void i.select(s);
2491
2492
  for (var d = null, c = null, h = 0; h < 6; h++)
2492
2493
  for (var f = 0; f < 7; f++) {
2493
2494
  var l = a.cells[f][h];
2494
- l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.Ad(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
2495
+ l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.zd(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
2495
2496
  }
2496
2497
  i.selectionStart = d, i.selectionEnd = c;
2497
2498
  break;
2498
2499
  default: throw "unknown selectMode";
2499
2500
  }
2500
- i.Dd(), i.O();
2501
+ i.Cd(), i.O();
2501
2502
  } }, this.O = function (e) { var t = i.selectionStart, n = i.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), r = i.selectionDay; if (e = e || {}, i.ta()) {
2502
2503
  var o = {};
2503
2504
  if (o.start = t, o.end = n, o.day = r, o.days = a, o.mode = e.mode || i.selectMode, o.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(o), o.preventDefault.value))
@@ -2529,7 +2530,7 @@ var DayPilot = { Global: {} };
2529
2530
  break;
2530
2531
  case "None": break;
2531
2532
  case "PostBack": i.timeRangeSelectedPostBack(t, n, r);
2532
- } }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.ud = function () { i.Td(i.skipMonths); }, this.td = function () { i.Td(-i.skipMonths); }, this.Td = function (e) { this.startDate = this.startDate.addMonths(e), this.dd(), this.kd(), this.Id(), this.Dd(), this.Jd(), this.Cd(); }, this.Gd = function () { return i.startDate.firstDayOfMonth(); }, this.Hd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Jd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2533
+ } }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.td = function () { i.Sd(i.skipMonths); }, this.sd = function () { i.Sd(-i.skipMonths); }, this.Sd = function (e) { this.startDate = this.startDate.addMonths(e), this.cd(), this.jd(), this.Hd(), this.Cd(), this.Id(), this.Bd(); }, this.Fd = function () { return i.startDate.firstDayOfMonth(); }, this.Gd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Id = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2533
2534
  var n = {};
2534
2535
  if (n.start = e, n.end = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(n), n.preventDefault.value))
2535
2536
  return;
@@ -2556,10 +2557,10 @@ var DayPilot = { Global: {} };
2556
2557
  this.onVisibleRangeChanged(e, t);
2557
2558
  break;
2558
2559
  case "Disabled":
2559
- } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Cd(); }, this.Id = function () { this.showToday && "Top" === this.todayPosition && this.Ud(); for (var e = 0; e < this.showMonths; e++) {
2560
- var t = this.Vd(e);
2561
- this.ed(e, t);
2562
- } this.showToday && "Bottom" === this.todayPosition && this.Ud(), this.root.style.height = this.Wd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Ud = function () { if (this.showToday) {
2560
+ } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Bd(); }, this.Hd = function () { this.showToday && "Top" === this.todayPosition && this.Td(); for (var e = 0; e < this.showMonths; e++) {
2561
+ var t = this.Ud(e);
2562
+ this.dd(e, t);
2563
+ } this.showToday && "Bottom" === this.todayPosition && this.Td(), this.root.style.height = this.Vd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Td = function () { if (this.showToday) {
2563
2564
  var e = document.createElement("span");
2564
2565
  e.className = this.L("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () { if ("function" == typeof i.onTodayClick) {
2565
2566
  var e = {};
@@ -2568,7 +2569,7 @@ var DayPilot = { Global: {} };
2568
2569
  } i.select(DayPilot.Date.today()); };
2569
2570
  var t = document.createElement("div");
2570
2571
  t.style.height = this.todayHeight + "px", t.className = this.L("_todaysection"), t.appendChild(e), this.root.appendChild(t);
2571
- } }, this.Wd = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2572
+ } }, this.Vd = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2572
2573
  for (var t = 0; t < this.months.length; t++) {
2573
2574
  var n = this.months[t];
2574
2575
  n.height > e && (e = n.height);
@@ -2577,54 +2578,54 @@ var DayPilot = { Global: {} };
2577
2578
  } for (var t = 0; t < this.months.length; t++) {
2578
2579
  var n = this.months[t];
2579
2580
  e += n.height;
2580
- } return e; }, this.Vd = function (e) { if (this.internal.showLinks)
2581
- return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2581
+ } return e; }, this.Ud = function (e) { if (this.internal.showLinks)
2582
+ return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = i.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2582
2583
  var r = a.createVNode(e, n);
2583
2584
  a.render(r, t);
2584
- } }, this.Sa.Wa = function (e, t) { var n = i.Sa.Ra; if ("function" == typeof n.render) {
2585
+ } }, this.Ra.Va = function (e, t) { var n = i.Ra.Qa; if ("function" == typeof n.render) {
2585
2586
  var a = e;
2586
2587
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
2587
- } }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.tb, this.internal.initialized = function () { return i.Ma; }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.internal.upd = function (e) { i.Kd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
2588
+ } }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.sb, this.internal.initialized = function () { return i.La; }, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.internal.upd = function (e) { i.Jd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
2588
2589
  var e = r.locale();
2589
2590
  return e ? e.weekStarts : 0;
2590
- } return i.weekStarts; }, r.cellWidth = function () { if (i.yb.cellWidth)
2591
- return i.yb.cellWidth; var e = i.Xd("_cell_dimensions").width; return e || (e = i.cellWidth), i.yb.cellWidth = e, e; }, r.ld = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2591
+ } return i.weekStarts; }, r.cellWidth = function () { if (i.xb.cellWidth)
2592
+ return i.xb.cellWidth; var e = i.Wd("_cell_dimensions").width; return e || (e = i.cellWidth), i.xb.cellWidth = e, e; }, r.kd = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2592
2593
  var t = this.selected[e];
2593
- i.Bd(t.parentNode, t.x, t.y);
2594
- } this.selected = []; }, this.Yd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2594
+ i.Ad(t.parentNode, t.x, t.y);
2595
+ } this.selected = []; }, this.Xd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2595
2596
  this.items = {};
2596
2597
  for (var e = 0; e < this.events.list.length; e++) {
2597
2598
  var t = this.events.list[e];
2598
2599
  if (!t.hidden) {
2599
- var n = this.Zd(t);
2600
+ var n = this.Yd(t);
2600
2601
  for (var a in n)
2601
2602
  this.items[a] = 1;
2602
2603
  }
2603
2604
  }
2604
- } }, this.Xd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Zd = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(); i.getTime() <= n.getTime();)
2605
- a[i.toStringSortable()] = 1, i = i.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.xb = function () { if (this.id && this.id.tagName)
2605
+ } }, this.Wd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Yd = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(); i.getTime() <= n.getTime();)
2606
+ a[i.toStringSortable()] = 1, i = i.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.wb = function () { if (this.id && this.id.tagName)
2606
2607
  this.nav.top = this.id;
2607
2608
  else {
2608
2609
  if ("string" != typeof this.id)
2609
2610
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
2610
2611
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2611
2612
  throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
2612
- } this.root = this.nav.top; }, this.init = function () { if (this.xb(), !this.root.dp) {
2613
- this.Ed(), this.kd(), this.Id(), this.ha(), this.Cd(), this.ba(), this.$d(), this.qb();
2614
- if (this.Yd() && this.Jd(), this.Ma = !0, this.wb(), this.Fd) {
2615
- var e = this.Fd;
2616
- this.select(e.date1, e.date2, e.options), this.Fd = null;
2613
+ } this.root = this.nav.top; }, this.init = function () { if (this.wb(), !this.root.dp) {
2614
+ this.Dd(), this.jd(), this.Hd(), this.ha(), this.Bd(), this.ba(), this.Zd(), this.pb();
2615
+ if (this.Xd() && this.Id(), this.La = !0, this.vb(), this.Ed) {
2616
+ var e = this.Ed;
2617
+ this.select(e.date1, e.date2, e.options), this.Ed = null;
2617
2618
  }
2618
2619
  return this;
2619
- } }, this.$d = function () { i.nav.top.onmousedown = this.Rd, i.nav.top.onmousemove = this.Sd; }, this.qb = function () { DayPilot.re(document, "mouseup", i._d); }, this._d = function (e) { if (o.start && o.end) {
2620
+ } }, this.Zd = function () { i.nav.top.onmousedown = this.Qd, i.nav.top.onmousemove = this.Rd; }, this.pb = function () { DayPilot.re(document, "mouseup", i.$d); }, this.$d = function (e) { if (o.start && o.end) {
2620
2621
  var t = DayPilot.mo3(i.nav.top, e);
2621
2622
  if (t.x === o.start.coords.x && t.y === o.start.coords.y)
2622
2623
  return o.start = null, void o.clear();
2623
2624
  o.clear();
2624
2625
  var n = o.ordered();
2625
- n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.dd(), i.kd(), i.Id(), i.Cd(), i.Dd();
2626
+ n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.cd(), i.jd(), i.Hd(), i.Bd(), i.Cd();
2626
2627
  i.O({ "mode": "FreeHand" });
2627
- } o.start = null, o.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.tb(n);
2628
+ } o.start = null, o.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.sb(n);
2628
2629
  }, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
2629
2630
  var n = new DayPilot.Navigator(this.id);
2630
2631
  this.daypilot = n;
@@ -2638,7 +2639,7 @@ var DayPilot = { Global: {} };
2638
2639
  var l = DayPilot.Util.shouldApply(s);
2639
2640
  l ? !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s) : !function (n) { i[n] = function (i) { e(a[n])(t, { "args": i }); }; }(s);
2640
2641
  } var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e) { for (var t in e)
2641
- i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Cd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2642
+ i[t] = e[t]; i.update(); }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Bd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2642
2643
  }
2643
2644
  }(DayPilot), function (DayPilot) {
2644
2645
  function e(e) { var t = e.touches[0].pageX, n = e.touches[0].pageY, a = {}; return a.x = t, a.y = n, a; }
@@ -2647,15 +2648,15 @@ var DayPilot = { Global: {} };
2647
2648
  DayPilot.Scheduler = function (a, o) {
2648
2649
  this.v = "${v}";
2649
2650
  var s = this;
2650
- this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ae = -1, this.be = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.yb = {}, this.yb.cells = [], this.yb.linesVertical = {}, this.yb.linesHorizontal = {}, this.yb.timeHeaderGroups = [], this.yb.timeHeader = {}, this.yb.events = [], this.nav = {}, this.R = {};
2651
+ this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this._d = -1, this.ae = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.R = {};
2651
2652
  var l = this.R;
2653
+ this.be = {};
2654
+ var d = s.be;
2652
2655
  this.ce = {};
2653
- var d = s.ce;
2654
- this.ee = {};
2655
- var c = this.ee, u = {};
2656
- this.scrollTo = function (e) { s.fe(e); }, this.fe = function (e) { if (e) {
2657
- if (!s.Ma)
2658
- return void (s.ge = e);
2656
+ var c = this.ce, u = {};
2657
+ this.scrollTo = function (e) { s.ee(e); }, this.ee = function (e) { if (e) {
2658
+ if (!s.La)
2659
+ return void (s.fe = e);
2659
2660
  var t;
2660
2661
  if (e instanceof DayPilot.Date)
2661
2662
  t = this.getPixels(e).left;
@@ -2666,77 +2667,77 @@ var DayPilot = { Global: {} };
2666
2667
  throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
2667
2668
  t = e;
2668
2669
  }
2669
- var n = s.he.clientWidth, a = s.nav.scroll.clientWidth;
2670
- t < 0 && (t = 0), t > n - a && (t = n - a), s.ie(t);
2670
+ var n = s.ge.clientWidth, a = s.nav.scroll.clientWidth;
2671
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.he(t);
2671
2672
  } }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
2672
- t = s.je(e);
2673
+ t = s.ie(e);
2673
2674
  else {
2674
2675
  if (!(e instanceof DayPilot.Row))
2675
2676
  throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
2676
- t = s.je(e.id);
2677
- } t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.ke = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2678
- var e = s.le();
2677
+ t = s.ie(e.id);
2678
+ } t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.je = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2679
+ var e = s.ke();
2679
2680
  if (e) {
2680
- s.me();
2681
+ s.le();
2681
2682
  for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
2682
2683
  for (var r = 0; r < this.timeHeader[i].length; r++) {
2683
2684
  var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
2684
- if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
2685
- c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
2685
+ if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
2686
+ c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
2686
2687
  break;
2687
2688
  }
2688
2689
  }
2689
2690
  for (var u = 0; u < a.length; u++) {
2690
2691
  var c = a[u];
2691
- s.ne(c.div, c.marginLeft, c.marginRight);
2692
+ s.me(c.div, c.marginLeft, c.marginRight);
2692
2693
  }
2693
2694
  }
2694
- } }, this.oe = function () { s.ke(), s.pe(); }, this.qe = {};
2695
- var h = s.qe;
2696
- h.se = function (e, t, n, a) { var i = e, r = e + n, o = t, l = t + a; return s.elements.events.filter(function (e) { var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight; if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
2697
- return !0; }); }, h.te = function () { var e = [], t = s.le(); if (!t)
2695
+ } }, this.ne = function () { s.je(), s.oe(); }, this.pe = {};
2696
+ var h = s.pe;
2697
+ h.qe = function (e, t, n, a) { var i = e, r = e + n, o = t, l = t + a; return s.elements.events.filter(function (e) { var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight; if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
2698
+ return !0; }); }, h.se = function () { var e = [], t = s.ke(); if (!t)
2698
2699
  return e; for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
2699
2700
  var i = s.elements.events[a], r = i.event, o = r.part.left, l = r.part.left + r.part.width;
2700
2701
  o < n && n < l && e.push(i);
2701
- } return e.area = t, e; }, this.pe = function () { if (this.floatingEvents) {
2702
- var e = h.te();
2703
- s.ve = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.we(t, r, 0); }), s.xe();
2704
- } }, this.elements.sections = [], this.elements.hsections = [], this.ne = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s._a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.me = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2702
+ } return e.area = t, e; }, this.oe = function () { if (this.floatingEvents) {
2703
+ var e = h.se();
2704
+ s.te = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.ve(t, r, 0); }), s.we();
2705
+ } }, this.elements.sections = [], this.elements.hsections = [], this.me = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s.$a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.le = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2705
2706
  var t = this.elements.hsections[e], n = t.cell;
2706
- n && t.firstChild && (t.firstChild.innerHTML = s._a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
2707
- } this.elements.hsections = []; }, this.we = function (e, t, n) { var a = e.section; if (a)
2708
- return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp = s.ve) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.ye = { marginLeft: t, marginRight: n, stamp: s.ve })); a = r(), a.className = s.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n, stamp: s.ve }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, l = o.cache || o.data; l.fontColor && (i.style.color = l.fontColor), this.elements.sections.push(e); }, this.xe = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2707
+ n && t.firstChild && (t.firstChild.innerHTML = s.$a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
2708
+ } this.elements.hsections = []; }, this.ve = function (e, t, n) { var a = e.section; if (a)
2709
+ return a.xe && a.xe.marginLeft === t && a.xe.marginRight === n ? void (a.xe.stamp = s.te) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.xe = { marginLeft: t, marginRight: n, stamp: s.te })); a = r(), a.className = s.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n, stamp: s.te }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, l = o.cache || o.data; l.fontColor && (i.style.color = l.fontColor), this.elements.sections.push(e); }, this.we = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2709
2710
  var n = this.elements.sections[t];
2710
- if (n.section && n.section.ye && n.section.ye.stamp === s.ve)
2711
+ if (n.section && n.section.xe && n.section.xe.stamp === s.te)
2711
2712
  e.push(n);
2712
2713
  else {
2713
2714
  var a = n.event;
2714
2715
  a && (n.firstChild.innerHTML = a.client.html()), DayPilot.de(n.section), n.section = null;
2715
2716
  }
2716
- } this.elements.sections = e; }, this.setScrollX = function (e) { s.ze.enabled ? (s.ze.scrollXRequested = e, setTimeout(function () { var e = s.ze.scrollXRequested; "number" == typeof e && s.ie(e); }, 0)) : s.ie(e); }, this.ie = function (e) { var t = s.nav.scroll, n = s.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ze.enabled ? (s.ze.scrollYRequested = e, setTimeout(function () { var e = s.ze.scrollYRequested; "number" == typeof e && s.Be(e); }, 0)) : s.Be(e); }, this.Be = function (e) { var t = s.nav.scroll, n = s.ae; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2717
- !function () { var e = s.Ae(); s.he.style.height = s.ae + "px", s.he.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
2717
+ } this.elements.sections = e; }, this.setScrollX = function (e) { s.ye.enabled ? (s.ye.scrollXRequested = e, setTimeout(function () { var e = s.ye.scrollXRequested; "number" == typeof e && s.he(e); }, 0)) : s.he(e); }, this.he = function (e) { var t = s.nav.scroll, n = s.ze(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ye.enabled ? (s.ye.scrollYRequested = e, setTimeout(function () { var e = s.ye.scrollYRequested; "number" == typeof e && s.Ae(e); }, 0)) : s.Ae(e); }, this.Ae = function (e) { var t = s.nav.scroll, n = s._d; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2718
+ !function () { var e = s.ze(); s.ge.style.height = s._d + "px", s.ge.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
2718
2719
  var e = 1;
2719
2720
  this.nav.scroll.style.height = "30px";
2720
- var t = this.Ya(), n = t + this.Ce() + e;
2721
- if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
2721
+ var t = this.Xa(), n = t + this.Be() + e;
2722
+ if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.Ce.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
2722
2723
  var a = 30;
2723
2724
  "Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
2724
2725
  }
2725
2726
  for (var i = 0; i < this.elements.linesVertical.length; i++)
2726
- this.elements.linesVertical[i].style.height = this.ae + "px";
2727
- } }, this.Ee = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
2727
+ this.elements.linesVertical[i].style.height = this._d + "px";
2728
+ } }, this.De = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = s.startDate.addDays(s.days), n = 0; n < e.length; n++) {
2728
2729
  var a = e[n].groupBy, i = e[n].format;
2729
2730
  "Default" === a && (a = this.cellGroupBy);
2730
2731
  for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
2731
2732
  var d = {};
2732
- if (d.start = o, d.end = this.Fe(d.start, a), d.start.ticks === d.end.ticks)
2733
+ if (d.start = o, d.end = this.Ee(d.start, a), d.start.ticks === d.end.ticks)
2733
2734
  break;
2734
2735
  d.left = this.getPixels(d.start).left;
2735
2736
  var c = this.getPixels(d.end).left, u = c - d.left;
2736
- if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Ge()) : d.text = this.He(d, a), u > 0) {
2737
+ if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Fe()) : d.text = this.Ge(d, a), u > 0) {
2737
2738
  if ("function" == typeof this.onBeforeTimeHeaderRender) {
2738
2739
  var h = {};
2739
- h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s._a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
2740
+ h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s.$a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
2740
2741
  var f = {};
2741
2742
  f.header = h, f.control = s, this.onBeforeTimeHeaderRender(f), d.text = h.text, d.html = h.html, d.backColor = h.backColor, d.fontColor = h.fontColor, d.toolTip = h.toolTip, d.areas = h.areas, d.cssClass = h.cssClass;
2742
2743
  }
@@ -2745,15 +2746,15 @@ var DayPilot = { Global: {} };
2745
2746
  o = d.end;
2746
2747
  }
2747
2748
  this.timeHeader.push(r);
2748
- } }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.Ae(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.Ie(e, n); if (!a)
2749
- return null; var i = a.x, r = s.Je(i); if (!r)
2750
- return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Ke(a.offset)) : o; }, this.Ie = function (e, t) { t && (e -= 1); var n = Math.floor(e / s.cellWidth), a = s.Je(n); if (!a)
2751
- return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.Le = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * s.Me() * 1e3; if (t < 0)
2752
- return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.Je(a) }; }, this.Bb = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Ke = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Ne = function (e) { DayPilot.Global.touch.start || t.Oe || (s.Pe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Qe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2749
+ } }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Ab(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.ze(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) { var a = this.He(e, n); if (!a)
2750
+ return null; var i = a.x, r = s.Ie(i); if (!r)
2751
+ return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Je(a.offset)) : o; }, this.He = function (e, t) { t && (e -= 1); var n = Math.floor(e / s.cellWidth), a = s.Ie(n); if (!a)
2752
+ return null; var i = {}; return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i; }, this.Ke = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * s.Le() * 1e3; if (t < 0)
2753
+ return { past: !0 }; var a = Math.floor(t / n); return { i: a, current: s.Ie(a) }; }, this.Ab = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Je = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Me = function (e) { DayPilot.Global.touch.start || t.Ne || (s.Oe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Pe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2753
2754
  var t = this.event;
2754
2755
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
2755
2756
  return !1;
2756
- s.Re(e);
2757
+ s.Qe(e);
2757
2758
  var n = {};
2758
2759
  if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(n), n.preventDefault.value))
2759
2760
  return !1;
@@ -2763,11 +2764,11 @@ var DayPilot = { Global: {} };
2763
2764
  a ? a.show(t) : s.contextMenu && s.contextMenu.show(this.event);
2764
2765
  }
2765
2766
  return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
2766
- } }, this.Je = function (e) { var t = s.Me(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Qe = function (e, t) { if ("boolean" == typeof t)
2767
+ } }, this.Ie = function (e) { var t = s.Le(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Pe = function (e, t) { if ("boolean" == typeof t)
2767
2768
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
2768
2769
  var a = t.ctrlKey, i = t.metaKey;
2769
2770
  if (n.client.clickEnabled()) {
2770
- s.Re(t);
2771
+ s.Qe(t);
2771
2772
  var r = {};
2772
2773
  r.e = n, r.control = s, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof s.onEventClick && (s.onEventClick(r), r.preventDefault.value) || "function" == typeof s.onEventClicked && s.onEventClicked(r);
2773
2774
  }
@@ -2778,76 +2779,76 @@ var DayPilot = { Global: {} };
2778
2779
  "function" == typeof s.onEventDeleted && s.onEventDeleted(t);
2779
2780
  } }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, a) { function i() { if (!r.preventDefault.value) {
2780
2781
  switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
2781
- case "Update": s.Te(r);
2782
+ case "Update": s.Se(r);
2782
2783
  }
2783
2784
  "function" == typeof s.onEventResized && s.onEventResized(r);
2784
2785
  } } if ("Disabled" !== this.eventResizeHandling) {
2785
- n = s.Se(n);
2786
+ n = s.Re(n);
2786
2787
  var r = {};
2787
2788
  r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = s, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(r), r.async || i();
2788
- } }, this.rb = function (e) { e = e || {}, clearTimeout(s.Ue), s.timeHeader = null, s.cellProperties = {}, s.Ee(), s.Ve(), s.events.We(), s.R.Ld(), s.clearSelection(), s.ha(), s.Xe(), s.Ye(), s.sb(), s.Ze(), s.$e(), s._e(), s.ia(), s.Z(), s.af(), s.bf = {}, s.cf(), s.ma(), s.df(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.be !== s.visible && this.show() : this.hide(), this.be = this.visible, this.oe(), s.ef(), this.ff(); }, this.ff = function () { if ("function" == typeof s.onAfterUpdate) {
2789
+ } }, this.qb = function (e) { e = e || {}, clearTimeout(s.Te), s.timeHeader = null, s.cellProperties = {}, s.De(), s.Ue(), s.events.Ve(), s.R.Kd(), s.clearSelection(), s.ha(), s.We(), s.Xe(), s.rb(), s.Ye(), s.Ze(), s.$e(), s.ia(), s.Z(), s._e(), s.af = {}, s.bf(), s.ma(), s.cf(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.ae !== s.visible && this.show() : this.hide(), this.ae = this.visible, this.ne(), s.df(), this.ef(); }, this.ef = function () { if ("function" == typeof s.onAfterUpdate) {
2789
2790
  var e = {};
2790
2791
  s.onAfterUpdate(e);
2791
- } }, this.update = function (e) { if (!s.Ma)
2792
+ } }, this.update = function (e) { if (!s.La)
2792
2793
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (s.Q)
2793
- throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.gf(e), u.timeout = setTimeout(u.doit)) : (u.gf(e), u.doit()); }, u.gf = function (e) { if (e) {
2794
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.ff(e), u.timeout = setTimeout(u.doit)) : (u.ff(e), u.doit()); }, u.ff = function (e) { if (e) {
2794
2795
  u.options || (u.options = {});
2795
2796
  for (var t in e)
2796
2797
  u.options[t] = e[t];
2797
- } }, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.hf = function (e) { e.forEach(function (e) { s.if(e.index); }); }, this.jf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.kf = function (e, t, n) { e = DayPilot.ua(e), e = s.jf(e), s.hf(e), this.lf ? (this.Xe(), this.$e(), this.af(), e.forEach(function (e) { s.mf(e.index); }), e.forEach(function (e) { s.nf(e.index); }), this.df(), this.of()) : (e.forEach(function (e) { t || s.mf(e.index), s.nf(e.index); }), e.forEach(function (e) { s.pf(e.index); }), s.df()), s.pe(), n && n(), this.cf(); }, this.Se = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.rf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
2798
- if (s.sf = null, "Disabled" !== s.eventMoveHandling) {
2799
- n = s.Se(n);
2798
+ } }, u.doit = function () { var e = u.options; return u.options = null, s.La ? (s.sb(e), s.qb({ "immediateEvents": !0 }), void s.vb()) : void s.sb(e); }, this.gf = function (e) { e.forEach(function (e) { s.hf(e.index); }); }, this.if = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.jf = function (e, t, n) { e = DayPilot.ua(e), e = s.if(e), s.gf(e), this.kf ? (this.We(), this.Ze(), this._e(), e.forEach(function (e) { s.lf(e.index); }), e.forEach(function (e) { s.mf(e.index); }), this.cf(), this.nf()) : (e.forEach(function (e) { t || s.lf(e.index), s.mf(e.index); }), e.forEach(function (e) { s.of(e.index); }), s.cf()), s.oe(), n && n(), this.bf(); }, this.Re = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.pf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
2799
+ if (s.rf = null, "Disabled" !== s.eventMoveHandling) {
2800
+ n = s.Re(n);
2800
2801
  var r = {};
2801
2802
  r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = s, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
2802
2803
  var o = function () { if (r.loaded = function () { }, r.preventDefault.value)
2803
- return void s.tf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
2804
- case "Update": s.Te(r);
2805
- } s.tf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
2804
+ return void s.sf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
2805
+ case "Update": s.Se(r);
2806
+ } s.sf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
2806
2807
  r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
2807
2808
  r.async || o();
2808
2809
  }
2809
- }, this.Te = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.uf(); }, this.vf = function (e) { if (e)
2810
+ }, this.Se = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.tf(); }, this.uf = function (e) { if (e)
2810
2811
  if (e.args)
2811
2812
  s.O(e.args.start, e.args.end, e.args.resource);
2812
2813
  else {
2813
- var t = s.wf(e);
2814
+ var t = s.vf(e);
2814
2815
  if (!t)
2815
2816
  return;
2816
2817
  s.O(t.start, t.end, t.resource);
2817
2818
  } }, this.O = function (e, t, n) { if ("Disabled" !== s.timeRangeSelectedHandling) {
2818
2819
  var a = t;
2819
- t = s.Se(a);
2820
+ t = s.Re(a);
2820
2821
  var i = {};
2821
2822
  if (i.control = s, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof s.onTimeRangeSelect) {
2822
2823
  if (s.onTimeRangeSelect(i), i.preventDefault.value)
2823
2824
  return;
2824
2825
  e = i.start, t = i.end;
2825
2826
  }
2826
- t = s.qf(t), s.xf(s.yf, e, t), s.zf(s.yf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
2827
- } }, this.xf = function (e, t, n) { if (e) {
2827
+ t = s.pf(t), s.wf(s.xf, e, t), s.yf(s.xf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
2828
+ } }, this.wf = function (e, t, n) { if (e) {
2828
2829
  var a, i = n;
2829
- t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Le(t), e.start.x = a.i, e.start.time = t);
2830
+ t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Ke(t), e.start.x = a.i, e.start.time = t);
2830
2831
  var r = s.startDate.addDays(s.days);
2831
- i.getTime() > r.getTime() ? (e.end.x = s.Af(), e.end.time = r.getTime()) : (a = s.Le(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
2832
- } }, this.Bf = function (e, t) { s.Cf(e, t); }, this.Cf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Df = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Ef(e, t), i = s.Ff(a), r = s.Je(a.start.x), o = s.Je(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Ef = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ie(e), i = s.Ie(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Gf(r).i, n.end.y = s.Gf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Af(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ff = function (e) { e || (e = this.Ef(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2832
+ i.getTime() > r.getTime() ? (e.end.x = s.zf(), e.end.time = r.getTime()) : (a = s.Ke(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
2833
+ } }, this.Af = function (e, t) { s.Bf(e, t); }, this.Bf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Cf = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Df(e, t), i = s.Ef(a), r = s.Ie(a.start.x), o = s.Ie(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Df = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.He(e), i = s.He(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Ff(r).i, n.end.y = s.Ff(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.zf(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ef = function (e) { e || (e = this.Df(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2833
2834
  var a = s.rowlist[n];
2834
2835
  a && t.push(a.id);
2835
- } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.he.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = s; if (e.Ma && !e.Q) {
2836
+ } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.rb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.ge.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = s; if (e.La && !e.Q) {
2836
2837
  e.Q = !0;
2837
- for (var n in e.Hf) {
2838
- var a = e.Hf[n];
2838
+ for (var n in e.Gf) {
2839
+ var a = e.Gf[n];
2839
2840
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
2840
2841
  }
2841
- e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.De = null, e.he.calendar = null, e.he = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.qc(e), c = null;
2842
- } }, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.If(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Gf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
2842
+ e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.Ce = null, e.ge.calendar = null, e.ge = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.pc(e), c = null;
2843
+ } }, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Hf(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Ff = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
2843
2844
  var d = n[l];
2844
2845
  if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
2845
2846
  break;
2846
- } return a; }, this.Jf = function (e) { if (e > this.rowlist.length - 1)
2847
+ } return a; }, this.If = function (e) { if (e > this.rowlist.length - 1)
2847
2848
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
2848
2849
  t += this.rowlist[n].height; var a = this.rowlist[e]; return { top: t - a.height, height: a.height, bottom: t, i: e, data: a }; }, this.events.find = function (e) { if (!s.events.list || "undefined" == typeof s.events.list.length)
2849
2850
  return null; if ("function" == typeof e)
2850
- return s.Kf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
2851
+ return s.Jf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
2851
2852
  if (s.events.list[n].id === e)
2852
2853
  return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2853
2854
  for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
@@ -2858,13 +2859,13 @@ var DayPilot = { Global: {} };
2858
2859
  } if ("object" == typeof e)
2859
2860
  return s.events.findAll(function (t) { for (var n in e)
2860
2861
  if (e[n] !== t.data[n])
2861
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Kf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
2862
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Jf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
2862
2863
  var a = new DayPilot.Event(s.events.list[n], s);
2863
2864
  if (e(a))
2864
2865
  return a;
2865
- } return null; }, this.events.focus = function (e) { var t = s.Lf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Lf(e)) {
2866
+ } return null; }, this.events.focus = function (e) { var t = s.Kf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Kf(e)) {
2866
2867
  var t = e.start(), n = s.getViewport();
2867
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Mf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
2868
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Lf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
2868
2869
  var a = e.resource();
2869
2870
  s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
2870
2871
  } }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
@@ -2884,48 +2885,48 @@ var DayPilot = { Global: {} };
2884
2885
  var o = {};
2885
2886
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
2886
2887
  return;
2887
- s.events.list = o.data, s.Ma && s.update();
2888
+ s.events.list = o.data, s.La && s.update();
2888
2889
  } }; if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
2889
2890
  DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": i, "error": a });
2890
2891
  else {
2891
2892
  var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
2892
2893
  r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
2893
- } }, this.events.Nf = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.Of(n.index); for (var a = 0; a < n.events.length; a++) {
2894
+ } }, this.events.Mf = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.Nf(n.index); for (var a = 0; a < n.events.length; a++) {
2894
2895
  var i = n.events[a].data;
2895
- if (s.Pf(i, e)) {
2896
+ if (s.Of(i, e)) {
2896
2897
  t.push(n), n.events.splice(a, 1);
2897
2898
  break;
2898
2899
  }
2899
- } }), t; }, this.events.Qf = function (e) { if (!e)
2900
+ } }), t; }, this.events.Pf = function (e) { if (!e)
2900
2901
  return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
2901
2902
  var a = t[n];
2902
- s.Of(a.index);
2903
+ s.Nf(a.index);
2903
2904
  for (var i = 0; i < a.events.length; i++) {
2904
2905
  var r = a.events[i];
2905
- if (s.Pf(r.data, e))
2906
+ if (s.Of(r.data, e))
2906
2907
  return a.events[i];
2907
2908
  }
2908
- } return null; }, this.events.Rf = function (e) { var t = [], n = s.Sf(), a = DayPilot.indexOf(s.events.list, e); s.zb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
2909
- s.Of(i.index);
2910
- var o = s.Tf(e, i);
2911
- o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.yb.events[a]), t.push(i), n || (r = !0));
2912
- } }), t; }, this.Pf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2909
+ } return null; }, this.events.Qf = function (e) { var t = [], n = s.Rf(), a = DayPilot.indexOf(s.events.list, e); s.yb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
2910
+ s.Nf(i.index);
2911
+ var o = s.Sf(e, i);
2912
+ o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.xb.events[a]), t.push(i), n || (r = !0));
2913
+ } }), t; }, this.Of = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2913
2914
  var t = s.events.find(e.id);
2914
2915
  return s.events.remove(t), void s.events.add(e);
2915
- } if (s.events.list.find(function (t) { return s.Pf(t, e.data); })) {
2916
- s.ze.Uf && (s.ze.skip = !0);
2917
- var n = s.events.Nf(e.data);
2918
- e.commit(), n = n.concat(s.events.Rf(e.data)), s.events.Vf(n);
2916
+ } if (s.events.list.find(function (t) { return s.Of(t, e.data); })) {
2917
+ s.ye.Tf && (s.ye.skip = !0);
2918
+ var n = s.events.Mf(e.data);
2919
+ e.commit(), n = n.concat(s.events.Qf(e.data)), s.events.Uf(n);
2919
2920
  } }, this.events.remove = function (e) { if (e) {
2920
2921
  if ("string" == typeof e || "number" == typeof e) {
2921
2922
  var t = s.events.find(e);
2922
2923
  return void s.events.remove(t);
2923
2924
  }
2924
- var n = s.Wf(e.data);
2925
- n && s.events.list.splice(n.index, 1), s.ze.Uf && (s.ze.skip = !0);
2926
- var a = s.events.Nf(e.data);
2927
- s.events.Vf(a);
2928
- } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.Wf(e); if (a) {
2925
+ var n = s.Vf(e.data);
2926
+ n && s.events.list.splice(n.index, 1), s.ye.Tf && (s.ye.skip = !0);
2927
+ var a = s.events.Mf(e.data);
2928
+ s.events.Uf(a);
2929
+ } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.Vf(e); if (a) {
2929
2930
  if (!i)
2930
2931
  throw new DayPilot.Exception("Unexpected: event not found in list");
2931
2932
  }
@@ -2933,78 +2934,78 @@ var DayPilot = { Global: {} };
2933
2934
  if (i)
2934
2935
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
2935
2936
  i || s.events.list.push(e.data);
2936
- } if (s.Ma) {
2937
- s.ze.Uf && (s.ze.skip = !0);
2938
- var r = s.events.Rf(e.data);
2939
- s.events.Vf(r);
2940
- } }, this.events.Xf = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.Pf(t, e))
2937
+ } if (s.La) {
2938
+ s.ye.Tf && (s.ye.skip = !0);
2939
+ var r = s.events.Qf(e.data);
2940
+ s.events.Uf(r);
2941
+ } }, this.events.Wf = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.Of(t, e))
2941
2942
  return !1; if (t.resource !== e.resource)
2942
- return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.Yf = { "rows": [] }, this.events.Zf = null, this.events.We = function () { clearTimeout(s.events.Zf), s.events.Zf = null, s.events.Yf.rows = []; }, this.events.$f = 0, this.events.Vf = function (e) { var t = s.events.Yf.rows; e.forEach(function (e) { t.push(e); }), s.events.Yf.rows = DayPilot.ua(t); var n = s.events.uf; s.events.Zf || (s.events.Zf = setTimeout(n, s.events.$f)); }, this.events.uf = function () { clearTimeout(s.events.Zf), s.events.Zf = null; var e = s.events.Yf.rows; s.events.Yf.rows = [], s._f(e), s.ag(), s.Ma && (s.lf && s.Xe(), s.ma(), s.kf(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return s.ze.skip; }, this.ze.skipped = function () { s.ze.skip = !1; }, this.ze.bg = !1, this.ze.Uf = !1, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.dg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
2943
+ return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.Xf = { "rows": [] }, this.events.Yf = null, this.events.Ve = function () { clearTimeout(s.events.Yf), s.events.Yf = null, s.events.Xf.rows = []; }, this.events.Zf = 0, this.events.Uf = function (e) { var t = s.events.Xf.rows; e.forEach(function (e) { t.push(e); }), s.events.Xf.rows = DayPilot.ua(t); var n = s.events.tf; s.events.Yf || (s.events.Yf = setTimeout(n, s.events.Zf)); }, this.events.tf = function () { clearTimeout(s.events.Yf), s.events.Yf = null; var e = s.events.Xf.rows; s.events.Xf.rows = [], s.$f(e), s._f(), s.La && (s.kf && s.We(), s.ma(), s.jf(e)); }, this.ye = {}, this.ye.enabled = !1, this.ye.skip = !1, this.ye.skipUpdate = function () { return s.ye.skip; }, this.ye.skipped = function () { s.ye.skip = !1; }, this.ye.ag = !1, this.ye.Tf = !1, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.cg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
2943
2944
  return e; var n = t; if (e.ticks < t.ticks) {
2944
2945
  for (; n.ticks > e.ticks;)
2945
- n = n.addTime(60 * -s.Me() * 1e3);
2946
+ n = n.addTime(60 * -s.Le() * 1e3);
2946
2947
  return n;
2947
- } var a = this.Le(e); if (a.current)
2948
- return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.If = function (e) { var n = this.Gf(s.coords.y); if ("function" != typeof e.end)
2948
+ } var a = this.Ke(e); if (a.current)
2949
+ return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Hf = function (e) { var n = this.Ff(s.coords.y); if ("function" != typeof e.end)
2949
2950
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
2950
- throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.eg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.dg(e.start()).getTime()); var d = 0; if (t.fg)
2951
+ throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.dg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.cg(e.start()).getTime()); var d = 0; if (t.eg)
2951
2952
  if (i) {
2952
- var c = e.start(), u = this.dg(c);
2953
- d = t.fg.getTime() - u.getTime();
2954
- var h = 60 * s.Me() * 1e3;
2953
+ var c = e.start(), u = this.cg(c);
2954
+ d = t.eg.getTime() - u.getTime();
2955
+ var h = 60 * s.Le() * 1e3;
2955
2956
  d = Math.floor(d / h) * h;
2956
2957
  }
2957
2958
  else
2958
- d = t.fg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.gg && (f = e.start()); var v = s.snapToGrid; v && (f = this.dg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Me = function () { switch (this.scale) {
2959
+ d = t.eg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.fg && (f = e.start()); var v = s.snapToGrid; v && (f = this.cg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Le = function () { switch (this.scale) {
2959
2960
  case "CellDuration": return this.cellDuration;
2960
2961
  case "Minute": return 1;
2961
2962
  case "Hour": return 60;
2962
2963
  case "Day": return 1440;
2963
2964
  case "Week": return 10080;
2964
- } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.hg = function (e) { return e.end.ticks - e.start.ticks; }, this.ig = function () { var e = t.jg.width, n = t.jg.left, a = t.kg, i = t.gg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.jg.start = r, t.jg.end = o; }, this.lg = function () { var e = s.coords, n = t.gg.dpBorder, a = t.gg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.gg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
2965
+ } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.gg = function (e) { return e.end.ticks - e.start.ticks; }, this.hg = function () { var e = t.ig.width, n = t.ig.left, a = t.jg, i = t.fg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.ig.start = r, t.ig.end = o; }, this.kg = function () { var e = s.coords, n = t.fg.dpBorder, a = t.fg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.fg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
2965
2966
  if (r = c, f) {
2966
- var v = s.Ie(d + c + h).cell, p = s.Ie(c).cell, m = p.left + p.width - c;
2967
+ var v = s.He(d + c + h).cell, p = s.He(c).cell, m = p.left + p.width - c;
2967
2968
  o = v.left + v.width - c, o < m && (o = m);
2968
2969
  }
2969
2970
  else
2970
2971
  o = d + h;
2971
- var g = s.Ae();
2972
- c + o > g && (o = g - c), t.jg.left = c, t.jg.width = o, t.jg.style.left = c + "px", t.jg.style.width = o + "px";
2972
+ var g = s.ze();
2973
+ c + o > g && (o = g - c), t.ig.left = c, t.ig.width = o, t.ig.style.left = c + "px", t.ig.style.width = o + "px";
2973
2974
  }
2974
2975
  else {
2975
2976
  if ("left" !== n)
2976
2977
  throw new DayPilot.Exception("Invalid dpBorder.");
2977
2978
  f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
2978
2979
  var y = c + d, b = l;
2979
- f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.jg.left = r, t.jg.width = o, t.jg.style.left = r + "px", t.jg.style.width = o + "px";
2980
- } s.ig(); }, this.mg = function () { if (s.coords && t.ng) {
2981
- var e = t.og, n = this.If(t.ng);
2980
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.ig.left = r, t.ig.width = o, t.ig.style.left = r + "px", t.ig.style.width = o + "px";
2981
+ } s.hg(); }, this.lg = function () { if (s.coords && t.mg) {
2982
+ var e = t.ng, n = this.Hf(t.mg);
2982
2983
  e.row = n.row, e.style.height = DayPilot.Util.atLeast(n.row.height, 0) + "px", e.style.top = n.top + "px", e.style.left = n.left + "px", e.style.width = n.width + "px", e.start = n.start, e.end = n.end;
2983
- } }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(s.progressiveRowRenderingPreload); }, this.rg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
2984
- var a = s.le();
2984
+ } }, this.og = function () { return this.rowHeaderWidth; }, this.pg = function () { return this.qg(s.progressiveRowRenderingPreload); }, this.qg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
2985
+ var a = s.ke();
2985
2986
  t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
2986
- } return { "start": t, "end": n }; }, this.Ye = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.sg = !0; var t = this.pg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.ae + "px", s.divHeader = a, s.progressiveRowRendering)
2987
+ } return { "start": t, "end": n }; }, this.Xe = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.rg = !0; var t = this.og(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s._d + "px", s.divHeader = a, s.progressiveRowRendering)
2987
2988
  n();
2988
2989
  else
2989
2990
  for (var i = this.rowlist.length, r = 0; r < i; r++)
2990
- s.tg(r); s.ug(), this.divResScroll.appendChild(a); }, this.vg = function () { if (s.progressiveRowRendering)
2991
- for (var e = this.qg(), t = 0; t < s.rowlist.length; t++)
2992
- e.start <= t && t < e.end ? s.tg(t) : s.wg(t); }, this.ug = function () { if (!s.R.xg()) {
2991
+ s.sg(r); s.tg(), this.divResScroll.appendChild(a); }, this.ug = function () { if (s.progressiveRowRendering)
2992
+ for (var e = this.pg(), t = 0; t < s.rowlist.length; t++)
2993
+ e.start <= t && t < e.end ? s.sg(t) : s.vg(t); }, this.tg = function () { if (!s.R.wg()) {
2993
2994
  var e = s.divHeader, t = r();
2994
2995
  t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
2995
2996
  var n = r();
2996
2997
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
2997
- var a = this.pg();
2998
- t.style.width = a + "px", t.style.top = this.ae + "px";
2999
- } }, this.wg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.if = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3000
- var a = this.pg(), i = t[e];
2998
+ var a = this.og();
2999
+ t.style.width = a + "px", t.style.top = this._d + "px";
3000
+ } }, this.vg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.hf = function (e) { this.vg(e), this.sg(e); }, this.sg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3001
+ var a = this.og(), i = t[e];
3001
3002
  if (i) {
3002
- var o = this.yg(i), l = r();
3003
+ var o = this.xg(i), l = r();
3003
3004
  l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3004
3005
  var d = o.row, c = this.rowHeaderWidth;
3005
3006
  l.style.width = c + "px", l.style.border = "0px none";
3006
3007
  var u = d.toolTip || d.toolTip;
3007
- u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.zg;
3008
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.yg;
3008
3009
  var h = r();
3009
3010
  h.style.width = c + "px", h.className = this.L("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
3010
3011
  var f = d.backColor || d.backColor;
@@ -3024,12 +3025,12 @@ var DayPilot = { Global: {} };
3024
3025
  case "center": m.style.justifyContent = "center";
3025
3026
  }
3026
3027
  h.appendChild(m);
3027
- var g = d.areas || [], y = s.Ag(i);
3028
+ var g = d.areas || [], y = s.zg(i);
3028
3029
  DayPilot.Areas.attach(h, y, { areas: g });
3029
3030
  var b = r();
3030
3031
  b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.L("_resourcedivider"), h.appendChild(b);
3031
3032
  var w = r(), x = r();
3032
- x.innerHTML = s._a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
3033
+ x.innerHTML = s.$a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
3033
3034
  var _ = d.verticalAlignment || d.verticalAlignment;
3034
3035
  if (_)
3035
3036
  switch (m.style.display = "flex", _) {
@@ -3043,17 +3044,17 @@ var DayPilot = { Global: {} };
3043
3044
  }
3044
3045
  l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
3045
3046
  }
3046
- } }, this.zg = function (e) { var t = this.row, n = s.Ag(t, this.index); s.Bf(n, e); }, this.Bg = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3047
+ } }, this.yg = function (e) { var t = this.row, n = s.zg(t, this.index); s.Af(n, e); }, this.Ag = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3047
3048
  var e = {};
3048
- e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Me())), s.Df(e);
3049
- } }, this.Cg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3049
+ e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Le())), s.Cf(e);
3050
+ } }, this.Bg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3050
3051
  e.cancelBubble = !0, e.preventDefault();
3051
3052
  var t = {};
3052
- t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Me()));
3053
+ t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Le()));
3053
3054
  var n = {};
3054
3055
  n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderRightClick && (s.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof s.onTimeHeaderRightClicked && s.onTimeHeaderRightClicked(n);
3055
- } }, this.Ag = function (e) { return new DayPilot.Row(e, s); }, this.Of = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Dg = {}, this.ha = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3056
- throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Dg = {}; for (var i = 0; i < n.length; i++) {
3056
+ } }, this.zg = function (e) { return new DayPilot.Row(e, s); }, this.Nf = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Cg = {}, this.ha = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3057
+ throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Cg = {}; for (var i = 0; i < n.length; i++) {
3057
3058
  var r = n[i];
3058
3059
  if (r) {
3059
3060
  if ("object" != typeof r)
@@ -3065,54 +3066,54 @@ var DayPilot = { Global: {} };
3065
3066
  if (!("string" == typeof r.id || "number" == typeof r.id))
3066
3067
  throw new DayPilot.Exception("All events must have an id property (string or number)");
3067
3068
  var o = "_" + r.id;
3068
- if (s.Dg[o])
3069
+ if (s.Cg[o])
3069
3070
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3070
- s.Dg[o] = !0, a && this.zb(i), t = s.Eg(r.resource);
3071
+ s.Cg[o] = !0, a && this.yb(i), t = s.Dg(r.resource);
3071
3072
  for (var l = 0; t && l < t.length; l++) {
3072
- var d = t[l], u = this.Tf(r, d);
3073
- u && a && (u.cache = this.yb.events[i]);
3073
+ var d = t[l], u = this.Sf(r, d);
3074
+ u && a && (u.cache = this.xb.events[i]);
3074
3075
  }
3075
3076
  }
3076
- } s.rowlist.forEach(function (e) { s.Fg(e); }), s.ag(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3077
+ } s.rowlist.forEach(function (e) { s.Eg(e); }), s._f(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3077
3078
  var a = t[n];
3078
- if (e && a.resetEvents(), s.Of(a.index), a.id) {
3079
+ if (e && a.resetEvents(), s.Nf(a.index), a.id) {
3079
3080
  var i = typeof a.id + "_" + a.id;
3080
3081
  c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3081
3082
  }
3082
- } }, this.Eg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Sf = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3083
+ } }, this.Dg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Rf = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3083
3084
  var n = s.rowlist[t], a = n.id;
3084
3085
  if (e[a])
3085
3086
  return !0;
3086
3087
  e[a] = !0;
3087
- } return !1; }, this.zb = function (e) { var t = this.yb.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3088
+ } return !1; }, this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3088
3089
  a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
3089
3090
  var r = {};
3090
3091
  r.e = a, r.data = a, this.onBeforeEventRender(r);
3091
- } t[e] = a; }, this.Fg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Ab); for (var t = 0; t < e.events.length; t++) {
3092
+ } t[e] = a; }, this.Eg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.zb); for (var t = 0; t < e.events.length; t++) {
3092
3093
  var n = e.events[t];
3093
3094
  e.putIntoLine(n);
3094
- } }, this._f = function (e) { e = DayPilot.ua(e), e = s.jf(e), e.forEach(function (e) { s.Fg(e); }), e.forEach(function (e) { s.Gg(e); }); }, this.Tf = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.qf(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3095
+ } }, this.$f = function (e) { e = DayPilot.ua(e), e = s.if(e), e.forEach(function (e) { s.Eg(e); }), e.forEach(function (e) { s.Fg(e); }); }, this.Sf = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.pf(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3095
3096
  return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
3096
3097
  var u = DayPilot.indexOf(s.events.list, e);
3097
- c = s.yb.events[u];
3098
+ c = s.xb.events[u];
3098
3099
  } if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
3099
- return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.eg(r - i)) {
3100
+ return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.dg(r - i)) {
3100
3101
  var g = f.boxLeft, y = v.boxRight;
3101
3102
  h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
3102
3103
  }
3103
3104
  else
3104
- h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = s.eventMinWidth; return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h; }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
3105
+ h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = s.eventMinWidth; return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h; }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
3105
3106
  return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < s.rowlist.length; t++) {
3106
- var n = s.Ag(s.rowlist[t]);
3107
+ var n = s.zg(s.rowlist[t]);
3107
3108
  e.push(n);
3108
3109
  } return e; }, this.rows.each = function (e) { s.rows.all().forEach(e); }, this.rows.forEach = function (e) { s.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
3109
- var n = s.Eg(e);
3110
+ var n = s.Dg(e);
3110
3111
  e || (n = s.rowlist);
3111
3112
  var a = null;
3112
3113
  return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, s) : null;
3113
3114
  } if ("function" != typeof e)
3114
- throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Ag(t)); }); if (r)
3115
- return s.Ag(r); }, this.rows.load = function (e, t, n) { if (!e)
3115
+ throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.zg(t)); }); if (r)
3116
+ return s.zg(r); }, this.rows.load = function (e, t, n) { if (!e)
3116
3117
  throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
3117
3118
  n = JSON.parse(i.responseText);
3118
3119
  }
@@ -3123,34 +3124,34 @@ var DayPilot = { Global: {} };
3123
3124
  var o = {};
3124
3125
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
3125
3126
  return;
3126
- s.resources = o.data, s.Ma && s.update();
3127
+ s.resources = o.data, s.La && s.update();
3127
3128
  } }; s.rowsLoadMethod && "POST" === s.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a }); }, this.rows.remove = function (e) { if ("number" == typeof e || "string" == typeof e) {
3128
3129
  var t = s.rows.find(e);
3129
3130
  if (!t)
3130
3131
  throw new DayPilot.Exception("The row to be removed was not found");
3131
3132
  return void s.rows.remove(t);
3132
- } var n = e.$.row.resource, a = DayPilot.indexOf(s.resources, n); s.resources.splice(a, 1), s.update(); }, this.rows.add = function (e) { s.resources.push(e), s.rb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3133
+ } var n = e.$.row.resource, a = DayPilot.indexOf(s.resources, n); s.resources.splice(a, 1), s.update(); }, this.rows.add = function (e) { s.resources.push(e), s.qb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3133
3134
  throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object."); if (!(e instanceof DayPilot.Row)) {
3134
3135
  var t = e;
3135
3136
  if (e = s.rows.find(t.id), !e)
3136
3137
  return;
3137
3138
  e.data = t;
3138
- } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Hg(r), l = s.Ig(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Of(l.index), s.Jg(l), s.Fg(l), s.if(l.index), s.af(), s.df(); }, this.Jg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3139
+ } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Gg(r), l = s.Hg(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Nf(l.index), s.Ig(l), s.Eg(l), s.hf(l.index), s._e(), s.cf(); }, this.Ig = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3139
3140
  var r = t[i];
3140
3141
  if (r) {
3141
3142
  if (r instanceof DayPilot.Event)
3142
3143
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3143
3144
  if (r.resource === e.id) {
3144
- a && this.zb(i);
3145
- var o = this.Tf(r, e);
3146
- o && a && (o.cache = this.yb.events[i]);
3145
+ a && this.yb(i);
3146
+ var o = this.Sf(r, e);
3147
+ o && a && (o.cache = this.xb.events[i]);
3147
3148
  }
3148
3149
  }
3149
- } }, this.Ve = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3150
- throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Kg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Mf(); }, this.Ig = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s._a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.ye, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
3151
- var r = e.events[i], o = s.qf(r.end());
3150
+ } }, this.Ue = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3151
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Jg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Lf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Lf(); }, this.Hg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.$a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.xe, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
3152
+ var r = e.events[i], o = s.pf(r.end());
3152
3153
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
3153
- } return a; }; }, t.Lg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3154
+ } return a; }; }, t.Kg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3154
3155
  var o = this[r];
3155
3156
  if (!(a < o.part.left || e > o.part.left + o.part.width - 1)) {
3156
3157
  if (DayPilot.contains(n, o.data))
@@ -3160,135 +3161,135 @@ var DayPilot = { Global: {} };
3160
3161
  } return !0; }, e; }, t.findFreeLine = function (e, n) { for (var a = 0; a < this.lines.length; a++) {
3161
3162
  if (this.lines[a].isFree(e, n))
3162
3163
  return a;
3163
- } var i = t.Lg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Kg = function (e) { if (e)
3164
+ } var i = t.Kg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Jg = function (e) { if (e)
3164
3165
  for (var t = s.rowlist, n = 0; n < e.length; n++)
3165
3166
  if (e[n]) {
3166
3167
  var a = {};
3167
3168
  a.index = n;
3168
- var i = this.Hg(e[n], a), r = s.Ig(i, parent);
3169
+ var i = this.Gg(e[n], a), r = s.Hg(i, parent);
3169
3170
  r.index = n, t.push(r);
3170
- } }, this.yg = function (e) { var t = {}; return t.row = this.Ag(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Hg = function (e, t) { var n = { get $data() { return this.ye; } }; for (var a in t)
3171
+ } }, this.xg = function (e) { var t = {}; return t.row = this.zg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Gg = function (e, t) { var n = { get $data() { return this.xe; } }; for (var a in t)
3171
3172
  n[a] = t[a]; for (var i in e)
3172
- n[i] = e[i]; return n.html = s._a(e.name, e.html), n.ye = e, n; }, this.Mg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Ng, this.nav.top.ontouchmove = d.Og, this.nav.top.ontouchend = d.Pg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.fb()), t.appendChild(n), t.appendChild(this.Qg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Ce() + this.Ya() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Ce() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Rg()), i.appendChild(s.Sg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Ce(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Ug = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.qg(), a = n.start; a < n.end; a++) {
3173
+ n[i] = e[i]; return n.html = s.$a(e.name, e.html), n.xe = e, n; }, this.Lg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Mg, this.nav.top.ontouchmove = d.Ng, this.nav.top.ontouchend = d.Og; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.eb()), t.appendChild(n), t.appendChild(this.Pg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Be() + this.Xa() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Be() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Qg()), i.appendChild(s.Rg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Be(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Sg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.pg(), a = n.start; a < n.end; a++) {
3173
3174
  var i = t.rows[a];
3174
3175
  if (i) {
3175
3176
  var r = s.rowHeaderWidth;
3176
3177
  i.style.width = r + "px";
3177
3178
  i.firstChild.style.width = r + "px";
3178
3179
  }
3179
- } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ce() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Ce = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Vg = null, this.Qg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll"); var n = s.R.xg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Wg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.Vg && clearTimeout(s.Vg), n) {
3180
- var a = function () { var t = s.Xg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3181
- DayPilot.browser.ios ? t.Wg && (s.Vg = setTimeout(a, 10)) : s.Vg = setTimeout(a, 10);
3180
+ } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.$e = function () { this.Sg(), this.Tg(); }, this.eb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Be() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Be = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Ug = null, this.Pg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Xa() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll"); var n = s.R.wg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Vg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.Ug && clearTimeout(s.Ug), n) {
3181
+ var a = function () { var t = s.Wg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3182
+ DayPilot.browser.ios ? t.Vg && (s.Ug = setTimeout(a, 10)) : s.Ug = setTimeout(a, 10);
3182
3183
  }
3183
3184
  else
3184
- s.Vg = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.De = e, e; }, this.Yg = null, this.Zg = null, this.$g = function () { var e = function () { s._g(), s.ef(); }, t = function () { var t = s.nav.top; if (t) {
3185
- if (!s.Yg)
3186
- return s.Yg = {}, void (s.Yg.width = t.offsetWidth);
3187
- s.Yg.width !== t.offsetWidth && (s.Yg.width = t.offsetWidth, e());
3188
- } }; if (!s.Zg) {
3185
+ s.Ug = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Ce = e, e; }, this.Xg = null, this.Yg = null, this.Zg = function () { var e = function () { s.$g(), s.df(); }, t = function () { var t = s.nav.top; if (t) {
3186
+ if (!s.Xg)
3187
+ return s.Xg = {}, void (s.Xg.width = t.offsetWidth);
3188
+ s.Xg.width !== t.offsetWidth && (s.Xg.width = t.offsetWidth, e());
3189
+ } }; if (!s.Yg) {
3189
3190
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3190
- n.observe(s.nav.top), s.Zg = n;
3191
- } }, this._g = function () { s.Q || (s.ma(), s.ah(), s.yb.drawArea = null); }, this.ah = function () { var e = s.yf; s.clearSelection(), s.yf = e, s.zf(e, { "justDraw": !0 }); }, this.Rg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ce() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Xg(), "Max" === t && e > s.height ? s.height : e); }, this.Xg = function () { var e; return this.ae !== -1 ? (e = this.ae, this.ae > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Sg = function () {
3191
+ n.observe(s.nav.top), s.Yg = n;
3192
+ } }, this.$g = function () { s.Q || (s.ma(), s._g(), s.xb.drawArea = null); }, this._g = function () { var e = s.xf; s.clearSelection(), s.xf = e, s.yf(e, { "justDraw": !0 }); }, this.Qg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Be() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.ze() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Xa = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Wg(), "Max" === t && e > s.height ? s.height : e); }, this.Wg = function () { var e; return this._d !== -1 ? (e = this._d, this._d > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Rg = function () {
3192
3193
  var e = r();
3193
- e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Ce() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.he = r();
3194
- var t = this.he;
3194
+ e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Xa() + "px", e.style.top = this.Be() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.ge = r();
3195
+ var t = this.ge;
3195
3196
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
3196
- var n = this.Ae();
3197
- return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh,
3198
- t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
3199
- }, this.qb = function () { t.fh || (t.fh = !0, DayPilot.re(document, "mouseup", t._d), DayPilot.reNonPassive(document, "touchmove", t.gh), DayPilot.re(document, "touchend", t.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, s.jh = this.nav.scroll.scrollLeft, s.kh = this.nav.scroll.scrollTop, this.divNorth && (s.lh = this.divNorth.clientWidth); }, this.mh = {}, this.mh.step = 300, this.mh.delay = 10, this.mh.mode = "display", this.mh.layers = !1, this.Gg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3197
+ var n = this.ze();
3198
+ return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ah, t.onmousemove = this.bh, t.onmouseup = this.ch, t.oncontextmenu = this.dh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.dh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.dh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.dh,
3199
+ t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.dh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
3200
+ }, this.pb = function () { t.eh || (t.eh = !0, DayPilot.re(document, "mouseup", t.$d), DayPilot.reNonPassive(document, "touchmove", t.fh), DayPilot.re(document, "touchend", t.gh)); }, this.hh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.df, s.ih = this.nav.scroll.scrollLeft, s.jh = this.nav.scroll.scrollTop, this.divNorth && (s.kh = this.divNorth.clientWidth); }, this.lh = {}, this.lh.step = 300, this.lh.delay = 10, this.lh.mode = "display", this.lh.layers = !1, this.Fg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3200
3201
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3201
3202
  var r = a[i];
3202
3203
  r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
3203
3204
  }
3204
3205
  t += s.eventHeight;
3205
- } }, this.Ue = null, this.na = function (e) { if (!s.Q) {
3206
- var t = this.mh.step;
3207
- "display" === this.mh.mode ? this.divEvents.style.display = "none" : "visibility" === this.mh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3208
- var n = "Progressive" === this.dynamicEventRendering, a = this.le(), i = a.pixels.top, r = a.pixels.bottom;
3209
- s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) { s.Gg(n); for (var a = 0; a < n.lines.length; a++)
3206
+ } }, this.Te = null, this.na = function (e) { if (!s.Q) {
3207
+ var t = this.lh.step;
3208
+ "display" === this.lh.mode ? this.divEvents.style.display = "none" : "visibility" === this.lh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3209
+ var n = "Progressive" === this.dynamicEventRendering, a = this.ke(), i = a.pixels.top, r = a.pixels.bottom;
3210
+ s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) { s.Fg(n); for (var a = 0; a < n.lines.length; a++)
3210
3211
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
3211
- var o = i[r], l = s.Va(o);
3212
+ var o = i[r], l = s.Ua(o);
3212
3213
  if (e && l && (t--, t <= 0))
3213
- return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Ue = setTimeout(function () { s.na(e); }, s.mh.delay));
3214
- } }), this.divEvents.style.display = "", this.pe();
3215
- } }, this.nf = function (e) { var t = s.rowlist[e]; this.Gg(t); for (var n = 0; n < t.lines.length; n++)
3214
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Te = setTimeout(function () { s.na(e); }, s.lh.delay));
3215
+ } }), this.divEvents.style.display = "", this.oe();
3216
+ } }, this.mf = function (e) { var t = s.rowlist[e]; this.Fg(t); for (var n = 0; n < t.lines.length; n++)
3216
3217
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
3217
3218
  var r = a[i];
3218
- this.Va(r);
3219
+ this.Ua(r);
3219
3220
  } }, this.Z = function () { if (this.elements.events)
3220
3221
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
3221
3222
  var n = this.elements.events[t];
3222
- this.Pa(n);
3223
- } this.elements.events = []; }, this.mf = function (e) { if (this.elements.events) {
3223
+ this.Oa(n);
3224
+ } this.elements.events = []; }, this.lf = function (e) { if (this.elements.events) {
3224
3225
  for (var t = this.elements.events.length, n = [], a = 0; a < t; a++) {
3225
3226
  var i = this.elements.events[a];
3226
- i.event.part.dayIndex === e && (this.Pa(i), n.push(a));
3227
+ i.event.part.dayIndex === e && (this.Oa(i), n.push(a));
3227
3228
  }
3228
3229
  for (var a = n.length - 1; a >= 0; a--)
3229
3230
  this.elements.events.splice(n[a], 1);
3230
- } }, this.Pa = function (e) { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
3231
- var n = t && t.Qa;
3231
+ } }, this.Oa = function (e) { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
3232
+ var n = t && t.Pa;
3232
3233
  if (n) {
3233
- var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
3234
- a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
3234
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
3235
+ a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
3235
3236
  }
3236
- } e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.oh = function () { if ("Progressive" === this.dynamicEventRendering) {
3237
+ } e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.nh = function () { if ("Progressive" === this.dynamicEventRendering) {
3237
3238
  if (s.dynamicEventRenderingCacheSweeping) {
3238
3239
  var e = s.dynamicEventRenderingCacheSize || 0;
3239
3240
  this.divEvents.style.display = "none";
3240
3241
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
3241
3242
  var i = this.elements.events[a];
3242
- this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
3243
+ this.oh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Oa(i) : t.unshift(i);
3243
3244
  }
3244
3245
  this.elements.events = t, this.divEvents.style.display = "";
3245
3246
  }
3246
- } }, this.qh = function (e) { for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3247
+ } }, this.ph = function (e) { for (var t = this.ke(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3247
3248
  var i = this.elements.cells[a];
3248
- t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.gb(i));
3249
- } }, this.gb = function (e) { if (e && e.coords) {
3249
+ t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.fb(i));
3250
+ } }, this.fb = function (e) { if (e && e.coords) {
3250
3251
  var t = e.coords.x, n = e.coords.y;
3251
3252
  !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
3252
- var n = t && t.Qa;
3253
+ var n = t && t.Pa;
3253
3254
  if (n) {
3254
- var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
3255
- a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
3255
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
3256
+ a ? s.bg.mh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
3256
3257
  }
3257
- } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.yb.cells[t + "_" + n] = null;
3258
- } }, this.rh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3258
+ } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.xb.cells[t + "_" + n] = null;
3259
+ } }, this.qh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3259
3260
  return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, a = 0; a < this.rowlist.length; a++) {
3260
3261
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
3261
3262
  if (!e || !(n <= r || t >= o))
3262
3263
  for (var s = 0; s < i.lines.length; s++)
3263
3264
  for (var l = i.lines[s], d = 0; d < l.length; d++) {
3264
3265
  var c = l[d];
3265
- if (this.uh(c))
3266
+ if (this.rh(c))
3266
3267
  return !0;
3267
3268
  }
3268
- } return !1; }, this.uh = function (e) { if (e.rendered)
3269
- return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.ph = function (e) { if (!e.rendered)
3270
- return !0; var t = this.le(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight; return r <= o || i >= l || (a <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3271
- return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.le(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w; if (!n && a && (x || _))
3272
- return !1; var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var M = D.padding || s.eventPadding; "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k); var T = r(); T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.vh, T.onmousedown = this.wh, T.onmouseup = this.xh, T.ontouchstart = d.yh, T.ontouchmove = d.zh, T.ontouchend = d.Ah, e.client.clickEnabled() && (T.onclick = this.Ne), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1"); var A = r(); A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A); var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime(); if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
3273
- var N = 100 * e.part.barLeft / C, R = Math.ceil(100 * e.part.barWidth / C), I = r();
3269
+ } return !1; }, this.rh = function (e) { if (e.rendered)
3270
+ return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.oh = function (e) { if (!e.rendered)
3271
+ return !0; var t = this.ke(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight; return r <= o || i >= l || (a <= d || n >= c); }, this.Ua = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3272
+ return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.ke(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w; if (!n && a && (x || _))
3273
+ return !1; var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var M = D.padding || s.eventPadding; "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k); var T = r(); T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.uh, T.onmousedown = this.vh, T.onmouseup = this.wh, T.ontouchstart = d.xh, T.ontouchmove = d.yh, T.ontouchend = d.zh, e.client.clickEnabled() && (T.onclick = this.Me), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1"); var A = r(); A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A); var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime(); if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
3274
+ var R = 100 * e.part.barLeft / C, N = Math.ceil(100 * e.part.barWidth / C), I = r();
3274
3275
  I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
3275
3276
  var L = r();
3276
- L.className = this.L("_event_bar_inner"), L.style.left = N + "%", 0 < R && R <= 1 ? L.style.width = "1px" : L.style.width = R + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
3277
+ L.className = this.L("_event_bar_inner"), L.style.left = R + "%", 0 < N && N <= 1 ? L.style.width = "1px" : L.style.width = N + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
3277
3278
  } T.row = i, T.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3278
- return void s.Bh(A, D.text, D.html); var t = {}; if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3279
+ return void s.Ah(A, D.text, D.html); var t = {}; if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3279
3280
  var n = A;
3280
3281
  if (n) {
3281
- t.Qa = n;
3282
+ t.Pa = n;
3282
3283
  var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
3283
3284
  if (a) {
3284
- if (!s.cg.reactDOM)
3285
+ if (!s.bg.reactDOM)
3285
3286
  throw new DayPilot.Exception("Can't reach ReactDOM");
3286
- s.cg.Vc(t.element, n);
3287
+ s.bg.Uc(t.element, n);
3287
3288
  }
3288
3289
  else if (i) {
3289
- if (!s.Sa.Ra)
3290
+ if (!s.Ra.Qa)
3290
3291
  throw new DayPilot.Exception("Can't reach Vue");
3291
- s.Sa.Ta = !0, s.Sa.Wa(t.element, n), s.Sa.Ta = !1;
3292
+ s.Ra.Sa = !0, s.Ra.Va(t.element, n), s.Ra.Sa = !1;
3292
3293
  }
3293
3294
  else
3294
3295
  n.appendChild(t.element);
@@ -3298,95 +3299,95 @@ var DayPilot = { Global: {} };
3298
3299
  A.innerHTML = e.client.innerHTML(); }(); var P = []; return function () { if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
3299
3300
  var e = s.durationBarVisible ? s.durationBarHeight : 0;
3300
3301
  P.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
3301
- } }(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0; }, this._a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Bh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.of = function () { for (var e = 0; e < this.elements.events.length; e++) {
3302
+ } }(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0; }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ah = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.nf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3302
3303
  var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
3303
3304
  n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3304
- } }, this.Ch = function (e) { if (!e)
3305
+ } }, this.Bh = function (e) { if (!e)
3305
3306
  return null; for (var t = 0; t < s.elements.events.length; t++) {
3306
3307
  var n = s.elements.events[t];
3307
3308
  if (n.event === e || n.event.data === e.data)
3308
3309
  return n;
3309
- } return null; }, this.Lf = function (e) { var t = s.events.Qf(e.data); if (!t)
3310
- return null; var n = s.rowlist[t.part.dayIndex]; return s.Gg(n), s.Va(t, { "forced": !0 }), s.Ch(t); }, this.vh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3311
- t = t.parentNode; s.Dh(t, e), s.Re(e); }, this.Pe = {}, this.wh = function (e) { s.Re(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Oe = !0, t.gg = this, t.kg = this.event, t.Eh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Fh(this, e)); }, this.xh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Fh = function (e, t) { var n = s.Pe; s.Re(t), n.Gh = !0, n.Pe = e, n.ng = e.event, n.Eh = DayPilot.mc(t), n.Hh = DayPilot.mo3(e, t).x, n.fg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
3312
- d.Hf = [];
3313
- d.relativeCoords = function (e) { return d.Ih(e); }, d.startResizing = function (e, t) { d.Jh(e, t); }, d.startMoving = function (e, t) { d.Fh(e, t); }, d.yh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3314
- t.stopPropagation(), d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3310
+ } return null; }, this.Kf = function (e) { var t = s.events.Pf(e.data); if (!t)
3311
+ return null; var n = s.rowlist[t.part.dayIndex]; return s.Fg(n), s.Ua(t, { "forced": !0 }), s.Bh(t); }, this.uh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3312
+ t = t.parentNode; s.Ch(t, e), s.Qe(e); }, this.Oe = {}, this.vh = function (e) { s.Qe(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ne = !0, t.fg = this, t.jg = this.event, t.Dh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Eh(this, e)); }, this.wh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Eh = function (e, t) { var n = s.Oe; s.Qe(t), n.Fh = !0, n.Oe = e, n.mg = e.event, n.Dh = DayPilot.mc(t), n.Gh = DayPilot.mo3(e, t).x, n.eg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
3313
+ d.Gf = [];
3314
+ d.relativeCoords = function (e) { return d.Hh(e); }, d.startResizing = function (e, t) { d.Ih(e, t); }, d.startMoving = function (e, t) { d.Eh(e, t); }, d.xh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3315
+ t.stopPropagation(), d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3315
3316
  var n = t.currentTarget;
3316
- s.coords = d.Ih(t);
3317
+ s.coords = d.Hh(t);
3317
3318
  var a = s.tapAndHoldTimeout;
3318
- d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3319
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3319
3320
  case "Move": if (a.client.moveEnabled()) {
3320
3321
  var i = e(t);
3321
- d.Fh(n, i);
3322
+ d.Eh(n, i);
3322
3323
  }
3323
3324
  } }, a));
3324
- } }, d.zh = function () { d.Kh(), DayPilot.Global.touch.start = !1; }, d.Ah = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3325
- if (d.Kh(), DayPilot.Global.touch.start) {
3325
+ } }, d.yh = function () { d.Jh(), DayPilot.Global.touch.start = !1; }, d.zh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3326
+ if (d.Jh(), DayPilot.Global.touch.start) {
3326
3327
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3327
3328
  var t = e.currentTarget;
3328
- setTimeout(function () { s.Qe(t, e); });
3329
+ setTimeout(function () { s.Pe(t, e); });
3329
3330
  }
3330
3331
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3331
- } }, d.Ng = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3332
- d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3332
+ } }, d.Mg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3333
+ d.Jh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3333
3334
  var t = s.tapAndHoldTimeout;
3334
- d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Ih(e), d.Lh = s.Mh(); }, t));
3335
- s.coords = d.Ih(e);
3336
- } }, d.Og = function (e) { if (d.Kh(), DayPilot.Global.touch.start = !1, t.gg)
3337
- return e.preventDefault(), void d.Nh(); if (DayPilot.Global.touch.active) {
3338
- if (e.preventDefault(), s.coords = d.Ih(e), t.Pe)
3339
- return void d.Oh();
3340
- if (d.Lh) {
3341
- var n = d.Lh;
3342
- n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.zf(n);
3335
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Hh(e), d.Kh = s.Lh(); }, t));
3336
+ s.coords = d.Hh(e);
3337
+ } }, d.Ng = function (e) { if (d.Jh(), DayPilot.Global.touch.start = !1, t.fg)
3338
+ return e.preventDefault(), void d.Mh(); if (DayPilot.Global.touch.active) {
3339
+ if (e.preventDefault(), s.coords = d.Hh(e), t.Oe)
3340
+ return void d.Nh();
3341
+ if (d.Kh) {
3342
+ var n = d.Kh;
3343
+ n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.yf(n);
3343
3344
  }
3344
- } }, d.debug = function () { }, d.Pg = function (e) { d.Kh(); if (DayPilot.Global.touch.active) {
3345
- if (t.Pe) {
3345
+ } }, d.debug = function () { }, d.Og = function (e) { d.Jh(); if (DayPilot.Global.touch.active) {
3346
+ if (t.Oe) {
3346
3347
  e.preventDefault();
3347
- var n = t.ng;
3348
- if (s !== t.og.calendar)
3348
+ var n = t.mg;
3349
+ if (s !== t.ng.calendar)
3349
3350
  return;
3350
- var a = t.og.start, r = t.og.end, o = t.og.row.id;
3351
- DayPilot.Util.removeClass(t.Pe, s.L("_event_moving_source")), DayPilot.de(t.og), t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, t.og = null, s.M(n, a, r, o);
3351
+ var a = t.ng.start, r = t.ng.end, o = t.ng.row.id;
3352
+ DayPilot.Util.removeClass(t.Oe, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, t.ng = null, s.M(n, a, r, o);
3352
3353
  }
3353
- if (d.Lh) {
3354
- var l = d.Lh;
3355
- d.Lh = null;
3354
+ if (d.Kh) {
3355
+ var l = d.Kh;
3356
+ d.Kh = null;
3356
3357
  var c = s.elements.range2;
3357
- c && c.overlapping ? s.clearSelection() : s.vf(l);
3358
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
3358
3359
  }
3359
3360
  }
3360
3361
  else if (DayPilot.Global.touch.start) {
3361
3362
  if (s.coords.x < s.getScrollX())
3362
3363
  return;
3363
- var l = s.Mh();
3364
- s.zf(l);
3364
+ var l = s.Lh();
3365
+ s.yf(l);
3365
3366
  var c = s.elements.range2;
3366
- c && c.overlapping ? s.clearSelection() : s.vf(l);
3367
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Kh = function () { for (var e = 0; e < d.Hf.length; e++)
3368
- clearTimeout(d.Hf[e]); d.Hf = []; }, d.Ih = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.he, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Fh = function (e, n) { t.Pe = e, t.ng = e.event, t.Eh = n; var a = DayPilot.abs(e); t.Hh = n.x - a.x, t.fg = s.getDate(s.coords.x, !0), t.og = s.ca(e), s.mg(); }, d.Jh = function (e, n) { t.gg = e, t.kg = e.event, t.gg.dpBorder = n, t.jg || (t.jg = s.ca(e)), s.lg(); }, d.Nh = function () { if (!t.jg) {
3369
- var e = t.gg;
3370
- t.jg = s.ca(e);
3371
- } s.lg(); }, d.Oh = function () { if (!t.og) {
3372
- var e = t.Pe;
3373
- t.og = s.ca(e);
3374
- } t.og.calendar.mg(); }, this.Dh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3367
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
3368
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Jh = function () { for (var e = 0; e < d.Gf.length; e++)
3369
+ clearTimeout(d.Gf[e]); d.Gf = []; }, d.Hh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.ge, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Eh = function (e, n) { t.Oe = e, t.mg = e.event, t.Dh = n; var a = DayPilot.abs(e); t.Gh = n.x - a.x, t.eg = s.getDate(s.coords.x, !0), t.ng = s.ca(e), s.lg(); }, d.Ih = function (e, n) { t.fg = e, t.jg = e.event, t.fg.dpBorder = n, t.ig || (t.ig = s.ca(e)), s.kg(); }, d.Mh = function () { if (!t.ig) {
3370
+ var e = t.fg;
3371
+ t.ig = s.ca(e);
3372
+ } s.kg(); }, d.Nh = function () { if (!t.ng) {
3373
+ var e = t.Oe;
3374
+ t.ng = s.ca(e);
3375
+ } t.ng.calendar.lg(); }, this.Ch = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3375
3376
  var r = DayPilot.mo3(e, n);
3376
- if (r && (s.eventOffset = r, !t.gg && !t.Pe)) {
3377
+ if (r && (s.eventOffset = r, !t.fg && !t.Oe)) {
3377
3378
  var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
3378
- r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.gg || t.Pe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3379
+ r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.fg || t.Oe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3379
3380
  }
3380
- } }, this.Af = function () { var e = s.Me(); return s.days * (1440 / e); }, this.wf = function (e) { if (e = e || t.Lh || s.yf, !e)
3381
+ } }, this.zf = function () { var e = s.Le(); return s.days * (1440 / e); }, this.vf = function (e) { if (e = e || t.Kh || s.xf, !e)
3381
3382
  return null; var n = s.rowlist[e.start.y]; if (!n)
3382
- return null; var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid; u ? (a = s.Je(d).start, i = s.Je(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.Ze = function () { this.yb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3383
+ return null; var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid; u ? (a = s.Ie(d).start, i = s.Ie(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.Ye = function () { this.xb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3383
3384
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
3384
- this.Ph(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ae(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.He = function (e, t) { var n = null, a = this.R.Ge(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3385
+ this.Oh(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.ze(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ge = function (e, t) { var n = null, a = this.R.Fe(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3385
3386
  case "Minute":
3386
3387
  n = i.toString("m");
3387
3388
  break;
3388
3389
  case "Hour":
3389
- n = "Clock12Hours" === s.R.Qh() ? i.toString("h tt", a) : i.toString("H", a);
3390
+ n = "Clock12Hours" === s.R.Ph() ? i.toString("h tt", a) : i.toString("H", a);
3390
3391
  break;
3391
3392
  case "Day":
3392
3393
  n = i.toString(a.datePattern);
@@ -3408,10 +3409,10 @@ var DayPilot = { Global: {} };
3408
3409
  break;
3409
3410
  case "Cell":
3410
3411
  var r = (e.end.ticks - e.start.ticks) / 6e4;
3411
- n = this.Rh(i, r);
3412
+ n = this.Qh(i, r);
3412
3413
  break;
3413
3414
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3414
- } return n; }, this.Rh = function (e, t) { var n = this.R.Ge(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Qh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Fe = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3415
+ } return n; }, this.Qh = function (e, t) { var n = this.R.Fe(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Ph() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Ee = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3415
3416
  case "Minute":
3416
3417
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3417
3418
  break;
@@ -3445,47 +3446,47 @@ var DayPilot = { Global: {} };
3445
3446
  a = i;
3446
3447
  break;
3447
3448
  case "Cell":
3448
- var d = this.Le(e);
3449
+ var d = this.Ke(e);
3449
3450
  d.current && (a = d.current.end);
3450
3451
  break;
3451
3452
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3452
- } return a.getTime() > i.getTime() && (a = i), a; }, this.Ph = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Bg, u.oncontextmenu = this.Cg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s._a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ag = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.lf = !0), e.height = t; }), s.lf && (s.yb.drawArea = null); }, this.$e = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3453
+ } return a.getTime() > i.getTime() && (a = i), a; }, this.Oh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Ag, u.oncontextmenu = this.Bg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.$a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this._f = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.kf = !0), e.height = t; }), s.kf && (s.xb.drawArea = null); }, this.Ze = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3453
3454
  var n = e.index;
3454
3455
  if (t.rows[n]) {
3455
3456
  var a = t.rows[n];
3456
- s.sg && (a.style.top = e.top + "px");
3457
+ s.rg && (a.style.top = e.top + "px");
3457
3458
  var i = e.height;
3458
3459
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
3459
3460
  }
3460
- } }), s.sg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.ae + "px"); }, this.bh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3461
- return !1; if (s.Re(e), "Disabled" === s.timeRangeSelectedHandling)
3462
- return !1; var n = DayPilot.Util.mouseButton(e); if (s.Sh())
3461
+ } }), s.rg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s._d + "px"); }, this.ah = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3462
+ return !1; if (s.Qe(e), "Disabled" === s.timeRangeSelectedHandling)
3463
+ return !1; var n = DayPilot.Util.mouseButton(e); if (s.Rh())
3463
3464
  return !1; if (n.middle || n.right)
3464
- return !1; if (s.Th(s.coords))
3465
- return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.Uh = a, t.Lh = s.Mh(), t.Lh && (t.Vh = s), !1; }, this.Mh = function () { var e = {}, t = s.Ie(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Gf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.zf(e), e; }, this.dh = function (e) { if (s.Pe = {}, s.yf) {
3465
+ return !1; if (s.Sh(s.coords))
3466
+ return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.Th = a, t.Kh = s.Lh(), t.Kh && (t.Uh = s), !1; }, this.Lh = function () { var e = {}, t = s.He(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Ff(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.yf(e), e; }, this.ch = function (e) { if (s.Oe = {}, s.xf) {
3466
3467
  if (DayPilot.Util.mouseButton(e).left) {
3467
- var n = s.yf;
3468
- if (s.Th(s.coords)) {
3469
- var a = function (e) { return function () { t.Wh = null; var n = s.wf(e); if (n) {
3468
+ var n = s.xf;
3469
+ if (s.Sh(s.coords)) {
3470
+ var a = function (e) { return function () { t.Vh = null; var n = s.vf(e); if (n) {
3470
3471
  var a = {};
3471
3472
  a.start = n.start, a.end = n.end, a.resource = n.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeClick && s.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof s.onTimeRangeClicked && s.onTimeRangeClicked(a);
3472
3473
  } }; };
3473
3474
  "Disabled" !== s.timeRangeClickHandling && a(n)();
3474
3475
  }
3475
3476
  }
3476
- } }, this.Sh = function () { return !!(t.gg || t.Pe || t.Lh) || !!s.Pe.Gh; }, this.dragInProgress = function () { return s.Sh(); }, this.Re = function (e) { var t = DayPilot.mo3(s.he, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ch = function (e) { if (!DayPilot.Global.touch.active) {
3477
+ } }, this.Rh = function () { return !!(t.fg || t.Oe || t.Kh) || !!s.Oe.Fh; }, this.dragInProgress = function () { return s.Rh(); }, this.Qe = function (e) { var t = DayPilot.mo3(s.ge, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.bh = function (e) { if (!DayPilot.Global.touch.active) {
3477
3478
  var n = DayPilot.mc(e);
3478
- if (s.Re(e), s.Pe.Gh) {
3479
- DayPilot.distance(s.Pe.Eh, n) > 2 && (DayPilot.Util.copyProps(s.Pe, t), i().style.cursor = "move", s.Pe = {});
3479
+ if (s.Qe(e), s.Oe.Fh) {
3480
+ DayPilot.distance(s.Oe.Dh, n) > 2 && (DayPilot.Util.copyProps(s.Oe, t), i().style.cursor = "move", s.Oe = {});
3480
3481
  }
3481
- t.gg && t.kg.calendar === s ? (t.gg.event || (t.gg.event = t.kg), s.Xh()) : t.ng ? s.Yh() : t.Lh && t.Lh.calendar === s && (t.Lh.moved = !0, s.Zh());
3482
- } }, this.Zh = function () { var e = t.Lh, n = s.Ie(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.zf(e); }, this.Xh = function () { t.jg || (t.jg = s.ca(t.gg)), s.lg(); }, this.Yh = function () { if (!t.og) {
3483
- DayPilot.Util.addClass(t.Pe, s.L("_event_moving_source"));
3484
- var e = t.ng;
3485
- t.og = s.ca(e);
3486
- } s.mg(); }, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) { var t = s.yf; if (!t || !t.start || !t.end)
3487
- return !1; var n = this.Jf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.zf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3488
- var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Je(f), m = s.Je(v);
3482
+ t.fg && t.jg.calendar === s ? (t.fg.event || (t.fg.event = t.jg), s.Wh()) : t.mg ? s.Xh() : t.Kh && t.Kh.calendar === s && (t.Kh.moved = !0, s.Yh());
3483
+ } }, this.Yh = function () { var e = t.Kh, n = s.He(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.yf(e); }, this.Wh = function () { t.ig || (t.ig = s.ca(t.fg)), s.kg(); }, this.Xh = function () { if (!t.ng) {
3484
+ DayPilot.Util.addClass(t.Oe, s.L("_event_moving_source"));
3485
+ var e = t.mg;
3486
+ t.ng = s.ca(e);
3487
+ } s.lg(); }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Sh = function (e) { var t = s.xf; if (!t || !t.start || !t.end)
3488
+ return !1; var n = this.If(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.yf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3489
+ var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Ie(f), m = s.Ie(v);
3489
3490
  t = p.left, n = m.left + m.width;
3490
3491
  }
3491
3492
  else
@@ -3493,68 +3494,68 @@ var DayPilot = { Global: {} };
3493
3494
  y = r(), y.style.position = "absolute";
3494
3495
  var b = r();
3495
3496
  b.className = s.L("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
3496
- } return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y; } if (e = e || t.Lh) {
3497
+ } return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y; } if (e = e || t.Kh) {
3497
3498
  var a = s.eventBorderRadius;
3498
3499
  "number" == typeof a && (a += "px");
3499
3500
  var i = s.snapToGrid, o = s.rowlist;
3500
3501
  n(e);
3501
- } }, this.$h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!s.coords)
3502
- return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Gf(e.y, e.grid).element; return e.row = s.Ag(t), e.time = s.getDate(e.x, !0), e; }, this.Hf = {}, this.Hf.na = null, this.Hf.drawCells = null, this.Hf.drawRows = null, this.Hf.click = null, this.Hf.resClick = [], this.Hf.updateFloats = null, this.ef = function () { if (!s.Q) {
3503
- s.cf();
3502
+ } }, this.Zh = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!s.coords)
3503
+ return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Ff(e.y, e.grid).element; return e.row = s.zg(t), e.time = s.getDate(e.x, !0), e; }, this.Gf = {}, this.Gf.na = null, this.Gf.drawCells = null, this.Gf.drawRows = null, this.Gf.click = null, this.Gf.resClick = [], this.Gf.updateFloats = null, this.df = function () { if (!s.Q) {
3504
+ s.bf();
3504
3505
  var e = s.nav.scroll;
3505
- if (s.jh = e.scrollLeft, s.kh = e.scrollTop, s.lh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.jh), DayPilot.browser.ios && t.Wg ? n() : s.divResScroll.scrollTop = s.kh, s.progressiveRowRendering && (s.Hf.drawRows && (clearTimeout(s.Hf.drawRows), s.Hf.drawRows = null), s.scrollDelayRows > 0 ? s.Hf.drawRows = setTimeout(function () { s.vg(); }, s.scrollDelayRows) : s.vg()), s.Hf.drawCells && (clearTimeout(s.Hf.drawCells), s.Hf.drawCells = null), s.scrollDelayCells > 0)
3506
- s.Hf.drawCells = setTimeout(s._h(), s.scrollDelayCells);
3506
+ if (s.ih = e.scrollLeft, s.jh = e.scrollTop, s.kh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.ih), DayPilot.browser.ios && t.Vg ? n() : s.divResScroll.scrollTop = s.jh, s.progressiveRowRendering && (s.Gf.drawRows && (clearTimeout(s.Gf.drawRows), s.Gf.drawRows = null), s.scrollDelayRows > 0 ? s.Gf.drawRows = setTimeout(function () { s.ug(); }, s.scrollDelayRows) : s.ug()), s.Gf.drawCells && (clearTimeout(s.Gf.drawCells), s.Gf.drawCells = null), s.scrollDelayCells > 0)
3507
+ s.Gf.drawCells = setTimeout(s.$h(), s.scrollDelayCells);
3507
3508
  else {
3508
- s._h()();
3509
+ s.$h()();
3509
3510
  }
3510
- s.Hf.na && (clearTimeout(s.Hf.na), s.Hf.na = null), s.scrollDelayEvents > 0 ? s.Hf.na = setTimeout(s.ai(), s.scrollDelayEvents) : s.na(), s.Hf.updateFloats && (clearTimeout(s.Hf.updateFloats), s.Hf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Hf.updateFloats = setTimeout(function () { s.oe(); }, s.scrollDelayFloats) : s.oe(), s.onScrollCalled = !0;
3511
- } }, this._h = function () { return function () { s && s.df(); }; }, this.ai = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.pe()); }; }, this.cf = function () { s.yb.drawArea = null; }, this.show = function () { s.visible = !0, s.be = !0, s.nav.top.style.display = "", s.u(), s._g(), s.ef(); }, this.hide = function () { s.visible = !1, s.be = !1, s.nav.top.style.display = "none"; }, this.Wf = function (e) { if (!s.events.list)
3511
+ s.Gf.na && (clearTimeout(s.Gf.na), s.Gf.na = null), s.scrollDelayEvents > 0 ? s.Gf.na = setTimeout(s._h(), s.scrollDelayEvents) : s.na(), s.Gf.updateFloats && (clearTimeout(s.Gf.updateFloats), s.Gf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Gf.updateFloats = setTimeout(function () { s.ne(); }, s.scrollDelayFloats) : s.ne(), s.onScrollCalled = !0;
3512
+ } }, this.$h = function () { return function () { s && s.cf(); }; }, this._h = function () { return function () { s && (s.qh() ? setTimeout(function () { s.nh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.oe()); }; }, this.bf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ae = !0, s.nav.top.style.display = "", s.u(), s.$g(), s.df(); }, this.hide = function () { s.visible = !1, s.ae = !1, s.nav.top.style.display = "none"; }, this.Vf = function (e) { if (!s.events.list)
3512
3513
  return null; for (var t = 0; t < this.events.list.length; t++) {
3513
3514
  var n = this.events.list[t];
3514
- if (s.Pf(n, e)) {
3515
+ if (s.Of(n, e)) {
3515
3516
  var a = {};
3516
3517
  return a.ex = n, a.index = t, a;
3517
3518
  }
3518
- } return null; }, this.bi = function () { var e = this.le(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
3519
+ } return null; }, this.ai = function () { var e = this.ke(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
3519
3520
  for (var o = t + r, s = 0; s < i; s++) {
3520
3521
  var l = a + s;
3521
- this.hd(o, l);
3522
+ this.gd(o, l);
3522
3523
  }
3523
- this.ci(o);
3524
- } for (var d = this.qg(), l = d.start; l < d.end; l++)
3525
- this.di(l); }, this.df = function () { if (!s.Q) {
3524
+ this.bi(o);
3525
+ } for (var d = this.pg(), l = d.start; l < d.end; l++)
3526
+ this.ci(l); }, this.cf = function () { if (!s.Q) {
3526
3527
  var e = s.rowlist;
3527
3528
  if (e && e.length > 0) {
3528
3529
  if (this.cellSweeping) {
3529
3530
  var t = this.cellSweepingCacheSize;
3530
- this.qh(t);
3531
+ this.ph(t);
3531
3532
  }
3532
- this.bi();
3533
+ this.ai();
3533
3534
  }
3534
- this.lf = !1;
3535
- } }, this.le = function () { if (s.yb.drawArea)
3536
- return s.yb.drawArea; if (!this.nav.scroll)
3537
- return null; var e = s.kh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.jh - n, r = i + s.lh + 2 * n, o = 0, l = 0; o = s.Ie(i).x, l = s.Ie(r, !0).x; var d = this.Af(); l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0); var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Gf(c).i, f = this.Gf(u).i; f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f; var v = s.nav.scroll; return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.yb.drawArea = t, t; }, this.Ae = function () { return s.Af() * s.cellWidth; }, this.di = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.yb.linesHorizontal[a]) {
3538
- var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ae(), c = r();
3539
- c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.yb.linesHorizontal[a] = c;
3540
- } }, this.ci = function (e) { var t = s.Je(e); if (t) {
3541
- var n = s.divLines, a = s.ae, i = "x_" + e;
3542
- if (!this.yb.linesVertical[i]) {
3535
+ this.kf = !1;
3536
+ } }, this.ke = function () { if (s.xb.drawArea)
3537
+ return s.xb.drawArea; if (!this.nav.scroll)
3538
+ return null; var e = s.jh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.ih - n, r = i + s.kh + 2 * n, o = 0, l = 0; o = s.He(i).x, l = s.He(r, !0).x; var d = this.zf(); l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0); var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Ff(c).i, f = this.Ff(u).i; f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f; var v = s.nav.scroll; return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t; }, this.ze = function () { return s.zf() * s.cellWidth; }, this.ci = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.xb.linesHorizontal[a]) {
3539
+ var i = t[e], o = i.height, l = i.top + o - 1, d = this.ze(), c = r();
3540
+ c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.xb.linesHorizontal[a] = c;
3541
+ } }, this.bi = function (e) { var t = s.Ie(e); if (t) {
3542
+ var n = s.divLines, a = s._d, i = "x_" + e;
3543
+ if (!this.xb.linesVertical[i]) {
3543
3544
  var o = t.left + t.width - 1, l = r();
3544
- l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.yb.linesVertical[i] = l;
3545
+ l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.xb.linesVertical[i] = l;
3545
3546
  }
3546
- } }, this.Xe = function () { s.ae = s.ei(s.rowlist); }, this.ei = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3547
+ } }, this.We = function () { s._d = s.di(s.rowlist); }, this.di = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3547
3548
  var a = e[n];
3548
3549
  a.top = t, t += a.height;
3549
- } return t; }, this.af = function () { s.elements.cells = [], s.yb.cells = [], s.divCells.innerHTML = "", s.fi(); }, this.fi = function () { s.divLines.innerHTML = "", s.yb.linesVertical = {}, s.yb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.pf = function (e) { var t = []; for (var n in s.yb.cells)
3550
- t.push(s.yb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); }); }, this.hd = function (e, t) { if (this.Ma) {
3551
- var n = s.Je(e);
3550
+ } return t; }, this._e = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.ei(); }, this.ei = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.of = function (e) { var t = []; for (var n in s.xb.cells)
3551
+ t.push(s.xb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.fb(e); }); }, this.gd = function (e, t) { if (this.La) {
3552
+ var n = s.Ie(e);
3552
3553
  if (n) {
3553
3554
  var a = s.rowlist, i = s.divCells, o = e + "_" + t;
3554
- if (!this.yb.cells[o]) {
3555
- var l = this.gi(e, t), d = s.hi(e, t), c = r();
3555
+ if (!this.xb.cells[o]) {
3556
+ var l = this.fi(e, t), d = s.gi(e, t), c = r();
3556
3557
  if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
3557
- if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s._a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
3558
+ if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.$a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
3558
3559
  switch (c.style.display = "flex", l.horizontalAlignment) {
3559
3560
  case "right":
3560
3561
  c.style.justifyContent = "flex-end";
@@ -3574,7 +3575,7 @@ var DayPilot = { Global: {} };
3574
3575
  case "bottom": c.style.alignItems = "flex-end";
3575
3576
  }
3576
3577
  }
3577
- DayPilot.Areas.attach(c, d.cell, { "areas": l.areas || d.cell.areas });
3578
+ DayPilot.Areas.attach(c, d.cell, { "areas": l.areas });
3578
3579
  }
3579
3580
  var u = { start: n.start, end: n.end, resource: a[t].id, div: c, properties: l, x: e, y: t };
3580
3581
  !function () { if ("function" == typeof s.onBeforeCellDomAdd || "function" == typeof s.onBeforeCellDomRemove) {
@@ -3582,39 +3583,39 @@ var DayPilot = { Global: {} };
3582
3583
  if (e.control = s, e.cell = u, e.element = null, c.domArgs = e, "function" == typeof s.onBeforeCellDomAdd && s.onBeforeCellDomAdd(e), e.element) {
3583
3584
  var t = c;
3584
3585
  if (t) {
3585
- e.Qa = t;
3586
+ e.Pa = t;
3586
3587
  var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
3587
3588
  if (n) {
3588
- if (!s.cg.reactDOM)
3589
+ if (!s.bg.reactDOM)
3589
3590
  throw new DayPilot.Exception("Can't reach ReactDOM");
3590
- s.cg.Vc(e.element, t);
3591
+ s.bg.Uc(e.element, t);
3591
3592
  }
3592
3593
  else if (a) {
3593
- if (!s.Sa.Ra)
3594
+ if (!s.Ra.Qa)
3594
3595
  throw new DayPilot.Exception("Can't reach Vue");
3595
- s.Sa.Ta = !0, s.Sa.Wa(e.element, t), s.Sa.Ta = !1;
3596
+ s.Ra.Sa = !0, s.Ra.Va(e.element, t), s.Ra.Sa = !1;
3596
3597
  }
3597
3598
  else
3598
3599
  t.appendChild(e.element);
3599
3600
  }
3600
3601
  }
3601
- } }(), i.appendChild(c), this.elements.cells.push(c), this.yb.cells[o] = c;
3602
+ } }(), i.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
3602
3603
  }
3603
3604
  }
3604
- } }, this.hi = function (e, t) { var n = s.Je(e); if (!n)
3605
- return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Ag(a), properties: s.gi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
3605
+ } }, this.gi = function (e, t) { var n = s.Ie(e); if (!n)
3606
+ return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.zg(a), properties: s.fi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
3606
3607
  var d = e + "_" + t;
3607
- if (s.beforeCellRenderCaching && s.bf[d])
3608
+ if (s.beforeCellRenderCaching && s.af[d])
3608
3609
  return l;
3609
- s.bf[d] = !0, this.onBeforeCellRender(l);
3610
- } return l; }, this.clearSelection = function () { this.ii(); }, this.ji = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.je(n), i = s.Le(e); if (!i.current)
3611
- throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Le(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
3612
- throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.ji(e, t, n); s.zf(i), a || setTimeout(function () { s.vf(i); }, 0); }, this.tf = function () { var e = t.og && t.og.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.og), t.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ii = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.yf = null, s.ki = null; }, l.Ld = function () { delete s.yb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Ge = function () { return DayPilot.Locale.find(s.locale); }, l.Qh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Ge().timeFormat; }, l.ea = function () { if ("Auto" === s.weekStarts) {
3613
- var e = l.Ge();
3610
+ s.af[d] = !0, this.onBeforeCellRender(l);
3611
+ } return l; }, this.clearSelection = function () { this.hi(); }, this.ii = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ie(n), i = s.Ke(e); if (!i.current)
3612
+ throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Ke(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
3613
+ throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.ii(e, t, n); s.yf(i), a || setTimeout(function () { s.uf(i); }, 0); }, this.sf = function () { var e = t.ng && t.ng.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.hi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.xf = null, s.ji = null; }, l.Kd = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Fe = function () { return DayPilot.Locale.find(s.locale); }, l.Ph = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Fe().timeFormat; }, l.ea = function () { if ("Auto" === s.weekStarts) {
3614
+ var e = l.Fe();
3614
3615
  return e ? e.weekStarts : 0;
3615
- } return s.weekStarts || 0; }, l.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.eg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Me() * 1e3; }, this.gi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3616
+ } return s.weekStarts || 0; }, l.wg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.dg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Le() * 1e3; }, this.fi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3616
3617
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
3617
- var i = a[t], r = i.id, o = s.Je(e), l = o.start, d = o.end, c = {};
3618
+ var i = a[t], r = i.id, o = s.Ie(e), l = o.start, d = o.end, c = {};
3618
3619
  c.start = l, c.end = d, c.resource = r;
3619
3620
  var u = {};
3620
3621
  u.business = s.isBusiness(c), this.cellProperties[n] = u;
@@ -3633,7 +3634,7 @@ var DayPilot = { Global: {} };
3633
3634
  return !0;
3634
3635
  if (r >= l)
3635
3636
  return !1;
3636
- } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.li = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.li, this.je = function (e) { return s.Eg(e)[0]; }, this.xb = function () { if (this.id && this.id.tagName)
3637
+ } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.ki = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Be() + 2), this.ma(); }, this.setHeight = this.ki, this.ie = function (e) { return s.Dg(e)[0]; }, this.wb = function () { if (this.id && this.id.tagName)
3637
3638
  this.nav.top = this.id;
3638
3639
  else {
3639
3640
  if ("string" != typeof this.id)
@@ -3641,17 +3642,17 @@ var DayPilot = { Global: {} };
3641
3642
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3642
3643
  throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
3643
3644
  } }, this.init = function () {
3644
- if (this.Ma)
3645
+ if (this.La)
3645
3646
  throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");
3646
- if (this.xb(), this.nav.top.dp) {
3647
+ if (this.wb(), this.nav.top.dp) {
3647
3648
  if (this.nav.top.dp === s)
3648
3649
  return s;
3649
3650
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3650
3651
  }
3651
- return this.mi(), this.$g(), this;
3652
- }, this.mi = function () { this.Mg(), this.qb(), this.ba(), this.ih(), this.rb(); var angular = s.ze.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.ef(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.cf(), this.wb(), this.Ma = !0; var t = s.ge; t ? s.scrollTo(t) : s.ef(); }, this.vb = null, this.tb = function (e) { if (e) {
3653
- var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.fe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ie(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Be(this.data); } } };
3654
- s.vb = t, s.ze.scrollToRequested && (t.scrollTo.data = s.ze.scrollToRequested, s.ze.scrollToRequested = null), s.ze.scrollXRequested && (t.scrollX.data = s.ze.scrollXRequested, s.ze.scrollXRequested = null), s.ze.scrollYRequested && (t.scrollY.data = s.ze.scrollYRequested, s.ze.scrollYRequested = null);
3652
+ return this.li(), this.Zg(), this;
3653
+ }, this.li = function () { this.Lg(), this.pb(), this.ba(), this.hh(), this.qb(); var angular = s.ye.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.df(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.bf(), this.vb(), this.La = !0; var t = s.fe; t ? s.scrollTo(t) : s.df(); }, this.ub = null, this.sb = function (e) { if (e) {
3654
+ var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.ee(this.data); } }, "scrollX": { "postInit": function () { this.data && s.he(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ae(this.data); } } };
3655
+ s.ub = t, s.ye.scrollToRequested && (t.scrollTo.data = s.ye.scrollToRequested, s.ye.scrollToRequested = null), s.ye.scrollXRequested && (t.scrollX.data = s.ye.scrollXRequested, s.ye.scrollXRequested = null), s.ye.scrollYRequested && (t.scrollY.data = s.ye.scrollYRequested, s.ye.scrollYRequested = null);
3655
3656
  for (var n in e)
3656
3657
  t[n] || (s[n] = e[n]);
3657
3658
  for (var a in e)
@@ -3659,63 +3660,63 @@ var DayPilot = { Global: {} };
3659
3660
  var i = t[a];
3660
3661
  i.data = e[a], i.preInit && i.preInit();
3661
3662
  }
3662
- } }, this.wb = function () { var e = s.vb; for (var t in e) {
3663
+ } }, this.vb = function () { var e = s.ub; for (var t in e) {
3663
3664
  var n = e[t];
3664
3665
  n.postInit && n.postInit();
3665
- } s.vb = {}; }, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.cg.Vc = function (e, t) { var n = s.cg.reactDOM; if ("function" == typeof n.createRoot) {
3666
- var a = t.ni;
3667
- a || (a = n.createRoot(t), t.ni = a), a.render(e);
3666
+ } s.ub = {}; }, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.bg.Uc = function (e, t) { var n = s.bg.reactDOM; if ("function" == typeof n.createRoot) {
3667
+ var a = t.mi;
3668
+ a || (a = n.createRoot(t), t.mi = a), a.render(e);
3668
3669
  }
3669
3670
  else
3670
- n.render(e, t); }, this.cg.nh = function (e) { var t = s.cg.reactDOM; if ("function" == typeof t.createRoot) {
3671
- var n = e.ni;
3672
- setTimeout(function () { n.unmount(), e.ni = null; }, 0);
3671
+ n.render(e, t); }, this.bg.mh = function (e) { var t = s.bg.reactDOM; if ("function" == typeof t.createRoot) {
3672
+ var n = e.mi;
3673
+ setTimeout(function () { n.unmount(), e.mi = null; }, 0);
3673
3674
  }
3674
3675
  else
3675
- t.unmountComponentAtNode(e); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) { var a = s.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3676
+ t.unmountComponentAtNode(e); }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) { var a = s.Ra.Qa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3676
3677
  var i = a.createVNode(e, n);
3677
3678
  a.render(i, t);
3678
- } }, this.Sa.Wa = function (e, t) { var n = s.Sa.Ra; if ("function" == typeof n.render) {
3679
+ } }, this.Ra.Va = function (e, t) { var n = s.Ra.Qa; if ("function" == typeof n.render) {
3679
3680
  var a = e;
3680
3681
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
3681
- } }, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.qf, this.internal.adjustEndNormalize = s.rf, this.internal.xssTextHtml = s._a, this.internal.touch = s.ce, this.internal.skipUpdate = s.ze.skipUpdate, this.internal.skipped = s.ze.skipped, this.internal.loadOptions = s.tb, this.internal.postInit = s.wb, this.internal.enableAngular2 = function () { s.ze.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { s.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { s.events.uf(); }, this.internal.enableReact = function (e, t) { s.cg.react = e, s.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Sa.Ra = e; }, this.internal.vueRef = function () { return s.Sa.Ra; }, this.internal.vueRendering = function () { return s.Sa.Ta; }, this.tb(o);
3682
+ } }, this.Ra.Ta = function (e) { var t = s.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.pf, this.internal.adjustEndNormalize = s.qf, this.internal.xssTextHtml = s.$a, this.internal.touch = s.be, this.internal.skipUpdate = s.ye.skipUpdate, this.internal.skipped = s.ye.skipped, this.internal.loadOptions = s.sb, this.internal.postInit = s.vb, this.internal.enableAngular2 = function () { s.ye.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ye.Tf = !0; }, this.internal.resourcesFromAttr = function () { s.ye.ag = !0; }, this.internal.evImmediateRefresh = function () { s.events.tf(); }, this.internal.enableReact = function (e, t) { s.bg.react = e, s.bg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.bg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ra.Qa = e; }, this.internal.vueRef = function () { return s.Ra.Qa; }, this.internal.vueRendering = function () { return s.Ra.Sa; }, this.sb(o);
3682
3683
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3683
3684
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
3684
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.oi = {}; var n = this.oi; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.pi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.pi.events.length; t++)
3685
- e.push(a.pi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.pi.events.length; }, a.events.forRange = function (e, t) { return a.pi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); }; }, t.Pe = null, t.ng = null, t.Eh = null, t.gg = null, t.kg = null, t.Oe = !1, t.fh = !1, t.Wh = null, t.qi = null, t.qc = function () { DayPilot.ue(document, "mouseup", t._d), DayPilot.ue(document, "touchmove", t.gh), DayPilot.ue(document, "touchend", t.hh), t.fh = !1; }, t.gh = function (e) { if (t.gg) {
3686
- var n = t.gg.event.calendar;
3687
- n.coords = n.ce.Ih(e), n.ce.Nh(), e.preventDefault();
3688
- } if (t.Pe) {
3685
+ throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.ni = {}; var n = this.ni; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.oi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.oi.events.length; t++)
3686
+ e.push(a.oi.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.oi.events.length; }, a.events.forRange = function (e, t) { return a.oi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); }; }, t.Oe = null, t.mg = null, t.Dh = null, t.fg = null, t.jg = null, t.Ne = !1, t.eh = !1, t.Vh = null, t.pi = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.$d), DayPilot.ue(document, "touchmove", t.fh), DayPilot.ue(document, "touchend", t.gh), t.eh = !1; }, t.fh = function (e) { if (t.fg) {
3687
+ var n = t.fg.event.calendar;
3688
+ n.coords = n.be.Hh(e), n.be.Mh(), e.preventDefault();
3689
+ } if (t.Oe) {
3689
3690
  e.preventDefault();
3690
- var n = t.ng.calendar;
3691
- n.coords = n.ce.Ih(e), n.ce.Oh();
3692
- } }, t.hh = function (e) { t.Wg = !1, t._d(e); }, t._d = function (e) { if (t.gg) {
3693
- var a = function () { var e = t.kg, n = e.calendar; i().style.cursor = "", t.gg = null, t.kg = null, DayPilot.de(t.jg), t.jg = null, n && (n.ri = null); };
3694
- if (setTimeout(function () { t.Oe = !1; }), !t.jg)
3691
+ var n = t.mg.calendar;
3692
+ n.coords = n.be.Hh(e), n.be.Nh();
3693
+ } }, t.gh = function (e) { t.Vg = !1, t.$d(e); }, t.$d = function (e) { if (t.fg) {
3694
+ var a = function () { var e = t.jg, n = e.calendar; i().style.cursor = "", t.fg = null, t.jg = null, DayPilot.de(t.ig), t.ig = null, n && (n.qi = null); };
3695
+ if (setTimeout(function () { t.Ne = !1; }), !t.ig)
3695
3696
  return void a();
3696
- var r = t.kg, o = r.calendar, s = t.jg.start, l = t.jg.end, d = "left" === t.gg.dpBorder ? "start" : "end";
3697
+ var r = t.jg, o = r.calendar, s = t.ig.start, l = t.ig.end, d = "left" === t.fg.dpBorder ? "start" : "end";
3697
3698
  a(), o.K(r, s, l, d);
3698
3699
  }
3699
- else if (t.ng) {
3700
- var a = function () { DayPilot.Global.movingAreaData = null; var e = t.og && t.og.calendar; t.og && (DayPilot.de(t.og), t.og.calendar = null), i().style.cursor = "", t.Pe = null, t.ng = null, e && (e.sf = null); };
3701
- if (!t.og)
3700
+ else if (t.mg) {
3701
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.ng && t.ng.calendar; t.ng && (DayPilot.de(t.ng), t.ng.calendar = null), i().style.cursor = "", t.Oe = null, t.mg = null, e && (e.rf = null); };
3702
+ if (!t.ng)
3702
3703
  return void a();
3703
- var r = t.ng, o = t.og.calendar;
3704
+ var r = t.mg, o = t.ng.calendar;
3704
3705
  if (!o)
3705
3706
  return void a();
3706
- if (t.og.source = t.Pe, !t.og.row)
3707
+ if (t.ng.source = t.Oe, !t.ng.row)
3707
3708
  return void a();
3708
- var s = t.og.start, l = t.og.end, c = t.og.row.id;
3709
- t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
3709
+ var s = t.ng.start, l = t.ng.end, c = t.ng.row.id;
3710
+ t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
3710
3711
  }
3711
- else if (t.Lh) {
3712
- var u = DayPilot.Util.mouseButton(e), h = t.Lh, f = h.calendar, a = function () { };
3713
- if (f.ki = null, t.Wh)
3714
- return clearTimeout(t.Wh), t.Wh = null, void a();
3715
- f.yf = h, t.Lh = null;
3716
- var v = function (e) { return function () { t.Wh = null, f.vf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.yf = e; }; }, p = f.$h(h);
3717
- return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Wh = null);
3718
- } t.Hh = null, t.fg = null; };
3712
+ else if (t.Kh) {
3713
+ var u = DayPilot.Util.mouseButton(e), h = t.Kh, f = h.calendar, a = function () { };
3714
+ if (f.ji = null, t.Vh)
3715
+ return clearTimeout(t.Vh), t.Vh = null, void a();
3716
+ f.xf = h, t.Kh = null;
3717
+ var v = function (e) { return function () { t.Vh = null, f.uf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.xf = e; }; }, p = f.Zh(h);
3718
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Vh = null);
3719
+ } t.Gh = null, t.eg = null; };
3719
3720
  }
3720
3721
  }(DayPilot);
3721
3722