@daypilot/daypilot-lite-angular 4.1.0 → 4.2.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.
@@ -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.2.678-lite
147
+ Version: 2025.3.686-lite
148
148
  */
149
149
  var DayPilot = {};
150
150
  if ("undefined" == typeof DayPilot)
@@ -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.2.678-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.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;)
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;
@@ -1319,7 +1319,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1319
1319
  var DayPilot = {};
1320
1320
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
1321
1321
  "use strict";
1322
- "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "2025.2.678-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)
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)
1323
1323
  for (var t in e)
1324
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)
1325
1325
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
@@ -1353,7 +1353,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1353
1353
  "use strict";
1354
1354
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1355
1355
  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.2.678-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) {
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) {
1357
1357
  i.cssOnly || (i.cssOnly = !0);
1358
1358
  var s = null;
1359
1359
  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) {
@@ -1467,8 +1467,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1467
1467
  l = e; i.Rb.x = l, d.style.left = l + "px"; }(), o.parentLink) {
1468
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
1469
  L + T > E && (L = Math.max(0, R.x - T));
1470
- var U = document.body.scrollTop + document.documentElement.scrollTop;
1471
- z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = L + "px", d.style.top = z + "px";
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";
1472
1472
  }
1473
1473
  d.style.display = "", this.addShadow(d), this.Rb.div = d, o.submenu || (DayPilot.Menu.active = this);
1474
1474
  } }, this.update = function () { if (i.Rb.visible) {
@@ -1866,7 +1866,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1866
1866
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1867
1867
  var e = {}, t = DayPilot.Util.isVueVNode;
1868
1868
  e.Month = function (n, i) {
1869
- this.v = "2025.2.678-lite", this.nav = {};
1869
+ this.v = "2025.3.686-lite", this.nav = {};
1870
1870
  var a = this;
1871
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)
1872
1872
  t = e.data;
@@ -2346,7 +2346,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2346
2346
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2347
2347
  var e = DayPilot.Util.isVueVNode;
2348
2348
  DayPilot.Navigator = function (t, n) {
2349
- this.v = "2025.2.678-lite";
2349
+ this.v = "2025.3.686-lite";
2350
2350
  var i = this;
2351
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
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)
@@ -2391,10 +2391,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2391
2391
  }
2392
2392
  var I = document.createElement("div");
2393
2393
  a.cells[M][C] = I;
2394
- var R = i.zd(M, C), L = R.x, z = R.y, U = 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 + U, I.style.right = L + U, I.style.top = z + "px", I.style.width = i.td(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
2396
- var B = document.createElement("div");
2397
- B.style.position = "absolute", B.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.od(B, "cell_box"), B.style.left = "0px", B.style.top = "0px", B.style.right = "0px", B.style.bottom = "0px", I.appendChild(B);
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";
2396
+ 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);
2398
2398
  var O = null;
2399
2399
  this.cells && this.cells[k.toStringSortable()] && (O = this.cells[k.toStringSortable()]);
2400
2400
  var j = O || {};
@@ -2409,7 +2409,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2409
2409
  I.onclick = this.Ad, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
2410
2410
  var t = {};
2411
2411
  if (t.control = i, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
2412
- var n = B;
2412
+ var n = U;
2413
2413
  if (n) {
2414
2414
  t.Oa = n;
2415
2415
  if (e(t.element)) {
@@ -2743,9 +2743,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2743
2743
  if ("undefined" == typeof DayPilot.Scheduler) {
2744
2744
  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
2745
  DayPilot.Scheduler = function (a, s) {
2746
- this.v = "2025.2.678-lite";
2746
+ this.v = "2025.3.686-lite";
2747
2747
  var l = this;
2748
- this.isScheduler = !0, this.id = a, 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.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.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) {
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
2749
  if (!l.Ka)
2750
2750
  return void (l.ie = e);
2751
2751
  var t;
@@ -2792,45 +2792,51 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2792
2792
  r < n && n < s && e.push(a);
2793
2793
  } return e.area = t, e; }, this.se = function () { if (this.floatingEvents) {
2794
2794
  var e = d.we();
2795
- l.xe(), 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); });
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), 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++) {
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++) {
2797
2797
  var t = this.elements.hsections[e], n = t.cell;
2798
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 = 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), 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.xe = function () { for (var e = 0; e < this.elements.sections.length; e++) {
2800
- var t = this.elements.sections[e], n = t.event;
2801
- n && (t.firstChild.innerHTML = n.client.html()), DayPilot.de(t.section), t.section = null;
2802
- } this.elements.sections = []; }, this.setScrollX = function (e) { l.ze.enabled ? (l.ze.scrollXRequested = e, setTimeout(function () { var e = l.ze.scrollXRequested; "number" == typeof e && l.ke(e); }, 0)) : l.ke(e); }, this.ke = function (e) { var t = l.nav.scroll, n = l.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), l.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { l.ze.enabled ? (l.ze.scrollYRequested = e, setTimeout(function () { var e = l.ze.scrollYRequested; "number" == typeof e && l.Be(e); }, 0)) : l.Be(e); }, this.Be = 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) {
2803
- !function () { var e = l.Ae(); 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"; }();
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++) {
2801
+ var n = this.elements.sections[t];
2802
+ if (n.section && n.section.Ae && n.section.Ae.stamp === l.xe)
2803
+ e.push(n);
2804
+ else {
2805
+ var i = n.event;
2806
+ i && (n.firstChild.innerHTML = i.client.html()), DayPilot.de(n.section), n.section = null;
2807
+ }
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"; }();
2804
2810
  var e = 1;
2805
2811
  this.nav.scroll.style.height = "30px";
2806
- var t = this.Xa(), n = t + this.Ce() + e;
2807
- if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", l.nav.resScrollSpace) {
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) {
2808
2814
  var i = 30;
2809
2815
  "Auto" === l.heightSpec && (i = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = i + "px";
2810
2816
  }
2811
2817
  for (var a = 0; a < this.elements.linesVertical.length; a++)
2812
2818
  this.elements.linesVertical[a].style.height = this.fe + "px";
2813
- } }, this.Ee = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = l.startDate.addDays(l.days), n = 0; n < e.length; n++) {
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++) {
2814
2820
  var i = e[n].groupBy, a = e[n].format;
2815
2821
  "Default" === i && (i = this.cellGroupBy);
2816
2822
  for (var o = [], r = l.startDate; r.ticks < t.ticks;) {
2817
2823
  var s = {};
2818
- if (s.start = r, s.end = this.Fe(s.start, i), s.start.ticks === s.end.ticks)
2824
+ if (s.start = r, s.end = this.He(s.start, i), s.start.ticks === s.end.ticks)
2819
2825
  break;
2820
2826
  s.left = this.getPixels(s.start).left;
2821
2827
  var d = this.getPixels(s.end).left, c = d - s.left;
2822
- s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ge()) : s.text = this.He(s, i), c > 0 && o.push(s), r = s.end;
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;
2823
2829
  }
2824
2830
  this.timeHeader.push(o);
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.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.Ie(e, n); if (!i)
2826
- return null; var a = i.x, o = l.Je(a); if (!o)
2827
- return null; var r = n && !t ? o.end : o.start; return t ? r.addTime(this.Bb(i.offset)) : r; }, this.Ie = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), i = l.Je(n); if (!i)
2828
- return null; var a = {}; return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a; }, this.Ke = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Le() * 1e3; if (t < 0)
2829
- return { past: !0 }; var i = Math.floor(t / n); return { i: i, current: l.Je(i) }; }, this.Ab = function (e) { var t = 60 * l.Le() * 1e3, n = l.cellWidth; return Math.floor(n * e / t); }, this.Bb = function (e) { var t = 60 * l.Le() * 1e3, n = l.cellWidth; return Math.floor(e / n * t); }, this.Me = function (e) { DayPilot.Global.touch.start || n.Ne || (l.Oe = {}, l.va(this, e)); }, this.va = function (e, t) { e.event && l.Pe(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
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) {
2830
2836
  var t = this.event;
2831
2837
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
2832
2838
  return !1;
2833
- l.Qe(e);
2839
+ l.Se(e);
2834
2840
  var n = {};
2835
2841
  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))
2836
2842
  return !1;
@@ -2840,11 +2846,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2840
2846
  i ? i.show(t) : l.contextMenu && l.contextMenu.show(this.event);
2841
2847
  }
2842
2848
  return "function" == typeof l.onEventRightClicked && l.onEventRightClicked(n), !1;
2843
- } }, this.Je = function (e) { var t = l.Le(), 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.Pe = function (e, t) { if ("boolean" == typeof t)
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)
2844
2850
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
2845
2851
  var i = t.ctrlKey, a = t.metaKey;
2846
2852
  if (n.client.clickEnabled()) {
2847
- l.Qe(t);
2853
+ l.Se(t);
2848
2854
  var o = {};
2849
2855
  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);
2850
2856
  }
@@ -2854,80 +2860,80 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2854
2860
  }
2855
2861
  "function" == typeof l.onEventDeleted && l.onEventDeleted(t);
