@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)
@@ -1033,7 +1033,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1033
1033
  if (this instanceof t.Calendar && !this.P && (o = !0, this.P = !0), !o)
1034
1034
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
1035
1035
  var r = this;
1036
- 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) {
1036
+ 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) {
1037
1037
  for (var n = e.parentNode; n && "TD" !== n.tagName;)
1038
1038
  n = n.parentNode;
1039
1039
  var i = r.eventBorderRadius;
@@ -2048,7 +2048,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2048
2048
  if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
2049
2049
  "use strict";
2050
2050
  "undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) {
2051
- this.v = "2025.2.678-lite";
2051
+ this.v = "2025.3.686-lite";
2052
2052
  var t = "navigator_" + (new Date).getTime(), n = this;
2053
2053
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
2054
2054
  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)
@@ -2101,7 +2101,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2101
2101
  var e = function () { }, t = {};
2102
2102
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
2103
2103
  var i = this, a = null;
2104
- 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) {
2104
+ 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) {
2105
2105
  o = o || {};
2106
2106
  var r = null;
2107
2107
  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) {
@@ -2257,8 +2257,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2257
2257
  }(), o.parentLink) {
2258
2258
  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;
2259
2259
  L + T > E && (L = Math.max(0, R.x - T));
2260
- var U = document.body.scrollTop + document.documentElement.scrollTop;
2261
- z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = L + "px", d.style.top = z + "px";
2260
+ var B = document.body.scrollTop + document.documentElement.scrollTop;
2261
+ z + M - B > A && (z = Math.max(0, A - M + B)), d.style.left = L + "px", d.style.top = z + "px";
2262
2262
  }
2263
2263
  d.style.display = "", this.addShadow(d), this.Rb.div = d, o.submenu || (DayPilot.Menu.active = this);
2264
2264
  }
@@ -3058,7 +3058,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3058
3058
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
3059
3059
  var e = {}, t = DayPilot.Util.isVueVNode;
3060
3060
  e.Month = function (n, i) {
3061
- this.v = "2025.2.678-lite", this.nav = {};
3061
+ this.v = "2025.3.686-lite", this.nav = {};
3062
3062
  var a = this;
3063
3063
  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) {
3064
3064
  var t = null;
@@ -3760,7 +3760,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3760
3760
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3761
3761
  var e = DayPilot.Util.isVueVNode;
3762
3762
  DayPilot.Navigator = function (t, n) {
3763
- this.v = "2025.2.678-lite";
3763
+ this.v = "2025.3.686-lite";
3764
3764
  var i = this;
3765
3765
  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 () {
3766
3766
  if (!r.md())
@@ -3830,10 +3830,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3830
3830
  }
3831
3831
  var I = document.createElement("div");
3832
3832
  a.cells[M][C] = I;
3833
- var R = i.zd(M, C), L = R.x, z = R.y, U = r.md() ? "%" : "px";
3834
- 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";
3835
- var B = document.createElement("div");
3836
- 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);
3833
+ var R = i.zd(M, C), L = R.x, z = R.y, B = r.md() ? "%" : "px";
3834
+ 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";
3835
+ var U = document.createElement("div");
3836
+ 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);
3837
3837
  var O = null;
3838
3838
  this.cells && this.cells[k.toStringSortable()] && (O = this.cells[k.toStringSortable()]);
3839
3839
  var j = O || {};
@@ -3849,7 +3849,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
3849
3849
  if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
3850
3850
  var t = {};
3851
3851
  if (t.control = i, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
3852
- var n = B;
3852
+ var n = U;
3853
3853
  if (n) {
3854
3854
  t.Oa = n;
3855
3855
  if (e(t.element)) {
@@ -4345,9 +4345,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4345
4345
  if ("undefined" == typeof DayPilot.Scheduler) {
4346
4346
  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"); };
4347
4347
  DayPilot.Scheduler = function (a, s) {
4348
- this.v = "2025.2.678-lite";
4348
+ this.v = "2025.3.686-lite";
4349
4349
  var l = this;
4350
- 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) {
4350
+ 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) {
4351
4351
  if (e) {
4352
4352
  if (!l.Ka)
4353
4353
  return void (l.ie = e);
@@ -4416,34 +4416,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4416
4416
  }, this.se = function () {
4417
4417
  if (this.floatingEvents) {
4418
4418
  var e = d.we();
4419
- 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); });
4419
+ 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();
4420
4420
  }
4421
- }, 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 () {
4421
+ }, 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 () {
4422
4422
  for (var e = 0; e < this.elements.hsections.length; e++) {
4423
4423
  var t = this.elements.hsections[e], n = t.cell;
4424
4424
  n && t.firstChild && (t.firstChild.innerHTML = l.$a(n.th.text, n.th.innerHTML)), DayPilot.de(t.section), t.section = null;
4425
4425
  }
4426
4426
  this.elements.hsections = [];
4427
- }, 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 () {
4428
- for (var e = 0; e < this.elements.sections.length; e++) {
4429
- var t = this.elements.sections[e], n = t.event;
4430
- n && (t.firstChild.innerHTML = n.client.html()), DayPilot.de(t.section), t.section = null;
4427
+ }, this.ye = function (e, t, n) {
4428
+ var i = e.section;
4429
+ if (i)
4430
+ 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 }));
4431
+ 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";
4432
+ var a = r();
4433
+ 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 = "";
4434
+ var o = e.event, s = o.cache || o.data;
4435
+ s.fontColor && (a.style.color = s.fontColor), this.elements.sections.push(e);
4436
+ }, this.ze = function () {
4437
+ for (var e = [], t = 0; t < this.elements.sections.length; t++) {
4438
+ var n = this.elements.sections[t];
4439
+ if (n.section && n.section.Ae && n.section.Ae.stamp === l.xe)
4440
+ e.push(n);
4441
+ else {
4442
+ var i = n.event;
4443
+ i && (n.firstChild.innerHTML = i.client.html()), DayPilot.de(n.section), n.section = null;
4444
+ }
4431
4445
  }
4432
- this.elements.sections = [];
4433
- }, 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 () {
4446
+ this.elements.sections = e;
4447
+ }, 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 () {
4434
4448
  if (this.nav.scroll) {
4435
- !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"; }();
4449
+ !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"; }();
4436
4450
  var e = 1;
4437
4451
  this.nav.scroll.style.height = "30px";
4438
- var t = this.Xa(), n = t + this.Ce() + e;
4439
- 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) {
4452
+ var t = this.Xa(), n = t + this.Ee() + e;
4453
+ 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) {
4440
4454
  var i = 30;
4441
4455
  "Auto" === l.heightSpec && (i = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = i + "px";
4442
4456
  }
4443
4457
  for (var a = 0; a < this.elements.linesVertical.length; a++)
4444
4458
  this.elements.linesVertical[a].style.height = this.fe + "px";
4445
4459
  }
4446
- }, this.Ee = function () {
4460
+ }, this.Ge = function () {
4447
4461
  this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = [];
4448
4462
  var e = this.timeHeaders;
4449
4463
  e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]);
@@ -4452,42 +4466,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4452
4466
  "Default" === i && (i = this.cellGroupBy);
4453
4467
  for (var o = [], r = l.startDate; r.ticks < t.ticks;) {
4454
4468
  var s = {};
4455
- if (s.start = r, s.end = this.Fe(s.start, i), s.start.ticks === s.end.ticks)
4469
+ if (s.start = r, s.end = this.He(s.start, i), s.start.ticks === s.end.ticks)
4456
4470
  break;
4457
4471
  s.left = this.getPixels(s.start).left;
4458
4472
  var d = this.getPixels(s.end).left, c = d - s.left;
4459
- 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;
4473
+ 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;
4460
4474
  }
4461
4475
  this.timeHeader.push(o);
4462
4476
  }
4463
4477
  }, 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) {
4464
- var i = this.Ie(e, n);
4478
+ var i = this.Ke(e, n);
4465
4479
  if (!i)
4466
4480
  return null;
4467
- var a = i.x, o = l.Je(a);
4481
+ var a = i.x, o = l.Le(a);
4468
4482
  if (!o)
4469
4483
  return null;
4470
4484
  var r = n && !t ? o.end : o.start;
4471
4485
  return t ? r.addTime(this.Bb(i.offset)) : r;
4472
- }, this.Ie = function (e, t) {
4486
+ }, this.Ke = function (e, t) {
4473
4487
  t && (e -= 1);
4474
- var n = Math.floor(e / l.cellWidth), i = l.Je(n);
4488
+ var n = Math.floor(e / l.cellWidth), i = l.Le(n);
4475
4489
  if (!i)
4476
4490
  return null;
4477
4491
  var a = {};
4478
4492
  return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a;
4479
- }, this.Ke = function (e) {
4480
- var t = e.ticks - this.startDate.ticks, n = 60 * l.Le() * 1e3;
4493
+ }, this.Me = function (e) {
4494
+ var t = e.ticks - this.startDate.ticks, n = 60 * l.Ne() * 1e3;
4481
4495
  if (t < 0)
4482
4496
  return { past: !0 };
4483
4497
  var i = Math.floor(t / n);
4484
- return { i: i, current: l.Je(i) };
4485
- }, 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) {
4498
+ return { i: i, current: l.Le(i) };
4499
+ }, 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) {
4486
4500
  if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
4487
4501
  var t = this.event;
4488
4502
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
4489
4503
  return !1;
4490
- l.Qe(e);
4504
+ l.Se(e);
4491
4505
  var n = {};
4492
4506
  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))
4493
4507
  return !1;
@@ -4498,14 +4512,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4498
4512
  }
4499
4513
  return "function" == typeof l.onEventRightClicked && l.onEventRightClicked(n), !1;
4500
4514
  }
4501
- }, 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) {
4515
+ }, 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) {
4502
4516
  if ("boolean" == typeof t)
4503
4517
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters");
4504
4518
  var n = e.event;
4505
4519
  if (n) {
4506
4520
  var i = t.ctrlKey, a = t.metaKey;
4507
4521
  if (n.client.clickEnabled()) {
4508
- l.Qe(t);
4522
+ l.Se(t);
4509
4523
  var o = {};
4510
4524
  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);
4511
4525
  }
@@ -4520,20 +4534,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4520
4534
  }
