@daypilot/daypilot-lite-angular 3.14.0 → 3.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2023 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2023.2.470-lite
133
+ Version: 2023.3.484-lite
134
134
  */
135
135
  if ("undefined" == typeof DayPilot)
136
136
  var DayPilot = {};
@@ -646,11 +646,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
646
646
  if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
647
647
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
648
648
  var n = this;
649
- this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.470-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
650
- i = i.parentNode; var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, this._ = {}, this._.locale = function () {
651
- var e = DayPilot.Locale.find(n.locale);
652
- return e ? e : DayPilot.Locale.US;
653
- }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
649
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2023.3.484-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
650
+ i = i.parentNode; var a = document.createElement("div"); a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () {
651
+ return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat;
652
+ }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
654
653
  var o = this._;
655
654
  this.T = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
656
655
  if (!window.console)
@@ -910,6 +909,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
910
909
  h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.sa(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
911
910
  } var f = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
912
911
  a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
912
+ } if ("function" == typeof n.onAfterEventRender) {
913
+ var m = {};
914
+ m.e = o.event, m.div = o, n.onAfterEventRender(m);
913
915
  } n.elements.events.push(o); }, this.Da = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
914
916
  try {
915
917
  var a = e.childNodes[i];
@@ -926,15 +928,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
926
928
  var l = n === a.lines.length - 1;
927
929
  l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
928
930
  }
929
- } }, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ia(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ia(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ja()), n.appendChild(this.Ka()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ja = 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.Ka = 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.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
931
+ } }, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ia(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ja(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ja(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ka()), n.appendChild(this.La()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ka = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.La = function () { 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.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
930
932
  var r = a.insertCell(-1);
931
933
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
932
934
  var s = document.createElement("div");
933
935
  s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
934
936
  var l = document.createElement("div");
935
937
  r.selection = l, r.appendChild(s), r.appendChild(l);
936
- } return e; }, this.Ia = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = n.ja(), i = 0; i < t; i++)
937
- this.La(e, i); return e; }, this.La = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () { switch (this.heightSpec) {
938
+ } return e; }, this.Ja = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = n.ja(), i = 0; i < t; i++)
939
+ this.Ma(e, i); return e; }, this.Ma = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () { switch (this.heightSpec) {
938
940
  case "Full": return 48 * this.cellHeight;
939
941
  case "BusinessHours":
940
942
  var e = this.la();
@@ -943,17 +945,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
943
945
  var e = this.la();
944
946
  return e * this.cellHeight * 2;
945
947
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
946
- } }, this.Ma = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
948
+ } }, this.Na = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
947
949
  e.innerHTML = "";
948
- var t = this.Na();
950
+ var t = this.Oa();
949
951
  e.appendChild(t), n.nav.corner = t;
950
- } }, this.Ga = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Na(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
952
+ } }, this.Ga = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Oa(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
951
953
  a = i.insertCell(-1), a.unselectable = "on";
952
954
  var r = document.createElement("div");
953
955
  r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
954
956
  var s = document.createElement("div");
955
957
  s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
956
- } return e.appendChild(t), e; }, this.Na = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
958
+ } return e.appendChild(t), e; }, this.Oa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
957
959
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
958
960
  var n = i.cells[a];
959
961
  n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
@@ -974,7 +976,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
974
976
  c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
975
977
  var u = document.createElement("div");
976
978
  u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
977
- this.Oa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
979
+ this.Pa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
978
980
  var p = document.createElement("div");
979
981
  p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
980
982
  }
@@ -995,28 +997,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
995
997
  }
996
998
  }
