@daypilot/daypilot-lite-angular 4.2.0 → 4.2.1

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.
@@ -144,7 +144,7 @@ DayPilot Lite
144
144
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
145
145
  https://www.daypilot.org/
146
146
  Licensed under Apache Software License 2.0
147
- Version: 2025.3.686-lite
147
+ Version: 2025.3.691-lite
148
148
  */
149
149
  var DayPilot = {};
150
150
  if ("undefined" == typeof DayPilot)
@@ -654,7 +654,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
654
654
  } }, t.gMouseUp = function (n) { if (t.resizing) {
655
655
  if (!t.resizingShadow)
656
656
  return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
657
- var i = t.resizing.event, a = t.resizingShadow.clientHeight + 4, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
657
+ var i = t.resizing.event, a = t.resizingShadow.clientHeight, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
658
658
  t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", i.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, i.calendar.K(i, a, o, r);
659
659
  }
660
660
  else if (t.moving) {
@@ -679,7 +679,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
679
679
  if (this instanceof t.Calendar && !this.P && (o = !0, this.P = !0), !o)
680
680
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
681
681
  var r = this;
682
- this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.686-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.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.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.R(); }, this.R = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.S = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); __doPostBack(r.uniqueID, a); }, this.U = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.W, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.Q || (e.Q = !0, clearInterval(e.X), e.Y(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Z(), e._(), 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.aa = function () { this.nav.top.dispose = this.dispose; }, this.V = function (e) { r.W(e.responseText); }, this.T = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this.ba = function (e, t) { for (var n = e.parentNode; n && "TD" !== n.tagName;)
682
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.691-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.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.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.R(); }, this.R = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.S = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); __doPostBack(r.uniqueID, a); }, this.U = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.W, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.Q || (e.Q = !0, clearInterval(e.X), e.Y(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Z(), e._(), 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.aa = function () { this.nav.top.dispose = this.dispose; }, this.V = function (e) { r.W(e.responseText); }, this.T = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this.ba = function (e, t) { for (var n = e.parentNode; n && "TD" !== n.tagName;)
683
683
  n = n.parentNode; var i = r.eventBorderRadius; "number" == typeof i && (i += "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 = r.L("_shadow"); var o = document.createElement("div"); return o.className = r.L("_shadow_inner"), i && (o.style.borderRadius = i, a.style.borderRadius = i), a.appendChild(o), n.firstChild.appendChild(a), a; }, this.ca = {}, this.ca.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.ca.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.ca.da = function () { return "Disabled" !== r.xssProtection; }, this.ca.ea = function () { if ("Auto" === r.weekStarts) {
684
684
  var e = s.locale();
685
685
  return e ? e.weekStarts : 0;
@@ -759,48 +759,37 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
759
759
  throw "newStart is null"; if (!n)
760
760
  throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.U("EventResize", i, a); }, this.eventResizePostBack = function (e, t, n, i) { if (!t)
761
761
  throw "newStart is null"; if (!n)
762
- throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.S("EventResize", i, a); }, this.K = function (e, t, n, i) { var a = 1, o = new Date, l = new Date, d = e.start(), c = e.end(); s.fa(); if ("top" === i) {
763
- var u = d.getDatePart(), h = Math.floor((n - a) / r.cellHeight);
764
- r.snapToGrid || (h = (n - a) / r.cellHeight);
765
- var f = h * s.fa(), v = 60 * f * 1e3, p = 60 * r.sa() * 60 * 1e3;
766
- o = u.addTime(v + p), l = e.end();
767
- }
768
- else if ("bottom" === i) {
769
- var u = c.getDatePart(), h = Math.floor((n + t - a) / r.cellHeight);
770
- r.snapToGrid || (h = (n + t - a) / r.cellHeight);
771
- var f = h * s.fa(), v = 60 * f * 1e3, p = 60 * r.sa() * 60 * 1e3;
772
- o = d, l = u.addTime(v + p);
773
- } if (r.ta()) {
774
- var m = {};
775
- if (m.e = e, m.control = r, m.newStart = o, m.newEnd = l, m.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.wa.apply(function () { r.onEventResize(m); }), m.preventDefault.value))
762
+ throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.S("EventResize", i, a); }, this.K = function (e, t, n, i) { var a = 0, o = new Date, s = new Date; if ("top" === i ? (o = r.za(e, n - a), s = e.end()) : "bottom" === i && (o = e.start(), s = r.Aa(e, n + t - a)), r.ta()) {
763
+ var l = {};
764
+ if (l.e = e, l.control = r, l.newStart = o, l.newEnd = s, l.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.wa.apply(function () { r.onEventResize(l); }), l.preventDefault.value))
776
765
  return;
777
766
  switch (r.eventResizeHandling) {
778
767
  case "PostBack":
779
- r.eventResizePostBack(e, o, l);
768
+ r.eventResizePostBack(e, o, s);
780
769
  break;
781
770
  case "CallBack":
782
- r.eventResizeCallBack(e, o, l);
771
+ r.eventResizeCallBack(e, o, s);
783
772
  break;
784
- case "Update": e.start(o), e.end(l), r.events.update(e);
773
+ case "Update": e.start(o), e.end(s), r.events.update(e);
785
774
  }
786
- "function" == typeof r.onEventResized && r.wa.apply(function () { r.onEventResized(m); });
775
+ "function" == typeof r.onEventResized && r.wa.apply(function () { r.onEventResized(l); });
787
776
  }
788
777
  else
789
778
  switch (r.eventResizeHandling) {
790
779
  case "PostBack":
791
- r.eventResizePostBack(e, o, l);
780
+ r.eventResizePostBack(e, o, s);
792
781
  break;
793
782
  case "CallBack":
794
- r.eventResizeCallBack(e, o, l);
783
+ r.eventResizeCallBack(e, o, s);
795
784
  break;
796
- case "JavaScript": r.onEventResize(e, o, l);
797
- } }, this.eventMovePostBack = function (e, t, n, i, a) { if (!t)
785
+ case "JavaScript": r.onEventResize(e, o, s);
786
+ } }, this.za = function (e, t) { var n = r.Ba[e.part.dayIndex].start, i = Math.floor(t / r.cellHeight); r.snapToGrid || (i = t / r.cellHeight); var a = Math.floor(i * s.fa()), o = 60 * a * 1e3, l = 60 * r.sa() * 60 * 1e3; return n.addTime(o + l); }, this.Aa = function (e, t) { var n = Math.floor(t / r.cellHeight); r.snapToGrid || (n = t / r.cellHeight); var i = Math.floor(n * s.fa()), a = 60 * i * 1e3, o = 60 * r.sa() * 60 * 1e3; return r.Ba[e.part.dayIndex].start.addTime(a + o); }, this.eventMovePostBack = function (e, t, n, i, a) { if (!t)
798
787
  throw "newStart is null"; if (!n)
799
788
  throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.S("EventMove", a, o); }, this.eventMoveCallBack = function (e, t, n, i, a) { if (!t)
800
789
  throw "newStart is null"; if (!n)
801
- throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.U("EventMove", a, o); }, this.M = function (e, t, n, i) { var a = 1, o = Math.floor((n - a) / r.cellHeight); r.snapToGrid || (o = (n - a) / r.cellHeight); var l = s.fa(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date; c instanceof DayPilot.Date && (c = c.toDate()), h.setTime(Date.UTC(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate())); var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3); "Never" === r.useEventBoxes && (f = 0); var v = u.getTime() - c.getTime(), p = this.za[t], m = p.id; r.snapToGrid || (f = 0); var g = p.start.getTime(), y = new Date; y.setTime(g + d + f); var b = new DayPilot.Date(y), w = b.addTime(v); if (r.ta()) {
802
- var x = {};
803
- if (x.e = e, x.newStart = b, x.newEnd = w, x.newResource = m, x.ctrl = i.ctrlKey, x.shift = i.shiftKey, x.control = r, x.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.wa.apply(function () { r.onEventMove(x); }), x.preventDefault.value))
790
+ throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.U("EventMove", a, o); }, this.M = function (e, t, n, i) { var a = 0, o = Math.floor((n - a) / r.cellHeight); r.snapToGrid || (o = (n - a) / r.cellHeight); var l = s.fa(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date; c instanceof DayPilot.Date && (c = c.toDate()), h.setTime(Date.UTC(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate())); var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3); "Never" === r.useEventBoxes && (f = 0); var v = u.getTime() - c.getTime(), p = this.Ba[t], m = p.id; r.snapToGrid || (f = 0); var g = p.start.getTime(), y = new Date; y.setTime(g + d + f); var b = new DayPilot.Date(y), w = b.addTime(v); if (r.ta()) {
791
+ var D = {};
792
+ if (D.e = e, D.newStart = b, D.newEnd = w, D.newResource = m, D.ctrl = i.ctrlKey, D.shift = i.shiftKey, D.control = r, D.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.wa.apply(function () { r.onEventMove(D); }), D.preventDefault.value))
804
793
  return;
805
794
  switch (r.eventMoveHandling) {
806
795
  case "PostBack":
@@ -811,7 +800,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
811
800
  break;
812
801
  case "Update": e.start(b), e.end(w), e.resource(m), r.events.update(e);
813
802
  }
814
- "function" == typeof r.onEventMoved && r.wa.apply(function () { r.onEventMoved(x); });
803
+ "function" == typeof r.onEventMoved && r.wa.apply(function () { r.onEventMoved(D); });
815
804
  }
816
805
  else
817
806
  switch (r.eventMoveHandling) {
@@ -843,22 +832,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
843
832
  r.timeRangeSelectedCallBack(e, t);
844
833
  break;
845
834
  case "JavaScript": r.onTimeRangeSelected(e, t);
846
- } }, this.Aa = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
835
+ } }, this.Ca = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
847
836
  var t = e.which;
848
837
  if (1 === t || 0 === t) {
849
838
  DayPilot.Global.selecting = { calendar: r, start: r.coords };
850
839
  var n = DayPilot.Global.selecting;
851
- return n.start.time = r.Ba(r.coords.x, r.coords.y), n.start.columnIndex = r.Ca(r.coords.x), n.start.column = r.za[n.start.columnIndex], r.Da(), r.Ea(), !1;
840
+ return n.start.time = r.Da(r.coords.x, r.coords.y), n.start.columnIndex = r.Ea(r.coords.x), n.start.column = r.Ba[n.start.columnIndex], r.Fa(), r.Ga(), !1;
852
841
  }
853
- } }, this.Ea = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, i = t.start, a = r.getPixels(e.startTime, i), o = r.getPixels(e.endTime, i), s = a.boxTop, l = o.boxBottom; r.snapToGrid || (s = a.top, l = o.top); var d = l - s, c = r.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (r.nav.activeSelection)
854
- return r.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 = r.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[n].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.Da = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.Ba(e.start.x, e.end.y), e.end.column = r.za[r.Ca(e.end.x)], r.Fa && (e.end.time = r.Ba(e.end.x, e.end.y)), r.Ga(e); }, this.Ga = function (e) { var t, n, i; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Ha(e.end.time, e.start.column.start), n = r.Ia(e.start.time, e.start.column.start), i = e.endTime) : (t = r.Ha(e.start.time, e.start.column.start), n = r.Ia(e.end.time, e.start.column.start), i = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, i = e.endTime) : (t = e.start.time, n = e.end.time, i = e.startTime), e.startTime = t, e.endTime = n, e.anchor = i; }, this.getSelection = function () { if (!r.N)
855
- return null; var e = r.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Ca = function (e) { if (e -= r.hourWidth, e < 0)
842
+ } }, this.Ga = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, i = t.start, a = r.getPixels(e.startTime, i), o = r.getPixels(e.endTime, i), s = a.boxTop, l = o.boxBottom; r.snapToGrid || (s = a.top, l = o.top); var d = l - s, c = r.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (r.nav.activeSelection)
843
+ return r.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 = r.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[n].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.Da(e.start.x, e.end.y), e.end.column = r.Ba[r.Ea(e.end.x)], r.Ha && (e.end.time = r.Da(e.end.x, e.end.y)), r.Ia(e); }, this.Ia = function (e) { var t, n, i; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Ja(e.end.time, e.start.column.start), n = r.Ka(e.start.time, e.start.column.start), i = e.endTime) : (t = r.Ja(e.start.time, e.start.column.start), n = r.Ka(e.end.time, e.start.column.start), i = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, i = e.endTime) : (t = e.start.time, n = e.end.time, i = e.startTime), e.startTime = t, e.endTime = n, e.anchor = i; }, this.getSelection = function () { if (!r.N)
844
+ return null; var e = r.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Ea = function (e) { if (e -= r.hourWidth, e < 0)
856
845
  return null; for (var t = 0, n = r.nav.events.rows[0].cells, i = 0; i < n.length; i++) {
857
846
  if (t += n[i].offsetWidth, e < t)
858
847
  return i;
859
- } return null; }, this.Ba = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ca(e), i = t / (60 / s.fa()) / r.cellHeight, a = 60 * i * 60 * 1e3, o = 6e4 * Math.floor(a / 6e4), l = o, d = this.za[n]; if (!d)
860
- return null; var c = d.start.addTime(l); return c = c.addHours(r.sa()); }, this.Ha = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var i = 60 * s.fa() * 1e3, a = n % i; return e.addTime(-a); }, this.Ia = function (e, t) { var n = this.Ha(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ja = {}, this.Ja.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !r.coords)
861
- return null; e.x = r.Ca(r.coords.x); var t = 0, n = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, n) { if (!e)
848
+ } return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), i = t / (60 / s.fa()) / r.cellHeight, a = 60 * i * 60 * 1e3, o = 6e4 * Math.floor(a / 6e4), l = this.Ba[n]; return l ? l.start.addTime(o) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var i = 60 * s.fa() * 1e3, a = n % i; return e.addTime(-a); }, 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, !r.coords)
849
+ return null; e.x = r.Ea(r.coords.x); var t = 0, n = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, n) { if (!e)
862
850
  throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
863
851
  n = JSON.parse(a.responseText);
864
852
  }
@@ -869,11 +857,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
869
857
  var s = {};
870
858
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
871
859
  return;
872
- r.columns.list = n, r.Ka && r.update();
873
- } }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.ga = function () { var e; e = "Resources" !== r.viewType ? this.La() : r.columns.list, this.za = []; for (var t = 0; t < e.length; t++) {
874
- var n = this.Ma(e[t]);
875
- this.za.push(n);
876
- } }, this.Ma = 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(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
860
+ r.columns.list = n, r.Ma && r.update();
861
+ } }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.ga = function () { var e; e = "Resources" !== r.viewType ? this.Na() : r.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
862
+ var n = this.Oa(e[t]);
863
+ this.Ba.push(n);
864
+ } }, 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(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
877
865
  var n = t.start.getDatePart();
878
866
  t.start = n.addHours(this.businessBeginsHour);
879
867
  } return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
@@ -896,7 +884,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
896
884
  var o = this[a];
897
885
  if (!(n < o.part.top || e > o.part.top + o.part.height - 1))
898
886
  return !1;
899
- } return !0; }, n.push(e), this.lines.push(n), this.lines.length - 1; }, t; }, this.La = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
887
+ } return !0; }, n.push(e), this.lines.push(n), this.lines.length - 1; }, t; }, this.Na = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
900
888
  case "Day":
901
889
  n = 1;
902
890
  break;
@@ -910,28 +898,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
910
898
  var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
911
899
  l.start = t.addDays(a), l.name = l.start.toString(o, s.locale()), e.push(l);
912
900
  } return e; }, this.visibleStart = function () { if ("Resources" === r.viewType) {
913
- if (0 === r.za.length)
901
+ if (0 === r.Ba.length)
914
902
  return DayPilot.Date.today();
915
- var e = r.za.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
903
+ var e = r.Ba.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
916
904
  return new DayPilot.Date(t);
917
- } return this.za[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
918
- if (0 === r.za.length)
905
+ } return this.Ba[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
906
+ if (0 === r.Ba.length)
919
907
  return DayPilot.Date.today().addDays(1);
920
- var e = r.za.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
908
+ var e = r.Ba.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
921
909
  return new DayPilot.Date(t).addDays(1);
922
- } var t = this.za.length - 1; return this.za[t].start.addDays(1); }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Y = function () { if (this.elements.events)
910
+ } var t = this.Ba.length - 1; return this.Ba[t].start.addDays(1); }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Y = function () { if (this.elements.events)
923
911
  for (var e = 0; e < this.elements.events.length; e++) {
924
912
  var t = this.elements.events[e];
925
- r.Na(t);
926
- } this.elements.events = []; }, this.Na = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
927
- var i = t && t.Oa;
913
+ r.Pa(t);
914
+ } this.elements.events = []; }, this.Pa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
915
+ var i = t && t.Qa;
928
916
  if (i) {
929
- r.Qa.Pa && n(t.element) && (r.Qa.Ra = !0, r.Qa.Sa(i), r.Qa.Ra = !1);
917
+ r.Sa.Ra && n(t.element) && (r.Sa.Ta = !0, r.Sa.Ua(i), r.Sa.Ta = !1);
930
918
  }
931
919
  } }(); 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()) {
932
920
  var i = e.firstChild.firstChild;
933
921
  i.onmousedown = null, i.onmousemove = null, i.onclick = null;
934
- } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Ta = function (e) { var i = e.cache || e.data, a = this.nav.events, o = i.borderRadius || r.eventBorderRadius; "number" == typeof o && (o += "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"), i.cssClass && DayPilot.Util.addClass(s, i.cssClass), r.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 (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var i = 5; if ("undefined" != typeof t) {
922
+ } e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Va = function (e) { var i = e.cache || e.data, a = this.nav.events, o = i.borderRadius || r.eventBorderRadius; "number" == typeof o && (o += "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"), i.cssClass && DayPilot.Util.addClass(s, i.cssClass), r.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 (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var i = 5; if ("undefined" != typeof t) {
935
923
  var a = DayPilot.mo3(s, n);
936
924
  if (a && !t.resizing && !t.moving) {
937
925
  s.deleteIcon && (s.deleteIcon.style.display = "");
@@ -942,7 +930,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
942
930
  if (1 === i && e.client.moveEnabled()) {
943
931
  t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
944
932
  var a = t.moving.helper = {};
945
- a.oldColumn = r.za[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(n), t.originalTop = this.offsetTop;
933
+ a.oldColumn = r.Ba[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(n), t.originalTop = this.offsetTop;
946
934
  var o = DayPilot.mo3(this, n);
947
935
  o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
948
936
  }
@@ -962,11 +950,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
962
950
  } if (function () { var t = {}; if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
963
951
  var i = l;
964
952
  if (i) {
965
- t.Oa = i;
953
+ t.Qa = i;
966
954
  if (n(t.element)) {
967
- if (!r.Qa.Pa)
955
+ if (!r.Sa.Ra)
968
956
  throw new DayPilot.Exception("Can't reach Vue");
969
- r.Qa.Ra = !0, r.Qa.Ua(t.element, i), r.Qa.Ra = !1;
957
+ r.Sa.Ta = !0, r.Sa.Wa(t.element, i), r.Sa.Ta = !1;
970
958
  }
971
959
  else
972
960
  i.appendChild(t.element);
@@ -974,14 +962,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
974
962
  }
975
963
  else
976
964
  l.innerHTML = e.client.innerHTML(); }(), a.rows[0].cells[e.part.dayIndex]) {
977
- a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Va(s);
978
- } r.elements.events.push(s); }, this.Va = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, n = 0; n < t; n++)
965
+ a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Xa(s);
966
+ } r.elements.events.push(s); }, this.Xa = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, n = 0; n < t; n++)
979
967
  try {
980
968
  var i = e.childNodes[n];
981
- 1 === i.nodeType && (i.unselectable = "on", this.Va(i));
969
+ 1 === i.nodeType && (i.unselectable = "on", this.Xa(i));
982
970
  }
983
- catch (e) { } }, this.na = function () { for (var e = 0; e < this.za.length; e++) {
984
- var t = this.za[e];
971
+ catch (e) { } }, this.na = function () { for (var e = 0; e < this.Ba.length; e++) {
972
+ var t = this.Ba[e];
985
973
  if (t.blocks)
986
974
  for (var n = 0; n < t.blocks.length; n++)
987
975
  for (var i = t.blocks[n], a = 0; a < i.lines.length; a++)
@@ -989,17 +977,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
989
977
  var s = o[r];
990
978
  s.part.width = 100 / i.lines.length, s.part.left = s.part.width * a;
991
979
  var l = a === i.lines.length - 1;
992
- l || (s.part.width = 1.5 * s.part.width), this.Ta(s);
980
+ l || (s.part.width = 1.5 * s.part.width), this.Va(s);
993
981
  }
994
- } }, this.Wa = 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.Xa() + "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.Ya(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Za(); 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 = r.$a(r.loadingLabelText, r.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._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, i = t.insertRow(-1); n = i.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 = i.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var a = document.createElement("div"); return a.style.position = "relative", n.appendChild(a), a.appendChild(this.ab()), a.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.za, n = t.length, i = e.insertRow(-1), a = 0; a < n; a++) {
982
+ } }, this.Ya = 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.Za() + "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.$a(); 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 = r.ab(r.loadingLabelText, r.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.bb(), 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, i = t.insertRow(-1); n = i.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this.bb(), n.appendChild(this.nav.hourTable), n = i.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var a = document.createElement("div"); return a.style.position = "relative", n.appendChild(a), a.appendChild(this.cb()), a.appendChild(this.db()), e.appendChild(t), this.nav.zoom = e, e; }, this.cb = 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.db = 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, i = e.insertRow(-1), a = 0; a < n; a++) {
995
983
  var o = i.insertCell(-1);
996
984
  o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
997
985
  var s = document.createElement("div");
998
986
  s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
999
987
  var l = document.createElement("div");
1000
988
  o.selection = l, o.appendChild(s), o.appendChild(l);
1001
- } 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 = r.oa(), n = 0; n < t; n++)
1002
- this.cb(e, n); return e; }, this.cb = function (e, t) { var n = 60 * r.cellHeight / s.fa(), i = e.insertRow(-1); i.style.height = n + "px"; var a = i.insertCell(-1); a.valign = "bottom", a.unselectable = "on", a.style.cursor = "default", a.style.padding = "0px", a.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.L("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = n + "px", o.style.overflow = "hidden", o.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(r.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), o.appendChild(l), a.appendChild(o); }, this.Xa = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
989
+ } return e; }, this.bb = 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 = r.oa(), n = 0; n < t; n++)
990
+ this.eb(e, n); return e; }, this.eb = function (e, t) { var n = 60 * r.cellHeight / s.fa(), i = e.insertRow(-1); i.style.height = n + "px"; var a = i.insertCell(-1); a.valign = "bottom", a.unselectable = "on", a.style.cursor = "default", a.style.padding = "0px", a.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.L("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = n + "px", o.style.overflow = "hidden", o.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(r.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), o.appendChild(l), a.appendChild(o); }, this.Za = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
1003
991
  case "Full": return 24 * t * this.cellHeight;
1004
992
  case "BusinessHours":
1005
993
  var n = this.qa();
@@ -1008,26 +996,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1008
996
  var n = this.qa();
1009
997
  return n * this.cellHeight * t;
1010
998
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1011
- } }, this.db = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
999
+ } }, this.fb = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
1012
1000
  e.innerHTML = "";
1013
- var t = this.eb();
1001
+ var t = this.gb();
1014
1002
  e.appendChild(t), r.nav.corner = t;
1015
- } }, 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), i = n.insertCell(-1); i.style.padding = "0px", i.style.border = "0px none"; var a = this.eb(); i.appendChild(a), this.nav.corner = a, i = n.insertCell(-1), i.style.width = "100%", i.valign = "top", i.style.position = "relative", i.style.padding = "0px", i.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (i.appendChild(this.nav.header), o) {
1003
+ } }, this.$a = 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), i = n.insertCell(-1); i.style.padding = "0px", i.style.border = "0px none"; var a = this.gb(); i.appendChild(a), this.nav.corner = a, i = n.insertCell(-1), i.style.width = "100%", i.valign = "top", i.style.position = "relative", i.style.padding = "0px", i.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (i.appendChild(this.nav.header), o) {
1016
1004
  i = n.insertCell(-1), i.unselectable = "on";
1017
1005
  var r = document.createElement("div");
1018
1006
  r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.L("_cornerright");
1019
1007
  var s = document.createElement("div");
1020
1008
  s.className = this.L("_cornerright_inner"), r.appendChild(s), i.appendChild(r), this.nav.cornerRight = r;
1021
- } 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.Z = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
1009
+ } return e.appendChild(t), e; }, this.gb = 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.Z = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
1022
1010
  for (var n = e.rows[t], i = 0; i < n.cells.length; i++) {
1023
1011
  var a = n.cells[i];
1024
- r.fb(a);
1025
- } this.fasterDispose || DayPilot.pu(e); }, this.fb = function (e) { e && (!function () { var t = e, i = t.domArgs; if (t.domArgs = null, i && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(i), i && "function" == typeof r.onBeforeCellDomAdd) {
1026
- var a = i && i.Oa;
1012
+ r.hb(a);
1013
+ } this.fasterDispose || DayPilot.pu(e); }, this.hb = function (e) { e && (!function () { var t = e, i = t.domArgs; if (t.domArgs = null, i && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(i), i && "function" == typeof r.onBeforeCellDomAdd) {
1014
+ var a = i && i.Qa;
1027
1015
  if (a) {
1028
- r.Qa.Pa && n(i.element) && (r.Qa.Ra = !0, r.Qa.Sa(a), r.Qa.Ra = !1);
1016
+ r.Sa.Ra && n(i.element) && (r.Sa.Ta = !0, r.Sa.Ua(a), r.Sa.Ta = !1);
1029
1017
  }
1030
- } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), i = this.nav.main, a = 60 * e * 1e3, o = this.ra(), l = r.za; for (i && this.Z(); i && i.rows && i.rows.length > 0;)
1018
+ } }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), i = this.nav.main, a = 60 * e * 1e3, o = this.ra(), l = r.Ba; for (i && this.Z(); i && i.rows && i.rows.length > 0;)
1031
1019
  this.fasterDispose || DayPilot.pu(i.rows[0]), i.deleteRow(0); this.tableCreated = !0; for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
1032
1020
  this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0); for (var d = l.length, u = c.insertRow(-1), h = 0; h < d; h++) {
1033
1021
  var f = u.insertCell(-1);
@@ -1040,28 +1028,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1040
1028
  var u = i.insertRow(-1);
1041
1029
  u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
1042
1030
  for (var h = 0; h < d; h++) {
1043
- var g = this.za[h], f = u.insertCell(-1);
1044
- f.start = g.start.addTime(m * a), f.end = f.start.addTime(a), f.resource = g.id, f.onmousedown = this.Aa, f.onmouseup = function () { return !1; }, f.onclick = function () { return !1; }, f.root = this, f.style.padding = "0px", f.style.border = "0px none", f.style.verticalAlign = "top", f.style.height = r.cellHeight + "px", f.style.overflow = "hidden", f.unselectable = "on";
1031
+ var g = this.Ba[h], f = u.insertCell(-1);
1032
+ f.start = g.start.addTime(m * a), f.end = f.start.addTime(a), f.resource = g.id, f.onmousedown = this.Ca, f.onmouseup = function () { return !1; }, f.onclick = function () { return !1; }, f.root = this, f.style.padding = "0px", f.style.border = "0px none", f.style.verticalAlign = "top", f.style.height = r.cellHeight + "px", f.style.overflow = "hidden", f.unselectable = "on";
1045
1033
  var v = document.createElement("div");
1046
1034
  v.unselectable = "on", v.style.height = r.cellHeight + "px", v.style.position = "relative", v.className = this.L("_cell");
1047
- var y = this.gb(f.start, f.end), b = { "business": y, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, w = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": m };
1035
+ var y = this.ib(f.start, f.end), b = { "business": y, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, w = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": m };
1048
1036
  !function () { if ("function" == typeof r.onBeforeCellRender) {
1049
1037
  var e = {};
1050
1038
  e.cell = w, r.onBeforeCellRender(e);
1051
1039
  } }(), b.business && DayPilot.Util.addClass(v, r.L("_cell_business")), b.cssClass && DayPilot.Util.addClass(v, b.cssClass);
1052
- var x = document.createElement("div");
1053
- x.setAttribute("unselectable", "on"), x.className = this.L("_cell_inner");
1054
- var D = DayPilot.Util.escapeTextHtml(b.text, b.html);
1055
- D && (x.innerHTML = D), b.backColor && (x.style.backgroundColor = b.backColor), b.backImage && (x.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (x.style.backgroundRepeat = b.backRepeat), b.fontColor && (x.style.color = b.fontColor), v.appendChild(x), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1040
+ var D = document.createElement("div");
1041
+ D.setAttribute("unselectable", "on"), D.className = this.L("_cell_inner");
1042
+ var x = DayPilot.Util.escapeTextHtml(b.text, b.html);
1043
+ x && (D.innerHTML = x), b.backColor && (D.style.backgroundColor = b.backColor), b.backImage && (D.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (D.style.backgroundRepeat = b.backRepeat), b.fontColor && (D.style.color = b.fontColor), v.appendChild(D), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1056
1044
  var e = {};
1057
1045
  if (e.control = r, e.cell = w, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1058
- var t = x;
1046
+ var t = D;
1059
1047
  if (t) {
1060
- e.Oa = t;
1048
+ e.Qa = t;
1061
1049
  if (n(e.element)) {
1062
- if (!r.Qa.Pa)
1050
+ if (!r.Sa.Ra)
1063
1051
  throw new DayPilot.Exception("Can't reach Vue");
1064
- r.Qa.Ra = !0, r.Qa.Ua(e.element, t), r.Qa.Ra = !1;
1052
+ r.Sa.Ta = !0, r.Sa.Wa(e.element, t), r.Sa.Ta = !1;
1065
1053
  }
1066
1054
  else
1067
1055
  t.appendChild(e.element);
@@ -1071,7 +1059,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1071
1059
  }
1072
1060
  } i.root = this, r.nav.scrollable.onmousemove = function (e) { var n = r.nav.scrollable; r.coords = DayPilot.mo3(n, e); var i = DayPilot.mc(e); if (t.resizing) {
1073
1061
  t.resizingShadow || (t.resizingShadow = r.ba(t.resizing, !1, r.shadow));
1074
- var a = r.cellHeight, o = 1, s = i.y - t.originalMouse.y;
1062
+ var a = r.cellHeight, o = 0, s = i.y - t.originalMouse.y;
1075
1063
  if ("bottom" === t.resizing.dpBorder) {
1076
1064
  var l = t.originalHeight + s;
1077
1065
  r.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + a / 2) / a) * a - t.originalTop + o), l < a && (l = a);
@@ -1094,7 +1082,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1094
1082
  return;
1095
1083
  t.movingShadow = r.ba(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1096
1084
  }
1097
- var a = r.cellHeight, o = 1, f = t.moveOffsetY;
1085
+ var a = r.cellHeight, o = 0, f = t.moveOffsetY;
1098
1086
  f || (f = a / 2);
1099
1087
  var c = r.coords.y - f;
1100
1088
  r.snapToGrid && (c = Math.floor((r.coords.y - f - o + a / 2) / a) * a + o), c < o && (c = o);
@@ -1104,12 +1092,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1104
1092
  g < 0 && (g = 0), g < v.rows[0].cells.length && g >= 0 && t.movingShadow.column !== g && (t.movingShadow.column = g, t.moveShadow(v.rows[0].cells[g]));
1105
1093
  }
1106
1094
  else
1107
- DayPilot.Global.selecting && (r.Da(), r.Ea()); }, r.nav.scrollable.style.display = ""; }, this.gb = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this._ = function () { var e = this.nav.header; if (e && e.rows)
1095
+ DayPilot.Global.selecting && (r.Fa(), r.Ga()); }, r.nav.scrollable.style.display = ""; }, this.ib = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this._ = function () { var e = this.nav.header; if (e && e.rows)
1108
1096
  for (var t = 0; t < e.rows.length; t++)
1109
1097
  for (var n = e.rows[t], i = 0; i < n.cells.length; i++) {
1110
1098
  var a = n.cells[i];
1111
1099
  a.onclick = null, a.onmousemove = null, a.onmouseout = null;
1112
- } this.fasterDispose || DayPilot.pu(e); }, this.hb = function (e) { function t(t) { var a = i[t], o = e ? n.insertCell(-1) : n.cells[t]; o.data = a, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r.ib; var s, l = e ? document.createElement("div") : o.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.L("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.jb(a, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(a, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, a, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), a.toolTip && (s.title = a.toolTip), a.cssClass && DayPilot.Util.addClass(l, a.cssClass), a.backColor && (s.style.background = a.backColor), a.areas && DayPilot.Areas.attach(l, a); var c = a.verticalAlignment; if (c)
1100
+ } this.fasterDispose || DayPilot.pu(e); }, this.jb = function (e) { function t(t) { var a = i[t], o = e ? n.insertCell(-1) : n.cells[t]; o.data = a, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r.kb; var s, l = e ? document.createElement("div") : o.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.L("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.lb(a, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(a, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, a, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), a.toolTip && (s.title = a.toolTip), a.cssClass && DayPilot.Util.addClass(l, a.cssClass), a.backColor && (s.style.background = a.backColor), a.areas && DayPilot.Areas.attach(l, a); var c = a.verticalAlignment; if (c)
1113
1101
  switch (s.style.display = "flex", c) {
1114
1102
  case "center":
1115
1103
  s.style.alignItems = "center";
@@ -1127,21 +1115,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1127
1115
  s.style.justifyContent = "flex-start";
1128
1116
  break;
1129
1117
  case "right": s.style.justifyContent = "flex-end";
1130
- } l.firstChild.innerHTML = r.$a(a.name, a.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.za, a = i.length, o = 0; o < a; o++)
1131
- t(o); }, this.ib = function (e) { if ("Disabled" !== r.headerClickHandling) {
1132
- var t = this.data, n = r.jb(t), i = {};
1118
+ } l.firstChild.innerHTML = r.ab(a.name, a.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.Ba, a = i.length, o = 0; o < a; o++)
1119
+ t(o); }, this.kb = function (e) { if ("Disabled" !== r.headerClickHandling) {
1120
+ var t = this.data, n = r.lb(t), i = {};
1133
1121
  i.header = {}, i.header.id = t.id, i.header.name = t.name, i.header.start = t.start, i.column = n, i.originalEvent = e, i.shift = e.shiftKey, i.ctrl = e.ctrlKey, i.meta = e.metaKey, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(i), i.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(i);
1134
- } }, this.jb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.kb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { var e = this.nav.header, t = !0, n = this.za; for (n.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1135
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.hb(t); }, this.loadingStart = function () {
1122
+ } }, this.lb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.mb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { var e = this.nav.header, t = !0, n = this.Ba; for (n.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1123
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.jb(t); }, this.loadingStart = function () {
1136
1124
  this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText,
1137
1125
  this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
1138
- }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.lb = function () { var e = this.nav.scroll; e.root = this, r.mb(), e.onscroll || (e.onscroll = function () { r.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) { var t = null; if (e instanceof DayPilot.Event)
1126
+ }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.nb = function () { var e = this.nav.scroll; e.root = this, r.ob(), e.onscroll || (e.onscroll = function () { r.pb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.qb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.rb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1139
1127
  t = e.data;
1140
1128
  else {
1141
1129
  if ("object" != typeof e)
1142
1130
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1143
1131
  t = e;
1144
- } r.events.list || (r.events.list = []), r.events.list.push(t), r.qb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.find = function (e) { if (!r.events.list)
1132
+ } r.events.list || (r.events.list = []), r.events.list.push(t), r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.find = function (e) { if (!r.events.list)
1145
1133
  return null; if ("function" == typeof e) {
1146
1134
  for (var t = e, n = 0; n < r.events.list.length; n++) {
1147
1135
  var i = new DayPilot.Event(r.events.list[n], r);
@@ -1161,7 +1149,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1161
1149
  var n = DayPilot.indexOf(r.events.list, t.data);
1162
1150
  r.events.list.splice(n, 1, e);
1163
1151
  }
1164
- } r.qb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1152
+ } r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
1165
1153
  t = e.data;
1166
1154
  else if ("object" == typeof e) {
1167
1155
  var n = r.events.find(e.id);
@@ -1170,7 +1158,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1170
1158
  else if ("string" == typeof e || "number" == typeof e) {
1171
1159
  var n = r.events.find(e);
1172
1160
  n && (t = n.data);
1173
- } var i = DayPilot.indexOf(r.events.list, t); r.events.list.splice(i, 1), r.qb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.load = function (e, t, n) { var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
1161
+ } var i = DayPilot.indexOf(r.events.list, t); r.events.list.splice(i, 1), r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.load = function (e, t, n) { var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
1174
1162
  n = JSON.parse(a.responseText);
1175
1163
  }
1176
1164
  catch (e) {
@@ -1180,25 +1168,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1180
1168
  var s = {};
1181
1169
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1182
1170
  return;
1183
- r.events.list = n, r.Ka && r.qb({ "eventsOnly": !0 });
1171
+ r.events.list = n, r.Ma && r.sb({ "eventsOnly": !0 });
1184
1172
  } }; if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
1185
1173
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": a, "error": i });
1186
1174
  else {
1187
1175
  var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
1188
1176
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": a, "error": i });
1189
- } }, this.rb = function () { if (r.nav.top.className !== r.L("_main")) {
1177
+ } }, this.tb = function () { if (r.nav.top.className !== r.L("_main")) {
1190
1178
  r.nav.top.className = r.L("_main");
1191
1179
  var e = r.nav.corner;
1192
1180
  e.className = r.L("_corner"), e.firstChild.className = r.L("_corner_inner");
1193
1181
  var t = r.nav.cornerRight;
1194
1182
  t && (t.className = r.L("_cornerright"), t.firstChild.className = r.L("_cornerright_inner"));
1195
1183
  } }, this.update = function (e) { if (r.Q)
1196
- throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.sb(e), r.qb(); }, this.qb = function (e) { if (this.Ka) {
1184
+ throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.ub(e), r.sb(); }, this.sb = function (e) { if (this.Ma) {
1197
1185
  var e = e || {}, t = !e.eventsOnly;
1198
- r.tb(), r.Y(), r.nav.top.style.cursor = "auto", t && (r.ga(), r.ja(), r.ka(), r.la(), r.ma(), r.db(), r.ob(), r.rb(), r.mb()), r.ha(), r.ia(), r.na(), r.clearSelection(), this.visible ? this.show() : this.hide();
1199
- } }, this.ub = null, this.sb = function (e) { if (e) {
1186
+ r.vb(), r.Y(), r.nav.top.style.cursor = "auto", t && (r.ga(), r.ja(), r.ka(), r.la(), r.ma(), r.fb(), r.qb(), r.tb(), r.ob()), r.ha(), r.ia(), r.na(), r.clearSelection(), this.visible ? this.show() : this.hide();
1187
+ } }, this.wb = null, this.ub = function (e) { if (e) {
1200
1188
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? r.events.list = e.list : r.events.list = e; } }, "columns": { "preInit": function () { r.columns.list = this.data; } } };
1201
- this.ub = t;
1189
+ this.wb = t;
1202
1190
  for (var n in e)
1203
1191
  if (t[n]) {
1204
1192
  var i = t[n];
@@ -1206,21 +1194,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1206
1194
  }
1207
1195
  else
1208
1196
  r[n] = e[n];
1209
- } }, this.vb = function () { var e = this.ub; for (var t in e) {
1197
+ } }, this.xb = function () { var e = this.wb; for (var t in e) {
1210
1198
  var n = e[t];
1211
1199
  n.postInit && n.postInit();
1212
- } }, this.wb = function () { if (this.id && this.id.tagName)
1200
+ } }, this.yb = function () { if (this.id && this.id.tagName)
1213
1201
  this.nav.top = this.id;
1214
1202
  else {
1215
1203
  if ("string" != typeof this.id)
1216
1204
  throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
1217
1205
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1218
1206
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1219
- } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], i = {}; for (var a in n)
1207
+ } }, this.zb = {}, this.zb.events = [], this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; for (var a in n)
1220
1208
  i[a] = n[a]; if (i.start = new DayPilot.Date(n.start), i.end = new DayPilot.Date(n.end), "function" == typeof this.onBeforeEventRender) {
1221
1209
  var o = {};
1222
1210
  o.control = r, o.data = i, this.onBeforeEventRender(o);
1223
- } t[e] = i; }, this.ha = function () { var e = this.events.list; if (r.xb.events = [], e) {
1211
+ } t[e] = i; }, this.ha = function () { var e = this.events.list; if (r.zb.events = [], e) {
1224
1212
  if (!DayPilot.isArray(e))
1225
1213
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1226
1214
  var t = e.length, n = 864e5;
@@ -1240,11 +1228,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1240
1228
  }
1241
1229
  if ("function" == typeof this.onBeforeEventRender)
1242
1230
  for (var a = 0; a < t; a++)
1243
- this.yb(a);
1244
- for (var a = 0; a < this.za.length; a++) {
1231
+ this.Ab(a);
1232
+ for (var a = 0; a < this.Ba.length; a++) {
1245
1233
  var l = {};
1246
1234
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
1247
- var d = this.za[a];
1235
+ var d = this.Ba[a];
1248
1236
  d.events = [], d.lines = [], d.blocks = [];
1249
1237
  for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(n), f = h.getTime(), v = 0; v < t; v++)
1250
1238
  if (!i[v]) {
@@ -1254,55 +1242,55 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1254
1242
  if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
1255
1243
  var w = new DayPilot.Event(o, r);
1256
1244
  w.part.dayIndex = a, w.part.start = u < g ? p : c, w.part.end = f > y ? m : h;
1257
- var x = this.getPixels(w.part.start, d.start), D = this.getPixels(w.part.end, d.start), _ = x.top, C = D.top;
1258
- if (_ === C && (x.cut || D.cut))
1245
+ var D = this.getPixels(w.part.start, d.start), x = this.getPixels(w.part.end, d.start), _ = D.top, C = x.top;
1246
+ if (_ === C && (D.cut || x.cut))
1259
1247
  continue;
1260
- var k = D.boxBottom, P = "Always" === r.useEventBoxes;
1248
+ var k = x.boxBottom, P = "Always" === r.useEventBoxes;
1261
1249
  P ? (w.part.top = Math.floor(_ / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = _ + 1, w.part.height = C - _ + 1), w.part.barTop = Math.max(_ - w.part.top - 1, 0), w.part.barHeight = Math.max(C - _ - 2, 1);
1262
1250
  var p = w.part.top, m = w.part.top + w.part.height;
1263
- p > l.maxStart && (l.maxStart = p), m < l.minEnd && (l.minEnd = m), p < this.minStart && (this.minStart = p), m > this.maxEnd && (this.maxEnd = m), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.xb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (i[v] = !0);
1251
+ p > l.maxStart && (l.maxStart = p), m < l.minEnd && (l.minEnd = m), p < this.minStart && (this.minStart = p), m > this.maxEnd && (this.maxEnd = m), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.zb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (i[v] = !0);
1264
1252
  }
1265
1253
  }
1266
1254
  }
1267
1255
  }
1268
- for (var a = 0; a < this.za.length; a++) {
1269
- var d = this.za[a];
1270
- d.events.sort(this.zb);
1256
+ for (var a = 0; a < this.Ba.length; a++) {
1257
+ var d = this.Ba[a];
1258
+ d.events.sort(this.Bb);
1271
1259
  for (var v = 0; v < d.events.length; v++) {
1272
1260
  var o = d.events[v];
1273
1261
  d.putIntoBlock(o);
1274
1262
  }
1275
1263
  for (var v = 0; v < d.blocks.length; v++) {
1276
1264
  var S = d.blocks[v];
1277
- S.events.sort(this.zb);
1265
+ S.events.sort(this.Bb);
1278
1266
  for (var M = 0; M < S.events.length; M++) {
1279
1267
  var o = S.events[M];
1280
1268
  S.putIntoLine(o);
1281
1269
  }
1282
1270
  }
1283
1271
  }
1284
- } }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1272
+ } }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
1285
1273
  return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var n = t.getTime(), i = e.getTime(), a = s.fa(), o = this.cache.pixels[i + "_" + n]; if (o)
1286
- return o; n = t.getTime(); var r = 60 * a * 1e3, l = i - n, d = l % r, c = l - d, u = c + r; 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[i + "_" + n] = h, h; }, this.Ab = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.Bb = function (e) { var t = Math.floor((shadowTop - _startOffset) / r.cellHeight); r.snapToGrid || (t = (shadowTop - _startOffset) / r.cellHeight); 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 () { r.wa.scope && r.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.nb = function () { if (r.nav.scroll && r.Cb()) {
1274
+ return o; n = t.getTime(); var r = 60 * a * 1e3, l = i - n, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Cb(l), h.boxTop = this.Cb(c), h.boxBottom = this.Cb(u), this.cache.pixels[i + "_" + n] = h, h; }, this.Cb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.Db = function (e) { var t = Math.floor((shadowTop - _startOffset) / r.cellHeight); r.snapToGrid || (t = (shadowTop - _startOffset) / r.cellHeight); s.fa(); }, this.vb = 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.Za(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { r.wa.scope && r.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.pb = function () { if (r.nav.scroll && r.Eb()) {
1287
1275
  var e = r.nav.scroll.scrollTop, t = s.fa(), n = 60 / t, i = e / (n * r.cellHeight);
1288
- r.Db.scrollHour = i;
1289
- } }, this.mb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof r.Db.scrollHour ? t * r.cellHeight * r.Db.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = r.nav.top; "none" === n.style.display ? (n.style.display = "", r.nav.scroll.scrollTop = e, n.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.nb(); }, this.Eb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.ob(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.Fb = function () { this.tb(), this.ga(), this.Wa(), this.ja(), this.ka(), this.ob(), this.lb(), this.pb(), t.register(this), this.Gb(), this.U("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++) {
1276
+ r.Fb.scrollHour = i;
1277
+ } }, this.ob = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof r.Fb.scrollHour ? t * r.cellHeight * r.Fb.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = r.nav.top; "none" === n.style.display ? (n.style.display = "", r.nav.scroll.scrollTop = e, n.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.pb(); }, this.Gb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.qb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.Hb = function () { this.vb(), this.ga(), this.Ya(), this.ja(), this.ka(), this.qb(), this.nb(), this.rb(), t.register(this), this.Ib(), this.U("Init"); }, this.Fb = {}, this.Jb = function () { this.Fb.themes = [], this.Fb.themes.push(this.theme || this.cssClassPrefix); }, this.Kb = function () { for (var e = this.Fb.themes, t = 0; t < e.length; t++) {
1290
1278
  var n = e[t];
1291
1279
  DayPilot.Util.removeClass(this.nav.top, n + "_main");
1292
- } this.Db.themes = []; }, this.Jb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1280
+ } this.Fb.themes = []; }, this.Lb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1293
1281
  var e = {};
1294
1282
  e.isCallBack = !1, this.onAfterRender(e);
1295
- } }, this.Kb = function () { if ("function" == typeof this.onInit && !this.Lb) {
1296
- this.Lb = !0;
1283
+ } }, this.Mb = function () { if ("function" == typeof this.onInit && !this.Nb) {
1284
+ this.Nb = !0;
1297
1285
  var e = {};
1298
1286
  this.onInit(e);
1299
- } }, this.Cb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Gb = function () { var e = r.Cb; e() || (r.X = setInterval(function () { e() && (r.lb(), r.ob(), clearInterval(r.X)); }, 100)); }, this.$a = function (e, t) { return r.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Qa = {}, this.Qa.Pa = null, this.Qa.Mb = function (e, t, n) { var i = r.Qa.Pa; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
1287
+ } }, this.Eb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Ib = function () { var e = r.Eb; e() || (r.X = setInterval(function () { e() && (r.nb(), r.qb(), clearInterval(r.X)); }, 100)); }, this.ab = function (e, t) { return r.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = r.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
1300
1288
  var a = i.createVNode(e, n);
1301
1289
  i.render(a, t);
1302
- } }, this.Qa.Ua = function (e, t) { var n = r.Qa.Pa; if ("function" == typeof n.render) {
1290
+ } }, this.Sa.Wa = function (e, t) { var n = r.Sa.Ra; if ("function" == typeof n.render) {
1303
1291
  var i = e;
1304
1292
  DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
1305
- } }, this.Qa.Sa = function (e) { var t = r.Qa.Pa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.sb, this.internal.xssTextHtml = r.$a, this.internal.enableVue = function (e) { r.Qa.Pa = e; }, this.internal.vueRef = function () { return r.Qa.Pa; }, this.internal.vueRendering = function () { return r.Qa.Ra; }, this.init = function () { this.wb(); var e = this.Eb(); return this.Hb(), e ? void this.Fb() : (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.Jb(), this.Kb(), this.Gb(), this.Ka = !0, this); }, this.Init = this.init, this.sb(a);
1293
+ } }, this.Sa.Ua = function (e) { var t = r.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.ub, this.internal.xssTextHtml = r.ab, this.internal.enableVue = function (e) { r.Sa.Ra = e; }, this.internal.vueRef = function () { return r.Sa.Ra; }, this.internal.vueRendering = function () { return r.Sa.Ta; }, this.init = function () { this.yb(); var e = this.Gb(); return this.Jb(), e ? void this.Hb() : (this.vb(), this.ga(), this.ha(), this.Ya(), this.ja(), this.ka(), this.u(), this.qb(), this.nb(), this.rb(), t.register(this), this.events && (this.ia(), this.na()), this.Lb(), this.Mb(), this.Ib(), this.Ma = !0, this); }, this.Init = this.init, this.ub(a);
1306
1294
  }, 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) {
1307
1295
  var n = new DayPilot.Calendar(this.id);
1308
1296
  this.daypilot = n;
@@ -1313,39 +1301,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1313
1301
  (0, e(r).assign)(t, a);
1314
1302
  } for (var s in i)