4521
4535
  }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, i) {
4522
4536
  if ("Disabled" !== this.eventResizeHandling) {
4523
- n = l.Re(n);
4537
+ n = l.Te(n);
4524
4538
  var a = {};
4525
4539
  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"]); };
4526
4540
  var o = function () {
4527
4541
  if (!a.preventDefault.value) {
4528
4542
  switch (a.loaded = {}, t = a.newStart, n = a.newEnd, l.eventResizeHandling) {
4529
- case "Update": l.Se(a);
4543
+ case "Update": l.Ue(a);
4530
4544
  }
4531
4545
  "function" == typeof l.onEventResized && l.onEventResized(a);
4532
4546
  }
4533
4547
  };
4534
4548
  "function" == typeof l.onEventResize && l.onEventResize(a), a.async || o();
4535
4549
  }
4536
- }, 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 () {
4550
+ }, 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 () {
4537
4551
  if ("function" == typeof l.onAfterUpdate) {
4538
4552
  var e = {};
4539
4553
  l.onAfterUpdate(e);
@@ -4546,35 +4560,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4546
4560
  c.request(e);
4547
4561
  };
4548
4562
  var c = {};
4549
- 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) {
4563
+ 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) {
4550
4564
  if (e) {
4551
4565
  c.options || (c.options = {});
4552
4566
  for (var t in e)
4553
4567
  c.options[t] = e[t];
4554
4568
  }
4555
- }, 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) {
4556
- return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1);
4557
- }, this.pf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, i, a) {
4558
- if (l.qf = null, "Disabled" !== l.eventMoveHandling) {
4559
- n = l.Re(n);
4569
+ }, 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) {
4570
+ 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();
4571
+ }, 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) {
4572
+ if (l.tf = null, "Disabled" !== l.eventMoveHandling) {
4573
+ n = l.Te(n);
4560
4574
  var o = {};
4561
4575
  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; };
4562
4576
  var r = function () {
4563
4577
  if (o.loaded = function () { }, o.preventDefault.value)
4564
- return void l.rf();
4578
+ return void l.uf();
4565
4579
  switch (t = o.newStart, n = o.newEnd, l.eventMoveHandling) {
4566
- case "Update": l.Se(o);
4580
+ case "Update": l.Ue(o);
4567
4581
  }
4568
- l.rf(), "function" == typeof l.onEventMoved && l.onEventMoved(o);
4582
+ l.uf(), "function" == typeof l.onEventMoved && l.onEventMoved(o);
4569
4583
  };
4570
4584
  o.async = !1, o.loaded = function () { r(); }, "function" == typeof l.onEventMove && l.onEventMove(o), o.async || r();
4571
4585
  }
4572
- }, 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) {
4586
+ }, 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) {
4573
4587
  if (e)
4574
4588
  if (e.args)
4575
4589
  l.O(e.args.start, e.args.end, e.args.resource);
4576
4590
  else {
4577
- var t = l.uf(e);
4591
+ var t = l.xf(e);
4578
4592
  if (!t)
4579
4593
  return;
4580
4594
  l.O(t.start, t.end, t.resource);
@@ -4582,24 +4596,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4582
4596
  }, this.O = function (e, t, n) {
4583
4597
  if ("Disabled" !== l.timeRangeSelectedHandling) {
4584
4598
  var i = t;
4585
- t = l.Re(i);
4599
+ t = l.Te(i);
4586
4600
  var a = {};
4587
4601
  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) {
4588
4602
  if (l.onTimeRangeSelect(a), a.preventDefault.value)
4589
4603
  return;
4590
4604
  e = a.start, t = a.end;
4591
4605
  }
4592
- t = l.of(t), l.vf(l.wf, e, t), l.xf(l.wf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
4606
+ t = l.rf(t), l.yf(l.zf, e, t), l.Af(l.zf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
4593
4607
  }
4594
- }, this.vf = function (e, t, n) {
4608
+ }, this.yf = function (e, t, n) {
4595
4609
  if (e) {
4596
4610
  var i, a = n;
4597
- 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);
4611
+ 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);
4598
4612
  var o = l.startDate.addDays(l.days);
4599
- 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);
4613
+ 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);
4600
4614
  }
4601
- }, 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) {
4602
- e || (e = this.Cf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop));
4615
+ }, 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) {
4616
+ e || (e = this.Ff(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop));
4603
4617
  var t = [];
4604
4618
  t.ignoreToJSON = !0;
4605
4619
  for (var n = e.start.y; n <= e.end.y; n++) {
@@ -4611,20 +4625,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4611
4625
  var e = l;
4612
4626
  if (e.Ka && !e.Q) {
4613
4627
  e.Q = !0;
4614
- for (var t in e.Ff) {
4615
- var i = e.Ff[t];
4628
+ for (var t in e.If) {
4629
+ var i = e.If[t];
4616
4630
  DayPilot.isArray(i) ? i.forEach(function (e) { clearTimeout(e); }) : clearTimeout(i);
4617
4631
  }
4618
- 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;
4632
+ 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;
4619
4633
  }
4620
- }, 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) {
4634
+ }, 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) {
4621
4635
  for (var t, n = l.rowlist, i = {}, a = 0, o = 0, r = n.length, s = 0; s < r; s++) {
4622
4636
  var d = n[s];
4623
4637
  if (o += d.height, a = o - d.height, t = d, i.top = a, i.bottom = o, i.i = s, i.element = t, e < o)
4624
4638
  break;
4625
4639
  }
4626
4640
  return i;
4627
- }, this.Hf = function (e) {
4641
+ }, this.Kf = function (e) {
4628
4642
  if (e > this.rowlist.length - 1)
4629
4643
  throw new DayPilot.Exception("Row index too high");
4630
4644
  for (var t = 0, n = 0; n <= e; n++)
@@ -4635,7 +4649,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4635
4649
  if (!l.events.list || "undefined" == typeof l.events.list.length)
4636
4650
  return null;
4637
4651
  if ("function" == typeof e)
4638
- return l.If(e);
4652
+ return l.Lf(e);
4639
4653
  for (var t = l.events.list.length, n = 0; n < t; n++)
4640
4654
  if (l.events.list[n].id === e)
4641
4655
  return new DayPilot.Event(l.events.list[n], l);
@@ -4656,17 +4670,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4656
4670
  return !0;
4657
4671
  });
4658
4672
  throw new DayPilot.Exception("function or object argument expected");
4659
- }, this.If = function (e) {
4673
+ }, this.Lf = function (e) {
4660
4674
  for (var t = l.events.list.length, n = 0; n < t; n++) {
4661
4675
  var i = new DayPilot.Event(l.events.list[n], l);
4662
4676
  if (e(i))
4663
4677
  return i;
4664
4678
  }
4665
4679
  return null;
4666
- }, this.events.focus = function (e) { var t = l.Jf(e); t && t.focus(); }, this.events.scrollIntoView = function (e) {
4667
- if (l.Jf(e)) {
4680
+ }, this.events.focus = function (e) { var t = l.Mf(e); t && t.focus(); }, this.events.scrollIntoView = function (e) {
4681
+ if (l.Mf(e)) {
4668
4682
  var t = e.start(), n = l.getViewport();
4669
- !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");
4683
+ !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");
4670
4684
  var i = e.resource();
4671
4685
  l.getViewport().resources.indexOf(i) === -1 && l.scrollToResource(i);
4672
4686
  }
@@ -4708,52 +4722,51 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4708
4722
  var o = e, r = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
4709
4723
  o += o.indexOf("?") > -1 ? "&" + r : "?" + r, DayPilot.ajax({ "method": "GET", "url": o, "success": a, "error": i });
4710
4724
  }
4711
- }, this.events.Lf = function (e) {
4725
+ }, this.events.Of = function (e) {
4712
4726
  var t = [];
4713
4727
  return l.rowlist.forEach(function (n) {
4714
- l.Mf(n.index);
4728
+ l.Pf(n.index);
4715
4729
  for (var i = 0; i < n.events.length; i++) {
4716
4730
  var a = n.events[i].data;
4717
- if (l.Nf(a, e)) {
4731
+ if (l.Qf(a, e)) {
4718
4732
  t.push(n), n.events.splice(i, 1);
4719
4733
  break;
4720
4734
  }
4721
4735
  }
4722
4736
  }), t;
4723
- }, this.events.Of = function (e) {
4737
+ }, this.events.Rf = function (e) {
4724
4738
  if (!e)
4725
4739
  return null;
4726
4740
  for (var t = l.rowlist, n = 0; n < t.length; n++) {
4727
4741
  var i = t[n];
4728
- l.Mf(i.index);
4742
+ l.Pf(i.index);
4729
4743
  for (var a = 0; a < i.events.length; a++) {
4730
4744
  var o = i.events[a];
4731
- if (l.Nf(o.data, e))
4745
+ if (l.Qf(o.data, e))
4732
4746
  return i.events[a];
4733
4747
  }
4734
4748
  }
4735
4749
  return null;
4736
- }, this.events.Pf = function (e) {
4737
- var t = [], n = l.Qf(), i = DayPilot.indexOf(l.events.list, e);
4750
+ }, this.events.Sf = function (e) {
4751
+ var t = [], n = l.Tf(), i = DayPilot.indexOf(l.events.list, e);
4738
4752
  l.yb(i);
4739
4753
  var a = l.rowlist, o = !1;
4740
4754
  return a.forEach(function (a) {
4741
4755
  if (!o) {
4742
- l.Mf(a.index);
4743
- var r = l.Rf(e, a);
4756
+ l.Pf(a.index);
4757
+ var r = l.Uf(e, a);
4744
4758
  r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.xb.events[i]), t.push(a), n || (o = !0));
4745
4759
  }
4746
4760
  }), t;
4747
- }, this.Nf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) {
4761
+ }, this.Qf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) {
4748
4762
  if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
4749
4763
  var i = l.events.find(e.id);
4750
4764
  return l.events.remove(i), void l.events.add(e);
4751
4765
  }