997
999
  else if (t.moving) {
998
- if (t.movingShadow || (t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !n.coords)
1000
+ if (!n.coords)
999
1001
  return;
1000
- var o = n.cellHeight, r = 1, u = t.moveOffsetY;
1001
- u || (u = o / 2);
1002
- var c = Math.floor((n.coords.y - u - r + o / 2) / o) * o + r;
1002
+ if (!t.movingShadow) {
1003
+ var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1004
+ if (h <= u)
1005
+ return;
1006
+ t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1007
+ }
1008
+ var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1009
+ f || (f = o / 2);
1010
+ var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1003
1011
  c < r && (c = r);
1004
- var h = n.nav.events, d = n.nav.main.clientHeight, f = parseInt(t.movingShadow.style.height);
1005
- c + f > d && (c = d - f), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1006
- var m = h.clientWidth / h.rows[0].cells.length, p = Math.floor((n.coords.x - 45) / m);
1007
- p < 0 && (p = 0), p < h.rows[0].cells.length && p >= 0 && t.movingShadow.column !== p && (t.movingShadow.column = p, t.moveShadow(h.rows[0].cells[p]));
1012
+ var m = n.nav.events, d = n.nav.main.clientHeight, p = parseInt(t.movingShadow.style.height);
1013
+ c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1014
+ var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1015
+ y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
1008
1016
  }
1009
1017
  else if (t.selecting) {
1010
- var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
1011
- a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
1012
- } }, n.nav.scrollable.style.display = ""; }, this.Oa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () { var e = this.nav.header; if (e && e.rows)
1018
+ var a = DayPilot.mc(e), g = n.ya.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1019
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
1020
+ } }, n.nav.scrollable.style.display = ""; }, this.Pa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () { var e = this.nav.header; if (e && e.rows)
1013
1021
  for (var t = 0; t < e.rows.length; t++)
1014
1022
  for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
1015
1023
  var n = i.cells[a];
1016
1024
  n.onclick = null, n.onmousemove = null, n.onmouseout = null;
1017
- } this.fasterDispose || DayPilot.pu(e); }, this.Pa = function (e) { for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
1025
+ } this.fasterDispose || DayPilot.pu(e); }, this.Qa = function (e) { for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
1018
1026
  var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
1019
- s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Qa;
1027
+ s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Ra;
1020
1028
  var l = e ? document.createElement("div") : s.firstChild;
1021
1029
  if (e) {
1022
1030
  l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = this.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap");
@@ -1025,12 +1033,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1025
1033
  }
1026
1034
  r.toolTip && (d.title = r.toolTip);
1027
1035
  var d = l.firstChild;
1028
- d.innerHTML = n.Ra(r.name, r.html);
1029
- } }, this.Qa = function (e) { if ("Disabled" !== n.headerClickHandling) {
1036
+ d.innerHTML = n.Ia(r.name, r.html);
1037
+ } }, this.Ra = function (e) { if ("Disabled" !== n.headerClickHandling) {
1030
1038
  var t = this.data, i = n.Sa(t), a = {};
1031
1039
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
1032
1040
  } }, this.Sa = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ta = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ea = function () { var e = this.nav.header, t = !0, i = this.ta; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1033
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Pa(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1041
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Qa(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1034
1042
  t = e.data;
1035
1043
  else {
1036
1044
  if ("object" != typeof e)
@@ -1039,10 +1047,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1039
1047
  } n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.qa.notify(); }, this.events.find = function (e) {
1040
1048
  if (!n.events.list)
1041
1049
  return null;
1042
- for (var t = 0; t < n.events.list.length; t++) {
1043
- var i = n.events.list[t];
1044
- if (i.id === e)
1045
- return new DayPilot.Event(i, n);
1050
+ if ("function" == typeof e) {
1051
+ for (var t = e, i = 0; i < n.events.list.length; i++) {
1052
+ var a = new DayPilot.Event(n.events.list[i], n);
1053
+ if (t(a))
1054
+ return a;
1055
+ }
1056
+ return null;
1057
+ }
1058
+ for (var i = 0; i < n.events.list.length; i++) {
1059
+ var o = n.events.list[i];
1060
+ if (o.id === e)
1061
+ return new DayPilot.Event(o, n);
1046
1062
  }
1047
1063
  return null;
1048
1064
  }, this.events.update = function (e) { if (e instanceof DayPilot.Event)
@@ -1086,7 +1102,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1086
1102
  t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
1087
1103
  } }, this.update = function (e) { if (n.$a(e), this.za) {
1088
1104
  n._a(), n.V(), n.nav.top.style.cursor = "auto";
1089
- n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Ma(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
1105
+ n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Na(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
1090
1106
  } }, this.bb = null, this.$a = function (e) { if (e) {
1091
1107
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
1092
1108
  this.bb = t;
@@ -1188,7 +1204,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1188
1204
  this.pb = !0;
1189
1205
  var e = {};
1190
1206
  this.onInit(e);
1191
- } }, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ra = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ra, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
1207
+ } }, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ia = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ia, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
1192
1208
  }, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
1193
1209
  var i = new DayPilot.Calendar(this.id);
1194
1210
  this.daypilot = i;
@@ -1203,7 +1219,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1203
1219
  }
1204
1220
  }(), "undefined" == typeof DayPilot)
1205
1221
  var DayPilot = {};
1206
- if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.2.470-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1222
+ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2023.3.484-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
1207
1223
  for (var t in e)