1315
1303
  0 === s.indexOf("on") && !function (n) { a[n] = function (a) { var o = e(i[n]); t["$apply"](function () { o(t, { "args": a }); }); }; }(s); var l = t["$watch"], d = i["config"] || i["daypilotConfig"], c = i["events"] || i["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
1316
- a[t] = e[t]; a.update(), a.Kb(); }, !0), l.call(t, c, function (e) { a.events.list = e, a.update(); }, !0); } }; }]); }();
1304
+ a[t] = e[t]; a.update(), a.Mb(); }, !0), l.call(t, c, function (e) { a.events.list = e, a.update(); }, !0); } }; }]); }();
1317
1305
  }
1318
1306
  }(), "undefined" == typeof DayPilot)
1319
1307
  var DayPilot = {};
1320
1308
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
1321
1309
  "use strict";
1322
- "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "2025.3.686-lite"; 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.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1310
+ "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "2025.3.691-lite"; 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.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", e)
1323
1311
  for (var t in e)
1324
- 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)
1312
+ this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Pb(); this.resetTarget && !e ? this.Qb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Pb(), 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.Eb && (n.Eb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Rb = function (e) { this.date = new DayPilot.Date(e), this.Qb(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.Rb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Pb = function () { var e = this.D(); if (!e)
1325
1313
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
1326
1314
  return null; for (var i = DayPilot.Date.parse(t, n.pattern), a = 0; a < n.patterns.length; a++) {
1327
1315
  if (i)
1328
1316
  return i;
1329
1317
  i = DayPilot.Date.parse(t, n.patterns[a]);
1330
- } return i; }, this.Ob = function (e) { var t = this.D(); if (t) {
1318
+ } return i; }, this.Qb = function (e) { var t = this.D(); if (t) {
1331
1319
  var i = e.toString(n.pattern, n.locale);
1332
1320
  "INPUT" === t.tagName ? t.value = i : t.innerHTML = i;
1333
- } }, this.ca = {}, this.ca.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) {
1321
+ } }, this.ca = {}, this.ca.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.Eb; } }), this.show = function () { if (!this.Eb) {
1334
1322
  document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
1335
1323
  var e = this.D(), i = new DayPilot.Navigator(t);
1336
- i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday = !0, i.onTodayClick = function (e) { i.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, i.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(i.Qb), a = t.toString(n.pattern, n.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(e), e.preventDefault.value) || (n.Ob(a), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(e)); }, this.navigator = i;
1324
+ i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday = n.showToday, i.todayText = n.todayText, i.onTodayClick = function (e) { i.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, i.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(i.Sb), a = t.toString(n.pattern, n.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(e), e.preventDefault.value) || (n.Qb(a), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(e)); }, this.navigator = i;
1337
1325
  var a = { x: 0, y: 0, w: 0, h: 0 };
1338
1326
  e && (a = DayPilot.abs(e));
1339
1327
  var o = a.h, r = n.targetAlignment, s = document.createElement("div");
1340
1328
  s.style.position = "absolute", "left" === r && (s.style.left = a.x + "px"), s.style.top = a.y + o + "px", n.zIndex && (s.style.zIndex = n.zIndex);
1341
1329
  var l = document.createElement("div");
1342
1330
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
1343
- var d = n.Nb() || n.date;
1344
- if (i.startDate = d, i.Qb = d.getTimePart(), i.selectionDay = d.getDatePart(), i.init(), "right" === r) {
1331
+ var d = n.Pb() || n.date;
1332
+ if (i.startDate = d, i.Sb = d.getTimePart(), i.selectionDay = d.getDatePart(), i.init(), "right" === r) {
1345
1333
  var c = a.x + a.w - i.nav.top.offsetWidth;
1346
1334
  s.style.left = c + "px";
1347
1335
  }
1348
- this.Cb = !0, this.onShow && this.onShow();
1336
+ this.Eb = !0, this.onShow && this.onShow();
1349
1337
  } }, this.prepare(), this.init(); });
1350
1338
  }(DayPilot), "undefined" == typeof DayPilot)
1351
1339
  var DayPilot = {};
@@ -1353,7 +1341,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1353
1341
  "use strict";
1354
1342
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1355
1343
  var e = function () { }, t = {};
1356
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, a = null; this.v = "2025.3.686-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Rb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, o) { o = o || {}; var r = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? r = n.id : "function" == typeof n.id ? r = n.id() : "function" == typeof n.value && (r = n.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Rb.submenu = null, null !== t.mouse) {
1344
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, a = null; this.v = "2025.3.691-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Tb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, o) { o = o || {}; var r = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? r = n.id : "function" == typeof n.id ? r = n.id() : "function" == typeof n.value && (r = n.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Tb.submenu = null, null !== t.mouse) {
1357
1345
  i.cssOnly || (i.cssOnly = !0);
1358
1346
  var s = null;
1359
1347
  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 i.onShow) {
@@ -1362,15 +1350,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1362
1350
  return;
1363
1351
  }
1364
1352
  var d = document.createElement("div");
1365
- 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 (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1353
+ 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.Ub("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1366
1354
  throw "No menu items defined.";
1367
1355
  if (this.showMenuTitle) {
1368
1356
  var c = document.createElement("div");
1369
- c.innerHTML = this.menuTitle, c.className = this.Sb("title"), d.appendChild(c);
1357
+ c.innerHTML = this.menuTitle, c.className = this.Ub("title"), d.appendChild(c);
1370
1358
  }
1371
1359
  for (var u = 0; u < this.items.length; u++) {
1372
1360
  var h = this.items[u], f = document.createElement("div");
1373
- 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) {
1361
+ if (DayPilot.Util.addClass(f, this.Ub("item")), h.items && (DayPilot.Util.addClass(f, this.Ub("item_haschildren")), DayPilot.Util.addClass(d, this.Ub("withchildren"))), "undefined" != typeof h && !h.hidden) {
1374
1362
  if ("-" === h.text) {
1375
1363
  var v = document.createElement("div");
1376
1364
  v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
@@ -1378,7 +1366,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1378
1366
  else {
1379
1367
  var p = document.createElement("a");
1380
1368
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1381
- DayPilot.Util.addClass(p, i.Sb("item_disabled"));
1369
+ DayPilot.Util.addClass(p, i.Ub("item_disabled"));
1382
1370
  else {
1383
1371
  if (h.onclick || h.onClick) {
1384
1372
  p.item = h, p.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
@@ -1386,23 +1374,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1386
1374
  if (i.item = e, i.source = t.source, i.originalEvent = n, i.preventDefault = function () { i.preventDefault.value = !0; }, e.onClick(i), i.preventDefault.value)
1387
1375
  return void n.stopPropagation();
1388
1376
  } e.onclick && e.onclick.call(t, n); }; }(h, p);
1389
- var m = function (e, n) { return function (i) { i.stopPropagation(), i.preventDefault(); var a = function () { window.setTimeout(function () { n.source.calendar && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
1377
+ var m = function (e, t) { return function (e) { e.stopPropagation(), e.preventDefault(), t.source.calendar && t.source.calendar.internal.touch && (t.source.calendar.internal.touch.active = !0); }; }, g = function (e, n) { return function (i) { i.stopPropagation(), i.preventDefault(); var a = function () { window.setTimeout(function () { n.source.calendar && n.source.calendar.internal.touch && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
1390
1378
  var o = {};
1391
1379
  if (o.item = e, o.source = n.source, o.originalEvent = i, o.preventDefault = function () { o.preventDefault.value = !0; }, e.onClick(o), o.preventDefault.value)
1392
1380
  return void a();
1393
1381
  } e.onclick && e.onclick.call(n, i), t.menuClean(), a(); }; };
1394
- DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar && (p.source.calendar.internal.touch.active = !0); }), DayPilot.reNonPassive(p, "touchend", m(h, p));
1382
+ DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
1395
1383
  }
1396
1384
  if (h.items && !h.disabled) {
1397
- var g = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), i.Tb(e, t); }; };
1398
- p.ontouchend = g(h, p);
1385
+ var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), i.Vb(e, t); }; };
1386
+ p.ontouchend = y(h, p);
1399
1387
  }
1400
1388
  if (h.onclick)
1401
1389
  e();
1402
1390
  else if (h.href)
1403
1391
  p.href = h.href.replace(/\x7B0\x7D/gim, r), h.target && p.setAttribute("target", h.target);
1404
1392
  else if (h.command) {
1405
- var g = function (e, t) { return function (n) { var i = t.source, a = e; a.action = a.action ? a.action : "CallBack"; var o = i.calendar || i.root; if (i instanceof DayPilot.Link)
1393
+ var y = function (e, t) { return function (n) { var i = t.source, a = e; a.action = a.action ? a.action : "CallBack"; var o = i.calendar || i.root; if (i instanceof DayPilot.Link)
1406
1394
  return void o.internal.linkMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Selection)
1407
1395
  return void o.internal.timeRangeMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Event)
1408
1396
  return void o.internal.eventMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Selection)
@@ -1412,88 +1400,88 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1412
1400
  case "selection": return void o.internal.timeRangeMenuClick(a.command, i, a.action);
1413
1401
  default: return void o.internal.eventMenuClick(a.command, i, a.action);
1414
1402
  } n.preventDefault(); }; };
1415
- p.onclick = g(h, p), p.ontouchend = g(h, p);
1403
+ p.onclick = y(h, p), p.ontouchend = y(h, p);
1416
1404
  }
1417
1405
  }
1418
1406
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
1419
- var y = document.createElement("span");
1420
- if (y.className = i.Sb("item_text"), y.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(y), h.image) {
1421
- var b = document.createElement("img");
1422
- b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
1407
+ var b = document.createElement("span");
1408
+ if (b.className = i.Ub("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1409
+ var w = document.createElement("img");
1410
+ w.src = h.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", p.appendChild(w);
1423
1411
  }
1424
1412
  if (h.icon) {
1425
- var w = document.createElement("span");
1426
- w.className = i.Sb("item_icon");
1413
+ var D = document.createElement("span");
1414
+ D.className = i.Ub("item_icon");
1427
1415
  var x = document.createElement("i");
1428
- x.className = h.icon, w.appendChild(x), p.appendChild(w);
1416
+ x.className = h.icon, D.appendChild(x), p.appendChild(D);
1429
1417
  }
1430
1418
  if (h.symbol) {
1431
- var D = "http://www.w3.org/2000/svg", _ = document.createElementNS(D, "svg");
1432
- _.setAttribute("width", "100%"), _.setAttribute("height", "100%");
1433
- var C = document.createElementNS(D, "use");
1434
- C.setAttribute("href", h.symbol), _.appendChild(C);
1435
- var k = document.createElement("span");
1436
- k.className = i.Sb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(_), p.appendChild(k);
1419
+ var _ = "http://www.w3.org/2000/svg", C = document.createElementNS(_, "svg");
1420
+ C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
1421
+ var k = document.createElementNS(_, "use");
1422
+ k.setAttribute("href", h.symbol), C.appendChild(k);
1423
+ var P = document.createElement("span");
1424
+ P.className = i.Ub("item_symbol"), P.style.position = "absolute", P.style.top = "0px", P.style.left = "0px", P.appendChild(C), p.appendChild(P);
1437
1425
  }
1438
- var P = function (e, n) { return function () { var a = (n.source, e), o = t.waitingSubmenu; if (o) {
1426
+ var S = function (e, n) { return function () { var a = (n.source, e), o = t.waitingSubmenu; if (o) {
1439
1427
  if (o.parent === a)
1440
1428
  return;
1441
1429
  clearTimeout(o.timeout), t.waitingSubmenu = null;
1442
- } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = a, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.Tb(a, n); }, 300)); }; };
1443
- p.onmouseover = P(h, p), f.appendChild(p);
1430
+ } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = a, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.Vb(a, n); }, 300)); }; };
1431
+ p.onmouseover = S(h, p), f.appendChild(p);
1444
1432
  }
1445
1433
  d.appendChild(f);
1446
1434
  }
1447
1435
  }
1448
- var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1449
- d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), i.Rb.visible = !0, i.Rb.source = n, d.style.display = "";
1450
- var M = d.offsetHeight, T = d.offsetWidth;
1436
+ var M = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1437
+ d.onclick = M, d.ontouchend = M, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), i.Tb.visible = !0, i.Tb.source = n, d.style.display = "";
1438
+ var T = d.offsetHeight, A = d.offsetWidth;
1451
1439
  d.style.display = "none";
1452
- var A = document.documentElement.clientHeight, E = window.innerWidth, H = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1440
+ var E = document.documentElement.clientHeight, H = window.innerWidth, N = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1453
1441
  if (function () { var e = o.initiator; if (e) {
1454
1442
  var t = e.div, n = e.e, i = e.area, r = i.visibility || i.v || "Visible", s = e.a;
1455
1443
  if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, n, i), t.appendChild(s), a = s), s) {
1456
1444
  var l = DayPilot.abs(s);
1457
1445
  o.x = l.x, o.y = l.y + l.h + 2;
1458
1446
  }
1459
- } }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, n = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - a > A - M && 0 !== A) {
1460
- s = n - (n - a - (A - M) + H);
1447
+ } }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, n = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - a > E - T && 0 !== E) {
1448
+ s = n - (n - a - (E - T) + N);
1461
1449
  }
1462
1450
  else
1463
- s = n; if (i.Rb.y = s, d.style.top = s + "px", "right" === o.align && (e -= T), e - r > E - T && 0 !== E) {
1464
- l = e - (e - r - (E - T) + H);
1451
+ s = n; if (i.Tb.y = s, d.style.top = s + "px", "right" === o.align && (e -= A), e - r > H - A && 0 !== H) {
1452
+ l = e - (e - r - (H - A) + N);
1465
1453
  }
1466
1454
  else
1467
- l = e; i.Rb.x = l, d.style.left = l + "px"; }(), o.parentLink) {
1468
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), L = R.x + N.offsetWidth, z = R.y - I;
1469
- L + T > E && (L = Math.max(0, R.x - T));
1470
- var B = document.body.scrollTop + document.documentElement.scrollTop;
1471
- z + M - B > A && (z = Math.max(0, A - M + B)), d.style.left = L + "px", d.style.top = z + "px";
1455
+ l = e; i.Tb.x = l, d.style.left = l + "px"; }(), o.parentLink) {
1456
+ var I = o.parentLink, R = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), L = DayPilot.abs(o.parentLink.parentNode), z = L.x + I.offsetWidth, B = L.y - R;
1457
+ z + A > H && (z = Math.max(0, L.x - A));
1458
+ var U = document.body.scrollTop + document.documentElement.scrollTop;
1459
+ B + T - U > E && (B = Math.max(0, E - T + U)), d.style.left = z + "px", d.style.top = B + "px";
1472
1460
  }
1473
- d.style.display = "", this.addShadow(d), this.Rb.div = d, o.submenu || (DayPilot.Menu.active = this);
1474
- } }, this.update = function () { if (i.Rb.visible) {
1475
- var e = i.Rb.source;
1476
- i.hide(), i.show(e, { "x": i.Rb.x, "y": i.Rb.y });
1477
- } }, this.Tb = function (e, t) { var n = e, a = t.source; if ((!i.Rb.submenu || i.Rb.submenu.item !== e) && (i.Rb.submenu && i.Rb.submenu.item !== e && (DayPilot.Util.removeClass(i.Rb.submenu.link.parentNode, i.Sb("item_haschildren_active")), i.Rb.submenu.menu.hide(), i.Rb.submenu = null), e.items)) {
1461
+ d.style.display = "", this.addShadow(d), this.Tb.div = d, o.submenu || (DayPilot.Menu.active = this);
1462
+ } }, this.update = function () { if (i.Tb.visible) {
1463
+ var e = i.Tb.source;
1464
+ i.hide(), i.show(e, { "x": i.Tb.x, "y": i.Tb.y });
1465
+ } }, this.Vb = function (e, t) { var n = e, a = t.source; if ((!i.Tb.submenu || i.Tb.submenu.item !== e) && (i.Tb.submenu && i.Tb.submenu.item !== e && (DayPilot.Util.removeClass(i.Tb.submenu.link.parentNode, i.Ub("item_haschildren_active")), i.Tb.submenu.menu.hide(), i.Tb.submenu = null), e.items)) {
1478
1466
  var o = i.cloneOptions();
1479
- o.items = e.items, i.Rb.submenu = {}, i.Rb.submenu.menu = new DayPilot.Menu(o), i.Rb.submenu.menu.Ub = i, i.Rb.submenu.menu.show(a, { "submenu": !0, "parentLink": t, "parentItem": n }), i.Rb.submenu.item = e, i.Rb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, i.Sb("item_haschildren_active"));
1480
- } }, 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(o, {}, ["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), a && (DayPilot.de(a), a = null), i.Rb.visible = !1, i.Rb.source = null, i.Ub && e.hideParent && i.Ub.hide(e), DayPilot.Menu.active === i && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1467
+ o.items = e.items, i.Tb.submenu = {}, i.Tb.submenu.menu = new DayPilot.Menu(o), i.Tb.submenu.menu.Wb = i, i.Tb.submenu.menu.show(a, { "submenu": !0, "parentLink": t, "parentItem": n }), i.Tb.submenu.item = e, i.Tb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, i.Ub("item_haschildren_active"));
1468
+ } }, this.Ub = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Tb.submenu && this.Tb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Tb.div && this.Tb.div.parentNode === document.body && document.body.removeChild(this.Tb.div), a && (DayPilot.de(a), a = null), i.Tb.visible = !1, i.Tb.source = null, i.Wb && e.hideParent && i.Wb.hide(e), DayPilot.Menu.active === i && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
1481
1469
  var o = {};
1482
1470
  this.onHide(o);
1483
1471
  } }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { i.hide(e); }, i.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(n) ? null : n; if (o)
1484
1472
  for (var r in o)
1485
- this[r] = o[r]; }, 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.Ka = !1; for (var i in t)
1486
- this[i] = t[i]; 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 i = document.createElement("span"); i.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), i.className = n.Vb("item"), e.cssClass && i.classList.add(e.cssClass), i.data = e, i.onclick = function (t) { if (n.active && n.active.item === e)
1487
- n.Wb();
1473
+ this[r] = o[r]; }, 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 i in t)
1474
+ this[i] = t[i]; this.Xb = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Xb("main"), DayPilot.list(n.items).forEach(function (e) { var i = document.createElement("span"); i.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), i.className = n.Xb("item"), e.cssClass && i.classList.add(e.cssClass), i.data = e, i.onclick = function (t) { if (n.active && n.active.item === e)
1475
+ n.Yb();
1488
1476
  else if (e.children)
1489
- return void n.Xb(i); if ("function" == typeof e.onClick) {
1477
+ return void n.Zb(i); if ("function" == typeof e.onClick) {
1490
1478
  var a = {};
1491
1479
  a.item = e, a.originalEvent = t, e.onClick(a);
1492
- } }, i.onmousedown = function (e) { e.stopPropagation(); }, i.onmouseover = function () { n.active && n.active.item !== e && n.Xb(i); }, t.appendChild(i), n.elements.items.push(i); }); }, 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)) {
1493
- n.Wb();
1480
+ } }, i.onmousedown = function (e) { e.stopPropagation(); }, i.onmouseover = function () { n.active && n.active.item !== e && n.Zb(i); }, t.appendChild(i), n.elements.items.push(i); }); }, this.Yb = function () { var e = n.Xb("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.$b = function (e) { return !!n.active && n.active.item === e.data; }, this.Zb = function (e) { if (!n.$b(e)) {
1481
+ n.Yb();
1494
1482
  var t = e.data, i = n.active = {};
1495
1483
  i.item = t, i.div = e;
1496
- var a = n.Vb("item_active");
1484
+ var a = n.Xb("item_active");
1497
1485
  DayPilot.Util.addClass(e, a);
1498
1486
  var o = DayPilot.abs(e);
1499
1487
  if (t.children) {
@@ -1502,11 +1490,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1502
1490
  "right" === t.align && (r += o.w), i.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": n.windowMargin });
1503
1491
  }
1504
1492
  DayPilot.MenuBar.active = n;
1505
- } }, this.init = function () { return this.u(), this.Ka = !0, this; }, this.dispose = function () { this.Ka && (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 (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
1493
+ } }, 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.Yb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
1506
1494
  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.hide = function (e) { if (e = e || {}, e.calendar) {
1507
1495
  var n = DayPilot.Menu.active;
1508
1496
  if (n) {
1509
- var i = n.Rb.source;
1497
+ var i = n.Tb.source;
1510
1498
  i && i.calendar === e.calendar && t.menuClean();
1511
1499
  }
1512
1500
  }
@@ -1550,24 +1538,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1550
1538
  throw "No CSS registration method found";
1551
1539
  t.sheet.addRule(e, i, a);
1552
1540
  } }, e; }, i = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", a = new n;
1553
- a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"), a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"),
1554
- a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_time", "position: relative;"), a.add(".modal_default_form_item_time_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_datetime_parent", "display: flex;"), a.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), a.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.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);"), a.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; "), a.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))
1555
- throw "This modal dialog is already displayed."; if (this.div || this.bc(), this.qb(), this.useIframe) {
1541
+ a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"),
1542
+ a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_time", "position: relative;"), a.add(".modal_default_form_item_time_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_datetime_parent", "display: flex;"), a.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), a.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.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);"), a.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; "), a.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._b = !1, this.bc = null, this.cc = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1543
+ throw "This modal dialog is already displayed."; if (this.div || this.dc(), this.sb(), this.useIframe) {
1556
1544
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
1557
1545
  window.setTimeout(t(this, e), 0);
1558
1546
  }
1559
1547
  else
1560
- e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.qb(), this.cc(), this.dc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1548
+ e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.sb(), this.ec(), this.fc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
1561
1549
  throw "This modal dialog is already displayed."; if (this.useIframe) {
1562
- this.div || this.bc();
1550
+ this.div || this.dc();
1563
1551
  var n = this.loadingHtml;
1564
- n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.ec), this.iframe.src = e, this.qb(), this.cc(), this.dc();
1552
+ n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.gc), this.iframe.src = e, this.sb(), this.ec(), this.fc();
1565
1553
  }
1566
1554
  else
1567
- t.fc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.dc = function () { if ("function" == typeof t.onShow) {
1555
+ t.hc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.fc = function () { if ("function" == typeof t.onShow) {
1568
1556
  var e = {};
1569
- e.root = t.gc(), e.modal = t, t.onShow(e);
1570
- } }, this.gc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.fc = function (e) { var t = new XMLHttpRequest; if (t) {
1557
+ e.root = t.ic(), e.modal = t, t.onShow(e);
1558
+ } }, this.ic = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.hc = function (e) { var t = new XMLHttpRequest; if (t) {
1571
1559
  var n = e.method || "GET", i = e.success || function () { }, a = e.error || function () { }, o = e.data, r = e.url;
1572
1560
  t.open(n, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
1573
1561
  if (200 === t.status || 304 === t.status) {
@@ -1580,45 +1568,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1580
1568
  }
1581
1569
  else
1582
1570
  window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
1583
- } }, this.qb = function () { delete this.result; var e = window, n = document, i = 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 = i + 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.ic(), 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.hc().y; }, n = function () { return t.hc().x; }; if (this.useIframe) {
1584
- for (var i = n() - 40, a = this.width; a < i && this.jc(); a += 10)
1571
+ } }, this.sb = function () { delete this.result; var e = window, n = document, i = 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 = i + 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.kc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.gc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.jc().y; }, n = function () { return t.jc().x; }; if (this.useIframe) {
1572
+ for (var i = n() - 40, a = this.width; a < i && this.lc(); a += 10)
1585
1573
  this.div.style.width = a + "px", this.div.style.marginLeft = "-" + Math.floor(a / 2) + "px";
1586
- for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.kc(); r += 10)
1574
+ for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.nc(); r += 10)
1587
1575
  this.iframe.style.height = r + "px", this.div.style.height = r + "px";
1588
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.ec);
1576
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.gc);
1589
1577
  }
1590
1578
  else
1591
- 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, i = e.body.children, a = 0; a < i.length; a++) {
1579
+ this.div.style.height = ""; }, this.lc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, i = e.body.children, a = 0; a < i.length; a++) {
1592
1580
  var o = i[a].offsetLeft + i[a].offsetWidth;
1593
1581
  n = Math.max(n, o);
1594
- } 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, i = e.body.children, a = 0; a < i.length; a++) {
1582
+ } return n > t.clientWidth; }, this.nc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, i = e.body.children, a = 0; a < i.length; a++) {
1595
1583
  var o = i[a].offsetTop + i[a].offsetHeight;
1596
1584
  n = Math.max(n, o);
1597
- } return n > t.clientHeight; }, this.hc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1585
+ } return n > t.clientHeight; }, this.jc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
1598
1586
  var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
1599
1587
  return { x: t, y: n };