4752
- var a = {};
4753
- 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); })) {
4754
- l.ze.Sf && (l.ze.skip = !0);
4755
- var o = l.events.Lf(e.data);
4756
- e.commit(), o = o.concat(l.events.Pf(e.data)), l.events.Tf(o);
4766
+ if (n = n || {}, l.events.list.find(function (t) { return l.Qf(t, e.data); })) {
4767
+ l.Be.Vf && (l.Be.skip = !0);
4768
+ var a = l.events.Of(e.data);
4769
+ e.commit(), a = a.concat(l.events.Sf(e.data)), l.events.Wf(a);
4757
4770
  }
4758
4771
  }, this.events.remove = function (e) {
4759
4772
  if (e) {
@@ -4761,16 +4774,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4761
4774
  var t = l.events.find(e);
4762
4775
  return void l.events.remove(t);
4763
4776
  }
4764
- ({}).e = new DayPilot.Event(e.data, l);
4765
- var n = l.Uf(e.data);
4766
- n && l.events.list.splice(n.index, 1), l.ze.Sf && (l.ze.skip = !0);
4767
- var i = l.events.Lf(e.data);
4768
- l.events.Tf(i);
4777
+ var n = l.Xf(e.data);
4778
+ n && l.events.list.splice(n.index, 1), l.Be.Vf && (l.Be.skip = !0);
4779
+ var i = l.events.Of(e.data);
4780
+ l.events.Wf(i);
4769
4781
  }
4770
4782
  }, this.events.add = function (e, t, n) {
4771
4783
  var n = n || {}, i = n.renderOnly;
4772
4784
  e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []);
4773
- var a = l.Uf(e);
4785
+ var a = l.Xf(e);
4774
4786
  if (i) {
4775
4787
  if (!a)
4776
4788
  throw new DayPilot.Exception("Unexpected: event not found in list");
@@ -4781,62 +4793,61 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4781
4793
  a || l.events.list.push(e.data);
4782
4794
  }
4783
4795
  if (l.Ka) {
4784
- l.ze.Sf && (l.ze.skip = !0);
4785
- ({}).e = e;
4786
- var o = l.events.Pf(e.data);
4787
- l.events.Tf(o);
4796
+ l.Be.Vf && (l.Be.skip = !0);
4797
+ var o = l.events.Sf(e.data);
4798
+ l.events.Wf(o);
4788
4799
  }
4789
- }, this.events.Vf = function (e) {
4800
+ }, this.events.Yf = function (e) {
4790
4801
  var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), i = new DayPilot.Date(t.end);
4791
4802
  return !!l.events.list.find(function (e) {
4792
- if (l.Nf(t, e))
4803
+ if (l.Qf(t, e))
4793
4804
  return !1;
4794
4805
  if (t.resource !== e.resource)
4795
4806
  return !1;
4796
4807
  var a = new DayPilot.Date(e.start), o = new DayPilot.Date(e.end);
4797
4808
  return DayPilot.Util.overlaps(n, i, a, o);
4798
4809
  });
4799
- }, 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) {
4810
+ }, 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) {
4800
4811
  var t = l.startDate;
4801
4812
  if (e.ticks === t.ticks)
4802
4813
  return e;
4803
4814
  var n = t;
4804
4815
  if (e.ticks < t.ticks) {
4805
4816
  for (; n.ticks > e.ticks;)
4806
- n = n.addTime(60 * -l.Le() * 1e3);
4817
+ n = n.addTime(60 * -l.Ne() * 1e3);
4807
4818
  return n;
4808
4819
  }
4809
- var i = this.Ke(e);
4820
+ var i = this.Me(e);
4810
4821
  if (i.current)
4811
4822
  return i.current.start;
4812
4823
  throw new DayPilot.Exception("getBoxStart(): time not found");
4813
- }, this.Gf = function (e) {
4814
- var t = this.Ef(l.coords.y);
4824
+ }, this.Jf = function (e) {
4825
+ var t = this.Hf(l.coords.y);
4815
4826
  if ("function" != typeof e.end)
4816
4827
  throw new DayPilot.Exception("e.end function is not defined");
4817
4828
  if (!e.end())
4818
4829
  throw new DayPilot.Exception("e.end() returns null");
4819
4830
  var i = DayPilot.DateUtil.diff(e.rawend(), e.start());
4820
4831
  i = DayPilot.Util.atLeast(i, 1);
4821
- var a = f.bg(i), o = 0, r = l.coords.x;
4822
- a && (o = e.start().getTime() - this.ag(e.start()).getTime());
4832
+ var a = f.eg(i), o = 0, r = l.coords.x;
4833
+ a && (o = e.start().getTime() - this.dg(e.start()).getTime());
4823
4834
  var s = 0;
4824
- if (n.cg)
4835
+ if (n.fg)
4825
4836
  if (a) {
4826
- var d = e.start(), c = this.ag(d);
4827
- s = n.cg.getTime() - c.getTime();
4828
- var u = 60 * l.Le() * 1e3;
4837
+ var d = e.start(), c = this.dg(d);
4838
+ s = n.fg.getTime() - c.getTime();
4839
+ var u = 60 * l.Ne() * 1e3;
4829
4840
  s = Math.floor(s / u) * u;
4830
4841
  }
4831
4842
  else
4832
- s = n.cg.getTime() - e.start().getTime();
4843
+ s = n.fg.getTime() - e.start().getTime();
4833
4844
  var h = this.getDate(r, !0).addTime(-s);
4834
- n.dg && (h = e.start());
4845
+ n.gg && (h = e.start());
4835
4846
  var v = l.snapToGrid;
4836
- v && (h = this.ag(h)), h = h.addTime(o);
4847
+ v && (h = this.dg(h)), h = h.addTime(o);
4837
4848
  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 = {};
4838
4849
  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;
4839
- }, this.Le = function () {
4850
+ }, this.Ne = function () {
4840
4851
  switch (this.scale) {
4841
4852
  case "CellDuration": return this.cellDuration;
4842
4853
  case "Minute": return 1;
@@ -4845,34 +4856,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4845
4856
  case "Week": return 10080;
4846
4857
  }
4847
4858
  throw new DayPilot.Exception("can't guess cellDuration value");
4848
- }, 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 () {
4849
- var e = l.coords, t = n.dg.dpBorder, i = n.dg.event, a = i.part.left;
4859
+ }, 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 () {
4860
+ var e = l.coords, t = n.gg.dpBorder, i = n.gg.event, a = i.part.left;
4850
4861
  "right" === t && (a += i.part.width);
4851
- 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;
4862
+ 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;
4852
4863
  if ("right" === t) {
4853
4864
  if (o = c, f) {
4854
- var v = l.Ie(d + c + h).cell, p = l.Ie(c).cell, m = p.left + p.width - c;
4865
+ var v = l.Ke(d + c + h).cell, p = l.Ke(c).cell, m = p.left + p.width - c;
4855
4866
  r = v.left + v.width - c, r < m && (r = m);
4856
4867
  }
4857
4868
  else
4858
4869
  r = d + h;
4859
- var g = l.Ae();
4860
- 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";
4870
+ var g = l.Ce();
4871
+ 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";
4861
4872
  }
4862
4873
  else {
4863
4874
  if ("left" !== t)
4864
4875
  throw new DayPilot.Exception("Invalid dpBorder.");
4865
4876
  f ? (h >= d && (h = d), o = Math.floor((c + h + 0) / s) * s, o < u && (o = u)) : o = c + h, r = d - (o - c);
4866
4877
  var y = c + d, b = s;
4867
- 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";
4878
+ 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";
4868
4879
  }
4869
- l.fg();
4870
- }, this.jg = function () {
4871
- if (l.coords && n.kg) {
4872
- var e = n.lg, t = this.Gf(n.kg);
4880
+ l.ig();
4881
+ }, this.mg = function () {
4882
+ if (l.coords && n.ng) {
4883
+ var e = n.og, t = this.Jf(n.ng);
4873
4884
  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;
4874
4885
  }
4875
- }, this.mg = function () { return this.rowHeaderWidth; }, this.ng = function () { return this.og(l.progressiveRowRenderingPreload); }, this.og = function (e) {
4886
+ }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(l.progressiveRowRenderingPreload); }, this.rg = function (e) {
4876
4887
  e = e || 0;
4877
4888
  var t = 0, n = l.rowlist.length;
4878
4889
  if (l.progressiveRowRendering) {
@@ -4880,42 +4891,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4880
4891
  t = i.yStart, n = i.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(l.rowlist.length, n + e);
4881
4892
  }
4882
4893
  return { "start": t, "end": n };
4883
- }, this.Xe = function () {
4894
+ }, this.Ze = function () {
4884
4895
  function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); }
4885
- this.pg = !0;
4886
- var t = this.mg();
4896
+ this.sg = !0;
4897
+ var t = this.pg();
4887
4898
  e();
4888
4899
  var n = this.divHeader;
4889
4900
  if (n.style.width = t + "px", n.style.height = l.fe + "px", l.divHeader = n, l.progressiveRowRendering)
4890
4901
  i();
4891
4902
  else
4892
4903
  for (var a = this.rowlist.length, o = 0; o < a; o++)