1208
1224
  this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.qb && (this.qb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.sb(this.date); }, this.rb = function () { var e = this.B(); if (!e)
1209
1225
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
@@ -1233,7 +1249,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1233
1249
  "use strict";
1234
1250
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1235
1251
  var e = function () { }, t = {};
1236
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2023.2.470-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.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.ub.submenu = null, null !== t.mouse) {
1252
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2023.3.484-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.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.ub.submenu = null, null !== t.mouse) {
1237
1253
  a.cssOnly || (a.cssOnly = !0);
1238
1254
  var s = null;
1239
1255
  if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
@@ -1329,7 +1345,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1329
1345
  d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.ub.visible = !0, a.ub.source = i, d.style.display = "";
1330
1346
  var M = d.offsetHeight, T = d.offsetWidth;
1331
1347
  d.style.display = "none";
1332
- var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1348
+ var A = document.documentElement.clientHeight, E = window.innerWidth, H = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1333
1349
  if (function () { var e = o.initiator; if (e) {
1334
1350
  var t = e.div, i = e.e, a = e.area, r = a.visibility || a.v || "Visible", s = e.a;
1335
1351
  if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, i, a), t.appendChild(s), n = s), s) {
@@ -1337,18 +1353,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1337
1353
  o.x = l.x, o.y = l.y + l.h + 2;
1338
1354
  }
1339
1355
  } }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft; if (i - a > A - M && 0 !== A) {
1340
- var r = i - a - (A - M) + E;
1356
+ var r = i - a - (A - M) + H;
1341
1357
  d.style.top = i - r + "px";
1342
1358
  }
1343
1359
  else
1344
- d.style.top = i + "px"; if ("right" === o.align && (e -= T), e - n > H - T && 0 !== H) {
1345
- var s = e - n - (H - T) + E;
1360
+ d.style.top = i + "px"; if ("right" === o.align && (e -= T), e - n > E - T && 0 !== E) {
1361
+ var s = e - n - (E - T) + H;
1346
1362
  d.style.left = e - s + "px";
1347
1363
  }
1348
1364
  else
1349
1365
  d.style.left = e + "px"; }(), o.parentLink) {
1350
1366
  var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), O = z.x + N.offsetWidth, U = z.y - I;
1351
- O + T > H && (O = Math.max(0, z.x - T));
1367
+ O + T > E && (O = Math.max(0, z.x - T));
1352
1368
  var R = document.body.scrollTop + document.documentElement.scrollTop;
1353
1369
  U + M - R > A && (U = Math.max(0, A - M + R)), d.style.left = O + "px", d.style.top = U + "px";
1354
1370
  }
@@ -1740,7 +1756,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1740
1756
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1741
1757
  var e = {};
1742
1758
  e.Month = function (t, i) {
1743
- this.v = "2023.2.470-lite", this.nav = {};
1759
+ this.v = "2023.3.484-lite", this.nav = {};
1744
1760
  var a = this;
1745
1761
  this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1746
1762
  t = e.data;
@@ -1749,10 +1765,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1749
1765
  throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
1750
1766
  t = e;
1751
1767
  } a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify(); }, this.events.find = function (e) { if (!a.events.list)
1752
- return null; for (var t = 0; t < a.events.list.length; t++) {
1753
- var i = a.events.list[t];
1754
- if (i.id === e)
1755
- return new DayPilot.Event(i, a);
1768
+ return null; if ("function" == typeof e) {
1769
+ for (var t = e, i = 0; i < a.events.list.length; i++) {
1770
+ var n = new DayPilot.Event(a.events.list[i], a);
1771
+ if (t(n))
1772
+ return n;
1773
+ }
1774
+ return null;
1775
+ } for (var i = 0; i < a.events.list.length; i++) {
1776
+ var o = a.events.list[i];
1777
+ if (o.id === e)
1778
+ return new DayPilot.Event(o, a);
1756
1779
  } return null; }, this.events.update = function (e) { if (e instanceof DayPilot.Event)
1757
1780
  e.commit();
1758
1781
  else if ("object" == typeof e) {
@@ -1876,7 +1899,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1876
1899
  } if (t.client.deleteEnabled()) {
1877
1900
  var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
1878
1901
  v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
1879
- } var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
1902
+ } var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
1903
+ var g = {};
1904
+ g.e = u.event, g.div = u, a.onAfterEventRender(g);
1905
+ } this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
1880
1906
  var o = {};
1881
1907
  o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
1882
1908
  var r = this.lines[o];
@@ -1911,10 +1937,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1911
1937
  return;
1912
1938
  if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
1913
1939
  return;
1940
+ var c = 3, u = Math.abs(i.x - e.movingEvent.coords.x) + Math.abs(i.y - e.movingEvent.coords.y);
1941
+ if (u <= c)
1942
+ return;
1914
1943
  var n = a.getCellBelowPoint(i.x, i.y);