1600
- } 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) {
1601
- var e = e || window.event, n = t.mc(e), i = n.x - t._b.x, a = n.y - t._b.y;
1602
- t.div.style.marginLeft = "0px", t.div.style.top = t.$b.y + a + "px", t.div.style.left = t.$b.x + i + "px";
1603
- } }, this.pc = function (e) { t._b && (t.tc(), t.div.style.cursor = null, t._b = null); }, this.sc = function () { if (this.useIframe) {
1588
+ } var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.ec = function () { this._b || (this.re(window, "resize", this.oc), this.re(window, "scroll", this.pc), this.dragDrop && (this.re(document, "mousemove", this.qc), this.re(document, "mouseup", this.rc)), this._b = !0); }, this.sc = function () { this.ue(window, "resize", this.oc), this.ue(window, "scroll", this.pc), this.dragDrop && (this.ue(document, "mousemove", this.qc), this.ue(document, "mouseup", this.rc)), this._b = !1; }, this.tc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.uc(), t.cc = t.mc(e || window.event), t.bc = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.qc = function (e) { if (t.cc) {
1589
+ var e = e || window.event, n = t.mc(e), i = n.x - t.cc.x, a = n.y - t.cc.y;
1590
+ t.div.style.marginLeft = "0px", t.div.style.top = t.bc.y + a + "px", t.div.style.left = t.bc.x + i + "px";
1591
+ } }, this.rc = function (e) { t.cc && (t.vc(), t.div.style.cursor = null, t.cc = null); }, this.uc = function () { if (this.useIframe) {
1604
1592
  var e = document.createElement("div");
1605
1593
  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;
1606
- } }, this.tc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.lc = function () { t.uc(), t.ic(); }, this.nc = function () { t.uc(); }, this.ic = function () { if (!t.left && t.div) {
1594
+ } }, this.vc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.oc = function () { t.wc(), t.kc(); }, this.pc = function () { t.wc(); }, this.kc = function () { if (!t.left && t.div) {
1607
1595
  var e = t.div.offsetWidth;
1608
1596
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
1609
- } }, this.uc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1610
- var e = t.vc.scrollY();
1597
+ } }, this.wc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1598
+ var e = t.xc.scrollY();
1611
1599
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1612
- } }, 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;)
1613
- 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, i = n ? "fixed" : "absolute", a = document.createElement("div"); a.id = this.id + "hide", a.style.position = i, a.style.left = "0px", a.style.top = "0px", a.style.right = "0px", a.style.bottom = "0px", a.oncontextmenu = function () { return !1; }, a.onmousedown = function () { return !1; }, e.appendChild(a); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = i, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.rc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = a; }, this.setInnerHTML = function (e, n) { var i = window.frames[e], a = i.contentWindow || i.document || i.contentDocument; a.document && (a = a.document), null == a.body && a.write("<body></body>"), n.nodeType ? a.body.appendChild(n) : a.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"), i = {}, a = 0; a < n.length; a++) {
1600
+ } }, this.xc = {}, this.xc.container = function () { return t.container || document.body; }, this.xc.scrollY = function () { var e = t.xc.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;)
1601
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.dc = function () { var e = t.xc.container(), n = e === document.body, i = n ? "fixed" : "absolute", a = document.createElement("div"); a.id = this.id + "hide", a.style.position = i, a.style.left = "0px", a.style.top = "0px", a.style.right = "0px", a.style.bottom = "0px", a.oncontextmenu = function () { return !1; }, a.onmousedown = function () { return !1; }, e.appendChild(a); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = i, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.tc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = a; }, this.setInnerHTML = function (e, n) { var i = window.frames[e], a = i.contentWindow || i.document || i.contentDocument; a.document && (a = a.document), null == a.body && a.write("<body></body>"), n.nodeType ? a.body.appendChild(n) : a.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.yc || (t.stretch(), t.yc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.ic(), n = e.querySelectorAll("input, textarea, select"), i = {}, a = 0; a < n.length; a++) {
1614
1602
  var o = n[a], r = o.name;
1615
1603
  if (r) {
1616
1604
  var s = o.value;
1617
1605
  i[r] = s;
1618
1606
  }
1619
- } t.close(i); }, 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) { e && e.parentNode && e.parentNode.removeChild(e); }, this.yc = function () { if (e)
1607
+ } t.close(i); }, 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.sc(), t.zc(t.div), t.zc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.zc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.Ac = function () { if (e)
1620
1608
  for (var t in e)
1621
- 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"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (i, a) { t.onClosed = function (e) { i(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", i = t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, o) { t.onClosed = function (e) { a(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = n, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = i, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var i = n.okText || "OK", a = n.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { n.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(n), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1609
+ this[t] = e[t]; }, this.Ac(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (i, a) { t.onClosed = function (e) { i(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", i = t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, o) { t.onClosed = function (e) { a(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = n, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = i, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var i = n.okText || "OK", a = n.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { n.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(n), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
1622
1610
  case 13:
1623
1611
  s.close(this.value);
1624
1612
  break;
@@ -1668,28 +1656,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1668
1656
  y && y.focus();
1669
1657
  }
1670
1658
  else {
1671
- var x = h.firstFocusable();
1672
- o.autoFocus && x ? x.focus() : o.div.focus();
1659
+ var D = h.firstFocusable();
1660
+ o.autoFocus && D ? D.focus() : o.div.focus();
1673
1661
  } }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
1674
1662
  throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, 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)); });
1675
- var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.zc = [], this.Ac = null, this.canceling = !1, this.Bc = [], this.f = [], this.Cc = null, e = e || {}; for (var t in e)
1663
+ var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.Bc = [], this.Cc = null, this.canceling = !1, this.Dc = [], this.f = [], this.Ec = null, e = e || {}; for (var t in e)
1676
1664
  this[t] = e[t]; };
1677
- r.prototype.create = function () { return this.load(), this.render(), this.Cc; }, r.prototype.render = function () { var e = this; this.Cc = document.createElement("div"), this.zc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, n = this, i = document.createElement("div"); if (i.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? i.className += " " + t + "_form_item_" + e.type : i.className += " " + t + "_form_title", e.data.cssClass && (i.className += " " + e.data.cssClass), !e.isValue) {
1665
+ r.prototype.create = function () { return this.load(), this.render(), this.Ec; }, r.prototype.render = function () { var e = this; this.Ec = document.createElement("div"), this.Bc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, n = this, i = document.createElement("div"); if (i.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? i.className += " " + t + "_form_item_" + e.type : i.className += " " + t + "_form_title", e.data.cssClass && (i.className += " " + e.data.cssClass), !e.isValue) {
1678
1666
  var a = document.createElement("div");
1679
1667
  a.className = t + "_form_item_label", a.innerText = e.text, i.appendChild(a);
1680
- } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, n.Dc(o, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1668
+ } var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, n.Fc(o, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
1681
1669
  var t = {};
1682
1670
  t.result = n.serialize(), n.onChange(t);
1683
- } }, o.onBlur = function () { n.canceling || n.Dc(o); }, o.apply(e), o.Cc = i, o.row = e, o.element && i.appendChild(o.element), this.f.push(o), this.Cc.appendChild(i); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var i = e.Dc(n); t = t && i; }), t; }, r.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 i = t.debounce, a = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l; if (d) {
1671
+ } }, o.onBlur = function () { n.canceling || n.Fc(o); }, o.apply(e), o.Ec = i, o.row = e, o.element && i.appendChild(o.element), this.f.push(o), this.Ec.appendChild(i); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var i = e.Fc(n); t = t && i; }), t; }, r.prototype.Fc = function (e, t) { function n() { e.Gc && (e.Gc.remove(), e.Gc = null), e.Ec.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Gc = t, e.Ec.appendChild(t); } t = t || {}; var i = t.debounce, a = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l; if (d) {
1684
1672
  var c = {};
1685
1673
  c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
1686
1674
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
1687
1675
  if (c.valid)
1688
- clearTimeout(this.Bc[o.field]), e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.remove(u);
1676
+ clearTimeout(this.Dc[o.field]), e.Gc && (e.Gc.remove(), e.Gc = null), e.Ec.classList.remove(u);
1689
1677
  else if (!a)
1690
1678
  if (i) {
1691
1679
  var f = 1e3;
1692
- clearTimeout(this.Bc[o.field]), this.Bc[o.field] = setTimeout(function () { n(); }, f);
1680
+ clearTimeout(this.Dc[o.field]), this.Dc[o.field] = setTimeout(function () { n(); }, f);
1693
1681
  }
1694
1682
  else
1695
1683
  n();
@@ -1701,35 +1689,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1701
1689
  catch (e) {
1702
1690
  throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1703
1691
  } for (var a in n)
1704
- this.setValue(a, n[a]); }, r.prototype.setValue = function (e, t) { this.zc.forEach(function (n) { n.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Ac ? this.Ac : this.zc).forEach(function (n) { var i = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); i.isValue && (t[i.level + 1] = i.enabled && i.checked); }); }, r.prototype.processFormItem = function (e, t) {
1692
+ this.setValue(a, n[a]); }, r.prototype.setValue = function (e, t) { this.Bc.forEach(function (n) { n.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Cc ? this.Cc : this.Bc).forEach(function (n) { var i = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); i.isValue && (t[i.level + 1] = i.enabled && i.checked); }); }, r.prototype.processFormItem = function (e, t) {
1705
1693
  var n = this, i = this.getFieldType(e), a = [];
1706
1694
  if ("radio" === i) {
1707
1695
  if (e.name) {
1708
1696
  var o = new s;
1709
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, n.zc.push(o), a.push(o);
1697
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, n.Bc.push(o), a.push(o);
1710
1698
  }
1711
- e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = i, r.isValue = !0, r.text = o.name, r.resolved = o.id, n.zc.push(r), a.push(r), o.children && o.children.forEach(function (e) { var i = n.processFormItem(e, t + 1); a = a.concat(i); }); });
1699
+ e.options.forEach(function (o) {
1700
+ var r = new s;
1701
+ r.field = e.id, r.data = o, r.level = t, r.type = i, r.isValue = !0, r.text = o.name, r.resolved = o.id, n.Bc.push(r), a.push(r),
1702
+ o.children && o.children.forEach(function (e) { var i = n.processFormItem(e, t + 1); a = a.concat(i); });
1703
+ });
1712
1704
  }
1713
1705
  else if ("title" === i) {
1714
1706
  var o = new s;
1715
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1,
1716
- o.text = e.name, n.zc.push(o), a.push(o);
1707
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, n.Bc.push(o), a.push(o);
1717
1708
  }
1718
1709
  else if ("image" === i) {
1719
1710
  var o = new s;
1720
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.zc.push(o), a.push(o);
1711
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
1721
1712
  }
1722
1713
  else if ("html" === i) {
1723
1714
  var o = new s;
1724
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.zc.push(o), a.push(o);
1715
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
1725
1716
  }
1726
1717
  else if ("scrollable" === i) {
1727
1718
  var o = new s;
1728
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.zc.push(o), a.push(o);
1719
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
1729
1720
  }
1730
1721
  else {
1731
1722
  var o = new s;
1732
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], n.zc.push(o), a.push(o);
1723
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], n.Bc.push(o), a.push(o);
1733
1724
  }
1734
1725
  return "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var i = n.processFormItem(e, t + 1); a = a.concat(i); })), a;
1735
1726
  }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
@@ -1762,11 +1753,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1762
1753
  a.close(), n = !0;
1763
1754
  break;
1764
1755
  default: n = !0;
1765
- } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.element = i, n.picker = a, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = a.date ? a.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 l; 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 (e) { t.onInput({ "immediate": !0 }); }, n.onblur = function (e) { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, i = n.options[n.selectedIndex]; i && "undefined" != typeof i.Hc && (t = i.Hc); var a = {}; return a[e.field] = t, a; }, t; }, "searchable": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new d({ 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 }); } }), a = i.create(); return n.element = a, 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 l; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "radio", a.name = e.field, a.Hc = e.resolved, a.onchange = function (e) { var i = n.row; t.findRowsByField(i.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(i, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = a, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!a.checked)
1766
- return {}; var t = a.Hc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "checkbox", a.name = e.field, a.Hc = e.resolved, a.onchange = function (e) { var i = n.row; t.updateState(i, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = a, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = a.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { n.onInput(); } }), a = i.create(); return n.element = a, 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](); }, r.prototype.Fc = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], a = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(a) || (a = 15); for (var o = 60 / a, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1756
+ } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.element = i, n.picker = a, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = a.date ? a.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Hc(e); }, "datetime": function () { return t.Ic(e); }, "select": function () { var t = new l; 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.Jc = e.id, n.appendChild(t); }), n.onchange = function (e) { t.onInput({ "immediate": !0 }); }, n.onblur = function (e) { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, i = n.options[n.selectedIndex]; i && "undefined" != typeof i.Jc && (t = i.Jc); var a = {}; return a[e.field] = t, a; }, t; }, "searchable": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new d({ 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 }); } }), a = i.create(); return n.element = a, 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 l; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "radio", a.name = e.field, a.Jc = e.resolved, a.onchange = function (e) { var i = n.row; t.findRowsByField(i.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(i, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = a, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!a.checked)
1757
+ return {}; var t = a.Jc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "checkbox", a.name = e.field, a.Jc = e.resolved, a.onchange = function (e) { var i = n.row; t.updateState(i, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = a, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = a.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { n.onInput(); } }), a = i.create(); return n.element = a, 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](); }, r.prototype.Hc = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], a = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(a) || (a = 15); for (var o = 60 / a, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
1767
1758
  var h = c.addMinutes(a * u), f = {};
1768
1759
  f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), i.push(f);
1769
- } var v = new d({ 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; }, r.prototype.Gc = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var i = n.searchable; i.disabled = !e.enabled; var a = new DayPilot.Date(e.value).toString("HH:mm"); i.select(a); var o = n.dateInput, r = n.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1760
+ } var v = new d({ 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; }, r.prototype.Ic = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var i = n.searchable; i.disabled = !e.enabled; var a = new DayPilot.Date(e.value).toString("HH:mm"); i.select(a); var o = n.dateInput, r = n.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
1770
1761
  var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
1771
1762
  r.locale = s, r.pattern = l.datePattern;
1772
1763
  } o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var i = function () { var i = document.createElement("input"); i.name = e.field; var a = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { n.onInput({ "immediate": !0 }); } }); return i.picker = a, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) { var n = !1; switch (e.keyCode) {
@@ -1783,11 +1774,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1783
1774
  } n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.dateInput = i, n.picker = a, i; }(), a = function () { var i = [], a = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(a) || (a = 15); for (var o = 60 / a, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
1784
1775
  var u = l.addMinutes(a * c), h = {};
1785
1776
  h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), i.push(h);
1786
- } var f = new d({ 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 }); } }); return n.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(a), n.element = o, 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, i = n.picker.date ? n.picker.date.toString() : null, a = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(a.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, n; }, r.prototype.findRowsByField = function (e) { return this.zc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var n = this.Ac ? this.Ac : this.zc, i = n.indexOf(e); return this.Ac = n.map(function (n) { if (n !== e)
1777
+ } var f = new d({ 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 }); } }); return n.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(a), n.element = o, 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, i = n.picker.date ? n.picker.date.toString() : null, a = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(a.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, n; }, r.prototype.findRowsByField = function (e) { return this.Bc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var n = this.Cc ? this.Cc : this.Bc, i = n.indexOf(e); return this.Cc = n.map(function (n) { if (n !== e)
1787
1778
  return n; if (e.propsEqual(t))
1788
1779
  return e; var i = e.clone(); for (var a in t)
1789
- i[a] = t[a]; return i; }), this.Ac[i]; }, r.prototype.updateInteractive = function (e) { var t = this.Ac.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Ac) {
1790
- this.Ac.filter(function (t, n) { return e.zc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.zc = this.Ac, this.Ac = null;
1780
+ i[a] = t[a]; return i; }), this.Cc[i]; }, r.prototype.updateInteractive = function (e) { var t = this.Cc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Cc) {
1781
+ this.Cc.filter(function (t, n) { return e.Bc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.Bc = this.Cc, this.Cc = null;
1791
1782
  } }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var n = t.save(); for (var i in n)
1792
1783
  e[i] = n[i]; }), e; };
1793
1784
  var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
@@ -1795,45 +1786,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1795
1786
  "id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
1796
1787
  if (this[t] !== e[t])
1797
1788
  return !1; return !0; }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
1798
- var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.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 i in e)
1789
+ var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.Kc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Lc = null, this.Mc = null, this.Nc = !1, this.Oc = null, this.Pc = null, this.q = [], this.Qc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Lc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Lc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Kc; }, set: function (e) { this.Kc = e, this.Oc && (this.Oc.disabled = e, e && this.Rc()); } }); for (var i in e)
1799
1790
  n[i] || (this[i] = e[i]); for (var i in e)
1800
1791
  n[i] && n[i].post(e[i]); };
1801
- d.prototype.select = function (e) { return this.Jc = this.data.find(function (t) { return t.id === e; }), this.Qc(!1), this; }, d.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 a = null; l.data.forEach(function (n) { var o = n.name || n.id; if ("includes" === e) {
1792
+ d.prototype.select = function (e) { return this.Lc = this.data.find(function (t) { return t.id === e; }), this.Sc(!1), this; }, d.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.Mc = null, l.q = []; var a = null; l.data.forEach(function (n) { var o = n.name || n.id; if ("includes" === e) {
1802
1793
  if (o.toLowerCase().indexOf(v.value.toLowerCase()) === -1)
1803
1794
  return;
1804
1795
  }
1805
1796
  else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(v.value.toLowerCase()))
1806
- return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = n, n === l.Jc && (l.Kc = r), a || (a = r), r.addEventListener("mousedown", function (e) { i(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Kc !== r && (l.Kc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.q.push(r); }), l.Kc || (l.Kc = a), 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(), i = t.getBoundingClientRect(); return n.top >= i.top && n.bottom <= i.bottom; } function i(e) { var t = e.item; l.Jc = t, l.Qc(!0), o(), r(); } function a() { l.Pc(); } function o() { l.s(); } function r() { 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()) : (a(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Oc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Ic, v.addEventListener("click", function (e) { s(); }), v.addEventListener("focus", function (t) { e("all"); }), v.addEventListener("input", function (t) { e(); }), v.addEventListener("blur", function (e) { v.removeAttribute("readonly"), a(); }), v.addEventListener("keydown", function (e) { if (l.Lc) {
1797
+ return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = n, n === l.Lc && (l.Mc = r), a || (a = r), r.addEventListener("mousedown", function (e) { i(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Mc !== r && (l.Mc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.q.push(r); }), l.Mc || (l.Mc = a), 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.Mc && (l.Mc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Mc, h) && l.Mc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), i = t.getBoundingClientRect(); return n.top >= i.top && n.bottom <= i.bottom; } function i(e) { var t = e.item; l.Lc = t, l.Sc(!0), o(), r(); } function a() { l.Rc(); } function o() { l.s(); } function r() { l.Nc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Nc = !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.Nc ? (l.focus(), s()) : (a(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Qc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Kc, v.addEventListener("click", function (e) { s(); }), v.addEventListener("focus", function (t) { e("all"); }), v.addEventListener("input", function (t) { e(); }), v.addEventListener("blur", function (e) { v.removeAttribute("readonly"), a(); }), v.addEventListener("keydown", function (e) { if (l.Nc) {
1807
1798
  if ("Enter" === e.key)
1808
1799
  return;
1809
1800
  if ("Esc" === e.key || "Escape" === e.key)
1810
1801
  return;
1811
1802
  s();
1812
1803
  } if ("ArrowDown" === e.key) {
1813
- var n = d.q.indexOf(d.Kc);
1814
- n + 1 < d.q.length && (d.Kc = d.q[n + 1]), t();
1804
+ var n = d.q.indexOf(d.Mc);
1805
+ n + 1 < d.q.length && (d.Mc = d.q[n + 1]), t();
1815
1806
  }
1816
1807
  else if ("ArrowUp" === e.key) {
1817
- var n = d.q.indexOf(d.Kc);
1818
- n - 1 >= 0 && (d.Kc = d.q[n - 1]), t();
1808
+ var n = d.q.indexOf(d.Mc);
1809
+ n - 1 >= 0 && (d.Mc = d.q[n - 1]), t();
1819
1810
  }
1820
1811
  else
1821
- "Enter" === e.key ? l.Kc ? (e.stopPropagation(), i(l.Kc)) : (e.stopPropagation(), a(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), a(), r()); }), 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; }, d.prototype.Pc = function () { this.s(), this.Jc ? this.Mc.value = this.Jc.name : (this.Mc.value = "", this.Qc(!0)); }, d.prototype.focus = function () { this.Lc = !0, this.Mc.setAttribute("readonly", "readonly"), this.Mc.focus(), this.Pc(); }, d.prototype.s = function () { this.Nc.style.display = "none"; }, d.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) {
1812
+ "Enter" === e.key ? l.Mc ? (e.stopPropagation(), i(l.Mc)) : (e.stopPropagation(), a(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), a(), r()); }), this.Oc = v, this.Pc = h, this.Lc || (this.Lc = this.data[0], this.Lc && (v.value = this.Lc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.Rc = function () { this.s(), this.Lc ? this.Oc.value = this.Lc.name : (this.Oc.value = "", this.Sc(!0)); }, d.prototype.focus = function () { this.Nc = !0, this.Oc.setAttribute("readonly", "readonly"), this.Oc.focus(), this.Rc(); }, d.prototype.s = function () { this.Pc.style.display = "none"; }, d.prototype.Sc = function (e) { if (this.Qc.value = this.selected ? this.selected.id : null, this.Lc ? this.Oc.value = this.Lc.name : this.Oc.value = "", "function" == typeof this.onSelect) {
1822
1813
  var t = { control: this, ui: e };
1823
1814
  this.onSelect(t);
1824
1815
  } };
1825
- var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Rc = null, this.zc = [], e = e || {}; for (var t in e)
1816
+ var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Tc = null, this.Bc = [], e = e || {}; for (var t in e)
1826
1817
  this[t] = e[t]; };
1827
- c.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 i = document.createElement("div"); i.className = this.theme + "_table"; var a = this.Sc(); i.appendChild(a); var o = e.Tc({}); o.spacer = !0; var r = this.Uc(o); r.classList.add(e.theme + "_spacer"), i.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", i.appendChild(s), t.appendChild(i); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = i, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1818
+ c.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 i = document.createElement("div"); i.className = this.theme + "_table"; var a = this.Uc(); i.appendChild(a); var o = e.Vc({}); o.spacer = !0; var r = this.Wc(o); r.classList.add(e.theme + "_spacer"), i.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", i.appendChild(s), t.appendChild(i); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = i, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
1828
1819
  var n = e.item.onNewRow, i = {};
1829
1820
  if ("function" == typeof n) {
1830
1821
  var a = {};
1831
1822
  a.result = e.form.serialize(), a.value = {}, n(a), i = a.value;
1832
1823
  }
1833
- var o = e.Tc(i);
1834
- e.zc.push(o), e.Vc(), e.Wc();
1835
- } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.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 i = document.createElement("div"); i.classList.add(e.theme + "_cell"), i.innerText = n.name, t.appendChild(i); }), t; }, c.prototype.Xc = function () { var e = this.item.max || 0; return !!(e && this.zc.length >= e); }, c.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; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1836
- throw new Error("Array expected"); this.data = e, this.Yc(), this.Vc(); }, c.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"); }, c.prototype.Yc = function () { var e = this; this.zc = [], this.data.forEach(function (t) { var n = e.Tc(t); e.zc.push(n); }); }, c.prototype.$c = function (e) { var t = this, n = t.zc.indexOf(e); t.zc.splice(n, 1); }, c.prototype.Tc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (i) { var a = i.id, o = e[a], r = t._c(i); if ("undefined" == typeof o)
1824
+ var o = e.Vc(i);
1825
+ e.Bc.push(o), e.Xc(), e.Yc();
1826
+ } }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.Uc = 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 i = document.createElement("div"); i.classList.add(e.theme + "_cell"), i.innerText = n.name, t.appendChild(i); }), t; }, c.prototype.Zc = function () { var e = this.item.max || 0; return !!(e && this.Bc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.Bc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
1827
+ throw new Error("Array expected"); this.data = e, this.$c(), this.Xc(); }, c.prototype._c = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Zc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.$c = function () { var e = this; this.Bc = [], this.data.forEach(function (t) { var n = e.Vc(t); e.Bc.push(n); }); }, c.prototype.ad = function (e) { var t = this, n = t.Bc.indexOf(e); t.Bc.splice(n, 1); }, c.prototype.Vc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (i) { var a = i.id, o = e[a], r = t.bd(i); if ("undefined" == typeof o)
1837
1828
  if ("text" === r)
1838
1829
  o = "";
1839
1830
  else if ("number" === r)
@@ -1841,23 +1832,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1841
1832
  else if ("select" === r) {
1842
1833
  var s = i.options;
1843
1834
  o = s && s[0].id;
1844
- } var l = {}; l.id = a, l.value = o, l.type = r, l.data = i, n.cells.push(l); }), n; }, c.prototype._c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.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) {
1845
- var t = e.ad();
1835
+ } var l = {}; l.id = a, l.value = o, l.type = r, l.data = i, n.cells.push(l); }), n; }, c.prototype.bd = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Xc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.Bc.forEach(function (t) { var n = e.Wc(t); e.nav.body.appendChild(n); }), 0 === this.Bc.length) {
1836
+ var t = e.cd();
1846
1837
  e.nav.after.appendChild(t);
1847
- } this.Zc(); }, c.prototype.ad = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Uc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (i) { var a = document.createElement("div"); a.className = t.theme + "_cell"; var o = t.bd(i); if (e.spacer) {
1838
+ } this._c(); }, c.prototype.cd = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Wc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (i) { var a = document.createElement("div"); a.className = t.theme + "_cell"; var o = t.dd(i); if (e.spacer) {
1848
1839
  var r = document.createElement("div");
1849
1840
  r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), a.appendChild(r);
1850
1841
  }
1851
1842
  else
1852
- a.appendChild(o); n.appendChild(a); }); var i = document.createElement("div"); i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction"); var a = document.createElement("span"); return a.className = this.theme + "_delete", a.addEventListener("click", function (n) { t.disabled || (t.$c(e), t.Vc(), t.Wc()); }), e.spacer || i.appendChild(a), n.appendChild(i), n; }, c.prototype.Wc = function () { var e = this; if ("function" == typeof e.onInput) {
1843
+ a.appendChild(o); n.appendChild(a); }); var i = document.createElement("div"); i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction"); var a = document.createElement("span"); return a.className = this.theme + "_delete", a.addEventListener("click", function (n) { t.disabled || (t.ad(e), t.Xc(), t.Yc()); }), e.spacer || i.appendChild(a), n.appendChild(i), n; }, c.prototype.Yc = function () { var e = this; if ("function" == typeof e.onInput) {
1853
1844
  var t = {};
1854
1845
  e.onInput(t);
1855
- } }, c.prototype.bd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1846
+ } }, c.prototype.dd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
1856
1847
  var i = document.createElement("input");
1857
- return i.type = n, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Wc(); }), i;
1848
+ return i.type = n, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Yc(); }), i;
1858
1849
  } if ("select" === n) {
1859
1850
  var a = document.createElement("select");
1860
- return t.disabled && (a.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, a.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), a.addEventListener("change", function (n) { var i = a.options[a.selectedIndex]; i && "undefined" != typeof i.Hc && (e.value = i.Hc), t.Wc(); }), a;
1851
+ return t.disabled && (a.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Jc = t.id, a.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), a.addEventListener("change", function (n) { var i = a.options[a.selectedIndex]; i && "undefined" != typeof i.Jc && (e.value = i.Jc), t.Yc(); }), a;
1861
1852
  } throw new Error("Unsupported item type: " + n); }, c.prototype.focus = function () { };
1862
1853
  }
1863
1854
  }(DayPilot), "undefined" == typeof DayPilot)
@@ -1866,9 +1857,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1866
1857
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1867
1858
  var e = {}, t = DayPilot.Util.isVueVNode;
1868
1859
  e.Month = function (n, i) {
1869
- this.v = "2025.3.686-lite", this.nav = {};
1860
+ this.v = "2025.3.691-lite", this.nav = {};
1870
1861
  var a = this;
1871
- 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.W = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.Y(), a.cd(), a.ha(), "Full" === e.UpdateType && (a.dd(), a.ed()), a.ma(), a.show(), a.na(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { a.afterRender && a.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)
1862
+ 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.W = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.Y(), a.ed(), a.ha(), "Full" === e.UpdateType && (a.fd(), a.gd()), a.ma(), a.show(), a.na(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { a.afterRender && a.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)
1872
1863
  t = e.data;
1873
1864
  else {
1874
1865
  if ("object" != typeof e)
@@ -1913,21 +1904,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1913
1904
  var s = {};
1914
1905
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1915
1906
  return;
1916
- a.events.list = n, a.Ka && a.update();
1907
+ a.events.list = n, a.Ma && a.update();
1917
1908
  } }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
1918
1909
  DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": i });
1919
1910
  else {
1920
1911
  var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
1921
1912
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": i });
1922
- } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(a.zb), n.filter(function (n) { var i = n.start(), a = n.end(); return i === a && i === e || DayPilot.Util.overlaps(e, t, i, a); }); }, this.update = function (e) { if (a.sb(e), this.Ka) {
1913
+ } }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(a.Bb), n.filter(function (n) { var i = n.start(), a = n.end(); return i === a && i === e || DayPilot.Util.overlaps(e, t, i, a); }); }, this.update = function (e) { if (a.ub(e), this.Ma) {
1923
1914
  if (a.Q)
1924
1915
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
1925
1916
  if (this.cells) {
1926
- a.Y(), a.cd(), a.ha(), a.dd(), a.ed(), a.ma(), a.u(), a.na(), this.visible ? this.show() : this.hide();
1917
+ a.Y(), a.ed(), a.ha(), a.fd(), a.gd(), a.ma(), a.u(), a.na(), this.visible ? this.show() : this.hide();
1927
1918
  }
1928
- } }, this.ub = null, this.sb = function (e) { if (e) {
1919
+ } }, this.wb = null, this.ub = function (e) { if (e) {
1929
1920
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
1930
- this.ub = t;
1921
+ this.wb = t;
1931
1922
  for (var n in e)
1932
1923
  if (t[n]) {
1933
1924
  var i = t[n];
@@ -1935,10 +1926,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1935
1926
  }
1936
1927
  else
1937
1928
  a[n] = e[n];
1938
- } }, this.vb = function () { var e = this.ub; for (var t in e) {
1929
+ } }, this.xb = function () { var e = this.wb; for (var t in e) {
1939
1930
  var n = e[t];
1940
1931
  n.postInit && n.postInit();
1941
- } }, this.xb = {}, this.xb.events = [], this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], i = {}; for (var o in n)
1932
+ } }, this.zb = {}, this.zb.events = [], this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; for (var o in n)
1942
1933
  i[o] = n[o]; if ("function" == typeof this.onBeforeEventRender) {
1943
1934
  var r = {};
1944
1935
  r.control = a, r.data = i, this.onBeforeEventRender(r);
@@ -1947,7 +1938,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1947
1938
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
1948
1939
  if ("function" == typeof this.onBeforeEventRender)
1949
1940
  for (var t = 0; t < e.length; t++)
1950
- this.yb(t);
1941
+ this.Ab(t);
1951
1942
  for (var n = 0; n < e.length; n++) {
1952
1943
  var i = e[n];
1953
1944
  if ("object" != typeof i)
@@ -1960,12 +1951,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1960
1951
  if (!(a.getTime() > o.getTime()))
1961
1952
  for (var t = 0; t < this.rows.length; t++) {
1962
1953
  var r = this.rows[t], s = new DayPilot.Event(i, this);
1963
- r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.xb.events[n]));
1954
+ r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.zb.events[n]));
1964
1955
  }
1965
1956
  }
1966
1957
  for (var l = 0; l < this.rows.length; l++) {
1967
1958
  var r = this.rows[l];
1968
- r.events.sort(this.zb);
1959
+ r.events.sort(this.Bb);
1969
1960
  for (var d = 0; d < this.rows[l].events.length; d++) {
1970
1961
  var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
1971
1962
  r.putIntoLine(c, u, h, l);
@@ -1973,16 +1964,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1973
1964
  }
1974
1965
  } }, this.Y = function () { for (var e = 0; e < this.elements.events.length; e++) {
1975
1966
  var t = this.elements.events[e];
1976
- a.Na(t);
1977
- } this.elements.events = []; }, this.Na = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeEventDomRemove && a.onBeforeEventDomRemove(n), n && "function" == typeof a.onBeforeEventDomAdd) {
1978
- var i = n && n.Oa;
1967
+ a.Pa(t);
1968
+ } this.elements.events = []; }, this.Pa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeEventDomRemove && a.onBeforeEventDomRemove(n), n && "function" == typeof a.onBeforeEventDomAdd) {
1969
+ var i = n && n.Qa;
1979
1970
  if (i) {
1980
- a.Qa.Pa && t(n.element) && (a.Qa.Ra = !0, a.Qa.Sa(i), a.Qa.Ra = !1);
1971
+ a.Sa.Ra && t(n.element) && (a.Sa.Ta = !0, a.Sa.Ua(i), a.Sa.Ta = !1);
1981
1972
  }
1982
- } }(), 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++)
1973
+ } }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.hd(); }, this.hd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
1983
1974
  for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
1984
1975
  for (var i = t.lines[n], a = 0; a < i.length; a++)
1985
- this.Ta(i[a]); }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
1976
+ this.Va(i[a]); }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
1986
1977
  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, i, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: n }, this.shadow.width = o; var d = 7 * n + t - r; d < 0 && (l += d, t = 0, n = 0); for (var c = r; c >= 7;)