4893
- l.qg(o);
4894
- l.rg(), this.divResScroll.appendChild(n);
4895
- }, this.sg = function () {
4904
+ l.tg(o);
4905
+ l.ug(), this.divResScroll.appendChild(n);
4906
+ }, this.vg = function () {
4896
4907
  if (l.progressiveRowRendering)
4897
- for (var e = this.ng(), t = 0; t < l.rowlist.length; t++)
4898
- e.start <= t && t < e.end ? l.qg(t) : l.tg(t);
4899
- }, this.rg = function () {
4900
- if (!l.ca.ug()) {
4908
+ for (var e = this.qg(), t = 0; t < l.rowlist.length; t++)
4909
+ e.start <= t && t < e.end ? l.tg(t) : l.wg(t);
4910
+ }, this.ug = function () {
4911
+ if (!l.ca.xg()) {
4901
4912
  var e = l.divHeader, t = r();
4902
4913
  t.style.position = "absolute", e.appendChild(t), l.nav.resScrollSpace = t;
4903
4914
  var n = r();
4904
4915
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
4905
- var i = this.mg(), t = l.nav.resScrollSpace;
4916
+ var i = this.pg(), t = l.nav.resScrollSpace;
4906
4917
  t.style.width = i + "px", t.style.top = this.fe + "px";
4907
4918
  }
4908
- }, 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) {
4919
+ }, 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) {
4909
4920
  var t = l.rowlist, n = l.divHeader;
4910
4921
  if (n && !n.rows[e]) {
4911
- var i = this.mg(), a = t[e];
4922
+ var i = this.pg(), a = t[e];
4912
4923
  if (a) {
4913
- var o = this.vg(a), s = r();
4924
+ var o = this.yg(a), s = r();
4914
4925
  s.style.position = "absolute", s.style.top = a.top + "px", n.rows[e] = s, s.row = a, s.index = e;
4915
4926
  var d = o.row, c = this.rowHeaderWidth;
4916
4927
  s.style.width = c + "px", s.style.border = "0px none";
4917
4928
  var u = d.toolTip || d.toolTip;
4918
- u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.wg;
4929
+ u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.zg;
4919
4930
  var h = r();
4920
4931
  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);
4921
4932
  var f = d.backColor || d.backColor;
@@ -4953,25 +4964,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4953
4964
  s.appendChild(h), n.appendChild(s), h.style.width = i + "px";
4954
4965
  }
4955
4966
  }
4956
- }, this.wg = function (e) { var t = this.row, n = l.xg(t, this.index); l.zf(n, e); }, this.yg = function (e) {
4967
+ }, this.zg = function (e) { var t = this.row, n = l.Ag(t, this.index); l.Cf(n, e); }, this.Bg = function (e) {
4957
4968
  if ("Disabled" !== l.timeHeaderClickHandling) {
4958
4969
  var t = {};
4959
- 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);
4970
+ 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);
4960
4971
  }
4961
- }, this.zg = function (e) {
4972
+ }, this.Cg = function (e) {
4962
4973
  if ("Disabled" !== l.timeHeaderRightClickHandling) {
4963
4974
  e.cancelBubble = !0, e.preventDefault();
4964
4975
  var t = {};
4965
- 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()));
4976
+ 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()));
4966
4977
  var n = {};
4967
4978
  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);
4968
4979
  }
4969
- }, 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) {
4980
+ }, 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) {
4970
4981
  if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
4971
4982
  throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");
4972
4983
  u.prepareRows(!0);
4973
4984
  var t, n = this.events.list, i = "function" == typeof this.onBeforeEventRender;
4974
- l.Ag = {};
4985
+ l.Dg = {};
4975
4986
  for (var a = 0; a < n.length; a++) {
4976
4987
  var o = n[a];
4977
4988
  if (o) {
@@ -4984,28 +4995,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
4984
4995
  if (!("string" == typeof o.id || "number" == typeof o.id))
4985
4996
  throw new DayPilot.Exception("All events must have an id property (string or number)");
4986
4997
  var r = "_" + o.id;
4987
- if (l.Ag[r])
4998
+ if (l.Dg[r])
4988
4999
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + r);
4989
- l.Ag[r] = !0, i && this.yb(a), t = l.Bg(o.resource);
5000
+ l.Dg[r] = !0, i && this.yb(a), t = l.Eg(o.resource);
4990
5001
  for (var s = 0; t && s < t.length; s++) {
4991
- var d = t[s], c = this.Rf(o, d);
5002
+ var d = t[s], c = this.Uf(o, d);
4992
5003
  c && i && (c.cache = this.xb.events[a]);
4993
5004
  }
4994
5005
  }
4995
5006
  }
4996
- l.rowlist.forEach(function (e) { l.Cg(e); }), l.$f();
4997
- }, this.Dg = {};
4998
- var u = this.Dg;
5007
+ l.rowlist.forEach(function (e) { l.Fg(e); }), l.bg();
5008
+ }, this.Gg = {};
5009
+ var u = this.Gg;
4999
5010
  u.rowcache = {}, u.prepareRows = function (e) {
5000
5011
  u.rowcache = {};
5001
5012
  for (var t = l.rowlist, n = 0; n < t.length; n++) {
5002
5013
  var i = t[n];
5003
- if (e && i.resetEvents(), l.Mf(i.index), i.id) {
5014
+ if (e && i.resetEvents(), l.Pf(i.index), i.id) {
5004
5015
  var a = typeof i.id + "_" + i.id;
5005
5016
  u.rowcache[a] || (u.rowcache[a] = []), u.rowcache[a].push(i);
5006
5017
  }
5007
5018
  }
5008
- }, u.loadEvent = function (e) { }, this.Bg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Qf = function () {
5019
+ }, u.loadEvent = function (e) { }, this.Eg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Tf = function () {
5009
5020
  for (var e = {}, t = 0; t < l.rowlist.length; t++) {
5010
5021
  var n = l.rowlist[t], i = n.id;
5011
5022
  if (e[i])
@@ -5023,15 +5034,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5023
5034
  o.e = i, o.data = i, this.onBeforeEventRender(o);
5024
5035
  }
5025
5036
  t[e] = i;
5026
- }, this.Cg = function (e) {
5037
+ }, this.Fg = function (e) {
5027
5038
  e.lines = [], e.sections = null, e.events.sort(this.zb);
5028
5039
  for (var t = 0; t < e.events.length; t++) {
5029
5040
  var n = e.events[t];
5030
5041
  e.putIntoLine(n);
5031
5042
  }
5032
- }, 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) {
5043
+ }, 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) {
5033
5044
  var n = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end);
5034
- i = l.of(i);
5045
+ i = l.rf(i);
5035
5046
  var a = n.ticks, o = i.ticks, r = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks;
5036
5047
  if (o < a)
5037
5048
  return null;
@@ -5047,7 +5058,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5047
5058
  var h = this.getPixels(u.part.start), v = this.getPixels(u.part.end.addTime(-1));
5048
5059
  u.part.start === u.part.end && (v = this.getPixels(u.part.end.addMilliseconds(1)));
5049
5060
  var p = h.left, m = v.left;
5050
- if (f.bg(o - a)) {
5061
+ if (f.eg(o - a)) {
5051
5062
  var g = h.boxLeft, y = v.boxRight;
5052
5063
  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);
5053
5064
  }
@@ -5062,22 +5073,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5062
5073
  return 0 !== n ? n : t.end().ticks - e.end().ticks;
5063
5074
  }, this.rows = {}, this.rows.all = function () {
5064
5075
  for (var e = [], t = 0; t < l.rowlist.length; t++) {
5065
- var n = l.xg(l.rowlist[t]);
5076
+ var n = l.Ag(l.rowlist[t]);
5066
5077
  e.push(n);
5067
5078
  }
5068
5079
  return e;
5069
5080
  }, 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) {
5070
5081
  if ("string" == typeof e || "number" == typeof e || !e && t) {
5071
- var n = l.Bg(e);
5082
+ var n = l.Eg(e);
5072
5083
  e || (n = l.rowlist);
5073
5084
  var i = null;
5074
5085
  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;
5075
5086
  }
5076
5087
  if ("function" != typeof e)
5077
5088
  throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected");
5078
- var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.xg(t)); });
5089
+ var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.Ag(t)); });
5079
5090
  if (o)
5080
- return l.xg(o);
5091
+ return l.Ag(o);
5081
5092
  }, this.rows.load = function (e, t, n) {
5082
5093
  if (!e)
5083
5094
  throw new DayPilot.Exception("rows.load(): 'url' parameter required");
@@ -5116,9 +5127,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5116
5127
  return;
5117
5128
  e.data = t;
5118
5129
  }
5119
- 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);
5120
- 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();
5121
- }, this.Hg = function (e) {
5130
+ 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);
5131
+ 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();
5132
+ }, this.Kg = function (e) {
5122
5133
  for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
5123
5134
  var o = t[a];
5124
5135
  if (o) {
@@ -5126,29 +5137,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5126
5137
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
5127
5138
  if (o.resource === e.id) {
5128
5139
  i && this.yb(a);
5129
- var r = this.Rf(o, e);
5140
+ var r = this.Uf(o, e);
5130
5141
  r && i && (r.cache = this.xb.events[a]);
5131
5142
  }
5132
5143
  }
5133
5144
  }