2856
2862
  } }, 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) {
2857
- n = l.Re(n);
2863
+ n = l.Te(n);
2858
2864
  var a = {};
2859
2865
  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"]); };
2860
2866
  var o = function () { if (!a.preventDefault.value) {
2861
2867
  switch (a.loaded = {}, t = a.newStart, n = a.newEnd, l.eventResizeHandling) {
2862
- case "Update": l.Se(a);
2868
+ case "Update": l.Ue(a);
2863
2869
  }
2864
2870
  "function" == typeof l.onEventResized && l.onEventResized(a);
2865
2871
  } };
2866
2872
  "function" == typeof l.onEventResize && l.onEventResize(a), a.async || o();
2867
- } }, this.qb = function (e) { e = e || {}, clearTimeout(l.Te), l.timeHeader = null, l.cellProperties = {}, l.Ee(), l.Ue(), l.events.Ve(), l.ca.Md(), l.clearSelection(), this.ha(), l.We(), l.Xe(), l.rb(), l.Ye(), l.Ze(), l.$e(), l.ia(), this.Y(), this._e(), this.af(), l.ma(), this.bf(), 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.cf(), this.df(); }, this.df = function () { if ("function" == typeof l.onAfterUpdate) {
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) {
2868
2874
  var e = {};
2869
2875
  l.onAfterUpdate(e);
2870
2876
  } }, this.update = function (e) { if (!l.Ka)
2871
2877
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (l.Q)
2872
2878
  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); };
2873
2879
  var c = {};
2874
- c.timeout = null, c.options = null, c.enabled = !1, c.request = function (e) { c.enabled ? (clearTimeout(c.timeout), c.ef(e), c.timeout = setTimeout(c.doit)) : (c.ef(e), c.doit()); }, c.ef = function (e) { if (e) {
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) {
2875
2881
  c.options || (c.options = {});
2876
2882
  for (var t in e)
2877
2883
  c.options[t] = e[t];
2878
- } }, 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.ff = function (e) { e.forEach(function (e) { l.gf(e.index); }); }, this.hf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return l.rowlist[e]; }) : []; }, this.if = function (e, t, n) { e = DayPilot.ua(e), e = l.hf(e), l.ff(e), this.jf ? (this.We(), this.Ze(), this._e(), e.forEach(function (e) { l.kf(e.index); }), e.forEach(function (e) { l.lf(e.index); }), this.bf(), this.mf()) : (e.forEach(function (e) { t || l.kf(e.index), l.lf(e.index); }), e.forEach(function (e) { l.nf(e.index); }), l.bf()), l.se(), n && n(), this.af(); }, this.Re = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.of = function (e) {
2879
- return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1);
2880
- }, this.pf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, i, a) { if (l.qf = null, "Disabled" !== l.eventMoveHandling) {
2881
- n = l.Re(n);
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);
2882
2888
  var o = {};
2883
2889
  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; };
2884
2890
  var r = function () { if (o.loaded = function () { }, o.preventDefault.value)
2885
- return void l.rf(); switch (t = o.newStart, n = o.newEnd, l.eventMoveHandling) {
2886
- case "Update": l.Se(o);
2887
- } l.rf(), "function" == typeof l.onEventMoved && l.onEventMoved(o); };
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); };
2888
2894
  o.async = !1, o.loaded = function () { r(); }, "function" == typeof l.onEventMove && l.onEventMove(o), o.async || r();
2889
- } }, this.Se = 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.sf(); }, this.tf = function (e) { if (e)
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)
2890
2896
  if (e.args)
2891
2897
  l.O(e.args.start, e.args.end, e.args.resource);
2892
2898
  else {
2893
- var t = l.uf(e);
2899
+ var t = l.xf(e);
2894
2900
  if (!t)
2895
2901
  return;
2896
2902
  l.O(t.start, t.end, t.resource);
2897
2903
  } }, this.O = function (e, t, n) { if ("Disabled" !== l.timeRangeSelectedHandling) {
2898
2904
  var i = t;
2899
- t = l.Re(i);
2905
+ t = l.Te(i);
2900
2906
  var a = {};
2901
2907
  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) {
2902
2908
  if (l.onTimeRangeSelect(a), a.preventDefault.value)
2903
2909
  return;
2904
2910
  e = a.start, t = a.end;
2905
2911
  }
2906
- t = l.of(t), l.vf(l.wf, e, t), l.xf(l.wf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
2907
- } }, this.vf = function (e, t, n) { if (e) {
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
2914
  var i, a = n;
2909
- t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (i = l.Ke(t), e.start.x = i.i, e.start.time = t);
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);
2910
2916
  var o = l.startDate.addDays(l.days);
2911
- a.getTime() > o.getTime() ? (e.end.x = l.yf(), e.end.time = o.getTime()) : (i = l.Ke(a.addMilliseconds(-1)), e.end.x = i.i, e.end.time = n);
2912
- } }, this.zf = function (e, t) { l.Af(e, t); }, this.Af = 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.Bf = 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.Cf(e, t), a = l.Df(i), o = l.Je(i.start.x), r = l.Je(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.Cf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var i = l.Ie(e), a = l.Ie(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.Ef(o).i, n.end.y = l.Ef(r).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var s = l.yf(); return n.end.x >= s && (n.end.x = s - 1), n; }, this.Df = function (e) { e || (e = this.Cf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
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
2919
  var i = l.rowlist[n];
2914
2920
  i && t.push(i.id);
2915
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) {
2916
2922
  e.Q = !0;
2917
- for (var t in e.Ff) {
2918
- var i = e.Ff[t];
2923
+ for (var t in e.If) {
2924
+ var i = e.If[t];
2919
2925
  DayPilot.isArray(i) ? i.forEach(function (e) { clearTimeout(e); }) : clearTimeout(i);
2920
2926
  }
2921
- 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.De = 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;
2922
- } }, this.disposed = function () { return l.Q; }, this.ba = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.Gf(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.Ef = function (e) { for (var t, n = l.rowlist, i = {}, a = 0, o = 0, r = n.length, s = 0; s < r; s++) {
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
2929
  var d = n[s];
2924
2930
  if (o += d.height, a = o - d.height, t = d, i.top = a, i.bottom = o, i.i = s, i.element = t, e < o)
2925
2931
  break;
2926
- } return i; }, this.Hf = function (e) { if (e > this.rowlist.length - 1)
2932
+ } return i; }, this.Kf = function (e) { if (e > this.rowlist.length - 1)
2927
2933
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
2928
2934
  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)
2929
2935
  return null; if ("function" == typeof e)
2930
- return l.If(e); for (var t = l.events.list.length, n = 0; n < t; n++)
2936
+ return l.Lf(e); for (var t = l.events.list.length, n = 0; n < t; n++)
2931
2937
  if (l.events.list[n].id === e)
2932
2938
  return new DayPilot.Event(l.events.list[n], l); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
2933
2939
  for (var t = l.events.list.length, n = [], i = 0; i < t; i++) {
@@ -2938,13 +2944,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2938
2944
  } if ("object" == typeof e)
2939
2945
  return l.events.findAll(function (t) { for (var n in e)
2940
2946
  if (e[n] !== t.data[n])
2941
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.If = function (e) { for (var t = l.events.list.length, n = 0; n < t; 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++) {
2942
2948
  var i = new DayPilot.Event(l.events.list[n], l);
2943
2949
  if (e(i))
2944
2950
  return i;
2945
- } return null; }, this.events.focus = function (e) { var t = l.Jf(e); t && t.focus(); }, this.events.scrollIntoView = function (e) { if (l.Jf(e)) {
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)) {
2946
2952
  var t = e.start(), n = l.getViewport();
2947
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.Kf(), e.start(), e.end()) && l.scrollTo(t, "fast", "middle");
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");
2948
2954
  var i = e.resource();
2949
2955
  l.getViewport().resources.indexOf(i) === -1 && l.scrollToResource(i);
2950
2956
  } }, this.events.all = function () { for (var e = [], t = 0; t < l.events.list.length; t++) {
@@ -2970,43 +2976,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2970
2976
  else {
2971
2977
  var o = e, r = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
2972
2978
  o += o.indexOf("?") > -1 ? "&" + r : "?" + r, DayPilot.ajax({ "method": "GET", "url": o, "success": a, "error": i });
2973
- } }, this.events.Lf = function (e) { var t = []; return l.rowlist.forEach(function (n) { l.Mf(n.index); for (var i = 0; i < n.events.length; 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++) {
2974
2980
  var a = n.events[i].data;
2975
- if (l.Nf(a, e)) {
2981
+ if (l.Qf(a, e)) {
2976
2982
  t.push(n), n.events.splice(i, 1);
2977
2983
  break;
2978
2984
  }
2979
- } }), t; }, this.events.Of = function (e) { if (!e)
2985
+ } }), t; }, this.events.Rf = function (e) { if (!e)
2980
2986
  return null; for (var t = l.rowlist, n = 0; n < t.length; n++) {
2981
2987
  var i = t[n];
2982
- l.Mf(i.index);
2988
+ l.Pf(i.index);
2983
2989
  for (var a = 0; a < i.events.length; a++) {
2984
2990
  var o = i.events[a];
2985
- if (l.Nf(o.data, e))
2991
+ if (l.Qf(o.data, e))
2986
2992
  return i.events[a];
2987
2993
  }
2988
- } return null; }, this.events.Pf = function (e) { var t = [], n = l.Qf(), i = DayPilot.indexOf(l.events.list, e); l.yb(i); var a = l.rowlist, o = !1; return a.forEach(function (a) { if (!o) {
2989
- l.Mf(a.index);
2990
- var r = l.Rf(e, a);
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);
2991
2997
  r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.xb.events[i]), t.push(a), n || (o = !0));
2992
- } }), t; }, this.Nf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
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)) {
2993
2999
  var i = l.events.find(e.id);
2994
3000
  return l.events.remove(i), void l.events.add(e);
2995
- } var a = {}; if (a.oldEvent = new DayPilot.Event(e.copy(), l), a.newEvent = new DayPilot.Event(e.temp(), l), n = n || {}, l.events.list.find(function (t) { return l.Nf(t, e.data); })) {
2996
- l.ze.Sf && (l.ze.skip = !0);
2997
- var o = l.events.Lf(e.data);
2998
- e.commit(), o = o.concat(l.events.Pf(e.data)), l.events.Tf(o);
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);
2999
3005
  } }, this.events.remove = function (e) { if (e) {
3000
3006
  if ("string" == typeof e || "number" == typeof e) {
3001
3007
  var t = l.events.find(e);
3002
3008
  return void l.events.remove(t);
3003
3009
  }
3004
- ({}).e = new DayPilot.Event(e.data, l);
3005
- var n = l.Uf(e.data);
3006
- n && l.events.list.splice(n.index, 1), l.ze.Sf && (l.ze.skip = !0);
3007
- var i = l.events.Lf(e.data);
3008
- l.events.Tf(i);
3009
- } }, 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.Uf(e); if (i) {
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) {
3010
3015
  if (!a)
3011
3016
  throw new DayPilot.Exception("Unexpected: event not found in list");
3012
3017
  }