1987
1978
  n--, c -= 7; if (c > t) {
1988
1979
  c > t + (7 - this.getColCount()) ? (n--, t = t + 7 - c) : (l = l - c + t, t = 0);
@@ -1998,17 +1989,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1998
1989
  this.nav.top.removeChild(this.shadow.list[e]);
1999
1990
  this.shadow = null, this.nav.top.style.cursor = "";
2000
1991
  } }, this.getEventTop = function (e, t) { for (var n = this.headerHeight, i = 0; i < e; i++)
2001
- n += this.rows[i].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ta = function (n) {
1992
+ n += this.rows[i].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) {
2002
1993
  var i = n.cache || n.data, o = i.borderRadius || a.eventBorderRadius;
2003
1994
  "number" == typeof o && (o += "px");
2004
1995
  var r = 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(r, s), f = document.createElement("div");
2005
- f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), i.cssClass && DayPilot.Util.addClass(f, i.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 = a.va, f.oncontextmenu = a.gd, f.onmousedown = function (t) {
1996
+ f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), i.cssClass && DayPilot.Util.addClass(f, i.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 = a.va, f.oncontextmenu = a.jd, f.onmousedown = function (t) {
2006
1997
  t = t || window.event;
2007
1998
  var i = t.which || t.button;
2008
1999
  if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === i)
2009
2000
  if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2010
2001
  var o = {};
2011
- o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1, o.direction = this.style.cursor, e.resizingEvent = o;
2002
+ o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
2003
+ o.direction = this.style.cursor, e.resizingEvent = o;
2012
2004
  }
2013
2005
  else if ("move" === this.style.cursor || n.client.moveEnabled()) {
2014
2006
  a.clearShadow();
@@ -2047,11 +2039,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2047
2039
  !function () { var e = {}; if (e.control = a, e.e = n, e.element = null, f.domArgs = e, "function" == typeof a.onBeforeEventDomAdd && a.onBeforeEventDomAdd(e), e.element) {
2048
2040
  var i = v;
2049
2041
  if (i) {
2050
- e.Oa = i;
2042
+ e.Qa = i;
2051
2043
  if (t(e.element)) {
2052
- if (!a.Qa.Pa)
2044
+ if (!a.Sa.Ra)
2053
2045
  throw new DayPilot.Exception("Can't reach Vue");
2054
- a.Qa.Ra = !0, a.Qa.Ua(e.element, i, { "style": { "flexGrow": 1 } }), a.Qa.Ra = !1;
2046
+ a.Sa.Ta = !0, a.Sa.Wa(e.element, i, { "style": { "flexGrow": 1 } }), a.Sa.Ta = !1;
2055
2047
  }
2056
2048
  else
2057
2049
  i.appendChild(e.element);
@@ -2059,7 +2051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2059
2051
  }
2060
2052
  else
2061
2053
  v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f);
2062
- }, 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, t = (this.startDate, this.lastVisibleDayOfMonth()), n = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(n / 7), this.days = 7 * e, this.rows = []; for (var i = 0; i < e; i++) {
2054
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.ed = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), n = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(n / 7), this.days = 7 * e, this.rows = []; for (var i = 0; i < e; i++) {
2063
2055
  var o = {};
2064
2056
  o.start = this.firstDate.addDays(7 * i), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = i, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, n, i) { for (var a = this, o = 0; o < this.lines.length; o++) {
2065
2057
  var r = this.lines[o];
@@ -2069,7 +2061,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2069
2061
  e + t - 1 < this[i].part.colStart || e > this[i].part.colStart + this[i].part.colWidth - 1 || (n = !1); return n; }, r.addEvent = function (e, t, n, i, o) { e.part.colStart = t, e.part.colWidth = n, e.part.row = i, e.part.line = o, e.part.startsHere = a.start.getTime() <= e.start().getTime(), e.part.endsHere = a.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, n, i, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
2070
2062
  e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
2071
2063
  } this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
2072
- 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 (e) { 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 i = document.createElement("div"); this.nav.events = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i), t.onmousemove = function (t) { if (e.resizingEvent) {
2064
+ 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.Ya = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.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 i = document.createElement("div"); this.nav.events = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i), t.onmousemove = function (t) { if (e.resizingEvent) {
2073
2065
  var n = DayPilot.mo3(a.nav.top, t);
2074
2066
  if (!n)
2075
2067
  return;
@@ -2121,7 +2113,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2121
2113
  break;
2122
2114
  }
2123
2115
  } null === a && (a = this.rows.length - 1); var d = {}; return d.x = i, d.y = a, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
2124
- 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++) {
2116
+ n.y++, t -= 7; return n.x = t, n; }, this.gd = 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++) {
2125
2117
  this.cells[t] = [];
2126
2118
  var n = document.createElement("div");
2127
2119
  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";
@@ -2130,18 +2122,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2130
2122
  var a = document.createElement("div");
2131
2123
  a.setAttribute("unselectable", "on"), a.innerHTML = o.locale().dayNames[i], n.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.L("_header_inner"), a.innerHTML = o.locale().dayNames[i], e.appendChild(n);
2132
2124
  for (var r = 0; r < this.rows.length; r++)
2133
- this.hd(t, r, e);
2134
- } }, this.dd = function () { for (var e = 0; e < this.cells.length; e++)
2125
+ this.kd(t, r, e);
2126
+ } }, this.fd = function () { for (var e = 0; e < this.cells.length; e++)
2135
2127
  for (var t = 0; t < this.cells[e].length; t++) {
2136
2128
  var n = a.cells[e][t];
2137
- a.fb(n);
2138
- } this.nav.cells.innerHTML = ""; }, this.fb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeCellDomRemove && a.onBeforeCellDomRemove(n), n && "function" == typeof a.onBeforeCellDomAdd) {
2139
- var i = n && n.Oa;
2129
+ a.hb(n);
2130
+ } this.nav.cells.innerHTML = ""; }, this.hb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeCellDomRemove && a.onBeforeCellDomRemove(n), n && "function" == typeof a.onBeforeCellDomAdd) {
2131
+ var i = n && n.Qa;
2140
2132
  if (i) {
2141
- var o = a.jd.reactDOM && isReactCmp(n.element), r = a.Qa.Pa && (isVueCmp(n.element) || t(n.element));
2142
- o ? a.jd.kd(i) : r && (a.Qa.Ra = !0, a.Qa.Sa(i), a.Qa.Ra = !1);
2133
+ var o = a.ld.reactDOM && isReactCmp(n.element), r = a.Sa.Ra && (isVueCmp(n.element) || t(n.element));
2134
+ o ? a.ld.md(i) : r && (a.Sa.Ta = !0, a.Sa.Ua(i), a.Sa.Ta = !1);
2143
2135
  }
2144
- } }(), e.onclick = null; }, this.ta = function () { return 2 === a.api; }, this.hd = function (n, i, r) { var s = this.rows[i], l = this.firstDate.addDays(7 * i + n), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !a.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = a, f.cell = h, "function" == typeof a.onBeforeCellRender && a.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(i) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2136
+ } }(), e.onclick = null; }, this.ta = function () { return 2 === a.api; }, this.kd = function (n, i, r) { var s = this.rows[i], l = this.firstDate.addDays(7 * i + n), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !a.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = a, f.cell = h, "function" == typeof a.onBeforeCellRender && a.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(i) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
2145
2137
  var u = this.L("_cell_business");
2146
2138
  DayPilot.Util.addClass(p, u);
2147
2139
  } var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); m.setAttribute("unselectable", "on"), p.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.L("_cell_inner"), v.backColor && (m.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": n, "y": i, "from": { x: n, y: i }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); a.O(t, n); }; if ("Disabled" !== a.timeRangeSelectedHandling)
@@ -2157,11 +2149,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2157
2149
  if (e.control = a, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(e), e.element) {
2158
2150
  var n = m;
2159
2151
  if (n) {
2160
- e.Oa = n;
2152
+ e.Qa = n;
2161
2153
  if (t(e.element)) {
2162
- if (!a.Qa.Pa)
2154
+ if (!a.Sa.Ra)
2163
2155
  throw new DayPilot.Exception("Can't reach Vue");
2164
- a.Qa.Ra = !0, a.Qa.Ua(e.element, n), a.Qa.Ra = !1;
2156
+ a.Sa.Ta = !0, a.Sa.Wa(e.element, n), a.Sa.Ta = !1;
2165
2157
  }
2166
2158
  else
2167
2159
  n.appendChild(e.element);
@@ -2192,7 +2184,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2192
2184
  a.eventClickCallBack(n);
2193
2185
  break;
2194
2186
  case "JavaScript": a.onEventClick(n);
2195
- } }, this.gd = function () { var e = this; return a.xa(e.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2187
+ } }, this.jd = function () { var e = this; return a.xa(e.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
2196
2188
  return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
2197
2189
  switch (a.eventRightClickHandling) {
2198
2190
  case "ContextMenu":
@@ -2281,20 +2273,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2281
2273
  case "JavaScript": a.onTimeRangeSelected(e, t);
2282
2274
  } }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { a.wa.scope && a.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.ca = {}, this.ca.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.ca.da = function () { return "Disabled" !== a.xssProtection; };
2283
2275
  var o = this.ca;
2284
- this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.Q || (e.Q = !0, e.dd(), e.Y(), 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 a.events.list || !a.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.wb = function () { if (this.id && this.id.tagName)
2276
+ this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.Q || (e.Q = !0, e.fd(), e.Y(), 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.rb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.yb = function () { if (this.id && this.id.tagName)
2285
2277
  this.nav.top = this.id;
2286
2278
  else {
2287
2279
  if ("string" != typeof this.id)
2288
2280
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2289
2281
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2290
2282
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2291
- } }, this.Fb = function () { this.cd(), this.Wa(), this.ed(), this.pb(), this.U("Init"); }, this.$a = function (e, t) { return a.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Qa = {}, this.Qa.Pa = null, this.Qa.Mb = function (e, t, n) { var i = a.Qa.Pa; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
2283
+ } }, this.Hb = function () { this.ed(), this.Ya(), this.gd(), this.rb(), this.U("Init"); }, this.ab = function (e, t) { return a.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = a.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
2292
2284
  var o = i.createVNode(e, n);
2293
2285
  i.render(o, t);
2294
- } }, this.Qa.Ua = function (e, t, n) { var i = a.Qa.Pa; if ("function" == typeof i.render) {
2286
+ } }, this.Sa.Wa = function (e, t, n) { var i = a.Sa.Ra; if ("function" == typeof i.render) {
2295
2287
  var o = e;
2296
2288
  DayPilot.isArray(e) && (o = i.h("div", n, e)), i.render(o, t);
2297
- } }, this.Qa.Sa = function (e) { var t = a.Qa.Pa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.sb, this.internal.xssTextHtml = a.$a, this.internal.enableVue = function (e) { a.Qa.Pa = e; }, this.internal.vueRef = function () { return a.Qa.Pa; }, this.internal.vueRendering = function () { return a.Qa.Ra; }, this.init = function () { return this.wb(), this.loadFromServer() ? void this.Fb() : (this.cd(), this.ha(), this.Wa(), this.ed(), this.u(), this.na(), this.pb(), this.fireAfterRenderDetached(null, !1), this.Ka = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.sb(i);
2289
+ } }, this.Sa.Ua = function (e) { var t = a.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.ub, this.internal.xssTextHtml = a.ab, this.internal.enableVue = function (e) { a.Sa.Ra = e; }, this.internal.vueRef = function () { return a.Sa.Ra; }, this.internal.vueRendering = function () { return a.Sa.Ta; }, this.init = function () { return this.yb(), this.loadFromServer() ? void this.Hb() : (this.ed(), this.ha(), this.Ya(), this.gd(), this.u(), this.na(), this.rb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.ub(i);
2298
2290
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2299
2291
  var n = e.movingEvent;
2300
2292
  if (!n.event)
@@ -2346,16 +2338,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2346
2338
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2347
2339
  var e = DayPilot.Util.isVueVNode;
2348
2340
  DayPilot.Navigator = function (t, n) {
2349
- this.v = "2025.3.686-lite";
2341
+ this.v = "2025.3.691-lite";
2350
2342
  var i = this;
2351
- 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.nav = {}, this.xb = {}, this.ld = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.md() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.nd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.md() || (this.root.style.width = 7 * r.cellWidth() + this.nd() + "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.od = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.pd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.qd = function () { if (!r.md())
2352
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.rd = function () { return r.md() ? null : r.cellWidth(); }, this.sd = function (e) { return "number" != typeof e && (e = 1), r.md() ? this.qd() * e : this.rd() * e; }, this.td = function (e) { var t = r.md() ? "%" : "px"; return this.sd(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.nd(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.md() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2353
- g.style.position = "absolute", r.md() ? (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;
2343
+ 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.nav = {}, this.zb = {}, this.nd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.od() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.pd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.od() || (this.root.style.width = 7 * r.cellWidth() + this.pd() + "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.fd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.qd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.rd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.sd = function () { if (!r.od())
2344
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.td = function () { return r.od() ? null : r.cellWidth(); }, this.ud = function (e) { return "number" != typeof e && (e = 1), r.od() ? this.sd() * e : this.td() * e; }, this.vd = function (e) { var t = r.od() ? "%" : "px"; return this.ud(e) + t; }, this.gd = 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.pd(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.od() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
2345
+ g.style.position = "absolute", r.od() ? (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;
2354
2346
  else {
2355
2347
  g.style.position = "relative";
2356
2348
  var y = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
2357
2349
  a.top = y, a.left = 0, a.leftPct = 0;
2358
- } 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.td(), 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.ud), g.appendChild(w), this.tl = w; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.td(), x.style.top = "0px", x.style.width = i.td(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 D = document.createElement("div"); D.style.position = "absolute", D.style.left = i.td(i.showWeekNumbers ? 7 : 6), D.style.right = i.td(i.showWeekNumbers ? 7 : 6), D.style.top = "0px", D.style.width = i.td(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.className = this.L("_titleright"), n.right && (D.style.cursor = "pointer", D.innerHTML = "<span>&gt;</span>", D.onclick = this.vd), g.appendChild(D), this.tr = D; var _ = (this.nd(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
2350
+ } 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.vd(), 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.wd), g.appendChild(w), this.tl = w; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = i.vd(), D.style.top = "0px", D.style.width = i.vd(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.className = this.L("_title"), D.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(D), this.ti = D; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.vd(i.showWeekNumbers ? 7 : 6), x.style.right = i.vd(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.vd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_titleright"), n.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.xd), g.appendChild(x), this.tr = x; var _ = (this.pd(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
2359
2351
  for (var C = 0; C < f; C++) {
2360
2352
  var k = c.addDays(7 * C), P = null;
2361
2353
  switch (this.weekNumberAlgorithm) {
@@ -2371,30 +2363,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2371
2363
  default: throw "Unknown weekNumberAlgorithm value.";
2372
2364
  }
2373
2365
  var S = document.createElement("div");
2374
- S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = C * this.cellHeight + b + "px", S.style.width = i.td(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.className = this.L("_weeknumber"), S.innerHTML = "<span>" + P + "</span>", g.appendChild(S), a.weeks.push(S);
2366
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = C * this.cellHeight + b + "px", S.style.width = i.vd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.className = this.L("_weeknumber"), S.innerHTML = "<span>" + P + "</span>", g.appendChild(S), a.weeks.push(S);
2375
2367
  } if (i.showWeekNumbers) {
2376
2368
  var S = document.createElement("div");
2377
- S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = this.titleHeight + "px", S.style.width = i.td(), S.style.height = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), g.appendChild(S);
2369
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = this.titleHeight + "px", S.style.width = i.vd(), S.style.height = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), g.appendChild(S);
2378
2370
  } for (var M = 0; M < 7; M++) {
2379
2371
  a.cells[M] = [];
2380
2372
  var S = document.createElement("div");
2381
- S.style.position = "absolute", S.style.left = i.td(M + _), S.style.right = i.td(M + _), S.style.top = this.titleHeight + "px", S.style.width = i.td(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), S.innerHTML = "<span>" + this.wd(M) + "</span>", g.appendChild(S), a.days.push(S);
2373
+ S.style.position = "absolute", S.style.left = i.vd(M + _), S.style.right = i.vd(M + _), S.style.top = this.titleHeight + "px", S.style.width = i.vd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), S.innerHTML = "<span>" + this.yd(M) + "</span>", g.appendChild(S), a.days.push(S);
2382
2374
  for (var C = 0; C < f; C++) {
2383
- var k = c.addDays(7 * C + M), T = this.xd(k) && "none" !== this.yd(), A = k.firstDayOfMonth() === o, E = k < o, H = k >= o.addMonths(1);
2384
- if ("month" === this.yd())
2375
+ var k = c.addDays(7 * C + M), T = this.zd(k) && "none" !== this.Ad(), A = k.firstDayOfMonth() === o, E = k < o, H = k >= o.addMonths(1);
2376
+ if ("month" === this.Ad())
2385
2377
  T = T && A;
2386
- else if ("day" === this.yd())
2378
+ else if ("day" === this.Ad())
2387
2379
  T = T && (A || s && E || l && H);
2388
- else if ("week" === this.yd()) {
2380
+ else if ("week" === this.Ad()) {
2389
2381
  var N = k.firstDayOfMonth() === o;
2390
2382
  T = T && (N || s && E || l && H);
2391
2383
  }
2392
2384
  var I = document.createElement("div");
2393
2385
  a.cells[M][C] = I;
2394
- var R = i.zd(M, C), L = R.x, z = R.y, B = r.md() ? "%" : "px";
2395
- I.day = k, I.x = M, I.y = C, I.left = L, I.top = z, I.isCurrentMonth = A, I.isNextMonth = H, I.isPrevMonth = E, I.showBefore = s, I.showAfter = l, I.className = this.L(A ? "_day" : "_dayother"), i.od(I, "cell"), k.getTime() === v.getTime() && A && this.od(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.od(I, "weekend"), I.style.position = "absolute", I.style.left = L + B, I.style.right = L + B, I.style.top = z + "px", I.style.width = i.td(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
2386
+ var R = i.Bd(M, C), L = R.x, z = R.y, B = r.od() ? "%" : "px";
2387
+ I.day = k, I.x = M, I.y = C, I.left = L, I.top = z, I.isCurrentMonth = A, I.isNextMonth = H, I.isPrevMonth = E, I.showBefore = s, I.showAfter = l, I.className = this.L(A ? "_day" : "_dayother"), i.qd(I, "cell"), k.getTime() === v.getTime() && A && this.qd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.qd(I, "weekend"), I.style.position = "absolute", I.style.left = L + B, I.style.right = L + B, I.style.top = z + "px", I.style.width = i.vd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
2396
2388
  var U = document.createElement("div");
2397
- U.style.position = "absolute", U.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.od(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
2389
+ U.style.position = "absolute", U.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.qd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
2398
2390
  var O = null;
2399
2391
  this.cells && this.cells[k.toStringSortable()] && (O = this.cells[k.toStringSortable()]);
2400
2392
  var j = O || {};
@@ -2404,34 +2396,36 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2404
2396
  }
2405
2397
  if (O && DayPilot.Util.addClass(I, O.cssClass || O.css), A || s && E || l && H) {
2406
2398
  var F = document.createElement("div");
2407
- F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", i.od(F, "cell_text"), I.isClickable = !0, O && O.html && (F.innerHTML = O.html), I.appendChild(F);
2399
+ F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", i.qd(F, "cell_text"), I.isClickable = !0, O && O.html && (F.innerHTML = O.html), I.appendChild(F);
2408
2400
  }
2409
- I.onclick = this.Ad, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2401
+ I.onclick = this.Cd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2410
2402
  var t = {};
2411
2403
  if (t.control = i, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
2412
2404
  var n = U;
2413
2405
  if (n) {
2414
- t.Oa = n;
2406
+ t.Qa = n;
2415
2407
  if (e(t.element)) {
2416
- if (!i.Qa.Pa)
2408
+ if (!i.Sa.Ra)
2417
2409
  throw new DayPilot.Exception("Can't reach Vue");
2418
- i.Qa.Ra = !0, i.Qa.Ua(t.element, n), i.Qa.Ra = !1;
2410
+ i.Sa.Ta = !0, i.Sa.Wa(t.element, n), i.Sa.Ta = !1;
2419
2411
  }
2420
2412
  else
2421
2413
  n.appendChild(t.element);
2422
2414
  }
2423
2415
  }
2424
- } }(), g.appendChild(I), T && (i.Bd(g, M, C), this.selected.push(I));
2416
+ } }(), g.appendChild(I), T && (i.Dd(g, M, C), this.selected.push(I));
2425
2417
  }
2426
- } var J = document.createElement("div"); J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = i.td(7 + _), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.L("_line"), g.appendChild(J), this.months.push(a); }, this.zd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = (this.nd(), this.showWeekNumbers ? 1 : 0); return { "x": i.sd(e + a), "y": t * this.cellHeight + n }; }, this.Bd = function (e, t, n) { var a = e.month.cells[t][n]; i.od(a, "select"); }, this.Cd = function (e, t, n) { var a = e.month.cells[t][n]; i.pd(a, "select"); }, this.nd = function () {
2427
- return this.showWeekNumbers ? r.cellWidth() : 0;
2428
- }, this.Dd = function () { if (this.items)
2418
+ } var Y = document.createElement("div"); Y.style.position = "absolute", Y.style.left = "0px", Y.style.top = b - 2 + "px", Y.style.width = i.vd(7 + _), Y.style.height = "1px", Y.style.fontSize = "1px", Y.style.lineHeight = "1px", Y.className = this.L("_line"), g.appendChild(Y), this.months.push(a); }, this.Bd = function (e, t) {
2419
+ var n = this.titleHeight + this.dayHeaderHeight, a = (this.pd(),
2420
+ this.showWeekNumbers ? 1 : 0);
2421
+ return { "x": i.ud(e + a), "y": t * this.cellHeight + n };
2422
+ }, this.Dd = function (e, t, n) { var a = e.month.cells[t][n]; i.qd(a, "select"); }, this.Ed = function (e, t, n) { var a = e.month.cells[t][n]; i.rd(a, "select"); }, this.pd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Fd = function () { if (this.items)
2429
2423
  for (var e = 0; e < this.showMonths; e++)
2430
2424
  for (var t = 0; t < 7; t++)
2431
2425
  for (var n = 0; n < 6; n++) {
2432
2426
  var i = this.months[e].cells[t][n];
2433
- i && (1 === this.items[i.day.toStringSortable()] ? (this.od(i, "busy"), this.pd(i, "free")) : (this.pd(i, "busy"), this.od(i, "free")));
2434
- } }, this.Ed = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.yd = function () { return (this.selectMode || "").toLowerCase(); }, this.Fd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.yd()) {
2427
+ i && (1 === this.items[i.day.toStringSortable()] ? (this.qd(i, "busy"), this.rd(i, "free")) : (this.rd(i, "busy"), this.qd(i, "free")));
2428
+ } }, this.Gd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Ad = function () { return (this.selectMode || "").toLowerCase(); }, this.Hd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Ad()) {
2435
2429
  case "day":
2436
2430
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
2437
2431
  break;
@@ -2445,19 +2439,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2445
2439
  this.selectionEnd = e;
2446
2440
  break;
2447
2441
  default: throw "Unknown selectMode value.";
2448
- } }, this.Gd = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = a ? t : null, l = o ? t : n; if (!this.Ka)
2449
- return void (this.Gd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2442
+ } }, this.Id = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = a ? t : null, l = o ? t : n; if (!this.Ma)
2443
+ return void (this.Id = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
2450
2444
  var v = this.startDate;
2451
- (this.selectionStart < this.Hd() || this.selectionStart >= this.Id()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2452
- } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Fd(), this.dd(), this.ld(), this.Jd(), this.Dd(), this.Ed(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Kd(); }, this.update = function (e) { i.Ld(e); }, this.Ld = function (e) { if (i.sb(e), this.Ka) {
2445
+ (this.selectionStart < this.Jd() || this.selectionStart >= this.Kd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
2446
+ } s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Hd(), this.fd(), this.nd(), this.Ld(), this.Fd(), this.Gd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Md(); }, this.update = function (e) { i.Nd(e); }, this.Nd = function (e) { if (i.ub(e), this.Ma) {
2453
2447
  if (i.Q)
2454
2448
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
2455
- i.Md();
2449
+ i.Od();
2456
2450
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
2457
- i.qb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2458
- } }, this.qb = function () { this.dd(), this.ld(), this.Fd(), this.Jd(), this.ha(), this.Dd(), this.Ed(), this.visible ? this.show() : this.hide(); }, this.Md = function () { i.xb = {}; }, this.ub = null, this.sb = function (e) { if (e) {
2451
+ i.sb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
2452
+ } }, this.sb = function () { this.fd(), this.nd(), this.Hd(), this.Ld(), this.ha(), this.Fd(), this.Gd(), this.visible ? this.show() : this.hide(); }, this.Od = function () { i.zb = {}; }, this.wb = null, this.ub = function (e) { if (e) {
2459
2453
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
2460
- this.ub = t;
2454
+ this.wb = t;
2461
2455
  for (var n in e)
2462
2456
  if (t[n]) {
2463
2457
  var a = t[n];
@@ -2465,15 +2459,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2465
2459
  }
2466
2460
  else
2467
2461
  i[n] = e[n];
2468
- } }, this.vb = function () { var e = this.ub; for (var t in e) {
2462
+ } }, this.xb = function () { var e = this.wb; for (var t in e) {
2469
2463
  var n = e[t];
2470
2464
  n.postInit && n.postInit();
2471
- } }, this.U = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.Nd) : WebForm_DoCallback(this.uniqueID, a, this.W, null, this.callbackError, !0); }, this.Nd = function (e) { if ("function" == typeof i.onAjaxError) {
2465
+ } }, this.U = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.Pd) : WebForm_DoCallback(this.uniqueID, a, this.W, null, this.callbackError, !0); }, this.Pd = function (e) { if ("function" == typeof i.onAjaxError) {
2472
2466
  var t = {};
2473
2467
  t.request = e, i.onAjaxError(t);
2474
2468
  }
2475
2469
  else
2476
- "function" == typeof i.ajaxError && i.ajaxError(e); }, this.V = function (e) { i.W(e.responseText); }, this.S = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.T(); var o = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, o); }, this.T = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Od = function (e, t) { "refresh" === e && this.Kd(); }, this.wd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.xd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Pd = function (e) { for (var t = 0; t < i.months.length; t++) {
2470
+ "function" == typeof i.ajaxError && i.ajaxError(e); }, this.V = function (e) { i.W(e.responseText); }, this.S = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.T(); var o = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, o); }, this.T = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Qd = function (e, t) { "refresh" === e && this.Md(); }, this.yd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.zd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Rd = function (e) { for (var t = 0; t < i.months.length; t++) {
2477
2471
  var n = i.months[t];
2478
2472
  if (!n)
2479
2473
  return null;
@@ -2484,19 +2478,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2484
2478
  if (n.top <= e.y && e.y < n.top + n.height)
2485
2479
  return t;
2486
2480
  }
2487
- } return null; }, this.Qd = function (e) { }, this.Rd = function () { if (!r.md())
2488
- return void (i.Sd = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Sd = 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, i) { e.width = t, e.left = n * t; }); }); }); }, this.Td = function (e) { i.Rd(); var t = DayPilot.mo3(i.nav.top, e), n = i.Pd(t); if (null === n)
2481
+ } return null; }, this.Sd = function (e) { }, this.Td = function () { if (!r.od())
2482
+ return void (i.Ud = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Ud = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e, i) { e.width = t, e.left = n * t; }); }); }); }, this.Vd = function (e) { i.Td(); var t = DayPilot.mo3(i.nav.top, e), n = i.Rd(t); if (null === n)
2489
2483
  return null; var a = i.months[n], o = this.titleHeight + this.dayHeaderHeight; if (a.top <= t.y && t.y < a.top + o)
2490
2484
  return { "month": n, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < a.cells.length; r++)
2491
2485
  for (var s = 0; s < a.cells[r].length; s++) {
2492
2486
  var l = a.cells[r][s], d = l.top + a.top, c = l.left + a.left;
2493
- if (c <= t.x && t.x < c + i.Sd && d <= t.y && t.y < d + i.cellHeight)
2487
+ if (c <= t.x && t.x < c + i.Ud && d <= t.y && t.y < d + i.cellHeight)
2494
2488
  return { "month": n, "x": r, "y": s, "coords": t };
2495
- } return null; }, this.Ud = function (e) { if (i.freeHandSelectionEnabled) {
2496
- var t = i.Td(e);
2489
+ } return null; }, this.Wd = function (e) { if (i.freeHandSelectionEnabled) {
2490
+ var t = i.Vd(e);
2497
2491
  t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
2498
- } }, this.Vd = function (e) { if (a.start) {
2499
- var t = i.Td(e);
2492
+ } }, this.Xd = function (e) { if (a.start) {
2493
+ var t = i.Vd(e);
2500
2494
  if (a.end)
2501
2495
  a.end = t;
2502
2496
  else if (t) {
@@ -2504,11 +2498,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2504
2498
  o > n && (a.end = t);
2505
2499
  }
2506
2500
  a.end && (a.clear(), a.draw());
2507
- } }, this.Wd = {};
2508
- var a = this.Wd;
2509
- a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.zd(e.x, e.y), o = t.top + n.y, s = t.left + n.x, l = "px", d = i.td(); if (r.md()) {
2501
+ } }, this.Yd = {};
2502
+ var a = this.Yd;
2503
+ a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Bd(e.x, e.y), o = t.top + n.y, s = t.left + n.x, l = "px", d = i.vd(); if (r.od()) {
2510
2504
  var c = "Horizontal" === i.orientation ? i.showMonths : 1;
2511
- s = t.leftPct + n.x / c, l = "%", d = i.td(1 / c);
2505
+ s = t.leftPct + n.x / c, l = "%", d = i.vd(1 / c);
2512
2506
  } var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = o + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u); }, a.clear = function () { if (a.cells) {
2513
2507
  for (var e = 0; e < a.cells.length; e++)
2514
2508
  i.nav.preselection.removeChild(a.cells[e]);
@@ -2551,48 +2545,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2551
2545
  return null;
2552
2546
  e = new o(t);
2553
2547
  } return e; }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new o(e).date(); }; };
2554
- this.Ad = function (e) { var t = this.parentNode, n = this.parentNode.month, a = this.x, o = this.y, r = n.cells[a][o].day; if (n.cells[a][o].isClickable) {
2548
+ this.Cd = function (e) { var t = this.parentNode, n = this.parentNode.month, a = this.x, o = this.y, r = n.cells[a][o].day; if (n.cells[a][o].isClickable) {
2555
2549
  i.clearSelection(), i.selectionDay = r;
2556
2550
  var r = i.selectionDay;
2557
- switch (i.yd()) {
2551
+ switch (i.Ad()) {
2558
2552
  case "none":
2559
2553
  i.selectionStart = r, i.selectionEnd = r;
2560
2554
  break;
2561
2555
  case "day":
2562
2556
  if (i.autoFocusOnClick) {
2563
2557
  var s = r;
2564
- if (r < i.Hd() || r >= i.Id())
2558
+ if (r < i.Jd() || r >= i.Kd())
2565
2559
  return void i.select(r);
2566
2560
  }
2567
2561
  var l = n.cells[a][o];
2568
- i.Bd(t, a, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2562
+ i.Dd(t, a, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
2569
2563
  break;
2570
2564
  case "week":
2571
2565
  if (i.autoFocusOnClick) {
2572
2566
  var s = n.cells[0][o].day, d = n.cells[6][o].day;
2573
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.Hd() || d >= i.Id()))
2567
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.Jd() || d >= i.Kd()))
2574
2568
  return void i.select(r);
2575
2569
  }
2576
2570
  for (var c = 0; c < 7; c++)
2577
- i.Bd(t, c, o), i.selected.push(n.cells[c][o]);
2571
+ i.Dd(t, c, o), i.selected.push(n.cells[c][o]);
2578
2572
  i.selectionStart = n.cells[0][o].day, i.selectionEnd = n.cells[6][o].day;
2579
2573
  break;
2580
2574
  case "month":
2581
2575
  if (i.autoFocusOnClick) {
2582
2576
  var s = r;
2583
- if (r < i.Hd() || r >= i.Id())
2577
+ if (r < i.Jd() || r >= i.Kd())
2584
2578
  return void i.select(r);
2585
2579
  }
2586
2580
  for (var s = null, d = null, o = 0; o < 6; o++)
2587
2581
  for (var a = 0; a < 7; a++) {
2588
2582
  var l = n.cells[a][o];
2589
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.Bd(t, a, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
2583
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.Dd(t, a, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
2590
2584
  }
2591
2585
  i.selectionStart = s, i.selectionEnd = d;
2592
2586
  break;
2593
2587
  default: throw "unknown selectMode";
2594
2588
  }
2595
- i.Ed(), i.O();
2589
+ i.Gd(), i.O();
2596
2590
  } }, this.O = function (e) { var t = i.selectionStart, n = i.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), o = i.selectionDay; if (e = e || {}, i.ta()) {
2597
2591
  var r = {};
2598
2592
  if (r.start = t, r.end = n, r.day = o, r.days = a, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
@@ -2622,7 +2616,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2622
2616
  break;
2623
2617
  case "None": break;
2624
2618
  case "PostBack": i.timeRangeSelectedPostBack(t, n, o);
2625
- } }, this.timeRangeSelectedPostBack = function (e, t, n, i) { var a = {}; a.start = e, a.end = t, a.day = i, this.S("TimeRangeSelected", n, a); }, this.vd = function (e) { i.Xd(i.skipMonths); }, this.ud = function (e) { i.Xd(-i.skipMonths); }, this.Xd = function (e) { this.startDate = this.startDate.addMonths(e), this.dd(), this.ld(), this.Jd(), this.Ed(), this.Kd(), this.Dd(); }, this.Hd = function () { return i.startDate.firstDayOfMonth(); }, this.Id = 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.Kd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2619
+ } }, this.timeRangeSelectedPostBack = function (e, t, n, i) { var a = {}; a.start = e, a.end = t, a.day = i, this.S("TimeRangeSelected", n, a); }, this.xd = function (e) { i.Zd(i.skipMonths); }, this.wd = function (e) { i.Zd(-i.skipMonths); }, this.Zd = function (e) { this.startDate = this.startDate.addMonths(e), this.fd(), this.nd(), this.Ld(), this.Gd(), this.Md(), this.Fd(); }, this.Jd = function () { return i.startDate.firstDayOfMonth(); }, this.Kd = 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.Md = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
2626
2620
  var n = {};
2627
2621
  if (n.start = e, n.end = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(n), n.preventDefault.value))
2628
2622
  return;
@@ -2649,10 +2643,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2649
2643
  this.onVisibleRangeChanged(e, t);
2650
2644
  break;
2651
2645
  case "Disabled":
2652
- } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.W = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.Dd(); }, this.Jd = function () { this.showToday && "Top" === this.todayPosition && this.Yd(); for (var e = 0; e < this.showMonths; e++) {
2653
- var t = this.Zd(e);
2654
- this.ed(e, t);
2655
- } this.showToday && "Bottom" === this.todayPosition && this.Yd(), this.root.style.height = this.$d() + "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.Yd = function () { if (this.showToday) {
2646
+ } }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.W = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.Fd(); }, this.Ld = function () { this.showToday && "Top" === this.todayPosition && this.$d(); for (var e = 0; e < this.showMonths; e++) {
2647
+ var t = this._d(e);
2648
+ this.gd(e, t);
2649
+ } this.showToday && "Bottom" === this.todayPosition && this.$d(), this.root.style.height = this.ae() + "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.$d = function () { if (this.showToday) {
2656
2650
  var e = document.createElement("span");
2657
2651
  e.className = this.L("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () { if ("function" == typeof i.onTodayClick) {
2658
2652
  var e = {};
@@ -2661,7 +2655,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2661
2655
  } i.select(DayPilot.Date.today()); };
2662
2656
  var t = document.createElement("div");
2663
2657
  t.style.height = this.todayHeight + "px", t.className = this.L("_todaysection"), t.appendChild(e), this.root.appendChild(t);
2664
- } }, this.$d = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2658
+ } }, this.ae = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
2665
2659
  for (var t = 0; t < this.months.length; t++) {
2666
2660
  var n = this.months[t];
2667
2661
  n.height > e && (e = n.height);
@@ -2670,56 +2664,56 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2670
2664
  } for (var t = 0; t < this.months.length; t++) {
2671
2665
  var n = this.months[t];
2672
2666
  e += n.height;
2673
- } return e; }, this.Zd = function (e) { if (this.internal.showLinks)
2674
- 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.Qa = {}, this.Qa.Pa = null, this.Qa.Mb = function (e, t, n) { var a = i.Qa.Pa; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2667
+ } return e; }, this._d = function (e) { if (this.internal.showLinks)
2668
+ 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.Ob = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
2675
2669
  var o = a.createVNode(e, n);
2676
2670
  a.render(o, t);
2677
- } }, this.Qa.Ua = function (e, t) { var n = i.Qa.Pa; if ("function" == typeof n.render) {
2671
+ } }, this.Sa.Wa = function (e, t) { var n = i.Sa.Ra; if ("function" == typeof n.render) {
2678
2672
  var a = e;
2679
2673
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
2680
- } }, this.Qa.Sa = function (e) { var t = i.Qa.Pa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.sb, this.internal.initialized = function () { return i.Ka; }, this.internal.enableVue = function (e) { i.Qa.Pa = e; }, this.internal.vueRef = function () { return i.Qa.Pa; }, this.internal.vueRendering = function () { return i.Qa.Ra; }, this.internal.upd = function (e) { i.Ld(e); }, this.ca = {};
2674
+ } }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.ub, 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.Nd(e); }, this.ca = {};
2681
2675
  var r = this.ca;
2682
2676
  r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
2683
2677
  var e = r.locale();
2684
2678
  return e ? e.weekStarts : 0;
2685
- } return i.weekStarts; }, r.cellWidth = function () { if (i.xb.cellWidth)
2686
- return i.xb.cellWidth; var e = i._d("_cell_dimensions").width; return e || (e = i.cellWidth), i.xb.cellWidth = e, e; }, r.md = function () { return "Auto" === i.ca.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2679
+ } return i.weekStarts; }, r.cellWidth = function () { if (i.zb.cellWidth)
2680
+ return i.zb.cellWidth; var e = i.be("_cell_dimensions").width; return e || (e = i.cellWidth), i.zb.cellWidth = e, e; }, r.od = function () { return "Auto" === i.ca.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2687
2681
  var t = this.selected[e];
2688
- i.Cd(t.parentNode, t.x, t.y);
2689
- } this.selected = []; }, this.ae = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2682
+ i.Ed(t.parentNode, t.x, t.y);
2683
+ } this.selected = []; }, this.ce = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
2690
2684
  this.items = {};
2691
2685
  for (var e = 0; e < this.events.list.length; e++) {
2692
2686
  var t = this.events.list[e];
2693
2687
  if (!t.hidden) {
2694
- var n = this.be(t);
2688
+ var n = this.ee(t);
2695
2689
  for (var i in n)
2696
2690
  this.items[i] = 1;
2697
2691
  }
2698
2692
  }
2699
- } }, this._d = 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, o = t.offsetWidth; n.removeChild(t); var r = {}; return r.height = a, r.width = o, r; }, this.be = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), i = {}, a = t.getDatePart(); a.getTime() <= n.getTime();)
2700
- i[a.toStringSortable()] = 1, a = a.addDays(1); return i; }, 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)
2693
+ } }, this.be = 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, o = t.offsetWidth; n.removeChild(t); var r = {}; return r.height = a, r.width = o, r; }, this.ee = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), i = {}, a = t.getDatePart(); a.getTime() <= n.getTime();)
2694
+ i[a.toStringSortable()] = 1, a = a.addDays(1); return i; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.yb = function () { if (this.id && this.id.tagName)
2701
2695
  this.nav.top = this.id;
2702
2696
  else {
2703
2697
  if ("string" != typeof this.id)
2704
2698
  throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
2705
2699
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2706
2700
  throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
2707
- } this.root = this.nav.top; }, this.init = function () { if (this.wb(), !this.root.dp) {
2708
- this.Fd(), this.ld(), this.Jd(), this.ha(), this.Dd(), this.aa(), this.ce(), this.pb();
2709
- if (this.ae() && this.Kd(), this.Ka = !0, this.vb(), this.Gd) {
2710
- var e = this.Gd;
2711
- this.select(e.date1, e.date2, e.options), this.Gd = null;
2701
+ } this.root = this.nav.top; }, this.init = function () { if (this.yb(), !this.root.dp) {
2702
+ this.Hd(), this.nd(), this.Ld(), this.ha(), this.Fd(), this.aa(), this.fe(), this.rb();
2703
+ if (this.ce() && this.Md(), this.Ma = !0, this.xb(), this.Id) {
2704
+ var e = this.Id;
2705
+ this.select(e.date1, e.date2, e.options), this.Id = null;
2712
2706
  }
2713
2707
  return this;
2714
- } }, this.ce = function () { i.nav.top.onmousedown = this.Ud, i.nav.top.onmousemove = this.Vd; }, this.pb = function () { DayPilot.re(document, "mouseup", i.ee); }, this.ee = function (e) { if (a.start && a.end) {
2708
+ } }, this.fe = function () { i.nav.top.onmousedown = this.Wd, i.nav.top.onmousemove = this.Xd; }, this.rb = function () { DayPilot.re(document, "mouseup", i.ge); }, this.ge = function (e) { if (a.start && a.end) {
2715
2709
  var t = DayPilot.mo3(i.nav.top, e);
2716
2710
  if (t.x === a.start.coords.x && t.y === a.start.coords.y)
2717
2711
  return a.start = null, void a.clear();
2718
2712
  a.clear();
2719
2713
  var n = a.ordered();
2720
- n.start = new o(n.start).nextVisible(), n.end = new o(n.end).previousVisible(), i.selectionDay = new o(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new o(n.end).date(), a.start = null, a.end = null, i.dd(), i.ld(), i.Jd(), i.Dd(), i.Ed();
2714
+ n.start = new o(n.start).nextVisible(), n.end = new o(n.end).previousVisible(), i.selectionDay = new o(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new o(n.end).date(), a.start = null, a.end = null, i.fd(), i.nd(), i.Ld(), i.Fd(), i.Gd();
2721
2715
  i.O({ "mode": "FreeHand" });
2722
- } a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.sb(n);
2716
+ } a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ub(n);
2723
2717
  }, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
2724
2718
  var n = new DayPilot.Navigator(this.id);
2725
2719
  this.daypilot = n;
@@ -2733,7 +2727,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2733
2727
  var l = DayPilot.Util.shouldApply(s);
2734
2728
  l ? !function (n) { a[n] = function (a) { var o = e(i[n]); t["$apply"](function () { o(t, { "args": a }); }); }; }(s) : !function (n) { a[n] = function (a) { e(i[n])(t, { "args": a }); }; }(s);
2735
2729
  } var d = t["$watch"], c = i["config"] || i["daypilotConfig"], u = i["events"] || i["daypilotEvents"]; d.call(t, c, function (e, t) { for (var n in e)
2736
- a[n] = e[n]; a.update(); }, !0), d.call(t, u, function (e) { a.events.list = e, a.ha(), a.Dd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2730
+ a[n] = e[n]; a.update(); }, !0), d.call(t, u, function (e) { a.events.list = e, a.ha(), a.Fd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2737
2731
  }
2738
2732
  }(DayPilot), "undefined" == typeof DayPilot)