5134
- }, this.Ue = function () {
5145
+ }, this.We = function () {
5135
5146
  var e = this.resources;
5136
5147
  if ({}.i = 0, null != e && !DayPilot.isArray(e))
5137
5148
  throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object");
5138
- e = e || [], l.rowlist = [], this.Ig(e);
5139
- }, 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) {
5149
+ e = e || [], l.rowlist = [], this.Lg(e);
5150
+ }, 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) {
5140
5151
  var t = {};
5141
- 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 () {
5152
+ 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 () {
5142
5153
  var e = this;
5143
5154
  e.events = [], e.events.forRange = function (t, n) {
5144
5155
  t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days);
5145
5156
  for (var i = [], a = 0; a < e.events.length; a++) {
5146
- var o = e.events[a], r = l.of(o.end());
5157
+ var o = e.events[a], r = l.rf(o.end());
5147
5158
  DayPilot.Util.overlaps(o.start(), r, t, n) && i.push(o);
5148
5159
  }
5149
5160
  return i;
5150
5161
  };
5151
- }, t.Kg = function () {
5162
+ }, t.Mg = function () {
5152
5163
  var e = [];
5153
5164
  return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) {
5154
5165
  for (var i = e + t - 1, a = this.length, o = 0; o < a; o++) {
@@ -5167,29 +5178,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5167
5178
  if (a.isFree(e, n))
5168
5179
  return i;
5169
5180
  }
5170
- var a = t.Kg();
5181
+ var a = t.Mg();
5171
5182
  return this.lines.push(a), this.lines.length - 1;
5172
5183
  }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t;
5173
- }, this.Ig = function (e) {
5184
+ }, this.Lg = function (e) {
5174
5185
  if (e)
5175
5186
  for (var t = l.rowlist, n = 0; n < e.length; n++)
5176
5187
  if (e[n]) {
5177
5188
  var i = {};
5178
5189
  i.index = n;
5179
- var a = this.Fg(e[n], i), o = l.Gg(a, parent);
5190
+ var a = this.Ig(e[n], i), o = l.Jg(a, parent);
5180
5191
  o.index = n, t.push(o);
5181
5192
  }
5182
- }, 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) {
5183
- var n = { get $data() { return this.Jg; } };
5193
+ }, 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) {
5194
+ var n = { get $data() { return this.Ae; } };
5184
5195
  for (var i in t)
5185
5196
  n[i] = t[i];
5186
5197
  for (var i in e)
5187
5198
  n[i] = e[i];
5188
- return n.html = l.$a(e.name, e.html), n.Jg = e, n;
5189
- }, 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 () {
5199
+ return n.html = l.$a(e.name, e.html), n.Ae = e, n;
5200
+ }, 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 () {
5190
5201
  var e = this.rowHeaderWidth, t = this.divHeader;
5191
5202
  t.style.width = e + "px";
5192
- for (var n = l.ng(), i = n.start; i < n.end; i++) {
5203
+ for (var n = l.qg(), i = n.start; i < n.end; i++) {
5193
5204
  var a = t.rows[i];
5194
5205
  if (a) {
5195
5206
  var o = l.rowHeaderWidth;
@@ -5198,67 +5209,62 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5198
5209
  }
5199
5210
  }
5200
5211
  l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px");
5201
- }, 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 () {
5212
+ }, 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 () {
5202
5213
  var e = r();
5203
5214
  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");
5204
- var i = l.ca.ug();
5205
- i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Vg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () {
5206
- if (l.Ug && clearTimeout(l.Ug), i) {
5207
- var a = function () { var t = l.Wg() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
5208
- t ? n.Vg && (l.Ug = setTimeout(a, 10)) : l.Ug = setTimeout(a, 10);
5215
+ var i = l.ca.xg();
5216
+ i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Xg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () {
5217
+ if (l.Wg && clearTimeout(l.Wg), i) {
5218
+ var a = function () { var t = l.Yg() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
5219
+ t ? n.Xg && (l.Wg = setTimeout(a, 10)) : l.Wg = setTimeout(a, 10);
5209
5220
  }
5210
5221
  else
5211
- l.Ug = setTimeout(function () { l.nav.scroll.scrollTop = e.scrollTop; }, 500);
5222
+ l.Wg = setTimeout(function () { l.nav.scroll.scrollTop = e.scrollTop; }, 500);
5212
5223
  }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows");
5213
5224
  var a = r();
5214
- return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.De = e, e;
5215
- }, this.Xg = null, this.Yg = null, this.Zg = function () {
5216
- var e = function () { l.$g(), l.cf(); }, t = function () {
5225
+ return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Fe = e, e;
5226
+ }, this.Zg = null, this.$g = null, this._g = function () {
5227
+ var e = function () { l.ah(), l.ff(); }, t = function () {
5217
5228
  var t = l.nav.top;
5218
5229
  if (t) {
5219
- if (!l.Xg)
5220
- return l.Xg = {}, void (l.Xg.width = t.offsetWidth);
5221
- l.Xg.width !== t.offsetWidth && (l.Xg.width = t.offsetWidth, e());
5230
+ if (!l.Zg)
5231
+ return l.Zg = {}, void (l.Zg.width = t.offsetWidth);
5232
+ l.Zg.width !== t.offsetWidth && (l.Zg.width = t.offsetWidth, e());
5222
5233
  }
5223
5234
  };
5224
- if (!l.Yg) {
5235
+ if (!l.$g) {
5225
5236
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
5226
- n.observe(l.nav.top), l.Yg = n;
5237
+ n.observe(l.nav.top), l.$g = n;
5227
5238
  }
5228
- }, 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 () {
5229
- var e = r();
5230
- 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",
5231
- 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();
5232
- var t = this.je;
5233
- t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
5234
- var n = this.Ae();
5235
- 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;
5236
- }, 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) {
5239
+ }, 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 () {
5240
+ var e = 0, t = l.heightSpec;
5241
+ return "Fixed" === t ? this.height ? this.height : 0 : (e = l.Yg(), "Max" === t && e > l.height ? l.height : e);
5242
+ }, 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) {
5237
5243
  for (var t = 0, n = 0; n < e.lines.length; n++) {
5238
5244
  for (var i = e.lines[n], a = 0; a < i.length; a++) {
5239
5245
  var o = i[a];
5240
- o.part.line = n, o.part.top = t, o.part.right = o.part.left + o.part.width;
5246
+ o.part.line = n, o.part.top = t + l.rowMarginTop, o.part.right = o.part.left + o.part.width;
5241
5247
  }
5242
5248
  t += l.eventHeight;
5243
5249
  }
5244
- }, this.Te = null, this.na = function (e) {
5250
+ }, this.Ve = null, this.na = function (e) {
5245
5251
  if (!l.Q) {
5246
- var t = this.lh.step;
5247
- "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");
5252
+ var t = this.nh.step;
5253
+ "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");
5248
5254
  var n = "Progressive" === this.dynamicEventRendering, i = this.ne(), a = i.pixels.top, o = i.pixels.bottom;
5249
5255
  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) {
5250
- l.Eg(n);
5256
+ l.Hg(n);
5251
5257
  for (var i = 0; i < n.lines.length; i++)
5252
5258
  for (var a = n.lines[i], o = 0; o < a.length; o++) {
5253
5259
  var r = a[o], s = l.Ta(r);
5254
5260
  if (e && s && (t--, t <= 0))
5255
- return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Te = setTimeout(function () { l.na(e); }, l.lh.delay));
5261
+ return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Ve = setTimeout(function () { l.na(e); }, l.nh.delay));
5256
5262
  }
5257
5263
  }), this.divEvents.style.display = "", this.se();
5258
5264
  }
5259
- }, this.lf = function (e) {
5265
+ }, this.of = function (e) {
5260
5266
  var t = l.rowlist[e];
5261
- this.Eg(t);
5267
+ this.Hg(t);
5262
5268
  for (var n = 0; n < t.lines.length; n++)
5263
5269
  for (var i = t.lines[n], a = 0; a < i.length; a++) {
5264
5270
  var o = i[a];
@@ -5271,7 +5277,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5271
5277
  this.Na(n);
5272
5278
  }
5273
5279
  this.elements.events = [];
5274
- }, this.kf = function (e) {
5280
+ }, this.nf = function (e) {
5275
5281
  if (this.elements.events) {
5276
5282
  for (var t = this.elements.events.length, n = [], i = 0; i < t; i++) {
5277
5283
  var a = this.elements.events[i];
@@ -5280,19 +5286,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5280
5286
  for (var i = n.length - 1; i >= 0; i--)
5281
5287
  this.elements.events.splice(n[i], 1);
5282
5288
  }
5283
- }, 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 () {
5289
+ }, 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 () {
5284
5290
  if ("Progressive" === this.dynamicEventRendering) {
5285
5291
  if (l.dynamicEventRenderingCacheSweeping) {
5286
5292
  var e = l.dynamicEventRenderingCacheSize || 0;
5287
5293
  this.divEvents.style.display = "none";
5288
5294
  for (var t = [], n = 0, i = this.elements.events.length, a = i - 1; a >= 0; a--) {
5289
5295
  var o = this.elements.events[a];
5290
- this.nh(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Na(o), n++) : t.unshift(o);
5296
+ this.ph(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Na(o), n++) : t.unshift(o);
5291
5297
  }
5292
5298
  this.elements.events = t, this.divEvents.style.display = "";
5293
5299
  }
5294
5300
  }
5295
- }, this.oh = function (e) {
5301
+ }, this.qh = function (e) {
5296
5302
  for (var t = this.ne(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
5297
5303
  var a = this.elements.cells[i];
5298
5304
  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));
@@ -5302,7 +5308,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5302
5308
  var t = e.coords.x, n = e.coords.y;
5303
5309
  DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.xb.cells[t + "_" + n] = null;
5304
5310
  }
5305
- }, this.ph = function () {
5311
+ }, this.rh = function () {
5306
5312
  var e = "Progressive" === this.dynamicEventRendering;
5307
5313
  if (!this.nav.scroll)
5308
5314
  return !1;
@@ -5312,17 +5318,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5312
5318
  for (var s = 0; s < a.lines.length; s++)
5313
5319
  for (var l = a.lines[s], d = 0; d < l.length; d++) {
5314
5320
  var c = l[d];
5315
- if (this.qh(c))
5321
+ if (this.uh(c))
5316
5322
  return !0;
5317
5323
  }
5318
5324
  }
5319
5325
  return !1;
5320
- }, this.qh = function (e) {
5326
+ }, this.uh = function (e) {
5321
5327
  if (e.rendered)
5322
5328
  return !1;
5323
5329
  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;
5324
5330
  return !t || !(i <= a || n >= o);
5325
- }, this.nh = function (e) {
5331
+ }, this.ph = function (e) {
5326
5332
  if (!e.rendered)
5327
5333
  return !0;
5328
5334
  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;
@@ -5339,7 +5345,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5339
5345
  _ = DayPilot.Util.atLeast(0, _), C = DayPilot.Util.atLeast(0, C);
5340
5346
  var P = r();
5341
5347
  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);
5342
- "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");
5348
+ "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");
5343
5349
  var S = r();
5344
5350
  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);
5345
5351
  var M = e.start().getTime() === e.part.start.getTime(), T = e.rawend().getTime() === e.part.end.getTime();
@@ -5357,12 +5363,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5357
5363
  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); } });
5358
5364
  }
5359
5365
  }(), 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;