@@ -3015,78 +3020,77 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3015
3020
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
3016
3021
  a || l.events.list.push(e.data);
3017
3022
  } if (l.Ka) {
3018
- l.ze.Sf && (l.ze.skip = !0);
3019
- ({}).e = e;
3020
- var o = l.events.Pf(e.data);
3021
- l.events.Tf(o);
3022
- } }, this.events.Vf = 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.Nf(t, e))
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))
3023
3027
  return !1; if (t.resource !== e.resource)
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.Wf = { "rows": [] }, this.events.Xf = null, this.events.Ve = function () { clearTimeout(l.events.Xf), l.events.Xf = null, l.events.Wf.rows = []; }, this.events.Yf = 0, this.events.Tf = function (e) { var t = l.events.Wf.rows; e.forEach(function (e) { t.push(e); }), l.events.Wf.rows = DayPilot.ua(t); var n = l.events.sf; l.events.Xf || (l.events.Xf = setTimeout(n, l.events.Yf)); }, this.events.sf = function () { clearTimeout(l.events.Xf), l.events.Xf = null; var e = l.events.Wf.rows; l.events.Wf.rows = [], l.Zf(e), l.$f(), l.Ka && (l.jf && l.We(), l.ma(), l.if(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return l.ze.skip; }, this.ze.skipped = function () { l.ze.skip = !1; }, this.ze._f = !1, this.ze.Sf = !1, this.jd = {}, this.jd.reactDOM = null, this.jd.react = null, this.ag = function (e) { var t = l.startDate; if (e.ticks === t.ticks)
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)
3025
3029
  return e; var n = t; if (e.ticks < t.ticks) {
3026
3030
  for (; n.ticks > e.ticks;)
3027
- n = n.addTime(60 * -l.Le() * 1e3);
3031
+ n = n.addTime(60 * -l.Ne() * 1e3);
3028
3032
  return n;
3029
- } var i = this.Ke(e); if (i.current)
3030
- return i.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Gf = function (e) { var t = this.Ef(l.coords.y); if ("function" != typeof e.end)
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)
3031
3035
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
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.bg(i), o = 0, r = l.coords.x; a && (o = e.start().getTime() - this.ag(e.start()).getTime()); var s = 0; if (n.cg)
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)
3033
3037
  if (a) {
3034
- var d = e.start(), c = this.ag(d);
3035
- s = n.cg.getTime() - c.getTime();
3036
- var u = 60 * l.Le() * 1e3;
3038
+ var d = e.start(), c = this.dg(d);
3039
+ s = n.fg.getTime() - c.getTime();
3040
+ var u = 60 * l.Ne() * 1e3;
3037
3041
  s = Math.floor(s / u) * u;
3038
3042
  }
3039
3043
  else
3040
- s = n.cg.getTime() - e.start().getTime(); var h = this.getDate(r, !0).addTime(-s); n.dg && (h = e.start()); var v = l.snapToGrid; v && (h = this.ag(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.Le = function () { switch (this.scale) {
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) {
3041
3045
  case "CellDuration": return this.cellDuration;
3042
3046
  case "Minute": return 1;
3043
3047
  case "Hour": return 60;
3044
3048
  case "Day": return 1440;
3045
3049
  case "Week": return 10080;
3046
- } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.eg = function (e) { return e.end.ticks - e.start.ticks; }, this.fg = function () { var e = n.gg.width, t = n.gg.left, i = n.hg, a = n.dg.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.gg.start = o, n.gg.end = r; }, this.ig = function () { var e = l.coords, t = n.dg.dpBorder, i = n.dg.event, a = i.part.left; "right" === t && (a += i.part.width); var o, r, s = n.dg.event.calendar.cellWidth, d = i.part.width, c = i.part.left, u = 0, h = e.x - a, f = l.snapToGrid; if ("right" === t) {
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) {
3047
3051
  if (o = c, f) {
3048
- var v = l.Ie(d + c + h).cell, p = l.Ie(c).cell, m = p.left + p.width - c;
3052
+ var v = l.Ke(d + c + h).cell, p = l.Ke(c).cell, m = p.left + p.width - c;
3049
3053
  r = v.left + v.width - c, r < m && (r = m);
3050
3054
  }
3051
3055
  else
3052
3056
  r = d + h;
3053
- var g = l.Ae();
3054
- c + r > g && (r = g - c), n.gg.left = c, n.gg.width = r, n.gg.style.left = c + "px", n.gg.style.width = r + "px";
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";
3055
3059
  }
3056
3060
  else {
3057
3061
  if ("left" !== t)
3058
3062
  throw new DayPilot.Exception("Invalid dpBorder.");
3059
3063
  f ? (h >= d && (h = d), o = Math.floor((c + h + 0) / s) * s, o < u && (o = u)) : o = c + h, r = d - (o - c);
3060
3064
  var y = c + d, b = s;
3061
- f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, r < b && (r = b, o = y - r), n.gg.left = o, n.gg.width = r, n.gg.style.left = o + "px", n.gg.style.width = r + "px";
3062
- } l.fg(); }, this.jg = function () { if (l.coords && n.kg) {
3063
- var e = n.lg, t = this.Gf(n.kg);
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);
3064
3068
  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;
3065
- } }, this.mg = function () { return this.rowHeaderWidth; }, this.ng = function () { return this.og(l.progressiveRowRenderingPreload); }, this.og = function (e) { e = e || 0; var t = 0, n = l.rowlist.length; if (l.progressiveRowRendering) {
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) {
3066
3070
  var i = l.ne();
3067
3071
  t = i.yStart, n = i.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(l.rowlist.length, n + e);
3068
- } return { "start": t, "end": n }; }, this.Xe = function () { function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.pg = !0; var t = this.mg(); e(); var n = this.divHeader; if (n.style.width = t + "px", n.style.height = l.fe + "px", l.divHeader = n, l.progressiveRowRendering)
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)
3069
3073
  i();
3070
3074
  else
3071
3075
  for (var a = this.rowlist.length, o = 0; o < a; o++)
3072
- l.qg(o); l.rg(), this.divResScroll.appendChild(n); }, this.sg = function () { if (l.progressiveRowRendering)
3073
- for (var e = this.ng(), t = 0; t < l.rowlist.length; t++)
3074
- e.start <= t && t < e.end ? l.qg(t) : l.tg(t); }, this.rg = function () { if (!l.ca.ug()) {
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()) {
3075
3079
  var e = l.divHeader, t = r();
3076
3080
  t.style.position = "absolute", e.appendChild(t), l.nav.resScrollSpace = t;
3077
3081
  var n = r();
3078
3082
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
3079
- var i = this.mg(), t = l.nav.resScrollSpace;
3083
+ var i = this.pg(), t = l.nav.resScrollSpace;
3080
3084
  t.style.width = i + "px", t.style.top = this.fe + "px";
3081
- } }, this.tg = function (e) { var t = l.divHeader.rows[e]; t && (DayPilot.de(t), l.divHeader.rows[e] = null); }, this.gf = function (e) { this.tg(e), this.qg(e); }, this.qg = function (e) { var t = l.rowlist, n = l.divHeader; if (n && !n.rows[e]) {
3082
- var i = this.mg(), a = t[e];
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];
3083
3087
  if (a) {
3084
- var o = this.vg(a), s = r();
3088
+ var o = this.yg(a), s = r();
3085
3089
  s.style.position = "absolute", s.style.top = a.top + "px", n.rows[e] = s, s.row = a, s.index = e;
3086
3090
  var d = o.row, c = this.rowHeaderWidth;
3087
3091
  s.style.width = c + "px", s.style.border = "0px none";
3088
3092
  var u = d.toolTip || d.toolTip;
3089
- u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.wg;
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;
3090
3094
  var h = r();
3091
3095
  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);
3092
3096
  var f = d.backColor || d.backColor;
@@ -3123,17 +3127,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3123
3127
  }
3124
3128
  s.appendChild(h), n.appendChild(s), h.style.width = i + "px";
3125
3129
  }
3126
- } }, this.wg = function (e) { var t = this.row, n = l.xg(t, this.index); l.zf(n, e); }, this.yg = function (e) { if ("Disabled" !== l.timeHeaderClickHandling) {
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) {
3127
3131
  var t = {};
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.Le())), l.Bf(t);
3129
- } }, this.zg = function (e) { if ("Disabled" !== l.timeHeaderRightClickHandling) {
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) {
3130
3134
  e.cancelBubble = !0, e.preventDefault();
3131
3135
  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.Le()));
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()));
3133
3137
  var n = {};