1915
1944
  a.clearShadow();
1916
- var c = e.movingEvent.event, u = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
1917
- o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, u, c);
1945
+ var h = e.movingEvent.event, f = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
1946
+ o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, f, h);
1918
1947
  }
1919
1948
  else if (e.timeRangeSelecting) {
1920
1949
  var i = DayPilot.mo2(a.nav.top, t);
@@ -1922,10 +1951,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1922
1951
  return;
1923
1952
  var n = a.getCellBelowPoint(i.x, i.y);
1924
1953
  a.clearShadow();
1925
- var r = e.timeRangeSelecting, h = 7 * r.y + r.x, f = 7 * n.y + n.x, o = Math.abs(f - h) + 1;
1954
+ var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * n.y + n.x, o = Math.abs(p - m) + 1;
1926
1955
  o < 1 && (o = 1);
1927
- var m = h < f ? r : n;
1928
- e.timeRangeSelecting.from = { x: m.x, y: m.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(m.x, m.y, 0, o, 0, null);
1956
+ var v = m < p ? r : n;
1957
+ e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
1929
1958
  } }; }, this.ha = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
1930
1959
  for (var t = 0; t < this.cells[e].length; t++)
1931
1960
  this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
@@ -1947,26 +1976,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1947
1976
  this.Nc(t, r, e);