2739
2733
  var DayPilot = {};
@@ -2743,11 +2737,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2743
2737
  if ("undefined" == typeof DayPilot.Scheduler) {
2744
2738
  var t = navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1, n = {}, i = function () { }, a = !1, o = function () { return document.body; }, r = function () { return document.createElement("div"); };
2745
2739
  DayPilot.Scheduler = function (a, s) {
2746
- this.v = "2025.3.686-lite";
2740
+ this.v = "2025.3.691-lite";
2747
2741
  var l = this;
2748
- 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.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, 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 = t ? 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.onAfterUpdate = null, this.Q = !1, this.fe = -1, this.ge = !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.scrollTo = function (e) { l.he(e); }, this.he = function (e) { if (e) {
2749
- if (!l.Ka)
2750
- return void (l.ie = e);
2742
+ 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.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, 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 = t ? 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.onAfterUpdate = null, this.Q = !1, this.he = -1, this.ie = !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.zb = {}, this.zb.cells = [], this.zb.linesVertical = {}, this.zb.linesHorizontal = {}, this.zb.timeHeaderGroups = [], this.zb.timeHeader = {}, this.zb.events = [], this.nav = {}, this.scrollTo = function (e) { l.je(e); }, this.je = function (e) { if (e) {
2743
+ if (!l.Ma)
2744
+ return void (l.ke = e);
2751
2745
  var t;
2752
2746
  if (e instanceof DayPilot.Date)
2753
2747
  t = this.getPixels(e).left;
@@ -2758,85 +2752,85 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2758
2752
  throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
2759
2753
  t = e;
2760
2754
  }
2761
- var n = l.je.clientWidth, i = l.nav.scroll.clientWidth;
2762
- t < 0 && (t = 0), t > n - i && (t = n - i), l.ke(t);
2755
+ var n = l.le.clientWidth, i = l.nav.scroll.clientWidth;
2756
+ t < 0 && (t = 0), t > n - i && (t = n - i), l.me(t);
2763
2757
  } }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
2764
- t = l.le(e);
2758
+ t = l.ne(e);
2765
2759
  else {
2766
2760
  if (!(e instanceof DayPilot.Row))
2767
2761
  throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
2768
- t = l.le(e.id);
2769
- } t && setTimeout(function () { var e = t.top; l.nav.scroll.scrollTop = e; }, 100); }); }, this.me = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2770
- var e = l.ne();
2762
+ t = l.ne(e.id);
2763
+ } t && setTimeout(function () { var e = t.top; l.nav.scroll.scrollTop = e; }, 100); }); }, this.oe = function () { if (this.floatingTimeHeaders && this.timeHeader) {
2764
+ var e = l.pe();
2771
2765
  if (e) {
2772
- l.oe();
2766
+ l.qe();
2773
2767
  for (var t = e.pixels.left, n = e.pixels.right + e.sw, i = [], a = 0; a < this.timeHeader.length; a++)
2774
2768
  for (var o = 0; o < this.timeHeader[a].length; o++) {
2775
2769
  var r = this.timeHeader[a][o], s = r.left, d = r.left + r.width, c = null;
2776
- if (s < t && t < d && (c = {}, c.x = o, c.y = a, c.marginLeft = t - s, c.marginRight = 0, c.div = l.xb.timeHeader[o + "_" + a], i.push(c)), s < n && n < d) {
2777
- c || (c = {}, c.x = o, c.y = a, c.marginLeft = 0, c.div = l.xb.timeHeader[o + "_" + a], i.push(c)), c.marginRight = d - n;
2770
+ if (s < t && t < d && (c = {}, c.x = o, c.y = a, c.marginLeft = t - s, c.marginRight = 0, c.div = l.zb.timeHeader[o + "_" + a], i.push(c)), s < n && n < d) {
2771
+ c || (c = {}, c.x = o, c.y = a, c.marginLeft = 0, c.div = l.zb.timeHeader[o + "_" + a], i.push(c)), c.marginRight = d - n;
2778
2772
  break;
2779
2773
  }
2780
2774
  }
2781
2775
  for (var u = 0; u < i.length; u++) {
2782
2776
  var c = i[u];
2783
- l.pe(c.div, c.marginLeft, c.marginRight);
2777
+ l.se(c.div, c.marginLeft, c.marginRight);
2784
2778
  }
2785
2779
  }
2786
- } }, this.qe = function () { l.me(), l.se(); }, this.te = {};
2787
- var d = l.te;
2788
- d.ve = function (e, t, n, i) { var a = e, o = e + n, r = t, s = t + i; return l.elements.events.filter(function (e) { var t = e.event, n = t.part.left, i = t.part.left + t.part.width, d = l.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + l.eventHeight; if (DayPilot.Util.overlaps(n, i, a, o) && DayPilot.Util.overlaps(c, u, r, s))
2789
- return !0; }); }, d.we = function () { var e = [], t = l.ne(); if (!t)
2780
+ } }, this.te = function () { l.oe(), l.ve(); }, this.we = {};
2781
+ var d = l.we;
2782
+ d.xe = function (e, t, n, i) { var a = e, o = e + n, r = t, s = t + i; return l.elements.events.filter(function (e) { var t = e.event, n = t.part.left, i = t.part.left + t.part.width, d = l.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + l.eventHeight; if (DayPilot.Util.overlaps(n, i, a, o) && DayPilot.Util.overlaps(c, u, r, s))
2783
+ return !0; }); }, d.ye = function () { var e = [], t = l.pe(); if (!t)
2790
2784
  return e; for (var n = t.pixels.left, i = 0; i < l.elements.events.length; i++) {
2791
2785
  var a = l.elements.events[i], o = a.event, r = o.part.left, s = o.part.left + o.part.width;
2792
2786
  r < n && n < s && e.push(a);
2793
- } return e.area = t, e; }, this.se = function () { if (this.floatingEvents) {
2794
- var e = d.we();
2795
- l.xe = performance.now(), e.forEach(function (t) { var n = t.event, i = e.area.pixels.left, a = n.part.left, o = i - a; l.ye(t, o, 0); }), l.ze();
2796
- } }, this.elements.sections = [], this.elements.hsections = [], this.pe = function (e, t, n) { var i = r(); i.className = l.L("_timeheader_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_timeheader_float_inner"); var o = e.cell.th; a.innerHTML = l.$a(o.text, o.innerHTML), o.fontColor && (a.style.color = o.fontColor), i.appendChild(a), i.Ae = { marginLeft: t, marginRight: n }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.oe = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2787
+ } return e.area = t, e; }, this.ve = function () { if (this.floatingEvents) {
2788
+ var e = d.ye();
2789
+ l.ze = performance.now(), e.forEach(function (t) { var n = t.event, i = e.area.pixels.left, a = n.part.left, o = i - a; l.Ae(t, o, 0); }), l.Be();
2790
+ } }, this.elements.sections = [], this.elements.hsections = [], this.se = function (e, t, n) { var i = r(); i.className = l.L("_timeheader_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_timeheader_float_inner"); var o = e.cell.th; a.innerHTML = l.ab(o.text, o.innerHTML), o.fontColor && (a.style.color = o.fontColor), i.appendChild(a), i.Ce = { marginLeft: t, marginRight: n }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.qe = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
2797
2791
  var t = this.elements.hsections[e], n = t.cell;
2798
- n && t.firstChild && (t.firstChild.innerHTML = l.$a(n.th.text, n.th.innerHTML)), DayPilot.de(t.section), t.section = null;
2799
- } this.elements.hsections = []; }, this.ye = function (e, t, n) { var i = e.section; if (i)
2800
- return i.Ae && i.Ae.marginLeft === t && i.Ae.marginRight === n ? void (i.Ae.stamp = l.xe) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (i.Ae = { marginLeft: t, marginRight: n, stamp: l.xe })); i = r(), i.className = l.L("_event_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_event_float_inner"), a.innerHTML = e.event.client.html(), i.appendChild(a), i.Ae = { marginLeft: t, marginRight: n, stamp: l.xe }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, s = o.cache || o.data; s.fontColor && (a.style.color = s.fontColor), this.elements.sections.push(e); }, this.ze = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2792
+ n && t.firstChild && (t.firstChild.innerHTML = l.ab(n.th.text, n.th.innerHTML)), DayPilot.de(t.section), t.section = null;
2793
+ } this.elements.hsections = []; }, this.Ae = function (e, t, n) { var i = e.section; if (i)
2794
+ return i.Ce && i.Ce.marginLeft === t && i.Ce.marginRight === n ? void (i.Ce.stamp = l.ze) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (i.Ce = { marginLeft: t, marginRight: n, stamp: l.ze })); i = r(), i.className = l.L("_event_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_event_float_inner"), a.innerHTML = e.event.client.html(), i.appendChild(a), i.Ce = { marginLeft: t, marginRight: n, stamp: l.ze }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, s = o.cache || o.data; s.fontColor && (a.style.color = s.fontColor), this.elements.sections.push(e); }, this.Be = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
2801
2795
  var n = this.elements.sections[t];
2802
- if (n.section && n.section.Ae && n.section.Ae.stamp === l.xe)
2796
+ if (n.section && n.section.Ce && n.section.Ce.stamp === l.ze)
2803
2797
  e.push(n);
2804
2798
  else {
2805
2799
  var i = n.event;
2806
2800
  i && (n.firstChild.innerHTML = i.client.html()), DayPilot.de(n.section), n.section = null;
2807
2801
  }
2808
- } this.elements.sections = e; }, this.setScrollX = function (e) { l.Be.enabled ? (l.Be.scrollXRequested = e, setTimeout(function () { var e = l.Be.scrollXRequested; "number" == typeof e && l.ke(e); }, 0)) : l.ke(e); }, this.ke = function (e) { var t = l.nav.scroll, n = l.Ce(); t.clientWidth + e > n && (e = n - t.clientWidth), l.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { l.Be.enabled ? (l.Be.scrollYRequested = e, setTimeout(function () { var e = l.Be.scrollYRequested; "number" == typeof e && l.De(e); }, 0)) : l.De(e); }, this.De = function (e) { var t = l.nav.scroll, n = l.fe; t.clientHeight + e > n && (e = n - t.clientHeight), l.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { l.setScrollX(e), l.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2809
- !function () { var e = l.Ce(); l.je.style.height = l.fe + "px", l.je.style.width = e + "px", e > l.nav.scroll.clientWidth ? l.nav.scroll.style.overflowX = "auto" : l.nav.scroll.style.overflowX = "hidden"; }();
2802
+ } this.elements.sections = e; }, this.setScrollX = function (e) { l.De.enabled ? (l.De.scrollXRequested = e, setTimeout(function () { var e = l.De.scrollXRequested; "number" == typeof e && l.me(e); }, 0)) : l.me(e); }, this.me = function (e) { var t = l.nav.scroll, n = l.Ee(); t.clientWidth + e > n && (e = n - t.clientWidth), l.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { l.De.enabled ? (l.De.scrollYRequested = e, setTimeout(function () { var e = l.De.scrollYRequested; "number" == typeof e && l.Fe(e); }, 0)) : l.Fe(e); }, this.Fe = function (e) { var t = l.nav.scroll, n = l.he; t.clientHeight + e > n && (e = n - t.clientHeight), l.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { l.setScrollX(e), l.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
2803
+ !function () { var e = l.Ee(); l.le.style.height = l.he + "px", l.le.style.width = e + "px", e > l.nav.scroll.clientWidth ? l.nav.scroll.style.overflowX = "auto" : l.nav.scroll.style.overflowX = "hidden"; }();
2810
2804
  var e = 1;
2811
2805
  this.nav.scroll.style.height = "30px";
2812
- var t = this.Xa(), n = t + this.Ee() + e;
2813
- if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.Fe.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", l.nav.resScrollSpace) {
2806
+ var t = this.Za(), n = t + this.Ge() + e;
2807
+ if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.He.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", l.nav.resScrollSpace) {
2814
2808
  var i = 30;
2815
2809
  "Auto" === l.heightSpec && (i = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = i + "px";
2816
2810
  }
2817
2811
  for (var a = 0; a < this.elements.linesVertical.length; a++)
2818
- this.elements.linesVertical[a].style.height = this.fe + "px";
2819
- } }, this.Ge = 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 = l.startDate.addDays(l.days), n = 0; n < e.length; n++) {
2812
+ this.elements.linesVertical[a].style.height = this.he + "px";
2813
+ } }, this.Ie = 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 = l.startDate.addDays(l.days), n = 0; n < e.length; n++) {
2820
2814
  var i = e[n].groupBy, a = e[n].format;
2821
2815
  "Default" === i && (i = this.cellGroupBy);
2822
2816
  for (var o = [], r = l.startDate; r.ticks < t.ticks;) {
2823
2817
  var s = {};
2824
- if (s.start = r, s.end = this.He(s.start, i), s.start.ticks === s.end.ticks)
2818
+ if (s.start = r, s.end = this.Je(s.start, i), s.start.ticks === s.end.ticks)
2825
2819
  break;
2826
2820
  s.left = this.getPixels(s.start).left;
2827
2821
  var d = this.getPixels(s.end).left, c = d - s.left;
2828
- s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ie()) : s.text = this.Je(s, i), c > 0 && o.push(s), r = s.end;
2822
+ s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ke()) : s.text = this.Le(s, i), c > 0 && o.push(s), r = s.end;
2829
2823
  }
2830
2824
  this.timeHeader.push(o);
2831
- } }, this.getPixels = function (e) { var t = l.startDate.addDays(l.days); e = e.ticks > t.ticks ? t.addTime(-1) : e; var n = e.ticks - this.startDate.ticks, i = l.Ab(n), a = l.cellWidth, o = Math.floor(i / a), r = o * a; return { left: i, boxLeft: r, boxRight: r + a, i: o }; }, this.getDate = function (e, t, n) { var i = this.Ke(e, n); if (!i)
2832
- return null; var a = i.x, o = l.Le(a); if (!o)
2833
- return null; var r = n && !t ? o.end : o.start; return t ? r.addTime(this.Bb(i.offset)) : r; }, this.Ke = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), i = l.Le(n); if (!i)
2834
- return null; var a = {}; return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a; }, this.Me = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Ne() * 1e3; if (t < 0)
2835
- return { past: !0 }; var i = Math.floor(t / n); return { i: i, current: l.Le(i) }; }, this.Ab = function (e) { var t = 60 * l.Ne() * 1e3, n = l.cellWidth; return Math.floor(n * e / t); }, this.Bb = function (e) { var t = 60 * l.Ne() * 1e3, n = l.cellWidth; return Math.floor(e / n * t); }, this.Oe = function (e) { DayPilot.Global.touch.start || n.Pe || (l.Qe = {}, l.va(this, e)); }, this.va = function (e, t) { e.event && l.Re(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2825
+ } }, this.getPixels = function (e) { var t = l.startDate.addDays(l.days); e = e.ticks > t.ticks ? t.addTime(-1) : e; var n = e.ticks - this.startDate.ticks, i = l.Cb(n), a = l.cellWidth, o = Math.floor(i / a), r = o * a; return { left: i, boxLeft: r, boxRight: r + a, i: o }; }, this.getDate = function (e, t, n) { var i = this.Me(e, n); if (!i)
2826
+ return null; var a = i.x, o = l.Ne(a); if (!o)
2827
+ return null; var r = n && !t ? o.end : o.start; return t ? r.addTime(this.Db(i.offset)) : r; }, this.Me = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), i = l.Ne(n); if (!i)
2828
+ return null; var a = {}; return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a; }, this.Oe = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Pe() * 1e3; if (t < 0)
2829
+ return { past: !0 }; var i = Math.floor(t / n); return { i: i, current: l.Ne(i) }; }, this.Cb = function (e) { var t = 60 * l.Pe() * 1e3, n = l.cellWidth; return Math.floor(n * e / t); }, this.Db = function (e) { var t = 60 * l.Pe() * 1e3, n = l.cellWidth; return Math.floor(e / n * t); }, this.Qe = function (e) { DayPilot.Global.touch.start || n.Re || (l.Se = {}, l.va(this, e)); }, this.va = function (e, t) { e.event && l.Te(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
2836
2830
  var t = this.event;
2837
2831
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
2838
2832
  return !1;
2839
- l.Se(e);
2833
+ l.Ue(e);
2840
2834
  var n = {};
2841
2835
  if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onEventRightClick && (l.onEventRightClick(n), n.preventDefault.value))
2842
2836
  return !1;
@@ -2846,11 +2840,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2846
2840
  i ? i.show(t) : l.contextMenu && l.contextMenu.show(this.event);
2847
2841
  }
2848
2842
  return "function" == typeof l.onEventRightClicked && l.onEventRightClicked(n), !1;