3134
3138
  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);
3135
- } }, this.xg = function (e) { return new DayPilot.Row(e, l); }, this.Mf = function (e) { var t = l.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Ag = {}, 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.Ag = {}; for (var a = 0; a < n.length; a++) {
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++) {
3137
3141
  var o = n[a];
3138
3142
  if (o) {
3139
3143
  if ("object" != typeof o)
@@ -3145,23 +3149,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3145
3149
  if (!("string" == typeof o.id || "number" == typeof o.id))
3146
3150
  throw new DayPilot.Exception("All events must have an id property (string or number)");
3147
3151
  var r = "_" + o.id;
3148
- if (l.Ag[r])
3152
+ if (l.Dg[r])
3149
3153
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + r);
3150
- l.Ag[r] = !0, i && this.yb(a), t = l.Bg(o.resource);
3154
+ l.Dg[r] = !0, i && this.yb(a), t = l.Eg(o.resource);
3151
3155
  for (var s = 0; t && s < t.length; s++) {
3152
- var d = t[s], c = this.Rf(o, d);
3156
+ var d = t[s], c = this.Uf(o, d);
3153
3157
  c && i && (c.cache = this.xb.events[a]);
3154
3158
  }
3155
3159
  }
3156
- } l.rowlist.forEach(function (e) { l.Cg(e); }), l.$f(); }, this.Dg = {};
3157
- var u = this.Dg;
3160
+ } l.rowlist.forEach(function (e) { l.Fg(e); }), l.bg(); }, this.Gg = {};
3161
+ var u = this.Gg;
3158
3162
  u.rowcache = {}, u.prepareRows = function (e) { u.rowcache = {}; for (var t = l.rowlist, n = 0; n < t.length; n++) {
3159
3163
  var i = t[n];
3160
- if (e && i.resetEvents(), l.Mf(i.index), i.id) {
3164
+ if (e && i.resetEvents(), l.Pf(i.index), i.id) {
3161
3165
  var a = typeof i.id + "_" + i.id;
3162
3166
  u.rowcache[a] || (u.rowcache[a] = []), u.rowcache[a].push(i);
3163
3167
  }
3164
- } }, u.loadEvent = function (e) { }, this.Bg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Qf = function () { for (var e = {}, t = 0; t < l.rowlist.length; t++) {
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++) {
3165
3169
  var n = l.rowlist[t], i = n.id;
3166
3170
  if (e[i])
3167
3171
  return !0;
@@ -3170,31 +3174,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3170
3174
  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) {
3171
3175
  var o = {};
3172
3176
  o.e = i, o.data = i, this.onBeforeEventRender(o);
3173
- } t[e] = i; }, this.Cg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.zb); for (var t = 0; t < e.events.length; t++) {
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++) {
3174
3178
  var n = e.events[t];
3175
3179
  e.putIntoLine(n);
3176
- } }, this.Zf = function (e) { e = DayPilot.ua(e), e = l.hf(e), e.forEach(function (e) { l.Cg(e); }), e.forEach(function (e) { l.Eg(e); }); }, this.Rf = function (e, t) { var n = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end); i = l.of(i); var a = n.ticks, o = i.ticks, r = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks; if (o < a)
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)
3177
3181
  return null; var d = null; if ("function" == typeof l.onBeforeEventRender) {
3178
3182
  var c = DayPilot.indexOf(l.events.list, e);
3179
3183
  d = l.xb.events[c];
3180
3184
  } if (t.id !== e.resource || (o <= r || a >= s) && (a !== o || a !== r))
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.bg(o - a)) {
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)) {
3182
3186
  var g = h.boxLeft, y = v.boxRight;
3183
3187
  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);
3184
3188
  }
3185
3189
  else
3186
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))
3187
3191
  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++) {
3188
- var n = l.xg(l.rowlist[t]);
3192
+ var n = l.Ag(l.rowlist[t]);
3189
3193
  e.push(n);
3190
3194
  } 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) {
3191
- var n = l.Bg(e);
3195
+ var n = l.Eg(e);
3192
3196
  e || (n = l.rowlist);
3193
3197
  var i = null;
3194
3198
  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;
3195
3199
  } if ("function" != typeof 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.xg(t)); }); if (o)
3197
- return l.xg(o); }, this.rows.load = function (e, t, n) { if (!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)
3198
3202
  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 {
3199
3203
  n = JSON.parse(a.responseText);
3200
3204
  }
@@ -3217,22 +3221,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3217
3221
  if (e = l.rows.find(t.id), !e)
3218
3222
  return;
3219
3223
  e.data = t;
3220
- } var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = e.parent() ? e.parent().$.row : null, s = l.Fg(o), e = l.Gg(s, r); e.level = a.level, e.index = n, e.top = a.top, e.height = a.height, i[n] = e, e.resetEvents(), l.Mf(e.index), l.Hg(e), l.Cg(e), l.gf(e.index), l._e(), l.bf(); }, this.Hg = function (e) { for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
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++) {
3221
3225
  var o = t[a];
3222
3226
  if (o) {
3223
3227
  if (o instanceof DayPilot.Event)
3224
3228
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3225
3229
  if (o.resource === e.id) {
3226
3230
  i && this.yb(a);
3227
- var r = this.Rf(o, e);
3231
+ var r = this.Uf(o, e);
3228
3232
  r && i && (r.cache = this.xb.events[a]);
3229
3233
  }
3230
3234
  }
3231
- } }, this.Ue = 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.Ig(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Kf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Kf(); }, this.Gg = 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.Jg, 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.of(o.end());
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());
3234
3238
  DayPilot.Util.overlaps(o.start(), r, t, n) && i.push(o);