5360
- }, 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 () {
5366
+ }, 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 () {
5361
5367
  for (var e = 0; e < this.elements.events.length; e++) {
5362
5368
  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;
5363
5369
  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";
5364
5370
  }
5365
- }, this.zh = function (e) {
5371
+ }, this.Bh = function (e) {
5366
5372
  if (!e)
5367
5373
  return null;
5368
5374
  for (var t = 0; t < l.elements.events.length; t++) {
@@ -5371,145 +5377,145 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5371
5377
  return n;
5372
5378
  }
5373
5379
  return null;
5374
- }, this.Jf = function (e) {
5375
- var t = l.events.Of(e.data);
5380
+ }, this.Mf = function (e) {
5381
+ var t = l.events.Rf(e.data);
5376
5382
  if (!t)
5377
5383
  return null;
5378
5384
  var n = l.rowlist[t.part.dayIndex];
5379
- return l.Eg(n), l.Ta(t, { "forced": !0 }), l.zh(t);
5380
- }, this.rh = function (e) {
5385
+ return l.Hg(n), l.Ta(t, { "forced": !0 }), l.Bh(t);
5386
+ }, this.vh = function (e) {
5381
5387
  for (var t = this; t && !t.event;)
5382
5388
  t = t.parentNode;
5383
5389
  t.event;
5384
- l.Ah(t, e), l.Qe(e);
5385
- }, 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 = {};
5386
- var h = l.Fh;
5387
- "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.Ff = [], h.wh = function (t) {
5390
+ l.Ch(t, e), l.Se(e);
5391
+ }, 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 = {};
5392
+ var h = l.Hh;
5393
+ "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.If = [], h.yh = function (t) {
5388
5394
  if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
5389
- t.stopPropagation(), h.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5395
+ t.stopPropagation(), h.Ih(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5390
5396
  var n = this;
5391
- l.coords = h.Hh(t);
5397
+ l.coords = h.Jh(t);
5392
5398
  var i = l.tapAndHoldTimeout;
5393
- h.Ff.push(setTimeout(function () {
5399
+ h.If.push(setTimeout(function () {
5394
5400
  DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault();
5395
5401
  var i = n.event;
5396
5402
  switch (l.eventTapAndHoldHandling) {
5397
5403
  case "Move": if (i.client.moveEnabled()) {
5398
5404
  var a = e(t);
5399
- h.Ch(n, a);
5405
+ h.Eh(n, a);
5400
5406
  }
5401
5407
  }
5402
5408
  }, i));
5403
5409
  }
5404
- }, h.xh = function (e) { h.Gh(), DayPilot.Global.touch.start = !1; }, h.yh = function (e) {
5410
+ }, h.zh = function (e) { h.Ih(), DayPilot.Global.touch.start = !1; }, h.Ah = function (e) {
5405
5411
  if (!DayPilot.Util.isMouseEvent(e)) {
5406
- if (h.Gh(), DayPilot.Global.touch.start) {
5412
+ if (h.Ih(), DayPilot.Global.touch.start) {
5407
5413
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
5408
5414
  var t = this;
5409
- setTimeout(function () { l.Pe(t, e); });
5415
+ setTimeout(function () { l.Re(t, e); });
5410
5416
  }
5411
5417
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
5412
5418
  }
5413
- }, h.Mg = function (e) {
5419
+ }, h.Og = function (e) {
5414
5420
  if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
5415
- h.Gh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5421
+ h.Ih(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5416
5422
  var t = l.tapAndHoldTimeout;
5417
- 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));
5418
- l.coords = h.Hh(e);
5423
+ 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));
5424
+ l.coords = h.Jh(e);
5419
5425
  }
5420
- }, h.Ng = function (e) {
5421
- if (h.Gh(), DayPilot.Global.touch.start = !1, n.dg)
5422
- return e.preventDefault(), void h.Kh();
5426
+ }, h.Pg = function (e) {
5427
+ if (h.Ih(), DayPilot.Global.touch.start = !1, n.gg)
5428
+ return e.preventDefault(), void h.Mh();
5423
5429
  if (DayPilot.Global.touch.active) {
5424
- if (e.preventDefault(), l.coords = h.Hh(e), n.Oe)
5425
- return void h.Lh();
5426
- if (h.Ih) {
5427
- var t = h.Ih;
5428
- t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.xf(t);
5430
+ if (e.preventDefault(), l.coords = h.Jh(e), n.Qe)
5431
+ return void h.Nh();
5432
+ if (h.Kh) {
5433
+ var t = h.Kh;
5434
+ t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.Af(t);
5429
5435
  }
5430
5436
  }
5431
- }, h.debug = function (e) { }, h.Og = function (e) {
5432
- h.Gh();
5437
+ }, h.debug = function (e) { }, h.Qg = function (e) {
5438
+ h.Ih();
5433
5439
  if (DayPilot.Global.touch.active) {
5434
- if (n.Oe) {
5440
+ if (n.Qe) {
5435
5441
  e.preventDefault();
5436
- var t = n.kg;
5437
- if (l !== n.lg.calendar)
5442
+ var t = n.ng;
5443
+ if (l !== n.og.calendar)
5438
5444
  return;
5439
- var i = n.lg.start, a = n.lg.end, r = n.lg.row.id;
5440
- 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);
5445
+ var i = n.og.start, a = n.og.end, r = n.og.row.id;
5446
+ 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);
5441
5447
  }
5442
- if (h.Ih) {
5443
- var s = h.Ih;
5444
- h.Ih = null;
5448
+ if (h.Kh) {
5449
+ var s = h.Kh;
5450
+ h.Kh = null;
5445
5451
  var d = l.elements.range2;
5446
- d && d.overlapping ? l.clearSelection() : l.tf(s);
5452
+ d && d.overlapping ? l.clearSelection() : l.wf(s);
5447
5453
  }
5448
5454
  }
5449
5455
  else if (DayPilot.Global.touch.start) {
5450
5456
  if (l.coords.x < l.getScrollX())
5451
5457
  return;
5452
- var s = l.Jh();
5453
- l.xf(s);
5458
+ var s = l.Lh();
5459
+ l.Af(s);
5454
5460
  var d = l.elements.range2;
5455
- d && d.overlapping ? l.clearSelection() : l.tf(s);
5461
+ d && d.overlapping ? l.clearSelection() : l.wf(s);
5456
5462
  }
5457
5463
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
5458
- }, h.Gh = function () {
5459
- for (var e = 0; e < h.Ff.length; e++)
5460
- clearTimeout(h.Ff[e]);
5461
- h.Ff = [];
5462
- }, 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 () {
5463
- if (!n.gg) {
5464
- var e = n.dg;
5465
- n.gg = l.ba(e);
5466
- }
5467
- l.ig();
5468
- }, h.Lh = function () {
5469
- if (!n.lg) {
5470
- var e = n.Oe;
5471
- n.lg = l.ba(e);
5472
- }
5473
- n.lg.calendar.jg();
5474
- }, this.Ah = function (e, t) {
5464
+ }, h.Ih = function () {
5465
+ for (var e = 0; e < h.If.length; e++)
5466
+ clearTimeout(h.If[e]);
5467
+ h.If = [];
5468
+ }, 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 () {
5469
+ if (!n.jg) {
5470
+ var e = n.gg;
5471
+ n.jg = l.ba(e);
5472
+ }
5473
+ l.lg();
5474
+ }, h.Nh = function () {
5475
+ if (!n.og) {
5476
+ var e = n.Qe;
5477
+ n.og = l.ba(e);
5478
+ }
5479
+ n.og.calendar.mg();
5480
+ }, this.Ch = function (e, t) {
5475
5481
  var i = this.eventResizeMargin, a = e;
5476
5482
  if ("undefined" != typeof n) {
5477
5483
  var o = DayPilot.mo3(e, t);
5478
- if (o && (l.eventOffset = o, !n.dg && !n.Oe)) {
5484
+ if (o && (l.eventOffset = o, !n.gg && !n.Qe)) {
5479
5485
  var r = a.event.part.start.toString() === a.event.start().toString(), s = a.event.part.end.toString() === a.event.rawend().toString();
5480
- 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");
5486
+ 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");
5481
5487
  }
5482
5488
  }
5483
- }, this.yf = function () { var e = l.Le(); return l.days * (1440 / e); }, this.uf = function (e) {
5484
- var e = e || n.Ih || l.wf;
5489
+ }, this.Bf = function () { var e = l.Ne(); return l.days * (1440 / e); }, this.xf = function (e) {
5490
+ var e = e || n.Kh || l.zf;
5485
5491
  if (!e)
5486
5492
  return null;
5487
5493
  var t = l.rowlist[e.start.y];
5488
5494
  if (!t)
5489
5495
  return null;
5490
5496
  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;
5491
- 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);
5497
+ 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);
5492
5498
  var h = new DayPilot.Selection(i, a, s, l);
5493
5499
  return h.allowed = !e.div || !e.div.overlapping, h;
5494
- }, this.Ye = function () {
5500
+ }, this.$e = function () {
5495
5501
  this.xb.timeHeader = {}, l.elements.timeHeader.length > 0 && (l.elements.timeHeader = []);
5496
5502
  var e = r();
5497
5503
  e.style.position = "relative", this.nav.timeHeader = e;
5498
5504
  for (var t = 0; t < this.timeHeader.length; t++)
5499
5505
  for (var n = this.timeHeader[t], i = 0; i < n.length; i++)
5500
- this.Mh(i, t);
5506
+ this.Oh(i, t);
5501
5507
  var a = this.divNorth;
5502
5508
  1 === a.childNodes.length ? a.replaceChild(e, a.childNodes[0]) : (a.innerHTML = "", a.appendChild(e));
5503
- var o = this.Ae();
5509
+ var o = this.Ce();
5504
5510
  a.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px");
5505
- }, this.He = function (e, t) {
5506
- var n = null, i = this.ca.Ge(), t = t || this.cellGroupBy, a = e.start;
5511
+ }, this.Je = function (e, t) {
5512
+ var n = null, i = this.ca.Ie(), t = t || this.cellGroupBy, a = e.start;
5507
5513
  switch (t) {
5508
5514
  case "Minute":
5509
5515
  n = a.toString("m");
5510
5516
  break;
5511
5517
  case "Hour":
5512
- n = "Clock12Hours" === l.ca.Nh() ? a.toString("h tt", i) : a.toString("H", i);
5518
+ n = "Clock12Hours" === l.ca.Ph() ? a.toString("h tt", i) : a.toString("H", i);
5513
5519
  break;
5514
5520
  case "Day":
5515
5521
  n = a.toString(i.datePattern);
@@ -5531,12 +5537,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5531
5537
  break;
5532
5538
  case "Cell":
5533
5539
  var o = (e.end.ticks - e.start.ticks) / 6e4;
5534
- n = this.Oh(a, o);
5540
+ n = this.Qh(a, o);
5535
5541
  break;
5536
5542
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
5537
5543
  }
5538
5544
  return n;
5539
- }, 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) {
5545
+ }, 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) {
5540
5546
  var i, a = l.startDate.addDays(l.days);
5541
5547
  t = t || this.cellGroupBy;
5542
5548
  var o = 60;
@@ -5574,47 +5580,47 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5574
5580
  i = a;
5575
5581
  break;
5576
5582
  case "Cell":
5577
- var s = this.Ke(e);
5583
+ var s = this.Me(e);
5578
5584
  s.current && (i = s.current.end);
5579
5585
  break;
5580
5586
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
5581
5587
  }