1948
1977
  } }, this.Jc = function () { for (var e = 0; e < this.cells.length; e++)
1949
1978
  for (var t = 0; t < this.cells[e].length; t++)
1950
- this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
1951
- var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
1952
- if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px",
1953
- l.className = this.J("_cell"), !this.isWeekend(s)) {
1954
- var d = this.J("_cell_business");
1955
- DayPilot.Util.addClass(l, d);
1956
- }
1957
- var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
1958
- c.setAttribute("unselectable", "on"), l.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.J("_cell_inner"), l.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, l.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
1959
- return void e(s); };
1960
- var u = document.createElement("div");
1961
- u.setAttribute("unselectable", "on"), u.style.height = this.cellHeaderHeight + "px", u.className = this.J("_cell_header"), u.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
1962
- e.stopPropagation();
1963
- var t = {};
1964
- t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
1965
- } };
1966
- var h = s.getDay();
1967
- 1 === h ? u.innerHTML = n.locale().monthNames[s.getMonth()] + " " + h : u.innerHTML = h, c.appendChild(u), this.cells[t][i] = l, o.appendChild(l);
1968
- }, this.getWeekStart = function () { return n.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
1969
- t += this.rows[i].getHeight(); return t; }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i.client.clickEnabled())
1979
+ this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.oa = function () {
1980
+ return 2 === a.api;
1981
+ }, this.Nc = function (t, i, o) { var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div"); if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px", l.className = this.J("_cell"), !this.isWeekend(s)) {
1982
+ var d = this.J("_cell_business");
1983
+ DayPilot.Util.addClass(l, d);
1984
+ } var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); c.setAttribute("unselectable", "on"), l.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.J("_cell_inner"), l.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, l.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
1985
+ return void e(s); }; var u = document.createElement("div"); u.setAttribute("unselectable", "on"), u.style.height = this.cellHeaderHeight + "px", u.className = this.J("_cell_header"), u.onclick = function (e) { if ("Enabled" === a.cellHeaderClickHandling) {
1986
+ e.stopPropagation();
1987
+ var t = {};
1988
+ t.control = a, t.start = s, t.end = s.addDays(1), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onCellHeaderClick && (a.onCellHeaderClick(t), t.preventDefault.value) || "function" == typeof a.onCellHeaderClicked && a.onCellHeaderClicked(t);
1989
+ } }; var h = s.getDay(); 1 === h ? u.innerHTML = n.locale().monthNames[s.getMonth()] + " " + h : u.innerHTML = h, c.appendChild(u), this.cells[t][i] = l, o.appendChild(l); }, this.getWeekStart = function () { return n.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
1990
+ t += this.rows[i].getHeight(); return t; }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i && i.client.clickEnabled())
1970
1991
  if (a.oa()) {
1971
1992
  var n = {};
1972
1993
  if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
@@ -2083,7 +2104,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2083
2104
  throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
2084
2105
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
2085
2106
  throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
2086
- } }, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ra = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ra, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
2107
+ } }, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ia = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ia, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
2087
2108
  }, e.gMouseUp = function (t) { if (e.movingEvent) {
2088
2109
  var i = e.movingEvent;
2089
2110
  if (!i.event)
@@ -2133,7 +2154,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2133
2154
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2134
2155
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
2135
2156
  DayPilot.Navigator = function (e, t) {
2136
- this.v = "2023.2.470-lite";
2157
+ this.v = "2023.3.484-lite";
2137
2158
  var i = this;
2138
2159
  this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.eb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Pc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
2139
2160
  v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
@@ -2163,19 +2184,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2163
2184
  var k = document.createElement("div");
2164
2185
  k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_dayheader"), k.innerHTML = "<span>" + this.Uc(S) + "</span>", v.appendChild(k), a.days.push(k);
2165
2186
  for (var C = 0; C < h; C++) {
2166
- var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
2187
+ var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, E = P >= n.addMonths(1);
2167
2188
  if ("month" === this.Wc())
2168
2189
  M = M && T;
2169
2190
  else if ("day" === this.Wc())
2170
- M = M && (T || r && A || s && H);
2191
+ M = M && (T || r && A || s && E);
2171
2192
  else if ("week" === this.Wc()) {
2172
- var E = P.firstDayOfMonth() === n;
2173
- M = M && (E || r && A || s && H);
2193
+ var H = P.firstDayOfMonth() === n;
2194
+ M = M && (H || r && A || s && E);
2174
2195
  }
2175
2196
  var N = document.createElement("div");
2176
2197
  a.cells[S][C] = N;
2177
2198
  var I = i.Xc(S, C), z = I.x, O = I.y;
2178
- N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
2199
+ N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = E, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
2179
2200
  var U = document.createElement("div");
2180
2201
  U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Qc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
2181
2202
  var R = null;
@@ -2183,7 +2204,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2183
2204
  var L = {};
2184
2205
  L.cell = R || {}, L.cell.day = P, L.cell.isCurrentMonth = T, L.cell.isToday = P.getTime() === f.getTime() && T, L.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), R ? (L.cell.html = R.html || P.getDay(), L.cell.cssClass = R.css) : (L.cell.html = P.getDay(), L.cell.cssClass = null), i.onBeforeCellRender(L), R = L.cell;
2185
2206
  }
2186
- if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s && H) {
2207
+ if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s && E) {
2187
2208
  var j = document.createElement("div");
2188
2209
  j.innerHTML = P.getDay(), j.style.position = "absolute", j.style.left = "0px", j.style.top = "0px", j.style.right = "0px", j.style.bottom = "0px", i.Qc(j, "cell_text"), N.isClickable = !0, R && R.html && (j.innerHTML = R.html), N.appendChild(j);
2189
2210
  }
@@ -2422,17 +2443,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2422
2443
  } return a; }, this.sd = function (e) { if (this.internal.showLinks)
2423
2444
  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.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.$a, this.internal.initialized = function () { return i.za; }, this._ = {};
2424
2445
  var o = this._;
2425
- o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
2426
- var e = o.locale();
2427
- return e ? e.weekStarts : 0;
2428
- } return i.weekStarts; }, o.cellWidth = function () { if (i.eb.cellWidth)
2429
- return i.eb.cellWidth; var e = i.ud("_cell_dimensions").width; return e || (e = i.cellWidth), i.eb.cellWidth = e, e; }, this.clearSelection = function () {
2430
- for (var e = 0; e < this.selected.length; e++) {
2431
- var t = this.selected[e];
2432
- i.$c(t.parentNode, t.x, t.y);
2446
+ o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
2447
+ if ("Auto" === i.weekStarts) {
2448
+ var e = o.locale();
2449
+ return e ? e.weekStarts : 0;
2433
2450
  }
2434
- this.selected = [];
2435
- }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () { if (DayPilot.isArray(this.events.list)) {
2451
+ return i.weekStarts;
2452
+ }, o.cellWidth = function () { if (i.eb.cellWidth)
2453
+ return i.eb.cellWidth; var e = i.ud("_cell_dimensions").width; return e || (e = i.cellWidth), i.eb.cellWidth = e, e; }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
2454
+ var t = this.selected[e];
2455
+ i.$c(t.parentNode, t.x, t.y);
2456
+ } this.selected = []; }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ca = function () { if (DayPilot.isArray(this.events.list)) {
2436
2457
  this.items = {};
2437
2458
  for (var e = 0; e < this.events.list.length; e++) {
2438
2459
  var t = this.events.list[e];
@@ -2442,7 +2463,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2442
2463
  this.items[a] = 1;
2443
2464
  }
2444
2465
  }
2445
- } }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
2466
+ } }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
2446
2467
  a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () { if (this.id && this.id.tagName)
2447
2468
  this.nav.top = this.id;
2448
2469
  else {