3235
- } return i; }; }, t.Kg = 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++) {
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++) {
3236
3240
  var r = this[o];
3237
3241
  if (!(i < r.part.left || e > r.part.left + r.part.width - 1)) {
3238
3242
  if (DayPilot.contains(n, r.data))
@@ -3243,59 +3247,54 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3243
3247
  var a = this.lines[i];
3244
3248
  if (a.isFree(e, n))
3245
3249
  return i;
3246
- } var a = t.Kg(); 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.Ig = function (e) { if (e)
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)
3247
3251
  for (var t = l.rowlist, n = 0; n < e.length; n++)
3248
3252
  if (e[n]) {
3249
3253
  var i = {};
3250
3254
  i.index = n;
3251
- var a = this.Fg(e[n], i), o = l.Gg(a, parent);
3255
+ var a = this.Ig(e[n], i), o = l.Jg(a, parent);
3252
3256
  o.index = n, t.push(o);
3253
- } }, this.vg = function (e) { var t = {}; return t.row = this.xg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Fg = function (e, t) { var n = { get $data() { return this.Jg; } }; for (var i in t)
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)
3254
3258
  n[i] = t[i]; for (var i in e)
3255
- n[i] = e[i]; return n.html = l.$a(e.name, e.html), n.Jg = e, n; }, this.Lg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = h.Mg, this.nav.top.ontouchmove = h.Ng, this.nav.top.ontouchend = h.Og; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.eb()), t.appendChild(n), t.appendChild(this.Pg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ce() + this.Xa() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.marginRight = "1px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ce() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, a.appendChild(l.Qg()), a.appendChild(l.Rg()), 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.Ce(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Sg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = l.ng(), i = n.start; i < n.end; i++) {
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++) {
3256
3260
  var a = t.rows[i];
3257
3261
  if (a) {
3258
3262
  var o = l.rowHeaderWidth;
3259
3263
  a.style.width = o + "px";
3260
3264
  a.firstChild.style.width = o + "px";
3261
3265
  }
3262
- } l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this.$e = function () { this.Sg(), this.Tg(); }, this.eb = function () { var e = this.rowHeaderWidth, t = r(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ce() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Ce = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Ug = null, this.Pg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Xa() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = l.L("_rowheader_scroll"); var i = l.ca.ug(); i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Vg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (l.Ug && clearTimeout(l.Ug), i) {
3263
- var a = function () { var t = l.Wg() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
3264
- t ? n.Vg && (l.Ug = setTimeout(a, 10)) : l.Ug = setTimeout(a, 10);
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);
3265
3269
  }
3266
3270
  else
3267
- l.Ug = 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.De = e, e; }, this.Xg = null, this.Yg = null, this.Zg = function () { var e = function () { l.$g(), l.cf(); }, t = function () { var t = l.nav.top; if (t) {
3268
- if (!l.Xg)
3269
- return l.Xg = {}, void (l.Xg.width = t.offsetWidth);
3270
- l.Xg.width !== t.offsetWidth && (l.Xg.width = t.offsetWidth, e());
3271
- } }; if (!l.Yg) {
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) {
3272
3276
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3273
- n.observe(l.nav.top), l.Yg = n;
3274
- } }, this.$g = function () { l.Q || (l.ma(), l._g(), l.xb.drawArea = null); }, this._g = function () { var e = l.wf; l.clearSelection(), l.wf = e, l.xf(e, { "justDraw": !0 }); }, this.Qg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ce() + "px", e.style.overflow = "hidden", e.className = l.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Xa = function () { var e = 0, t = l.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = l.Wg(), "Max" === t && e > l.height ? l.height : e); }, this.Wg = 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.Rg = function () {
3275
- var e = r();
3276
- e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Xa() + "px", e.style.top = this.Ce() + 1 + "px",
3277
- 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();
3278
- var t = this.je;
3279
- t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
3280
- var n = this.Ae();
3281
- return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.ah, t.onmousemove = this.bh, t.onmouseup = this.ch, t.oncontextmenu = this.dh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.dh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.dh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.dh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.dh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
3282
- }, this.pb = function () { n.eh || (n.eh = !0, DayPilot.re(document, "mouseup", n.ee), DayPilot.re(document, "touchmove", n.fh), DayPilot.re(document, "touchend", n.gh)); }, this.hh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.cf, l.ih = this.nav.scroll.scrollLeft, l.jh = this.nav.scroll.scrollTop, this.divNorth && (l.kh = this.divNorth.clientWidth); }, this.lh = {}, this.lh.step = 300, this.lh.delay = 10, this.lh.mode = "display", this.lh.layers = !1, this.Eg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
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++) {
3283
3282
  for (var i = e.lines[n], a = 0; a < i.length; a++) {
3284
3283
  var o = i[a];
3285
- o.part.line = n, o.part.top = t, o.part.right = o.part.left + o.part.width;
3284
+ o.part.line = n, o.part.top = t + l.rowMarginTop, o.part.right = o.part.left + o.part.width;
3286
3285
  }
3287
3286
  t += l.eventHeight;
3288
- } }, this.Te = null, this.na = function (e) { if (!l.Q) {
3289
- var t = this.lh.step;
3290
- "display" === this.lh.mode ? this.divEvents.style.display = "none" : "visibility" === this.lh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
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");
3291
3290
  var n = "Progressive" === this.dynamicEventRendering, i = this.ne(), a = i.pixels.top, o = i.pixels.bottom;
3292
- 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.Eg(n); for (var i = 0; i < n.lines.length; i++)
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++)
3293
3292
  for (var a = n.lines[i], o = 0; o < a.length; o++) {
3294
3293
  var r = a[o], s = l.Ta(r);
3295
3294
  if (e && s && (t--, t <= 0))
3296
- return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Te = setTimeout(function () { l.na(e); }, l.lh.delay));
3295
+ return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Ve = setTimeout(function () { l.na(e); }, l.nh.delay));
3297
3296
  } }), this.divEvents.style.display = "", this.se();
3298
- } }, this.lf = function (e) { var t = l.rowlist[e]; this.Eg(t); for (var n = 0; n < t.lines.length; n++)
3297
+ } }, this.of = function (e) { var t = l.rowlist[e]; this.Hg(t); for (var n = 0; n < t.lines.length; n++)
3299
3298
  for (var i = t.lines[n], a = 0; a < i.length; a++) {
3300
3299
  var o = i[a];
3301
3300
  this.Ta(o);
@@ -3303,44 +3302,44 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3303
3302
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
3304
3303
  var n = this.elements.events[t];
3305
3304
  this.Na(n);
3306
- } this.elements.events = []; }, this.kf = function (e) { if (this.elements.events) {
3305
+ } this.elements.events = []; }, this.nf = function (e) { if (this.elements.events) {
3307
3306
  for (var t = this.elements.events.length, n = [], i = 0; i < t; i++) {
3308
3307
  var a = this.elements.events[i];
3309
3308
  a.event.part.dayIndex === e && (this.Na(a), n.push(i));
3310
3309
  }
3311
3310
  for (var i = n.length - 1; i >= 0; i--)
3312
3311
  this.elements.events.splice(n[i], 1);
3313
- } }, 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.mh = function () { if ("Progressive" === this.dynamicEventRendering) {
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) {
3314
3313
  if (l.dynamicEventRenderingCacheSweeping) {
3315
3314
  var e = l.dynamicEventRenderingCacheSize || 0;
3316
3315
  this.divEvents.style.display = "none";
3317
3316
  for (var t = [], n = 0, i = this.elements.events.length, a = i - 1; a >= 0; a--) {
3318
3317
  var o = this.elements.events[a];
3319
- this.nh(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Na(o), n++) : t.unshift(o);
3318
+ this.ph(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Na(o), n++) : t.unshift(o);
3320
3319
  }
3321
3320
  this.elements.events = t, this.divEvents.style.display = "";
3322
3321
  }
3323
- } }, this.oh = function (e) { for (var t = this.ne(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
3322
+ } }, this.qh = function (e) { for (var t = this.ne(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
3324
3323
  var a = this.elements.cells[i];
3325
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));
3326
3325
  } }, this.fb = function (e) { if (e && e.coords) {
3327
3326
  var t = e.coords.x, n = e.coords.y;
3328
3327
  DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.xb.cells[t + "_" + n] = null;
3329
- } }, this.ph = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3328
+ } }, this.rh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3330
3329
  return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, i = 0; i < this.rowlist.length; i++) {
3331
3330
  var a = this.rowlist[i], o = a.top, r = a.top + a.height;
3332
3331
  if (!e || !(n <= o || t >= r))
3333
3332
  for (var s = 0; s < a.lines.length; s++)
3334
3333
  for (var l = a.lines[s], d = 0; d < l.length; d++) {
3335
3334
  var c = l[d];
3336
- if (this.qh(c))
3335
+ if (this.uh(c))
3337
3336
  return !0;
3338
3337
  }
3339
- } return !1; }, this.qh = function (e) { if (e.rendered)
3340
- 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.nh = function (e) { if (!e.rendered)
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)
3341
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)
3342
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))
3343
- 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.rh, P.onmousedown = this.uh, P.onmouseup = this.vh, P.ontouchstart = h.wh, P.ontouchmove = h.xh, P.ontouchend = h.yh, e.client.clickEnabled() && (P.onclick = this.Me), "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) {
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) {
3344
3343
  var A = 100 * e.part.barLeft / _, E = Math.ceil(100 * e.part.barWidth / _), H = r();
3345
3344
  H.className = this.L("_event_bar"), H.style.position = "absolute", k.barBackColor && (H.style.backgroundColor = k.barBackColor);
3346
3345
  var N = r();
@@ -3348,95 +3347,95 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3348
3347
  } P.row = a, P.event = e, S.innerHTML = e.client.innerHTML(); var I = []; return function () { if ("Disabled" !== l.eventDeleteHandling && !k.deleteDisabled) {
3349
3348
  var e = l.durationBarVisible ? l.durationBarHeight : 0;
3350
3349
  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); } });
3351
- } }(), 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.mf = function () { for (var e = 0; e < this.elements.events.length; e++) {
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++) {
3352
3351
  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;
3353
3352
  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";
3354
- } }, this.zh = function (e) { if (!e)
3353
+ } }, this.Bh = function (e) { if (!e)
3355
3354
  return null; for (var t = 0; t < l.elements.events.length; t++) {
3356
3355
  var n = l.elements.events[t];
3357
3356
  if (n.event === e || n.event.data === e.data)
3358
3357
  return n;
3359
- } return null; }, this.Jf = function (e) { var t = l.events.Of(e.data); if (!t)
3360
- return null; var n = l.rowlist[t.part.dayIndex]; return l.Eg(n), l.Ta(t, { "forced": !0 }), l.zh(t); }, this.rh = function (e) { for (var t = this; t && !t.event;)
3361
- t = t.parentNode; t.event; l.Ah(t, e), l.Qe(e); }, this.Oe = {}, this.uh = function (e) { l.Qe(e); var t = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), t.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (n.Ne = !0, n.dg = this, n.hg = this.event, n.Bh = DayPilot.mc(e), o().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && l.Ch(this, e)); }, this.vh = function (e) { DayPilot.Util.mouseButton(e).right && l.xa.call(this, e); }, this.Ch = function (e, t) { var n = l.Oe; l.Qe(t), n.Dh = !0, n.Oe = e, n.kg = e.event, n.Bh = DayPilot.mc(t), n.Eh = DayPilot.mo3(e, t).x, n.cg = l.getDate(l.coords.x, !0); }, this.Fh = {};
3362
- var h = l.Fh;
3363
- "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.Ff = [], h.wh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3364
- t.stopPropagation(), h.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
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;
3365
3364
  var n = this;
3366
- l.coords = h.Hh(t);
3365
+ l.coords = h.Jh(t);
3367
3366
  var i = l.tapAndHoldTimeout;
3368
- h.Ff.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var i = n.event; switch (l.eventTapAndHoldHandling) {
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) {
3369
3368
  case "Move": if (i.client.moveEnabled()) {
3370
3369
  var a = e(t);
3371
- h.Ch(n, a);
3370
+ h.Eh(n, a);
3372
3371
  }
3373
3372
  } }, i));