2849
- } }, this.Le = function (e) { var t = l.Ne(), n = 60 * t * 1e3; return { start: l.startDate.addTime(e * n), end: l.startDate.addTime((e + 1) * n), left: e * l.cellWidth, width: l.cellWidth }; }, this.Re = function (e, t) { if ("boolean" == typeof t)
2843
+ } }, this.Ne = function (e) { var t = l.Pe(), n = 60 * t * 1e3; return { start: l.startDate.addTime(e * n), end: l.startDate.addTime((e + 1) * n), left: e * l.cellWidth, width: l.cellWidth }; }, this.Te = function (e, t) { if ("boolean" == typeof t)
2850
2844
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
2851
2845
  var i = t.ctrlKey, a = t.metaKey;
2852
2846
  if (n.client.clickEnabled()) {
2853
- l.Se(t);
2847
+ l.Ue(t);
2854
2848
  var o = {};
2855
2849
  o.e = n, o.control = l, o.div = e, o.originalEvent = t, o.ctrl = i, o.meta = a, o.shift = t.shiftKey, o.preventDefault = function () { this.preventDefault.value = !0; }, o.toJSON = function () { return DayPilot.Util.copyProps(o, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof l.onEventClick && (l.onEventClick(o), o.preventDefault.value) || "function" == typeof l.onEventClicked && l.onEventClicked(o);
2856
2850
  }
@@ -2860,80 +2854,82 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2860
2854
  }
2861
2855
  "function" == typeof l.onEventDeleted && l.onEventDeleted(t);
2862
2856
  } }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, i) { if ("Disabled" !== this.eventResizeHandling) {
2863
- n = l.Te(n);
2857
+ n = l.Ve(n);
2864
2858
  var a = {};
2865
2859
  a.e = e, a.async = !1, a.loaded = function () { o(); }, a.newStart = t, a.newEnd = n, a.what = i, a.preventDefault = function () { this.preventDefault.value = !0; }, a.control = l, a.toJSON = function () { return DayPilot.Util.copyProps(a, {}, ["e", "async", "newStart", "newEnd"]); };
2866
2860
  var o = function () { if (!a.preventDefault.value) {
2867
2861
  switch (a.loaded = {}, t = a.newStart, n = a.newEnd, l.eventResizeHandling) {
2868
- case "Update": l.Ue(a);
2862
+ case "Update": l.We(a);
2869
2863
  }
2870
2864
  "function" == typeof l.onEventResized && l.onEventResized(a);
2871
2865
  } };
2872
2866
  "function" == typeof l.onEventResize && l.onEventResize(a), a.async || o();
2873
- } }, this.qb = function (e) { e = e || {}, clearTimeout(l.Ve), l.timeHeader = null, l.cellProperties = {}, l.Ge(), l.We(), l.events.Xe(), l.ca.Md(), l.clearSelection(), l.ha(), l.Ye(), l.Ze(), l.rb(), l.$e(), l._e(), l.af(), l.ia(), l.Y(), l.bf(), l.cf = {}, l.df(), l.ma(), l.ef(), e.immediateEvents ? l.na() : setTimeout(function () { l.na(); }, 100), this.visible ? l.ge !== l.visible && this.show() : this.hide(), this.ge = this.visible, this.qe(), l.ff(), this.gf(); }, this.gf = function () { if ("function" == typeof l.onAfterUpdate) {
2867
+ } }, this.sb = function (e) { e = e || {}, clearTimeout(l.Xe), l.timeHeader = null, l.cellProperties = {}, l.Ie(), l.Ye(), l.events.Ze(), l.ca.Od(), l.clearSelection(), l.ha(), l.$e(), l._e(), l.tb(), l.af(), l.bf(), l.cf(), l.ia(), l.Y(), l.df(), l.ef = {}, l.ff(), l.ma(), l.gf(), e.immediateEvents ? l.na() : setTimeout(function () { l.na(); }, 100), this.visible ? l.ie !== l.visible && this.show() : this.hide(), this.ie = this.visible, this.te(), l.hf(), this.if(); }, this.if = function () { if ("function" == typeof l.onAfterUpdate) {
2874
2868
  var e = {};
2875
2869
  l.onAfterUpdate(e);
2876
- } }, this.update = function (e) { if (!l.Ka)
2870
+ } }, this.update = function (e) { if (!l.Ma)
2877
2871
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (l.Q)
2878
2872
  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."); c.request(e); };
2879
2873
  var c = {};
2880
- c.timeout = null, c.options = null, c.enabled = !1, c.request = function (e) { c.enabled ? (clearTimeout(c.timeout), c.hf(e), c.timeout = setTimeout(c.doit)) : (c.hf(e), c.doit()); }, c.hf = function (e) { if (e) {
2874
+ c.timeout = null, c.options = null, c.enabled = !1, c.request = function (e) { c.enabled ? (clearTimeout(c.timeout), c.jf(e), c.timeout = setTimeout(c.doit)) : (c.jf(e), c.doit()); }, c.jf = function (e) { if (e) {
2881
2875
  c.options || (c.options = {});
2882
2876
  for (var t in e)
2883
2877
  c.options[t] = e[t];
2884
- } }, c.doit = function () { var e = c.options; return c.options = null, l.Ka ? (l.sb(e), l.qb({ "immediateEvents": !0 }), void l.vb()) : void l.sb(e); }, this.if = function (e) { e.forEach(function (e) { l.jf(e.index); }); }, this.kf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return l.rowlist[e]; }) : []; }, this.lf = function (e, t, n) {
2885
- e = DayPilot.ua(e), e = l.kf(e), l.if(e), this.mf ? (this.Ye(), this._e(), this.bf(), e.forEach(function (e) { l.nf(e.index); }), e.forEach(function (e) { l.of(e.index); }), this.ef(), this.pf()) : (e.forEach(function (e) { t || l.nf(e.index), l.of(e.index); }), e.forEach(function (e) { l.qf(e.index); }), l.ef()), l.se(), n && n(), this.df();
2886
- }, this.Te = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.rf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.sf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, i, a) { if (l.tf = null, "Disabled" !== l.eventMoveHandling) {
2887
- n = l.Te(n);
2878
+ } }, c.doit = function () {
2879
+ var e = c.options;
2880
+ return c.options = null,
2881
+ l.Ma ? (l.ub(e), l.sb({ "immediateEvents": !0 }), void l.xb()) : void l.ub(e);
2882
+ }, this.kf = function (e) { e.forEach(function (e) { l.lf(e.index); }); }, this.mf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return l.rowlist[e]; }) : []; }, this.nf = function (e, t, n) { e = DayPilot.ua(e), e = l.mf(e), l.kf(e), this.of ? (this.$e(), this.bf(), this.df(), e.forEach(function (e) { l.pf(e.index); }), e.forEach(function (e) { l.qf(e.index); }), this.gf(), this.rf()) : (e.forEach(function (e) { t || l.pf(e.index), l.qf(e.index); }), e.forEach(function (e) { l.sf(e.index); }), l.gf()), l.ve(), n && n(), this.ff(); }, this.Ve = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.tf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.uf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, i, a) { if (l.vf = null, "Disabled" !== l.eventMoveHandling) {
2883
+ n = l.Ve(n);
2888
2884
  var o = {};
2889
2885
  o.e = e, o.newStart = t, o.newEnd = n, o.newResource = i, o.ctrl = !1, o.meta = !1, o.shift = !1, a && (o.shift = a.shiftKey, o.ctrl = a.ctrlKey, o.meta = a.metaKey), o.control = l, o.areaData = DayPilot.Global.movingAreaData, o.toJSON = function () { return DayPilot.Util.copyProps(o, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, o.preventDefault = function () { this.preventDefault.value = !0; };
2890
2886
  var r = function () { if (o.loaded = function () { }, o.preventDefault.value)
2891
- return void l.uf(); switch (t = o.newStart, n = o.newEnd, l.eventMoveHandling) {
2892
- case "Update": l.Ue(o);
2893
- } l.uf(), "function" == typeof l.onEventMoved && l.onEventMoved(o); };
2887
+ return void l.wf(); switch (t = o.newStart, n = o.newEnd, l.eventMoveHandling) {
2888
+ case "Update": l.We(o);
2889
+ } l.wf(), "function" == typeof l.onEventMoved && l.onEventMoved(o); };
2894
2890
  o.async = !1, o.loaded = function () { r(); }, "function" == typeof l.onEventMove && l.onEventMove(o), o.async || r();
2895
- } }, this.Ue = function (e) { var t = e.e, n = e.newStart, i = e.newEnd, a = e.newResource; t.start(n), t.end(i), t.resource(a), l.events.update(t), l.events.vf(); }, this.wf = function (e) { if (e)
2891
+ } }, this.We = function (e) { var t = e.e, n = e.newStart, i = e.newEnd, a = e.newResource; t.start(n), t.end(i), t.resource(a), l.events.update(t), l.events.xf(); }, this.yf = function (e) { if (e)
2896
2892
  if (e.args)
2897
2893
  l.O(e.args.start, e.args.end, e.args.resource);
2898
2894
  else {
2899
- var t = l.xf(e);
2895
+ var t = l.zf(e);
2900
2896
  if (!t)
2901
2897
  return;
2902
2898
  l.O(t.start, t.end, t.resource);
2903
2899
  } }, this.O = function (e, t, n) { if ("Disabled" !== l.timeRangeSelectedHandling) {
2904
2900
  var i = t;
2905
- t = l.Te(i);
2901
+ t = l.Ve(i);
2906
2902
  var a = {};
2907
2903
  if (a.control = l, a.start = e, a.end = t, a.resource = n, a.preventDefault = function () { this.preventDefault.value = !0; }, a.toJSON = function () { return DayPilot.Util.copyProps(a, {}, ["start", "end", "resource"]); }, "function" == typeof l.onTimeRangeSelect) {
2908
2904
  if (l.onTimeRangeSelect(a), a.preventDefault.value)
2909
2905
  return;
2910
2906
  e = a.start, t = a.end;
2911
2907
  }
2912
- t = l.rf(t), l.yf(l.zf, e, t), l.Af(l.zf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
2913
- } }, this.yf = function (e, t, n) { if (e) {
2908
+ t = l.tf(t), l.Af(l.Bf, e, t), l.Cf(l.Bf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
2909
+ } }, this.Af = function (e, t, n) { if (e) {
2914
2910
  var i, a = n;
2915
- t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (i = l.Me(t), e.start.x = i.i, e.start.time = t);
2911
+ t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (i = l.Oe(t), e.start.x = i.i, e.start.time = t);
2916
2912
  var o = l.startDate.addDays(l.days);
2917
- a.getTime() > o.getTime() ? (e.end.x = l.Bf(), e.end.time = o.getTime()) : (i = l.Me(a.addMilliseconds(-1)), e.end.x = i.i, e.end.time = n);
2918
- } }, this.Cf = function (e, t) { l.Df(e, t); }, this.Df = 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 l.onRowClick && (l.onRowClick(n), n.preventDefault.value) || "function" == typeof l.onRowClicked && l.onRowClicked(n); }, this.Ef = function (e) { var t = {}; t.header = e, t.control = l, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderClick && (l.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof l.onTimeHeaderClicked && l.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, i = l.Ff(e, t), a = l.Gf(i), o = l.Le(i.start.x), r = l.Le(i.end.x); return n.start = l.getDate(e, !0), n.end = l.getDate(e + l.nav.scroll.clientWidth, !0, !0), n.resources = a, o && (n.topLeft = { "start": o.start, "end": o.end, x: i.start.x, y: i.start.y, "resource": a[0] }), r && (n.bottomRight = { "start": r.start, "end": r.end, x: i.end.x, y: i.end.y, "resource": a[a.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return l.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.Ff = function (e, t) { var n = {}; n.start = {}, n.end = {}; var i = l.Ke(e), a = l.Ke(e + l.nav.scroll.clientWidth); i && (n.start.x = i.x), a && (n.end.x = a.x); var o = t, r = t + l.nav.scroll.clientHeight; n.start.y = l.Hf(o).i, n.end.y = l.Hf(r).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var s = l.Bf(); return n.end.x >= s && (n.end.x = s - 1), n; }, this.Gf = function (e) { e || (e = this.Ff(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2913
+ a.getTime() > o.getTime() ? (e.end.x = l.Df(), e.end.time = o.getTime()) : (i = l.Oe(a.addMilliseconds(-1)), e.end.x = i.i, e.end.time = n);
2914
+ } }, this.Ef = function (e, t) { l.Ff(e, t); }, this.Ff = 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 l.onRowClick && (l.onRowClick(n), n.preventDefault.value) || "function" == typeof l.onRowClicked && l.onRowClicked(n); }, this.Gf = function (e) { var t = {}; t.header = e, t.control = l, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderClick && (l.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof l.onTimeHeaderClicked && l.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, i = l.Hf(e, t), a = l.If(i), o = l.Ne(i.start.x), r = l.Ne(i.end.x); return n.start = l.getDate(e, !0), n.end = l.getDate(e + l.nav.scroll.clientWidth, !0, !0), n.resources = a, o && (n.topLeft = { "start": o.start, "end": o.end, x: i.start.x, y: i.start.y, "resource": a[0] }), r && (n.bottomRight = { "start": r.start, "end": r.end, x: i.end.x, y: i.end.y, "resource": a[a.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return l.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.Hf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var i = l.Me(e), a = l.Me(e + l.nav.scroll.clientWidth); i && (n.start.x = i.x), a && (n.end.x = a.x); var o = t, r = t + l.nav.scroll.clientHeight; n.start.y = l.Jf(o).i, n.end.y = l.Jf(r).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var s = l.Df(); return n.end.x >= s && (n.end.x = s - 1), n; }, this.If = function (e) { e || (e = this.Hf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
2919
2915
  var i = l.rowlist[n];
2920
2916
  i && t.push(i.id);
2921
- } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.rb = function () { l.nav.top.className !== l.L("_main") && (l.nav.top.className = l.L("_main"), l.nav.dh1.className = l.L("_divider_horizontal"), l.nav.dh2.className = l.L("_divider_horizontal"), l.divResScroll.className = l.L("_rowheader_scroll"), l.nav.divider.className = l.L("_divider") + " " + l.L("_splitter"), l.nav.scroll.className = l.L("_scrollable"), l.je.className = l.L("_matrix") + " " + l.L("_grid_main")); }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = l; if (e.Ka && !e.Q) {
2917
+ } return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.tb = function () { l.nav.top.className !== l.L("_main") && (l.nav.top.className = l.L("_main"), l.nav.dh1.className = l.L("_divider_horizontal"), l.nav.dh2.className = l.L("_divider_horizontal"), l.divResScroll.className = l.L("_rowheader_scroll"), l.nav.divider.className = l.L("_divider") + " " + l.L("_splitter"), l.nav.scroll.className = l.L("_scrollable"), l.le.className = l.L("_matrix") + " " + l.L("_grid_main")); }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = l; if (e.Ma && !e.Q) {
2922
2918
  e.Q = !0;
2923
- for (var t in e.If) {
2924
- var i = e.If[t];
2919
+ for (var t in e.Kf) {
2920
+ var i = e.Kf[t];
2925
2921
  DayPilot.isArray(i) ? i.forEach(function (e) { clearTimeout(e); }) : clearTimeout(i);
2926
2922
  }
2927
- e.Y(), 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.Fe = null, e.je.calendar = null, e.je = 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, n.qc(e), u = null;
2928
- } }, this.disposed = function () { return l.Q; }, this.ba = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.Jf(t), i = l.rowlist, a = l.eventHeight, o = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : n.top, s = n.left, d = n.width, c = document.createElement("div"); c.style.position = "absolute", c.style.width = d + "px", c.style.height = a + "px", c.style.left = s + "px", c.style.top = o + "px", c.style.overflow = "hidden"; var u = r(); return c.appendChild(u), c.className = this.L("_shadow"), u.className = this.L("_shadow_inner"), l.divShadow.appendChild(c), c.calendar = l, c; }, this.Hf = function (e) { for (var t, n = l.rowlist, i = {}, a = 0, o = 0, r = n.length, s = 0; s < r; s++) {
2923
+ e.Y(), 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.He = null, e.le.calendar = null, e.le = 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, n.sc(e), u = null;
2924
+ } }, this.disposed = function () { return l.Q; }, this.ba = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.Lf(t), i = l.rowlist, a = l.eventHeight, o = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : n.top, s = n.left, d = n.width, c = document.createElement("div"); c.style.position = "absolute", c.style.width = d + "px", c.style.height = a + "px", c.style.left = s + "px", c.style.top = o + "px", c.style.overflow = "hidden"; var u = r(); return c.appendChild(u), c.className = this.L("_shadow"), u.className = this.L("_shadow_inner"), l.divShadow.appendChild(c), c.calendar = l, c; }, this.Jf = function (e) { for (var t, n = l.rowlist, i = {}, a = 0, o = 0, r = n.length, s = 0; s < r; s++) {
2929
2925
  var d = n[s];
2930
2926
  if (o += d.height, a = o - d.height, t = d, i.top = a, i.bottom = o, i.i = s, i.element = t, e < o)
2931
2927
  break;
2932
- } return i; }, this.Kf = function (e) { if (e > this.rowlist.length - 1)
2928
+ } return i; }, this.Mf = function (e) { if (e > this.rowlist.length - 1)
2933
2929
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
2934
2930
  t += this.rowlist[n].height; var i = this.rowlist[e]; return { top: t - i.height, height: i.height, bottom: t, i: e, data: i }; }, this.events.find = function (e) { if (!l.events.list || "undefined" == typeof l.events.list.length)
2935
2931
  return null; if ("function" == typeof e)
2936
- return l.Lf(e); for (var t = l.events.list.length, n = 0; n < t; n++)
2932
+ return l.Nf(e); for (var t = l.events.list.length, n = 0; n < t; n++)
2937
2933
  if (l.events.list[n].id === e)
2938
2934
  return new DayPilot.Event(l.events.list[n], l); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2939
2935
  for (var t = l.events.list.length, n = [], i = 0; i < t; i++) {
@@ -2944,13 +2940,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2944
2940
  } if ("object" == typeof e)
2945
2941
  return l.events.findAll(function (t) { for (var n in e)
2946
2942
  if (e[n] !== t.data[n])
2947
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Lf = function (e) { for (var t = l.events.list.length, n = 0; n < t; n++) {
2943
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Nf = function (e) { for (var t = l.events.list.length, n = 0; n < t; n++) {
2948
2944
  var i = new DayPilot.Event(l.events.list[n], l);
2949
2945
  if (e(i))
2950
2946
  return i;
2951
- } return null; }, this.events.focus = function (e) { var t = l.Mf(e); t && t.focus(); }, this.events.scrollIntoView = function (e) { if (l.Mf(e)) {
2947
+ } return null; }, this.events.focus = function (e) { var t = l.Of(e); t && t.focus(); }, this.events.scrollIntoView = function (e) { if (l.Of(e)) {
2952
2948
  var t = e.start(), n = l.getViewport();
2953
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.Nf(), e.start(), e.end()) && l.scrollTo(t, "fast", "middle");
2949
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.Pf(), e.start(), e.end()) && l.scrollTo(t, "fast", "middle");
2954
2950
  var i = e.resource();
2955
2951
  l.getViewport().resources.indexOf(i) === -1 && l.scrollToResource(i);
2956
2952
  } }, this.events.all = function () { for (var e = [], t = 0; t < l.events.list.length; t++) {
@@ -2970,48 +2966,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2970
2966
  var r = {};
2971
2967
  if (r.preventDefault = function () { this.preventDefault.value = !0; }, r.data = n, "function" == typeof t && t(r), r.preventDefault.value)
2972
2968
  return;
2973
- l.events.list = r.data, l.Ka && l.update();
2969
+ l.events.list = r.data, l.Ma && l.update();
2974
2970
  } }; if (l.eventsLoadMethod && "POST" === l.eventsLoadMethod.toUpperCase())
2975
2971
  DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": l.visibleStart().toString(), "end": l.visibleEnd().toString() }, "url": e, "success": a, "error": i });
2976
2972
  else {
2977
2973
  var o = e, r = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
2978
2974
  o += o.indexOf("?") > -1 ? "&" + r : "?" + r, DayPilot.ajax({ "method": "GET", "url": o, "success": a, "error": i });
2979
- } }, this.events.Of = function (e) { var t = []; return l.rowlist.forEach(function (n) { l.Pf(n.index); for (var i = 0; i < n.events.length; i++) {
2975
+ } }, this.events.Qf = function (e) { var t = []; return l.rowlist.forEach(function (n) { l.Rf(n.index); for (var i = 0; i < n.events.length; i++) {
2980
2976
  var a = n.events[i].data;
2981
- if (l.Qf(a, e)) {
2977
+ if (l.Sf(a, e)) {
2982
2978
  t.push(n), n.events.splice(i, 1);
2983
2979
  break;
2984
2980
  }
2985
- } }), t; }, this.events.Rf = function (e) { if (!e)
2981
+ } }), t; }, this.events.Tf = function (e) { if (!e)
2986
2982
  return null; for (var t = l.rowlist, n = 0; n < t.length; n++) {
2987
2983
  var i = t[n];
2988
- l.Pf(i.index);
2984
+ l.Rf(i.index);
2989
2985
  for (var a = 0; a < i.events.length; a++) {
2990
2986
  var o = i.events[a];
2991
- if (l.Qf(o.data, e))
2987
+ if (l.Sf(o.data, e))
2992
2988
  return i.events[a];
2993
2989
  }
2994
- } return null; }, this.events.Sf = function (e) { var t = [], n = l.Tf(), i = DayPilot.indexOf(l.events.list, e); l.yb(i); var a = l.rowlist, o = !1; return a.forEach(function (a) { if (!o) {
2995
- l.Pf(a.index);
2996
- var r = l.Uf(e, a);
2997
- r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.xb.events[i]), t.push(a), n || (o = !0));
2998
- } }), t; }, this.Qf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2990
+ } return null; }, this.events.Uf = function (e) { var t = [], n = l.Vf(), i = DayPilot.indexOf(l.events.list, e); l.Ab(i); var a = l.rowlist, o = !1; return a.forEach(function (a) { if (!o) {
2991
+ l.Rf(a.index);
2992
+ var r = l.Wf(e, a);
2993
+ r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.zb.events[i]), t.push(a), n || (o = !0));
2994
+ } }), t; }, this.Sf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
2999
2995
  var i = l.events.find(e.id);
3000
2996
  return l.events.remove(i), void l.events.add(e);
3001
- } if (n = n || {}, l.events.list.find(function (t) { return l.Qf(t, e.data); })) {
3002
- l.Be.Vf && (l.Be.skip = !0);
3003
- var a = l.events.Of(e.data);
3004
- e.commit(), a = a.concat(l.events.Sf(e.data)), l.events.Wf(a);
2997
+ } if (n = n || {}, l.events.list.find(function (t) { return l.Sf(t, e.data); })) {
2998
+ l.De.Xf && (l.De.skip = !0);
2999
+ var a = l.events.Qf(e.data);
3000
+ e.commit(), a = a.concat(l.events.Uf(e.data)), l.events.Yf(a);
3005
3001
  } }, this.events.remove = function (e) { if (e) {
3006
3002
  if ("string" == typeof e || "number" == typeof e) {
3007
3003
  var t = l.events.find(e);
3008
3004
  return void l.events.remove(t);
3009
3005
  }
3010
- var n = l.Xf(e.data);
3011
- n && l.events.list.splice(n.index, 1), l.Be.Vf && (l.Be.skip = !0);
3012
- var i = l.events.Of(e.data);
3013
- l.events.Wf(i);
3014
- } }, this.events.add = function (e, t, n) { var n = n || {}, i = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []); var a = l.Xf(e); if (i) {
3006
+ var n = l.Zf(e.data);
3007
+ n && l.events.list.splice(n.index, 1), l.De.Xf && (l.De.skip = !0);
3008
+ var i = l.events.Qf(e.data);
3009
+ l.events.Yf(i);
3010
+ } }, this.events.add = function (e, t, n) { var n = n || {}, i = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []); var a = l.Zf(e); if (i) {
3015
3011
  if (!a)
3016
3012
  throw new DayPilot.Exception("Unexpected: event not found in list");
3017
3013
  }
@@ -3019,78 +3015,78 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3019
3015
  if (a)
3020
3016
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
3021
3017
  a || l.events.list.push(e.data);
3022
- } if (l.Ka) {
3023
- l.Be.Vf && (l.Be.skip = !0);
3024
- var o = l.events.Sf(e.data);
3025
- l.events.Wf(o);
3026
- } }, this.events.Yf = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), i = new DayPilot.Date(t.end); return !!l.events.list.find(function (e) { if (l.Qf(t, e))
3018
+ } if (l.Ma) {
3019
+ l.De.Xf && (l.De.skip = !0);
3020
+ var o = l.events.Uf(e.data);
3021
+ l.events.Yf(o);
3022
+ } }, this.events.$f = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), i = new DayPilot.Date(t.end); return !!l.events.list.find(function (e) { if (l.Sf(t, e))
3027
3023
  return !1; if (t.resource !== e.resource)
3028
- return !1; var a = new DayPilot.Date(e.start), o = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, i, a, o); }); }, this.events.Zf = { "rows": [] }, this.events.$f = null, this.events.Xe = function () { clearTimeout(l.events.$f), l.events.$f = null, l.events.Zf.rows = []; }, this.events._f = 0, this.events.Wf = function (e) { var t = l.events.Zf.rows; e.forEach(function (e) { t.push(e); }), l.events.Zf.rows = DayPilot.ua(t); var n = l.events.vf; l.events.$f || (l.events.$f = setTimeout(n, l.events._f)); }, this.events.vf = function () { clearTimeout(l.events.$f), l.events.$f = null; var e = l.events.Zf.rows; l.events.Zf.rows = [], l.ag(e), l.bg(), l.Ka && (l.mf && l.Ye(), l.ma(), l.lf(e)); }, this.Be = {}, this.Be.enabled = !1, this.Be.skip = !1, this.Be.skipUpdate = function () { return l.Be.skip; }, this.Be.skipped = function () { l.Be.skip = !1; }, this.Be.cg = !1, this.Be.Vf = !1, this.jd = {}, this.jd.reactDOM = null, this.jd.react = null, this.dg = function (e) { var t = l.startDate; if (e.ticks === t.ticks)
3024
+ return !1; var a = new DayPilot.Date(e.start), o = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, i, a, o); }); }, this.events._f = { "rows": [] }, this.events.ag = null, this.events.Ze = function () { clearTimeout(l.events.ag), l.events.ag = null, l.events._f.rows = []; }, this.events.bg = 0, this.events.Yf = function (e) { var t = l.events._f.rows; e.forEach(function (e) { t.push(e); }), l.events._f.rows = DayPilot.ua(t); var n = l.events.xf; l.events.ag || (l.events.ag = setTimeout(n, l.events.bg)); }, this.events.xf = function () { clearTimeout(l.events.ag), l.events.ag = null; var e = l.events._f.rows; l.events._f.rows = [], l.cg(e), l.dg(), l.Ma && (l.of && l.$e(), l.ma(), l.nf(e)); }, this.De = {}, this.De.enabled = !1, this.De.skip = !1, this.De.skipUpdate = function () { return l.De.skip; }, this.De.skipped = function () { l.De.skip = !1; }, this.De.eg = !1, this.De.Xf = !1, this.ld = {}, this.ld.reactDOM = null, this.ld.react = null, this.fg = function (e) { var t = l.startDate; if (e.ticks === t.ticks)
3029
3025
  return e; var n = t; if (e.ticks < t.ticks) {
3030
3026
  for (; n.ticks > e.ticks;)
3031
- n = n.addTime(60 * -l.Ne() * 1e3);
3027
+ n = n.addTime(60 * -l.Pe() * 1e3);
3032
3028
  return n;
3033
- } var i = this.Me(e); if (i.current)
3034
- return i.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Jf = function (e) { var t = this.Hf(l.coords.y); if ("function" != typeof e.end)
3029
+ } var i = this.Oe(e); if (i.current)
3030
+ return i.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Lf = function (e) { var t = this.Jf(l.coords.y); if ("function" != typeof e.end)
3035
3031
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
3036
- throw new DayPilot.Exception("e.end() returns null"); var i = DayPilot.DateUtil.diff(e.rawend(), e.start()); i = DayPilot.Util.atLeast(i, 1); var a = f.eg(i), o = 0, r = l.coords.x; a && (o = e.start().getTime() - this.dg(e.start()).getTime()); var s = 0; if (n.fg)
3032
+ throw new DayPilot.Exception("e.end() returns null"); var i = DayPilot.DateUtil.diff(e.rawend(), e.start()); i = DayPilot.Util.atLeast(i, 1); var a = f.gg(i), o = 0, r = l.coords.x; a && (o = e.start().getTime() - this.fg(e.start()).getTime()); var s = 0; if (n.hg)
3037
3033
  if (a) {
3038
- var d = e.start(), c = this.dg(d);
3039
- s = n.fg.getTime() - c.getTime();
3040
- var u = 60 * l.Ne() * 1e3;
3034
+ var d = e.start(), c = this.fg(d);
3035
+ s = n.hg.getTime() - c.getTime();
3036
+ var u = 60 * l.Pe() * 1e3;
3041
3037
  s = Math.floor(s / u) * u;
3042
3038
  }
3043
3039
  else
3044
- s = n.fg.getTime() - e.start().getTime(); var h = this.getDate(r, !0).addTime(-s); n.gg && (h = e.start()); var v = l.snapToGrid; v && (h = this.dg(h)), h = h.addTime(o); var p = h.addTime(i), m = h, g = p, y = this.getPixels(m), b = this.getPixels(g.addTime(-1)), w = v ? y.boxLeft : y.left, x = v && a ? b.boxRight - w : b.left - w, D = {}; return D.top = t.top, D.left = w, D.row = t.element, D.rowIndex = t.i, D.width = x, D.start = h, D.end = p, D.relativeY = l.coords.y - t.top, D; }, this.Ne = function () { switch (this.scale) {
3040
+ s = n.hg.getTime() - e.start().getTime(); var h = this.getDate(r, !0).addTime(-s); n.ig && (h = e.start()); var v = l.snapToGrid; v && (h = this.fg(h)), h = h.addTime(o); var p = h.addTime(i), m = h, g = p, y = this.getPixels(m), b = this.getPixels(g.addTime(-1)), w = v ? y.boxLeft : y.left, D = v && a ? b.boxRight - w : b.left - w, x = {}; return x.top = t.top, x.left = w, x.row = t.element, x.rowIndex = t.i, x.width = D, x.start = h, x.end = p, x.relativeY = l.coords.y - t.top, x; }, this.Pe = function () { switch (this.scale) {
3045
3041
  case "CellDuration": return this.cellDuration;
3046
3042
  case "Minute": return 1;
3047
3043
  case "Hour": return 60;
3048
3044
  case "Day": return 1440;
3049
3045
  case "Week": return 10080;
3050
- } 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 = n.jg.width, t = n.jg.left, i = n.kg, a = n.gg.dpBorder, o = null, r = null, s = l.snapToGrid, d = !s; "left" === a ? (o = l.getDate(t, d), r = i.rawend()) : "right" === a && (o = i.start(), r = l.getDate(t + e, d, !0)), n.jg.start = o, n.jg.end = r; }, this.lg = function () { var e = l.coords, t = n.gg.dpBorder, i = n.gg.event, a = i.part.left; "right" === t && (a += i.part.width); var o, r, s = n.gg.event.calendar.cellWidth, d = i.part.width, c = i.part.left, u = 0, h = e.x - a, f = l.snapToGrid; if ("right" === t) {
3046
+ } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.jg = function (e) { return e.end.ticks - e.start.ticks; }, this.kg = function () { var e = n.lg.width, t = n.lg.left, i = n.mg, a = n.ig.dpBorder, o = null, r = null, s = l.snapToGrid, d = !s; "left" === a ? (o = l.getDate(t, d), r = i.rawend()) : "right" === a && (o = i.start(), r = l.getDate(t + e, d, !0)), n.lg.start = o, n.lg.end = r; }, this.ng = function () { var e = l.coords, t = n.ig.dpBorder, i = n.ig.event, a = i.part.left; "right" === t && (a += i.part.width); var o, r, s = n.ig.event.calendar.cellWidth, d = i.part.width, c = i.part.left, u = 0, h = e.x - a, f = l.snapToGrid; if ("right" === t) {
3051
3047
  if (o = c, f) {
3052
- var v = l.Ke(d + c + h).cell, p = l.Ke(c).cell, m = p.left + p.width - c;
3048
+ var v = l.Me(d + c + h).cell, p = l.Me(c).cell, m = p.left + p.width - c;
3053
3049
  r = v.left + v.width - c, r < m && (r = m);
3054
3050
  }
3055
3051
  else
3056
3052
  r = d + h;
3057
- var g = l.Ce();
3058
- c + r > g && (r = g - c), n.jg.left = c, n.jg.width = r, n.jg.style.left = c + "px", n.jg.style.width = r + "px";
3053
+ var g = l.Ee();
3054
+ c + r > g && (r = g - c), n.lg.left = c, n.lg.width = r, n.lg.style.left = c + "px", n.lg.style.width = r + "px";
3059
3055
  }
3060
3056
  else {
3061
3057
  if ("left" !== t)
3062
3058
  throw new DayPilot.Exception("Invalid dpBorder.");
3063
3059
  f ? (h >= d && (h = d), o = Math.floor((c + h + 0) / s) * s, o < u && (o = u)) : o = c + h, r = d - (o - c);
3064
3060
  var y = c + d, b = s;
3065
- f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, r < b && (r = b, o = y - r), n.jg.left = o, n.jg.width = r, n.jg.style.left = o + "px", n.jg.style.width = r + "px";
3066
- } l.ig(); }, this.mg = function () { if (l.coords && n.ng) {
3067
- var e = n.og, t = this.Jf(n.ng);
3061
+ f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, r < b && (r = b, o = y - r), n.lg.left = o, n.lg.width = r, n.lg.style.left = o + "px", n.lg.style.width = r + "px";
3062
+ } l.kg(); }, this.og = function () { if (l.coords && n.pg) {
3063
+ var e = n.qg, t = this.Lf(n.pg);
3068
3064
  e.row = t.row, e.style.height = DayPilot.Util.atLeast(t.row.height, 0) + "px", e.style.top = t.top + "px", e.style.left = t.left + "px", e.style.width = t.width + "px", e.start = t.start, e.end = t.end;
3069
- } }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(l.progressiveRowRenderingPreload); }, this.rg = function (e) { e = e || 0; var t = 0, n = l.rowlist.length; if (l.progressiveRowRendering) {
3070
- var i = l.ne();
3065
+ } }, this.rg = function () { return this.rowHeaderWidth; }, this.sg = function () { return this.tg(l.progressiveRowRenderingPreload); }, this.tg = function (e) { e = e || 0; var t = 0, n = l.rowlist.length; if (l.progressiveRowRendering) {
3066
+ var i = l.pe();
3071
3067
  t = i.yStart, n = i.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(l.rowlist.length, n + e);
3072
- } return { "start": t, "end": n }; }, this.Ze = function () { function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.sg = !0; var t = this.pg(); e(); var n = this.divHeader; if (n.style.width = t + "px", n.style.height = l.fe + "px", l.divHeader = n, l.progressiveRowRendering)
3068
+ } return { "start": t, "end": n }; }, this._e = function () { function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.ug = !0; var t = this.rg(); e(); var n = this.divHeader; if (n.style.width = t + "px", n.style.height = l.he + "px", l.divHeader = n, l.progressiveRowRendering)
3073
3069
  i();
3074
3070
  else
3075
3071
  for (var a = this.rowlist.length, o = 0; o < a; o++)
3076
- l.tg(o); l.ug(), this.divResScroll.appendChild(n); }, this.vg = function () { if (l.progressiveRowRendering)
3077
- for (var e = this.qg(), t = 0; t < l.rowlist.length; t++)
3078
- e.start <= t && t < e.end ? l.tg(t) : l.wg(t); }, this.ug = function () { if (!l.ca.xg()) {
3072
+ l.vg(o); l.wg(), this.divResScroll.appendChild(n); }, this.xg = function () { if (l.progressiveRowRendering)
3073
+ for (var e = this.sg(), t = 0; t < l.rowlist.length; t++)
3074
+ e.start <= t && t < e.end ? l.vg(t) : l.yg(t); }, this.wg = function () { if (!l.ca.zg()) {
3079
3075
  var e = l.divHeader, t = r();
3080
3076
  t.style.position = "absolute", e.appendChild(t), l.nav.resScrollSpace = t;
3081
3077
  var n = r();
3082
3078
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
3083
- var i = this.pg(), t = l.nav.resScrollSpace;
3084
- t.style.width = i + "px", t.style.top = this.fe + "px";
3085
- } }, this.wg = function (e) { var t = l.divHeader.rows[e]; t && (DayPilot.de(t), l.divHeader.rows[e] = null); }, this.jf = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) { var t = l.rowlist, n = l.divHeader; if (n && !n.rows[e]) {
3086
- var i = this.pg(), a = t[e];
3079
+ var i = this.rg(), t = l.nav.resScrollSpace;
3080
+ t.style.width = i + "px", t.style.top = this.he + "px";
3081
+ } }, this.yg = function (e) { var t = l.divHeader.rows[e]; t && (DayPilot.de(t), l.divHeader.rows[e] = null); }, this.lf = function (e) { this.yg(e), this.vg(e); }, this.vg = function (e) { var t = l.rowlist, n = l.divHeader; if (n && !n.rows[e]) {
3082
+ var i = this.rg(), a = t[e];
3087
3083
  if (a) {
3088
- var o = this.yg(a), s = r();
3084
+ var o = this.Ag(a), s = r();
3089
3085
  s.style.position = "absolute", s.style.top = a.top + "px", n.rows[e] = s, s.row = a, s.index = e;
3090
3086
  var d = o.row, c = this.rowHeaderWidth;
3091
3087
  s.style.width = c + "px", s.style.border = "0px none";
3092
3088
  var u = d.toolTip || d.toolTip;
3093
- u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.zg;
3089
+ u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.Bg;
3094
3090
  var h = r();
3095
3091
  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);
3096
3092
  var f = d.backColor || d.backColor;
@@ -3113,7 +3109,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3113
3109
  var g = r();
3114
3110
  g.style.position = "absolute", g.style.bottom = "0px", g.style.width = "100%", g.style.height = "0px", g.style.boxSizing = "content-box", g.style.borderBottom = "1px solid transparent", g.className = this.L("_resourcedivider"), h.appendChild(g);
3115
3111
  var y = r(), b = r();
3116
- b.innerHTML = l.$a(d.text, d.html), b.className = l.L("_rowheader_inner_text"), s.textDiv = b, s.cellDiv = h, y.appendChild(b), m.appendChild(y);
3112
+ b.innerHTML = l.ab(d.text, d.html), b.className = l.L("_rowheader_inner_text"), s.textDiv = b, s.cellDiv = h, y.appendChild(b), m.appendChild(y);
3117
3113
  var w = d.verticalAlignment || d.verticalAlignment;
3118
3114
  if (w)
3119
3115
  switch (m.style.display = "flex", w) {
@@ -3127,17 +3123,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3127
3123
  }
3128
3124
  s.appendChild(h), n.appendChild(s), h.style.width = i + "px";
3129
3125
  }
3130
- } }, this.zg = function (e) { var t = this.row, n = l.Ag(t, this.index); l.Cf(n, e); }, this.Bg = function (e) { if ("Disabled" !== l.timeHeaderClickHandling) {
3126
+ } }, this.Bg = function (e) { var t = this.row, n = l.Cg(t, this.index); l.Ef(n, e); }, this.Dg = function (e) { if ("Disabled" !== l.timeHeaderClickHandling) {
3131
3127
  var t = {};
3132
- 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(l.Ne())), l.Ef(t);
3133
- } }, this.Cg = function (e) { if ("Disabled" !== l.timeHeaderRightClickHandling) {
3128
+ 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(l.Pe())), l.Gf(t);
3129
+ } }, this.Eg = function (e) { if ("Disabled" !== l.timeHeaderRightClickHandling) {
3134
3130
  e.cancelBubble = !0, e.preventDefault();
3135
3131
  var t = {};
3136
- 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(l.Ne()));
3132
+ 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(l.Pe()));
3137
3133
  var n = {};
3138
3134
  n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderRightClick && (l.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof l.onTimeHeaderRightClicked && l.onTimeHeaderRightClicked(n);
3139
- } }, this.Ag = function (e) { return new DayPilot.Row(e, l); }, this.Pf = function (e) { var t = l.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))
3140
- throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); u.prepareRows(!0); var t, n = this.events.list, i = "function" == typeof this.onBeforeEventRender; l.Dg = {}; for (var a = 0; a < n.length; a++) {
3135
+ } }, this.Cg = function (e) { return new DayPilot.Row(e, l); }, this.Rf = function (e) { var t = l.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Fg = {}, 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))
3136
+ throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); u.prepareRows(!0); var t, n = this.events.list, i = "function" == typeof this.onBeforeEventRender; l.Fg = {}; for (var a = 0; a < n.length; a++) {
3141
3137
  var o = n[a];
3142
3138
  if (o) {
3143
3139
  if ("object" != typeof o)
@@ -3149,56 +3145,56 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3149
3145
  if (!("string" == typeof o.id || "number" == typeof o.id))
3150
3146
  throw new DayPilot.Exception("All events must have an id property (string or number)");
3151
3147
  var r = "_" + o.id;
3152
- if (l.Dg[r])
3148
+ if (l.Fg[r])
3153
3149
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + r);
3154
- l.Dg[r] = !0, i && this.yb(a), t = l.Eg(o.resource);
3150
+ l.Fg[r] = !0, i && this.Ab(a), t = l.Gg(o.resource);
3155
3151
  for (var s = 0; t && s < t.length; s++) {
3156
- var d = t[s], c = this.Uf(o, d);
3157
- c && i && (c.cache = this.xb.events[a]);
3152
+ var d = t[s], c = this.Wf(o, d);
3153
+ c && i && (c.cache = this.zb.events[a]);
3158
3154
  }
3159
3155
  }
3160
- } l.rowlist.forEach(function (e) { l.Fg(e); }), l.bg(); }, this.Gg = {};
3161
- var u = this.Gg;
3156
+ } l.rowlist.forEach(function (e) { l.Hg(e); }), l.dg(); }, this.Ig = {};
3157
+ var u = this.Ig;
3162
3158
  u.rowcache = {}, u.prepareRows = function (e) { u.rowcache = {}; for (var t = l.rowlist, n = 0; n < t.length; n++) {
3163
3159
  var i = t[n];
3164
- if (e && i.resetEvents(), l.Pf(i.index), i.id) {
3160
+ if (e && i.resetEvents(), l.Rf(i.index), i.id) {
3165
3161
  var a = typeof i.id + "_" + i.id;
3166
3162
  u.rowcache[a] || (u.rowcache[a] = []), u.rowcache[a].push(i);
3167
3163
  }
3168
- } }, u.loadEvent = function (e) { }, this.Eg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Tf = function () { for (var e = {}, t = 0; t < l.rowlist.length; t++) {
3164
+ } }, u.loadEvent = function (e) { }, this.Gg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Vf = function () { for (var e = {}, t = 0; t < l.rowlist.length; t++) {
3169
3165
  var n = l.rowlist[t], i = n.id;
3170
3166
  if (e[i])
3171
3167
  return !0;
3172
3168
  e[i] = !0;
3173
- } return !1; }, this.yb = function (e) { var t = this.xb.events, n = this.events.list[e], i = {}; n instanceof DayPilot.Event && (n = n.data); for (var a in n)
3169
+ } return !1; }, this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; n instanceof DayPilot.Event && (n = n.data); for (var a in n)
3174
3170
  i[a] = n[a]; if ("string" == typeof i.start && (i.start = new DayPilot.Date(i.start)), "string" == typeof i.end && (i.end = new DayPilot.Date(i.end)), "function" == typeof this.onBeforeEventRender) {
3175
3171
  var o = {};
3176
3172
  o.e = i, o.data = i, this.onBeforeEventRender(o);
3177
- } t[e] = i; }, this.Fg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.zb); for (var t = 0; t < e.events.length; t++) {
3173
+ } t[e] = i; }, this.Hg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Bb); for (var t = 0; t < e.events.length; t++) {
3178
3174
  var n = e.events[t];
3179
3175
  e.putIntoLine(n);
3180
- } }, this.ag = function (e) { e = DayPilot.ua(e), e = l.kf(e), e.forEach(function (e) { l.Fg(e); }), e.forEach(function (e) { l.Hg(e); }); }, this.Uf = function (e, t) { var n = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end); i = l.rf(i); var a = n.ticks, o = i.ticks, r = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks; if (o < a)
3176
+ } }, this.cg = function (e) { e = DayPilot.ua(e), e = l.mf(e), e.forEach(function (e) { l.Hg(e); }), e.forEach(function (e) { l.Jg(e); }); }, this.Wf = function (e, t) { var n = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end); i = l.tf(i); var a = n.ticks, o = i.ticks, r = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks; if (o < a)
3181
3177
  return null; var d = null; if ("function" == typeof l.onBeforeEventRender) {
3182
3178
  var c = DayPilot.indexOf(l.events.list, e);
3183
- d = l.xb.events[c];
3179
+ d = l.zb.events[c];
3184
3180
  } if (t.id !== e.resource || (o <= r || a >= s) && (a !== o || a !== r))
3185
- return null; var u = new DayPilot.Event(e, l); u.part.dayIndex = l.rowlist.indexOf(t), u.part.start = r < a ? n : l.startDate, u.part.end = s > o ? i : l.startDate.addDays(l.days); var h = this.getPixels(u.part.start), v = this.getPixels(u.part.end.addTime(-1)); u.part.start === u.part.end && (v = this.getPixels(u.part.end.addMilliseconds(1))); var p = h.left, m = v.left; if (f.eg(o - a)) {
3181
+ return null; var u = new DayPilot.Event(e, l); u.part.dayIndex = l.rowlist.indexOf(t), u.part.start = r < a ? n : l.startDate, u.part.end = s > o ? i : l.startDate.addDays(l.days); var h = this.getPixels(u.part.start), v = this.getPixels(u.part.end.addTime(-1)); u.part.start === u.part.end && (v = this.getPixels(u.part.end.addMilliseconds(1))); var p = h.left, m = v.left; if (f.gg(o - a)) {
3186
3182
  var g = h.boxLeft, y = v.boxRight;
3187
3183
  u.part.left = g, u.part.width = y - g, u.part.barLeft = Math.max(p - u.part.left, 0), u.part.barWidth = Math.max(m - p, 1);
3188
3184
  }
3189
3185
  else
3190
- u.part.left = p, u.part.width = Math.max(m - p, 1), u.part.barLeft = 0, u.part.barWidth = Math.max(m - p - 1, 1); var b = l.eventMinWidth; return u.part.width = Math.max(u.part.width, b), u.part.right = u.part.left + u.part.width, u.cache = d, t.events.push(u), u; }, this.zb = function (e, t) { if (!(e && t && e.start && t.start))
3186
+ u.part.left = p, u.part.width = Math.max(m - p, 1), u.part.barLeft = 0, u.part.barWidth = Math.max(m - p - 1, 1); var b = l.eventMinWidth; return u.part.width = Math.max(u.part.width, b), u.part.right = u.part.left + u.part.width, u.cache = d, t.events.push(u), u; }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
3191
3187
  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 < l.rowlist.length; t++) {
3192
- var n = l.Ag(l.rowlist[t]);
3188
+ var n = l.Cg(l.rowlist[t]);
3193
3189
  e.push(n);
3194
3190
  } return e; }, this.rows.each = function (e) { l.rows.all().forEach(e); }, this.rows.forEach = function (e) { l.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
3195
- var n = l.Eg(e);
3191
+ var n = l.Gg(e);
3196
3192
  e || (n = l.rowlist);
3197
3193
  var i = null;
3198
3194
  return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), i = n.find(function (e) { return t === e.start; })) : i = n[0], i ? new DayPilot.Row(i, l) : null;
3199
3195
  } if ("function" != typeof e)
3200
- throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.Ag(t)); }); if (o)
3201
- return l.Ag(o); }, this.rows.load = function (e, t, n) { if (!e)
3196
+ throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.Cg(t)); }); if (o)
3197
+ return l.Cg(o); }, this.rows.load = function (e, t, n) { if (!e)
3202
3198
  throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
3203
3199
  n = JSON.parse(a.responseText);
3204
3200
  }
@@ -3209,34 +3205,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3209
3205
  var r = {};
3210
3206
  if (r.preventDefault = function () { this.preventDefault.value = !0; }, r.data = n, "function" == typeof t && t(r), r.preventDefault.value)
3211
3207
  return;