5582
5588
  return i.getTime() > a.getTime() && (i = a), i;
5583
- }, 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 () {
5589
+ }, 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 () {
5584
5590
  l.rowlist.forEach(function (e) {
5585
5591
  var t = l.divHeader;
5586
5592
  if (t) {
5587
5593
  var n = e.index;
5588
5594
  if (t.rows[n]) {
5589
5595
  var i = t.rows[n];
5590
- l.pg && (i.style.top = e.top + "px");
5596
+ l.sg && (i.style.top = e.top + "px");
5591
5597
  var a = e.height;
5592
5598
  i && i.firstChild && parseInt(i.firstChild.style.height, 10) !== a && (i.firstChild.style.height = a + "px");
5593
5599
  }
5594
5600
  }
5595
- }), l.pg && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.fe + "px");
5596
- }, this.ah = function (e) {
5601
+ }), l.sg && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.fe + "px");
5602
+ }, this.ch = function (e) {
5597
5603
  if (!DayPilot.Global.touch.start && !DayPilot.Global.touch.active) {
5598
- n.Ph, 1, l.Qe(e);
5604
+ n.Rh, 1, l.Se(e);
5599
5605
  var t = DayPilot.Util.mouseButton(e);
5600
- if (l.Qh())
5606
+ if (l.Sh())
5601
5607
  return !1;
5602
5608
  if (t.middle || t.right)
5603
5609
  return !1;
5604
- if (l.Rh(l.coords))
5610
+ if (l.Th(l.coords))
5605
5611
  return !1;
5606
5612
  var i = t.left ? "left" : t.right ? "right" : t.middle ? "middle" : "unknown";
5607
- return l.Sh = i, n.Ih = l.Jh(), n.Ih && (n.Th = l), !1;
5613
+ return l.Uh = i, n.Kh = l.Lh(), n.Kh && (n.Vh = l), !1;
5608
5614
  }
5609
- }, 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) {
5610
- if (l.Oe = {}, l.wf) {
5615
+ }, 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) {
5616
+ if (l.Qe = {}, l.zf) {
5611
5617
  if (DayPilot.Util.mouseButton(e).left) {
5612
- var t = l.wf;
5613
- if (l.Rh(l.coords)) {
5618
+ var t = l.zf;
5619
+ if (l.Th(l.coords)) {
5614
5620
  var i = function (e) {
5615
5621
  return function () {
5616
- n.Ph = null;
5617
- var t = l.uf(e);
5622
+ n.Rh = null;
5623
+ var t = l.xf(e);
5618
5624
  if (t) {
5619
5625
  var i = {};
5620
5626
  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);
@@ -5625,32 +5631,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5625
5631
  }
5626
5632
  }
5627
5633
  }
5628
- }, 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) {
5634
+ }, 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) {
5629
5635
  if (!DayPilot.Global.touch.active) {
5630
5636
  var t = DayPilot.mc(e);
5631
- if (l.Qe(e), l.Oe.Dh) {
5632
- DayPilot.distance(l.Oe.Bh, t) > 2 && (DayPilot.Util.copyProps(l.Oe, n), o().style.cursor = "move", l.Oe = {});
5637
+ if (l.Se(e), l.Qe.Fh) {
5638
+ DayPilot.distance(l.Qe.Dh, t) > 2 && (DayPilot.Util.copyProps(l.Qe, n), o().style.cursor = "move", l.Qe = {});
5633
5639
  }
5634
- 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());
5640
+ 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());
5635
5641
  }
5636
- }, 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 () {
5637
- if (!n.lg) {
5638
- DayPilot.Util.addClass(n.Oe, l.L("_event_moving_source"));
5639
- var e = n.kg;
5640
- n.lg = l.ba(e);
5642
+ }, 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 () {
5643
+ if (!n.og) {
5644
+ DayPilot.Util.addClass(n.Qe, l.L("_event_moving_source"));
5645
+ var e = n.ng;
5646
+ n.og = l.ba(e);
5641
5647
  }
5642
- l.jg();
5643
- }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Rh = function (e) {
5644
- var t = l.wf;
5648
+ l.mg();
5649
+ }, this.fh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) {
5650
+ var t = l.zf;
5645
5651
  if (!t || !t.start || !t.end)
5646
5652
  return !1;
5647
- 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;
5653
+ 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;
5648
5654
  return e.x >= a && e.x <= o && e.y >= r && e.y <= s;
5649
- }, this.xf = function (e) {
5655
+ }, this.Af = function (e) {
5650
5656
  function t(e) {
5651
5657
  var t, n, o, s, d = e.end.time > e.start.time, c = e.start.y, u = e.start.time && e.end.time;
5652
5658
  if (i || !u) {
5653
- 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);
5659
+ 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);
5654
5660
  t = v.left, n = p.left + p.width;
5655
5661
  }
5656
5662
  else
@@ -5663,33 +5669,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5663
5669
  }
5664
5670
  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;
5665
5671
  }
5666
- if (e = e || n.Ih) {
5672
+ if (e = e || n.Kh) {
5667
5673
  var i = l.snapToGrid, a = l.rowlist;
5668
5674
  t(e);
5669
5675
  }
5670
- }, 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 () {
5676
+ }, 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 () {
5671
5677
  if (!l.Q) {
5672
- l.af();
5678
+ l.df();
5673
5679
  var e = l.nav.scroll;
5674
- 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)
5675
- l.Ff.drawCells = setTimeout(l.Yh(), l.scrollDelayCells);
5680
+ 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)
5681
+ l.If.drawCells = setTimeout(l.$h(), l.scrollDelayCells);
5676
5682
  else {
5677
- l.Yh()();
5683
+ l.$h()();
5678
5684
  }
5679
- 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;
5685
+ 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;
5680
5686
  }
5681
- }, 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) {
5687
+ }, 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) {
5682
5688
  if (!l.events.list)
5683
5689
  return null;
5684
5690
  for (var t = 0; t < this.events.list.length; t++) {
5685
5691
  var n = this.events.list[t];
5686
- if (l.Nf(n, e)) {
5692
+ if (l.Qf(n, e)) {
5687
5693
  var i = {};
5688
5694
  return i.ex = n, i.index = t, i;
5689
5695
  }
5690
5696
  }
5691
5697
  return null;
5692
- }, this.$h = function () {
5698
+ }, this.ai = function () {
5693
5699
  var e = this.ne(), t = e.xStart, n = e.xEnd - e.xStart, i = e.yStart, a = e.yEnd - e.yStart;
5694
5700
  this.cellProperties || (this.cellProperties = {});
5695
5701
  for (var o = 0; o <= n; o++) {
@@ -5697,43 +5703,43 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5697
5703
  var l = i + s;
5698
5704
  this.hd(r, l);
5699
5705
  }
5700
- this._h(r);
5706
+ this.bi(r);
5701
5707
  }
5702
- for (var d = this.ng(), l = d.start; l < d.end; l++)
5703
- this.ai(l);
5704
- }, this.bf = function () {
5708
+ for (var d = this.qg(), l = d.start; l < d.end; l++)
5709
+ this.ci(l);
5710
+ }, this.ef = function () {
5705
5711
  if (!l.Q) {
5706
5712
  var e = l.rowlist;
5707
5713
  if (e && e.length > 0) {
5708
5714
  if (this.cellSweeping) {
5709
5715
  var t = this.cellSweepingCacheSize;
5710
- this.oh(t);
5716
+ this.qh(t);
5711
5717
  }
5712
- this.$h();
5718
+ this.ai();
5713
5719
  }
5714
- this.jf = !1;
5720
+ this.mf = !1;
5715
5721
  }
5716
5722
  }, this.ne = function () {
5717
5723
  if (l.xb.drawArea)
5718
5724
  return l.xb.drawArea;
5719
5725
  if (!this.nav.scroll)
5720
5726
  return null;
5721
- 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;
5722
- r = l.Ie(a).x, s = l.Ie(o, !0).x;
5723
- var d = this.yf();
5727
+ 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;
5728
+ r = l.Ke(a).x, s = l.Ke(o, !0).x;
5729
+ var d = this.Bf();
5724
5730
  s = Math.min(s, d - 1), r = DayPilot.Util.atLeast(r, 0);
5725
- var c = e - i, u = e + this.nav.scroll.offsetHeight + 2 * i, h = this.Ef(c).i, f = this.Ef(u).i;
5731
+ var c = e - i, u = e + this.nav.scroll.offsetHeight + 2 * i, h = this.Hf(c).i, f = this.Hf(u).i;
5726
5732
  f < this.rowlist.length && f++, t.xStart = r, t.xEnd = s, t.yStart = h, t.yEnd = f;
5727
5733
  var v = l.nav.scroll;
5728
5734
  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;
5729
- }, this.Ae = function () { return l.yf() * l.cellWidth; }, this.ai = function (e) {
5735
+ }, this.Ce = function () { return l.Bf() * l.cellWidth; }, this.ci = function (e) {
5730
5736
  var t = l.rowlist, n = l.divLines, i = "y_" + e;
5731
5737
  if (!this.xb.linesHorizontal[i]) {
5732
- var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ae(), c = r();
5738
+ var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ce(), c = r();
5733
5739
  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;
5734
5740
  }
5735
- }, this._h = function (e) {
5736
- var t = l.Je(e);
5741
+ }, this.bi = function (e) {
5742
+ var t = l.Le(e);
5737
5743
  if (t) {
5738
5744
  var n = l.divLines, i = l.fe, a = "x_" + e;
5739
5745
  if (!this.xb.linesVertical[a]) {
@@ -5741,52 +5747,87 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5741
5747
  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;
5742
5748
  }
5743
5749
  }
5744
- }, this.We = function () { l.fe = l.bi(l.rowlist); }, this.bi = function (e) {
5750
+ }, this.Ye = function () { l.fe = l.di(l.rowlist); }, this.di = function (e) {
5745
5751
  for (var t = 0, n = 0; n < e.length; n++) {
5746
5752
  var i = e[n];
5747
5753
  i.top = t, t += i.height;
5748
5754
  }
5749
5755
  return t;
5750
- }, 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) {
5756
+ }, 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) {
5751
5757
  var t = [];
5752
5758
  for (var n in l.xb.cells)
5753
5759
  t.push(l.xb.cells[n]);
5754
5760
  t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { l.fb(e); });