3374
- } }, h.xh = function (e) { h.Gh(), DayPilot.Global.touch.start = !1; }, h.yh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3375
- if (h.Gh(), DayPilot.Global.touch.start) {
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) {
3376
3375
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3377
3376
  var t = this;
3378
- setTimeout(function () { l.Pe(t, e); });
3377
+ setTimeout(function () { l.Re(t, e); });
3379
3378
  }
3380
3379
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3381
- } }, h.Mg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
3382
- h.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
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;
3383
3382
  var t = l.tapAndHoldTimeout;
3384
- h.Ff.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), l.coords = h.Hh(e), h.Ih = l.Jh(); }, t));
3385
- l.coords = h.Hh(e);
3386
- } }, h.Ng = function (e) { if (h.Gh(), DayPilot.Global.touch.start = !1, n.dg)
3387
- return e.preventDefault(), void h.Kh(); if (DayPilot.Global.touch.active) {
3388
- if (e.preventDefault(), l.coords = h.Hh(e), n.Oe)
3389
- return void h.Lh();
3390
- if (h.Ih) {
3391
- var t = h.Ih;
3392
- t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.xf(t);
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);
3393
3392
  }
3394
- } }, h.debug = function (e) { }, h.Og = function (e) { h.Gh(); if (DayPilot.Global.touch.active) {
3395
- if (n.Oe) {
3393
+ } }, h.debug = function (e) { }, h.Qg = function (e) { h.Ih(); if (DayPilot.Global.touch.active) {
3394
+ if (n.Qe) {
3396
3395
  e.preventDefault();
3397
- var t = n.kg;
3398
- if (l !== n.lg.calendar)
3396
+ var t = n.ng;
3397
+ if (l !== n.og.calendar)
3399
3398
  return;
3400
- var i = n.lg.start, a = n.lg.end, r = n.lg.row.id;
3401
- DayPilot.Util.removeClass(n.Oe, l.L("_event_moving_source")), DayPilot.de(n.lg), n.lg.calendar = null, o().style.cursor = "", n.Oe = null, n.kg = null, n.lg = null, l.M(t, i, a, r);
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);
3402
3401
  }
3403
- if (h.Ih) {
3404
- var s = h.Ih;
3405
- h.Ih = null;
3402
+ if (h.Kh) {
3403
+ var s = h.Kh;
3404
+ h.Kh = null;
3406
3405
  var d = l.elements.range2;
3407
- d && d.overlapping ? l.clearSelection() : l.tf(s);
3406
+ d && d.overlapping ? l.clearSelection() : l.wf(s);
3408
3407
  }
3409
3408
  }
3410
3409
  else if (DayPilot.Global.touch.start) {
3411
3410
  if (l.coords.x < l.getScrollX())
3412
3411
  return;
3413
- var s = l.Jh();
3414
- l.xf(s);
3412
+ var s = l.Lh();
3413
+ l.Af(s);
3415
3414
  var d = l.elements.range2;
3416
- d && d.overlapping ? l.clearSelection() : l.tf(s);
3417
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, h.Gh = function () { for (var e = 0; e < h.Ff.length; e++)
3418
- clearTimeout(h.Ff[e]); h.Ff = []; }, h.Hh = 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.Ch = function (e, t) { n.Oe = e, n.kg = e.event, n.Bh = t; var i = DayPilot.abs(e); n.Eh = t.x - i.x, n.cg = l.getDate(l.coords.x, !0), n.lg = l.ba(e), l.jg(); }, h.Kh = function () { if (!n.gg) {
3419
- var e = n.dg;
3420
- n.gg = l.ba(e);
3421
- } l.ig(); }, h.Lh = function () { if (!n.lg) {
3422
- var e = n.Oe;
3423
- n.lg = l.ba(e);
3424
- } n.lg.calendar.jg(); }, this.Ah = function (e, t) { var i = this.eventResizeMargin, a = e; if ("undefined" != typeof n) {
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) {
3425
3424
  var o = DayPilot.mo3(e, t);
3426
- if (o && (l.eventOffset = o, !n.dg && !n.Oe)) {
3425
+ if (o && (l.eventOffset = o, !n.gg && !n.Qe)) {
3427
3426
  var r = a.event.part.start.toString() === a.event.start().toString(), s = a.event.part.end.toString() === a.event.rawend().toString();
3428
- 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.dg || n.Oe || (a.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
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");
3429
3428
  }
3430
- } }, this.yf = function () { var e = l.Le(); return l.days * (1440 / e); }, this.uf = function (e) { var e = e || n.Ih || l.wf; if (!e)
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)
3431
3430
  return null; var t = l.rowlist[e.start.y]; if (!t)
3432
- 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.Je(d).start, a = l.Je(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.Ye = 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++)
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++)
3433
3432
  for (var n = this.timeHeader[t], i = 0; i < n.length; i++)
3434
- this.Mh(i, t); var a = this.divNorth; 1 === a.childNodes.length ? a.replaceChild(e, a.childNodes[0]) : (a.innerHTML = "", a.appendChild(e)); var o = this.Ae(); a.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.He = function (e, t) { var n = null, i = this.ca.Ge(), t = t || this.cellGroupBy, a = e.start; switch (t) {
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) {
3435
3434
  case "Minute":
3436
3435
  n = a.toString("m");
3437
3436
  break;
3438
3437
  case "Hour":
3439
- n = "Clock12Hours" === l.ca.Nh() ? a.toString("h tt", i) : a.toString("H", i);
3438
+ n = "Clock12Hours" === l.ca.Ph() ? a.toString("h tt", i) : a.toString("H", i);
3440
3439
  break;
3441
3440
  case "Day":
3442
3441
  n = a.toString(i.datePattern);
@@ -3458,10 +3457,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3458
3457
  break;
3459
3458
  case "Cell":
3460
3459
  var o = (e.end.ticks - e.start.ticks) / 6e4;
3461
- n = this.Oh(a, o);
3460
+ n = this.Qh(a, o);
3462
3461
  break;
3463
3462
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3464
- } return n; }, this.Oh = function (e, t) { var n = this.ca.Ge(), t = t || this.cellDuration; return t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === l.ca.Nh() ? 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.Fe = function (e, t, n) { var i, a = l.startDate.addDays(l.days); t = t || this.cellGroupBy; var o = 60; switch (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) {
3465
3464
  case "Minute":
3466
3465
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), i = e.addMinutes(1);
3467
3466
  break;
@@ -3495,53 +3494,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3495
3494
  i = a;
3496
3495
  break;
3497
3496
  case "Cell":
3498
- var s = this.Ke(e);
3497
+ var s = this.Me(e);
3499
3498
  s.current && (i = s.current.end);
3500
3499
  break;
3501
3500
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3502
- } return i.getTime() > a.getTime() && (i = a), i; }, this.Mh = 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.yg, u.oncontextmenu = this.zg, 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.$f = function () { l.rowlist.forEach(function (e) { var t = e.getHeight(); e.height !== t && (l.jf = !0), e.height = t; }), l.jf && (l.xb.drawArea = null); }, this.Ze = function () { l.rowlist.forEach(function (e) { var t = l.divHeader; if (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) {
3503
3502
  var n = e.index;
3504
3503
  if (t.rows[n]) {
3505
3504
  var i = t.rows[n];
3506
- l.pg && (i.style.top = e.top + "px");
3505
+ l.sg && (i.style.top = e.top + "px");
3507
3506
  var a = e.height;
3508
3507
  i && i.firstChild && parseInt(i.firstChild.style.height, 10) !== a && (i.firstChild.style.height = a + "px");
3509
3508
  }
3510
- } }), l.pg && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.fe + "px"); }, this.ah = function (e) { if (!DayPilot.Global.touch.start && !DayPilot.Global.touch.active) {
3511
- n.Ph, 1, l.Qe(e);
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);
3512
3511
  var t = DayPilot.Util.mouseButton(e);
3513
- if (l.Qh())
3512
+ if (l.Sh())
3514
3513
  return !1;
3515
3514
  if (t.middle || t.right)
3516
3515
  return !1;
3517
- if (l.Rh(l.coords))
3516
+ if (l.Th(l.coords))
3518
3517
  return !1;
3519
3518
  var i = t.left ? "left" : t.right ? "right" : t.middle ? "middle" : "unknown";
3520
- return l.Sh = i, n.Ih = l.Jh(), n.Ih && (n.Th = l), !1;
3521
- } }, this.Jh = function () { var e = {}, t = l.Ie(l.coords.x).x, n = l.getDate(l.coords.x, !0); return e.start = { y: l.Ef(l.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = l, l.xf(e), e; }, this.ch = function (e) { if (l.Oe = {}, l.wf) {
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) {
3522
3521
  if (DayPilot.Util.mouseButton(e).left) {
3523
- var t = l.wf;
3524
- if (l.Rh(l.coords)) {
3525
- var i = function (e) { return function () { n.Ph = null; var t = l.uf(e); if (t) {
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) {
3526
3525
  var i = {};
3527
3526
  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);
3528
3527
  } }; };
3529
3528
  "Disabled" !== l.timeRangeClickHandling && i(t)();
3530
3529
  }
3531
3530
  }
3532
- } }, this.Qh = function () { return !!(n.dg || n.Oe || n.Ih) || !!l.Oe.Dh; }, this.dragInProgress = function () { return l.Qh(); }, this.Qe = 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.bh = function (e) { if (!DayPilot.Global.touch.active) {
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) {
3533
3532
  var t = DayPilot.mc(e);
3534
- if (l.Qe(e), l.Oe.Dh) {
3535
- DayPilot.distance(l.Oe.Bh, t) > 2 && (DayPilot.Util.copyProps(l.Oe, n), o().style.cursor = "move", l.Oe = {});
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 = {});
3536
3535
  }
3537
- n.dg && n.hg.calendar === l ? (n.dg.event || (n.dg.event = n.hg), l.Uh()) : n.kg ? l.Vh() : n.Ih && n.Ih.calendar === l && (n.Ih.moved = !0, l.Wh());
3538
- } }, this.Wh = function () { var e = n.Ih, t = l.Ie(l.coords.x).x, i = l.getDate(l.coords.x, !0); e.end = { x: t, "time": i }, l.xf(e); }, this.Uh = function () { n.gg || (n.gg = l.ba(n.dg)), l.ig(); }, this.Vh = function () { if (!n.lg) {
3539
- DayPilot.Util.addClass(n.Oe, l.L("_event_moving_source"));
3540
- var e = n.kg;
3541
- n.lg = l.ba(e);
3542
- } l.jg(); }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Rh = function (e) { var t = l.wf; if (!t || !t.start || !t.end)
3543
- return !1; var n = this.Hf(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.xf = 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) {
3544
- var h = d ? e.start.x : e.end.x, f = d ? e.end.x : e.start.x, v = l.Je(h), p = l.Je(f);
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);
3545
3544
  t = v.left, n = p.left + p.width;
3546
3545
  }
3547
3546
  else
@@ -3549,76 +3548,105 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3549
3548
  g = r(), g.style.position = "absolute";
3550
3549
  var y = r();
3551
3550
  y.className = l.L("_shadow_inner"), g.appendChild(y), l.divShadow.appendChild(g);
3552
- } 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.Ih) {
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) {
3553
3552
  var i = l.snapToGrid, a = l.rowlist;
3554
3553
  t(e);
3555
- } }, this.Xh = 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.Ff = {}, this.Ff.na = null, this.Ff.drawCells = null, this.Ff.drawRows = null, this.Ff.click = null, this.Ff.resClick = [], this.Ff.updateFloats = null, this.cf = function () { if (!l.Q) {
3556
- l.af();
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();
3557
3556
  var e = l.nav.scroll;
3558
- if (l.ih = e.scrollLeft, l.jh = e.scrollTop, l.kh = e.clientWidth, l.divTimeScroll && (l.divTimeScroll.scrollLeft = l.ih), t && n.Vg ? i() : l.divResScroll.scrollTop = l.jh, l.progressiveRowRendering && (l.Ff.drawRows && (clearTimeout(l.Ff.drawRows), l.Ff.drawRows = null), l.scrollDelayRows > 0 ? l.Ff.drawRows = setTimeout(function () { l.sg(); }, l.scrollDelayRows) : l.sg()), l.Ff.drawCells && (clearTimeout(l.Ff.drawCells), l.Ff.drawCells = null), l.scrollDelayCells > 0)
3559
- l.Ff.drawCells = setTimeout(l.Yh(), l.scrollDelayCells);
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);
3560
3559
  else {
3561
- l.Yh()();
3560
+ l.$h()();
3562
3561
  }
3563
- l.Ff.na && (clearTimeout(l.Ff.na), l.Ff.na = null), l.scrollDelayEvents > 0 ? l.Ff.na = setTimeout(l.Zh(), l.scrollDelayEvents) : l.na(), l.Ff.updateFloats && (clearTimeout(l.Ff.updateFloats), l.Ff.updateFloats = null), l.scrollDelayFloats > 0 ? l.Ff.updateFloats = setTimeout(function () { l.qe(); }, l.scrollDelayFloats) : l.qe(), l.onScrollCalled = !0;
3564
- } }, this.Yh = function () { return function () { l && l.bf(); }; }, this.Zh = function () { return function () { l && (l.ph() ? setTimeout(function () { l.mh(), setTimeout(function () { l.na(!0); }, 50); }, 50) : l.se()); }; }, this.af = function () { l.xb.drawArea = null; }, this.show = function () { l.visible = !0, l.ge = !0, l.nav.top.style.display = "", l.u(), l.$g(), l.cf(); }, this.hide = function () { l.visible = !1, l.ge = !1, l.nav.top.style.display = "none"; }, this.Uf = function (e) { if (!l.events.list)
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)
3565
3564
  return null; for (var t = 0; t < this.events.list.length; t++) {
3566
3565
  var n = this.events.list[t];
3567
- if (l.Nf(n, e)) {
3566
+ if (l.Qf(n, e)) {
3568
3567
  var i = {};
3569
3568
  return i.ex = n, i.index = t, i;
3570
3569
  }
3571
- } return null; }, this.$h = 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++) {
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++) {
3572
3571
  for (var r = t + o, s = 0; s < a; s++) {
3573
3572
  var l = i + s;
3574
3573
  this.hd(r, l);
3575
3574
  }
3576
- this._h(r);
3577
- } for (var d = this.ng(), l = d.start; l < d.end; l++)
3578
- this.ai(l); }, this.bf = function () { if (!l.Q) {
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) {
3579
3578
  var e = l.rowlist;
3580
3579
  if (e && e.length > 0) {
3581
3580
  if (this.cellSweeping) {
3582
3581
  var t = this.cellSweepingCacheSize;
3583
- this.oh(t);
3582
+ this.qh(t);
3584
3583
  }
3585
- this.$h();
3584
+ this.ai();
3586
3585
  }
3587
- this.jf = !1;
3586
+ this.mf = !1;
3588
3587
  } }, this.ne = function () { if (l.xb.drawArea)
3589
3588
  return l.xb.drawArea; if (!this.nav.scroll)
3590
- return null; var e = l.jh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, i = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, a = l.ih - n, o = a + l.kh + 2 * n, r = 0, s = 0; r = l.Ie(a).x, s = l.Ie(o, !0).x; var d = this.yf(); 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.Ef(c).i, f = this.Ef(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.Ae = function () { return l.yf() * l.cellWidth; }, this.ai = function (e) { var t = l.rowlist, n = l.divLines, i = "y_" + e; if (!this.xb.linesHorizontal[i]) {
3591
- var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ae(), c = r();
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();
3592
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;
3593
- } }, this._h = function (e) { var t = l.Je(e); if (t) {
3592
+ } }, this.bi = function (e) { var t = l.Le(e); if (t) {
3594
3593
  var n = l.divLines, i = l.fe, a = "x_" + e;
3595
3594
  if (!this.xb.linesVertical[a]) {
3596
3595
  var o = t.left + t.width - 1, s = r();
3597
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;
3598
3597
  }
3599
- } }, this.We = function () { l.fe = l.bi(l.rowlist); }, this.bi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3598
+ } }, this.Ye = function () { l.fe = l.di(l.rowlist); }, this.di = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
3600
3599
  var i = e[n];