3212
- l.resources = r.data, l.Ka && l.update();
3208
+ l.resources = r.data, l.Ma && l.update();
3213
3209
  } }; l.rowsLoadMethod && "POST" === l.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.rows.remove = function (e) { if ("number" == typeof e || "string" == typeof e) {
3214
3210
  var t = l.rows.find(e);
3215
3211
  if (!t)
3216
3212
  throw new DayPilot.Exception("The row to be removed was not found");
3217
3213
  return void l.rows.remove(t);
3218
- } var n = e.$.row.resource, i = DayPilot.indexOf(l.resources, n); l.resources.splice(i, 1), l.update(); }, this.rows.add = function (e) { l.resources.push(e), l.qb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3214
+ } var n = e.$.row.resource, i = DayPilot.indexOf(l.resources, n); l.resources.splice(i, 1), l.update(); }, this.rows.add = function (e) { l.resources.push(e), l.sb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
3219
3215
  throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object."); if (!(e instanceof DayPilot.Row)) {
3220
3216
  var t = e;
3221
3217
  if (e = l.rows.find(t.id), !e)
3222
3218
  return;
3223
3219
  e.data = t;
3224
- } var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = e.parent() ? e.parent().$.row : null, s = l.Ig(o), e = l.Jg(s, r); e.level = a.level, e.index = n, e.top = a.top, e.height = a.height, i[n] = e, e.resetEvents(), l.Pf(e.index), l.Kg(e), l.Fg(e), l.jf(e.index), l.bf(), l.ef(); }, this.Kg = function (e) { for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
3220
+ } var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = e.parent() ? e.parent().$.row : null, s = l.Kg(o), e = l.Lg(s, r); e.level = a.level, e.index = n, e.top = a.top, e.height = a.height, i[n] = e, e.resetEvents(), l.Rf(e.index), l.Mg(e), l.Hg(e), l.lf(e.index), l.df(), l.gf(); }, this.Mg = function (e) { for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
3225
3221
  var o = t[a];
3226
3222
  if (o) {
3227
3223
  if (o instanceof DayPilot.Event)
3228
3224
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3229
3225
  if (o.resource === e.id) {
3230
- i && this.yb(a);
3231
- var r = this.Uf(o, e);
3232
- r && i && (r.cache = this.xb.events[a]);
3226
+ i && this.Ab(a);
3227
+ var r = this.Wf(o, e);
3228
+ r && i && (r.cache = this.zb.events[a]);
3233
3229
  }
3234
3230
  }
3235
- } }, this.We = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3236
- throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], l.rowlist = [], this.Lg(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Nf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Nf(); }, this.Jg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l.$a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.Ae, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () { var e = this; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days); for (var i = [], a = 0; a < e.events.length; a++) {
3237
- var o = e.events[a], r = l.rf(o.end());
3231
+ } }, this.Ye = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3232
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], l.rowlist = [], this.Ng(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Pf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Pf(); }, this.Lg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l.ab(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.Ce, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () { var e = this; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days); for (var i = [], a = 0; a < e.events.length; a++) {
3233
+ var o = e.events[a], r = l.tf(o.end());
3238
3234
  DayPilot.Util.overlaps(o.start(), r, t, n) && i.push(o);
3239
- } return i; }; }, t.Mg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var i = e + t - 1, a = this.length, o = 0; o < a; o++) {
3235
+ } return i; }; }, t.Og = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var i = e + t - 1, a = this.length, o = 0; o < a; o++) {
3240
3236
  var r = this[o];
3241
3237
  if (!(i < r.part.left || e > r.part.left + r.part.width - 1)) {
3242
3238
  if (DayPilot.contains(n, r.data))
@@ -3247,99 +3243,102 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3247
3243
  var a = this.lines[i];
3248
3244
  if (a.isFree(e, n))
3249
3245
  return i;
3250
- } var a = t.Mg(); return this.lines.push(a), 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.Lg = function (e) { if (e)
3246
+ } var a = t.Og(); return this.lines.push(a), 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.Ng = function (e) { if (e)
3251
3247
  for (var t = l.rowlist, n = 0; n < e.length; n++)
3252
3248
  if (e[n]) {
3253
3249
  var i = {};
3254
3250
  i.index = n;
3255
- var a = this.Ig(e[n], i), o = l.Jg(a, parent);
3251
+ var a = this.Kg(e[n], i), o = l.Lg(a, parent);
3256
3252
  o.index = n, t.push(o);
3257
- } }, this.yg = function (e) { var t = {}; return t.row = this.Ag(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Ig = function (e, t) { var n = { get $data() { return this.Ae; } }; for (var i in t)
3253
+ } }, this.Ag = function (e) { var t = {}; return t.row = this.Cg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Kg = function (e, t) { var n = { get $data() { return this.Ce; } }; for (var i in t)
3258
3254
  n[i] = t[i]; for (var i in e)
3259
- n[i] = e[i]; return n.html = l.$a(e.name, e.html), n.Ae = e, n; }, this.Ng = 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 = h.Og, this.nav.top.ontouchmove = h.Pg, this.nav.top.ontouchend = h.Qg; 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.Rg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ee() + this.Xa() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ee() + "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, a.appendChild(l.Sg()), a.appendChild(l.Tg()), a.appendChild(o); var s = r(); s.style.clear = "left"; var d = r(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; 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.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = c, this.nav.top.appendChild(t), this.nav.top.appendChild(i), this.nav.top.appendChild(a), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(c); }, this.ia = function () { var e = this.Ee(); 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.Ug = 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.Vg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = l.qg(), i = n.start; i < n.end; i++) {
3255
+ n[i] = e[i]; return n.html = l.ab(e.name, e.html), n.Ce = e, n; }, this.Pg = 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 = h.Qg, this.nav.top.ontouchmove = h.Rg, this.nav.top.ontouchend = h.Sg; 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.gb()), t.appendChild(n), t.appendChild(this.Tg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ge() + this.Za() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ge() + "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, a.appendChild(l.Ug()), a.appendChild(l.Vg()), a.appendChild(o); var s = r(); s.style.clear = "left"; var d = r(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; 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.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = c, this.nav.top.appendChild(t), this.nav.top.appendChild(i), this.nav.top.appendChild(a), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(c); }, this.ia = function () { var e = this.Ge(); 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.Wg = 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.Xg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = l.sg(), i = n.start; i < n.end; i++) {
3260
3256
  var a = t.rows[i];
3261
3257
  if (a) {
3262
3258
  var o = l.rowHeaderWidth;
3263
3259
  a.style.width = o + "px";
3264
3260
  a.firstChild.style.width = o + "px";
3265
3261
  }
3266
- } l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this.af = function () { this.Ug(), this.Vg(); }, this.eb = function () { var e = this.rowHeaderWidth, t = r(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ee() + "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.Ee = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Wg = null, this.Rg = 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 = l.L("_rowheader_scroll"); var i = l.ca.xg(); i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Xg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (l.Wg && clearTimeout(l.Wg), i) {
3267
- var a = function () { var t = l.Yg() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
3268
- t ? n.Xg && (l.Wg = setTimeout(a, 10)) : l.Wg = setTimeout(a, 10);
3262
+ } l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this.cf = function () { this.Wg(), this.Xg(); }, this.gb = function () { var e = this.rowHeaderWidth, t = r(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ge() + "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.Ge = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Yg = null, this.Tg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Za() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = l.L("_rowheader_scroll"); var i = l.ca.zg(); i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Zg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (l.Yg && clearTimeout(l.Yg), i) {
3263
+ var a = function () { var t = l.$g() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
3264
+ t ? n.Zg && (l.Yg = setTimeout(a, 10)) : l.Yg = setTimeout(a, 10);
3269
3265
  }
3270
3266
  else
3271
- l.Wg = setTimeout(function () { l.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.Fe = e, e; }, this.Zg = null, this.$g = null, this._g = function () { var e = function () { l.ah(), l.ff(); }, t = function () { var t = l.nav.top; if (t) {
3272
- if (!l.Zg)
3273
- return l.Zg = {}, void (l.Zg.width = t.offsetWidth);
3274
- l.Zg.width !== t.offsetWidth && (l.Zg.width = t.offsetWidth, e());
3275
- } }; if (!l.$g) {
3267
+ l.Yg = setTimeout(function () { l.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.He = e, e; }, this._g = null, this.ah = null, this.bh = function () { var e = function () { l.ch(), l.hf(); }, t = function () { var t = l.nav.top; if (t) {
3268
+ if (!l._g)
3269
+ return l._g = {}, void (l._g.width = t.offsetWidth);
3270
+ l._g.width !== t.offsetWidth && (l._g.width = t.offsetWidth, e());
3271
+ } }; if (!l.ah) {
3276
3272
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3277
- n.observe(l.nav.top), l.$g = n;
3278
- } }, this.ah = function () { l.Q || (l.ma(), l.bh(), l.xb.drawArea = null); }, this.bh = function () { var e = l.zf; l.clearSelection(), l.zf = e, l.Af(e, { "justDraw": !0 }); }, this.Sg = 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.Ee() + "px", e.style.overflow = "hidden", e.className = l.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ce() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Xa = function () {
3279
- var e = 0, t = l.heightSpec;
3280
- return "Fixed" === t ? this.height ? this.height : 0 : (e = l.Yg(), "Max" === t && e > l.height ? l.height : e);
3281
- }, this.Yg = function () { var e; return this.fe !== -1 ? (e = this.fe, this.fe > 0 && "auto" === l.nav.scroll.style.overflowX && (e += DayPilot.sh(l.nav.scroll) + 1)) : e = this.rowlist.length * l.eventHeight, e; }, this.Tg = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Xa() + "px", e.style.top = this.Ee() + 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.je = r(); var t = this.je; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ce(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ch, t.onmousemove = this.dh, t.onmouseup = this.eh, t.oncontextmenu = this.fh, 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.fh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.fh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.fh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.fh, 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; }, this.pb = function () { n.gh || (n.gh = !0, DayPilot.re(document, "mouseup", n.ee), DayPilot.re(document, "touchmove", n.hh), DayPilot.re(document, "touchend", n.ih)); }, this.jh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ff, l.kh = this.nav.scroll.scrollLeft, l.lh = this.nav.scroll.scrollTop, this.divNorth && (l.mh = this.divNorth.clientWidth); }, this.nh = {}, this.nh.step = 300, this.nh.delay = 10, this.nh.mode = "display", this.nh.layers = !1, this.Hg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3273
+ n.observe(l.nav.top), l.ah = n;
3274
+ } }, this.ch = function () { l.Q || (l.ma(), l.dh(), l.zb.drawArea = null); }, this.dh = function () { var e = l.Bf; l.clearSelection(), l.Bf = e, l.Cf(e, { "justDraw": !0 }); }, this.Ug = function () {
3275
+ var e = r();
3276
+ e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ge() + "px", e.style.overflow = "hidden", e.className = l.L("_timeheader_scroll"),
3277
+ this.divTimeScroll = e;
3278
+ var t = r();
3279
+ return t.style.width = this.Ee() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e;
3280
+ }, this.Za = function () { var e = 0, t = l.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = l.$g(), "Max" === t && e > l.height ? l.height : e); }, this.$g = function () { var e; return this.he !== -1 ? (e = this.he, this.he > 0 && "auto" === l.nav.scroll.style.overflowX && (e += DayPilot.sh(l.nav.scroll) + 1)) : e = this.rowlist.length * l.eventHeight, e; }, this.Vg = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Za() + "px", e.style.top = this.Ge() + 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.le = r(); var t = this.le; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ee(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.eh, t.onmousemove = this.fh, t.onmouseup = this.gh, t.oncontextmenu = this.hh, 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.hh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.hh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.hh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.hh, 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; }, this.rb = function () { n.ih || (n.ih = !0, DayPilot.re(document, "mouseup", n.ge), DayPilot.re(document, "touchmove", n.jh), DayPilot.re(document, "touchend", n.kh)); }, this.lh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.hf, l.mh = this.nav.scroll.scrollLeft, l.nh = this.nav.scroll.scrollTop, this.divNorth && (l.oh = this.divNorth.clientWidth); }, this.ph = {}, this.ph.step = 300, this.ph.delay = 10, this.ph.mode = "display", this.ph.layers = !1, this.Jg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3282
3281
  for (var i = e.lines[n], a = 0; a < i.length; a++) {
3283
3282
  var o = i[a];
3284
3283
  o.part.line = n, o.part.top = t + l.rowMarginTop, o.part.right = o.part.left + o.part.width;
3285
3284
  }
3286
3285
  t += l.eventHeight;
3287
- } }, this.Ve = null, this.na = function (e) { if (!l.Q) {
3288
- var t = this.nh.step;
3289
- "display" === this.nh.mode ? this.divEvents.style.display = "none" : "visibility" === this.nh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3290
- var n = "Progressive" === this.dynamicEventRendering, i = this.ne(), a = i.pixels.top, o = i.pixels.bottom;
3291
- l.rowlist.filter(function (e) { var t = e.top - l.dynamicEventRenderingMargin, i = t + e.height + 2 * l.dynamicEventRenderingMargin; return !n || !(o <= t || a >= i); }).forEach(function (n) { l.Hg(n); for (var i = 0; i < n.lines.length; i++)
3286
+ } }, this.Xe = null, this.na = function (e) { if (!l.Q) {
3287
+ var t = this.ph.step;
3288
+ "display" === this.ph.mode ? this.divEvents.style.display = "none" : "visibility" === this.ph.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3289
+ var n = "Progressive" === this.dynamicEventRendering, i = this.pe(), a = i.pixels.top, o = i.pixels.bottom;
3290
+ l.rowlist.filter(function (e) { var t = e.top - l.dynamicEventRenderingMargin, i = t + e.height + 2 * l.dynamicEventRenderingMargin; return !n || !(o <= t || a >= i); }).forEach(function (n) { l.Jg(n); for (var i = 0; i < n.lines.length; i++)
3292
3291
  for (var a = n.lines[i], o = 0; o < a.length; o++) {
3293
- var r = a[o], s = l.Ta(r);
3292
+ var r = a[o], s = l.Va(r);
3294
3293
  if (e && s && (t--, t <= 0))
3295
- return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Ve = setTimeout(function () { l.na(e); }, l.nh.delay));
3296
- } }), this.divEvents.style.display = "", this.se();
3297
- } }, this.of = function (e) { var t = l.rowlist[e]; this.Hg(t); for (var n = 0; n < t.lines.length; n++)
3294
+ return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Xe = setTimeout(function () { l.na(e); }, l.ph.delay));
3295
+ } }), this.divEvents.style.display = "", this.ve();
3296
+ } }, this.qf = function (e) { var t = l.rowlist[e]; this.Jg(t); for (var n = 0; n < t.lines.length; n++)
3298
3297
  for (var i = t.lines[n], a = 0; a < i.length; a++) {
3299
3298
  var o = i[a];
3300
- this.Ta(o);
3299
+ this.Va(o);
3301
3300
  } }, this.Y = function () { if (this.elements.events)
3302
3301
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
3303
3302
  var n = this.elements.events[t];
3304
- this.Na(n);
3305
- } this.elements.events = []; }, this.nf = function (e) { if (this.elements.events) {
3303
+ this.Pa(n);
3304
+ } this.elements.events = []; }, this.pf = function (e) { if (this.elements.events) {
3306
3305
  for (var t = this.elements.events.length, n = [], i = 0; i < t; i++) {
3307
3306
  var a = this.elements.events[i];
3308
- a.event.part.dayIndex === e && (this.Na(a), n.push(i));
3307
+ a.event.part.dayIndex === e && (this.Pa(a), n.push(i));
3309
3308
  }
3310
3309
  for (var i = n.length - 1; i >= 0; i--)
3311
3310
  this.elements.events.splice(n[i], 1);
3312
- } }, this.Na = function (e) { 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) {
3311
+ } }, this.Pa = function (e) { 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.qh = function () { if ("Progressive" === this.dynamicEventRendering) {
3313
3312
  if (l.dynamicEventRenderingCacheSweeping) {
3314
3313
  var e = l.dynamicEventRenderingCacheSize || 0;
3315
3314
  this.divEvents.style.display = "none";
3316
3315
  for (var t = [], n = 0, i = this.elements.events.length, a = i - 1; a >= 0; a--) {
3317
3316
  var o = this.elements.events[a];
3318
- this.ph(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Na(o), n++) : t.unshift(o);
3317
+ this.rh(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Pa(o), n++) : t.unshift(o);
3319
3318
  }
3320
3319
  this.elements.events = t, this.divEvents.style.display = "";
3321
3320
  }
3322
- } }, this.qh = function (e) { for (var t = this.ne(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
3321
+ } }, this.uh = function (e) { for (var t = this.pe(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
3323
3322
  var a = this.elements.cells[i];
3324
- t.xStart < a.coords.x && a.coords.x <= t.xEnd && t.yStart < a.coords.y && a.coords.y <= t.yEnd || (e > 0 ? e-- : this.fb(a));
3325
- } }, this.fb = function (e) { if (e && e.coords) {
3323
+ t.xStart < a.coords.x && a.coords.x <= t.xEnd && t.yStart < a.coords.y && a.coords.y <= t.yEnd || (e > 0 ? e-- : this.hb(a));
3324
+ } }, this.hb = function (e) { if (e && e.coords) {
3326
3325
  var t = e.coords.x, n = e.coords.y;
3327
- DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.xb.cells[t + "_" + n] = null;
3328
- } }, this.rh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3326
+ DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.zb.cells[t + "_" + n] = null;
3327
+ } }, this.vh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3329
3328
  return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, i = 0; i < this.rowlist.length; i++) {
3330
3329
  var a = this.rowlist[i], o = a.top, r = a.top + a.height;
3331
3330
  if (!e || !(n <= o || t >= r))
3332
3331
  for (var s = 0; s < a.lines.length; s++)
3333
3332
  for (var l = a.lines[s], d = 0; d < l.length; d++) {
3334
3333
  var c = l[d];
3335
- if (this.uh(c))
3334
+ if (this.wh(c))
3336
3335
  return !0;
3337
3336
  }
3338
- } return !1; }, this.uh = function (e) { if (e.rendered)
3339
- return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, i = n + this.nav.scroll.clientWidth, a = e.part.left, o = e.part.left + e.part.width; return !t || !(i <= a || n >= o); }, this.ph = function (e) { if (!e.rendered)
3340
- return !0; var t = this.ne(), n = t.pixels.top, i = t.pixels.bottom, a = t.pixels.left - this.dynamicEventRenderingMargin, o = t.pixels.right + this.dynamicEventRenderingMargin, r = e.part.left, s = e.part.right, d = e.part.top, c = e.part.top + l.eventHeight; return o <= r || a >= s || (i <= d || n >= c); }, this.Ta = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3341
- return !1; var i = "Progressive" === this.dynamicEventRendering, a = e.part.dayIndex, o = l.divEvents, s = l.rowlist, d = s[a], c = d.top, u = this.ne(), f = u.pixels.left - this.dynamicEventRenderingMargin, v = u.pixels.right + this.dynamicEventRenderingMargin, p = u.pixels.top, m = u.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + c, w = b + l.eventHeight, x = v <= g || f >= y, D = m <= b || p >= w; if (!n && i && (x || D))
3342
- return !1; var _ = e.part.width, C = l.eventHeight, k = e.cache || e.data; _ = DayPilot.Util.atLeast(0, _), C = DayPilot.Util.atLeast(0, C); var P = r(); P.style.position = "absolute", P.style.left = e.part.left + "px", P.style.top = c + e.part.top + "px", P.style.width = _ + "px", P.style.height = C + "px", l.eventTextWrappingEnabled || (P.style.whiteSpace = "nowrap"), P.style.overflow = "hidden", P.className = this.L("_event"), k.cssClass && DayPilot.Util.addClass(P, k.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(P, this.L("_event_line" + e.part.line)), this.showToolTip && (P.title = e.client.toolTip() || ""), P.onmousemove = this.vh, P.onmousedown = this.wh, P.onmouseup = this.xh, P.ontouchstart = h.yh, P.ontouchmove = h.zh, P.ontouchend = h.Ah, e.client.clickEnabled() && (P.onclick = this.Oe), "undefined" != typeof k.ariaLabel ? P.setAttribute("aria-label", k.ariaLabel) : P.setAttribute("aria-label", k.text), P.setAttribute("tabindex", "-1"); var S = r(); S.className = l.L("_event_inner"), k.backColor && (S.style.background = k.backColor), k.fontColor && (S.style.color = k.fontColor), "darker" === k.borderColor && k.backColor ? S.style.borderColor = DayPilot.ColorUtil.darker(k.backColor, 2) : S.style.borderColor = k.borderColor, k.backImage && (S.style.backgroundImage = "url(" + k.backImage + ")", k.backRepeat && (S.style.backgroundRepeat = k.backRepeat)), P.appendChild(S); var M = e.start().getTime() === e.part.start.getTime(), T = e.rawend().getTime() === e.part.end.getTime(); if (M || DayPilot.Util.addClass(P, this.L("_event_continueleft")), T || DayPilot.Util.addClass(P, this.L("_event_continueright")), e.client.barVisible() && _ > 0) {
3337
+ } return !1; }, this.wh = function (e) { if (e.rendered)
3338
+ return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, i = n + this.nav.scroll.clientWidth, a = e.part.left, o = e.part.left + e.part.width; return !t || !(i <= a || n >= o); }, this.rh = function (e) { if (!e.rendered)
3339
+ return !0; var t = this.pe(), n = t.pixels.top, i = t.pixels.bottom, a = t.pixels.left - this.dynamicEventRenderingMargin, o = t.pixels.right + this.dynamicEventRenderingMargin, r = e.part.left, s = e.part.right, d = e.part.top, c = e.part.top + l.eventHeight; return o <= r || a >= s || (i <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3340
+ return !1; var i = "Progressive" === this.dynamicEventRendering, a = e.part.dayIndex, o = l.divEvents, s = l.rowlist, d = s[a], c = d.top, u = this.pe(), f = u.pixels.left - this.dynamicEventRenderingMargin, v = u.pixels.right + this.dynamicEventRenderingMargin, p = u.pixels.top, m = u.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + c, w = b + l.eventHeight, D = v <= g || f >= y, x = m <= b || p >= w; if (!n && i && (D || x))
3341
+ return !1; var _ = e.part.width, C = l.eventHeight, k = e.cache || e.data; _ = DayPilot.Util.atLeast(0, _), C = DayPilot.Util.atLeast(0, C); var P = r(); P.style.position = "absolute", P.style.left = e.part.left + "px", P.style.top = c + e.part.top + "px", P.style.width = _ + "px", P.style.height = C + "px", l.eventTextWrappingEnabled || (P.style.whiteSpace = "nowrap"), P.style.overflow = "hidden", P.className = this.L("_event"), k.cssClass && DayPilot.Util.addClass(P, k.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(P, this.L("_event_line" + e.part.line)), this.showToolTip && (P.title = e.client.toolTip() || ""), P.onmousemove = this.xh, P.onmousedown = this.yh, P.onmouseup = this.zh, P.ontouchstart = h.Ah, P.ontouchmove = h.Bh, P.ontouchend = h.Ch, e.client.clickEnabled() && (P.onclick = this.Qe), "undefined" != typeof k.ariaLabel ? P.setAttribute("aria-label", k.ariaLabel) : P.setAttribute("aria-label", k.text), P.setAttribute("tabindex", "-1"); var S = r(); S.className = l.L("_event_inner"), k.backColor && (S.style.background = k.backColor), k.fontColor && (S.style.color = k.fontColor), "darker" === k.borderColor && k.backColor ? S.style.borderColor = DayPilot.ColorUtil.darker(k.backColor, 2) : S.style.borderColor = k.borderColor, k.backImage && (S.style.backgroundImage = "url(" + k.backImage + ")", k.backRepeat && (S.style.backgroundRepeat = k.backRepeat)), P.appendChild(S); var M = e.start().getTime() === e.part.start.getTime(), T = e.rawend().getTime() === e.part.end.getTime(); if (M || DayPilot.Util.addClass(P, this.L("_event_continueleft")), T || DayPilot.Util.addClass(P, this.L("_event_continueright")), e.client.barVisible() && _ > 0) {
3343
3342
  var A = 100 * e.part.barLeft / _, E = Math.ceil(100 * e.part.barWidth / _), H = r();
3344
3343
  H.className = this.L("_event_bar"), H.style.position = "absolute", k.barBackColor && (H.style.backgroundColor = k.barBackColor);
3345
3344
  var N = r();
@@ -3347,95 +3346,95 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3347
3346
  } P.row = a, P.event = e, S.innerHTML = e.client.innerHTML(); var I = []; return function () { if ("Disabled" !== l.eventDeleteHandling && !k.deleteDisabled) {
3348
3347
  var e = l.durationBarVisible ? l.durationBarHeight : 0;
3349
3348
  I.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: l.L("_event_delete"), onClick: function (e) { l.ya(e.source); } });
3350
- } }(), k.areas && (I = I.concat(k.areas)), DayPilot.Areas.attach(P, e, { areas: I }), this.elements.events.push(P), o.appendChild(P), e.rendered = !0, !0; }, this.$a = function (e, t) { return l.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.pf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3349
+ } }(), k.areas && (I = I.concat(k.areas)), DayPilot.Areas.attach(P, e, { areas: I }), this.elements.events.push(P), o.appendChild(P), e.rendered = !0, !0; }, this.ab = function (e, t) { return l.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.rf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3351
3350
  var t = this.elements.events[e], n = t.event, i = n.part.dayIndex, a = l.rowlist[i], o = a.top, r = o + n.part.top, s = a.height, d = l.eventHeight, c = !1;
3352
3351
  n.part.top + d > s && (d = Math.max(0, s - n.part.top), c = !0), t.style.top = r + "px", t.style.height = d + "px";
3353
- } }, this.Bh = function (e) { if (!e)
3352
+ } }, this.Dh = function (e) { if (!e)
3354
3353
  return null; for (var t = 0; t < l.elements.events.length; t++) {
3355
3354
  var n = l.elements.events[t];
3356
3355
  if (n.event === e || n.event.data === e.data)
3357
3356
  return n;
3358
- } return null; }, this.Mf = function (e) { var t = l.events.Rf(e.data); if (!t)
3359
- return null; var n = l.rowlist[t.part.dayIndex]; return l.Hg(n), l.Ta(t, { "forced": !0 }), l.Bh(t); }, this.vh = function (e) { for (var t = this; t && !t.event;)
3360
- t = t.parentNode; t.event; l.Ch(t, e), l.Se(e); }, this.Qe = {}, this.wh = function (e) { l.Se(e); var t = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), t.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (n.Pe = !0, n.gg = this, n.kg = this.event, n.Dh = DayPilot.mc(e), o().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && l.Eh(this, e)); }, this.xh = function (e) { DayPilot.Util.mouseButton(e).right && l.xa.call(this, e); }, this.Eh = function (e, t) { var n = l.Qe; l.Se(t), n.Fh = !0, n.Qe = e, n.ng = e.event, n.Dh = DayPilot.mc(t), n.Gh = DayPilot.mo3(e, t).x, n.fg = l.getDate(l.coords.x, !0); }, this.Hh = {};
3361
- var h = l.Hh;
3362
- "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.If = [], h.yh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3363
- t.stopPropagation(), h.Ih(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3357
+ } return null; }, this.Of = function (e) { var t = l.events.Tf(e.data); if (!t)
3358
+ return null; var n = l.rowlist[t.part.dayIndex]; return l.Jg(n), l.Va(t, { "forced": !0 }), l.Dh(t); }, this.xh = function (e) { for (var t = this; t && !t.event;)
3359
+ t = t.parentNode; t.event; l.Eh(t, e), l.Ue(e); }, this.Se = {}, this.yh = function (e) { l.Ue(e); var t = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), t.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (n.Re = !0, n.ig = this, n.mg = this.event, n.Fh = DayPilot.mc(e), o().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && l.Gh(this, e)); }, this.zh = function (e) { DayPilot.Util.mouseButton(e).right && l.xa.call(this, e); }, this.Gh = function (e, t) { var n = l.Se; l.Ue(t), n.Hh = !0, n.Se = e, n.pg = e.event, n.Fh = DayPilot.mc(t), n.Ih = DayPilot.mo3(e, t).x, n.hg = l.getDate(l.coords.x, !0); }, this.Jh = {};
3360
+ var h = l.Jh;
3361
+ "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.Kf = [], h.Ah = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3362
+ t.stopPropagation(), h.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3364
3363
  var n = this;
3365
- l.coords = h.Jh(t);
3364
+ l.coords = h.Lh(t);
3366
3365
  var i = l.tapAndHoldTimeout;
3367
- h.If.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var i = n.event; switch (l.eventTapAndHoldHandling) {
3366
+ h.Kf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var i = n.event; switch (l.eventTapAndHoldHandling) {
3368
3367
  case "Move": if (i.client.moveEnabled()) {
3369
3368
  var a = e(t);
3370
- h.Eh(n, a);
3369
+ h.Gh(n, a);
3371
3370
  }
3372
3371
  } }, i));
3373
- } }, h.zh = function (e) { h.Ih(), DayPilot.Global.touch.start = !1; }, h.Ah = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3374
- if (h.Ih(), DayPilot.Global.touch.start) {
3372
+ } }, h.Bh = function (e) { h.Kh(), DayPilot.Global.touch.start = !1; }, h.Ch = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3373
+ if (h.Kh(), DayPilot.Global.touch.start) {
3375
3374
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3376
3375
  var t = this;
3377
- setTimeout(function () { l.Re(t, e); });
3376
+ setTimeout(function () { l.Te(t, e); });
3378
3377
  }
3379
3378
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3380
- } }, h.Og = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
3381
- h.Ih(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3379
+ } }, h.Qg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
3380
+ h.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3382
3381
  var t = l.tapAndHoldTimeout;