5755
5761
  }, this.hd = function (e, t) {
5756
5762
  if (this.Ka) {
5757
- var n = l.Je(e);
5763
+ var n = l.Le(e);
5758
5764
  if (n) {
5759
5765
  var i = l.rowlist, a = l.divCells, o = e + "_" + t;
5760
5766
  if (!this.xb.cells[o]) {
5761
- var s = this.di(e, t), d = r();
5762
- 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;
5767
+ var s = this.fi(e, t), d = l.gi(e, t), c = r();
5768
+ 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) {
5769
+ 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) {
5770
+ switch (c.style.display = "flex", s.horizontalAlignment) {
5771
+ case "right":
5772
+ c.style.justifyContent = "flex-end";
5773
+ break;
5774
+ case "left":
5775
+ c.style.justifyContent = "flex-start";
5776
+ break;
5777
+ case "center": c.style.justifyContent = "center";
5778
+ }
5779
+ switch (s.verticalAlignment) {
5780
+ case "center":
5781
+ c.style.alignItems = "center";
5782
+ break;
5783
+ case "top":
5784
+ c.style.alignItems = "flex-start";
5785
+ break;
5786
+ case "bottom": c.style.alignItems = "flex-end";
5787
+ }
5788
+ }
5789
+ DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
5790
+ }
5791
+ a.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
5763
5792
  }
5764
5793
  }
5765
5794
  }
5766
- }, this.clearSelection = function () { this.ei(); }, this.fi = function (e, t, n) {
5795
+ }, this.gi = function (e, t) {
5796
+ var n = l.Le(e);
5797
+ if (!n)
5798
+ return null;
5799
+ var i = l.rowlist[t], a = i.id, o = n.start, r = n.end, s = {};
5800
+ 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) {
5801
+ var d = e + "_" + t;
5802
+ if (l.beforeCellRenderCaching && l.cf[d])
5803
+ return s;
5804
+ l.cf[d] = !0, this.onBeforeCellRender(s);
5805
+ }
5806
+ return s;
5807
+ }, this.clearSelection = function () { this.hi(); }, this.ii = function (e, t, n) {
5767
5808
  e = new DayPilot.Date(e), t = new DayPilot.Date(t);
5768
- var i = l.le(n), a = l.Ke(e);
5809
+ var i = l.le(n), a = l.Me(e);
5769
5810
  if (!a.current)
5770
5811
  throw new DayPilot.Exception("Time range selection 'start' out of timeline");
5771
- var o = l.Ke(new DayPilot.Date(t).addMilliseconds(-1));
5812
+ var o = l.Me(new DayPilot.Date(t).addMilliseconds(-1));
5772
5813
  if (!o.current)
5773
5814
  throw new DayPilot.Exception("Time range selection 'end' out of timeline");
5774
5815
  var r = {};
5775
5816
  return r.start = { y: i.index, x: a.i, "time": e }, r.end = { x: o.i, "time": t }, r.calendar = this, r;
5776
- }, 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 = {};
5817
+ }, 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 = {};
5777
5818
  var f = this.ca;
5778
- 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 () {
5819
+ 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 () {
5779
5820
  if ("Auto" === l.weekStarts) {
5780
- var e = f.Ge();
5821
+ var e = f.Ie();
5781
5822
  return e ? e.weekStarts : 0;
5782
5823
  }
5783
5824
  return l.weekStarts || 0;
5784
- }, 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) {
5825
+ }, 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) {
5785
5826
  var n = e + "_" + t, i = l.rowlist;
5786
5827
  if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
5787
5828
  return this.cellProperties[n];
5788
5829
  if (!this.cellProperties[n]) {
5789
- var a = i[t], o = a.id, r = l.Je(e), s = r.start, d = r.end, c = {};
5830
+ var a = i[t], o = a.id, r = l.Le(e), s = r.start, d = r.end, c = {};
5790
5831
  c.start = s, c.end = d, c.resource = o;
5791
5832
  var u = {};
5792
5833
  u.business = l.isBusiness(c), this.cellProperties[n] = u;
@@ -5812,7 +5853,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5812
5853
  return !1;
5813
5854
  }
5814
5855
  return !0;
5815
- }, 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 () {
5856
+ }, 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 () {
5816
5857
  if (this.id && this.id.tagName)
5817
5858
  this.nav.top = this.id;
5818
5859
  else {
@@ -5829,11 +5870,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5829
5870
  return l;
5830
5871
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
5831
5872
  }
5832
- return this.ii(), this.Zg(), this;
5833
- }, 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) {
5873
+ return this.li(), this._g(), this;
5874
+ }, 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) {
5834
5875
  if (e) {
5835
- 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); } } };
5836
- 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);
5876
+ 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); } } };
5877
+ 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);
5837
5878
  for (var n in e)
5838
5879
  t[n] || (l[n] = e[n]);
5839
5880
  for (var n in e)
@@ -5861,63 +5902,62 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
5861
5902
  var i = e;
5862
5903
  DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
5863
5904
  }
5864
- }, 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);
5905
+ }, 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);
5865
5906
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
5866
5907
  if (!e)
5867
5908
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
5868
5909
  if (!t)
5869
5910
  throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");
5870
- this.ji = {};
5871
- var n = this.ji;
5911
+ this.mi = {};
5912
+ var n = this.mi;
5872
5913
  n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags;
5873
5914
  var i = this;
5874
- i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags,
5875
- 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 () {
5876
- for (var e = [], t = 0; t < i.ki.events.length; t++)
5877
- e.push(i.ki.events[t]);
5915
+ 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 () {
5916
+ for (var e = [], t = 0; t < i.ni.events.length; t++)
5917
+ e.push(i.ni.events[t]);
5878
5918
  return e;
5879
- }, 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); };
5880
- }, 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) {
5881
- if (n.dg) {
5882
- var t = n.dg.event.calendar;
5883
- t.coords = t.Fh.Hh(e), t.Fh.Kh(), e.preventDefault();
5919
+ }, 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); };
5920
+ }, 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) {
5921
+ if (n.gg) {
5922
+ var t = n.gg.event.calendar;
5923
+ t.coords = t.Hh.Jh(e), t.Hh.Mh(), e.preventDefault();
5884
5924
  }
5885
- if (n.Oe) {
5925
+ if (n.Qe) {
5886
5926
  e.preventDefault();
5887
- var t = n.kg.calendar;
5888
- t.coords = t.Fh.Hh(e), t.Fh.Lh();
5927
+ var t = n.ng.calendar;
5928
+ t.coords = t.Hh.Jh(e), t.Hh.Nh();
5889
5929
  }
5890
- }, n.gh = function (e) { n.Vg = !1, n.ee(e); }, n.ee = function (e) {
5891
- if (n.dg) {
5892
- 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); };
5893
- if (setTimeout(function () { n.Ne = !1; }), !n.gg)
5930
+ }, n.ih = function (e) { n.Xg = !1, n.ee(e); }, n.ee = function (e) {
5931
+ if (n.gg) {
5932
+ 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); };
5933
+ if (setTimeout(function () { n.Pe = !1; }), !n.jg)
5894
5934
  return void t();
5895
- var a = n.hg, r = a.calendar, s = n.gg.start, l = n.gg.end, d = "left" === n.dg.dpBorder ? "start" : "end";
5935
+ var a = n.kg, r = a.calendar, s = n.jg.start, l = n.jg.end, d = "left" === n.gg.dpBorder ? "start" : "end";
5896
5936
  t(), r.K(a, s, l, d);
5897
5937
  }
5898
- else if (n.kg) {
5899
- 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); };
5900
- if (!n.lg)
5938
+ else if (n.ng) {
5939
+ 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); };
5940
+ if (!n.og)
5901
5941
  return void t();
5902
- var a = n.kg, r = n.lg.calendar;
5942
+ var a = n.ng, r = n.og.calendar;
5903
5943
  if (!r)
5904
5944
  return void t();
5905
- if (n.lg.source = n.Oe, !n.lg.row)
5945
+ if (n.og.source = n.Qe, !n.og.row)
5906
5946
  return void t();
5907
- var s = n.lg.start, l = n.lg.end, c = n.lg.row.id;
5908
- n.lg.calendar = null, o().style.cursor = "", n.Oe = null, n.kg = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
5947
+ var s = n.og.start, l = n.og.end, c = n.og.row.id;
5948
+ n.og.calendar = null, o().style.cursor = "", n.Qe = null, n.ng = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
5909
5949
  }
5910
- else if (n.Ih) {
5911
- var u = DayPilot.Util.mouseButton(e), h = n.Ih, r = h.calendar, t = function () { };
5912
- r.gi = null;
5950
+ else if (n.Kh) {
5951
+ var u = DayPilot.Util.mouseButton(e), h = n.Kh, r = h.calendar, t = function () { };
5952
+ r.ji = null;
5913
5953
  e.ctrlKey || e.metaKey;
5914
- if (n.Ph)
5915
- return clearTimeout(n.Ph), n.Ph = null, void t();
5916
- r.wf = h, n.Ih = null;
5917
- 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);
5918
- return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Ph = null);
5954
+ if (n.Rh)
5955
+ return clearTimeout(n.Rh), n.Rh = null, void t();
5956
+ r.zf = h, n.Kh = null;
5957
+ 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);
5958
+ return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Rh = null);
5919
5959
  }
5920
- n.Eh = null, n.cg = null;
5960
+ n.Gh = null, n.fg = null;
5921
5961
  };
5922
5962
  }
5923
5963
  }(DayPilot);