3601
3600
  i.top = t, t += i.height;
3602
- } return t; }, this._e = function () { l.elements.cells = [], l.xb.cells = [], l.divCells.innerHTML = "", l.ci(); }, this.ci = function () { l.divLines.innerHTML = "", l.xb.linesVertical = {}, l.xb.linesHorizontal = {}, l.elements.linesVertical = []; }, this.nf = function (e) { var t = []; for (var n in l.xb.cells)
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)
3603
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) {
3604
- var n = l.Je(e);
3603
+ var n = l.Le(e);
3605
3604
  if (n) {
3606
3605
  var i = l.rowlist, a = l.divCells, o = e + "_" + t;
3607
3606
  if (!this.xb.cells[o]) {
3608
- var s = this.di(e, t), d = r();
3609
- d.style.left = n.left + "px", d.style.top = i[t].top + "px", d.style.width = n.width + "px", d.style.height = i[t].height + "px", d.style.position = "absolute", s && s.backColor && (d.style.backgroundColor = s.backColor), d.className = this.L("_cell"), d.coords = {}, d.coords.x = e, d.coords.y = t, s && s.business && l.cellsMarkBusiness && DayPilot.Util.addClass(d, l.L("_cell_business")), a.appendChild(d), this.elements.cells.push(d), this.xb.cells[o] = d;
3607
+ var s = this.fi(e, t), d = l.gi(e, t), c = r();
3608
+ 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) {
3610
+ switch (c.style.display = "flex", s.horizontalAlignment) {
3611
+ case "right":
3612
+ c.style.justifyContent = "flex-end";
3613
+ break;
3614
+ case "left":
3615
+ c.style.justifyContent = "flex-start";
3616
+ break;
3617
+ case "center": c.style.justifyContent = "center";
3618
+ }
3619
+ switch (s.verticalAlignment) {
3620
+ case "center":
3621
+ c.style.alignItems = "center";
3622
+ break;
3623
+ case "top":
3624
+ c.style.alignItems = "flex-start";
3625
+ break;
3626
+ case "bottom": c.style.alignItems = "flex-end";
3627
+ }
3628
+ }
3629
+ DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
3630
+ }
3631
+ a.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
3610
3632
  }
3611
3633
  }