3383
- h.If.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), l.coords = h.Jh(e), h.Kh = l.Lh(); }, t));
3384
- l.coords = h.Jh(e);
3385
- } }, h.Pg = function (e) { if (h.Ih(), DayPilot.Global.touch.start = !1, n.gg)
3386
- return e.preventDefault(), void h.Mh(); if (DayPilot.Global.touch.active) {
3387
- if (e.preventDefault(), l.coords = h.Jh(e), n.Qe)
3388
- return void h.Nh();
3389
- if (h.Kh) {
3390
- var t = h.Kh;
3391
- t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.Af(t);
3382
+ h.Kf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), l.coords = h.Lh(e), h.Mh = l.Nh(); }, t));
3383
+ l.coords = h.Lh(e);
3384
+ } }, h.Rg = function (e) { if (h.Kh(), DayPilot.Global.touch.start = !1, n.ig)
3385
+ return e.preventDefault(), void h.Oh(); if (DayPilot.Global.touch.active) {
3386
+ if (e.preventDefault(), l.coords = h.Lh(e), n.Se)
3387
+ return void h.Ph();
3388
+ if (h.Mh) {
3389
+ var t = h.Mh;
3390
+ t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.Cf(t);
3392
3391
  }
3393
- } }, h.debug = function (e) { }, h.Qg = function (e) { h.Ih(); if (DayPilot.Global.touch.active) {
3394
- if (n.Qe) {
3392
+ } }, h.debug = function (e) { }, h.Sg = function (e) { h.Kh(); if (DayPilot.Global.touch.active) {
3393
+ if (n.Se) {
3395
3394
  e.preventDefault();
3396
- var t = n.ng;
3397
- if (l !== n.og.calendar)
3395
+ var t = n.pg;
3396
+ if (l !== n.qg.calendar)
3398
3397
  return;
3399
- var i = n.og.start, a = n.og.end, r = n.og.row.id;
3400
- DayPilot.Util.removeClass(n.Qe, l.L("_event_moving_source")), DayPilot.de(n.og), n.og.calendar = null, o().style.cursor = "", n.Qe = null, n.ng = null, n.og = null, l.M(t, i, a, r);
3398
+ var i = n.qg.start, a = n.qg.end, r = n.qg.row.id;
3399
+ DayPilot.Util.removeClass(n.Se, l.L("_event_moving_source")), DayPilot.de(n.qg), n.qg.calendar = null, o().style.cursor = "", n.Se = null, n.pg = null, n.qg = null, l.M(t, i, a, r);
3401
3400
  }
3402
- if (h.Kh) {
3403
- var s = h.Kh;
3404
- h.Kh = null;
3401
+ if (h.Mh) {
3402
+ var s = h.Mh;
3403
+ h.Mh = null;
3405
3404
  var d = l.elements.range2;
3406
- d && d.overlapping ? l.clearSelection() : l.wf(s);
3405
+ d && d.overlapping ? l.clearSelection() : l.yf(s);
3407
3406
  }
3408
3407
  }
3409
3408
  else if (DayPilot.Global.touch.start) {
3410
3409
  if (l.coords.x < l.getScrollX())
3411
3410
  return;
3412
- var s = l.Lh();
3413
- l.Af(s);
3411
+ var s = l.Nh();
3412
+ l.Cf(s);
3414
3413
  var d = l.elements.range2;
3415
- d && d.overlapping ? l.clearSelection() : l.wf(s);
3416
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, h.Ih = function () { for (var e = 0; e < h.If.length; e++)
3417
- clearTimeout(h.If[e]); h.If = []; }, h.Jh = function (e) { function t(e, t, n) { var i = DayPilot.abs(n); return { x: e - i.x, y: t - i.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = l.je, i = e.touches ? e.touches[0] : e; return t(i.pageX, i.pageY, n); }, h.Eh = function (e, t) { n.Qe = e, n.ng = e.event, n.Dh = t; var i = DayPilot.abs(e); n.Gh = t.x - i.x, n.fg = l.getDate(l.coords.x, !0), n.og = l.ba(e), l.mg(); }, h.Mh = function () { if (!n.jg) {
3418
- var e = n.gg;
3419
- n.jg = l.ba(e);
3420
- } l.lg(); }, h.Nh = function () { if (!n.og) {
3421
- var e = n.Qe;
3422
- n.og = l.ba(e);
3423
- } n.og.calendar.mg(); }, this.Ch = function (e, t) { var i = this.eventResizeMargin, a = e; if ("undefined" != typeof n) {
3414
+ d && d.overlapping ? l.clearSelection() : l.yf(s);
3415
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, h.Kh = function () { for (var e = 0; e < h.Kf.length; e++)
3416
+ clearTimeout(h.Kf[e]); h.Kf = []; }, h.Lh = function (e) { function t(e, t, n) { var i = DayPilot.abs(n); return { x: e - i.x, y: t - i.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = l.le, i = e.touches ? e.touches[0] : e; return t(i.pageX, i.pageY, n); }, h.Gh = function (e, t) { n.Se = e, n.pg = e.event, n.Fh = t; var i = DayPilot.abs(e); n.Ih = t.x - i.x, n.hg = l.getDate(l.coords.x, !0), n.qg = l.ba(e), l.og(); }, h.Oh = function () { if (!n.lg) {
3417
+ var e = n.ig;
3418
+ n.lg = l.ba(e);
3419
+ } l.ng(); }, h.Ph = function () { if (!n.qg) {
3420
+ var e = n.Se;
3421
+ n.qg = l.ba(e);
3422
+ } n.qg.calendar.og(); }, this.Eh = function (e, t) { var i = this.eventResizeMargin, a = e; if ("undefined" != typeof n) {
3424
3423
  var o = DayPilot.mo3(e, t);
3425
- if (o && (l.eventOffset = o, !n.gg && !n.Qe)) {
3424
+ if (o && (l.eventOffset = o, !n.ig && !n.Se)) {
3426
3425
  var r = a.event.part.start.toString() === a.event.start().toString(), s = a.event.part.end.toString() === a.event.rawend().toString();
3427
- o.x <= i && a.event.client.resizeEnabled() ? r ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - o.x <= i && a.event.client.resizeEnabled() ? s ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : n.gg || n.Qe || (a.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3426
+ o.x <= i && a.event.client.resizeEnabled() ? r ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - o.x <= i && a.event.client.resizeEnabled() ? s ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : n.ig || n.Se || (a.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3428
3427
  }
3429
- } }, this.Bf = function () { var e = l.Ne(); return l.days * (1440 / e); }, this.xf = function (e) { var e = e || n.Kh || l.zf; if (!e)
3428
+ } }, this.Df = function () { var e = l.Pe(); return l.days * (1440 / e); }, this.zf = function (e) { var e = e || n.Mh || l.Bf; if (!e)
3430
3429
  return null; var t = l.rowlist[e.start.y]; if (!t)
3431
- return null; var i, a, o = e, r = o.end.time > o.start.time, s = t.id, d = r ? o.start.x : o.end.x, c = r ? o.end.x : o.start.x, u = l.snapToGrid; u ? (i = l.Le(d).start, a = l.Le(c).end) : r ? (i = o.start.time, a = o.end.time) : (i = o.end.time, a = o.start.time); var h = new DayPilot.Selection(i, a, s, l); return h.allowed = !e.div || !e.div.overlapping, h; }, this.$e = function () { this.xb.timeHeader = {}, l.elements.timeHeader.length > 0 && (l.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3430
+ return null; var i, a, o = e, r = o.end.time > o.start.time, s = t.id, d = r ? o.start.x : o.end.x, c = r ? o.end.x : o.start.x, u = l.snapToGrid; u ? (i = l.Ne(d).start, a = l.Ne(c).end) : r ? (i = o.start.time, a = o.end.time) : (i = o.end.time, a = o.start.time); var h = new DayPilot.Selection(i, a, s, l); return h.allowed = !e.div || !e.div.overlapping, h; }, this.af = function () { this.zb.timeHeader = {}, l.elements.timeHeader.length > 0 && (l.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3432
3431
  for (var n = this.timeHeader[t], i = 0; i < n.length; i++)
3433
- this.Oh(i, t); var a = this.divNorth; 1 === a.childNodes.length ? a.replaceChild(e, a.childNodes[0]) : (a.innerHTML = "", a.appendChild(e)); var o = this.Ce(); a.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Je = function (e, t) { var n = null, i = this.ca.Ie(), t = t || this.cellGroupBy, a = e.start; switch (t) {
3432
+ this.Qh(i, t); var a = this.divNorth; 1 === a.childNodes.length ? a.replaceChild(e, a.childNodes[0]) : (a.innerHTML = "", a.appendChild(e)); var o = this.Ee(); a.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Le = function (e, t) { var n = null, i = this.ca.Ke(), t = t || this.cellGroupBy, a = e.start; switch (t) {
3434
3433
  case "Minute":
3435
3434
  n = a.toString("m");
3436
3435
  break;
3437
3436
  case "Hour":
3438
- n = "Clock12Hours" === l.ca.Ph() ? a.toString("h tt", i) : a.toString("H", i);
3437
+ n = "Clock12Hours" === l.ca.Rh() ? a.toString("h tt", i) : a.toString("H", i);
3439
3438
  break;
3440
3439
  case "Day":
3441
3440
  n = a.toString(i.datePattern);
@@ -3457,10 +3456,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3457
3456
  break;
3458
3457
  case "Cell":
3459
3458
  var o = (e.end.ticks - e.start.ticks) / 6e4;
3460
- n = this.Qh(a, o);
3459
+ n = this.Sh(a, o);
3461
3460
  break;
3462
3461
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3463
- } return n; }, this.Qh = function (e, t) { var n = this.ca.Ie(), t = t || this.cellDuration; return t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === l.ca.Ph() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === f.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.He = function (e, t, n) { var i, a = l.startDate.addDays(l.days); t = t || this.cellGroupBy; var o = 60; switch (t) {
3462
+ } return n; }, this.Sh = function (e, t) { var n = this.ca.Ke(), t = t || this.cellDuration; return t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === l.ca.Rh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === f.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Je = function (e, t, n) { var i, a = l.startDate.addDays(l.days); t = t || this.cellGroupBy; var o = 60; switch (t) {
3464
3463
  case "Minute":
3465
3464
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), i = e.addMinutes(1);
3466
3465
  break;
@@ -3494,53 +3493,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3494
3493
  i = a;
3495
3494
  break;
3496
3495
  case "Cell":
3497
- var s = this.Me(e);
3496
+ var s = this.Oe(e);
3498
3497
  s.current && (i = s.current.end);
3499
3498
  break;
3500
3499
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3501
- } return i.getTime() > a.getTime() && (i = a), i; }, this.Oh = function (e, t) { var n = this.nav.timeHeader, i = this.timeHeader[t][e], a = t < this.timeHeader.length - 1, o = i.left, s = i.width, d = t * l.headerHeight, c = l.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = s + "px", u.style.height = c + "px", i.toolTip && (u.title = i.toolTip), u.setAttribute("aria-hidden", "true"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = i.start, u.cell.end = i.end, u.cell.level = t, u.cell.th = i, u.onclick = this.Bg, u.oncontextmenu = this.Cg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = l.$a(i.text, i.innerHTML), i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); a && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, l.L("_timeheader_cell")), DayPilot.Util.addClass(h, l.L("_timeheader_cell_inner")), u.appendChild(h), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.bg = function () { l.rowlist.forEach(function (e) { var t = e.getHeight() + l.rowMarginTop + l.rowMarginBottom; e.height !== t && (l.mf = !0), e.height = t; }), l.mf && (l.xb.drawArea = null); }, this._e = function () { l.rowlist.forEach(function (e) { var t = l.divHeader; if (t) {
3500
+ } return i.getTime() > a.getTime() && (i = a), i; }, this.Qh = function (e, t) { var n = this.nav.timeHeader, i = this.timeHeader[t][e], a = t < this.timeHeader.length - 1, o = i.left, s = i.width, d = t * l.headerHeight, c = l.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = s + "px", u.style.height = c + "px", i.toolTip && (u.title = i.toolTip), u.setAttribute("aria-hidden", "true"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = i.start, u.cell.end = i.end, u.cell.level = t, u.cell.th = i, u.onclick = this.Dg, u.oncontextmenu = this.Eg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = l.ab(i.text, i.innerHTML), i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); a && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, l.L("_timeheader_cell")), DayPilot.Util.addClass(h, l.L("_timeheader_cell_inner")), u.appendChild(h), this.zb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.dg = function () { l.rowlist.forEach(function (e) { var t = e.getHeight() + l.rowMarginTop + l.rowMarginBottom; e.height !== t && (l.of = !0), e.height = t; }), l.of && (l.zb.drawArea = null); }, this.bf = function () { l.rowlist.forEach(function (e) { var t = l.divHeader; if (t) {
3502
3501
  var n = e.index;
3503
3502
  if (t.rows[n]) {
3504
3503
  var i = t.rows[n];
3505
- l.sg && (i.style.top = e.top + "px");
3504
+ l.ug && (i.style.top = e.top + "px");
3506
3505
  var a = e.height;
3507
3506
  i && i.firstChild && parseInt(i.firstChild.style.height, 10) !== a && (i.firstChild.style.height = a + "px");
3508
3507
  }
3509
- } }), l.sg && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.fe + "px"); }, this.ch = function (e) { if (!DayPilot.Global.touch.start && !DayPilot.Global.touch.active) {
3510
- n.Rh, 1, l.Se(e);
3508
+ } }), l.ug && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.he + "px"); }, this.eh = function (e) { if (!DayPilot.Global.touch.start && !DayPilot.Global.touch.active) {
3509
+ n.Th, 1, l.Ue(e);
3511
3510
  var t = DayPilot.Util.mouseButton(e);
3512
- if (l.Sh())
3511
+ if (l.Uh())
3513
3512
  return !1;
3514
3513
  if (t.middle || t.right)
3515
3514
  return !1;
3516
- if (l.Th(l.coords))
3515
+ if (l.Vh(l.coords))
3517
3516
  return !1;
3518
3517
  var i = t.left ? "left" : t.right ? "right" : t.middle ? "middle" : "unknown";
3519
- return l.Uh = i, n.Kh = l.Lh(), n.Kh && (n.Vh = l), !1;
3520
- } }, this.Lh = function () { var e = {}, t = l.Ke(l.coords.x).x, n = l.getDate(l.coords.x, !0); return e.start = { y: l.Hf(l.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = l, l.Af(e), e; }, this.eh = function (e) { if (l.Qe = {}, l.zf) {
3518
+ return l.Wh = i, n.Mh = l.Nh(), n.Mh && (n.Xh = l), !1;
3519
+ } }, this.Nh = function () { var e = {}, t = l.Me(l.coords.x).x, n = l.getDate(l.coords.x, !0); return e.start = { y: l.Jf(l.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = l, l.Cf(e), e; }, this.gh = function (e) { if (l.Se = {}, l.Bf) {
3521
3520
  if (DayPilot.Util.mouseButton(e).left) {
3522
- var t = l.zf;
3523
- if (l.Th(l.coords)) {
3524
- var i = function (e) { return function () { n.Rh = null; var t = l.xf(e); if (t) {
3521
+ var t = l.Bf;
3522
+ if (l.Vh(l.coords)) {
3523
+ var i = function (e) { return function () { n.Th = null; var t = l.zf(e); if (t) {
3525
3524
  var i = {};
3526
3525
  i.start = t.start, i.end = t.end, i.resource = t.resource, i.preventDefault = function () { i.preventDefault.value = !0; }, "function" == typeof l.onTimeRangeClick && l.onTimeRangeClick(i), i.preventDefault.value || "function" == typeof l.onTimeRangeClicked && l.onTimeRangeClicked(i);
3527
3526
  } }; };
3528
3527
  "Disabled" !== l.timeRangeClickHandling && i(t)();
3529
3528
  }
3530
3529
  }
3531
- } }, this.Sh = function () { return !!(n.gg || n.Qe || n.Kh) || !!l.Qe.Fh; }, this.dragInProgress = function () { return l.Sh(); }, this.Se = function (e) { var t = DayPilot.mo3(l.je, e); t = t || {}, t.stamp = t.x + "_" + t.y, l.coords && l.coords.stamp === t.stamp || (l.coords = t); }, this.dh = function (e) { if (!DayPilot.Global.touch.active) {
3530
+ } }, this.Uh = function () { return !!(n.ig || n.Se || n.Mh) || !!l.Se.Hh; }, this.dragInProgress = function () { return l.Uh(); }, this.Ue = function (e) { var t = DayPilot.mo3(l.le, e); t = t || {}, t.stamp = t.x + "_" + t.y, l.coords && l.coords.stamp === t.stamp || (l.coords = t); }, this.fh = function (e) { if (!DayPilot.Global.touch.active) {
3532
3531
  var t = DayPilot.mc(e);
3533
- if (l.Se(e), l.Qe.Fh) {
3534
- DayPilot.distance(l.Qe.Dh, t) > 2 && (DayPilot.Util.copyProps(l.Qe, n), o().style.cursor = "move", l.Qe = {});
3532
+ if (l.Ue(e), l.Se.Hh) {
3533
+ DayPilot.distance(l.Se.Fh, t) > 2 && (DayPilot.Util.copyProps(l.Se, n), o().style.cursor = "move", l.Se = {});
3535
3534
  }
3536
- n.gg && n.kg.calendar === l ? (n.gg.event || (n.gg.event = n.kg), l.Wh()) : n.ng ? l.Xh() : n.Kh && n.Kh.calendar === l && (n.Kh.moved = !0, l.Yh());
3537
- } }, this.Yh = function () { var e = n.Kh, t = l.Ke(l.coords.x).x, i = l.getDate(l.coords.x, !0); e.end = { x: t, "time": i }, l.Af(e); }, this.Wh = function () { n.jg || (n.jg = l.ba(n.gg)), l.lg(); }, this.Xh = function () { if (!n.og) {
3538
- DayPilot.Util.addClass(n.Qe, l.L("_event_moving_source"));
3539
- var e = n.ng;
3540
- n.og = l.ba(e);
3541
- } l.mg(); }, this.fh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) { var t = l.zf; if (!t || !t.start || !t.end)
3542
- return !1; var n = this.Kf(t.start.y), i = t.start.x < t.end.x, a = (i ? t.start.x : t.end.x) * this.cellWidth, o = (i ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, r = n.top, s = n.bottom; return e.x >= a && e.x <= o && e.y >= r && e.y <= s; }, this.Af = function (e) { function t(e) { var t, n, o, s, d = e.end.time > e.start.time, c = e.start.y, u = e.start.time && e.end.time; if (i || !u) {
3543
- var h = d ? e.start.x : e.end.x, f = d ? e.end.x : e.start.x, v = l.Le(h), p = l.Le(f);
3535
+ n.ig && n.mg.calendar === l ? (n.ig.event || (n.ig.event = n.mg), l.Yh()) : n.pg ? l.Zh() : n.Mh && n.Mh.calendar === l && (n.Mh.moved = !0, l.$h());
3536
+ } }, this.$h = function () { var e = n.Mh, t = l.Me(l.coords.x).x, i = l.getDate(l.coords.x, !0); e.end = { x: t, "time": i }, l.Cf(e); }, this.Yh = function () { n.lg || (n.lg = l.ba(n.ig)), l.ng(); }, this.Zh = function () { if (!n.qg) {
3537
+ DayPilot.Util.addClass(n.Se, l.L("_event_moving_source"));
3538
+ var e = n.pg;
3539
+ n.qg = l.ba(e);
3540
+ } l.og(); }, this.hh = function (e) { return e.cancelBubble = !0, !1; }, this.Vh = function (e) { var t = l.Bf; if (!t || !t.start || !t.end)
3541
+ return !1; var n = this.Mf(t.start.y), i = t.start.x < t.end.x, a = (i ? t.start.x : t.end.x) * this.cellWidth, o = (i ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, r = n.top, s = n.bottom; return e.x >= a && e.x <= o && e.y >= r && e.y <= s; }, this.Cf = function (e) { function t(e) { var t, n, o, s, d = e.end.time > e.start.time, c = e.start.y, u = e.start.time && e.end.time; if (i || !u) {
3542
+ var h = d ? e.start.x : e.end.x, f = d ? e.end.x : e.start.x, v = l.Ne(h), p = l.Ne(f);
3544
3543
  t = v.left, n = p.left + p.width;
3545
3544
  }
3546
3545
  else
@@ -3548,65 +3547,65 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3548
3547
  g = r(), g.style.position = "absolute";
3549
3548
  var y = r();
3550
3549
  y.className = l.L("_shadow_inner"), g.appendChild(y), l.divShadow.appendChild(g);
3551
- } return g.className = l.L("_shadow"), g.firstChild.innerHTML = "", g.style.left = t + "px", g.style.top = a[c].top + "px", g.style.width = m + "px", g.style.height = a[c].height - 1 + "px", g.calendar = l, l.elements.range2 = g, g; } if (e = e || n.Kh) {
3550
+ } return g.className = l.L("_shadow"), g.firstChild.innerHTML = "", g.style.left = t + "px", g.style.top = a[c].top + "px", g.style.width = m + "px", g.style.height = a[c].height - 1 + "px", g.calendar = l, l.elements.range2 = g, g; } if (e = e || n.Mh) {
3552
3551
  var i = l.snapToGrid, a = l.rowlist;
3553
3552
  t(e);
3554
- } }, 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.If = {}, this.If.na = null, this.If.drawCells = null, this.If.drawRows = null, this.If.click = null, this.If.resClick = [], this.If.updateFloats = null, this.ff = function () { if (!l.Q) {
3555
- l.df();
3553
+ } }, 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.Kf = {}, this.Kf.na = null, this.Kf.drawCells = null, this.Kf.drawRows = null, this.Kf.click = null, this.Kf.resClick = [], this.Kf.updateFloats = null, this.hf = function () { if (!l.Q) {
3554
+ l.ff();
3556
3555
  var e = l.nav.scroll;
3557
- if (l.kh = e.scrollLeft, l.lh = e.scrollTop, l.mh = e.clientWidth, l.divTimeScroll && (l.divTimeScroll.scrollLeft = l.kh), t && n.Xg ? i() : l.divResScroll.scrollTop = l.lh, l.progressiveRowRendering && (l.If.drawRows && (clearTimeout(l.If.drawRows), l.If.drawRows = null), l.scrollDelayRows > 0 ? l.If.drawRows = setTimeout(function () { l.vg(); }, l.scrollDelayRows) : l.vg()), l.If.drawCells && (clearTimeout(l.If.drawCells), l.If.drawCells = null), l.scrollDelayCells > 0)
3558
- l.If.drawCells = setTimeout(l.$h(), l.scrollDelayCells);
3556
+ if (l.mh = e.scrollLeft, l.nh = e.scrollTop, l.oh = e.clientWidth, l.divTimeScroll && (l.divTimeScroll.scrollLeft = l.mh), t && n.Zg ? i() : l.divResScroll.scrollTop = l.nh, l.progressiveRowRendering && (l.Kf.drawRows && (clearTimeout(l.Kf.drawRows), l.Kf.drawRows = null), l.scrollDelayRows > 0 ? l.Kf.drawRows = setTimeout(function () { l.xg(); }, l.scrollDelayRows) : l.xg()), l.Kf.drawCells && (clearTimeout(l.Kf.drawCells), l.Kf.drawCells = null), l.scrollDelayCells > 0)
3557
+ l.Kf.drawCells = setTimeout(l.ai(), l.scrollDelayCells);
3559
3558
  else {
3560
- l.$h()();
3559
+ l.ai()();
3561
3560
  }
3562
- l.If.na && (clearTimeout(l.If.na), l.If.na = null), l.scrollDelayEvents > 0 ? l.If.na = setTimeout(l._h(), l.scrollDelayEvents) : l.na(), l.If.updateFloats && (clearTimeout(l.If.updateFloats), l.If.updateFloats = null), l.scrollDelayFloats > 0 ? l.If.updateFloats = setTimeout(function () { l.qe(); }, l.scrollDelayFloats) : l.qe(), l.onScrollCalled = !0;
3563
- } }, this.$h = function () { return function () { l && l.ef(); }; }, this._h = function () { return function () { l && (l.rh() ? setTimeout(function () { l.oh(), setTimeout(function () { l.na(!0); }, 50); }, 50) : l.se()); }; }, this.df = function () { l.xb.drawArea = null; }, this.show = function () { l.visible = !0, l.ge = !0, l.nav.top.style.display = "", l.u(), l.ah(), l.ff(); }, this.hide = function () { l.visible = !1, l.ge = !1, l.nav.top.style.display = "none"; }, this.Xf = function (e) { if (!l.events.list)
3561
+ l.Kf.na && (clearTimeout(l.Kf.na), l.Kf.na = null), l.scrollDelayEvents > 0 ? l.Kf.na = setTimeout(l.bi(), l.scrollDelayEvents) : l.na(), l.Kf.updateFloats && (clearTimeout(l.Kf.updateFloats), l.Kf.updateFloats = null), l.scrollDelayFloats > 0 ? l.Kf.updateFloats = setTimeout(function () { l.te(); }, l.scrollDelayFloats) : l.te(), l.onScrollCalled = !0;
3562
+ } }, this.ai = function () { return function () { l && l.gf(); }; }, this.bi = function () { return function () { l && (l.vh() ? setTimeout(function () { l.qh(), setTimeout(function () { l.na(!0); }, 50); }, 50) : l.ve()); }; }, this.ff = function () { l.zb.drawArea = null; }, this.show = function () { l.visible = !0, l.ie = !0, l.nav.top.style.display = "", l.u(), l.ch(), l.hf(); }, this.hide = function () { l.visible = !1, l.ie = !1, l.nav.top.style.display = "none"; }, this.Zf = function (e) { if (!l.events.list)
3564
3563
  return null; for (var t = 0; t < this.events.list.length; t++) {
3565
3564
  var n = this.events.list[t];
3566
- if (l.Qf(n, e)) {
3565
+ if (l.Sf(n, e)) {
3567
3566
  var i = {};
3568
3567
  return i.ex = n, i.index = t, i;
3569
3568
  }
3570
- } return null; }, this.ai = function () { var e = this.ne(), t = e.xStart, n = e.xEnd - e.xStart, i = e.yStart, a = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var o = 0; o <= n; o++) {
3569
+ } return null; }, this.ci = function () { var e = this.pe(), t = e.xStart, n = e.xEnd - e.xStart, i = e.yStart, a = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var o = 0; o <= n; o++) {
3571
3570
  for (var r = t + o, s = 0; s < a; s++) {
3572
3571
  var l = i + s;
3573
- this.hd(r, l);
3572
+ this.kd(r, l);
3574
3573
  }
3575
- this.bi(r);
3576
- } for (var d = this.qg(), l = d.start; l < d.end; l++)
3577
- this.ci(l); }, this.ef = function () { if (!l.Q) {
3574
+ this.di(r);
3575
+ } for (var d = this.sg(), l = d.start; l < d.end; l++)
3576
+ this.ei(l); }, this.gf = function () { if (!l.Q) {
3578
3577
  var e = l.rowlist;
3579
3578
  if (e && e.length > 0) {
3580
3579
  if (this.cellSweeping) {
3581
3580
  var t = this.cellSweepingCacheSize;
3582
- this.qh(t);
3581
+ this.uh(t);
3583
3582
  }
3584
- this.ai();
3583
+ this.ci();
3585
3584
  }
3586
- this.mf = !1;
3587
- } }, this.ne = function () { if (l.xb.drawArea)
3588
- return l.xb.drawArea; if (!this.nav.scroll)
3589
- return null; var e = l.lh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, i = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, a = l.kh - n, o = a + l.mh + 2 * n, r = 0, s = 0; r = l.Ke(a).x, s = l.Ke(o, !0).x; var d = this.Bf(); s = Math.min(s, d - 1), r = DayPilot.Util.atLeast(r, 0); var c = e - i, u = e + this.nav.scroll.offsetHeight + 2 * i, h = this.Hf(c).i, f = this.Hf(u).i; f < this.rowlist.length && f++, t.xStart = r, t.xEnd = s, t.yStart = h, t.yEnd = f; var v = l.nav.scroll; return 0 === v.clientWidth && (v = l.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(l.nav.scroll), l.xb.drawArea = t, t; }, this.Ce = function () { return l.Bf() * l.cellWidth; }, this.ci = function (e) { var t = l.rowlist, n = l.divLines, i = "y_" + e; if (!this.xb.linesHorizontal[i]) {
3590
- var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ce(), c = r();
3591
- c.style.left = "0px", c.style.top = s + "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[i] = c;
3592
- } }, this.bi = function (e) { var t = l.Le(e); if (t) {
3593
- var n = l.divLines, i = l.fe, a = "x_" + e;
3594
- if (!this.xb.linesVertical[a]) {
3585
+ this.of = !1;
3586
+ } }, this.pe = function () { if (l.zb.drawArea)
3587
+ return l.zb.drawArea; if (!this.nav.scroll)
3588
+ return null; var e = l.nh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, i = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, a = l.mh - n, o = a + l.oh + 2 * n, r = 0, s = 0; r = l.Me(a).x, s = l.Me(o, !0).x; var d = this.Df(); s = Math.min(s, d - 1), r = DayPilot.Util.atLeast(r, 0); var c = e - i, u = e + this.nav.scroll.offsetHeight + 2 * i, h = this.Jf(c).i, f = this.Jf(u).i; f < this.rowlist.length && f++, t.xStart = r, t.xEnd = s, t.yStart = h, t.yEnd = f; var v = l.nav.scroll; return 0 === v.clientWidth && (v = l.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(l.nav.scroll), l.zb.drawArea = t, t; }, this.Ee = function () { return l.Df() * l.cellWidth; }, this.ei = function (e) { var t = l.rowlist, n = l.divLines, i = "y_" + e; if (!this.zb.linesHorizontal[i]) {
3589
+ var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ee(), c = r();
3590
+ c.style.left = "0px", c.style.top = s + "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.zb.linesHorizontal[i] = c;
3591
+ } }, this.di = function (e) { var t = l.Ne(e); if (t) {
3592
+ var n = l.divLines, i = l.he, a = "x_" + e;
3593
+ if (!this.zb.linesVertical[a]) {
3595
3594
  var o = t.left + t.width - 1, s = r();
3596
- s.style.left = o + "px", s.style.top = "0px", s.style.width = "1px", s.style.height = i + "px", s.style.fontSize = "1px", s.style.lineHeight = "1px", s.style.overflow = "hidden", s.style.position = "absolute", s.className = this.L("_matrix_vertical_line"), n.appendChild(s), this.elements.linesVertical.push(s), this.xb.linesVertical[a] = s;
3595
+ s.style.left = o + "px", s.style.top = "0px", s.style.width = "1px", s.style.height = i + "px", s.style.fontSize = "1px", s.style.lineHeight = "1px", s.style.overflow = "hidden", s.style.position = "absolute", s.className = this.L("_matrix_vertical_line"), n.appendChild(s), this.elements.linesVertical.push(s), this.zb.linesVertical[a] = s;
3597
3596
  }
3598
- } }, this.Ye = function () { l.fe = l.di(l.rowlist); }, this.di = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3597
+ } }, this.$e = function () { l.he = l.fi(l.rowlist); }, this.fi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3599
3598
  var i = e[n];
3600
3599
  i.top = t, t += i.height;
3601
- } return t; }, this.bf = function () { l.elements.cells = [], l.xb.cells = [], l.divCells.innerHTML = "", l.ei(); }, this.ei = function () { l.divLines.innerHTML = "", l.xb.linesVertical = {}, l.xb.linesHorizontal = {}, l.elements.linesVertical = []; }, this.qf = function (e) { var t = []; for (var n in l.xb.cells)
3602
- t.push(l.xb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { l.fb(e); }); }, this.hd = function (e, t) { if (this.Ka) {
3603
- var n = l.Le(e);
3600
+ } return t; }, this.df = function () { l.elements.cells = [], l.zb.cells = [], l.divCells.innerHTML = "", l.gi(); }, this.gi = function () { l.divLines.innerHTML = "", l.zb.linesVertical = {}, l.zb.linesHorizontal = {}, l.elements.linesVertical = []; }, this.sf = function (e) { var t = []; for (var n in l.zb.cells)
3601
+ t.push(l.zb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { l.hb(e); }); }, this.kd = function (e, t) { if (this.Ma) {
3602
+ var n = l.Ne(e);
3604
3603
  if (n) {
3605
3604
  var i = l.rowlist, a = l.divCells, o = e + "_" + t;
3606
- if (!this.xb.cells[o]) {
3607
- var s = this.fi(e, t), d = l.gi(e, t), c = r();
3605
+ if (!this.zb.cells[o]) {
3606
+ var s = this.hi(e, t), d = l.ii(e, t), c = r();
3608
3607
  if (c.style.left = n.left + "px", c.style.top = i[t].top + "px", c.style.width = n.width + "px", c.style.height = i[t].height + "px", c.style.position = "absolute", s && s.backColor && (c.style.backgroundColor = s.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, s) {
3609
- if (s.cssClass && DayPilot.Util.addClass(c, s.cssClass), c.innerHTML = l.$a(s.text, s.html), s.backImage && (c.style.backgroundImage = 'url("' + s.backImage + '")'), s.backRepeat && (c.style.backgroundRepeat = s.backRepeat), s.business && l.cellsMarkBusiness && DayPilot.Util.addClass(c, l.L("_cell_business")), s.disabled && DayPilot.Util.addClass(c, l.L("_cell_disabled")), s.backColor && (c.style.backgroundColor = s.backColor), s.fontColor && (c.style.color = s.fontColor), s.horizontalAlignment || s.verticalAlignment) {
3608
+ if (s.cssClass && DayPilot.Util.addClass(c, s.cssClass), c.innerHTML = l.ab(s.text, s.html), s.backImage && (c.style.backgroundImage = 'url("' + s.backImage + '")'), s.backRepeat && (c.style.backgroundRepeat = s.backRepeat), s.business && l.cellsMarkBusiness && DayPilot.Util.addClass(c, l.L("_cell_business")), s.disabled && DayPilot.Util.addClass(c, l.L("_cell_disabled")), s.backColor && (c.style.backgroundColor = s.backColor), s.fontColor && (c.style.color = s.fontColor), s.horizontalAlignment || s.verticalAlignment) {
3610
3609
  switch (c.style.display = "flex", s.horizontalAlignment) {
3611
3610
  case "right":
3612
3611
  c.style.justifyContent = "flex-end";
@@ -3628,25 +3627,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3628
3627
  }
3629
3628
  DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
3630
3629
  }
3631
- a.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
3630
+ a.appendChild(c), this.elements.cells.push(c), this.zb.cells[o] = c;
3632
3631
  }
3633
3632
  }
3634
- } }, this.gi = function (e, t) { var n = l.Le(e); if (!n)
3635
- return null; var i = l.rowlist[t], a = i.id, o = n.start, r = n.end, s = {}; if (s.cell = { x: e, y: t, start: o, end: r, resource: a, row: l.Ag(i), properties: l.fi(e, t) }, s.control = l, "function" == typeof this.onBeforeCellRender) {
3633
+ } }, this.ii = function (e, t) { var n = l.Ne(e); if (!n)
3634
+ return null; var i = l.rowlist[t], a = i.id, o = n.start, r = n.end, s = {}; if (s.cell = { x: e, y: t, start: o, end: r, resource: a, row: l.Cg(i), properties: l.hi(e, t) }, s.control = l, "function" == typeof this.onBeforeCellRender) {
3636
3635
  var d = e + "_" + t;
3637
- if (l.beforeCellRenderCaching && l.cf[d])
3636
+ if (l.beforeCellRenderCaching && l.ef[d])
3638
3637
  return s;
3639
- l.cf[d] = !0, this.onBeforeCellRender(s);
3640
- } return s; }, this.clearSelection = function () { this.hi(); }, this.ii = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = l.le(n), a = l.Me(e); if (!a.current)
3641
- throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var o = l.Me(new DayPilot.Date(t).addMilliseconds(-1)); if (!o.current)
3642
- throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var r = {}; return r.start = { y: i.index, x: a.i, "time": e }, r.end = { x: o.i, "time": t }, r.calendar = this, r; }, this.selectTimeRange = function (e, t, n, i) { var a = l.ii(e, t, n); l.Af(a), i || setTimeout(function () { l.wf(a); }, 0); }, this.uf = function () { var e = n.og && n.og.source; e && DayPilot.Util.removeClass(e, l.L("_event_moving_source")), DayPilot.de(n.og), n.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.hi = function () { l.divShadow && (l.divShadow.innerHTML = ""), l.elements.range = [], l.elements.range2 = null, l.zf = null, l.ji = null; }, this.ca = {};
3638
+ l.ef[d] = !0, this.onBeforeCellRender(s);
3639
+ } return s; }, this.clearSelection = function () { this.ji(); }, this.ki = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = l.ne(n), a = l.Oe(e); if (!a.current)
3640
+ throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var o = l.Oe(new DayPilot.Date(t).addMilliseconds(-1)); if (!o.current)
3641
+ throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var r = {}; return r.start = { y: i.index, x: a.i, "time": e }, r.end = { x: o.i, "time": t }, r.calendar = this, r; }, this.selectTimeRange = function (e, t, n, i) { var a = l.ki(e, t, n); l.Cf(a), i || setTimeout(function () { l.yf(a); }, 0); }, this.wf = function () { var e = n.qg && n.qg.source; e && DayPilot.Util.removeClass(e, l.L("_event_moving_source")), DayPilot.de(n.qg), n.qg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ji = function () { l.divShadow && (l.divShadow.innerHTML = ""), l.elements.range = [], l.elements.range2 = null, l.Bf = null, l.li = null; }, this.ca = {};
3643
3642
  var f = this.ca;
3644
- f.Md = function () { delete l.xb.headerHeight; }, f.da = function () { return "Disabled" !== l.xssProtection; }, f.Ie = function () { return DayPilot.Locale.find(l.locale); }, f.Ph = function () { return "Auto" !== l.timeFormat ? l.timeFormat : f.Ie().timeFormat; }, f.ea = function () { if ("Auto" === l.weekStarts) {
3645
- var e = f.Ie();
3643
+ f.Od = function () { delete l.zb.headerHeight; }, f.da = function () { return "Disabled" !== l.xssProtection; }, f.Ke = function () { return DayPilot.Locale.find(l.locale); }, f.Rh = function () { return "Auto" !== l.timeFormat ? l.timeFormat : f.Ke().timeFormat; }, f.ea = function () { if ("Auto" === l.weekStarts) {
3644
+ var e = f.Ke();
3646
3645
  return e ? e.weekStarts : 0;
3647
- } return l.weekStarts || 0; }, f.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, f.eg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Ne() * 1e3; }, this.fi = function (e, t) { var n = e + "_" + t, i = l.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3646
+ } return l.weekStarts || 0; }, f.zg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, f.gg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Pe() * 1e3; }, this.hi = function (e, t) { var n = e + "_" + t, i = l.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
3648
3647
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
3649
- var a = i[t], o = a.id, r = l.Le(e), s = r.start, d = r.end, c = {};
3648
+ var a = i[t], o = a.id, r = l.Ne(e), s = r.start, d = r.end, c = {};
3650
3649
  c.start = s, c.end = d, c.resource = o;
3651
3650
  var u = {};
3652
3651
  u.business = l.isBusiness(c), this.cellProperties[n] = u;
@@ -3665,80 +3664,79 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3665
3664
  return !0;
3666
3665
  if (o >= s)
3667
3666
  return !1;
3668
- } 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.Ee() + 2), this.ma(); }, this.setHeight = this.ki, this.le = function (e) { return l.Eg(e)[0]; }, this.wb = function () { if (this.id && this.id.tagName)
3667
+ } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.mi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ge() + 2), this.ma(); }, this.setHeight = this.mi, this.ne = function (e) { return l.Gg(e)[0]; }, this.yb = function () { if (this.id && this.id.tagName)
3669
3668
  this.nav.top = this.id;
3670
3669
  else {
3671
3670
  if ("string" != typeof this.id)
3672
3671
  throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");
3673
3672
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3674
3673
  throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
3675
- } }, this.init = function () { if (this.Ka)
3676
- throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties."); if (this.wb(), this.nav.top.dp) {
3674
+ } }, this.init = function () { if (this.Ma)
3675
+ throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties."); if (this.yb(), this.nav.top.dp) {
3677
3676
  if (this.nav.top.dp === l)
3678
3677
  return l;
3679
3678
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3680
- } return this.li(), this._g(), this; }, this.li = function () { this.Ng(), this.pb(), this.aa(), this.jh(), this.qb(); var angular = l.Be.enabled; l.scrollToDate ? l.scrollTo(l.scrollToDate) : l.scrollX || l.scrollY ? l.setScroll(l.scrollX, l.scrollY) : angular || l.ff(), l.scrollToResourceId && (l.scrollToResource(l.scrollToResourceId), l.scrollToResourceId = null); var e = function () { l.scrollY && l.setScroll(l.scrollX, l.scrollY); }; setTimeout(e, 200), this.df(), this.vb(), this.Ka = !0; var t = l.ie; t ? l.scrollTo(t) : l.ff(); }, this.ub = null, this.sb = function (e) { if (e) {
3681
- var t = { "resources": { "preInit": function () { var e = this.data; e && (l.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? l.events.list = e.list : l.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && l.he(this.data); } }, "scrollX": { "postInit": function () { this.data && l.ke(this.data); } }, "scrollY": { "postInit": function () { this.data && l.De(this.data); } } };
3682
- l.ub = t, l.Be.scrollToRequested && (t.scrollTo.data = l.Be.scrollToRequested, l.Be.scrollToRequested = null), l.Be.scrollXRequested && (t.scrollX.data = l.Be.scrollXRequested, l.Be.scrollXRequested = null), l.Be.scrollYRequested && (t.scrollY.data = l.Be.scrollYRequested, l.Be.scrollYRequested = null);
3683
- for (var n in e)
3684
- t[n] || (l[n] = e[n]);
3685
- for (var n in e)
3686
- if (t[n]) {
3687
- var i = t[n];
3688
- i.data = e[n], i.preInit && i.preInit();
3689
- }
3690
- } }, this.vb = function () { var e = l.ub; for (var t in e) {
3679
+ } return this.ni(), this.bh(), this; }, this.ni = function () { this.Pg(), this.rb(), this.aa(), this.lh(), this.sb(); var angular = l.De.enabled; l.scrollToDate ? l.scrollTo(l.scrollToDate) : l.scrollX || l.scrollY ? l.setScroll(l.scrollX, l.scrollY) : angular || l.hf(), l.scrollToResourceId && (l.scrollToResource(l.scrollToResourceId), l.scrollToResourceId = null); var e = function () { l.scrollY && l.setScroll(l.scrollX, l.scrollY); }; setTimeout(e, 200), this.ff(), this.xb(), this.Ma = !0; var t = l.ke; t ? l.scrollTo(t) : l.hf(); }, this.wb = null, this.ub = function (e) {
3680
+ if (e) {
3681
+ var t = { "resources": { "preInit": function () { var e = this.data; e && (l.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? l.events.list = e.list : l.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && l.je(this.data); } }, "scrollX": { "postInit": function () { this.data && l.me(this.data); } }, "scrollY": { "postInit": function () { this.data && l.Fe(this.data); } } };
3682
+ l.wb = t, l.De.scrollToRequested && (t.scrollTo.data = l.De.scrollToRequested, l.De.scrollToRequested = null), l.De.scrollXRequested && (t.scrollX.data = l.De.scrollXRequested, l.De.scrollXRequested = null), l.De.scrollYRequested && (t.scrollY.data = l.De.scrollYRequested, l.De.scrollYRequested = null);
3683
+ for (var n in e)
3684
+ t[n] || (l[n] = e[n]);
3685
+ for (var n in e)
3686
+ if (t[n]) {
3687
+ var i = t[n];
3688
+ i.data = e[n], i.preInit && i.preInit();
3689
+ }
3690
+ }
3691
+ }, this.xb = function () { var e = l.wb; for (var t in e) {
3691
3692
  var n = e[t];
3692
3693
  n.postInit && n.postInit();
3693
- } l.ub = {}; }, this.Qa = {}, this.Qa.Pa = null, this.Qa.Mb = function (e, t, n) {
3694
- var i = l.Qa.Pa;
3695
- if ("function" == typeof i.createVNode && "function" == typeof i.render) {
3696
- var a = i.createVNode(e, n);
3697
- i.render(a, t);
3698
- }
3699
- }, this.Qa.Ua = function (e, t) { var n = l.Qa.Pa; if ("function" == typeof n.render) {
3694
+ } l.wb = {}; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = l.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
3695
+ var a = i.createVNode(e, n);
3696
+ i.render(a, t);
3697
+ } }, this.Sa.Wa = function (e, t) { var n = l.Sa.Ra; if ("function" == typeof n.render) {
3700
3698
  var i = e;
3701
3699
  DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
3702
- } }, this.Qa.Sa = function (e) { var t = l.Qa.Pa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.rf, this.internal.adjustEndNormalize = l.sf, this.internal.xssTextHtml = l.$a, this.internal.touch = l.Hh, this.internal.skipUpdate = l.Be.skipUpdate, this.internal.skipped = l.Be.skipped, this.internal.loadOptions = l.sb, this.internal.postInit = l.vb, this.internal.enableAngular2 = function () { l.Be.enabled = !0; }, this.internal.eventsFromAttr = function () { l.Be.Vf = !0; }, this.internal.resourcesFromAttr = function () { l.Be.cg = !0; }, this.internal.evImmediateRefresh = function () { l.events.vf(); }, this.internal.enableReact = function (e, t) { l.jd.react = e, l.jd.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(l.jd, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { l.Qa.Pa = e; }, this.internal.vueRef = function () { return l.Qa.Pa; }, this.internal.vueRendering = function () { return l.Qa.Ra; }, this.sb(s);
3700
+ } }, this.Sa.Ua = function (e) { var t = l.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.tf, this.internal.adjustEndNormalize = l.uf, this.internal.xssTextHtml = l.ab, this.internal.touch = l.Jh, this.internal.skipUpdate = l.De.skipUpdate, this.internal.skipped = l.De.skipped, this.internal.loadOptions = l.ub, this.internal.postInit = l.xb, this.internal.enableAngular2 = function () { l.De.enabled = !0; }, this.internal.eventsFromAttr = function () { l.De.Xf = !0; }, this.internal.resourcesFromAttr = function () { l.De.eg = !0; }, this.internal.evImmediateRefresh = function () { l.events.xf(); }, this.internal.enableReact = function (e, t) { l.ld.react = e, l.ld.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(l.ld, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { l.Sa.Ra = e; }, this.internal.vueRef = function () { return l.Sa.Ra; }, this.internal.vueRendering = function () { return l.Sa.Ta; }, this.ub(s);
3703
3701
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3704
3702
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
3705
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.mi = {}; var n = this.mi; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var i = this; i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags, i.index = e.index, i.calendar = t, i.data = e.resource, i.ni = e, i.$ = {}, i.$.row = e, i.toJSON = function (e) { var t = {}; return t.start = this.start, t.name = this.name, t.id = this.id, t.index = this.index, t; }, i.events = {}, i.events.all = function () { for (var e = [], t = 0; t < i.ni.events.length; t++)
3706
- e.push(i.ni.events[t]); return e; }, i.events.isEmpty = function () { return 0 === i.ni.events.length; }, i.events.forRange = function (e, t) { return i.ni.events.forRange(e, t); }, i.events.totalDuration = function () { var e = 0; return i.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, i.remove = function () { t.rows.remove(i); }, i.addClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.addClass(a, e), i.$.row.cssClass = DayPilot.Util.addClassToString(i.$.row.cssClass, e), i.data.cssClass = e; }, i.removeClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.removeClass(a, e), i.$.row.cssClass = DayPilot.Util.removeClassFromString(i.$.row.cssClass, e), i.data.cssClass = DayPilot.Util.removeClassFromString(i.data.cssClass, e); }; }, n.Qe = null, n.ng = null, n.Dh = null, n.gg = null, n.kg = null, n.Pe = !1, n.gh = !1, n.Rh = null, n.oi = null, n.qc = function (e) { DayPilot.ue(document, "mouseup", n.ee), DayPilot.ue(document, "touchmove", n.hh), DayPilot.ue(document, "touchend", n.ih), n.gh = !1; }, n.hh = function (e) { if (n.gg) {
3707
- var t = n.gg.event.calendar;
3708
- t.coords = t.Hh.Jh(e), t.Hh.Mh(), e.preventDefault();
3709
- } if (n.Qe) {
3703
+ 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 i = this; i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags, i.index = e.index, i.calendar = t, i.data = e.resource, i.pi = e, i.$ = {}, i.$.row = e, i.toJSON = function (e) { var t = {}; return t.start = this.start, t.name = this.name, t.id = this.id, t.index = this.index, t; }, i.events = {}, i.events.all = function () { for (var e = [], t = 0; t < i.pi.events.length; t++)
3704
+ e.push(i.pi.events[t]); return e; }, i.events.isEmpty = function () { return 0 === i.pi.events.length; }, i.events.forRange = function (e, t) { return i.pi.events.forRange(e, t); }, i.events.totalDuration = function () { var e = 0; return i.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, i.remove = function () { t.rows.remove(i); }, i.addClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.addClass(a, e), i.$.row.cssClass = DayPilot.Util.addClassToString(i.$.row.cssClass, e), i.data.cssClass = e; }, i.removeClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.removeClass(a, e), i.$.row.cssClass = DayPilot.Util.removeClassFromString(i.$.row.cssClass, e), i.data.cssClass = DayPilot.Util.removeClassFromString(i.data.cssClass, e); }; }, n.Se = null, n.pg = null, n.Fh = null, n.ig = null, n.mg = null, n.Re = !1, n.ih = !1, n.Th = null, n.qi = null, n.sc = function (e) { DayPilot.ue(document, "mouseup", n.ge), DayPilot.ue(document, "touchmove", n.jh), DayPilot.ue(document, "touchend", n.kh), n.ih = !1; }, n.jh = function (e) { if (n.ig) {
3705
+ var t = n.ig.event.calendar;
3706
+ t.coords = t.Jh.Lh(e), t.Jh.Oh(), e.preventDefault();
3707
+ } if (n.Se) {
3710
3708
  e.preventDefault();
3711
- var t = n.ng.calendar;
3712
- t.coords = t.Hh.Jh(e), t.Hh.Nh();
3713
- } }, n.ih = function (e) { n.Xg = !1, n.ee(e); }, n.ee = function (e) { if (n.gg) {
3714
- var t = function () { var e = n.kg, t = e.calendar; o().style.cursor = "", n.gg = null, n.kg = null, DayPilot.de(n.jg), n.jg = null, t && (t.pi = null); };
3715
- if (setTimeout(function () { n.Pe = !1; }), !n.jg)
3709
+ var t = n.pg.calendar;
3710
+ t.coords = t.Jh.Lh(e), t.Jh.Ph();
3711
+ } }, n.kh = function (e) { n.Zg = !1, n.ge(e); }, n.ge = function (e) { if (n.ig) {
3712
+ var t = function () { var e = n.mg, t = e.calendar; o().style.cursor = "", n.ig = null, n.mg = null, DayPilot.de(n.lg), n.lg = null, t && (t.ri = null); };
3713
+ if (setTimeout(function () { n.Re = !1; }), !n.lg)
3716
3714
  return void t();
3717
- var a = n.kg, r = a.calendar, s = n.jg.start, l = n.jg.end, d = "left" === n.gg.dpBorder ? "start" : "end";
3715
+ var a = n.mg, r = a.calendar, s = n.lg.start, l = n.lg.end, d = "left" === n.ig.dpBorder ? "start" : "end";
3718
3716
  t(), r.K(a, s, l, d);
3719
3717
  }
3720
- else if (n.ng) {
3721
- var t = function () { DayPilot.Global.movingAreaData = null; var e = n.og && n.og.calendar; n.og && (DayPilot.de(n.og), n.og.calendar = null), o().style.cursor = "", n.Qe = null, n.ng = null, e && (e.tf = null); };
3722
- if (!n.og)
3718
+ else if (n.pg) {
3719
+ var t = function () { DayPilot.Global.movingAreaData = null; var e = n.qg && n.qg.calendar; n.qg && (DayPilot.de(n.qg), n.qg.calendar = null), o().style.cursor = "", n.Se = null, n.pg = null, e && (e.vf = null); };
3720
+ if (!n.qg)
3723
3721
  return void t();
3724
- var a = n.ng, r = n.og.calendar;
3722
+ var a = n.pg, r = n.qg.calendar;
3725
3723
  if (!r)
3726
3724
  return void t();
3727
- if (n.og.source = n.Qe, !n.og.row)
3725
+ if (n.qg.source = n.Se, !n.qg.row)
3728
3726
  return void t();
3729
- var s = n.og.start, l = n.og.end, c = n.og.row.id;
3730
- n.og.calendar = null, o().style.cursor = "", n.Qe = null, n.ng = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
3727
+ var s = n.qg.start, l = n.qg.end, c = n.qg.row.id;
3728
+ n.qg.calendar = null, o().style.cursor = "", n.Se = null, n.pg = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
3731
3729
  }
3732
- else if (n.Kh) {
3733
- var u = DayPilot.Util.mouseButton(e), h = n.Kh, r = h.calendar, t = function () { };
3734
- r.ji = null;
3730
+ else if (n.Mh) {
3731
+ var u = DayPilot.Util.mouseButton(e), h = n.Mh, r = h.calendar, t = function () { };
3732
+ r.li = null;
3735
3733
  e.ctrlKey || e.metaKey;
3736
- if (n.Rh)
3737
- return clearTimeout(n.Rh), n.Rh = null, void t();
3738
- r.zf = h, n.Kh = null;
3739
- var f = function (e) { return function () { n.Rh = null, r.wf(e), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling ? i() : r.zf = e; }; }, v = r.Zh(h);
3740
- return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Rh = null);
3741
- } n.Gh = null, n.fg = null; };
3734
+ if (n.Th)
3735
+ return clearTimeout(n.Th), n.Th = null, void t();
3736
+ r.Bf = h, n.Mh = null;
3737
+ var f = function (e) { return function () { n.Th = null, r.yf(e), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling ? i() : r.Bf = e; }; }, v = r._h(h);
3738
+ return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Th = null);
3739
+ } n.Ih = null, n.hg = null; };
3742
3740
  }
3743
3741
  }(DayPilot);
3744
3742