3612
- } }, this.clearSelection = function () { this.ei(); }, this.fi = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = l.le(n), a = l.Ke(e); if (!a.current)
3613
- throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var o = l.Ke(new DayPilot.Date(t).addMilliseconds(-1)); if (!o.current)
3614
- 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.fi(e, t, n); l.xf(a), i || setTimeout(function () { l.tf(a); }, 0); }, this.rf = function () { var e = n.lg && n.lg.source; e && DayPilot.Util.removeClass(e, l.L("_event_moving_source")), DayPilot.de(n.lg), n.lg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ei = function () { l.divShadow && (l.divShadow.innerHTML = ""), l.elements.range = [], l.elements.range2 = null, l.wf = null, l.gi = null; }, this.ca = {};
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) {
3636
+ var d = e + "_" + t;
3637
+ if (l.beforeCellRenderCaching && l.cf[d])
3638
+ 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 = {};
3615
3643
  var f = this.ca;
3616
- f.Md = function () { delete l.xb.headerHeight; }, f.da = function () { return "Disabled" !== l.xssProtection; }, f.Ge = function () { return DayPilot.Locale.find(l.locale); }, f.Nh = function () { return "Auto" !== l.timeFormat ? l.timeFormat : f.Ge().timeFormat; }, f.ea = function () { if ("Auto" === l.weekStarts) {
3617
- var e = f.Ge();
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();
3618
3646
  return e ? e.weekStarts : 0;
3619
- } return l.weekStarts || 0; }, f.ug = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, f.bg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Le() * 1e3; }, this.di = function (e, t) { var n = e + "_" + t, i = l.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
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])
3620
3648
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
3621
- var a = i[t], o = a.id, r = l.Je(e), s = r.start, d = r.end, c = {};
3649
+ var a = i[t], o = a.id, r = l.Le(e), s = r.start, d = r.end, c = {};
3622
3650
  c.start = s, c.end = d, c.resource = o;
3623
3651
  var u = {};
3624
3652
  u.business = l.isBusiness(c), this.cellProperties[n] = u;
@@ -3637,7 +3665,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3637
3665
  return !0;
3638
3666
  if (o >= s)
3639
3667
  return !1;
3640
- } return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.hi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.hi, this.le = function (e) { return l.Bg(e)[0]; }, this.wb = function () { if (this.id && this.id.tagName)
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)
3641
3669
  this.nav.top = this.id;
3642
3670
  else {
3643
3671
  if ("string" != typeof this.id)
@@ -3649,9 +3677,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3649
3677
  if (this.nav.top.dp === l)
3650
3678
  return l;
3651
3679
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
3652
- } return this.ii(), this.Zg(), this; }, this.ii = function () { this.Lg(), this.pb(), this.aa(), this.hh(), this.qb(); var angular = l.ze.enabled; l.scrollToDate ? l.scrollTo(l.scrollToDate) : l.scrollX || l.scrollY ? l.setScroll(l.scrollX, l.scrollY) : angular || l.cf(), l.scrollToResourceId && (l.scrollToResource(l.scrollToResourceId), l.scrollToResourceId = null); var e = function () { l.scrollY && l.setScroll(l.scrollX, l.scrollY); }; setTimeout(e, 200), this.af(), this.vb(), this.Ka = !0; var t = l.ie; t ? l.scrollTo(t) : l.cf(); }, this.ub = null, this.sb = function (e) { if (e) {
3653
- 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.Be(this.data); } } };
3654
- l.ub = t, l.ze.scrollToRequested && (t.scrollTo.data = l.ze.scrollToRequested, l.ze.scrollToRequested = null), l.ze.scrollXRequested && (t.scrollX.data = l.ze.scrollXRequested, l.ze.scrollXRequested = null), l.ze.scrollYRequested && (t.scrollY.data = l.ze.scrollYRequested, l.ze.scrollYRequested = null);
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);
3655
3683
  for (var n in e)
3656
3684
  t[n] || (l[n] = e[n]);
3657
3685
  for (var n in e)
@@ -3662,61 +3690,55 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3662
3690
  } }, this.vb = function () { var e = l.ub; for (var t in e) {
3663
3691
  var n = e[t];
3664
3692
  n.postInit && n.postInit();
3665
- } l.ub = {}; }, this.Qa = {}, this.Qa.Pa = null, this.Qa.Mb = function (e, t, n) { var i = l.Qa.Pa; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
3666
- var a = i.createVNode(e, n);
3667
- i.render(a, t);
3668
- } }, this.Qa.Ua = function (e, t) { var n = l.Qa.Pa; if ("function" == typeof n.render) {
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) {
3669
3700
  var i = e;
3670
3701
  DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
3671
- } }, this.Qa.Sa = function (e) { var t = l.Qa.Pa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.of, this.internal.adjustEndNormalize = l.pf, this.internal.xssTextHtml = l.$a, this.internal.touch = l.Fh, this.internal.skipUpdate = l.ze.skipUpdate, this.internal.skipped = l.ze.skipped, this.internal.loadOptions = l.sb, this.internal.postInit = l.vb, this.internal.enableAngular2 = function () { l.ze.enabled = !0; }, this.internal.eventsFromAttr = function () { l.ze.Sf = !0; }, this.internal.resourcesFromAttr = function () { l.ze._f = !0; }, this.internal.evImmediateRefresh = function () { l.events.sf(); }, 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);
3672
- }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
3673
- if (!e)
3674
- throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
3675
- if (!t)
3676
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");
3677
- this.ji = {};
3678
- var n = this.ji;
3679
- n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags;
3680
- var i = this;
3681
- i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags,
3682
- i.index = e.index, i.calendar = t, i.data = e.resource, i.ki = 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.ki.events.length; t++)
3683
- e.push(i.ki.events[t]); return e; }, i.events.isEmpty = function () { return 0 === i.ki.events.length; }, i.events.forRange = function (e, t) { return i.ki.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); };
3684
- }, n.Oe = null, n.kg = null, n.Bh = null, n.dg = null, n.hg = null, n.Ne = !1, n.eh = !1, n.Ph = null, n.li = null, n.qc = function (e) { DayPilot.ue(document, "mouseup", n.ee), DayPilot.ue(document, "touchmove", n.fh), DayPilot.ue(document, "touchend", n.gh), n.eh = !1; }, n.fh = function (e) { if (n.dg) {
3685
- var t = n.dg.event.calendar;
3686
- t.coords = t.Fh.Hh(e), t.Fh.Kh(), e.preventDefault();
3687
- } if (n.Oe) {
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);
3703
+ }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3704
+ 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) {
3688
3710
  e.preventDefault();
3689
- var t = n.kg.calendar;
3690
- t.coords = t.Fh.Hh(e), t.Fh.Lh();
3691
- } }, n.gh = function (e) { n.Vg = !1, n.ee(e); }, n.ee = function (e) { if (n.dg) {
3692
- var t = function () { var e = n.hg, t = e.calendar; o().style.cursor = "", n.dg = null, n.hg = null, DayPilot.de(n.gg), n.gg = null, t && (t.mi = null); };
3693
- if (setTimeout(function () { n.Ne = !1; }), !n.gg)
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)
3694
3716
  return void t();
3695
- var a = n.hg, r = a.calendar, s = n.gg.start, l = n.gg.end, d = "left" === n.dg.dpBorder ? "start" : "end";
3717
+ var a = n.kg, r = a.calendar, s = n.jg.start, l = n.jg.end, d = "left" === n.gg.dpBorder ? "start" : "end";
3696
3718
  t(), r.K(a, s, l, d);
3697
3719
  }
3698
- else if (n.kg) {
3699
- var t = function () { DayPilot.Global.movingAreaData = null; var e = n.lg && n.lg.calendar; n.lg && (DayPilot.de(n.lg), n.lg.calendar = null), o().style.cursor = "", n.Oe = null, n.kg = null, e && (e.qf = null); };
3700
- if (!n.lg)
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)
3701
3723
  return void t();
3702
- var a = n.kg, r = n.lg.calendar;
3724
+ var a = n.ng, r = n.og.calendar;
3703
3725
  if (!r)
3704
3726
  return void t();
3705
- if (n.lg.source = n.Oe, !n.lg.row)
3727
+ if (n.og.source = n.Qe, !n.og.row)
3706
3728
  return void t();
3707
- var s = n.lg.start, l = n.lg.end, c = n.lg.row.id;
3708
- n.lg.calendar = null, o().style.cursor = "", n.Oe = null, n.kg = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
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;
3709
3731
  }
3710
- else if (n.Ih) {
3711
- var u = DayPilot.Util.mouseButton(e), h = n.Ih, r = h.calendar, t = function () { };
3712
- r.gi = null;
3732
+ else if (n.Kh) {
3733
+ var u = DayPilot.Util.mouseButton(e), h = n.Kh, r = h.calendar, t = function () { };
3734
+ r.ji = null;
3713
3735
  e.ctrlKey || e.metaKey;
3714
- if (n.Ph)
3715
- return clearTimeout(n.Ph), n.Ph = null, void t();
3716
- r.wf = h, n.Ih = null;
3717
- var f = function (e) { return function () { n.Ph = null, r.tf(e), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling ? i() : r.wf = e; }; }, v = r.Xh(h);
3718
- return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Ph = null);
3719
- } n.Eh = null, n.cg = null; };
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; };
3720
3742
  }
3721
3743
  }(DayPilot);
3722
3744