@daypilot/daypilot-lite-angular 4.7.0 → 4.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,7 +132,7 @@ DayPilot Lite
132
132
  Copyright (c) 2005 - 2025 Annpoint s.r.o.
133
133
  https://www.daypilot.org/
134
134
  Licensed under Apache Software License 2.0
135
- Version: 2025.4.743-lite
135
+ Version: 2025.4.754-lite
136
136
  */
137
137
  "use strict";
138
138
  var DayPilot = { Global: {} };
@@ -980,7 +980,7 @@ var DayPilot = { Global: {} };
980
980
  if (this instanceof t.Calendar && !this.P && (r = !0, this.P = !0), !r)
981
981
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
982
982
  var o = this;
983
- this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.Q = !1, this.R = {};
983
+ this.uniqueID = null, this.isCalendar = !0, this.v = "${v}", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.rtl = !1, this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.Q = !1, this.R = {};
984
984
  var s = this.R;
985
985
  this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.S(); }, this.S = function () { DayPilot.de(o.elements.selection), o.elements.selection = [], o.nav.activeSelection = null; }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); __doPostBack(o.uniqueID, i); }, this.V = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { o.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, i, this.X, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = o; e.Q || (e.Q = !0, clearInterval(e.Y), e.Z(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e._(), e.aa(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.W = function (e) { o.X(e.responseText); }, this.U = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = o.days, e.startDate = o.startDate, e.heightSpec = o.heightSpec, e.businessBeginsHour = o.businessBeginsHour, e.businessEndsHour = o.businessEndsHour, e.hashes = o.hashes, e.timeFormat = o.timeFormat, e.viewType = o.viewType, e.locale = o.locale, e; }, this.ca = function (e) {
986
986
  for (var t = e.parentNode; t && "TD" !== t.tagName;)
@@ -1208,9 +1208,10 @@ var DayPilot = { Global: {} };
1208
1208
  if (!DayPilot.Global.selecting && "Disabled" !== o.timeRangeSelectedHandling) {
1209
1209
  var t = e.which;
1210
1210
  if (1 === t || 0 === t) {
1211
- DayPilot.Global.selecting = { calendar: o, start: o.coords };
1212
- var n = DayPilot.Global.selecting;
1213
- return n.start.time = o.Da(o.coords.x, o.coords.y), n.start.columnIndex = o.Ea(o.coords.x), n.start.column = o.Ba[n.start.columnIndex], o.Fa(), o.Ga(), !1;
1211
+ var n = o.nav.scrollable;
1212
+ o.coords = DayPilot.mo3(n, e), DayPilot.Global.selecting = { calendar: o, start: o.coords };
1213
+ var a = DayPilot.Global.selecting;
1214
+ return a.start.time = o.Da(o.coords.x, o.coords.y), a.start.columnIndex = o.Ea(o.coords.x), a.start.column = o.Ba[a.start.columnIndex], o.Fa(), o.Ga(), !1;
1214
1215
  }
1215
1216
  }
1216
1217
  }, this.Ga = function () {
@@ -1230,20 +1231,21 @@ var DayPilot = { Global: {} };
1230
1231
  }();
1231
1232
  u.className = o.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px", o.nav.events.rows[0].cells[n].selection.appendChild(u);
1232
1233
  }();
1233
- }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha && (e.end.time = o.Da(e.end.x, e.end.y)), o.Ia(e); }, this.Ia = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ja(e.end.time, e.start.column.start), n = o.Ka(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ja(e.start.time, e.start.column.start), n = o.Ka(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () {
1234
+ }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = o.coords, e.end.time = o.Da(e.start.x, e.end.y), e.end.column = o.Ba[o.Ea(e.end.x)], o.Ha(e); }, this.Ha = function (e) { var t, n, a; o.snapToGrid ? e.end.time < e.start.time ? (t = o.Ia(e.end.time, e.start.column.start), n = o.Ja(e.start.time, e.start.column.start), a = e.endTime) : (t = o.Ia(e.start.time, e.start.column.start), n = o.Ja(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () {
1234
1235
  if (!o.N)
1235
1236
  return null;
1236
1237
  var e = o.N;
1237
1238
  return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, o);
1238
1239
  }, this.Ea = function (e) {
1239
- if (e -= o.hourWidth, e < 0)
1240
- return null;
1240
+ if (e < 0)
1241
+ return 0;
1242
+ o.rtl ? e = o.nav.main.offsetWidth - e : e -= o.hourWidth;
1241
1243
  for (var t = 0, n = o.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
1242
1244
  if (t += n[a].offsetWidth, e < t)
1243
1245
  return a;
1244
1246
  }
1245
1247
  return null;
1246
- }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ka = function (e, t) { var n = this.Ja(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.La = {}, this.La.getCellCoords = function () {
1248
+ }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), a = t / (60 / s.fa()) / o.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), l = this.Ba[n]; return l ? l.start.addTime(r) : null; }, this.Ia = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * s.fa() * 1e3, i = n % a; return e.addTime(-i); }, this.Ja = function (e, t) { var n = this.Ia(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ka = {}, this.Ka.getCellCoords = function () {
1247
1249
  var e = {};
1248
1250
  if (e.x = 0, e.y = 0, !o.coords)
1249
1251
  return null;
@@ -1266,18 +1268,18 @@ var DayPilot = { Global: {} };
1266
1268
  var s = {};
1267
1269
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1268
1270
  return;
1269
- o.columns.list = n, o.Ma && o.update();
1271
+ o.columns.list = n, o.La && o.update();
1270
1272
  }
1271
1273
  };
1272
1274
  o.columnsLoadMethod && "POST" === o.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a });
1273
1275
  }, this.ga = function () {
1274
1276
  var e;
1275
- e = "Resources" !== o.viewType ? this.Na() : o.columns.list, this.Ba = [];
1277
+ e = "Resources" !== o.viewType ? this.Ma() : o.columns.list, this.Ba = [];
1276
1278
  for (var t = 0; t < e.length; t++) {
1277
- var n = this.Oa(e[t]);
1279
+ var n = this.Na(e[t]);
1278
1280
  this.Ba.push(n);
1279
1281
  }
1280
- }, this.Oa = function (e) {
1282
+ }, this.Na = function (e) {
1281
1283
  var t = {};
1282
1284
  if (t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(o.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
1283
1285
  var n = t.start.getDatePart();
@@ -1322,7 +1324,7 @@ var DayPilot = { Global: {} };
1322
1324
  return !0;
1323
1325
  }, a.push(e), this.lines.push(a), this.lines.length - 1;
1324
1326
  }, t;
1325
- }, this.Na = function () {
1327
+ }, this.Ma = function () {
1326
1328
  var e = [], t = this.startDate.getDatePart(), n = this.days;
1327
1329
  switch (this.viewType) {
1328
1330
  case "Day":
@@ -1361,16 +1363,16 @@ var DayPilot = { Global: {} };
1361
1363
  if (this.elements.events)
1362
1364
  for (var e = 0; e < this.elements.events.length; e++) {
1363
1365
  var t = this.elements.events[e];
1364
- o.Pa(t);
1366
+ o.Oa(t);
1365
1367
  }
1366
1368
  this.elements.events = [];
1367
- }, this.Pa = function (e) {
1369
+ }, this.Oa = function (e) {
1368
1370
  !function () {
1369
1371
  var t = e.domArgs;
1370
1372
  if (e.domArgs = null, t && "function" == typeof o.onBeforeEventDomRemove && o.onBeforeEventDomRemove(t), t && "function" == typeof o.onBeforeEventDomAdd) {
1371
- var a = t && t.Qa;
1373
+ var a = t && t.Pa;
1372
1374
  if (a) {
1373
- o.Sa.Ra && n(t.element) && (o.Sa.Ta = !0, o.Sa.Ua(a), o.Sa.Ta = !1);
1375
+ o.Ra.Qa && n(t.element) && (o.Ra.Sa = !0, o.Ra.Ta(a), o.Ra.Sa = !1);
1374
1376
  }
1375
1377
  }
1376
1378
  }();
@@ -1380,7 +1382,7 @@ var DayPilot = { Global: {} };
1380
1382
  a.onmousedown = null, a.onmousemove = null, a.onclick = null;
1381
1383
  }
1382
1384
  e.helper = null, e.data = null, e.event = null, DayPilot.de(e);
1383
- }, this.Va = function (e) {
1385
+ }, this.Ua = function (e) {
1384
1386
  var a = e.cache || e.data, i = this.nav.events, r = a.borderRadius || o.eventBorderRadius;
1385
1387
  "number" == typeof r && (r += "px");
1386
1388
  var s = document.createElement("div");
@@ -1430,11 +1432,11 @@ var DayPilot = { Global: {} };
1430
1432
  if (t.control = o, t.e = e, t.element = null, s.domArgs = t, "function" == typeof o.onBeforeEventDomAdd && o.onBeforeEventDomAdd(t), t.element) {
1431
1433
  var a = l;
1432
1434
  if (a) {
1433
- t.Qa = a;
1435
+ t.Pa = a;
1434
1436
  if (n(t.element)) {
1435
- if (!o.Sa.Ra)
1437
+ if (!o.Ra.Qa)
1436
1438
  throw new DayPilot.Exception("Can't reach Vue");
1437
- o.Sa.Ta = !0, o.Sa.Wa(t.element, a), o.Sa.Ta = !1;
1439
+ o.Ra.Sa = !0, o.Ra.Va(t.element, a), o.Ra.Sa = !1;
1438
1440
  }
1439
1441
  else
1440
1442
  a.appendChild(t.element);
@@ -1456,10 +1458,10 @@ var DayPilot = { Global: {} };
1456
1458
  var s = r[o];
1457
1459
  s.part.width = 100 / a.lines.length, s.part.left = s.part.width * i;
1458
1460
  var l = i === a.lines.length - 1;
1459
- l || (s.part.width = 1.5 * s.part.width), this.Va(s);
1461
+ l || (s.part.width = 1.5 * s.part.width), this.Ua(s);
1460
1462
  }
1461
1463
  }
1462
- }, this.Xa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ya() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Za(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.$a(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = o._a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ab(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.$a = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this.ab(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.bb()), i.appendChild(this.cb()), e.appendChild(t), this.nav.zoom = e, e; }, this.bb = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.cb = function () {
1464
+ }, this.Wa = function () { var e = this.nav.top; e.innerHTML = "", DayPilot.Util.addClass(e, this.L("_main")), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.position = "relative", e.style.width = this.width ? this.width : "100%", this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), this.rtl && (e.style.direction = "rtl"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Xa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var t = this.Ya(); this.nav.top.appendChild(t), this.nav.scroll.style.zoom = 1; var n = this.Za(); this.nav.scrollable = n.firstChild, this.nav.scroll.appendChild(n), e.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", e.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = o.$a(o.loadingLabelText, o.loadingLabelHtml), this.nav.loading.style.display = "none", e.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this._a(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Za = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var n, a = t.insertRow(-1); n = a.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this._a(), n.appendChild(this.nav.hourTable), n = a.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var i = document.createElement("div"); return i.style.position = "relative", n.appendChild(i), i.appendChild(this.ab()), i.appendChild(this.bb()), e.appendChild(t), this.nav.zoom = e, e; }, this.ab = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.bb = function () {
1463
1465
  var e = document.createElement("table");
1464
1466
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1465
1467
  for (var t = this.Ba, n = t.length, a = e.insertRow(-1), i = 0; i < n; i++) {
@@ -1471,13 +1473,13 @@ var DayPilot = { Global: {} };
1471
1473
  r.selection = l, r.appendChild(s), r.appendChild(l);
1472
1474
  }
1473
1475
  return e;
1474
- }, this.ab = function () {
1476
+ }, this._a = function () {
1475
1477
  var e = document.createElement("table");
1476
1478
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1477
1479
  for (var t = o.oa(), n = 0; n < t; n++)
1478
- this.db(e, n);
1480
+ this.cb(e, n);
1479
1481
  return e;
1480
- }, this.db = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Ya = function () {
1482
+ }, this.cb = function (e, t) { var n = 60 * o.cellHeight / s.fa(), a = e.insertRow(-1); a.style.height = n + "px"; var i = a.insertCell(-1); i.valign = "bottom", i.unselectable = "on", i.style.cursor = "default", i.style.padding = "0px", i.style.border = "0px none"; var r = document.createElement("div"); r.style.position = "relative", r.className = this.L("_rowheader"), r.style.width = this.hourWidth + "px", r.style.height = n + "px", r.style.overflow = "hidden", r.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(o.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), r.appendChild(l), i.appendChild(r); }, this.Xa = function () {
1481
1483
  var e = s.fa(), t = 60 / e;
1482
1484
  switch (this.heightSpec) {
1483
1485
  case "Full": return 24 * t * this.cellHeight;
@@ -1489,21 +1491,21 @@ var DayPilot = { Global: {} };
1489
1491
  return n * this.cellHeight * t;
1490
1492
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1491
1493
  }
1492
- }, this.eb = function () {
1494
+ }, this.db = function () {
1493
1495
  var e = o.nav.corner ? o.nav.corner.parentNode : null;
1494
1496
  if (e) {
1495
1497
  e.innerHTML = "";
1496
- var t = this.fb();
1498
+ var t = this.eb();
1497
1499
  e.appendChild(t), o.nav.corner = t;
1498
1500
  }
1499
- }, this.Za = function () {
1501
+ }, this.Ya = function () {
1500
1502
  var e = document.createElement("div");
1501
1503
  e.style.overflow = "auto";
1502
1504
  var t = document.createElement("table");
1503
1505
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1504
1506
  var n = t.insertRow(-1), a = n.insertCell(-1);
1505
1507
  a.style.padding = "0px", a.style.border = "0px none";
1506
- var i = this.fb();
1508
+ var i = this.eb();
1507
1509
  a.appendChild(i), this.nav.corner = i, a = n.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1508
1510
  var r = "hidden" !== this.nav.scroll.style.overflow;
1509
1511
  if (a.appendChild(this.nav.header), r) {
@@ -1514,22 +1516,22 @@ var DayPilot = { Global: {} };
1514
1516
  s.className = this.L("_cornerright_inner"), o.appendChild(s), a.appendChild(o), this.nav.cornerRight = o;
1515
1517
  }
1516
1518
  return e.appendChild(t), e;
1517
- }, this.fb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () {
1519
+ }, this.eb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.L("_corner_inner"), e.appendChild(t), e; }, this._ = function () {
1518
1520
  var e = this.nav.main;
1519
1521
  e.root = null, e.onmouseup = null;
1520
1522
  for (var t = 0; t < e.rows.length; t++)
1521
1523
  for (var n = e.rows[t], a = 0; a < n.cells.length; a++) {
1522
1524
  var i = n.cells[a];
1523
- o.gb(i);
1525
+ o.fb(i);
1524
1526
  }
1525
1527
  this.fasterDispose || DayPilot.pu(e);
1526
- }, this.gb = function (e) {
1528
+ }, this.fb = function (e) {
1527
1529
  e && (!function () {
1528
1530
  var t = e, a = t.domArgs;
1529
1531
  if (t.domArgs = null, a && "function" == typeof o.onBeforeCellDomRemove && o.onBeforeCellDomRemove(a), a && "function" == typeof o.onBeforeCellDomAdd) {
1530
- var i = a && a.Qa;
1532
+ var i = a && a.Pa;
1531
1533
  if (i) {
1532
- o.Sa.Ra && n(a.element) && (o.Sa.Ta = !0, o.Sa.Ua(i), o.Sa.Ta = !1);
1534
+ o.Ra.Qa && n(a.element) && (o.Ra.Sa = !0, o.Ra.Ta(i), o.Ra.Sa = !1);
1533
1535
  }
1534
1536
  }
1535
1537
  }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null);
@@ -1556,7 +1558,7 @@ var DayPilot = { Global: {} };
1556
1558
  a.start = t.start.addTime(m * i), a.end = a.start.addTime(i), a.resource = t.id, a.onmousedown = b.Ca, a.onmouseup = function () { return !1; }, a.onclick = function () { return !1; }, a.root = b, a.style.padding = "0px", a.style.border = "0px none", a.style.verticalAlign = "top", a.style.height = o.cellHeight + "px", a.style.overflow = "hidden", a.unselectable = "on";
1557
1559
  var r = document.createElement("div");
1558
1560
  r.unselectable = "on", r.style.height = o.cellHeight + "px", r.style.position = "relative", r.className = b.L("_cell");
1559
- var s = b.hb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m };
1561
+ var s = b.gb(a.start, a.end), l = { "business": s, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, d = { "start": a.start, "end": a.end, "resource": a.resource, "properties": l, "x": e, "y": m };
1560
1562
  !function () {
1561
1563
  if ("function" == typeof o.onBeforeCellRender) {
1562
1564
  var e = {};
@@ -1572,11 +1574,11 @@ var DayPilot = { Global: {} };
1572
1574
  if (e.control = o, e.cell = d, e.element = null, a.domArgs = e, "function" == typeof o.onBeforeCellDomAdd && o.onBeforeCellDomAdd(e), e.element) {
1573
1575
  var t = c;
1574
1576
  if (t) {
1575
- e.Qa = t;
1577
+ e.Pa = t;
1576
1578
  if (n(e.element)) {
1577
- if (!o.Sa.Ra)
1579
+ if (!o.Ra.Qa)
1578
1580
  throw new DayPilot.Exception("Can't reach Vue");
1579
- o.Sa.Ta = !0, o.Sa.Wa(e.element, t), o.Sa.Ta = !1;
1581
+ o.Ra.Sa = !0, o.Ra.Va(e.element, t), o.Ra.Sa = !1;
1580
1582
  }
1581
1583
  else
1582
1584
  t.appendChild(e.element);
@@ -1622,13 +1624,13 @@ var DayPilot = { Global: {} };
1622
1624
  o.snapToGrid && (c = Math.floor((o.coords.y - v - r + i / 2) / i) * i + r), c < r && (c = r);
1623
1625
  var p = o.nav.events, d = o.nav.main.clientHeight + r, m = parseInt(t.movingShadow.style.height);
1624
1626
  c + m > d && (c = d - m), DayPilot.Util.addClass(t.moving, o.L("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1625
- var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - 45) / g);
1626
- y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1627
+ var g = p.clientWidth / p.rows[0].cells.length, y = Math.floor((o.coords.x - o.hourWidth) / g);
1628
+ o.rtl && (y = o.Ba.length - y - 1), y < 0 && (y = 0), y < p.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(p.rows[0].cells[y]));
1627
1629
  }
1628
1630
  else
1629
1631
  DayPilot.Global.selecting && (o.Fa(), o.Ga());
1630
1632
  }, o.nav.scrollable.style.display = "";
1631
- }, this.hb = function (e) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.aa = function () {
1633
+ }, this.gb = function (e) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.aa = function () {
1632
1634
  var e = this.nav.header;
1633
1635
  if (e && e.rows)
1634
1636
  for (var t = 0; t < e.rows.length; t++)
@@ -1637,14 +1639,14 @@ var DayPilot = { Global: {} };
1637
1639
  i.onclick = null, i.onmousemove = null, i.onmouseout = null;
1638
1640
  }
1639
1641
  this.fasterDispose || DayPilot.pu(e);
1640
- }, this.ib = function (e) {
1642
+ }, this.hb = function (e) {
1641
1643
  function t(t) {
1642
1644
  var i = a[t], r = e ? n.insertCell(-1) : n.cells[t];
1643
- r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.jb;
1645
+ r.data = i, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = o.headerHeight + "px", r.onclick = o.ib;
1644
1646
  var s, l = e ? document.createElement("div") : r.firstChild;
1645
1647
  e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = o.L("_colheader"), l.style.height = o.headerHeight + "px", o.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = o.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild;
1646
1648
  var d = {};
1647
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.kb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i);
1649
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = o.jb(i, o), "function" == typeof o.onBeforeHeaderRender && (DayPilot.Util.copyProps(i, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), o.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, i, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), i.toolTip && (s.title = i.toolTip), i.cssClass && DayPilot.Util.addClass(l, i.cssClass), i.backColor && (s.style.background = i.backColor), i.areas && DayPilot.Areas.attach(l, i);
1648
1650
  var c = i.verticalAlignment;
1649
1651
  if (c)
1650
1652
  switch (s.style.display = "flex", c) {
@@ -1667,21 +1669,21 @@ var DayPilot = { Global: {} };
1667
1669
  break;
1668
1670
  case "right": s.style.justifyContent = "flex-end";
1669
1671
  }
1670
- l.firstChild.innerHTML = o._a(i.name, i.html);
1672
+ l.firstChild.innerHTML = o.$a(i.name, i.html);
1671
1673
  }
1672
1674
  for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.Ba, i = a.length, r = 0; r < i; r++)
1673
1675
  t(r);
1674
- }, this.jb = function (e) {
1676
+ }, this.ib = function (e) {
1675
1677
  if ("Disabled" !== o.headerClickHandling) {
1676
- var t = this.data, n = o.kb(t), a = {};
1678
+ var t = this.data, n = o.jb(t), a = {};
1677
1679
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = n, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof o.onHeaderClick && (o.onHeaderClick(a), a.preventDefault.value) || "function" == typeof o.onHeaderClicked && o.onHeaderClicked(a);
1678
1680
  }
1679
- }, this.kb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.lb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () {
1681
+ }, this.jb = function (e) { return new DayPilot.CalendarColumn(e, o); }, this.kb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () {
1680
1682
  for (var e = this.nav.header, t = !0; this.headerCreated && e && e.rows && e.rows.length > 0;)
1681
1683
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1682
1684
  this.headerCreated = !0;
1683
- this.ib(t);
1684
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.mb = function () { var e = this.nav.scroll; e.root = this, o.nb(), e.onscroll || (e.onscroll = function () { o.ob(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.pb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.qb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1685
+ this.hb(t);
1686
+ }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.loadingStop = function () { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.lb = function () { var e = this.nav.scroll; e.root = this, o.mb(), e.onscroll || (e.onscroll = function () { o.nb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ob = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.pb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
1685
1687
  var t = null;
1686
1688
  if (e instanceof DayPilot.Event)
1687
1689
  t = e.data;
@@ -1690,7 +1692,7 @@ var DayPilot = { Global: {} };
1690
1692
  throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
1691
1693
  t = e;
1692
1694
  }
1693
- o.events.list || (o.events.list = []), o.events.list.push(t), o.rb({ "eventsOnly": !0 }), o.wa.notify();
1695
+ o.events.list || (o.events.list = []), o.events.list.push(t), o.qb({ "eventsOnly": !0 }), o.wa.notify();
1694
1696
  }, this.events.find = function (e) {
1695
1697
  if (!o.events.list)
1696
1698
  return null;
@@ -1718,7 +1720,7 @@ var DayPilot = { Global: {} };
1718
1720
  o.events.list.splice(n, 1, e);
1719
1721
  }
1720
1722
  }
1721
- o.rb({ "eventsOnly": !0 }), o.wa.notify();
1723
+ o.qb({ "eventsOnly": !0 }), o.wa.notify();
1722
1724
  }, this.events.remove = function (e) {
1723
1725
  var t;
1724
1726
  if (e instanceof DayPilot.Event)
@@ -1732,7 +1734,7 @@ var DayPilot = { Global: {} };
1732
1734
  n && (t = n.data);
1733
1735
  }
1734
1736
  var a = DayPilot.indexOf(o.events.list, t);
1735
- o.events.list.splice(a, 1), o.rb({ "eventsOnly": !0 }), o.wa.notify();
1737
+ o.events.list.splice(a, 1), o.qb({ "eventsOnly": !0 }), o.wa.notify();
1736
1738
  }, this.events.load = function (e, t, n) {
1737
1739
  var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) {
1738
1740
  var n, i = e.request;
@@ -1747,7 +1749,7 @@ var DayPilot = { Global: {} };
1747
1749
  var s = {};
1748
1750
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
1749
1751
  return;
1750
- o.events.list = n, o.Ma && o.rb({ "eventsOnly": !0 });
1752
+ o.events.list = n, o.La && o.qb({ "eventsOnly": !0 });
1751
1753
  }
1752
1754
  };
1753
1755
  if (o.eventsLoadMethod && "POST" === o.eventsLoadMethod.toUpperCase())
@@ -1756,28 +1758,29 @@ var DayPilot = { Global: {} };
1756
1758
  var r = e, s = "start=" + o.visibleStart().toString() + "&end=" + o.visibleEnd().toString();
1757
1759
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": i, "error": a });
1758
1760
  }
1759
- }, this.sb = function () {
1760
- if (o.nav.top.className !== o.L("_main")) {
1761
- o.nav.top.className = o.L("_main");
1762
- var e = o.nav.corner;
1763
- e.className = o.L("_corner"), e.firstChild.className = o.L("_corner_inner");
1764
- var t = o.nav.cornerRight;
1765
- t && (t.className = o.L("_cornerright"), t.firstChild.className = o.L("_cornerright_inner"));
1761
+ }, this.rb = function () {
1762
+ var e = o.L("_main");
1763
+ if (o.cssClass && (e += " " + o.cssClass), o.rtl && (e += " " + o.L("_direction_rtl")), o.nav.top.className !== e) {
1764
+ o.nav.top.className = e;
1765
+ var t = o.nav.corner;
1766
+ t.className = o.L("_corner"), t.firstChild.className = o.L("_corner_inner");
1767
+ var n = o.nav.cornerRight;
1768
+ n && (n.className = o.L("_cornerright"), n.firstChild.className = o.L("_cornerright_inner"));
1766
1769
  }
1767
1770
  }, this.update = function (e) {
1768
1771
  if (o.Q)
1769
1772
  throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed.");
1770
- o.tb(e), o.rb();
1771
- }, this.rb = function (e) {
1772
- if (this.Ma) {
1773
+ o.sb(e), o.qb();
1774
+ }, this.qb = function (e) {
1775
+ if (this.La) {
1773
1776
  e = e || {};
1774
1777
  var t = !e.eventsOnly;
1775
- o.ub(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.eb(), o.pb(), o.sb(), o.nb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1778
+ o.tb(), o.Z(), o.nav.top.style.cursor = "auto", t && (o.ga(), o.ja(), o.ka(), o.la(), o.ma(), o.db(), o.ob(), o.rb(), o.mb()), o.ha(), o.ia(), o.na(), o.clearSelection(), this.visible ? this.show() : this.hide();
1776
1779
  }
1777
- }, this.vb = null, this.tb = function (e) {
1780
+ }, this.ub = null, this.sb = function (e) {
1778
1781
  if (e) {
1779
1782
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? o.events.list = e.list : o.events.list = e; } }, "columns": { "preInit": function () { o.columns.list = this.data; } } };
1780
- this.vb = t;
1783
+ this.ub = t;
1781
1784
  for (var n in e)
1782
1785
  if (t[n]) {
1783
1786
  var a = t[n];
@@ -1786,13 +1789,13 @@ var DayPilot = { Global: {} };
1786
1789
  else
1787
1790
  o[n] = e[n];
1788
1791
  }
1789
- }, this.wb = function () {
1790
- var e = this.vb;
1792
+ }, this.vb = function () {
1793
+ var e = this.ub;
1791
1794
  for (var t in e) {
1792
1795
  var n = e[t];
1793
1796
  n.postInit && n.postInit();
1794
1797
  }
1795
- }, this.xb = function () {
1798
+ }, this.wb = function () {
1796
1799
  if (this.id && this.id.tagName)
1797
1800
  this.nav.top = this.id;
1798
1801
  else {
@@ -1801,8 +1804,8 @@ var DayPilot = { Global: {} };
1801
1804
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
1802
1805
  throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
1803
1806
  }
1804
- }, this.yb = {}, this.yb.events = [], this.zb = function (e) {
1805
- var t = this.yb.events, n = this.events.list[e], a = {};
1807
+ }, this.xb = {}, this.xb.events = [], this.yb = function (e) {
1808
+ var t = this.xb.events, n = this.events.list[e], a = {};
1806
1809
  for (var i in n)
1807
1810
  a[i] = n[i];
1808
1811
  if (a.start = new DayPilot.Date(n.start), a.end = new DayPilot.Date(n.end), "function" == typeof this.onBeforeEventRender) {
@@ -1812,7 +1815,7 @@ var DayPilot = { Global: {} };
1812
1815
  t[e] = a;
1813
1816
  }, this.ha = function () {
1814
1817
  var e = this.events.list;
1815
- if (o.yb.events = [], e) {
1818
+ if (o.xb.events = [], e) {
1816
1819
  if (!DayPilot.isArray(e))
1817
1820
  throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
1818
1821
  var t = e.length, n = 864e5;
@@ -1832,7 +1835,7 @@ var DayPilot = { Global: {} };
1832
1835
  }
1833
1836
  if ("function" == typeof this.onBeforeEventRender)
1834
1837
  for (var i = 0; i < t; i++)
1835
- this.zb(i);
1838
+ this.yb(i);
1836
1839
  for (var i = 0; i < this.Ba.length; i++) {
1837
1840
  var l = {};
1838
1841
  l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
@@ -1852,21 +1855,21 @@ var DayPilot = { Global: {} };
1852
1855
  var D = _.boxBottom, S = "Always" === o.useEventBoxes;
1853
1856
  S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
1854
1857
  var M = w.part.top, T = w.part.top + w.part.height;
1855
- M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1858
+ M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.xb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
1856
1859
  }
1857
1860
  }
1858
1861
  }
1859
1862
  }
1860
1863
  for (var i = 0; i < this.Ba.length; i++) {
1861
1864
  var d = this.Ba[i];
1862
- d.events.sort(this.Ab);
1865
+ d.events.sort(this.zb);
1863
1866
  for (var v = 0; v < d.events.length; v++) {
1864
1867
  var r = d.events[v];
1865
1868
  d.putIntoBlock(r);
1866
1869
  }
1867
1870
  for (var v = 0; v < d.blocks.length; v++) {
1868
1871
  var A = d.blocks[v];
1869
- A.events.sort(this.Ab);
1872
+ A.events.sort(this.zb);
1870
1873
  for (var E = 0; E < A.events.length; E++) {
1871
1874
  var r = A.events[E];
1872
1875
  A.putIntoLine(r);
@@ -1874,7 +1877,7 @@ var DayPilot = { Global: {} };
1874
1877
  }
1875
1878
  }
1876
1879
  }
1877
- }, this.Ab = function (e, t) {
1880
+ }, this.zb = function (e, t) {
1878
1881
  if (!(e && t && e.start && t.start))
1879
1882
  return 0;
1880
1883
  var n = e.start().getTime() - t.start().getTime();
@@ -1888,42 +1891,42 @@ var DayPilot = { Global: {} };
1888
1891
  var o = 60 * i * 1e3, l = a - n, d = l % o, c = l - d, u = c + o;
1889
1892
  0 === d && (u = c);
1890
1893
  var h = {};
1891
- return h.cut = !1, h.top = this.Bb(l), h.boxTop = this.Bb(c), h.boxBottom = this.Bb(u), this.cache.pixels[a + "_" + n] = h, h;
1892
- }, this.Bb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.ub = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Ya(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.ob = function () {
1893
- if (o.nav.scroll && o.Cb()) {
1894
+ return h.cut = !1, h.top = this.Ab(l), h.boxTop = this.Ab(c), h.boxBottom = this.Ab(u), this.cache.pixels[a + "_" + n] = h, h;
1895
+ }, this.Ab = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.tb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Xa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { o.wa.scope && o.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.nb = function () {
1896
+ if (o.nav.scroll && o.Bb()) {
1894
1897
  var e = o.nav.scroll.scrollTop, t = s.fa(), n = 60 / t, a = e / (n * o.cellHeight);
1895
- o.Db.scrollHour = a;
1898
+ o.Cb.scrollHour = a;
1896
1899
  }
1897
- }, this.nb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Db.scrollHour ? t * o.cellHeight * o.Db.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.ob(); }, this.Eb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.pb(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Fb = function () { this.ub(), this.ga(), this.Xa(), this.ja(), this.ka(), this.pb(), this.mb(), this.qb(), t.register(this), this.Gb(), this.V("Init"); }, this.Db = {}, this.Hb = function () { this.Db.themes = [], this.Db.themes.push(this.theme || this.cssClassPrefix); }, this.Ib = function () {
1898
- for (var e = this.Db.themes, t = 0; t < e.length; t++) {
1900
+ }, this.mb = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof o.Cb.scrollHour ? t * o.cellHeight * o.Cb.scrollHour : "Auto" === o.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = o.nav.top; "none" === n.style.display ? (n.style.display = "", o.nav.scroll.scrollTop = e, n.style.display = "none") : o.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return o.nav.scroll.scrollTop; }, this.setScrollY = function (e) { o.nav.scroll.scrollTop = e, o.nb(); }, this.Db = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof o.events.list || !o.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { o.visible = !0, o.nav.top.style.display = "", this.ob(); }, this.hide = function () { o.visible = !1, o.nav.top.style.display = "none"; }, this.Eb = function () { this.tb(), this.ga(), this.Wa(), this.ja(), this.ka(), this.ob(), this.lb(), this.pb(), t.register(this), this.Fb(), this.V("Init"); }, this.Cb = {}, this.Gb = function () { this.Cb.themes = [], this.Cb.themes.push(this.theme || this.cssClassPrefix); }, this.Hb = function () {
1901
+ for (var e = this.Cb.themes, t = 0; t < e.length; t++) {
1899
1902
  var n = e[t];
1900
1903
  DayPilot.Util.removeClass(this.nav.top, n + "_main");
1901
1904
  }
1902
- this.Db.themes = [];
1903
- }, this.Jb = function () {
1905
+ this.Cb.themes = [];
1906
+ }, this.Ib = function () {
1904
1907
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1905
1908
  var e = {};
1906
1909
  e.isCallBack = !1, this.onAfterRender(e);
1907
1910
  }
1908
- }, this.Kb = function () {
1909
- if ("function" == typeof this.onInit && !this.Lb) {
1910
- this.Lb = !0;
1911
+ }, this.Jb = function () {
1912
+ if ("function" == typeof this.onInit && !this.Kb) {
1913
+ this.Kb = !0;
1911
1914
  var e = {};
1912
1915
  this.onInit(e);
1913
1916
  }
1914
- }, this.Cb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Gb = function () { var e = o.Cb; e() || (o.Y = setInterval(function () { e() && (o.mb(), o.pb(), clearInterval(o.Y)); }, 100)); }, this._a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) {
1915
- var a = o.Sa.Ra;
1917
+ }, this.Bb = function () { var e = o.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Fb = function () { var e = o.Bb; e() || (o.Y = setInterval(function () { e() && (o.lb(), o.ob(), clearInterval(o.Y)); }, 100)); }, this.$a = function (e, t) { return o.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) {
1918
+ var a = o.Ra.Qa;
1916
1919
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
1917
1920
  var i = a.createVNode(e, n);
1918
1921
  a.render(i, t);
1919
1922
  }
1920
- }, this.Sa.Wa = function (e, t) {
1921
- var n = o.Sa.Ra;
1923
+ }, this.Ra.Va = function (e, t) {
1924
+ var n = o.Ra.Qa;
1922
1925
  if ("function" == typeof n.render) {
1923
1926
  var a = e;
1924
1927
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
1925
1928
  }
1926
- }, this.Sa.Ua = function (e) { var t = o.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.tb, this.internal.xssTextHtml = o._a, this.internal.enableVue = function (e) { o.Sa.Ra = e; }, this.internal.vueRef = function () { return o.Sa.Ra; }, this.internal.vueRendering = function () { return o.Sa.Ta; }, this.init = function () { this.xb(); var e = this.Eb(); return this.Hb(), e ? void this.Fb() : (this.ub(), this.ga(), this.ha(), this.Xa(), this.ja(), this.ka(), this.u(), this.pb(), this.mb(), this.qb(), t.register(this), this.events && (this.ia(), this.na()), this.Jb(), this.Kb(), this.Gb(), this.Ma = !0, this); }, this.Init = this.init, this.tb(i);
1929
+ }, this.Ra.Ta = function (e) { var t = o.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = o.sb, this.internal.xssTextHtml = o.$a, this.internal.enableVue = function (e) { o.Ra.Qa = e; }, this.internal.vueRef = function () { return o.Ra.Qa; }, this.internal.vueRendering = function () { return o.Ra.Sa; }, this.init = function () { this.wb(); var e = this.Db(); return this.Gb(), e ? void this.Eb() : (this.tb(), this.ga(), this.ha(), this.Wa(), this.ja(), this.ka(), this.u(), this.ob(), this.lb(), this.pb(), t.register(this), this.events && (this.ia(), this.na()), this.Ib(), this.Jb(), this.Fb(), this.La = !0, this); }, this.Init = this.init, this.sb(i);
1927
1930
  }, DayPilot.CalendarColumn = function (e, t) { var n = this; n.id = e.id, n.name = e.name, n.data = e.data, n.start = new DayPilot.Date(e.start), n.calendar = t, n.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1928
1931
  e.fn.daypilotCalendar = function (e) {
1929
1932
  var t = null, n = this.each(function () {
@@ -1955,7 +1958,7 @@ var DayPilot = { Global: {} };
1955
1958
  l.call(t, d, function (e) {
1956
1959
  for (var t in e)
1957
1960
  i[t] = e[t];
1958
- i.update(), i.Kb();
1961
+ i.update(), i.Jb();
1959
1962
  }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0);
1960
1963
  } };
1961
1964
  }]);
@@ -1969,7 +1972,7 @@ var DayPilot = { Global: {} };
1969
1972
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.R.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", this.weekStarts = "Auto", e)
1970
1973
  for (var t in e)
1971
1974
  this[t] = e[t];
1972
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Nb(); this.resetTarget && !e ? this.Ob(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Nb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Cb && (n.Cb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Pb = function (e) { this.date = new DayPilot.Date(e), this.Ob(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Pb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Nb = function () {
1975
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Mb(); this.resetTarget && !e ? this.Nb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Mb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Bb && (n.Bb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Ob = function (e) { this.date = new DayPilot.Date(e), this.Nb(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Ob(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Mb = function () {
1973
1976
  var e = this.D();
1974
1977
  if (!e)
1975
1978
  return this.date;
@@ -1982,29 +1985,29 @@ var DayPilot = { Global: {} };
1982
1985
  a = DayPilot.Date.parse(t, n.patterns[i]);
1983
1986
  }
1984
1987
  return a;
1985
- }, this.Ob = function (e) {
1988
+ }, this.Nb = function (e) {
1986
1989
  var t = this.D();
1987
1990
  if (t) {
1988
1991
  var a = e.toString(n.pattern, n.locale);
1989
1992
  "INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
1990
1993
  }
1991
- }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Cb; } }), this.show = function () {
1992
- if (!this.Cb) {
1994
+ }, this.R = {}, this.R.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Bb; } }), this.show = function () {
1995
+ if (!this.Bb) {
1993
1996
  document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
1994
1997
  var e = this.D(), a = new DayPilot.Navigator(t);
1995
- a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Qb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Ob(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1998
+ a.api = 2, a.cssOnly = !0, a.theme = n.theme, a.weekStarts = "Auto", a.locale = n.locale, a.showToday = n.showToday, a.todayText = n.todayText, a.weekStarts = n.weekStarts, a.onTodayClick = function (e) { a.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, a.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(a.Pb), i = t.toString(n.pattern, n.locale), r = {}; r.start = t, r.date = t, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(r), r.preventDefault.value) || (n.Nb(i), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(r)); }, this.navigator = a;
1996
1999
  var i = { x: 0, y: 0, w: 0, h: 0 };
1997
2000
  e && (i = DayPilot.abs(e));
1998
2001
  var r = i.h, o = n.targetAlignment, s = document.createElement("div");
1999
2002
  s.style.position = "absolute", "left" === o && (s.style.left = i.x + "px"), s.style.top = i.y + r + "px", n.zIndex && (s.style.zIndex = n.zIndex);
2000
2003
  var l = document.createElement("div");
2001
2004
  l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
2002
- var d = n.Nb() || n.date;
2003
- if (a.startDate = d, a.Qb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
2005
+ var d = n.Mb() || n.date;
2006
+ if (a.startDate = d, a.Pb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === o) {
2004
2007
  var c = i.x + i.w - a.nav.top.offsetWidth;
2005
2008
  s.style.left = c + "px";
2006
2009
  }
2007
- if (this.Cb = !0, this.onShow) {
2010
+ if (this.Bb = !0, this.onShow) {
2008
2011
  var u = {};
2009
2012
  this.onShow(u);
2010
2013
  }
@@ -2018,10 +2021,10 @@ var DayPilot = { Global: {} };
2018
2021
  var a = this, i = null;
2019
2022
  this.v = "${v}", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null;
2020
2023
  var r = DayPilot.isArray(n) ? null : n;
2021
- if (this.Rb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) {
2024
+ if (this.Qb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) {
2022
2025
  r = r || {};
2023
2026
  var o = null;
2024
- if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Rb.submenu = null, null !== t.mouse) {
2027
+ if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Qb.submenu = null, null !== t.mouse) {
2025
2028
  a.cssOnly || (a.cssOnly = !0);
2026
2029
  var s = null;
2027
2030
  if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof a.onShow) {
@@ -2030,15 +2033,15 @@ var DayPilot = { Global: {} };
2030
2033
  return;
2031
2034
  }
2032
2035
  var d = document.createElement("div");
2033
- if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Sb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
2036
+ if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Rb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
2034
2037
  throw "No menu items defined.";
2035
2038
  if (this.showMenuTitle) {
2036
2039
  var c = document.createElement("div");
2037
- c.innerHTML = this.menuTitle, c.className = this.Sb("title"), d.appendChild(c);
2040
+ c.innerHTML = this.menuTitle, c.className = this.Rb("title"), d.appendChild(c);
2038
2041
  }
2039
2042
  for (var u = 0; u < this.items.length; u++) {
2040
2043
  var h = this.items[u], f = document.createElement("div");
2041
- if (DayPilot.Util.addClass(f, this.Sb("item")), h.items && (DayPilot.Util.addClass(f, this.Sb("item_haschildren")), DayPilot.Util.addClass(d, this.Sb("withchildren"))), "undefined" != typeof h && !h.hidden) {
2044
+ if (DayPilot.Util.addClass(f, this.Rb("item")), h.items && (DayPilot.Util.addClass(f, this.Rb("item_haschildren")), DayPilot.Util.addClass(d, this.Rb("withchildren"))), "undefined" != typeof h && !h.hidden) {
2042
2045
  if ("-" === h.text) {
2043
2046
  var v = document.createElement("div");
2044
2047
  v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
@@ -2046,7 +2049,7 @@ var DayPilot = { Global: {} };
2046
2049
  else {
2047
2050
  var p = document.createElement("a");
2048
2051
  if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
2049
- DayPilot.Util.addClass(p, a.Sb("item_disabled"));
2052
+ DayPilot.Util.addClass(p, a.Rb("item_disabled"));
2050
2053
  else {
2051
2054
  if (h.onclick || h.onClick) {
2052
2055
  p.item = h, p.onclick = function (e, t) {
@@ -2074,7 +2077,7 @@ var DayPilot = { Global: {} };
2074
2077
  DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
2075
2078
  }
2076
2079
  if (h.items && !h.disabled) {
2077
- var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Tb(e, t); }; };
2080
+ var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.Sb(e, t); }; };
2078
2081
  p.ontouchend = y(h, p);
2079
2082
  }
2080
2083
  if (h.onclick)
@@ -2112,13 +2115,13 @@ var DayPilot = { Global: {} };
2112
2115
  }
2113
2116
  h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
2114
2117
  var b = document.createElement("span");
2115
- if (b.className = a.Sb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
2118
+ if (b.className = a.Rb("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
2116
2119
  var w = document.createElement("img");
2117
2120
  w.src = h.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", p.appendChild(w);
2118
2121
  }
2119
2122
  if (h.icon) {
2120
2123
  var x = document.createElement("span");
2121
- x.className = a.Sb("item_icon");
2124
+ x.className = a.Rb("item_icon");
2122
2125
  var _ = document.createElement("i");
2123
2126
  _.className = h.icon, x.appendChild(_), p.appendChild(x);
2124
2127
  }
@@ -2128,7 +2131,7 @@ var DayPilot = { Global: {} };
2128
2131
  var D = document.createElementNS(C, "use");
2129
2132
  D.setAttribute("href", h.symbol), k.appendChild(D);
2130
2133
  var S = document.createElement("span");
2131
- S.className = a.Sb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
2134
+ S.className = a.Rb("item_symbol"), S.style.position = "absolute", S.style.top = "0px", S.style.left = "0px", S.appendChild(k), p.appendChild(S);
2132
2135
  }
2133
2136
  var M = function (e, n) {
2134
2137
  return function () {
@@ -2138,7 +2141,7 @@ var DayPilot = { Global: {} };
2138
2141
  return;
2139
2142
  clearTimeout(r.timeout), t.waitingSubmenu = null;
2140
2143
  }
2141
- e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Tb(i, n); }, 300));
2144
+ e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Sb(i, n); }, 300));
2142
2145
  };
2143
2146
  };
2144
2147
  p.onmouseover = M(h, p), f.appendChild(p);
@@ -2147,10 +2150,10 @@ var DayPilot = { Global: {} };
2147
2150
  }
2148
2151
  }
2149
2152
  var T = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
2150
- d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Rb.visible = !0, a.Rb.source = n, d.style.display = "";
2153
+ d.onclick = T, d.ontouchend = T, d.onmousedown = function (e) { e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Qb.visible = !0, a.Qb.source = n, d.style.display = "";
2151
2154
  var A = d.offsetHeight, E = d.offsetWidth;
2152
2155
  d.style.display = "none";
2153
- var H = document.documentElement.clientHeight, N = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
2156
+ var H = document.documentElement.clientHeight, R = window.innerWidth, N = "number" == typeof r.windowMargin ? r.windowMargin : 5;
2154
2157
  if (function () {
2155
2158
  var e = r.initiator;
2156
2159
  if (e) {
@@ -2163,39 +2166,39 @@ var DayPilot = { Global: {} };
2163
2166
  }(), function () {
2164
2167
  var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0;
2165
2168
  if (n - i > H - A && 0 !== H) {
2166
- s = n - (n - i - (H - A) + R);
2169
+ s = n - (n - i - (H - A) + N);
2167
2170
  }
2168
2171
  else
2169
2172
  s = n;
2170
- if (a.Rb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > N - E && 0 !== N) {
2171
- l = e - (e - o - (N - E) + R);
2173
+ if (a.Qb.y = s, d.style.top = s + "px", "right" === r.align && (e -= E), e - o > R - E && 0 !== R) {
2174
+ l = e - (e - o - (R - E) + N);
2172
2175
  }
2173
2176
  else
2174
2177
  l = e;
2175
- a.Rb.x = l, d.style.left = l + "px";
2178
+ a.Qb.x = l, d.style.left = l + "px";
2176
2179
  }(), r.parentLink) {
2177
- var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), z = P.x + I.offsetWidth, B = P.y - L;
2178
- z + E > N && (z = Math.max(0, P.x - E));
2180
+ var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), B = P.x + I.offsetWidth, z = P.y - L;
2181
+ B + E > R && (B = Math.max(0, P.x - E));
2179
2182
  var U = document.body.scrollTop + document.documentElement.scrollTop;
2180
- B + A - U > H && (B = Math.max(0, H - A + U)), d.style.left = z + "px", d.style.top = B + "px";
2183
+ z + A - U > H && (z = Math.max(0, H - A + U)), d.style.left = B + "px", d.style.top = z + "px";
2181
2184
  }
2182
- d.style.display = "", this.addShadow(d), this.Rb.div = d, r.submenu || (DayPilot.Menu.active = this);
2185
+ d.style.display = "", this.addShadow(d), this.Qb.div = d, r.submenu || (DayPilot.Menu.active = this);
2183
2186
  }
2184
2187
  }, this.update = function () {
2185
- if (a.Rb.visible) {
2186
- var e = a.Rb.source;
2187
- a.hide(), a.show(e, { "x": a.Rb.x, "y": a.Rb.y });
2188
+ if (a.Qb.visible) {
2189
+ var e = a.Qb.source;
2190
+ a.hide(), a.show(e, { "x": a.Qb.x, "y": a.Qb.y });
2188
2191
  }
2189
- }, this.Tb = function (e, t) {
2192
+ }, this.Sb = function (e, t) {
2190
2193
  var n = e, i = t.source;
2191
- if ((!a.Rb.submenu || a.Rb.submenu.item !== e) && (a.Rb.submenu && a.Rb.submenu.item !== e && (DayPilot.Util.removeClass(a.Rb.submenu.link.parentNode, a.Sb("item_haschildren_active")), a.Rb.submenu.menu.hide(), a.Rb.submenu = null), e.items)) {
2194
+ if ((!a.Qb.submenu || a.Qb.submenu.item !== e) && (a.Qb.submenu && a.Qb.submenu.item !== e && (DayPilot.Util.removeClass(a.Qb.submenu.link.parentNode, a.Rb("item_haschildren_active")), a.Qb.submenu.menu.hide(), a.Qb.submenu = null), e.items)) {
2192
2195
  var r = a.cloneOptions();
2193
- r.items = e.items, a.Rb.submenu = {}, a.Rb.submenu.menu = new DayPilot.Menu(r), a.Rb.submenu.menu.Ub = a, a.Rb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Rb.submenu.item = e, a.Rb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Sb("item_haschildren_active"));
2196
+ r.items = e.items, a.Qb.submenu = {}, a.Qb.submenu.menu = new DayPilot.Menu(r), a.Qb.submenu.menu.Tb = a, a.Qb.submenu.menu.show(i, { "submenu": !0, "parentLink": t, "parentItem": n }), a.Qb.submenu.item = e, a.Qb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Rb("item_haschildren_active"));
2194
2197
  }
2195
- }, this.Sb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2196
- e = e || {}, this.Rb.submenu && this.Rb.submenu.menu.hide();
2198
+ }, this.Rb = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(r, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
2199
+ e = e || {}, this.Qb.submenu && this.Qb.submenu.menu.hide();
2197
2200
  var n = t.waitingSubmenu;
2198
- if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Rb.div && this.Rb.div.parentNode === document.body && document.body.removeChild(this.Rb.div), i && (DayPilot.de(i), i = null), a.Rb.visible = !1, a.Rb.source = null, a.Ub && e.hideParent && a.Ub.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2201
+ if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Qb.div && this.Qb.div.parentNode === document.body && document.body.removeChild(this.Qb.div), i && (DayPilot.de(i), i = null), a.Qb.visible = !1, a.Qb.source = null, a.Tb && e.hideParent && a.Tb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
2199
2202
  var r = {};
2200
2203
  this.onHide(r);
2201
2204
  }
@@ -2204,31 +2207,31 @@ var DayPilot = { Global: {} };
2204
2207
  this[o] = r[o];
2205
2208
  }, DayPilot.MenuBar = function (e, t) {
2206
2209
  var n = this;
2207
- t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.Ma = !1;
2210
+ t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.La = !1;
2208
2211
  for (var a in t)
2209
2212
  this[a] = t[a];
2210
- this.Vb = function (e) { return this.theme + "_" + e; }, this.u = function () {
2213
+ this.Ub = function (e) { return this.theme + "_" + e; }, this.u = function () {
2211
2214
  this.nav.top = document.getElementById(e);
2212
2215
  var t = this.nav.top;
2213
- t.className = this.Vb("main"), DayPilot.list(n.items).forEach(function (e) {
2216
+ t.className = this.Ub("main"), DayPilot.list(n.items).forEach(function (e) {
2214
2217
  var a = document.createElement("span");
2215
- a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Vb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2218
+ a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = n.Ub("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) {
2216
2219
  if (n.active && n.active.item === e)
2217
- n.Wb();
2220
+ n.Vb();
2218
2221
  else if (e.children)
2219
- return void n.Xb(a);
2222
+ return void n.Wb(a);
2220
2223
  if ("function" == typeof e.onClick) {
2221
2224
  var i = {};
2222
2225
  i.item = e, i.originalEvent = t, e.onClick(i);
2223
2226
  }
2224
- }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Xb(a); }, t.appendChild(a), n.elements.items.push(a);
2227
+ }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { n.active && n.active.item !== e && n.Wb(a); }, t.appendChild(a), n.elements.items.push(a);
2225
2228
  });
2226
- }, this.Wb = function () { var e = n.Vb("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Yb = function (e) { return !!n.active && n.active.item === e.data; }, this.Xb = function (e) {
2227
- if (!n.Yb(e)) {
2228
- n.Wb();
2229
+ }, this.Vb = function () { var e = n.Ub("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.Xb = function (e) { return !!n.active && n.active.item === e.data; }, this.Wb = function (e) {
2230
+ if (!n.Xb(e)) {
2231
+ n.Vb();
2229
2232
  var t = e.data, a = n.active = {};
2230
2233
  a.item = t, a.div = e;
2231
- var i = n.Vb("item_active");
2234
+ var i = n.Ub("item_active");
2232
2235
  DayPilot.Util.addClass(e, i);
2233
2236
  var r = DayPilot.abs(e);
2234
2237
  if (t.children) {
@@ -2238,8 +2241,8 @@ var DayPilot = { Global: {} };
2238
2241
  }
2239
2242
  DayPilot.MenuBar.active = n;
2240
2243
  }
2241
- }, this.init = function () { return this.u(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); };
2242
- }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Wb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function () { }, t.touchPosition = function (e) {
2244
+ }, this.init = function () { return this.u(), this.La = !0, this; }, this.dispose = function () { this.La && (this.nav.top.innerHTML = "", this.elements.items = []); };
2245
+ }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Vb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.wheel = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.resize = function () { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function () { }, t.touchPosition = function (e) {
2243
2246
  if (!e || !e.touches)
2244
2247
  return null;
2245
2248
  var t = e.touches[0], n = {};
@@ -2248,7 +2251,7 @@ var DayPilot = { Global: {} };
2248
2251
  if (e = e || {}, e.calendar) {
2249
2252
  var n = DayPilot.Menu.active;
2250
2253
  if (n) {
2251
- var a = n.Rb.source;
2254
+ var a = n.Qb.source;
2252
2255
  a && a.calendar === e.calendar && t.menuClean();
2253
2256
  }
2254
2257
  }
@@ -2268,7 +2271,7 @@ var DayPilot = { Global: {} };
2268
2271
  }
2269
2272
  }
2270
2273
  function t(e) {
2271
- this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.zc = [], this.Ac = null, this.canceling = !1, this.Bc = [], this.f = [], this.Cc = null, e = e || {};
2274
+ this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.yc = [], this.zc = null, this.canceling = !1, this.Ac = [], this.f = [], this.Bc = null, e = e || {};
2272
2275
  for (var t in e)
2273
2276
  this[t] = e[t];
2274
2277
  }
@@ -2283,16 +2286,16 @@ var DayPilot = { Global: {} };
2283
2286
  return t;
2284
2287
  }
2285
2288
  function r(e) {
2286
- this.data = [], this.name = null, this.theme = "searchable_default", this.Ic = !1, this.listZIndex = 1e5, this.onSelect = null, this.Jc = null, this.Kc = null, this.Lc = !1, this.Mc = null, this.Nc = null, this.q = [], this.Oc = null, e = e || {};
2287
- var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Jc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2288
- Object.defineProperty(this, "selected", { get: function () { return this.Jc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Ic; }, set: function (e) { this.Ic = e, this.Mc && (this.Mc.disabled = e, e && this.Pc()); } });
2289
+ this.data = [], this.name = null, this.theme = "searchable_default", this.Hc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Ic = null, this.Jc = null, this.Kc = !1, this.Lc = null, this.Mc = null, this.q = [], this.Nc = null, e = e || {};
2290
+ var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Ic = e : "string" != typeof e && "number" != typeof e || t.select(e); } } };
2291
+ Object.defineProperty(this, "selected", { get: function () { return this.Ic; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Hc; }, set: function (e) { this.Hc = e, this.Lc && (this.Lc.disabled = e, e && this.Oc()); } });
2289
2292
  for (var a in e)
2290
2293
  n[a] || (this[a] = e[a]);
2291
2294
  for (var i in e)
2292
2295
  n[i] && n[i].post(e[i]);
2293
2296
  }
2294
2297
  function o(e) {
2295
- this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Rc = null, this.zc = [], e = e || {};
2298
+ this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.Qc = null, this.yc = [], e = e || {};
2296
2299
  for (var t in e)
2297
2300
  this[t] = e[t];
2298
2301
  }
@@ -2364,32 +2367,32 @@ var DayPilot = { Global: {} };
2364
2367
  d.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), d.add(".modal_default_main:focus", "outline: none;"), d.add(".modal_default_content", "padding: 10px 0px;"), d.add(".modal_default_inner", "padding: 20px;"), d.add(".modal_default_input", "padding: 10px 0px;"), d.add(".modal_default_buttons", "margin-top: 10px;"), d.add(".modal_default_buttons", "padding: 10px 0px;"), d.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), d.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), d.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), d.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), d.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item label", "display: block;"), d.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), d.add(".modal_default_form_item_label", "margin: 2px 0px;"), d.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), d.add(".modal_default_form_item_invalid", ""), d.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), d.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_default_ok", "padding: 3px; width: 80px;"), d.add(".modal_default_cancel", "padding: 3px; width: 80px;"), d.add(".modal_default_form_item_date", "position: relative;"), d.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && d.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), d.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), d.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), d.add(".modal_default_form_item_searchable", "position: relative;"), d.add(".modal_default_form_item_searchable_icon", ""), d.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_time", "position: relative;"), d.add(".modal_default_form_item_time_icon", ""), d.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + l + ");"), d.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), d.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), d.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), d.add(".modal_default_form_item_datetime_parent", "display: flex;"), d.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), d.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), d.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), d.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), d.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), d.add(".modal_default_form_item_tabular_row", "display: table-row;"), d.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), d.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), d.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), d.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), d.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), d.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), d.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), d.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), d.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), d.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), d.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), d.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), d.add(".modal_min_ok", "padding: 3px 10px;"), d.add(".modal_min_cancel", "padding: 3px 10px;"), d.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), d.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), d.add(".navigator_modal_month", "font-size: 11px;"), d.add(".navigator_modal_day", "color: black;"), d.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), d.add(".navigator_modal_dayheader", "color: black;"), d.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), d.add(".navigator_modal_dayother", "color: gray;"), d.add(".navigator_modal_todaybox", "border: 1px solid red;"), d.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), d.add(".navigator_modal_busy", "font-weight: bold;"), d.add(".navigator_modal_cell", "text-align: center;"), d.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), d.add(".navigator_modal_title", "text-align: center;"), d.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), d.add(".navigator_modal_dayheader", "text-align: center;"), d.add(".navigator_modal_weeknumber", "text-align: center;"), d.add(".navigator_modal_cell_text", "cursor: pointer;"), d.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), d.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), d.commit(), DayPilot.Modal = function (e) {
2365
2368
  this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null;
2366
2369
  var t = this;
2367
- this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Zb = !1, this.$b = null, this._b = null, this.showHtml = function (e) {
2370
+ this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Yb = !1, this.Zb = null, this.$b = null, this.showHtml = function (e) {
2368
2371
  if (DayPilot.ModalStatic.displayed(this))
2369
2372
  throw "This modal dialog is already displayed.";
2370
- if (this.div || this.bc(), this.rb(), this.useIframe) {
2373
+ if (this.div || this._b(), this.qb(), this.useIframe) {
2371
2374
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
2372
2375
  window.setTimeout(t(this, e), 0);
2373
2376
  }
2374
2377
  else
2375
2378
  e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e;
2376
- this.rb(), this.cc(), this.dc();
2379
+ this.qb(), this.bc(), this.cc();
2377
2380
  }, this.showUrl = function (e) {
2378
2381
  if (DayPilot.ModalStatic.displayed(this))
2379
2382
  throw "This modal dialog is already displayed.";
2380
2383
  if (this.useIframe) {
2381
- this.div || this.bc();
2384
+ this.div || this._b();
2382
2385
  var n = this.loadingHtml;
2383
- n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.ec), this.iframe.src = e, this.rb(), this.cc(), this.dc();
2386
+ n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.dc), this.iframe.src = e, this.qb(), this.bc(), this.cc();
2384
2387
  }
2385
2388
  else
2386
- t.fc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } });
2387
- }, this.dc = function () {
2389
+ t.ec({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function () { t.showHtml("Error loading the modal dialog"); } });
2390
+ }, this.cc = function () {
2388
2391
  if ("function" == typeof t.onShow) {
2389
2392
  var e = {};
2390
- e.root = t.gc(), e.modal = t, t.onShow(e);
2393
+ e.root = t.fc(), e.modal = t, t.onShow(e);
2391
2394
  }
2392
- }, this.gc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.fc = function (e) {
2395
+ }, this.fc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.ec = function (e) {
2393
2396
  var t = new XMLHttpRequest;
2394
2397
  if (t) {
2395
2398
  var n = e.method || "GET", a = e.success || function () { }, i = e.error || function () { }, r = e.data, o = e.url;
@@ -2407,30 +2410,30 @@ var DayPilot = { Global: {} };
2407
2410
  window.console && console.log("HTTP error " + t.status);
2408
2411
  }, 4 !== t.readyState && ("object" == typeof r && (r = JSON.stringify(r)), t.send(r));
2409
2412
  }
2410
- }, this.rb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.hc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.ec = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2411
- var e = function () { return t.ic().y; }, n = function () { return t.ic().x; };
2413
+ }, this.qb = function () { delete this.result; var e = window, n = document, a = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.gc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.dc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () {
2414
+ var e = function () { return t.hc().y; }, n = function () { return t.hc().x; };
2412
2415
  if (this.useIframe) {
2413
- for (var a = n() - 40, i = this.width; i < a && this.jc(); i += 10)
2416
+ for (var a = n() - 40, i = this.width; i < a && this.ic(); i += 10)
2414
2417
  this.div.style.width = i + "px", this.div.style.marginLeft = "-" + Math.floor(i / 2) + "px";
2415
- for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.kc(); o += 10)
2418
+ for (var r = this.maxHeight || e() - 2 * this.top, o = this.height; o < r && this.jc(); o += 10)
2416
2419
  this.iframe.style.height = o + "px", this.div.style.height = o + "px";
2417
- this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.ec);
2420
+ this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.dc);
2418
2421
  }
2419
2422
  else
2420
2423
  this.div.style.height = "";
2421
- }, this.jc = function () {
2424
+ }, this.ic = function () {
2422
2425
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, a = e.body.children, i = 0; i < a.length; i++) {
2423
2426
  var r = a[i].offsetLeft + a[i].offsetWidth;
2424
2427
  n = Math.max(n, r);
2425
2428
  }
2426
2429
  return n > t.clientWidth;
2427
- }, this.kc = function () {
2430
+ }, this.jc = function () {
2428
2431
  for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, a = e.body.children, i = 0; i < a.length; i++) {
2429
2432
  var r = a[i].offsetTop + a[i].offsetHeight;
2430
2433
  n = Math.max(n, r);
2431
2434
  }
2432
2435
  return n > t.clientHeight;
2433
- }, this.ic = function () {
2436
+ }, this.hc = function () {
2434
2437
  var e = document;
2435
2438
  if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
2436
2439
  var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
@@ -2438,32 +2441,32 @@ var DayPilot = { Global: {} };
2438
2441
  }
2439
2442
  var t = e.body.clientWidth, n = e.body.clientHeight;
2440
2443
  return { x: t, y: n };
2441
- }, this.cc = function () { this.Zb || (this.re(window, "resize", this.lc), this.re(window, "scroll", this.nc), this.dragDrop && (this.re(document, "mousemove", this.oc), this.re(document, "mouseup", this.pc)), this.Zb = !0); }, this.qc = function () { this.ue(window, "resize", this.lc), this.ue(window, "scroll", this.nc), this.dragDrop && (this.ue(document, "mousemove", this.oc), this.ue(document, "mouseup", this.pc)), this.Zb = !1; }, this.rc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.sc(), t._b = t.mc(e || window.event), t.$b = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.oc = function (e) {
2442
- if (t._b) {
2443
- var n = t.mc(e), a = n.x - t._b.x, i = n.y - t._b.y;
2444
- t.div.style.marginLeft = "0px", t.div.style.top = t.$b.y + i + "px", t.div.style.left = t.$b.x + a + "px";
2444
+ }, this.bc = function () { this.Yb || (this.re(window, "resize", this.kc), this.re(window, "scroll", this.lc), this.dragDrop && (this.re(document, "mousemove", this.nc), this.re(document, "mouseup", this.oc)), this.Yb = !0); }, this.pc = function () { this.ue(window, "resize", this.kc), this.ue(window, "scroll", this.lc), this.dragDrop && (this.ue(document, "mousemove", this.nc), this.ue(document, "mouseup", this.oc)), this.Yb = !1; }, this.qc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.rc(), t.$b = t.mc(e || window.event), t.Zb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.nc = function (e) {
2445
+ if (t.$b) {
2446
+ var n = t.mc(e), a = n.x - t.$b.x, i = n.y - t.$b.y;
2447
+ t.div.style.marginLeft = "0px", t.div.style.top = t.Zb.y + i + "px", t.div.style.left = t.Zb.x + a + "px";
2445
2448
  }
2446
- }, this.pc = function () { t._b && (t.tc(), t.div.style.cursor = null, t._b = null); }, this.sc = function () {
2449
+ }, this.oc = function () { t.$b && (t.sc(), t.div.style.cursor = null, t.$b = null); }, this.rc = function () {
2447
2450
  if (this.useIframe) {
2448
2451
  var e = document.createElement("div");
2449
2452
  e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
2450
2453
  }
2451
- }, this.tc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.lc = function () { t.uc(), t.hc(); }, this.nc = function () { t.uc(); }, this.hc = function () {
2454
+ }, this.sc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.kc = function () { t.tc(), t.gc(); }, this.lc = function () { t.tc(); }, this.gc = function () {
2452
2455
  if (!t.left && t.div) {
2453
2456
  var e = t.div.offsetWidth;
2454
2457
  t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
2455
2458
  }
2456
- }, this.uc = function () {
2459
+ }, this.tc = function () {
2457
2460
  if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
2458
- var e = t.vc.scrollY();
2461
+ var e = t.uc.scrollY();
2459
2462
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
2460
2463
  }
2461
- }, this.vc = {}, this.vc.container = function () { return t.container || document.body; }, this.vc.scrollY = function () { var e = t.vc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2464
+ }, this.uc = {}, this.uc.container = function () { return t.container || document.body; }, this.uc.scrollY = function () { var e = t.uc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) {
2462
2465
  for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
2463
2466
  e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop;
2464
2467
  return t;
2465
- }, this.bc = function () { var e = t.vc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.rc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.wc || (t.stretch(), t.wc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2466
- for (var e = t.gc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
2468
+ }, this._b = function () { var e = t.uc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.qc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.vc || (t.stretch(), t.vc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () {
2469
+ for (var e = t.fc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
2467
2470
  var r = n[i], o = r.name;
2468
2471
  if (o) {
2469
2472
  var s = r.value;
@@ -2471,11 +2474,11 @@ var DayPilot = { Global: {} };
2471
2474
  }
2472
2475
  }
2473
2476
  t.close(a);
2474
- }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.qc(), t.xc(t.div), t.xc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.xc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.yc = function () {
2477
+ }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.pc(), t.wc(t.div), t.wc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.wc = function (e) { var t; e && (null === (t = e.parentNode) || void 0 === t ? void 0 : t.removeChild(e)); }, this.xc = function () {
2475
2478
  if (e)
2476
2479
  for (var t in e)
2477
2480
  this[t] = e[t];
2478
- }, this.yc();
2481
+ }, this.xc();
2479
2482
  }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; return DayPilot.getPromise(function (a) { t.onClosed = function (e) { a(e); }; var i = new DayPilot.Modal(t), r = document.createElement("div"); r.className = i.theme + "_inner"; var o = document.createElement("div"); o.className = i.theme + "_content", o.innerHTML = e; var s = document.createElement("div"); s.className = i.theme + "_buttons"; var l = document.createElement("button"); l.innerText = n, l.className = i.theme + "_ok", l.onclick = function () { DayPilot.ModalStatic.close("OK"); }, s.appendChild(l), r.appendChild(o), r.appendChild(s), i.showHtml(r), i.autoFocus && l.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (i) { t.onClosed = function (e) { i(e); }; var r = new DayPilot.Modal(t), o = document.createElement("div"); o.className = r.theme + "_inner"; var s = document.createElement("div"); s.className = r.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = r.theme + "_buttons"; var d = document.createElement("button"); d.innerText = n, d.className = r.theme + "_ok", d.onclick = function () { DayPilot.ModalStatic.close("OK"); }; var c = document.createTextNode(" "), u = document.createElement("button"); u.innerText = a, u.className = r.theme + "_cancel", u.onclick = function () { DayPilot.ModalStatic.close(); }, l.appendChild(d), l.appendChild(c), l.appendChild(u), o.appendChild(s), o.appendChild(l), r.showHtml(o), r.autoFocus && d.focus(); }); }, DayPilot.Modal.prompt = function (e, t, n) {
2480
2483
  "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1;
2481
2484
  var a = n.okText || "OK", i = n.cancelText || "Cancel", r = t || "";
@@ -2585,7 +2588,7 @@ var DayPilot = { Global: {} };
2585
2588
  if (!e)
2586
2589
  throw "Unable to find the opener DayPilot.Modal instance.";
2587
2590
  e.stretch();
2588
- }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Cc; }, t.prototype.render = function () { var e = this; this.Cc = document.createElement("div"), this.zc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) {
2591
+ }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); }), t.prototype.create = function () { return this.load(), this.render(), this.Bc; }, t.prototype.render = function () { var e = this; this.Bc = document.createElement("div"), this.yc.forEach(function (t) { e.createView(t); }), this.applyState(); }, t.prototype.createView = function (e) {
2589
2592
  var t = this.theme, n = this, a = document.createElement("div");
2590
2593
  if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
2591
2594
  var i = document.createElement("div");
@@ -2593,13 +2596,13 @@ var DayPilot = { Global: {} };
2593
2596
  }
2594
2597
  var r = this.createInteractive(e);
2595
2598
  r.onInput = function (e) {
2596
- if (e = e || {}, n.Dc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
2599
+ if (e = e || {}, n.Cc(r, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
2597
2600
  var t = {};
2598
2601
  t.result = n.serialize(), n.onChange(t);
2599
2602
  }
2600
- }, r.onBlur = function () { n.canceling || n.Dc(r); }, r.apply(e), r.Cc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Cc.appendChild(a);
2601
- }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Dc(n); t = t && a; }), t; }, t.prototype.Dc = function (e, t) {
2602
- function n() { e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Ec = t, e.Cc.appendChild(t); }
2603
+ }, r.onBlur = function () { n.canceling || n.Cc(r); }, r.apply(e), r.Bc = a, r.row = e, r.element && a.appendChild(r.element), this.f.push(r), this.Bc.appendChild(a);
2604
+ }, t.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var a = e.Cc(n); t = t && a; }), t; }, t.prototype.Cc = function (e, t) {
2605
+ function n() { e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Dc = t, e.Bc.appendChild(t); }
2603
2606
  t = t || {};
2604
2607
  var a = t.debounce, i = t.silent, r = e.row, o = !0, s = "function" == typeof r.data.onValidate ? r.data.onValidate : null, l = "function" == typeof r.data.validate ? r.data.validate : null, d = s || l;
2605
2608
  if (d) {
@@ -2607,11 +2610,11 @@ var DayPilot = { Global: {} };
2607
2610
  c.valid = !0, c.value = e.save()[r.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
2608
2611
  var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
2609
2612
  if (c.valid)
2610
- clearTimeout(this.Bc[r.field]), e.Ec && (e.Ec.remove(), e.Ec = null), e.Cc.classList.remove(u);
2613
+ clearTimeout(this.Ac[r.field]), e.Dc && (e.Dc.remove(), e.Dc = null), e.Bc.classList.remove(u);
2611
2614
  else if (!i)
2612
2615
  if (a) {
2613
2616
  var f = 1e3;
2614
- clearTimeout(this.Bc[r.field]), this.Bc[r.field] = setTimeout(function () { n(); }, f);
2617
+ clearTimeout(this.Ac[r.field]), this.Ac[r.field] = setTimeout(function () { n(); }, f);
2615
2618
  }
2616
2619
  else
2617
2620
  n();
@@ -2631,38 +2634,38 @@ var DayPilot = { Global: {} };
2631
2634
  }
2632
2635
  for (var a in t)
2633
2636
  this.setValue(a, t[a]);
2634
- }, t.prototype.setValue = function (e, t) { this.zc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Ac ? this.Ac : this.zc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
2637
+ }, t.prototype.setValue = function (e, t) { this.yc.forEach(function (n) { n.applyValue(e, t); }); }, t.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.zc ? this.zc : this.yc).forEach(function (n) { var a = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, t.prototype.processFormItem = function (e, t) {
2635
2638
  var a = this, i = this.getFieldType(e), r = [];
2636
2639
  if ("radio" === i) {
2637
2640
  if (e.name) {
2638
2641
  var o = new n;
2639
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
2642
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
2640
2643
  }
2641
2644
  e.options.forEach(function (o) {
2642
2645
  var s = new n;
2643
2646
  s.field = e.id, s.data = o, s.level = t, s.type = i, s.isValue = !0, s.text = o.name, s.resolved = o.id,
2644
- a.zc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
2647
+ a.yc.push(s), r.push(s), o.children && o.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); });
2645
2648
  });
2646
2649
  }
2647
2650
  else if ("title" === i) {
2648
2651
  var o = new n;
2649
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.zc.push(o), r.push(o);
2652
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, a.yc.push(o), r.push(o);
2650
2653
  }
2651
2654
  else if ("image" === i) {
2652
2655
  var o = new n;
2653
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
2656
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
2654
2657
  }
2655
2658
  else if ("html" === i) {
2656
2659
  var o = new n;
2657
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
2660
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
2658
2661
  }
2659
2662
  else if ("scrollable" === i) {
2660
2663
  var o = new n;
2661
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.zc.push(o), r.push(o);
2664
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, a.yc.push(o), r.push(o);
2662
2665
  }
2663
2666
  else {
2664
2667
  var o = new n;
2665
- o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.zc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
2668
+ o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], a.yc.push(o), r.push(o), "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var n = a.processFormItem(e, t + 1); r = r.concat(n); }));
2666
2669
  }
2667
2670
  return r;
2668
2671
  }, t.prototype.doOnKey = function (e) {
@@ -2727,21 +2730,21 @@ var DayPilot = { Global: {} };
2727
2730
  }
2728
2731
  n || (e.preventDefault(), e.stopPropagation());
2729
2732
  }, i.onfocus = function () { r.show(); }, i.onclick = function () { r.show(); }, i.oninput = function () { n.onInput(); }, i.onblur = function () { n.onBlur(); }, n.element = i, n.picker = r, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = r.date ? r.date.toString() : null, n = {}; return n[e.field] = t, n; }, n;
2730
- }, "time": function () { return t.Fc(e); }, "datetime": function () { return t.Gc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Hc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Hc && (t = a.Hc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () {
2733
+ }, "time": function () { return t.Ec(e); }, "datetime": function () { return t.Fc(e); }, "select": function () { var t = new a; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Gc = e.id, n.appendChild(t); }), n.onchange = function () { t.onInput({ "immediate": !0 }); }, n.onblur = function () { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Gc && (t = a.Gc); var i = {}; return i[e.field] = t, i; }, t; }, "searchable": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new r({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), o = i.create(); return n.element = o, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () {
2731
2734
  var n = new a;
2732
2735
  n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; };
2733
2736
  var i = document.createElement("label"), r = document.createElement("input");
2734
- r.type = "radio", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r);
2737
+ r.type = "radio", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.findRowsByField(e.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(e, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r);
2735
2738
  var o = document.createTextNode(e.text);
2736
2739
  return i.append(o), n.element = i, n.radio = r, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () {
2737
2740
  if (!r.checked)
2738
2741
  return {};
2739
- var t = r.Hc, n = {};
2742
+ var t = r.Gc, n = {};
2740
2743
  return n[e.field] = t, n;
2741
2744
  }, n;
2742
- }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Hc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } };
2745
+ }, "checkbox": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), r = document.createElement("input"); r.type = "checkbox", r.name = e.field, r.Gc = e.resolved, r.onchange = function () { var e = n.row; t.updateState(e, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, r.onblur = function () { n.onBlur(); }, i.appendChild(r); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = r, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = r.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new a; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new o({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function () { n.onInput(); } }), r = i.create(); return n.element = r, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } };
2743
2746
  return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type]();
2744
- }, t.prototype.Fc = function (e) {
2747
+ }, t.prototype.Ec = function (e) {
2745
2748
  var t = this, n = new a;
2746
2749
  n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); };
2747
2750
  var i = [], o = e.data.timeInterval || 15;
@@ -2752,7 +2755,7 @@ var DayPilot = { Global: {} };
2752
2755
  }
2753
2756
  var v = new r({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create();
2754
2757
  return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n;
2755
- }, t.prototype.Gc = function (e) {
2758
+ }, t.prototype.Fc = function (e) {
2756
2759
  var t = this, n = new a;
2757
2760
  n.apply = function (e) {
2758
2761
  n.row = e;
@@ -2802,9 +2805,9 @@ var DayPilot = { Global: {} };
2802
2805
  return n.searchable = f, f.create();
2803
2806
  }(), s = document.createElement("div");
2804
2807
  return s.className = t.theme + "_form_item_datetime_parent", s.appendChild(i), s.appendChild(o), n.element = s, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, a = n.picker.date ? n.picker.date.toString() : null, i = new DayPilot.Date(a).getDatePart(), r = DayPilot.Date.parse(i.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), o = {}; return o[e.field] = r, o; }, n;
2805
- }, t.prototype.findRowsByField = function (e) { return this.zc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) {
2806
- var n = this.Ac ? this.Ac : this.zc, a = n.indexOf(e);
2807
- return this.Ac = n.map(function (n) {
2808
+ }, t.prototype.findRowsByField = function (e) { return this.yc.filter(function (t) { return t.field === e; }); }, t.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.row.resolved === t); }); }, t.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, t.prototype.updateState = function (e, t) {
2809
+ var n = this.zc ? this.zc : this.yc, a = n.indexOf(e);
2810
+ return this.zc = n.map(function (n) {
2808
2811
  if (n !== e)
2809
2812
  return n;
2810
2813
  if (e.propsEqual(t))
@@ -2813,11 +2816,11 @@ var DayPilot = { Global: {} };
2813
2816
  for (var i in t)
2814
2817
  a[i] = t[i];
2815
2818
  return a;
2816
- }), this.Ac[a];
2817
- }, t.prototype.updateInteractive = function (e) { var t = this.Ac.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () {
2819
+ }), this.zc[a];
2820
+ }, t.prototype.updateInteractive = function (e) { var t = this.zc.indexOf(e); this.f[t].apply(e); }, t.prototype.applyState = function () {
2818
2821
  var e = this;
2819
- if (this.updateDependentState(), this.Ac) {
2820
- this.Ac.filter(function (t, n) { return e.zc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.zc = this.Ac, this.Ac = null;
2822
+ if (this.updateDependentState(), this.zc) {
2823
+ this.zc.filter(function (t, n) { return e.yc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.yc = this.zc, this.zc = null;
2821
2824
  }
2822
2825
  }, t.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, t.prototype.serialize = function () {
2823
2826
  var e = {};
@@ -2836,10 +2839,10 @@ var DayPilot = { Global: {} };
2836
2839
  if (this[t] !== e[t])
2837
2840
  return !1;
2838
2841
  return !0;
2839
- }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Jc = this.data.find(function (t) { return t.id === e; }), this.Qc(!1), this; }, r.prototype.create = function () {
2842
+ }, n.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, n.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = t, r.prototype.select = function (e) { return this.Ic = this.data.find(function (t) { return t.id === e; }), this.Pc(!1), this; }, r.prototype.create = function () {
2840
2843
  function e(e) {
2841
2844
  var n = l.strategy;
2842
- "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Kc = null, l.q = [];
2845
+ "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Jc = null, l.q = [];
2843
2846
  var i = null;
2844
2847
  l.data.forEach(function (n) {
2845
2848
  var r = n.name || n.id;
@@ -2850,27 +2853,27 @@ var DayPilot = { Global: {} };
2850
2853
  else if ("startsWith" === e && 0 !== r.toLowerCase().indexOf(v.value.toLowerCase()))
2851
2854
  return;
2852
2855
  var o = document.createElement("div");
2853
- o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Jc && (l.Kc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Kc !== o && (l.Kc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o);
2854
- }), l.Kc || (l.Kc = i), t();
2856
+ o.className = l.theme + "_list_item", o.innerText = r, o.item = n, n === l.Ic && (l.Jc = o), i || (i = o), o.addEventListener("mousedown", function (e) { a(o), e.preventDefault(); }), o.addEventListener("mousemove", function () { l.Jc !== o && (l.Jc = o, t({ dontScroll: !0 })); }), h.appendChild(o), l.q.push(o);
2857
+ }), l.Jc || (l.Jc = i), t();
2855
2858
  }
2856
- function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Kc && (l.Kc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Kc, h) && l.Kc.scrollIntoView()); }
2859
+ function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Jc && (l.Jc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Jc, h) && l.Jc.scrollIntoView()); }
2857
2860
  function n(e, t) { var n = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return n.top >= a.top && n.bottom <= a.bottom; }
2858
- function a(e) { var t = e.item; l.Jc = t, l.Qc(!0), r(), o(); }
2859
- function i() { l.Pc(); }
2861
+ function a(e) { var t = e.item; l.Ic = t, l.Pc(!0), r(), o(); }
2862
+ function i() { l.Oc(); }
2860
2863
  function r() { l.s(); }
2861
- function o() { l.Lc = !0, v.setAttribute("readonly", "readonly"), v.focus(); }
2862
- function s() { l.Lc = !1, v.removeAttribute("readonly"), v.select(), e("all"); }
2864
+ function o() { l.Kc = !0, v.setAttribute("readonly", "readonly"), v.focus(); }
2865
+ function s() { l.Kc = !1, v.removeAttribute("readonly"), v.select(), e("all"); }
2863
2866
  var l = this, d = this, c = document.createElement("div");
2864
2867
  c.className = this.theme + "_main", c.style.position = "relative";
2865
2868
  var u = document.createElement("div");
2866
- u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Lc ? (l.focus(), s()) : (i(), o()); });
2869
+ u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Kc ? (l.focus(), s()) : (i(), o()); });
2867
2870
  var h = document.createElement("div");
2868
2871
  h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex;
2869
2872
  var f = document.createElement("input");
2870
- f.type = "hidden", f.name = this.name, f.searchable = d, this.Oc = f;
2873
+ f.type = "hidden", f.name = this.name, f.searchable = d, this.Nc = f;
2871
2874
  var v = document.createElement("input");
2872
- return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Ic, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) {
2873
- if (l.Lc) {
2875
+ return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Hc, v.addEventListener("click", function () { s(); }), v.addEventListener("focus", function () { e("all"); }), v.addEventListener("input", function () { e(); }), v.addEventListener("blur", function () { v.removeAttribute("readonly"), i(); }), v.addEventListener("keydown", function (e) {
2876
+ if (l.Kc) {
2874
2877
  if ("Enter" === e.key)
2875
2878
  return;
2876
2879
  if ("Esc" === e.key || "Escape" === e.key)
@@ -2878,18 +2881,18 @@ var DayPilot = { Global: {} };
2878
2881
  s();
2879
2882
  }
2880
2883
  if ("ArrowDown" === e.key) {
2881
- var n = d.q.indexOf(d.Kc);
2882
- n + 1 < d.q.length && (d.Kc = d.q[n + 1]), t();
2884
+ var n = d.q.indexOf(d.Jc);
2885
+ n + 1 < d.q.length && (d.Jc = d.q[n + 1]), t();
2883
2886
  }
2884
2887
  else if ("ArrowUp" === e.key) {
2885
- var n = d.q.indexOf(d.Kc);
2886
- n - 1 >= 0 && (d.Kc = d.q[n - 1]), t();
2888
+ var n = d.q.indexOf(d.Jc);
2889
+ n - 1 >= 0 && (d.Jc = d.q[n - 1]), t();
2887
2890
  }
2888
2891
  else
2889
- "Enter" === e.key ? l.Kc ? (e.stopPropagation(), a(l.Kc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o());
2890
- }), this.Mc = v, this.Nc = h, this.Jc || (this.Jc = this.data[0], this.Jc && (v.value = this.Jc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2891
- }, r.prototype.Pc = function () { this.s(), this.Jc ? this.Mc.value = this.Jc.name : (this.Mc.value = "", this.Qc(!0)); }, r.prototype.focus = function () { this.Lc = !0, this.Mc.setAttribute("readonly", "readonly"), this.Mc.focus(), this.Pc(); }, r.prototype.s = function () { this.Nc.style.display = "none"; }, r.prototype.Qc = function (e) {
2892
- if (this.Oc.value = this.selected ? this.selected.id : null, this.Jc ? this.Mc.value = this.Jc.name : this.Mc.value = "", "function" == typeof this.onSelect) {
2892
+ "Enter" === e.key ? l.Jc ? (e.stopPropagation(), a(l.Jc)) : (e.stopPropagation(), i(), o()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), i(), o());
2893
+ }), this.Lc = v, this.Mc = h, this.Ic || (this.Ic = this.data[0], this.Ic && (v.value = this.Ic.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c;
2894
+ }, r.prototype.Oc = function () { this.s(), this.Ic ? this.Lc.value = this.Ic.name : (this.Lc.value = "", this.Pc(!0)); }, r.prototype.focus = function () { this.Kc = !0, this.Lc.setAttribute("readonly", "readonly"), this.Lc.focus(), this.Oc(); }, r.prototype.s = function () { this.Mc.style.display = "none"; }, r.prototype.Pc = function (e) {
2895
+ if (this.Nc.value = this.selected ? this.selected.id : null, this.Ic ? this.Lc.value = this.Ic.name : this.Lc.value = "", "function" == typeof this.onSelect) {
2893
2896
  var t = { control: this, ui: e };
2894
2897
  this.onSelect(t);
2895
2898
  }
@@ -2900,11 +2903,11 @@ var DayPilot = { Global: {} };
2900
2903
  n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n);
2901
2904
  var a = document.createElement("div");
2902
2905
  a.className = this.theme + "_table";
2903
- var i = this.Sc();
2906
+ var i = this.Rc();
2904
2907
  a.appendChild(i);
2905
- var r = e.Tc({});
2908
+ var r = e.Sc({});
2906
2909
  r.spacer = !0;
2907
- var o = this.Uc(r);
2910
+ var o = this.Tc(r);
2908
2911
  o.classList.add(e.theme + "_spacer"), a.appendChild(o);
2909
2912
  var s = document.createElement("div");
2910
2913
  s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a);
@@ -2918,18 +2921,18 @@ var DayPilot = { Global: {} };
2918
2921
  var a = {};
2919
2922
  a.result = e.form.serialize(), a.value = {}, t(a), n = a.value;
2920
2923
  }
2921
- var i = e.Tc(n);
2922
- e.zc.push(i), e.Vc(), e.Wc();
2924
+ var i = e.Sc(n);
2925
+ e.yc.push(i), e.Uc(), e.Vc();
2923
2926
  }
2924
2927
  }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t;
2925
- }, o.prototype.Sc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Xc = function () { var e = this.item.max || 0; return !!(e && this.zc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.zc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) {
2928
+ }, o.prototype.Rc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (n) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = n.name, t.appendChild(a); }), t; }, o.prototype.Wc = function () { var e = this.item.max || 0; return !!(e && this.yc.length >= e); }, o.prototype.save = function () { var e = this, t = []; return e.yc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, o.prototype.load = function (e) {
2926
2929
  if ("[object Array]" !== Object.prototype.toString.call(e))
2927
2930
  throw new Error("Array expected");
2928
- this.data = e, this.Yc(), this.Vc();
2929
- }, o.prototype.Zc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Xc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Yc = function () { var e = this; this.zc = [], this.data.forEach(function (t) { var n = e.Tc(t); e.zc.push(n); }); }, o.prototype.$c = function (e) { var t = this, n = t.zc.indexOf(e); t.zc.splice(n, 1); }, o.prototype.Tc = function (e) {
2931
+ this.data = e, this.Xc(), this.Uc();
2932
+ }, o.prototype.Yc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Wc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, o.prototype.Xc = function () { var e = this; this.yc = [], this.data.forEach(function (t) { var n = e.Sc(t); e.yc.push(n); }); }, o.prototype.Zc = function (e) { var t = this, n = t.yc.indexOf(e); t.yc.splice(n, 1); }, o.prototype.Sc = function (e) {
2930
2933
  var t = this, n = {};
2931
2934
  return n.data = e, n.cells = [], t.item.columns.forEach(function (a) {
2932
- var i = a.id, r = e[i], o = t._c(a);
2935
+ var i = a.id, r = e[i], o = t.$c(a);
2933
2936
  if ("undefined" == typeof r)
2934
2937
  if ("text" === o)
2935
2938
  r = "";
@@ -2942,19 +2945,19 @@ var DayPilot = { Global: {} };
2942
2945
  var l = {};
2943
2946
  l.id = i, l.value = r, l.type = o, l.data = a, n.cells.push(l);
2944
2947
  }), n;
2945
- }, o.prototype._c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Vc = function () {
2948
+ }, o.prototype.$c = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, o.prototype.Uc = function () {
2946
2949
  var e = this;
2947
- if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.zc.forEach(function (t) { var n = e.Uc(t); e.nav.body.appendChild(n); }), 0 === this.zc.length) {
2948
- var t = e.ad();
2950
+ if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.yc.forEach(function (t) { var n = e.Tc(t); e.nav.body.appendChild(n); }), 0 === this.yc.length) {
2951
+ var t = e._c();
2949
2952
  e.nav.after.appendChild(t);
2950
2953
  }
2951
- this.Zc();
2952
- }, o.prototype.ad = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Uc = function (e) {
2954
+ this.Yc();
2955
+ }, o.prototype._c = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, o.prototype.Tc = function (e) {
2953
2956
  var t = this, n = document.createElement("div");
2954
2957
  n.className = t.theme + "_row", e.cells.forEach(function (a) {
2955
2958
  var i = document.createElement("div");
2956
2959
  i.className = t.theme + "_cell";
2957
- var r = t.bd(a);
2960
+ var r = t.ad(a);
2958
2961
  if (e.spacer) {
2959
2962
  var o = document.createElement("div");
2960
2963
  o.style.height = "0px", o.style.overflow = "hidden", o.appendChild(r), i.appendChild(o);
@@ -2966,22 +2969,22 @@ var DayPilot = { Global: {} };
2966
2969
  var a = document.createElement("div");
2967
2970
  a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction");
2968
2971
  var i = document.createElement("span");
2969
- return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.$c(e), t.Vc(), t.Wc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n;
2970
- }, o.prototype.Wc = function () {
2972
+ return i.className = this.theme + "_delete", i.addEventListener("click", function () { t.disabled || (t.Zc(e), t.Uc(), t.Vc()); }), e.spacer || a.appendChild(i), n.appendChild(a), n;
2973
+ }, o.prototype.Vc = function () {
2971
2974
  var e = this;
2972
2975
  if ("function" == typeof e.onInput) {
2973
2976
  var t = {};
2974
2977
  e.onInput(t);
2975
2978
  }
2976
- }, o.prototype.bd = function (e) {
2979
+ }, o.prototype.ad = function (e) {
2977
2980
  var t = this, n = e.type;
2978
2981
  if ("text" === n || "number" === n) {
2979
2982
  var a = document.createElement("input");
2980
- return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Wc(); }), a;
2983
+ return a.type = n, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function () { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Vc(); }), a;
2981
2984
  }
2982
2985
  if ("select" === n) {
2983
2986
  var i = document.createElement("select");
2984
- return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Hc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Hc && (e.value = n.Hc), t.Wc(); }), i;
2987
+ return t.disabled && (i.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Gc = t.id, i.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), i.addEventListener("change", function () { var n = i.options[i.selectedIndex]; n && "undefined" != typeof n.Gc && (e.value = n.Gc), t.Vc(); }), i;
2985
2988
  }
2986
2989
  throw new Error("Unsupported item type: " + n);
2987
2990
  }, o.prototype.focus = function () { };
@@ -2994,7 +2997,7 @@ var DayPilot = { Global: {} };
2994
2997
  var i = this;
2995
2998
  this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.Q = !1, this.R = {};
2996
2999
  var r = this.R;
2997
- this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.cd(), i.ha(), "Full" === t.UpdateType && (i.dd(), i.ed()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
3000
+ this.X = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i.Z(), i.bd(), i.ha(), "Full" === t.UpdateType && (i.cd(), i.dd()), i.ma(), i.show(), i.na(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2998
3001
  var t = null;
2999
3002
  if (e instanceof DayPilot.Event)
3000
3003
  t = e.data;
@@ -3060,7 +3063,7 @@ var DayPilot = { Global: {} };
3060
3063
  var s = {};
3061
3064
  if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
3062
3065
  return;
3063
- i.events.list = n, i.Ma && i.update();
3066
+ i.events.list = n, i.La && i.update();
3064
3067
  }
3065
3068
  };
3066
3069
  if (i.eventsLoadMethod && "POST" === i.eventsLoadMethod.toUpperCase())
@@ -3069,18 +3072,18 @@ var DayPilot = { Global: {} };
3069
3072
  var o = e, s = "start=" + i.visibleStart().toString() + "&end=" + i.visibleEnd().toString();
3070
3073
  o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": r, "error": a });
3071
3074
  }
3072
- }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.Ab), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) {
3073
- if (i.tb(e), this.Ma) {
3075
+ }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (i.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(i.zb), n.filter(function (n) { var a = n.start(), i = n.end(); return a === i && a === e || DayPilot.Util.overlaps(e, t, a, i); }); }, this.update = function (e) {
3076
+ if (i.sb(e), this.La) {
3074
3077
  if (i.Q)
3075
3078
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
3076
3079
  if (this.cells) {
3077
- i.Z(), i.cd(), i.ha(), i.dd(), i.ed(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
3080
+ i.Z(), i.bd(), i.ha(), i.cd(), i.dd(), i.ma(), i.u(), i.na(), this.visible ? this.show() : this.hide();
3078
3081
  }
3079
3082
  }
3080
- }, this.vb = null, this.tb = function (e) {
3083
+ }, this.ub = null, this.sb = function (e) {
3081
3084
  if (e) {
3082
3085
  var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
3083
- this.vb = t;
3086
+ this.ub = t;
3084
3087
  for (var n in e)
3085
3088
  if (t[n]) {
3086
3089
  var a = t[n];
@@ -3089,14 +3092,14 @@ var DayPilot = { Global: {} };
3089
3092
  else
3090
3093
  i[n] = e[n];
3091
3094
  }
3092
- }, this.wb = function () {
3093
- var e = this.vb;
3095
+ }, this.vb = function () {
3096
+ var e = this.ub;
3094
3097
  for (var t in e) {
3095
3098
  var n = e[t];
3096
3099
  n.postInit && n.postInit();
3097
3100
  }
3098
- }, this.yb = {}, this.yb.events = [], this.zb = function (e) {
3099
- var t = this.yb.events, n = this.events.list[e], a = {};
3101
+ }, this.xb = {}, this.xb.events = [], this.yb = function (e) {
3102
+ var t = this.xb.events, n = this.events.list[e], a = {};
3100
3103
  for (var r in n)
3101
3104
  a[r] = n[r];
3102
3105
  if ("function" == typeof this.onBeforeEventRender) {
@@ -3111,7 +3114,7 @@ var DayPilot = { Global: {} };
3111
3114
  throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
3112
3115
  if ("function" == typeof this.onBeforeEventRender)
3113
3116
  for (var t = 0; t < e.length; t++)
3114
- this.zb(t);
3117
+ this.yb(t);
3115
3118
  for (var n = 0; n < e.length; n++) {
3116
3119
  var a = e[n];
3117
3120
  if ("object" != typeof a)
@@ -3124,12 +3127,12 @@ var DayPilot = { Global: {} };
3124
3127
  if (!(i.getTime() > r.getTime()))
3125
3128
  for (var t = 0; t < this.rows.length; t++) {
3126
3129
  var o = this.rows[t], s = new DayPilot.Event(a, this);
3127
- o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.yb.events[n]));
3130
+ o.belongsHere(s) && (o.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.xb.events[n]));
3128
3131
  }
3129
3132
  }
3130
3133
  for (var l = 0; l < this.rows.length; l++) {
3131
3134
  var o = this.rows[l];
3132
- o.events.sort(this.Ab);
3135
+ o.events.sort(this.zb);
3133
3136
  for (var d = 0; d < this.rows[l].events.length; d++) {
3134
3137
  var c = o.events[d], u = o.getStartColumn(c), h = o.getWidth(c);
3135
3138
  o.putIntoLine(c, u, h, l);
@@ -3139,26 +3142,26 @@ var DayPilot = { Global: {} };
3139
3142
  }, this.Z = function () {
3140
3143
  for (var e = 0; e < this.elements.events.length; e++) {
3141
3144
  var t = this.elements.events[e];
3142
- i.Pa(t);
3145
+ i.Oa(t);
3143
3146
  }
3144
3147
  this.elements.events = [];
3145
- }, this.Pa = function (e) {
3148
+ }, this.Oa = function (e) {
3146
3149
  !function () {
3147
3150
  var n = e.domArgs;
3148
3151
  if (e.domArgs = null, n && "function" == typeof i.onBeforeEventDomRemove && i.onBeforeEventDomRemove(n), n && "function" == typeof i.onBeforeEventDomAdd) {
3149
- var a = n && n.Qa;
3152
+ var a = n && n.Pa;
3150
3153
  if (a) {
3151
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
3154
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
3152
3155
  }
3153
3156
  }
3154
3157
  }(), e.event = null, e.click = null, e.parentNode.removeChild(e);
3155
- }, this.na = function () { this.fd(); }, this.fd = function () {
3158
+ }, this.na = function () { this.ed(); }, this.ed = function () {
3156
3159
  this.elements.events = [];
3157
3160
  for (var e = 0; e < this.rows.length; e++)
3158
3161
  for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
3159
3162
  for (var a = t.lines[n], i = 0; i < a.length; i++)
3160
- this.Va(a[i]);
3161
- }, this.Ab = function (e, t) {
3163
+ this.Ua(a[i]);
3164
+ }, this.zb = function (e, t) {
3162
3165
  if (!(e && t && e.start && t.start))
3163
3166
  return 0;
3164
3167
  var n = e.start().getTime() - t.start().getTime();
@@ -3196,11 +3199,11 @@ var DayPilot = { Global: {} };
3196
3199
  for (var n = this.headerHeight, a = 0; a < e; a++)
3197
3200
  n += this.rows[a].getHeight();
3198
3201
  return n += this.cellHeaderHeight, n += t * this.lineHeight();
3199
- }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) {
3202
+ }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ua = function (n) {
3200
3203
  var a = n.cache || n.data, r = a.borderRadius || i.eventBorderRadius;
3201
3204
  "number" == typeof r && (r += "px");
3202
3205
  var o = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(o, s), f = document.createElement("div");
3203
- f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.gd, f.onmousedown = function (t) {
3206
+ f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = i.va, f.oncontextmenu = i.fd, f.onmousedown = function (t) {
3204
3207
  t = t || window.event;
3205
3208
  var a = t.which || t.button;
3206
3209
  if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
@@ -3250,11 +3253,11 @@ var DayPilot = { Global: {} };
3250
3253
  if (e.control = i, e.e = n, e.element = null, f.domArgs = e, "function" == typeof i.onBeforeEventDomAdd && i.onBeforeEventDomAdd(e), e.element) {
3251
3254
  var a = v;
3252
3255
  if (a) {
3253
- e.Qa = a;
3256
+ e.Pa = a;
3254
3257
  if (t(e.element)) {
3255
- if (!i.Sa.Ra)
3258
+ if (!i.Ra.Qa)
3256
3259
  throw new DayPilot.Exception("Can't reach Vue");
3257
- i.Sa.Ta = !0, i.Sa.Wa(e.element, a, { "style": { "flexGrow": 1 } }), i.Sa.Ta = !1;
3260
+ i.Ra.Sa = !0, i.Ra.Va(e.element, a, { "style": { "flexGrow": 1 } }), i.Ra.Sa = !1;
3258
3261
  }
3259
3262
  else
3260
3263
  a.appendChild(e.element);
@@ -3263,7 +3266,7 @@ var DayPilot = { Global: {} };
3263
3266
  else
3264
3267
  v.innerHTML = n.client.innerHTML();
3265
3268
  }(), this.elements.events.push(f), this.nav.events.appendChild(f);
3266
- }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.cd = function () {
3269
+ }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.bd = function () {
3267
3270
  "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
3268
3271
  var e = this.lastVisibleDayOfMonth(), t = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1, n = Math.ceil(t / 7);
3269
3272
  this.days = 7 * n, this.rows = [];
@@ -3289,7 +3292,7 @@ var DayPilot = { Global: {} };
3289
3292
  for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
3290
3293
  e += this.rows[t].getHeight();
3291
3294
  return e;
3292
- }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Xa = function () {
3295
+ }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Wa = function () {
3293
3296
  var t = this.nav.top;
3294
3297
  t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function () { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.L("_main");
3295
3298
  var n = document.createElement("div");
@@ -3360,7 +3363,7 @@ var DayPilot = { Global: {} };
3360
3363
  for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
3361
3364
  n.y++, t -= 7;
3362
3365
  return n.x = t, n;
3363
- }, this.ed = function () {
3366
+ }, this.dd = function () {
3364
3367
  var e = document.createElement("div");
3365
3368
  e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
3366
3369
  for (var t = 0; t < this.getColCount(); t++) {
@@ -3372,26 +3375,26 @@ var DayPilot = { Global: {} };
3372
3375
  var i = document.createElement("div");
3373
3376
  i.setAttribute("unselectable", "on"), i.innerHTML = r.locale().dayNames[a], n.appendChild(i), i.style.position = "absolute", i.style.top = "0px", i.style.bottom = "0px", i.style.left = "0px", i.style.right = "0px", i.className = this.L("_header_inner"), i.innerHTML = r.locale().dayNames[a], e.appendChild(n);
3374
3377
  for (var o = 0; o < this.rows.length; o++)
3375
- this.hd(t, o, e);
3378
+ this.gd(t, o, e);
3376
3379
  }
3377
- }, this.dd = function () {
3380
+ }, this.cd = function () {
3378
3381
  for (var e = 0; e < this.cells.length; e++)
3379
3382
  for (var t = 0; t < this.cells[e].length; t++) {
3380
3383
  var n = i.cells[e][t];
3381
- i.gb(n);
3384
+ i.fb(n);
3382
3385
  }
3383
3386
  this.nav.cells.innerHTML = "";
3384
- }, this.gb = function (e) {
3387
+ }, this.fb = function (e) {
3385
3388
  !function () {
3386
3389
  var n = e.domArgs;
3387
3390
  if (e.domArgs = null, n && "function" == typeof i.onBeforeCellDomRemove && i.onBeforeCellDomRemove(n), n && "function" == typeof i.onBeforeCellDomAdd) {
3388
- var a = n && n.Qa;
3391
+ var a = n && n.Pa;
3389
3392
  if (a) {
3390
- i.Sa.Ra && t(n.element) && (i.Sa.Ta = !0, i.Sa.Ua(a), i.Sa.Ta = !1);
3393
+ i.Ra.Qa && t(n.element) && (i.Ra.Sa = !0, i.Ra.Ta(a), i.Ra.Sa = !1);
3391
3394
  }
3392
3395
  }
3393
3396
  }(), e.onclick = null;
3394
- }, this.ta = function () { return 2 === i.api; }, this.hd = function (n, a, o) {
3397
+ }, this.ta = function () { return 2 === i.api; }, this.gd = function (n, a, o) {
3395
3398
  var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null;
3396
3399
  c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d;
3397
3400
  var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {};
@@ -3424,11 +3427,11 @@ var DayPilot = { Global: {} };
3424
3427
  if (e.control = i, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(e), e.element) {
3425
3428
  var n = g;
3426
3429
  if (n) {
3427
- e.Qa = n;
3430
+ e.Pa = n;
3428
3431
  if (t(e.element)) {
3429
- if (!i.Sa.Ra)
3432
+ if (!i.Ra.Qa)
3430
3433
  throw new DayPilot.Exception("Can't reach Vue");
3431
- i.Sa.Ta = !0, i.Sa.Wa(e.element, n), i.Sa.Ta = !1;
3434
+ i.Ra.Sa = !0, i.Ra.Va(e.element, n), i.Ra.Sa = !1;
3432
3435
  }
3433
3436
  else
3434
3437
  n.appendChild(e.element);
@@ -3470,7 +3473,7 @@ var DayPilot = { Global: {} };
3470
3473
  break;
3471
3474
  case "JavaScript": i.onEventClick(n);
3472
3475
  }
3473
- }, this.gd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) {
3476
+ }, this.fd = function (e) { var t = e.currentTarget; return i.xa(t.event), !1; }, this.xa = function (e) {
3474
3477
  if (this.event = e, !e.client.rightClickEnabled())
3475
3478
  return !1;
3476
3479
  var t = {};
@@ -3587,7 +3590,7 @@ var DayPilot = { Global: {} };
3587
3590
  break;
3588
3591
  case "JavaScript": i.onTimeRangeSelected(e, t);
3589
3592
  }
3590
- }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.dd(), e.Z(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.Q; }, this.qb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.xb = function () {
3593
+ }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { i.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.V("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.R.locale = function () { var e = DayPilot.Locale.find(i.locale); return e ? e : DayPilot.Locale.US; }, this.R.da = function () { return "Disabled" !== i.xssProtection; }, this.debug = function (e) { this.debuggingEnabled && (i.debugMessages || (i.debugMessages = []), i.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = i; e.Q || (e.Q = !0, e.cd(), e.Z(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.Q; }, this.pb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof i.events.list || !i.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { i.visible = !0, i.nav.top.style.display = ""; }, this.hide = function () { i.visible = !1, i.nav.top.style.display = "none"; }, this.wb = function () {
3591
3594
  if (this.id && this.id.tagName)
3592
3595
  this.nav.top = this.id;
3593
3596
  else {
@@ -3596,19 +3599,19 @@ var DayPilot = { Global: {} };
3596
3599
  if (this.nav.top = document.getElementById(this.id), !this.nav.top)
3597
3600
  throw "DayPilot.Month: The placeholder element not found: '" + this.id + "'.";
3598
3601
  }
3599
- }, this.Fb = function () { this.cd(), this.Xa(), this.ed(), this.qb(), this.V("Init"); }, this._a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) {
3600
- var a = i.Sa.Ra;
3602
+ }, this.Eb = function () { this.bd(), this.Wa(), this.dd(), this.pb(), this.V("Init"); }, this.$a = function (e, t) { return i.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) {
3603
+ var a = i.Ra.Qa;
3601
3604
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
3602
3605
  var r = a.createVNode(e, n);
3603
3606
  a.render(r, t);
3604
3607
  }
3605
- }, this.Sa.Wa = function (e, t, n) {
3606
- var a = i.Sa.Ra;
3608
+ }, this.Ra.Va = function (e, t, n) {
3609
+ var a = i.Ra.Qa;
3607
3610
  if ("function" == typeof a.render) {
3608
3611
  var r = e;
3609
3612
  DayPilot.isArray(e) && (r = a.h("div", n, e)), a.render(r, t);
3610
3613
  }
3611
- }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.tb, this.internal.xssTextHtml = i._a, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.init = function () { return this.xb(), this.loadFromServer() ? void this.Fb() : (this.cd(), this.ha(), this.Xa(), this.ed(), this.u(), this.na(), this.qb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.tb(a);
3614
+ }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.sb, this.internal.xssTextHtml = i.$a, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.init = function () { return this.wb(), this.loadFromServer() ? void this.Eb() : (this.bd(), this.ha(), this.Wa(), this.dd(), this.u(), this.na(), this.pb(), this.fireAfterRenderDetached(null, !1), this.La = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return i.eventBarVisible; } }), this.sb(a);
3612
3615
  }, e.gMouseUp = function (t) {
3613
3616
  if (e.movingEvent) {
3614
3617
  var n = e.movingEvent;
@@ -3733,25 +3736,25 @@ var DayPilot = { Global: {} };
3733
3736
  var i = this;
3734
3737
  this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onTodayClick = null, this.R = {};
3735
3738
  var r = this.R;
3736
- this.jd = {};
3737
- var o = this.jd;
3738
- this.nav = {}, this.yb = {}, this.kd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.ld() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.md()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ld() || (this.root.style.width = 7 * r.cellWidth() + this.md() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.dd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.od = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.pd = function () {
3739
- if (!r.ld())
3739
+ this.hd = {};
3740
+ var o = this.hd;
3741
+ this.nav = {}, this.xb = {}, this.jd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.kd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.ld()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.kd() || (this.root.style.width = 7 * r.cellWidth() + this.ld() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.cd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.md = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.nd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.od = function () {
3742
+ if (!r.kd())
3740
3743
  return null;
3741
3744
  var e = 7;
3742
3745
  return this.showWeekNumbers && e++, 100 / e;
3743
- }, this.qd = function () { return r.ld() ? null : r.cellWidth(); }, this.rd = function (e) { return "number" != typeof e && (e = 1), r.ld() ? this.pd() * e : this.qd() * e; }, this.sd = function (e) { var t = r.ld() ? "%" : "px"; return this.rd(e) + t; }, this.ed = function (t, n) {
3746
+ }, this.pd = function () { return r.kd() ? null : r.cellWidth(); }, this.qd = function (e) { return "number" != typeof e && (e = 1), r.kd() ? this.od() * e : this.pd() * e; }, this.rd = function (e) { var t = r.kd() ? "%" : "px"; return this.qd(e) + t; }, this.dd = function (t, n) {
3744
3747
  var a = {};
3745
3748
  a.cells = [], a.days = [], a.weeks = [];
3746
3749
  var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6;
3747
3750
  a.rowCount = f;
3748
- var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.md();
3751
+ var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.ld();
3749
3752
  a.width = p;
3750
3753
  var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
3751
3754
  a.height = m;
3752
3755
  var g = document.createElement("div");
3753
- if (r.ld() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
3754
- g.style.position = "absolute", r.ld() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
3756
+ if (r.kd() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
3757
+ g.style.position = "absolute", r.kd() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
3755
3758
  else {
3756
3759
  g.style.position = "relative";
3757
3760
  var y = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
@@ -3759,11 +3762,11 @@ var DayPilot = { Global: {} };
3759
3762
  }
3760
3763
  g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g);
3761
3764
  var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div");
3762
- w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.sd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.td), g.appendChild(w);
3765
+ w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.rd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span>&lt;</span>", w.onclick = this.sd), g.appendChild(w);
3763
3766
  var x = document.createElement("div");
3764
- x.style.position = "absolute", x.style.left = i.sd(), x.style.top = "0px", x.style.width = i.sd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x;
3767
+ x.style.position = "absolute", x.style.left = i.rd(), x.style.top = "0px", x.style.width = i.rd(i.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(x), this.ti = x;
3765
3768
  var _ = document.createElement("div");
3766
- _.style.position = "absolute", _.style.left = i.sd(i.showWeekNumbers ? 7 : 6), _.style.right = i.sd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.sd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.ud), g.appendChild(_), this.tr = _;
3769
+ _.style.position = "absolute", _.style.left = i.rd(i.showWeekNumbers ? 7 : 6), _.style.right = i.rd(i.showWeekNumbers ? 7 : 6), _.style.top = "0px", _.style.width = i.rd(), _.style.height = this.titleHeight + "px", _.style.lineHeight = this.titleHeight + "px", _.className = this.L("_titleright"), n.right && (_.style.cursor = "pointer", _.innerHTML = "<span>&gt;</span>", _.onclick = this.td), g.appendChild(_), this.tr = _;
3767
3770
  var C = i.showWeekNumbers ? 1 : 0;
3768
3771
  if (this.showWeekNumbers)
3769
3772
  for (var k = 0; k < f; k++) {
@@ -3781,32 +3784,32 @@ var DayPilot = { Global: {} };
3781
3784
  default: throw "Unknown weekNumberAlgorithm value.";
3782
3785
  }
3783
3786
  var M = document.createElement("div");
3784
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.sd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
3787
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = k * this.cellHeight + b + "px", M.style.width = i.rd(), M.style.height = this.cellHeight + "px", M.style.lineHeight = this.cellHeight + "px", M.className = this.L("_weeknumber"), M.innerHTML = "<span>" + S + "</span>", g.appendChild(M), a.weeks.push(M);
3785
3788
  }
3786
3789
  if (i.showWeekNumbers) {
3787
3790
  var M = document.createElement("div");
3788
- M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
3791
+ M.style.position = "absolute", M.style.left = "0px", M.style.right = "0px", M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), g.appendChild(M);
3789
3792
  }
3790
3793
  for (var T = 0; T < 7; T++) {
3791
3794
  a.cells[T] = [];
3792
3795
  var M = document.createElement("div");
3793
- M.style.position = "absolute", M.style.left = i.sd(T + C), M.style.right = i.sd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.sd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.vd(T) + "</span>", g.appendChild(M), a.days.push(M);
3796
+ M.style.position = "absolute", M.style.left = i.rd(T + C), M.style.right = i.rd(T + C), M.style.top = this.titleHeight + "px", M.style.width = i.rd(), M.style.height = this.dayHeaderHeight + "px", M.style.lineHeight = this.dayHeaderHeight + "px", M.className = this.L("_dayheader"), M.innerHTML = "<span>" + this.ud(T) + "</span>", g.appendChild(M), a.days.push(M);
3794
3797
  for (var A = function (t) {
3795
- var n = c.addDays(7 * t + T), d = E.wd(n) && "none" !== E.xd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1);
3796
- if ("month" === E.xd())
3798
+ var n = c.addDays(7 * t + T), d = E.vd(n) && "none" !== E.wd(), u = n.firstDayOfMonth() === o, h = n < o, f = n >= o.addMonths(1);
3799
+ if ("month" === E.wd())
3797
3800
  d = d && u;
3798
- else if ("day" === E.xd())
3801
+ else if ("day" === E.wd())
3799
3802
  d = d && (u || s && h || l && f);
3800
- else if ("week" === E.xd()) {
3803
+ else if ("week" === E.wd()) {
3801
3804
  var p = n.firstDayOfMonth() === o;
3802
3805
  d = d && (p || s && h || l && f);
3803
3806
  }
3804
3807
  var m = document.createElement("div");
3805
3808
  a.cells[T][t] = m;
3806
- var y = i.yd(T, t), b = y.x, w = y.y, x = r.ld() ? "%" : "px";
3807
- m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.nd(m, "cell"), n.getTime() === v.getTime() && u && E.nd(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.nd(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.sd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px";
3809
+ var y = i.xd(T, t), b = y.x, w = y.y, x = r.kd() ? "%" : "px";
3810
+ m.day = n, m.x = T, m.y = t, m.left = b, m.top = w, m.isCurrentMonth = u, m.isNextMonth = f, m.isPrevMonth = h, m.showBefore = s, m.showAfter = l, m.className = E.L(u ? "_day" : "_dayother"), i.md(m, "cell"), n.getTime() === v.getTime() && u && E.md(m, "today"), 0 !== n.dayOfWeek() && 6 !== n.dayOfWeek() || E.md(m, "weekend"), m.style.position = "absolute", m.style.left = b + x, m.style.right = b + x, m.style.top = w + "px", m.style.width = i.rd(), m.style.height = E.cellHeight + "px", m.style.lineHeight = E.cellHeight + "px";
3808
3811
  var _ = document.createElement("div");
3809
- _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.nd(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_);
3812
+ _.style.position = "absolute", _.className = n.getTime() === v.getTime() && u ? E.L("_todaybox") : E.L("_daybox"), i.md(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", m.appendChild(_);
3810
3813
  var C = null;
3811
3814
  E.cells && E.cells[n.toStringSortable()] && (C = E.cells[n.toStringSortable()]);
3812
3815
  var k = C || {};
@@ -3816,43 +3819,43 @@ var DayPilot = { Global: {} };
3816
3819
  }
3817
3820
  if (C && DayPilot.Util.addClass(m, C.cssClass || C.css), u || s && h || l && f) {
3818
3821
  var S = document.createElement("div");
3819
- S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.nd(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
3822
+ S.innerHTML = n.getDay(), S.style.position = "absolute", S.style.left = "0px", S.style.top = "0px", S.style.right = "0px", S.style.bottom = "0px", i.md(S, "cell_text"), m.isClickable = !0, C && C.html && (S.innerHTML = C.html), m.appendChild(S);
3820
3823
  }
3821
- m.onclick = E.zd, function () {
3824
+ m.onclick = E.yd, function () {
3822
3825
  if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
3823
3826
  var t = {};
3824
3827
  if (t.control = i, t.cell = k, t.element = null, m.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
3825
3828
  var n = _;
3826
3829
  if (n) {
3827
- t.Qa = n;
3830
+ t.Pa = n;
3828
3831
  if (e(t.element)) {
3829
- if (!i.Sa.Ra)
3832
+ if (!i.Ra.Qa)
3830
3833
  throw new DayPilot.Exception("Can't reach Vue");
3831
- i.Sa.Ta = !0, i.Sa.Wa(t.element, n), i.Sa.Ta = !1;
3834
+ i.Ra.Sa = !0, i.Ra.Va(t.element, n), i.Ra.Sa = !1;
3832
3835
  }
3833
3836
  else
3834
3837
  n.appendChild(t.element);
3835
3838
  }
3836
3839
  }
3837
3840
  }
3838
- }(), g.appendChild(m), d && (i.Ad(g, T, t), E.selected.push(m));
3841
+ }(), g.appendChild(m), d && (i.zd(g, T, t), E.selected.push(m));
3839
3842
  }, E = this, k = 0; k < f; k++)
3840
3843
  A(k);
3841
3844
  }
3842
3845
  var H = document.createElement("div");
3843
- H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.sd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a);
3844
- }, this.yd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.rd(e + a), "y": t * this.cellHeight + n }; }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.Bd = function (e, t, n) { var a = e.month.cells[t][n]; i.od(a, "select"); }, this.md = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Cd = function () {
3846
+ H.style.position = "absolute", H.style.left = "0px", H.style.top = b - 2 + "px", H.style.width = i.rd(7 + C), H.style.height = "1px", H.style.fontSize = "1px", H.style.lineHeight = "1px", H.className = this.L("_line"), g.appendChild(H), this.months.push(a);
3847
+ }, this.xd = function (e, t) { var n = this.titleHeight + this.dayHeaderHeight, a = this.showWeekNumbers ? 1 : 0; return { "x": i.qd(e + a), "y": t * this.cellHeight + n }; }, this.zd = function (e, t, n) { var a = e.month.cells[t][n]; i.md(a, "select"); }, this.Ad = function (e, t, n) { var a = e.month.cells[t][n]; i.nd(a, "select"); }, this.ld = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Bd = function () {
3845
3848
  if (this.items)
3846
3849
  for (var e = 0; e < this.showMonths; e++)
3847
3850
  for (var t = 0; t < 7; t++)
3848
3851
  for (var n = 0; n < 6; n++) {
3849
3852
  var a = this.months[e].cells[t][n];
3850
- a && (1 === this.items[a.day.toStringSortable()] ? (this.nd(a, "busy"), this.od(a, "free")) : (this.od(a, "busy"),
3851
- this.nd(a, "free")));
3853
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.md(a, "busy"), this.nd(a, "free")) : (this.nd(a, "busy"),
3854
+ this.md(a, "free")));
3852
3855
  }
3853
- }, this.Dd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.xd = function () { return (this.selectMode || "").toLowerCase(); }, this.Ed = function () {
3856
+ }, this.Cd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.wd = function () { return (this.selectMode || "").toLowerCase(); }, this.Dd = function () {
3854
3857
  var e = this.selectionDay || this.selectionStart;
3855
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.xd()) {
3858
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.wd()) {
3856
3859
  case "day":
3857
3860
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3858
3861
  break;
@@ -3867,32 +3870,34 @@ var DayPilot = { Global: {} };
3867
3870
  break;
3868
3871
  default: throw "Unknown selectMode value.";
3869
3872
  }
3870
- }, this.Fd = null, this.select = function (e, t, n) {
3871
- var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n;
3872
- if (!this.Ma)
3873
- return void (this.Fd = { "date1": o, "date2": s, "options": l });
3874
- var d = !0, c = !0;
3875
- l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3876
- var u = this.selectionStart, h = this.selectionEnd;
3877
- this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart;
3878
- var f = !1;
3879
- if (d) {
3880
- var v = this.startDate;
3881
- (this.selectionStart < this.Gd() || this.selectionStart >= this.Hd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
3882
- }
3883
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Ed(), this.dd(), this.kd(), this.Id(), this.Cd(), this.Dd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Jd();
3884
- }, this.update = function (e) { i.Kd(e); }, this.Kd = function (e) {
3885
- if (i.tb(e), this.Ma) {
3873
+ }, this.Ed = null, this.select = function (e, t, n) {
3874
+ if (!this.Q) {
3875
+ var a = t && (t instanceof DayPilot.Date || "string" == typeof t), r = t && "object" == typeof t || "boolean" == typeof t, o = e, s = a ? t : null, l = r ? t : n;
3876
+ if (!this.La)
3877
+ return void (this.Ed = { "date1": o, "date2": s, "options": l });
3878
+ var d = !0, c = !0;
3879
+ l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3880
+ var u = this.selectionStart, h = this.selectionEnd;
3881
+ this.selectionStart = new DayPilot.Date(o).getDatePart(), this.selectionDay = this.selectionStart;
3882
+ var f = !1;
3883
+ if (d) {
3884
+ var v = this.startDate;
3885
+ (this.selectionStart < this.Fd() || this.selectionStart >= this.Gd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
3886
+ }
3887
+ s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Dd(), this.cd(), this.jd(), this.Hd(), this.Bd(), this.Cd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Id();
3888
+ }
3889
+ }, this.update = function (e) { i.Jd(e); }, this.Jd = function (e) {
3890
+ if (i.sb(e), this.La) {
3886
3891
  if (i.Q)
3887
3892
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3888
- i.Ld();
3893
+ i.Kd();
3889
3894
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3890
- i.rb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
3895
+ i.qb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
3891
3896
  }
3892
- }, this.rb = function () { this.dd(), this.kd(), this.Ed(), this.Id(), this.ha(), this.Cd(), this.Dd(), this.visible ? this.show() : this.hide(); }, this.Ld = function () { i.yb = {}; }, this.vb = null, this.tb = function (e) {
3897
+ }, this.qb = function () { this.cd(), this.jd(), this.Dd(), this.Hd(), this.ha(), this.Bd(), this.Cd(), this.visible ? this.show() : this.hide(); }, this.Kd = function () { i.xb = {}; }, this.ub = null, this.sb = function (e) {
3893
3898
  if (e) {
3894
3899
  var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
3895
- this.vb = t;
3900
+ this.ub = t;
3896
3901
  for (var n in e)
3897
3902
  if (t[n]) {
3898
3903
  var a = t[n];
@@ -3901,20 +3906,20 @@ var DayPilot = { Global: {} };
3901
3906
  else
3902
3907
  i[n] = e[n];
3903
3908
  }
3904
- }, this.wb = function () {
3905
- var e = this.vb;
3909
+ }, this.vb = function () {
3910
+ var e = this.ub;
3906
3911
  for (var t in e) {
3907
3912
  var n = e[t];
3908
3913
  n.postInit && n.postInit();
3909
3914
  }
3910
- }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Md) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Md = function (e) {
3915
+ }, this.V = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var i = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.W, i, this.Ld) : WebForm_DoCallback(this.uniqueID, i, this.X, null, this.callbackError, !0); }, this.Ld = function (e) {
3911
3916
  if ("function" == typeof i.onAjaxError) {
3912
3917
  var t = {};
3913
3918
  t.request = e, i.onAjaxError(t);
3914
3919
  }
3915
3920
  else
3916
3921
  "function" == typeof i.ajaxError && i.ajaxError(e);
3917
- }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.vd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.wd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Nd = function (e) {
3922
+ }, this.W = function (e) { i.X(e.responseText); }, this.T = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.U(); var r = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, r); }, this.U = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ud = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.vd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Md = function (e) {
3918
3923
  for (var t = 0; t < i.months.length; t++) {
3919
3924
  var n = i.months[t];
3920
3925
  if (!n)
@@ -3925,14 +3930,14 @@ var DayPilot = { Global: {} };
3925
3930
  return t;
3926
3931
  }
3927
3932
  return null;
3928
- }, this.Od = function () {
3929
- if (!r.ld())
3930
- return void (i.Pd = i.cellWidth);
3933
+ }, this.Nd = function () {
3934
+ if (!r.kd())
3935
+ return void (i.Od = i.cellWidth);
3931
3936
  var e = i.months[0].cells[0][0], t = e.clientWidth;
3932
- i.Pd = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); });
3933
- }, this.Qd = function (e) {
3934
- i.Od();
3935
- var t = DayPilot.mo3(i.nav.top, e), n = i.Nd(t);
3937
+ i.Od = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e) { e.width = t, e.left = n * t; }); }); });
3938
+ }, this.Pd = function (e) {
3939
+ i.Nd();
3940
+ var t = DayPilot.mo3(i.nav.top, e), n = i.Md(t);
3936
3941
  if (null === n)
3937
3942
  return null;
3938
3943
  var a = i.months[n], r = this.titleHeight + this.dayHeaderHeight;
@@ -3941,18 +3946,18 @@ var DayPilot = { Global: {} };
3941
3946
  for (var o = 0; o < a.cells.length; o++)
3942
3947
  for (var s = 0; s < a.cells[o].length; s++) {
3943
3948
  var l = a.cells[o][s], d = l.top + a.top, c = l.left + a.left;
3944
- if (c <= t.x && t.x < c + i.Pd && d <= t.y && t.y < d + i.cellHeight)
3949
+ if (c <= t.x && t.x < c + i.Od && d <= t.y && t.y < d + i.cellHeight)
3945
3950
  return { "month": n, "x": o, "y": s, "coords": t };
3946
3951
  }
3947
3952
  return null;
3948
- }, this.Rd = function (e) {
3953
+ }, this.Qd = function (e) {
3949
3954
  if (i.freeHandSelectionEnabled) {
3950
- var t = i.Qd(e);
3955
+ var t = i.Pd(e);
3951
3956
  t && !t.header && (o.start = t), e.preventDefault();
3952
3957
  }
3953
- }, this.Sd = function (e) {
3958
+ }, this.Rd = function (e) {
3954
3959
  if (o.start) {
3955
- var t = i.Qd(e);
3960
+ var t = i.Pd(e);
3956
3961
  if (o.end)
3957
3962
  o.end = t;
3958
3963
  else if (t) {
@@ -3962,10 +3967,10 @@ var DayPilot = { Global: {} };
3962
3967
  o.end && (o.clear(), o.draw());
3963
3968
  }
3964
3969
  }, o.start = null, o.drawCell = function (e) {
3965
- var t = i.months[e.month], n = i.yd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.sd();
3966
- if (r.ld()) {
3970
+ var t = i.months[e.month], n = i.xd(e.x, e.y), a = t.top + n.y, s = t.left + n.x, l = "px", d = i.rd();
3971
+ if (r.kd()) {
3967
3972
  var c = "Horizontal" === i.orientation ? i.showMonths : 1;
3968
- s = t.leftPct + n.x / c, l = "%", d = i.sd(1 / c);
3973
+ s = t.leftPct + n.x / c, l = "%", d = i.rd(1 / c);
3969
3974
  }
3970
3975
  var u = document.createElement("div");
3971
3976
  u.style.position = "absolute", u.style.left = s + l, u.style.top = a + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), o.cells.push(u);
@@ -3992,42 +3997,42 @@ var DayPilot = { Global: {} };
3992
3997
  }
3993
3998
  t.visible() && o.drawCell(t);
3994
3999
  }
3995
- }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.zd = function (e) {
4000
+ }, o.ordered = function () { var e = o.start, t = o.end, n = {}; return !t || new a(e).before(t) ? (n.start = e, n.end = t) : (n.start = t, n.end = e), n; }, this.yd = function (e) {
3996
4001
  var t = e.currentTarget, n = t.parentNode, a = t.parentNode.month, r = t.x, o = t.y, s = a.cells[r][o].day;
3997
4002
  if (a.cells[r][o].isClickable) {
3998
- switch (i.clearSelection(), i.selectionDay = s, i.xd()) {
4003
+ switch (i.clearSelection(), i.selectionDay = s, i.wd()) {
3999
4004
  case "none":
4000
4005
  i.selectionStart = s, i.selectionEnd = s;
4001
4006
  break;
4002
4007
  case "day":
4003
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
4008
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
4004
4009
  return void i.select(s);
4005
4010
  var l = a.cells[r][o];
4006
- i.Ad(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
4011
+ i.zd(n, r, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
4007
4012
  break;
4008
4013
  case "week":
4009
4014
  if (i.autoFocusOnClick) {
4010
4015
  var d = a.cells[0][o].day, c = a.cells[6][o].day;
4011
- if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Gd() || c >= i.Hd()))
4016
+ if (d.firstDayOfMonth() === c.firstDayOfMonth() && (d < i.Fd() || c >= i.Gd()))
4012
4017
  return void i.select(s);
4013
4018
  }
4014
4019
  for (var u = 0; u < 7; u++)
4015
- i.Ad(n, u, o), i.selected.push(a.cells[u][o]);
4020
+ i.zd(n, u, o), i.selected.push(a.cells[u][o]);
4016
4021
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
4017
4022
  break;
4018
4023
  case "month":
4019
- if (i.autoFocusOnClick && (s < i.Gd() || s >= i.Hd()))
4024
+ if (i.autoFocusOnClick && (s < i.Fd() || s >= i.Gd()))
4020
4025
  return void i.select(s);
4021
4026
  for (var d = null, c = null, h = 0; h < 6; h++)
4022
4027
  for (var f = 0; f < 7; f++) {
4023
4028
  var l = a.cells[f][h];
4024
- l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.Ad(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
4029
+ l && l.day.getYear() === s.getYear() && l.day.getMonth() === s.getMonth() && (i.zd(n, f, h), i.selected.push(l), null === d && (d = l.day), c = l.day);
4025
4030
  }
4026
4031
  i.selectionStart = d, i.selectionEnd = c;
4027
4032
  break;
4028
4033
  default: throw "unknown selectMode";
4029
4034
  }
4030
- i.Dd(), i.O();
4035
+ i.Cd(), i.O();
4031
4036
  }
4032
4037
  }, this.O = function (e) {
4033
4038
  var t = i.selectionStart, n = i.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), r = i.selectionDay;
@@ -4063,7 +4068,7 @@ var DayPilot = { Global: {} };
4063
4068
  case "None": break;
4064
4069
  case "PostBack": i.timeRangeSelectedPostBack(t, n, r);
4065
4070
  }
4066
- }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.ud = function () { i.Td(i.skipMonths); }, this.td = function () { i.Td(-i.skipMonths); }, this.Td = function (e) { this.startDate = this.startDate.addMonths(e), this.dd(), this.kd(), this.Id(), this.Dd(), this.Jd(), this.Cd(); }, this.Gd = function () { return i.startDate.firstDayOfMonth(); }, this.Hd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Jd = function () {
4071
+ }, this.timeRangeSelectedPostBack = function (e, t, n, a) { var i = {}; i.start = e, i.end = t, i.day = a, this.T("TimeRangeSelected", n, i); }, this.td = function () { i.Sd(i.skipMonths); }, this.sd = function () { i.Sd(-i.skipMonths); }, this.Sd = function (e) { this.startDate = this.startDate.addMonths(e), this.cd(), this.jd(), this.Hd(), this.Cd(), this.Id(), this.Bd(); }, this.Fd = function () { return i.startDate.firstDayOfMonth(); }, this.Gd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Id = function () {
4067
4072
  var e = this.visibleStart(), t = this.visibleEnd();
4068
4073
  if (i.ta()) {
4069
4074
  var n = {};
@@ -4093,14 +4098,14 @@ var DayPilot = { Global: {} };
4093
4098
  break;
4094
4099
  case "Disabled":
4095
4100
  }
4096
- }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Cd(); }, this.Id = function () {
4097
- this.showToday && "Top" === this.todayPosition && this.Ud();
4101
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.V("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.X = function (e) { var t = JSON.parse(e); i.items = t.Items, i.cells = t.Cells, i.cells ? i.update() : i.Bd(); }, this.Hd = function () {
4102
+ this.showToday && "Top" === this.todayPosition && this.Td();
4098
4103
  for (var e = 0; e < this.showMonths; e++) {
4099
- var t = this.Vd(e);
4100
- this.ed(e, t);
4104
+ var t = this.Ud(e);
4105
+ this.dd(e, t);
4101
4106
  }
4102
- this.showToday && "Bottom" === this.todayPosition && this.Ud(), this.root.style.height = this.Wd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
4103
- }, this.Ud = function () {
4107
+ this.showToday && "Bottom" === this.todayPosition && this.Td(), this.root.style.height = this.Vd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
4108
+ }, this.Td = function () {
4104
4109
  if (this.showToday) {
4105
4110
  var e = document.createElement("span");
4106
4111
  e.className = this.L("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () {
@@ -4114,7 +4119,7 @@ var DayPilot = { Global: {} };
4114
4119
  var t = document.createElement("div");
4115
4120
  t.style.height = this.todayHeight + "px", t.className = this.L("_todaysection"), t.appendChild(e), this.root.appendChild(t);
4116
4121
  }
4117
- }, this.Wd = function () {
4122
+ }, this.Vd = function () {
4118
4123
  var e = 0;
4119
4124
  if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
4120
4125
  for (var t = 0; t < this.months.length; t++) {
@@ -4128,57 +4133,57 @@ var DayPilot = { Global: {} };
4128
4133
  e += n.height;
4129
4134
  }
4130
4135
  return e;
4131
- }, this.Vd = function (e) {
4136
+ }, this.Ud = function (e) {
4132
4137
  if (this.internal.showLinks)
4133
4138
  return this.internal.showLinks;
4134
4139
  var t = {};
4135
4140
  return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t;
4136
- }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) {
4137
- var a = i.Sa.Ra;
4141
+ }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) {
4142
+ var a = i.Ra.Qa;
4138
4143
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
4139
4144
  var r = a.createVNode(e, n);
4140
4145
  a.render(r, t);
4141
4146
  }
4142
- }, this.Sa.Wa = function (e, t) {
4143
- var n = i.Sa.Ra;
4147
+ }, this.Ra.Va = function (e, t) {
4148
+ var n = i.Ra.Qa;
4144
4149
  if ("function" == typeof n.render) {
4145
4150
  var a = e;
4146
4151
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
4147
4152
  }
4148
- }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.tb, this.internal.initialized = function () { return i.Ma; }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.internal.upd = function (e) { i.Kd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () {
4153
+ }, this.Ra.Ta = function (e) { var t = i.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.sb, this.internal.initialized = function () { return i.La; }, this.internal.enableVue = function (e) { i.Ra.Qa = e; }, this.internal.vueRef = function () { return i.Ra.Qa; }, this.internal.vueRendering = function () { return i.Ra.Sa; }, this.internal.upd = function (e) { i.Jd(e); }, r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () {
4149
4154
  if ("Auto" === i.weekStarts) {
4150
4155
  var e = r.locale();
4151
4156
  return e ? e.weekStarts : 0;
4152
4157
  }
4153
4158
  return i.weekStarts;
4154
4159
  }, r.cellWidth = function () {
4155
- if (i.yb.cellWidth)
4156
- return i.yb.cellWidth;
4157
- var e = i.Xd("_cell_dimensions").width;
4158
- return e || (e = i.cellWidth), i.yb.cellWidth = e, e;
4159
- }, r.ld = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () {
4160
+ if (i.xb.cellWidth)
4161
+ return i.xb.cellWidth;
4162
+ var e = i.Wd("_cell_dimensions").width;
4163
+ return e || (e = i.cellWidth), i.xb.cellWidth = e, e;
4164
+ }, r.kd = function () { return "Auto" === i.R.cellWidth(); }, this.clearSelection = function () {
4160
4165
  for (var e = 0; e < this.selected.length; e++) {
4161
4166
  var t = this.selected[e];
4162
- i.Bd(t.parentNode, t.x, t.y);
4167
+ i.Ad(t.parentNode, t.x, t.y);
4163
4168
  }
4164
4169
  this.selected = [];
4165
- }, this.Yd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () {
4170
+ }, this.Xd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () {
4166
4171
  if (DayPilot.isArray(this.events.list)) {
4167
4172
  this.items = {};
4168
4173
  for (var e = 0; e < this.events.list.length; e++) {
4169
4174
  var t = this.events.list[e];
4170
4175
  if (!t.hidden) {
4171
- var n = this.Zd(t);
4176
+ var n = this.Yd(t);
4172
4177
  for (var a in n)
4173
4178
  this.items[a] = 1;
4174
4179
  }
4175
4180
  }
4176
4181
  }
4177
- }, this.Xd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Zd = function (e) {
4182
+ }, this.Wd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, r = t.offsetWidth; n.removeChild(t); var o = {}; return o.height = a, o.width = r, o; }, this.Yd = function (e) {
4178
4183
  for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), a = {}, i = t.getDatePart(); i.getTime() <= n.getTime();)
4179
4184
  a[i.toStringSortable()] = 1, i = i.addDays(1);
4180
4185
  return a;
4181
- }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.xb = function () {
4186
+ }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.wb = function () {
4182
4187
  if (this.id && this.id.tagName)
4183
4188
  this.nav.top = this.id;
4184
4189
  else {
@@ -4189,26 +4194,26 @@ var DayPilot = { Global: {} };
4189
4194
  }
4190
4195
  this.root = this.nav.top;
4191
4196
  }, this.init = function () {
4192
- if (this.xb(), !this.root.dp) {
4193
- this.Ed(), this.kd(), this.Id(), this.ha(), this.Cd(), this.ba(), this.$d(), this.qb();
4194
- if (this.Yd() && this.Jd(), this.Ma = !0, this.wb(), this.Fd) {
4195
- var e = this.Fd;
4196
- this.select(e.date1, e.date2, e.options), this.Fd = null;
4197
+ if (this.wb(), !this.root.dp) {
4198
+ this.Dd(), this.jd(), this.Hd(), this.ha(), this.Bd(), this.ba(), this.Zd(), this.pb();
4199
+ if (this.Xd() && this.Id(), this.La = !0, this.vb(), this.Ed) {
4200
+ var e = this.Ed;
4201
+ this.select(e.date1, e.date2, e.options), this.Ed = null;
4197
4202
  }
4198
4203
  return this;
4199
4204
  }
4200
- }, this.$d = function () { i.nav.top.onmousedown = this.Rd, i.nav.top.onmousemove = this.Sd; }, this.qb = function () { DayPilot.re(document, "mouseup", i._d); }, this._d = function (e) {
4205
+ }, this.Zd = function () { i.nav.top.onmousedown = this.Qd, i.nav.top.onmousemove = this.Rd; }, this.pb = function () { DayPilot.re(document, "mouseup", i.$d); }, this.$d = function (e) {
4201
4206
  if (o.start && o.end) {
4202
4207
  var t = DayPilot.mo3(i.nav.top, e);
4203
4208
  if (t.x === o.start.coords.x && t.y === o.start.coords.y)
4204
4209
  return o.start = null, void o.clear();
4205
4210
  o.clear();
4206
4211
  var n = o.ordered();
4207
- n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.dd(), i.kd(), i.Id(), i.Cd(), i.Dd();
4212
+ n.start = new a(n.start).nextVisible(), n.end = new a(n.end).previousVisible(), i.selectionDay = new a(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new a(n.end).date(), o.start = null, o.end = null, i.cd(), i.jd(), i.Hd(), i.Bd(), i.Cd();
4208
4213
  i.O({ "mode": "FreeHand" });
4209
4214
  }
4210
4215
  o.start = null, o.end = null;
4211
- }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.tb(n);
4216
+ }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.ba = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.sb(n);
4212
4217
  }, "undefined" != typeof jQuery && !function (e) {
4213
4218
  e.fn.daypilotNavigator = function (e) {
4214
4219
  var t = null, n = this.each(function () {
@@ -4245,7 +4250,7 @@ var DayPilot = { Global: {} };
4245
4250
  for (var t in e)
4246
4251
  i[t] = e[t];
4247
4252
  i.update();
4248
- }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Cd(); }, !0);
4253
+ }, !0), d.call(t, u, function (e) { i.events.list = e, i.ha(), i.Bd(); }, !0);
4249
4254
  };
4250
4255
  } };
4251
4256
  }]);
@@ -4258,16 +4263,16 @@ var DayPilot = { Global: {} };
4258
4263
  DayPilot.Scheduler = function (a, o) {
4259
4264
  this.v = "${v}";
4260
4265
  var s = this;
4261
- this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ae = -1, this.be = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.yb = {}, this.yb.cells = [], this.yb.linesVertical = {}, this.yb.linesHorizontal = {}, this.yb.timeHeaderGroups = [], this.yb.timeHeader = {}, this.yb.events = [], this.nav = {}, this.R = {};
4266
+ this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this._d = -1, this.ae = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.R = {};
4262
4267
  var l = this.R;
4268
+ this.be = {};
4269
+ var d = s.be;
4263
4270
  this.ce = {};
4264
- var d = s.ce;
4265
- this.ee = {};
4266
- var c = this.ee, u = {};
4267
- this.scrollTo = function (e) { s.fe(e); }, this.fe = function (e) {
4271
+ var c = this.ce, u = {};
4272
+ this.scrollTo = function (e) { s.ee(e); }, this.ee = function (e) {
4268
4273
  if (e) {
4269
- if (!s.Ma)
4270
- return void (s.ge = e);
4274
+ if (!s.La)
4275
+ return void (s.fe = e);
4271
4276
  var t;
4272
4277
  if (e instanceof DayPilot.Date)
4273
4278
  t = this.getPixels(e).left;
@@ -4278,51 +4283,51 @@ var DayPilot = { Global: {} };
4278
4283
  throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
4279
4284
  t = e;
4280
4285
  }
4281
- var n = s.he.clientWidth, a = s.nav.scroll.clientWidth;
4282
- t < 0 && (t = 0), t > n - a && (t = n - a), s.ie(t);
4286
+ var n = s.ge.clientWidth, a = s.nav.scroll.clientWidth;
4287
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.he(t);
4283
4288
  }
4284
4289
  }, this.scrollToResource = function (e) {
4285
4290
  DayPilot.complete(function () {
4286
4291
  var t;
4287
4292
  if ("string" == typeof e || "number" == typeof e)
4288
- t = s.je(e);
4293
+ t = s.ie(e);
4289
4294
  else {
4290
4295
  if (!(e instanceof DayPilot.Row))
4291
4296
  throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
4292
- t = s.je(e.id);
4297
+ t = s.ie(e.id);
4293
4298
  }
4294
4299
  t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100);
4295
4300
  });
4296
- }, this.ke = function () {
4301
+ }, this.je = function () {
4297
4302
  if (this.floatingTimeHeaders && this.timeHeader) {
4298
- var e = s.le();
4303
+ var e = s.ke();
4299
4304
  if (e) {
4300
- s.me();
4305
+ s.le();
4301
4306
  for (var t = e.pixels.left, n = e.pixels.right + e.sw, a = [], i = 0; i < this.timeHeader.length; i++)
4302
4307
  for (var r = 0; r < this.timeHeader[i].length; r++) {
4303
4308
  var o = this.timeHeader[i][r], l = o.left, d = o.left + o.width, c = null;
4304
- if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
4305
- c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.yb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
4309
+ if (l < t && t < d && (c = {}, c.x = r, c.y = i, c.marginLeft = t - l, c.marginRight = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), l < n && n < d) {
4310
+ c || (c = {}, c.x = r, c.y = i, c.marginLeft = 0, c.div = s.xb.timeHeader[r + "_" + i], a.push(c)), c.marginRight = d - n;
4306
4311
  break;
4307
4312
  }
4308
4313
  }
4309
4314
  for (var u = 0; u < a.length; u++) {
4310
4315
  var c = a[u];
4311
- s.ne(c.div, c.marginLeft, c.marginRight);
4316
+ s.me(c.div, c.marginLeft, c.marginRight);
4312
4317
  }
4313
4318
  }
4314
4319
  }
4315
- }, this.oe = function () { s.ke(), s.pe(); }, this.qe = {};
4316
- var h = s.qe;
4317
- h.se = function (e, t, n, a) {
4320
+ }, this.ne = function () { s.je(), s.oe(); }, this.pe = {};
4321
+ var h = s.pe;
4322
+ h.qe = function (e, t, n, a) {
4318
4323
  var i = e, r = e + n, o = t, l = t + a;
4319
4324
  return s.elements.events.filter(function (e) {
4320
4325
  var t = e.event, n = t.part.left, a = t.part.left + t.part.width, d = s.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + s.eventHeight;
4321
4326
  if (DayPilot.Util.overlaps(n, a, i, r) && DayPilot.Util.overlaps(c, u, o, l))
4322
4327
  return !0;
4323
4328
  });
4324
- }, h.te = function () {
4325
- var e = [], t = s.le();
4329
+ }, h.se = function () {
4330
+ var e = [], t = s.ke();
4326
4331
  if (!t)
4327
4332
  return e;
4328
4333
  for (var n = t.pixels.left, a = 0; a < s.elements.events.length; a++) {
@@ -4330,30 +4335,30 @@ var DayPilot = { Global: {} };
4330
4335
  o < n && n < l && e.push(i);
4331
4336
  }
4332
4337
  return e.area = t, e;
4333
- }, this.pe = function () {
4338
+ }, this.oe = function () {
4334
4339
  if (this.floatingEvents) {
4335
- var e = h.te();
4336
- s.ve = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.we(t, r, 0); }), s.xe();
4340
+ var e = h.se();
4341
+ s.te = performance.now(), e.forEach(function (t) { var n = t.event, a = e.area.pixels.left, i = n.part.left, r = a - i; s.ve(t, r, 0); }), s.we();
4337
4342
  }
4338
- }, this.elements.sections = [], this.elements.hsections = [], this.ne = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s._a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.me = function () {
4343
+ }, this.elements.sections = [], this.elements.hsections = [], this.me = function (e, t, n) { var a = r(); a.className = s.L("_timeheader_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden"; var i = r(); i.className = s.L("_timeheader_float_inner"); var o = e.cell.th; i.innerHTML = s.$a(o.text, o.html), o.fontColor && (i.style.color = o.fontColor), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.le = function () {
4339
4344
  for (var e = 0; e < this.elements.hsections.length; e++) {
4340
4345
  var t = this.elements.hsections[e], n = t.cell;
4341
- n && t.firstChild && (t.firstChild.innerHTML = s._a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
4346
+ n && t.firstChild && (t.firstChild.innerHTML = s.$a(n.th.text, n.th.html)), DayPilot.de(t.section), t.section = null;
4342
4347
  }
4343
4348
  this.elements.hsections = [];
4344
- }, this.we = function (e, t, n) {
4349
+ }, this.ve = function (e, t, n) {
4345
4350
  var a = e.section;
4346
4351
  if (a)
4347
- return a.ye && a.ye.marginLeft === t && a.ye.marginRight === n ? void (a.ye.stamp = s.ve) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.ye = { marginLeft: t, marginRight: n, stamp: s.ve }));
4352
+ return a.xe && a.xe.marginLeft === t && a.xe.marginRight === n ? void (a.xe.stamp = s.te) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (a.xe = { marginLeft: t, marginRight: n, stamp: s.te }));
4348
4353
  a = r(), a.className = s.L("_event_float"), a.style.position = "absolute", a.style.left = t + "px", a.style.right = n + "px", a.style.top = "0px", a.style.bottom = "0px", a.style.overflow = "hidden";
4349
4354
  var i = r();
4350
- i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.ye = { marginLeft: t, marginRight: n, stamp: s.ve }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "";
4355
+ i.className = s.L("_event_float_inner"), i.innerHTML = e.event.client.html(), a.appendChild(i), a.xe = { marginLeft: t, marginRight: n, stamp: s.te }, e.section = a, e.insertBefore(a, e.firstChild.nextSibling), e.firstChild.innerHTML = "";
4351
4356
  var o = e.event, l = o.cache || o.data;
4352
4357
  l.fontColor && (i.style.color = l.fontColor), this.elements.sections.push(e);
4353
- }, this.xe = function () {
4358
+ }, this.we = function () {
4354
4359
  for (var e = [], t = 0; t < this.elements.sections.length; t++) {
4355
4360
  var n = this.elements.sections[t];
4356
- if (n.section && n.section.ye && n.section.ye.stamp === s.ve)
4361
+ if (n.section && n.section.xe && n.section.xe.stamp === s.te)
4357
4362
  e.push(n);
4358
4363
  else {
4359
4364
  var a = n.event;
@@ -4361,20 +4366,20 @@ var DayPilot = { Global: {} };
4361
4366
  }
4362
4367
  }
4363
4368
  this.elements.sections = e;
4364
- }, this.setScrollX = function (e) { s.ze.enabled ? (s.ze.scrollXRequested = e, setTimeout(function () { var e = s.ze.scrollXRequested; "number" == typeof e && s.ie(e); }, 0)) : s.ie(e); }, this.ie = function (e) { var t = s.nav.scroll, n = s.Ae(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ze.enabled ? (s.ze.scrollYRequested = e, setTimeout(function () { var e = s.ze.scrollYRequested; "number" == typeof e && s.Be(e); }, 0)) : s.Be(e); }, this.Be = function (e) { var t = s.nav.scroll, n = s.ae; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () {
4369
+ }, this.setScrollX = function (e) { s.ye.enabled ? (s.ye.scrollXRequested = e, setTimeout(function () { var e = s.ye.scrollXRequested; "number" == typeof e && s.he(e); }, 0)) : s.he(e); }, this.he = function (e) { var t = s.nav.scroll, n = s.ze(); t.clientWidth + e > n && (e = n - t.clientWidth), s.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { s.ye.enabled ? (s.ye.scrollYRequested = e, setTimeout(function () { var e = s.ye.scrollYRequested; "number" == typeof e && s.Ae(e); }, 0)) : s.Ae(e); }, this.Ae = function (e) { var t = s.nav.scroll, n = s._d; t.clientHeight + e > n && (e = n - t.clientHeight), s.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { s.setScrollX(e), s.setScrollY(t); }, this.ma = function () {
4365
4370
  if (this.nav.scroll) {
4366
- !function () { var e = s.Ae(); s.he.style.height = s.ae + "px", s.he.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
4371
+ !function () { var e = s.ze(); s.ge.style.height = s._d + "px", s.ge.style.width = e + "px", e > s.nav.scroll.clientWidth ? s.nav.scroll.style.overflowX = "auto" : s.nav.scroll.style.overflowX = "hidden"; }();
4367
4372
  var e = 1;
4368
4373
  this.nav.scroll.style.height = "30px";
4369
- var t = this.Ya(), n = t + this.Ce() + e;
4370
- if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.De.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
4374
+ var t = this.Xa(), n = t + this.Be() + e;
4375
+ if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.Ce.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", s.nav.resScrollSpace) {
4371
4376
  var a = 30;
4372
4377
  "Auto" === s.heightSpec && (a = DayPilot.sh(s.nav.scroll)), s.nav.resScrollSpace.style.height = a + "px";
4373
4378
  }
4374
4379
  for (var i = 0; i < this.elements.linesVertical.length; i++)
4375
- this.elements.linesVertical[i].style.height = this.ae + "px";
4380
+ this.elements.linesVertical[i].style.height = this._d + "px";
4376
4381
  }
4377
- }, this.Ee = function () {
4382
+ }, this.De = function () {
4378
4383
  this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = [];
4379
4384
  var e = this.timeHeaders;
4380
4385
  e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]);
@@ -4383,14 +4388,14 @@ var DayPilot = { Global: {} };
4383
4388
  "Default" === a && (a = this.cellGroupBy);
4384
4389
  for (var r = [], o = s.startDate; o.ticks < t.ticks;) {
4385
4390
  var d = {};
4386
- if (d.start = o, d.end = this.Fe(d.start, a), d.start.ticks === d.end.ticks)
4391
+ if (d.start = o, d.end = this.Ee(d.start, a), d.start.ticks === d.end.ticks)
4387
4392
  break;
4388
4393
  d.left = this.getPixels(d.start).left;
4389
4394
  var c = this.getPixels(d.end).left, u = c - d.left;
4390
- if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Ge()) : d.text = this.He(d, a), u > 0) {
4395
+ if (d.width = u, "string" == typeof i ? d.text = d.start.toString(i, l.Fe()) : d.text = this.Ge(d, a), u > 0) {
4391
4396
  if ("function" == typeof this.onBeforeTimeHeaderRender) {
4392
4397
  var h = {};
4393
- h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s._a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
4398
+ h.start = d.start, h.end = d.end, h.text = d.text, h.html = null, h.toolTip = s.$a(d.text), h.backColor = null, h.fontColor = null, h.level = this.timeHeader.length, h.cssClass = null;
4394
4399
  var f = {};
4395
4400
  f.header = h, f.control = s, this.onBeforeTimeHeaderRender(f), d.text = h.text, d.html = h.html, d.backColor = h.backColor, d.fontColor = h.fontColor, d.toolTip = h.toolTip, d.areas = h.areas, d.cssClass = h.cssClass;
4396
4401
  }
@@ -4400,34 +4405,34 @@ var DayPilot = { Global: {} };
4400
4405
  }
4401
4406
  this.timeHeader.push(r);
4402
4407
  }
4403
- }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Bb(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.Ae(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) {
4404
- var a = this.Ie(e, n);
4408
+ }, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = s.Ab(t), a = s.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var l = s.ze(); return o = o > l ? l : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) {
4409
+ var a = this.He(e, n);
4405
4410
  if (!a)
4406
4411
  return null;
4407
- var i = a.x, r = s.Je(i);
4412
+ var i = a.x, r = s.Ie(i);
4408
4413
  if (!r)
4409
4414
  return null;
4410
4415
  var o = n && !t ? r.end : r.start;
4411
- return t ? o.addTime(this.Ke(a.offset)) : o;
4412
- }, this.Ie = function (e, t) {
4416
+ return t ? o.addTime(this.Je(a.offset)) : o;
4417
+ }, this.He = function (e, t) {
4413
4418
  t && (e -= 1);
4414
- var n = Math.floor(e / s.cellWidth), a = s.Je(n);
4419
+ var n = Math.floor(e / s.cellWidth), a = s.Ie(n);
4415
4420
  if (!a)
4416
4421
  return null;
4417
4422
  var i = {};
4418
4423
  return i.x = n, i.offset = e % s.cellWidth, i.cell = a, i;
4419
- }, this.Le = function (e) {
4420
- var t = e.ticks - this.startDate.ticks, n = 60 * s.Me() * 1e3;
4424
+ }, this.Ke = function (e) {
4425
+ var t = e.ticks - this.startDate.ticks, n = 60 * s.Le() * 1e3;
4421
4426
  if (t < 0)
4422
4427
  return { past: !0 };
4423
4428
  var a = Math.floor(t / n);
4424
- return { i: a, current: s.Je(a) };
4425
- }, this.Bb = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Ke = function (e) { var t = 60 * s.Me() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Ne = function (e) { DayPilot.Global.touch.start || t.Oe || (s.Pe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Qe(e, t); }, this.xa = function (e) {
4429
+ return { i: a, current: s.Ie(a) };
4430
+ }, this.Ab = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(n * e / t); }, this.Je = function (e) { var t = 60 * s.Le() * 1e3, n = s.cellWidth; return Math.floor(e / n * t); }, this.Me = function (e) { DayPilot.Global.touch.start || t.Ne || (s.Oe = {}, s.va(this, e)); }, this.va = function (e, t) { e.event && s.Pe(e, t); }, this.xa = function (e) {
4426
4431
  if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
4427
4432
  var t = this.event;
4428
4433
  if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
4429
4434
  return !1;
4430
- s.Re(e);
4435
+ s.Qe(e);
4431
4436
  var n = {};
4432
4437
  if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(n), n.preventDefault.value))
4433
4438
  return !1;
@@ -4438,14 +4443,14 @@ var DayPilot = { Global: {} };
4438
4443
  }
4439
4444
  return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(n), !1;
4440
4445
  }
4441
- }, this.Je = function (e) { var t = s.Me(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Qe = function (e, t) {
4446
+ }, this.Ie = function (e) { var t = s.Le(), n = 60 * t * 1e3; return { start: s.startDate.addTime(e * n), end: s.startDate.addTime((e + 1) * n), left: e * s.cellWidth, width: s.cellWidth }; }, this.Pe = function (e, t) {
4442
4447
  if ("boolean" == typeof t)
4443
4448
  throw new DayPilot.Exception("Invalid _eventClickSingle parameters");
4444
4449
  var n = e.event;
4445
4450
  if (n) {
4446
4451
  var a = t.ctrlKey, i = t.metaKey;
4447
4452
  if (n.client.clickEnabled()) {
4448
- s.Re(t);
4453
+ s.Qe(t);
4449
4454
  var r = {};
4450
4455
  r.e = n, r.control = s, r.div = e, r.originalEvent = t, r.ctrl = a, r.meta = i, r.shift = t.shiftKey, r.preventDefault = function () { this.preventDefault.value = !0; }, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof s.onEventClick && (s.onEventClick(r), r.preventDefault.value) || "function" == typeof s.onEventClicked && s.onEventClicked(r);
4451
4456
  }
@@ -4462,55 +4467,56 @@ var DayPilot = { Global: {} };
4462
4467
  function i() {
4463
4468
  if (!r.preventDefault.value) {
4464
4469
  switch (r.loaded = {}, t = r.newStart, n = r.newEnd, s.eventResizeHandling) {
4465
- case "Update": s.Te(r);
4470
+ case "Update": s.Se(r);
4466
4471
  }
4467
4472
  "function" == typeof s.onEventResized && s.onEventResized(r);
4468
4473
  }
4469
4474
  }
4470
4475
  if ("Disabled" !== this.eventResizeHandling) {
4471
- n = s.Se(n);
4476
+ n = s.Re(n);
4472
4477
  var r = {};
4473
4478
  r.e = e, r.async = !1, r.loaded = function () { i(); }, r.newStart = t, r.newEnd = n, r.what = a, r.preventDefault = function () { this.preventDefault.value = !0; }, r.control = s, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(r), r.async || i();
4474
4479
  }
4475
- }, this.rb = function (e) { e = e || {}, clearTimeout(s.Ue), s.timeHeader = null, s.cellProperties = {}, s.Ee(), s.Ve(), s.events.We(), s.R.Ld(), s.clearSelection(), s.ha(), s.Xe(), s.Ye(), s.sb(), s.Ze(), s.$e(), s._e(), s.ia(), s.Z(), s.af(), s.bf = {}, s.cf(), s.ma(), s.df(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.be !== s.visible && this.show() : this.hide(), this.be = this.visible, this.oe(), s.ef(), this.ff(); }, this.ff = function () {
4480
+ }, this.qb = function (e) { e = e || {}, clearTimeout(s.Te), s.timeHeader = null, s.cellProperties = {}, s.De(), s.Ue(), s.events.Ve(), s.R.Kd(), s.clearSelection(), s.ha(), s.We(), s.Xe(), s.rb(), s.Ye(), s.Ze(), s.$e(), s.ia(), s.Z(), s._e(), s.af = {}, s.bf(), s.ma(), s.cf(), e.immediateEvents ? s.na() : setTimeout(function () { s.na(); }, 100), this.visible ? s.ae !== s.visible && this.show() : this.hide(), this.ae = this.visible, this.ne(), s.df(), this.ef(); }, this.ef = function () {
4476
4481
  if ("function" == typeof s.onAfterUpdate) {
4477
4482
  var e = {};
4478
4483
  s.onAfterUpdate(e);
4479
4484
  }
4480
4485
  }, this.update = function (e) {
4481
- if (!s.Ma)
4486
+ if (!s.La)
4482
4487
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized.");
4483
4488
  if (s.Q)
4484
4489
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable.");
4485
4490
  u.request(e);
4486
- }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.gf(e), u.timeout = setTimeout(u.doit)) : (u.gf(e), u.doit()); }, u.gf = function (e) {
4491
+ }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.ff(e), u.timeout = setTimeout(u.doit)) : (u.ff(e), u.doit()); }, u.ff = function (e) {
4487
4492
  if (e) {
4488
4493
  u.options || (u.options = {});
4489
4494
  for (var t in e)
4490
4495
  u.options[t] = e[t];
4491
4496
  }
4492
- }, u.doit = function () { var e = u.options; return u.options = null, s.Ma ? (s.tb(e), s.rb({ "immediateEvents": !0 }), void s.wb()) : void s.tb(e); }, this.hf = function (e) { e.forEach(function (e) { s.if(e.index); }); }, this.jf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.kf = function (e, t, n) { e = DayPilot.ua(e), e = s.jf(e), s.hf(e), this.lf ? (this.Xe(), this.$e(), this.af(), e.forEach(function (e) { s.mf(e.index); }), e.forEach(function (e) { s.nf(e.index); }), this.df(), this.of()) : (e.forEach(function (e) { t || s.mf(e.index), s.nf(e.index); }), e.forEach(function (e) { s.pf(e.index); }), s.df()), s.pe(), n && n(), this.cf(); }, this.Se = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.rf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
4493
- if (s.sf = null, "Disabled" !== s.eventMoveHandling) {
4494
- n = s.Se(n);
4497
+ }, u.doit = function () { var e = u.options; return u.options = null, s.La ? (s.sb(e), s.qb({ "immediateEvents": !0 }), void s.vb()) : void s.sb(e); }, this.gf = function (e) { e.forEach(function (e) { s.hf(e.index); }); }, this.if = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.jf = function (e, t, n) { e = DayPilot.ua(e), e = s.if(e), s.gf(e), this.kf ? (this.We(), this.Ze(), this._e(), e.forEach(function (e) { s.lf(e.index); }), e.forEach(function (e) { s.mf(e.index); }), this.cf(), this.nf()) : (e.forEach(function (e) { t || s.lf(e.index), s.mf(e.index); }), e.forEach(function (e) { s.of(e.index); }), s.cf()), s.oe(), n && n(), this.bf(); }, this.Re = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.pf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.qf = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, a, i) {
4498
+ if (s.rf = null, "Disabled" !== s.eventMoveHandling) {
4499
+ n = s.Re(n);
4495
4500
  var r = {};
4496
4501
  r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey), r.control = s, r.areaData = DayPilot.Global.movingAreaData, r.toJSON = function () { return DayPilot.Util.copyProps(r, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, r.preventDefault = function () { this.preventDefault.value = !0; };
4497
4502
  var o = function () {
4498
4503
  if (r.loaded = function () { }, r.preventDefault.value)
4499
- return void s.tf();
4504
+ return void s.sf();
4500
4505
  switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
4501
- case "Update": s.Te(r);
4506
+ case "Update": s.Se(r);
4502
4507
  }
4503
- s.tf(), "function" == typeof s.onEventMoved && s.onEventMoved(r);
4508
+ s.sf(), "function" == typeof s.onEventMoved && s.onEventMoved(r);
4504
4509
  };
4505
- r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r),
4506
- r.async || o();
4510
+ r.async = !1, r.loaded = function () {
4511
+ o();
4512
+ }, "function" == typeof s.onEventMove && s.onEventMove(r), r.async || o();
4507
4513
  }
4508
- }, this.Te = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.uf(); }, this.vf = function (e) {
4514
+ }, this.Se = function (e) { var t = e.e, n = e.newStart, a = e.newEnd, i = e.newResource; t.start(n), t.end(a), t.resource(i), s.events.update(t), s.events.tf(); }, this.uf = function (e) {
4509
4515
  if (e)
4510
4516
  if (e.args)
4511
4517
  s.O(e.args.start, e.args.end, e.args.resource);
4512
4518
  else {
4513
- var t = s.wf(e);
4519
+ var t = s.vf(e);
4514
4520
  if (!t)
4515
4521
  return;
4516
4522
  s.O(t.start, t.end, t.resource);
@@ -4518,24 +4524,24 @@ var DayPilot = { Global: {} };
4518
4524
  }, this.O = function (e, t, n) {
4519
4525
  if ("Disabled" !== s.timeRangeSelectedHandling) {
4520
4526
  var a = t;
4521
- t = s.Se(a);
4527
+ t = s.Re(a);
4522
4528
  var i = {};
4523
4529
  if (i.control = s, i.start = e, i.end = t, i.resource = n, i.preventDefault = function () { this.preventDefault.value = !0; }, i.toJSON = function () { return DayPilot.Util.copyProps(i, {}, ["start", "end", "resource"]); }, "function" == typeof s.onTimeRangeSelect) {
4524
4530
  if (s.onTimeRangeSelect(i), i.preventDefault.value)
4525
4531
  return;
4526
4532
  e = i.start, t = i.end;
4527
4533
  }
4528
- t = s.qf(t), s.xf(s.yf, e, t), s.zf(s.yf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
4534
+ t = s.pf(t), s.wf(s.xf, e, t), s.yf(s.xf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
4529
4535
  }
4530
- }, this.xf = function (e, t, n) {
4536
+ }, this.wf = function (e, t, n) {
4531
4537
  if (e) {
4532
4538
  var a, i = n;
4533
- t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Le(t), e.start.x = a.i, e.start.time = t);
4539
+ t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Ke(t), e.start.x = a.i, e.start.time = t);
4534
4540
  var r = s.startDate.addDays(s.days);
4535
- i.getTime() > r.getTime() ? (e.end.x = s.Af(), e.end.time = r.getTime()) : (a = s.Le(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
4541
+ i.getTime() > r.getTime() ? (e.end.x = s.zf(), e.end.time = r.getTime()) : (a = s.Ke(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
4536
4542
  }
4537
- }, this.Bf = function (e, t) { s.Cf(e, t); }, this.Cf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Df = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Ef(e, t), i = s.Ff(a), r = s.Je(a.start.x), o = s.Je(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Ef = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ie(e), i = s.Ie(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Gf(r).i, n.end.y = s.Gf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Af(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ff = function (e) {
4538
- e || (e = this.Ef(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop));
4543
+ }, this.Af = function (e, t) { s.Bf(e, t); }, this.Bf = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onRowClick && (s.onRowClick(n), n.preventDefault.value) || "function" == typeof s.onRowClicked && s.onRowClicked(n); }, this.Cf = function (e) { var t = {}; t.header = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderClick && (s.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof s.onTimeHeaderClicked && s.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, a = s.Df(e, t), i = s.Ef(a), r = s.Ie(a.start.x), o = s.Ie(a.end.x); return n.start = s.getDate(e, !0), n.end = s.getDate(e + s.nav.scroll.clientWidth, !0, !0), n.resources = i, r && (n.topLeft = { "start": r.start, "end": r.end, x: a.start.x, y: a.start.y, "resource": i[0] }), o && (n.bottomRight = { "start": o.start, "end": o.end, x: a.end.x, y: a.end.y, "resource": i[i.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return s.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Df = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.He(e), i = s.He(e + s.nav.scroll.clientWidth); a && (n.start.x = a.x), i && (n.end.x = i.x); var r = t, o = t + s.nav.scroll.clientHeight; n.start.y = s.Ff(r).i, n.end.y = s.Ff(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.zf(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Ef = function (e) {
4544
+ e || (e = this.Df(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop));
4539
4545
  var t = [];
4540
4546
  t.ignoreToJSON = !0;
4541
4547
  for (var n = e.start.y; n <= e.end.y; n++) {
@@ -4543,24 +4549,24 @@ var DayPilot = { Global: {} };
4543
4549
  a && t.push(a.id);
4544
4550
  }
4545
4551
  return t;
4546
- }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.sb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.he.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () {
4552
+ }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.rb = function () { s.nav.top.className !== s.L("_main") && (s.nav.top.className = s.L("_main"), s.nav.dh1.className = s.L("_divider_horizontal"), s.nav.dh2.className = s.L("_divider_horizontal"), s.divResScroll.className = s.L("_rowheader_scroll"), s.nav.divider.className = s.L("_divider") + " " + s.L("_splitter"), s.nav.scroll.className = s.L("_scrollable"), s.ge.className = s.L("_matrix") + " " + s.L("_grid_main")); }, this.ba = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () {
4547
4553
  var e = s;
4548
- if (e.Ma && !e.Q) {
4554
+ if (e.La && !e.Q) {
4549
4555
  e.Q = !0;
4550
- for (var n in e.Hf) {
4551
- var a = e.Hf[n];
4556
+ for (var n in e.Gf) {
4557
+ var a = e.Gf[n];
4552
4558
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
4553
4559
  }
4554
- e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.De = null, e.he.calendar = null, e.he = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.qc(e), c = null;
4560
+ e.Z(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.Ce = null, e.ge.calendar = null, e.ge = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, t.pc(e), c = null;
4555
4561
  }
4556
- }, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.If(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Gf = function (e) {
4562
+ }, this.disposed = function () { return s.Q; }, this.ca = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Hf(t), i = s.rowlist, o = s.eventHeight, l = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : a.top, d = a.left, c = a.width, u = document.createElement("div"); u.style.position = "absolute", u.style.width = c + "px", u.style.height = o + "px", u.style.left = d + "px", u.style.top = l + "px", u.style.overflow = "hidden"; var h = r(); return u.appendChild(h), u.className = this.L("_shadow"), h.className = this.L("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Ff = function (e) {
4557
4563
  for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
4558
4564
  var d = n[l];
4559
4565
  if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
4560
4566
  break;
4561
4567
  }
4562
4568
  return a;
4563
- }, this.Jf = function (e) {
4569
+ }, this.If = function (e) {
4564
4570
  if (e > this.rowlist.length - 1)
4565
4571
  throw new DayPilot.Exception("Row index too high");
4566
4572
  for (var t = 0, n = 0; n <= e; n++)
@@ -4571,7 +4577,7 @@ var DayPilot = { Global: {} };
4571
4577
  if (!s.events.list || "undefined" == typeof s.events.list.length)
4572
4578
  return null;
4573
4579
  if ("function" == typeof e)
4574
- return s.Kf(e);
4580
+ return s.Jf(e);
4575
4581
  for (var t = s.events.list.length, n = 0; n < t; n++)
4576
4582
  if (s.events.list[n].id === e)
4577
4583
  return new DayPilot.Event(s.events.list[n], s);
@@ -4592,17 +4598,17 @@ var DayPilot = { Global: {} };
4592
4598
  return !0;
4593
4599
  });
4594
4600
  throw new DayPilot.Exception("function or object argument expected");
4595
- }, this.Kf = function (e) {
4601
+ }, this.Jf = function (e) {
4596
4602
  for (var t = s.events.list.length, n = 0; n < t; n++) {
4597
4603
  var a = new DayPilot.Event(s.events.list[n], s);
4598
4604
  if (e(a))
4599
4605
  return a;
4600
4606
  }
4601
4607
  return null;
4602
- }, this.events.focus = function (e) { var t = s.Lf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) {
4603
- if (s.Lf(e)) {
4608
+ }, this.events.focus = function (e) { var t = s.Kf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) {
4609
+ if (s.Kf(e)) {
4604
4610
  var t = e.start(), n = s.getViewport();
4605
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Mf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
4611
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.sa(), s.Lf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
4606
4612
  var a = e.resource();
4607
4613
  s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
4608
4614
  }
@@ -4635,7 +4641,7 @@ var DayPilot = { Global: {} };
4635
4641
  var o = {};
4636
4642
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
4637
4643
  return;
4638
- s.events.list = o.data, s.Ma && s.update();
4644
+ s.events.list = o.data, s.La && s.update();
4639
4645
  }
4640
4646
  };
4641
4647
  if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
@@ -4644,51 +4650,51 @@ var DayPilot = { Global: {} };
4644
4650
  var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
4645
4651
  r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
4646
4652
  }
4647
- }, this.events.Nf = function (e) {
4653
+ }, this.events.Mf = function (e) {
4648
4654
  var t = [];
4649
4655
  return s.rowlist.forEach(function (n) {
4650
- s.Of(n.index);
4656
+ s.Nf(n.index);
4651
4657
  for (var a = 0; a < n.events.length; a++) {
4652
4658
  var i = n.events[a].data;
4653
- if (s.Pf(i, e)) {
4659
+ if (s.Of(i, e)) {
4654
4660
  t.push(n), n.events.splice(a, 1);
4655
4661
  break;
4656
4662
  }
4657
4663
  }
4658
4664
  }), t;
4659
- }, this.events.Qf = function (e) {
4665
+ }, this.events.Pf = function (e) {
4660
4666
  if (!e)
4661
4667
  return null;
4662
4668
  for (var t = s.rowlist, n = 0; n < t.length; n++) {
4663
4669
  var a = t[n];
4664
- s.Of(a.index);
4670
+ s.Nf(a.index);
4665
4671
  for (var i = 0; i < a.events.length; i++) {
4666
4672
  var r = a.events[i];
4667
- if (s.Pf(r.data, e))
4673
+ if (s.Of(r.data, e))
4668
4674
  return a.events[i];
4669
4675
  }
4670
4676
  }
4671
4677
  return null;
4672
- }, this.events.Rf = function (e) {
4673
- var t = [], n = s.Sf(), a = DayPilot.indexOf(s.events.list, e);
4674
- s.zb(a);
4678
+ }, this.events.Qf = function (e) {
4679
+ var t = [], n = s.Rf(), a = DayPilot.indexOf(s.events.list, e);
4680
+ s.yb(a);
4675
4681
  var i = s.rowlist, r = !1;
4676
4682
  return i.forEach(function (i) {
4677
4683
  if (!r) {
4678
- s.Of(i.index);
4679
- var o = s.Tf(e, i);
4680
- o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.yb.events[a]), t.push(i), n || (r = !0));
4684
+ s.Nf(i.index);
4685
+ var o = s.Sf(e, i);
4686
+ o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.xb.events[a]), t.push(i), n || (r = !0));
4681
4687
  }
4682
4688
  }), t;
4683
- }, this.Pf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) {
4689
+ }, this.Of = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) {
4684
4690
  if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
4685
4691
  var t = s.events.find(e.id);
4686
4692
  return s.events.remove(t), void s.events.add(e);
4687
4693
  }
4688
- if (s.events.list.find(function (t) { return s.Pf(t, e.data); })) {
4689
- s.ze.Uf && (s.ze.skip = !0);
4690
- var n = s.events.Nf(e.data);
4691
- e.commit(), n = n.concat(s.events.Rf(e.data)), s.events.Vf(n);
4694
+ if (s.events.list.find(function (t) { return s.Of(t, e.data); })) {
4695
+ s.ye.Tf && (s.ye.skip = !0);
4696
+ var n = s.events.Mf(e.data);
4697
+ e.commit(), n = n.concat(s.events.Qf(e.data)), s.events.Uf(n);
4692
4698
  }
4693
4699
  }, this.events.remove = function (e) {
4694
4700
  if (e) {
@@ -4696,16 +4702,16 @@ var DayPilot = { Global: {} };
4696
4702
  var t = s.events.find(e);
4697
4703
  return void s.events.remove(t);
4698
4704
  }
4699
- var n = s.Wf(e.data);
4700
- n && s.events.list.splice(n.index, 1), s.ze.Uf && (s.ze.skip = !0);
4701
- var a = s.events.Nf(e.data);
4702
- s.events.Vf(a);
4705
+ var n = s.Vf(e.data);
4706
+ n && s.events.list.splice(n.index, 1), s.ye.Tf && (s.ye.skip = !0);
4707
+ var a = s.events.Mf(e.data);
4708
+ s.events.Uf(a);
4703
4709
  }
4704
4710
  }, this.events.add = function (e, t, n) {
4705
4711
  n = n || {};
4706
4712
  var a = n.renderOnly;
4707
4713
  e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []);
4708
- var i = s.Wf(e);
4714
+ var i = s.Vf(e);
4709
4715
  if (a) {
4710
4716
  if (!i)
4711
4717
  throw new DayPilot.Exception("Unexpected: event not found in list");
@@ -4715,62 +4721,62 @@ var DayPilot = { Global: {} };
4715
4721
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
4716
4722
  i || s.events.list.push(e.data);
4717
4723
  }
4718
- if (s.Ma) {
4719
- s.ze.Uf && (s.ze.skip = !0);
4720
- var r = s.events.Rf(e.data);
4721
- s.events.Vf(r);
4724
+ if (s.La) {
4725
+ s.ye.Tf && (s.ye.skip = !0);
4726
+ var r = s.events.Qf(e.data);
4727
+ s.events.Uf(r);
4722
4728
  }
4723
- }, this.events.Xf = function (e) {
4729
+ }, this.events.Wf = function (e) {
4724
4730
  var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end);
4725
4731
  return !!s.events.list.find(function (e) {
4726
- if (s.Pf(t, e))
4732
+ if (s.Of(t, e))
4727
4733
  return !1;
4728
4734
  if (t.resource !== e.resource)
4729
4735
  return !1;
4730
4736
  var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end);
4731
4737
  return DayPilot.Util.overlaps(n, a, i, r);
4732
4738
  });
4733
- }, this.events.Yf = { "rows": [] }, this.events.Zf = null, this.events.We = function () { clearTimeout(s.events.Zf), s.events.Zf = null, s.events.Yf.rows = []; }, this.events.$f = 0, this.events.Vf = function (e) { var t = s.events.Yf.rows; e.forEach(function (e) { t.push(e); }), s.events.Yf.rows = DayPilot.ua(t); var n = s.events.uf; s.events.Zf || (s.events.Zf = setTimeout(n, s.events.$f)); }, this.events.uf = function () { clearTimeout(s.events.Zf), s.events.Zf = null; var e = s.events.Yf.rows; s.events.Yf.rows = [], s._f(e), s.ag(), s.Ma && (s.lf && s.Xe(), s.ma(), s.kf(e)); }, this.ze = {}, this.ze.enabled = !1, this.ze.skip = !1, this.ze.skipUpdate = function () { return s.ze.skip; }, this.ze.skipped = function () { s.ze.skip = !1; }, this.ze.bg = !1, this.ze.Uf = !1, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.dg = function (e) {
4739
+ }, this.events.Xf = { "rows": [] }, this.events.Yf = null, this.events.Ve = function () { clearTimeout(s.events.Yf), s.events.Yf = null, s.events.Xf.rows = []; }, this.events.Zf = 0, this.events.Uf = function (e) { var t = s.events.Xf.rows; e.forEach(function (e) { t.push(e); }), s.events.Xf.rows = DayPilot.ua(t); var n = s.events.tf; s.events.Yf || (s.events.Yf = setTimeout(n, s.events.Zf)); }, this.events.tf = function () { clearTimeout(s.events.Yf), s.events.Yf = null; var e = s.events.Xf.rows; s.events.Xf.rows = [], s.$f(e), s._f(), s.La && (s.kf && s.We(), s.ma(), s.jf(e)); }, this.ye = {}, this.ye.enabled = !1, this.ye.skip = !1, this.ye.skipUpdate = function () { return s.ye.skip; }, this.ye.skipped = function () { s.ye.skip = !1; }, this.ye.ag = !1, this.ye.Tf = !1, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.cg = function (e) {
4734
4740
  var t = s.startDate;
4735
4741
  if (e.ticks === t.ticks)
4736
4742
  return e;
4737
4743
  var n = t;
4738
4744
  if (e.ticks < t.ticks) {
4739
4745
  for (; n.ticks > e.ticks;)
4740
- n = n.addTime(60 * -s.Me() * 1e3);
4746
+ n = n.addTime(60 * -s.Le() * 1e3);
4741
4747
  return n;
4742
4748
  }
4743
- var a = this.Le(e);
4749
+ var a = this.Ke(e);
4744
4750
  if (a.current)
4745
4751
  return a.current.start;
4746
4752
  throw new DayPilot.Exception("getBoxStart(): time not found");
4747
- }, this.If = function (e) {
4748
- var n = this.Gf(s.coords.y);
4753
+ }, this.Hf = function (e) {
4754
+ var n = this.Ff(s.coords.y);
4749
4755
  if ("function" != typeof e.end)
4750
4756
  throw new DayPilot.Exception("e.end function is not defined");
4751
4757
  if (!e.end())
4752
4758
  throw new DayPilot.Exception("e.end() returns null");
4753
4759
  var a = DayPilot.DateUtil.diff(e.rawend(), e.start());
4754
4760
  a = DayPilot.Util.atLeast(a, 1);
4755
- var i = l.eg(a), r = 0, o = s.coords.x;
4756
- i && (r = e.start().getTime() - this.dg(e.start()).getTime());
4761
+ var i = l.dg(a), r = 0, o = s.coords.x;
4762
+ i && (r = e.start().getTime() - this.cg(e.start()).getTime());
4757
4763
  var d = 0;
4758
- if (t.fg)
4764
+ if (t.eg)
4759
4765
  if (i) {
4760
- var c = e.start(), u = this.dg(c);
4761
- d = t.fg.getTime() - u.getTime();
4762
- var h = 60 * s.Me() * 1e3;
4766
+ var c = e.start(), u = this.cg(c);
4767
+ d = t.eg.getTime() - u.getTime();
4768
+ var h = 60 * s.Le() * 1e3;
4763
4769
  d = Math.floor(d / h) * h;
4764
4770
  }
4765
4771
  else
4766
- d = t.fg.getTime() - e.start().getTime();
4772
+ d = t.eg.getTime() - e.start().getTime();
4767
4773
  var f = this.getDate(o, !0).addTime(-d);
4768
- t.gg && (f = e.start());
4774
+ t.fg && (f = e.start());
4769
4775
  var v = s.snapToGrid;
4770
- v && (f = this.dg(f)), f = f.addTime(r);
4776
+ v && (f = this.cg(f)), f = f.addTime(r);
4771
4777
  var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {};
4772
4778
  return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _;
4773
- }, this.Me = function () {
4779
+ }, this.Le = function () {
4774
4780
  switch (this.scale) {
4775
4781
  case "CellDuration": return this.cellDuration;
4776
4782
  case "Minute": return 1;
@@ -4779,77 +4785,77 @@ var DayPilot = { Global: {} };
4779
4785
  case "Week": return 10080;
4780
4786
  }
4781
4787
  throw new DayPilot.Exception("can't guess cellDuration value");
4782
- }, this.hg = function (e) { return e.end.ticks - e.start.ticks; }, this.ig = function () { var e = t.jg.width, n = t.jg.left, a = t.kg, i = t.gg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.jg.start = r, t.jg.end = o; }, this.lg = function () {
4783
- var e = s.coords, n = t.gg.dpBorder, a = t.gg.event, i = a.part.left;
4788
+ }, this.gg = function (e) { return e.end.ticks - e.start.ticks; }, this.hg = function () { var e = t.ig.width, n = t.ig.left, a = t.jg, i = t.fg.dpBorder, r = null, o = null, l = s.snapToGrid, d = !l; "left" === i ? (r = s.getDate(n, d), o = a.rawend()) : "right" === i && (r = a.start(), o = s.getDate(n + e, d, !0)), t.ig.start = r, t.ig.end = o; }, this.kg = function () {
4789
+ var e = s.coords, n = t.fg.dpBorder, a = t.fg.event, i = a.part.left;
4784
4790
  "right" === n && (i += a.part.width);
4785
- var r, o, l = t.gg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid;
4791
+ var r, o, l = t.fg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid;
4786
4792
  if ("right" === n) {
4787
4793
  if (r = c, f) {
4788
- var v = s.Ie(d + c + h).cell, p = s.Ie(c).cell, m = p.left + p.width - c;
4794
+ var v = s.He(d + c + h).cell, p = s.He(c).cell, m = p.left + p.width - c;
4789
4795
  o = v.left + v.width - c, o < m && (o = m);
4790
4796
  }
4791
4797
  else
4792
4798
  o = d + h;
4793
- var g = s.Ae();
4794
- c + o > g && (o = g - c), t.jg.left = c, t.jg.width = o, t.jg.style.left = c + "px", t.jg.style.width = o + "px";
4799
+ var g = s.ze();
4800
+ c + o > g && (o = g - c), t.ig.left = c, t.ig.width = o, t.ig.style.left = c + "px", t.ig.style.width = o + "px";
4795
4801
  }
4796
4802
  else {
4797
4803
  if ("left" !== n)
4798
4804
  throw new DayPilot.Exception("Invalid dpBorder.");
4799
4805
  f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
4800
4806
  var y = c + d, b = l;
4801
- f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.jg.left = r, t.jg.width = o, t.jg.style.left = r + "px", t.jg.style.width = o + "px";
4807
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.ig.left = r, t.ig.width = o, t.ig.style.left = r + "px", t.ig.style.width = o + "px";
4802
4808
  }
4803
- s.ig();
4804
- }, this.mg = function () {
4805
- if (s.coords && t.ng) {
4806
- var e = t.og, n = this.If(t.ng);
4809
+ s.hg();
4810
+ }, this.lg = function () {
4811
+ if (s.coords && t.mg) {
4812
+ var e = t.ng, n = this.Hf(t.mg);
4807
4813
  e.row = n.row, e.style.height = DayPilot.Util.atLeast(n.row.height, 0) + "px", e.style.top = n.top + "px", e.style.left = n.left + "px", e.style.width = n.width + "px", e.start = n.start, e.end = n.end;
4808
4814
  }
4809
- }, this.pg = function () { return this.rowHeaderWidth; }, this.qg = function () { return this.rg(s.progressiveRowRenderingPreload); }, this.rg = function (e) {
4815
+ }, this.og = function () { return this.rowHeaderWidth; }, this.pg = function () { return this.qg(s.progressiveRowRenderingPreload); }, this.qg = function (e) {
4810
4816
  e = e || 0;
4811
4817
  var t = 0, n = s.rowlist.length;
4812
4818
  if (s.progressiveRowRendering) {
4813
- var a = s.le();
4819
+ var a = s.ke();
4814
4820
  t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
4815
4821
  }
4816
4822
  return { "start": t, "end": n };
4817
- }, this.Ye = function () {
4823
+ }, this.Xe = function () {
4818
4824
  function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); }
4819
- this.sg = !0;
4820
- var t = this.pg();
4825
+ this.rg = !0;
4826
+ var t = this.og();
4821
4827
  e();
4822
4828
  var a = this.divHeader;
4823
- if (a.style.width = t + "px", a.style.height = s.ae + "px", s.divHeader = a, s.progressiveRowRendering)
4829
+ if (a.style.width = t + "px", a.style.height = s._d + "px", s.divHeader = a, s.progressiveRowRendering)
4824
4830
  n();
4825
4831
  else
4826
4832
  for (var i = this.rowlist.length, r = 0; r < i; r++)
4827
- s.tg(r);
4828
- s.ug(), this.divResScroll.appendChild(a);
4829
- }, this.vg = function () {
4830
- if (s.progressiveRowRendering)
4831
- for (var e = this.qg(), t = 0; t < s.rowlist.length; t++)
4832
- e.start <= t && t < e.end ? s.tg(t) : s.wg(t);
4833
+ s.sg(r);
4834
+ s.tg(), this.divResScroll.appendChild(a);
4833
4835
  }, this.ug = function () {
4834
- if (!s.R.xg()) {
4836
+ if (s.progressiveRowRendering)
4837
+ for (var e = this.pg(), t = 0; t < s.rowlist.length; t++)
4838
+ e.start <= t && t < e.end ? s.sg(t) : s.vg(t);
4839
+ }, this.tg = function () {
4840
+ if (!s.R.wg()) {
4835
4841
  var e = s.divHeader, t = r();
4836
4842
  t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
4837
4843
  var n = r();
4838
4844
  n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
4839
- var a = this.pg();
4840
- t.style.width = a + "px", t.style.top = this.ae + "px";
4845
+ var a = this.og();
4846
+ t.style.width = a + "px", t.style.top = this._d + "px";
4841
4847
  }
4842
- }, this.wg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.if = function (e) { this.wg(e), this.tg(e); }, this.tg = function (e) {
4848
+ }, this.vg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.hf = function (e) { this.vg(e), this.sg(e); }, this.sg = function (e) {
4843
4849
  var t = s.rowlist, n = s.divHeader;
4844
4850
  if (n && !n.rows[e]) {
4845
- var a = this.pg(), i = t[e];
4851
+ var a = this.og(), i = t[e];
4846
4852
  if (i) {
4847
- var o = this.yg(i), l = r();
4853
+ var o = this.xg(i), l = r();
4848
4854
  l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
4849
4855
  var d = o.row, c = this.rowHeaderWidth;
4850
4856
  l.style.width = c + "px", l.style.border = "0px none";
4851
4857
  var u = d.toolTip || d.toolTip;
4852
- u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.zg;
4858
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.yg;
4853
4859
  var h = r();
4854
4860
  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);
4855
4861
  var f = d.backColor || d.backColor;
@@ -4869,12 +4875,12 @@ var DayPilot = { Global: {} };
4869
4875
  case "center": m.style.justifyContent = "center";
4870
4876
  }
4871
4877
  h.appendChild(m);
4872
- var g = d.areas || [], y = s.Ag(i);
4878
+ var g = d.areas || [], y = s.zg(i);
4873
4879
  DayPilot.Areas.attach(h, y, { areas: g });
4874
4880
  var b = r();
4875
4881
  b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.L("_resourcedivider"), h.appendChild(b);
4876
4882
  var w = r(), x = r();
4877
- x.innerHTML = s._a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
4883
+ x.innerHTML = s.$a(d.text, d.html), x.className = s.L("_rowheader_inner_text"), l.textDiv = x, l.cellDiv = h, w.appendChild(x), m.appendChild(w);
4878
4884
  var _ = d.verticalAlignment || d.verticalAlignment;
4879
4885
  if (_)
4880
4886
  switch (m.style.display = "flex", _) {
@@ -4889,25 +4895,25 @@ var DayPilot = { Global: {} };
4889
4895
  l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
4890
4896
  }
4891
4897
  }
4892
- }, this.zg = function (e) { var t = this.row, n = s.Ag(t, this.index); s.Bf(n, e); }, this.Bg = function () {
4898
+ }, this.yg = function (e) { var t = this.row, n = s.zg(t, this.index); s.Af(n, e); }, this.Ag = function () {
4893
4899
  if ("Disabled" !== s.timeHeaderClickHandling) {
4894
4900
  var e = {};
4895
- e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Me())), s.Df(e);
4901
+ e.start = this.cell.start, e.level = this.cell.level, e.end = this.cell.end, e.end || (e.end = new DayPilot.Date(e.start).addMinutes(s.Le())), s.Cf(e);
4896
4902
  }
4897
- }, this.Cg = function (e) {
4903
+ }, this.Bg = function (e) {
4898
4904
  if ("Disabled" !== s.timeHeaderRightClickHandling) {
4899
4905
  e.cancelBubble = !0, e.preventDefault();
4900
4906
  var t = {};
4901
- t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Me()));
4907
+ t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(s.Le()));
4902
4908
  var n = {};
4903
4909
  n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeHeaderRightClick && (s.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof s.onTimeHeaderRightClicked && s.onTimeHeaderRightClicked(n);
4904
4910
  }
4905
- }, this.Ag = function (e) { return new DayPilot.Row(e, s); }, this.Of = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Dg = {}, this.ha = function (e) {
4911
+ }, this.zg = function (e) { return new DayPilot.Row(e, s); }, this.Nf = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Cg = {}, this.ha = function (e) {
4906
4912
  if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
4907
4913
  throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");
4908
4914
  c.prepareRows(!0);
4909
4915
  var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender;
4910
- s.Dg = {};
4916
+ s.Cg = {};
4911
4917
  for (var i = 0; i < n.length; i++) {
4912
4918
  var r = n[i];
4913
4919
  if (r) {
@@ -4920,26 +4926,26 @@ var DayPilot = { Global: {} };
4920
4926
  if (!("string" == typeof r.id || "number" == typeof r.id))
4921
4927
  throw new DayPilot.Exception("All events must have an id property (string or number)");
4922
4928
  var o = "_" + r.id;
4923
- if (s.Dg[o])
4929
+ if (s.Cg[o])
4924
4930
  throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
4925
- s.Dg[o] = !0, a && this.zb(i), t = s.Eg(r.resource);
4931
+ s.Cg[o] = !0, a && this.yb(i), t = s.Dg(r.resource);
4926
4932
  for (var l = 0; t && l < t.length; l++) {
4927
- var d = t[l], u = this.Tf(r, d);
4928
- u && a && (u.cache = this.yb.events[i]);
4933
+ var d = t[l], u = this.Sf(r, d);
4934
+ u && a && (u.cache = this.xb.events[i]);
4929
4935
  }
4930
4936
  }
4931
4937
  }
4932
- s.rowlist.forEach(function (e) { s.Fg(e); }), s.ag();
4938
+ s.rowlist.forEach(function (e) { s.Eg(e); }), s._f();
4933
4939
  }, c.rowcache = {}, c.prepareRows = function (e) {
4934
4940
  c.rowcache = {};
4935
4941
  for (var t = s.rowlist, n = 0; n < t.length; n++) {
4936
4942
  var a = t[n];
4937
- if (e && a.resetEvents(), s.Of(a.index), a.id) {
4943
+ if (e && a.resetEvents(), s.Nf(a.index), a.id) {
4938
4944
  var i = typeof a.id + "_" + a.id;
4939
4945
  c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
4940
4946
  }
4941
4947
  }
4942
- }, this.Eg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Sf = function () {
4948
+ }, this.Dg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.Rf = function () {
4943
4949
  for (var e = {}, t = 0; t < s.rowlist.length; t++) {
4944
4950
  var n = s.rowlist[t], a = n.id;
4945
4951
  if (e[a])
@@ -4947,8 +4953,8 @@ var DayPilot = { Global: {} };
4947
4953
  e[a] = !0;
4948
4954
  }
4949
4955
  return !1;
4950
- }, this.zb = function (e) {
4951
- var t = this.yb.events, n = this.events.list[e], a = {};
4956
+ }, this.yb = function (e) {
4957
+ var t = this.xb.events, n = this.events.list[e], a = {};
4952
4958
  n instanceof DayPilot.Event && (n = n.data);
4953
4959
  for (var i in n)
4954
4960
  a[i] = n[i];
@@ -4957,22 +4963,22 @@ var DayPilot = { Global: {} };
4957
4963
  r.e = a, r.data = a, this.onBeforeEventRender(r);
4958
4964
  }
4959
4965
  t[e] = a;
4960
- }, this.Fg = function (e) {
4961
- e.lines = [], e.sections = null, e.events.sort(this.Ab);
4966
+ }, this.Eg = function (e) {
4967
+ e.lines = [], e.sections = null, e.events.sort(this.zb);
4962
4968
  for (var t = 0; t < e.events.length; t++) {
4963
4969
  var n = e.events[t];
4964
4970
  e.putIntoLine(n);
4965
4971
  }
4966
- }, this._f = function (e) { e = DayPilot.ua(e), e = s.jf(e), e.forEach(function (e) { s.Fg(e); }), e.forEach(function (e) { s.Gg(e); }); }, this.Tf = function (e, t) {
4972
+ }, this.$f = function (e) { e = DayPilot.ua(e), e = s.if(e), e.forEach(function (e) { s.Eg(e); }), e.forEach(function (e) { s.Fg(e); }); }, this.Sf = function (e, t) {
4967
4973
  var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end);
4968
- a = s.qf(a);
4974
+ a = s.pf(a);
4969
4975
  var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks;
4970
4976
  if (r < i)
4971
4977
  return null;
4972
4978
  var c = null;
4973
4979
  if ("function" == typeof s.onBeforeEventRender) {
4974
4980
  var u = DayPilot.indexOf(s.events.list, e);
4975
- c = s.yb.events[u];
4981
+ c = s.xb.events[u];
4976
4982
  }
4977
4983
  if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
4978
4984
  return null;
@@ -4981,7 +4987,7 @@ var DayPilot = { Global: {} };
4981
4987
  var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end);
4982
4988
  h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1)));
4983
4989
  var p = f.left, m = v.left;
4984
- if (l.eg(r - i)) {
4990
+ if (l.dg(r - i)) {
4985
4991
  var g = f.boxLeft, y = v.boxRight;
4986
4992
  h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
4987
4993
  }
@@ -4989,29 +4995,29 @@ var DayPilot = { Global: {} };
4989
4995
  h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1);
4990
4996
  var b = s.eventMinWidth;
4991
4997
  return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h;
4992
- }, this.Ab = function (e, t) {
4998
+ }, this.zb = function (e, t) {
4993
4999
  if (!(e && t && e.start && t.start))
4994
5000
  return 0;
4995
5001
  var n = e.start().ticks - t.start().ticks;
4996
5002
  return 0 !== n ? n : t.end().ticks - e.end().ticks;
4997
5003
  }, this.rows = {}, this.rows.all = function () {
4998
5004
  for (var e = [], t = 0; t < s.rowlist.length; t++) {
4999
- var n = s.Ag(s.rowlist[t]);
5005
+ var n = s.zg(s.rowlist[t]);
5000
5006
  e.push(n);
5001
5007
  }
5002
5008
  return e;
5003
5009
  }, this.rows.each = function (e) { s.rows.all().forEach(e); }, this.rows.forEach = function (e) { s.rows.all().forEach(e); }, this.rows.find = function (e, t) {
5004
5010
  if ("string" == typeof e || "number" == typeof e || !e && t) {
5005
- var n = s.Eg(e);
5011
+ var n = s.Dg(e);
5006
5012
  e || (n = s.rowlist);
5007
5013
  var a = null;
5008
5014
  return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), a = n.find(function (e) { return t === e.start; })) : a = n[0], a ? new DayPilot.Row(a, s) : null;
5009
5015
  }
5010
5016
  if ("function" != typeof e)
5011
5017
  throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected");
5012
- var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Ag(t)); });
5018
+ var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.zg(t)); });
5013
5019
  if (r)
5014
- return s.Ag(r);
5020
+ return s.zg(r);
5015
5021
  }, this.rows.load = function (e, t, n) {
5016
5022
  if (!e)
5017
5023
  throw new DayPilot.Exception("rows.load(): 'url' parameter required");
@@ -5028,7 +5034,7 @@ var DayPilot = { Global: {} };
5028
5034
  var o = {};
5029
5035
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = n, "function" == typeof t && t(o), o.preventDefault.value)
5030
5036
  return;
5031
- s.resources = o.data, s.Ma && s.update();
5037
+ s.resources = o.data, s.La && s.update();
5032
5038
  }
5033
5039
  };
5034
5040
  s.rowsLoadMethod && "POST" === s.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": i, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": i, "error": a });
@@ -5041,7 +5047,7 @@ var DayPilot = { Global: {} };
5041
5047
  }
5042
5048
  var n = e.$.row.resource, a = DayPilot.indexOf(s.resources, n);
5043
5049
  s.resources.splice(a, 1), s.update();
5044
- }, this.rows.add = function (e) { s.resources.push(e), s.rb(); }, this.rows.update = function (e) {
5050
+ }, this.rows.add = function (e) { s.resources.push(e), s.qb(); }, this.rows.update = function (e) {
5045
5051
  if (!(e instanceof DayPilot.Row || "object" == typeof e))
5046
5052
  throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object.");
5047
5053
  if (!(e instanceof DayPilot.Row)) {
@@ -5050,39 +5056,39 @@ var DayPilot = { Global: {} };
5050
5056
  return;
5051
5057
  e.data = t;
5052
5058
  }
5053
- var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Hg(r), l = s.Ig(o);
5054
- l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Of(l.index), s.Jg(l), s.Fg(l), s.if(l.index), s.af(), s.df();
5055
- }, this.Jg = function (e) {
5059
+ var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Gg(r), l = s.Hg(o);
5060
+ l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.Nf(l.index), s.Ig(l), s.Eg(l), s.hf(l.index), s._e(), s.cf();
5061
+ }, this.Ig = function (e) {
5056
5062
  for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
5057
5063
  var r = t[i];
5058
5064
  if (r) {
5059
5065
  if (r instanceof DayPilot.Event)
5060
5066
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
5061
5067
  if (r.resource === e.id) {
5062
- a && this.zb(i);
5063
- var o = this.Tf(r, e);
5064
- o && a && (o.cache = this.yb.events[i]);
5068
+ a && this.yb(i);
5069
+ var o = this.Sf(r, e);
5070
+ o && a && (o.cache = this.xb.events[i]);
5065
5071
  }
5066
5072
  }
5067
5073
  }
5068
- }, this.Ve = function () {
5074
+ }, this.Ue = function () {
5069
5075
  var e = this.resources;
5070
5076
  if ({}.i = 0, null != e && !DayPilot.isArray(e))
5071
5077
  throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object");
5072
- e = e || [], s.rowlist = [], this.Kg(e);
5073
- }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Mf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Mf(); }, this.Ig = function (e) {
5078
+ e = e || [], s.rowlist = [], this.Jg(e);
5079
+ }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Lf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Lf(); }, this.Hg = function (e) {
5074
5080
  var t = {};
5075
- return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s._a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.ye, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () {
5081
+ return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.$a(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = s.eventHeight, t.level = 0, t.resource = e.xe, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () {
5076
5082
  var e = t;
5077
5083
  e.events = [], e.events.forRange = function (t, n) {
5078
5084
  t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days);
5079
5085
  for (var a = [], i = 0; i < e.events.length; i++) {
5080
- var r = e.events[i], o = s.qf(r.end());
5086
+ var r = e.events[i], o = s.pf(r.end());
5081
5087
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
5082
5088
  }
5083
5089
  return a;
5084
5090
  };
5085
- }, t.Lg = function () {
5091
+ }, t.Kg = function () {
5086
5092
  var e = [];
5087
5093
  return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) {
5088
5094
  for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
@@ -5100,29 +5106,29 @@ var DayPilot = { Global: {} };
5100
5106
  if (this.lines[a].isFree(e, n))
5101
5107
  return a;
5102
5108
  }
5103
- var i = t.Lg();
5109
+ var i = t.Kg();
5104
5110
  return this.lines.push(i), this.lines.length - 1;
5105
5111
  }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t;
5106
- }, this.Kg = function (e) {
5112
+ }, this.Jg = function (e) {
5107
5113
  if (e)
5108
5114
  for (var t = s.rowlist, n = 0; n < e.length; n++)
5109
5115
  if (e[n]) {
5110
5116
  var a = {};
5111
5117
  a.index = n;
5112
- var i = this.Hg(e[n], a), r = s.Ig(i, parent);
5118
+ var i = this.Gg(e[n], a), r = s.Hg(i, parent);
5113
5119
  r.index = n, t.push(r);
5114
5120
  }
5115
- }, this.yg = function (e) { var t = {}; return t.row = this.Ag(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Hg = function (e, t) {
5116
- var n = { get $data() { return this.ye; } };
5121
+ }, this.xg = function (e) { var t = {}; return t.row = this.zg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Gg = function (e, t) {
5122
+ var n = { get $data() { return this.xe; } };
5117
5123
  for (var a in t)
5118
5124
  n[a] = t[a];
5119
5125
  for (var i in e)
5120
5126
  n[i] = e[i];
5121
- return n.html = s._a(e.name, e.html), n.ye = e, n;
5122
- }, this.Mg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Ng, this.nav.top.ontouchmove = d.Og, this.nav.top.ontouchend = d.Pg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.fb()), t.appendChild(n), t.appendChild(this.Qg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Ce() + this.Ya() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Ce() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Rg()), i.appendChild(s.Sg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Ce(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Tg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Ug = function () {
5127
+ return n.html = s.$a(e.name, e.html), n.xe = e, n;
5128
+ }, this.Lg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = d.Mg, this.nav.top.ontouchmove = d.Ng, this.nav.top.ontouchend = d.Og; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.eb()), t.appendChild(n), t.appendChild(this.Pg()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Be() + this.Xa() + "px", a.className = this.L("_splitter"), this.nav.divider = a; var i = r(); i.style.marginLeft = e + 1 + "px", i.style.position = "relative", this.nav.right = i; var o = r(); o.style.position = "absolute", o.style.top = this.Be() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.Qg()), i.appendChild(s.Rg()), i.appendChild(o); var l = r(); l.style.clear = "left"; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal"), this.nav.dividerTop = c; var u = r(); u.style.height = "1px", u.style.position = "absolute", u.style.left = "0px", u.style.right = "0px", u.style.display = "none", u.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = u, this.nav.top.appendChild(t), this.nav.top.appendChild(a), this.nav.top.appendChild(i), this.nav.top.appendChild(l), this.nav.top.appendChild(c), this.nav.top.appendChild(u); }, this.ia = function () { var e = this.Be(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Sg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Tg = function () {
5123
5129
  var e = this.rowHeaderWidth, t = this.divHeader;
5124
5130
  t.style.width = e + "px";
5125
- for (var n = s.qg(), a = n.start; a < n.end; a++) {
5131
+ for (var n = s.pg(), a = n.start; a < n.end; a++) {
5126
5132
  var i = t.rows[a];
5127
5133
  if (i) {
5128
5134
  var r = s.rowHeaderWidth;
@@ -5131,42 +5137,42 @@ var DayPilot = { Global: {} };
5131
5137
  }
5132
5138
  }
5133
5139
  s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px");
5134
- }, this._e = function () { this.Tg(), this.Ug(); }, this.fb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ce() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Ce = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Vg = null, this.Qg = function () {
5140
+ }, this.$e = function () { this.Sg(), this.Tg(); }, this.eb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Be() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Be = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.Ug = null, this.Pg = function () {
5135
5141
  var e = r();
5136
- e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Ya() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll");
5137
- var n = s.R.xg();
5138
- n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Wg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () {
5139
- if (s.Vg && clearTimeout(s.Vg), n) {
5140
- var a = function () { var t = s.Xg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
5141
- DayPilot.browser.ios ? t.Wg && (s.Vg = setTimeout(a, 10)) : s.Vg = setTimeout(a, 10);
5142
+ e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Xa() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.L("_rowheader_scroll");
5143
+ var n = s.R.wg();
5144
+ n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.Vg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () {
5145
+ if (s.Ug && clearTimeout(s.Ug), n) {
5146
+ var a = function () { var t = s.Wg() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
5147
+ DayPilot.browser.ios ? t.Vg && (s.Ug = setTimeout(a, 10)) : s.Ug = setTimeout(a, 10);
5142
5148
  }
5143
5149
  else
5144
- s.Vg = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500);
5150
+ s.Ug = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500);
5145
5151
  }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows");
5146
5152
  var a = r();
5147
- return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.De = e, e;
5148
- }, this.Yg = null, this.Zg = null, this.$g = function () {
5149
- var e = function () { s._g(), s.ef(); }, t = function () {
5153
+ return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Ce = e, e;
5154
+ }, this.Xg = null, this.Yg = null, this.Zg = function () {
5155
+ var e = function () { s.$g(), s.df(); }, t = function () {
5150
5156
  var t = s.nav.top;
5151
5157
  if (t) {
5152
- if (!s.Yg)
5153
- return s.Yg = {}, void (s.Yg.width = t.offsetWidth);
5154
- s.Yg.width !== t.offsetWidth && (s.Yg.width = t.offsetWidth, e());
5158
+ if (!s.Xg)
5159
+ return s.Xg = {}, void (s.Xg.width = t.offsetWidth);
5160
+ s.Xg.width !== t.offsetWidth && (s.Xg.width = t.offsetWidth, e());
5155
5161
  }
5156
5162
  };
5157
- if (!s.Zg) {
5163
+ if (!s.Yg) {
5158
5164
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
5159
- n.observe(s.nav.top), s.Zg = n;
5165
+ n.observe(s.nav.top), s.Yg = n;
5160
5166
  }
5161
- }, this._g = function () { s.Q || (s.ma(), s.ah(), s.yb.drawArea = null); }, this.ah = function () { var e = s.yf; s.clearSelection(), s.yf = e, s.zf(e, { "justDraw": !0 }); }, this.Rg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ce() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ae() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Ya = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Xg(), "Max" === t && e > s.height ? s.height : e); }, this.Xg = function () { var e; return this.ae !== -1 ? (e = this.ae, this.ae > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Sg = function () {
5167
+ }, this.$g = function () { s.Q || (s.ma(), s._g(), s.xb.drawArea = null); }, this._g = function () { var e = s.xf; s.clearSelection(), s.xf = e, s.yf(e, { "justDraw": !0 }); }, this.Qg = function () { var e = r(); e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Be() + "px", e.style.overflow = "hidden", e.className = s.L("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.ze() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.Xa = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.Wg(), "Max" === t && e > s.height ? s.height : e); }, this.Wg = function () { var e; return this._d !== -1 ? (e = this._d, this._d > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.Rg = function () {
5162
5168
  var e = r();
5163
- e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Ya() + "px", e.style.top = this.Ce() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.he = r();
5164
- var t = this.he;
5169
+ e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Xa() + "px", e.style.top = this.Be() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.ge = r();
5170
+ var t = this.ge;
5165
5171
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
5166
- var n = this.Ae();
5167
- return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh,
5168
- t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
5169
- }, this.qb = function () { t.fh || (t.fh = !0, DayPilot.re(document, "mouseup", t._d), DayPilot.reNonPassive(document, "touchmove", t.gh), DayPilot.re(document, "touchend", t.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, s.jh = this.nav.scroll.scrollLeft, s.kh = this.nav.scroll.scrollTop, this.divNorth && (s.lh = this.divNorth.clientWidth); }, this.mh = {}, this.mh.step = 300, this.mh.delay = 10, this.mh.mode = "display", this.mh.layers = !1, this.Gg = function (e) {
5172
+ var n = this.ze();
5173
+ 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",
5174
+ 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;
5175
+ }, this.pb = function () { t.eh || (t.eh = !0, DayPilot.re(document, "mouseup", t.$d), DayPilot.reNonPassive(document, "touchmove", t.fh), DayPilot.re(document, "touchend", t.gh)); }, this.hh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.df, s.ih = this.nav.scroll.scrollLeft, s.jh = this.nav.scroll.scrollTop, this.divNorth && (s.kh = this.divNorth.clientWidth); }, this.lh = {}, this.lh.step = 300, this.lh.delay = 10, this.lh.mode = "display", this.lh.layers = !1, this.Fg = function (e) {
5170
5176
  for (var t = 0, n = 0; n < e.lines.length; n++) {
5171
5177
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
5172
5178
  var r = a[i];
@@ -5174,52 +5180,52 @@ var DayPilot = { Global: {} };
5174
5180
  }
5175
5181
  t += s.eventHeight;
5176
5182
  }
5177
- }, this.Ue = null, this.na = function (e) {
5183
+ }, this.Te = null, this.na = function (e) {
5178
5184
  if (!s.Q) {
5179
- var t = this.mh.step;
5180
- "display" === this.mh.mode ? this.divEvents.style.display = "none" : "visibility" === this.mh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
5181
- var n = "Progressive" === this.dynamicEventRendering, a = this.le(), i = a.pixels.top, r = a.pixels.bottom;
5182
- s.rowlist.filter(function (e) { var t = e.top - s.dynamicEventRenderingMargin, a = t + e.height + 2 * s.dynamicEventRenderingMargin; return !n || !(r <= t || i >= a); }).forEach(function (n) {
5183
- s.Gg(n);
5185
+ var t = this.lh.step;
5186
+ "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");
5187
+ var n = "Progressive" === this.dynamicEventRendering, a = this.ke(), i = a.pixels.top, r = a.pixels.bottom;
5188
+ s.rowlist.filter(function (e) { var t = e.top - l.mh(), a = t + e.height + 2 * l.mh(); return !n || !(a <= i || t >= r); }).forEach(function (n) {
5189
+ s.Fg(n);
5184
5190
  for (var a = 0; a < n.lines.length; a++)
5185
5191
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
5186
- var o = i[r], l = s.Va(o);
5192
+ var o = i[r], l = s.Ua(o);
5187
5193
  if (e && l && (t--, t <= 0))
5188
- return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Ue = setTimeout(function () { s.na(e); }, s.mh.delay));
5194
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.Te = setTimeout(function () { s.na(e); }, s.lh.delay));
5189
5195
  }
5190
- }), this.divEvents.style.display = "", this.pe();
5196
+ }), this.divEvents.style.display = "", this.oe();
5191
5197
  }
5192
- }, this.nf = function (e) {
5198
+ }, this.mf = function (e) {
5193
5199
  var t = s.rowlist[e];
5194
- this.Gg(t);
5200
+ this.Fg(t);
5195
5201
  for (var n = 0; n < t.lines.length; n++)
5196
5202
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
5197
5203
  var r = a[i];
5198
- this.Va(r);
5204
+ this.Ua(r);
5199
5205
  }
5200
5206
  }, this.Z = function () {
5201
5207
  if (this.elements.events)
5202
5208
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
5203
5209
  var n = this.elements.events[t];
5204
- this.Pa(n);
5210
+ this.Oa(n);
5205
5211
  }
5206
5212
  this.elements.events = [];
5207
- }, this.mf = function (e) {
5213
+ }, this.lf = function (e) {
5208
5214
  if (this.elements.events) {
5209
5215
  for (var t = this.elements.events.length, n = [], a = 0; a < t; a++) {
5210
5216
  var i = this.elements.events[a];
5211
- i.event.part.dayIndex === e && (this.Pa(i), n.push(a));
5217
+ i.event.part.dayIndex === e && (this.Oa(i), n.push(a));
5212
5218
  }
5213
5219
  for (var a = n.length - 1; a >= 0; a--)
5214
5220
  this.elements.events.splice(n[a], 1);
5215
5221
  }
5216
- }, this.Pa = function (e) {
5222
+ }, this.Oa = function (e) {
5217
5223
  var t = e.domArgs;
5218
5224
  if (e.domArgs = null, t && "function" == typeof s.onBeforeEventDomRemove && s.onBeforeEventDomRemove(t), t && "function" == typeof s.onBeforeEventDomAdd) {
5219
- var n = t && t.Qa;
5225
+ var n = t && t.Pa;
5220
5226
  if (n) {
5221
- var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
5222
- a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
5227
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
5228
+ a ? s.bg.nh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5223
5229
  }
5224
5230
  }
5225
5231
  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);
@@ -5230,41 +5236,41 @@ var DayPilot = { Global: {} };
5230
5236
  this.divEvents.style.display = "none";
5231
5237
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
5232
5238
  var i = this.elements.events[a];
5233
- this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Pa(i) : t.unshift(i);
5239
+ this.ph(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Oa(i) : t.unshift(i);
5234
5240
  }
5235
5241
  this.elements.events = t, this.divEvents.style.display = "";
5236
5242
  }
5237
5243
  }
5238
5244
  }, this.qh = function (e) {
5239
- for (var t = this.le(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
5245
+ for (var t = this.ke(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
5240
5246
  var i = this.elements.cells[a];
5241
- t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.gb(i));
5247
+ t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.fb(i));
5242
5248
  }
5243
- }, this.gb = function (e) {
5249
+ }, this.fb = function (e) {
5244
5250
  if (e && e.coords) {
5245
5251
  var t = e.coords.x, n = e.coords.y;
5246
5252
  !function () {
5247
5253
  var t = e.domArgs;
5248
5254
  if (e.domArgs = null, t && "function" == typeof s.onBeforeCellDomRemove && s.onBeforeCellDomRemove(t), t && "function" == typeof s.onBeforeCellDomAdd) {
5249
- var n = t && t.Qa;
5255
+ var n = t && t.Pa;
5250
5256
  if (n) {
5251
- var a = s.cg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Sa.Ra && DayPilot.Util.isVueVNode(t.element);
5252
- a ? s.cg.nh(n) : i && (s.Sa.Ta = !0, s.Sa.Ua(n), s.Sa.Ta = !1);
5257
+ var a = s.bg.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ra.Qa && DayPilot.Util.isVueVNode(t.element);
5258
+ a ? s.bg.nh(n) : i && (s.Ra.Sa = !0, s.Ra.Ta(n), s.Ra.Sa = !1);
5253
5259
  }
5254
5260
  }
5255
- }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.yb.cells[t + "_" + n] = null;
5261
+ }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.xb.cells[t + "_" + n] = null;
5256
5262
  }
5257
5263
  }, this.rh = function () {
5258
5264
  var e = "Progressive" === this.dynamicEventRendering;
5259
5265
  if (!this.nav.scroll)
5260
5266
  return !1;
5261
- for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, a = 0; a < this.rowlist.length; a++) {
5267
+ for (var t = this.nav.scroll.scrollTop - l.mh(), n = t + this.nav.scroll.clientHeight + 2 * l.mh(), a = 0; a < this.rowlist.length; a++) {
5262
5268
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
5263
- if (!e || !(n <= r || t >= o))
5269
+ if (!e || !(r >= n || o <= t))
5264
5270
  for (var s = 0; s < i.lines.length; s++)
5265
- for (var l = i.lines[s], d = 0; d < l.length; d++) {
5266
- var c = l[d];
5267
- if (this.uh(c))
5271
+ for (var d = i.lines[s], c = 0; c < d.length; c++) {
5272
+ var u = d[c];
5273
+ if (this.uh(u))
5268
5274
  return !0;
5269
5275
  }
5270
5276
  }
@@ -5272,76 +5278,76 @@ var DayPilot = { Global: {} };
5272
5278
  }, this.uh = function (e) {
5273
5279
  if (e.rendered)
5274
5280
  return !1;
5275
- var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, a = n + this.nav.scroll.clientWidth, i = e.part.left, r = e.part.left + e.part.width;
5281
+ var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.vh(), a = n + this.nav.scroll.clientWidth + 2 * l.vh(), i = e.part.left, r = e.part.left + e.part.width;
5276
5282
  return !t || !(a <= i || n >= r);
5277
5283
  }, this.ph = function (e) {
5278
5284
  if (!e.rendered)
5279
5285
  return !0;
5280
- var t = this.le(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight;
5286
+ var t = this.ke(), n = t.pixels.top, a = t.pixels.bottom, i = t.pixels.left - this.dynamicEventRenderingMargin, r = t.pixels.right + this.dynamicEventRenderingMargin, o = e.part.left, l = e.part.right, d = e.part.top, c = e.part.top + s.eventHeight;
5281
5287
  return r <= o || i >= l || (a <= d || n >= c);
5282
- }, this.Va = function (e, t) {
5288
+ }, this.Ua = function (e, t) {
5283
5289
  t = t || {};
5284
5290
  var n = t.forced;
5285
5291
  if (e.rendered)
5286
5292
  return !1;
5287
- var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, l = s.rowlist, c = l[i], u = c.top, h = this.le(), f = h.pixels.left - this.dynamicEventRenderingMargin, v = h.pixels.right + this.dynamicEventRenderingMargin, p = h.pixels.top, m = h.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + u, w = b + s.eventHeight, x = v <= g || f >= y, _ = m <= b || p >= w;
5288
- if (!n && a && (x || _))
5293
+ var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.ke(), v = f.pixels.left - l.vh(), p = f.pixels.right + l.vh(), m = f.pixels.top, g = f.pixels.bottom, y = e.part.left, b = e.part.left + e.part.width, w = e.part.top + h, x = w + s.eventHeight, _ = p <= y || v >= b, C = g <= w || m >= x;
5294
+ if (!n && a && (_ || C))
5289
5295
  return !1;
5290
- var C = e.part.width, k = s.eventHeight, D = e.cache || e.data, S = D.borderRadius || s.eventBorderRadius;
5291
- "number" == typeof S && (S += "px");
5292
- var M = D.padding || s.eventPadding;
5293
- "number" == typeof M && (M += "px"), C = DayPilot.Util.atLeast(0, C), k = DayPilot.Util.atLeast(0, k);
5294
- var T = r();
5295
- T.style.position = "absolute", T.style.left = e.part.left + "px", T.style.top = u + e.part.top + "px", T.style.width = C + "px", T.style.height = k + "px", s.eventTextWrappingEnabled || (T.style.whiteSpace = "nowrap"), T.style.overflow = "hidden", T.className = this.L("_event"), D.cssClass && DayPilot.Util.addClass(T, D.cssClass);
5296
- "number" == typeof e.part.line && DayPilot.Util.addClass(T, this.L("_event_line" + e.part.line)), S && (T.style.borderRadius = S), this.showToolTip && (T.title = e.client.toolTip() || ""), T.onmousemove = this.vh, T.onmousedown = this.wh, T.onmouseup = this.xh, T.ontouchstart = d.yh, T.ontouchmove = d.zh, T.ontouchend = d.Ah, e.client.clickEnabled() && (T.onclick = this.Ne), "undefined" != typeof D.ariaLabel ? T.setAttribute("aria-label", D.ariaLabel) : T.setAttribute("aria-label", D.text), T.setAttribute("tabindex", "-1");
5296
+ var k = e.part.width, D = s.eventHeight, S = e.cache || e.data, M = S.borderRadius || s.eventBorderRadius;
5297
+ "number" == typeof M && (M += "px");
5298
+ var T = S.padding || s.eventPadding;
5299
+ "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D);
5297
5300
  var A = r();
5298
- A.className = s.L("_event_inner"), S && (A.style.borderRadius = S), M && (A.style.padding = M), D.backColor && (A.style.background = D.backColor), D.fontColor && (A.style.color = D.fontColor), "darker" === D.borderColor && D.backColor ? A.style.borderColor = DayPilot.ColorUtil.darker(D.backColor, 2) : A.style.borderColor = D.borderColor, D.backImage && (A.style.backgroundImage = "url(" + D.backImage + ")", D.backRepeat && (A.style.backgroundRepeat = D.backRepeat)), T.appendChild(A);
5299
- var E = e.start().getTime() === e.part.start.getTime(), H = e.rawend().getTime() === e.part.end.getTime();
5300
- if (E || DayPilot.Util.addClass(T, this.L("_event_continueleft")), H || DayPilot.Util.addClass(T, this.L("_event_continueright")), e.client.barVisible() && C > 0) {
5301
- var N = 100 * e.part.barLeft / C, R = Math.ceil(100 * e.part.barWidth / C), I = r();
5302
- I.className = this.L("_event_bar"), I.style.position = "absolute", D.barBackColor && (I.style.backgroundColor = D.barBackColor);
5303
- var L = r();
5304
- L.className = this.L("_event_bar_inner"), L.style.left = N + "%", 0 < R && R <= 1 ? L.style.width = "1px" : L.style.width = R + "%", D.barColor && (L.style.backgroundColor = D.barColor), D.barImageUrl && (L.style.backgroundImage = "url(" + D.barImageUrl + ")"), I.appendChild(L), T.appendChild(I);
5305
- }
5306
- T.row = i, T.event = e, function () {
5301
+ A.style.position = "absolute", A.style.left = e.part.left + "px", A.style.top = h + e.part.top + "px", A.style.width = k + "px", A.style.height = D + "px", s.eventTextWrappingEnabled || (A.style.whiteSpace = "nowrap"), A.style.overflow = "hidden", A.className = this.L("_event"), S.cssClass && DayPilot.Util.addClass(A, S.cssClass);
5302
+ "number" == typeof e.part.line && DayPilot.Util.addClass(A, this.L("_event_line" + e.part.line)), M && (A.style.borderRadius = M), this.showToolTip && (A.title = e.client.toolTip() || ""), A.onmousemove = this.wh, A.onmousedown = this.xh, A.onmouseup = this.yh, A.ontouchstart = d.zh, A.ontouchmove = d.Ah, A.ontouchend = d.Bh, e.client.clickEnabled() && (A.onclick = this.Me), "undefined" != typeof S.ariaLabel ? A.setAttribute("aria-label", S.ariaLabel) : A.setAttribute("aria-label", S.text), A.setAttribute("tabindex", "-1");
5303
+ var E = r();
5304
+ E.className = s.L("_event_inner"), M && (E.style.borderRadius = M), T && (E.style.padding = T), S.backColor && (E.style.background = S.backColor), S.fontColor && (E.style.color = S.fontColor), "darker" === S.borderColor && S.backColor ? E.style.borderColor = DayPilot.ColorUtil.darker(S.backColor, 2) : E.style.borderColor = S.borderColor, S.backImage && (E.style.backgroundImage = "url(" + S.backImage + ")", S.backRepeat && (E.style.backgroundRepeat = S.backRepeat)), A.appendChild(E);
5305
+ var H = e.start().getTime() === e.part.start.getTime(), R = e.rawend().getTime() === e.part.end.getTime();
5306
+ if (H || DayPilot.Util.addClass(A, this.L("_event_continueleft")), R || DayPilot.Util.addClass(A, this.L("_event_continueright")), e.client.barVisible() && k > 0) {
5307
+ var N = 100 * e.part.barLeft / k, I = Math.ceil(100 * e.part.barWidth / k), L = r();
5308
+ L.className = this.L("_event_bar"), L.style.position = "absolute", S.barBackColor && (L.style.backgroundColor = S.barBackColor);
5309
+ var P = r();
5310
+ P.className = this.L("_event_bar_inner"), P.style.left = N + "%", 0 < I && I <= 1 ? P.style.width = "1px" : P.style.width = I + "%", S.barColor && (P.style.backgroundColor = S.barColor), S.barImageUrl && (P.style.backgroundImage = "url(" + S.barImageUrl + ")"), L.appendChild(P), A.appendChild(L);
5311
+ }
5312
+ A.row = i, A.event = e, function () {
5307
5313
  if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
5308
- return void s.Bh(A, D.text, D.html);
5314
+ return void s.Ch(E, S.text, S.html);
5309
5315
  var t = {};
5310
- if (t.control = s, t.e = e, t.element = null, T.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
5311
- var n = A;
5316
+ if (t.control = s, t.e = e, t.element = null, A.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
5317
+ var n = E;
5312
5318
  if (n) {
5313
- t.Qa = n;
5319
+ t.Pa = n;
5314
5320
  var a = DayPilot.Util.isReactComponent(t.element), i = DayPilot.Util.isVueVNode(t.element);
5315
5321
  if (a) {
5316
- if (!s.cg.reactDOM)
5322
+ if (!s.bg.reactDOM)
5317
5323
  throw new DayPilot.Exception("Can't reach ReactDOM");
5318
- s.cg.Vc(t.element, n);
5324
+ s.bg.Uc(t.element, n);
5319
5325
  }
5320
5326
  else if (i) {
5321
- if (!s.Sa.Ra)
5327
+ if (!s.Ra.Qa)
5322
5328
  throw new DayPilot.Exception("Can't reach Vue");
5323
- s.Sa.Ta = !0, s.Sa.Wa(t.element, n), s.Sa.Ta = !1;
5329
+ s.Ra.Sa = !0, s.Ra.Va(t.element, n), s.Ra.Sa = !1;
5324
5330
  }
5325
5331
  else
5326
5332
  n.appendChild(t.element);
5327
5333
  }
5328
5334
  }
5329
5335
  else
5330
- A.innerHTML = e.client.innerHTML();
5336
+ E.innerHTML = e.client.innerHTML();
5331
5337
  }();
5332
- var P = [];
5338
+ var B = [];
5333
5339
  return function () {
5334
- if ("Disabled" !== s.eventDeleteHandling && !D.deleteDisabled) {
5340
+ if ("Disabled" !== s.eventDeleteHandling && !S.deleteDisabled) {
5335
5341
  var e = s.durationBarVisible ? s.durationBarHeight : 0;
5336
- P.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
5342
+ B.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
5337
5343
  }
5338
- }(), D.areas && (P = P.concat(D.areas)), DayPilot.Areas.attach(T, e, { areas: P }), this.elements.events.push(T), o.appendChild(T), e.rendered = !0, !0;
5339
- }, this._a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Bh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.of = function () {
5344
+ }(), S.areas && (B = B.concat(S.areas)), DayPilot.Areas.attach(A, e, { areas: B }), this.elements.events.push(A), o.appendChild(A), e.rendered = !0, !0;
5345
+ }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ch = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.nf = function () {
5340
5346
  for (var e = 0; e < this.elements.events.length; e++) {
5341
5347
  var t = this.elements.events[e], n = t.event, a = n.part.dayIndex, i = s.rowlist[a], r = i.top, o = r + n.part.top, l = i.height, d = s.eventHeight;
5342
5348
  n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
5343
5349
  }
5344
- }, this.Ch = function (e) {
5350
+ }, this.Dh = function (e) {
5345
5351
  if (!e)
5346
5352
  return null;
5347
5353
  for (var t = 0; t < s.elements.events.length; t++) {
@@ -5350,137 +5356,137 @@ var DayPilot = { Global: {} };
5350
5356
  return n;
5351
5357
  }
5352
5358
  return null;
5353
- }, this.Lf = function (e) {
5354
- var t = s.events.Qf(e.data);
5359
+ }, this.Kf = function (e) {
5360
+ var t = s.events.Pf(e.data);
5355
5361
  if (!t)
5356
5362
  return null;
5357
5363
  var n = s.rowlist[t.part.dayIndex];
5358
- return s.Gg(n), s.Va(t, { "forced": !0 }), s.Ch(t);
5359
- }, this.vh = function (e) {
5364
+ return s.Fg(n), s.Ua(t, { "forced": !0 }), s.Dh(t);
5365
+ }, this.wh = function (e) {
5360
5366
  for (var t = e.currentTarget; t && !t.event;)
5361
5367
  t = t.parentNode;
5362
- s.Dh(t, e), s.Re(e);
5363
- }, this.Pe = {}, this.wh = function (e) { s.Re(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Oe = !0, t.gg = this, t.kg = this.event, t.Eh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Fh(this, e)); }, this.xh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Fh = function (e, t) { var n = s.Pe; s.Re(t), n.Gh = !0, n.Pe = e, n.ng = e.event, n.Eh = DayPilot.mc(t), n.Hh = DayPilot.mo3(e, t).x, n.fg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
5364
- d.Hf = [];
5365
- d.relativeCoords = function (e) { return d.Ih(e); }, d.startResizing = function (e, t) { d.Jh(e, t); }, d.startMoving = function (e, t) { d.Fh(e, t); }, d.yh = function (t) {
5368
+ s.Eh(t, e), s.Qe(e);
5369
+ }, this.Oe = {}, this.xh = function (e) { s.Qe(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t.Ne = !0, t.fg = this, t.jg = this.event, t.Fh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Gh(this, e)); }, this.yh = function (e) { DayPilot.Util.mouseButton(e).right && s.xa.call(this, e); }, this.Gh = function (e, t) { var n = s.Oe; s.Qe(t), n.Hh = !0, n.Oe = e, n.mg = e.event, n.Fh = DayPilot.mc(t), n.Ih = DayPilot.mo3(e, t).x, n.eg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1;
5370
+ d.Gf = [];
5371
+ d.relativeCoords = function (e) { return d.Jh(e); }, d.startResizing = function (e, t) { d.Kh(e, t); }, d.startMoving = function (e, t) { d.Gh(e, t); }, d.zh = function (t) {
5366
5372
  if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
5367
- t.stopPropagation(), d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5373
+ t.stopPropagation(), d.Lh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5368
5374
  var n = t.currentTarget;
5369
- s.coords = d.Ih(t);
5375
+ s.coords = d.Jh(t);
5370
5376
  var a = s.tapAndHoldTimeout;
5371
- d.Hf.push(setTimeout(function () {
5377
+ d.Gf.push(setTimeout(function () {
5372
5378
  DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault();
5373
5379
  var a = n.event;
5374
5380
  switch (s.eventTapAndHoldHandling) {
5375
5381
  case "Move": if (a.client.moveEnabled()) {
5376
5382
  var i = e(t);
5377
- d.Fh(n, i);
5383
+ d.Gh(n, i);
5378
5384
  }
5379
5385
  }
5380
5386
  }, a));
5381
5387
  }
5382
- }, d.zh = function () { d.Kh(), DayPilot.Global.touch.start = !1; }, d.Ah = function (e) {
5388
+ }, d.Ah = function () { d.Lh(), DayPilot.Global.touch.start = !1; }, d.Bh = function (e) {
5383
5389
  if (!DayPilot.Util.isMouseEvent(e)) {
5384
- if (d.Kh(), DayPilot.Global.touch.start) {
5390
+ if (d.Lh(), DayPilot.Global.touch.start) {
5385
5391
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
5386
5392
  var t = e.currentTarget;
5387
- setTimeout(function () { s.Qe(t, e); });
5393
+ setTimeout(function () { s.Pe(t, e); });
5388
5394
  }
5389
5395
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
5390
5396
  }
5391
- }, d.Ng = function (e) {
5397
+ }, d.Mg = function (e) {
5392
5398
  if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
5393
- d.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5399
+ d.Lh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
5394
5400
  var t = s.tapAndHoldTimeout;
5395
- d.Hf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Ih(e), d.Lh = s.Mh(); }, t));
5396
- s.coords = d.Ih(e);
5401
+ d.Gf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), s.coords = d.Jh(e), d.Mh = s.Nh(); }, t));
5402
+ s.coords = d.Jh(e);
5397
5403
  }
5398
- }, d.Og = function (e) {
5399
- if (d.Kh(), DayPilot.Global.touch.start = !1, t.gg)
5400
- return e.preventDefault(), void d.Nh();
5404
+ }, d.Ng = function (e) {
5405
+ if (d.Lh(), DayPilot.Global.touch.start = !1, t.fg)
5406
+ return e.preventDefault(), void d.Oh();
5401
5407
  if (DayPilot.Global.touch.active) {
5402
- if (e.preventDefault(), s.coords = d.Ih(e), t.Pe)
5403
- return void d.Oh();
5404
- if (d.Lh) {
5405
- var n = d.Lh;
5406
- n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.zf(n);
5408
+ if (e.preventDefault(), s.coords = d.Jh(e), t.Oe)
5409
+ return void d.Ph();
5410
+ if (d.Mh) {
5411
+ var n = d.Mh;
5412
+ n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.yf(n);
5407
5413
  }
5408
5414
  }
5409
- }, d.debug = function () { }, d.Pg = function (e) {
5410
- d.Kh();
5415
+ }, d.debug = function () { }, d.Og = function (e) {
5416
+ d.Lh();
5411
5417
  if (DayPilot.Global.touch.active) {
5412
- if (t.Pe) {
5418
+ if (t.Oe) {
5413
5419
  e.preventDefault();
5414
- var n = t.ng;
5415
- if (s !== t.og.calendar)
5420
+ var n = t.mg;
5421
+ if (s !== t.ng.calendar)
5416
5422
  return;
5417
- var a = t.og.start, r = t.og.end, o = t.og.row.id;
5418
- DayPilot.Util.removeClass(t.Pe, s.L("_event_moving_source")), DayPilot.de(t.og), t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, t.og = null, s.M(n, a, r, o);
5423
+ var a = t.ng.start, r = t.ng.end, o = t.ng.row.id;
5424
+ DayPilot.Util.removeClass(t.Oe, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, t.ng = null, s.M(n, a, r, o);
5419
5425
  }
5420
- if (d.Lh) {
5421
- var l = d.Lh;
5422
- d.Lh = null;
5426
+ if (d.Mh) {
5427
+ var l = d.Mh;
5428
+ d.Mh = null;
5423
5429
  var c = s.elements.range2;
5424
- c && c.overlapping ? s.clearSelection() : s.vf(l);
5430
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
5425
5431
  }
5426
5432
  }
5427
5433
  else if (DayPilot.Global.touch.start) {
5428
5434
  if (s.coords.x < s.getScrollX())
5429
5435
  return;
5430
- var l = s.Mh();
5431
- s.zf(l);
5436
+ var l = s.Nh();
5437
+ s.yf(l);
5432
5438
  var c = s.elements.range2;
5433
- c && c.overlapping ? s.clearSelection() : s.vf(l);
5439
+ c && c.overlapping ? s.clearSelection() : s.uf(l);
5434
5440
  }
5435
5441
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
5436
- }, d.Kh = function () {
5437
- for (var e = 0; e < d.Hf.length; e++)
5438
- clearTimeout(d.Hf[e]);
5439
- d.Hf = [];
5440
- }, d.Ih = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.he, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Fh = function (e, n) { t.Pe = e, t.ng = e.event, t.Eh = n; var a = DayPilot.abs(e); t.Hh = n.x - a.x, t.fg = s.getDate(s.coords.x, !0), t.og = s.ca(e), s.mg(); }, d.Jh = function (e, n) { t.gg = e, t.kg = e.event, t.gg.dpBorder = n, t.jg || (t.jg = s.ca(e)), s.lg(); }, d.Nh = function () {
5441
- if (!t.jg) {
5442
- var e = t.gg;
5443
- t.jg = s.ca(e);
5444
- }
5445
- s.lg();
5446
- }, d.Oh = function () {
5447
- if (!t.og) {
5448
- var e = t.Pe;
5449
- t.og = s.ca(e);
5450
- }
5451
- t.og.calendar.mg();
5452
- }, this.Dh = function (e, n) {
5442
+ }, d.Lh = function () {
5443
+ for (var e = 0; e < d.Gf.length; e++)
5444
+ clearTimeout(d.Gf[e]);
5445
+ d.Gf = [];
5446
+ }, d.Jh = function (e) { function t(e, t, n) { var a = DayPilot.abs(n); return { x: e - a.x, y: t - a.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = s.ge, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Gh = function (e, n) { t.Oe = e, t.mg = e.event, t.Fh = n; var a = DayPilot.abs(e); t.Ih = n.x - a.x, t.eg = s.getDate(s.coords.x, !0), t.ng = s.ca(e), s.lg(); }, d.Kh = function (e, n) { t.fg = e, t.jg = e.event, t.fg.dpBorder = n, t.ig || (t.ig = s.ca(e)), s.kg(); }, d.Oh = function () {
5447
+ if (!t.ig) {
5448
+ var e = t.fg;
5449
+ t.ig = s.ca(e);
5450
+ }
5451
+ s.kg();
5452
+ }, d.Ph = function () {
5453
+ if (!t.ng) {
5454
+ var e = t.Oe;
5455
+ t.ng = s.ca(e);
5456
+ }
5457
+ t.ng.calendar.lg();
5458
+ }, this.Eh = function (e, n) {
5453
5459
  var a = this.eventResizeMargin, i = e;
5454
5460
  if ("undefined" != typeof t) {
5455
5461
  var r = DayPilot.mo3(e, n);
5456
- if (r && (s.eventOffset = r, !t.gg && !t.Pe)) {
5462
+ if (r && (s.eventOffset = r, !t.fg && !t.Oe)) {
5457
5463
  var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
5458
- r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.gg || t.Pe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
5464
+ r.x <= a && i.event.client.resizeEnabled() ? o ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - r.x <= a && i.event.client.resizeEnabled() ? l ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : t.fg || t.Oe || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
5459
5465
  }
5460
5466
  }
5461
- }, this.Af = function () { var e = s.Me(); return s.days * (1440 / e); }, this.wf = function (e) {
5462
- if (e = e || t.Lh || s.yf, !e)
5467
+ }, this.zf = function () { var e = s.Le(); return s.days * (1440 / e); }, this.vf = function (e) {
5468
+ if (e = e || t.Mh || s.xf, !e)
5463
5469
  return null;
5464
5470
  var n = s.rowlist[e.start.y];
5465
5471
  if (!n)
5466
5472
  return null;
5467
5473
  var a, i, r = e, o = r.end.time > r.start.time, l = n.id, d = o ? r.start.x : r.end.x, c = o ? r.end.x : r.start.x, u = s.snapToGrid;
5468
- u ? (a = s.Je(d).start, i = s.Je(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time);
5474
+ u ? (a = s.Ie(d).start, i = s.Ie(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time);
5469
5475
  var h = new DayPilot.Selection(a, i, l, s);
5470
5476
  return h.allowed = !e.div || !e.div.overlapping, h;
5471
- }, this.Ze = function () {
5472
- this.yb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []);
5477
+ }, this.Ye = function () {
5478
+ this.xb.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []);
5473
5479
  var e = r();
5474
5480
  e.style.position = "relative", this.nav.timeHeader = e;
5475
5481
  for (var t = 0; t < this.timeHeader.length; t++)
5476
5482
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
5477
- this.Ph(a, t);
5483
+ this.Qh(a, t);
5478
5484
  var i = this.divNorth;
5479
5485
  1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e));
5480
- var o = this.Ae();
5486
+ var o = this.ze();
5481
5487
  i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px");
5482
- }, this.He = function (e, t) {
5483
- var n = null, a = this.R.Ge();
5488
+ }, this.Ge = function (e, t) {
5489
+ var n = null, a = this.R.Fe();
5484
5490
  t = t || this.cellGroupBy;
5485
5491
  var i = e.start;
5486
5492
  switch (t) {
@@ -5488,7 +5494,7 @@ var DayPilot = { Global: {} };
5488
5494
  n = i.toString("m");
5489
5495
  break;
5490
5496
  case "Hour":
5491
- n = "Clock12Hours" === s.R.Qh() ? i.toString("h tt", a) : i.toString("H", a);
5497
+ n = "Clock12Hours" === s.R.Rh() ? i.toString("h tt", a) : i.toString("H", a);
5492
5498
  break;
5493
5499
  case "Day":
5494
5500
  n = i.toString(a.datePattern);
@@ -5510,12 +5516,12 @@ var DayPilot = { Global: {} };
5510
5516
  break;
5511
5517
  case "Cell":
5512
5518
  var r = (e.end.ticks - e.start.ticks) / 6e4;
5513
- n = this.Rh(i, r);
5519
+ n = this.Sh(i, r);
5514
5520
  break;
5515
5521
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
5516
5522
  }
5517
5523
  return n;
5518
- }, this.Rh = function (e, t) { var n = this.R.Ge(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Qh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Fe = function (e, t, n) {
5524
+ }, this.Sh = function (e, t) { var n = this.R.Fe(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.R.Rh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Ee = function (e, t, n) {
5519
5525
  var a, i = s.startDate.addDays(s.days);
5520
5526
  t = t || this.cellGroupBy;
5521
5527
  var r = 60;
@@ -5553,48 +5559,48 @@ var DayPilot = { Global: {} };
5553
5559
  a = i;
5554
5560
  break;
5555
5561
  case "Cell":
5556
- var d = this.Le(e);
5562
+ var d = this.Ke(e);
5557
5563
  d.current && (a = d.current.end);
5558
5564
  break;
5559
5565
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
5560
5566
  }
5561
5567
  return a.getTime() > i.getTime() && (a = i), a;
5562
- }, this.Ph = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Bg, u.oncontextmenu = this.Cg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s._a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.yb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ag = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.lf = !0), e.height = t; }), s.lf && (s.yb.drawArea = null); }, this.$e = function () {
5568
+ }, this.Qh = function (e, t) { var n = this.nav.timeHeader, a = this.timeHeader[t][e], i = t < this.timeHeader.length - 1, o = a.left, l = a.width, d = t * s.headerHeight, c = s.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = l + "px", u.style.height = c + "px", a.toolTip && (u.title = a.toolTip), u.setAttribute("aria-hidden", "true"), a.cssClass && DayPilot.Util.addClass(u, a.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = a.start, u.cell.end = a.end, u.cell.level = t, u.cell.th = a, u.onclick = this.Ag, u.oncontextmenu = this.Bg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = s.$a(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); i && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.L("_timeheader_cell")), DayPilot.Util.addClass(h, s.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.xb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this._f = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.kf = !0), e.height = t; }), s.kf && (s.xb.drawArea = null); }, this.Ze = function () {
5563
5569
  s.rowlist.forEach(function (e) {
5564
5570
  var t = s.divHeader;
5565
5571
  if (t) {
5566
5572
  var n = e.index;
5567
5573
  if (t.rows[n]) {
5568
5574
  var a = t.rows[n];
5569
- s.sg && (a.style.top = e.top + "px");
5575
+ s.rg && (a.style.top = e.top + "px");
5570
5576
  var i = e.height;
5571
5577
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
5572
5578
  }
5573
5579
  }
5574
- }), s.sg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.ae + "px");
5575
- }, this.bh = function (e) {
5580
+ }), s.rg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s._d + "px");
5581
+ }, this.ah = function (e) {
5576
5582
  if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
5577
5583
  return !1;
5578
- if (s.Re(e), "Disabled" === s.timeRangeSelectedHandling)
5584
+ if (s.Qe(e), "Disabled" === s.timeRangeSelectedHandling)
5579
5585
  return !1;
5580
5586
  var n = DayPilot.Util.mouseButton(e);
5581
- if (s.Sh())
5587
+ if (s.Th())
5582
5588
  return !1;
5583
5589
  if (n.middle || n.right)
5584
5590
  return !1;
5585
- if (s.Th(s.coords))
5591
+ if (s.Uh(s.coords))
5586
5592
  return !1;
5587
5593
  var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown";
5588
- return s.Uh = a, t.Lh = s.Mh(), t.Lh && (t.Vh = s), !1;
5589
- }, this.Mh = function () { var e = {}, t = s.Ie(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Gf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.zf(e), e; }, this.dh = function (e) {
5590
- if (s.Pe = {}, s.yf) {
5594
+ return s.Vh = a, t.Mh = s.Nh(), t.Mh && (t.Wh = s), !1;
5595
+ }, this.Nh = function () { var e = {}, t = s.He(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Ff(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.yf(e), e; }, this.ch = function (e) {
5596
+ if (s.Oe = {}, s.xf) {
5591
5597
  if (DayPilot.Util.mouseButton(e).left) {
5592
- var n = s.yf;
5593
- if (s.Th(s.coords)) {
5598
+ var n = s.xf;
5599
+ if (s.Uh(s.coords)) {
5594
5600
  var a = function (e) {
5595
5601
  return function () {
5596
- t.Wh = null;
5597
- var n = s.wf(e);
5602
+ t.Xh = null;
5603
+ var n = s.vf(e);
5598
5604
  if (n) {
5599
5605
  var a = {};
5600
5606
  a.start = n.start, a.end = n.end, a.resource = n.resource, a.preventDefault = function () { a.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeClick && s.onTimeRangeClick(a), a.preventDefault.value || "function" == typeof s.onTimeRangeClicked && s.onTimeRangeClicked(a);
@@ -5605,32 +5611,32 @@ var DayPilot = { Global: {} };
5605
5611
  }
5606
5612
  }
5607
5613
  }
5608
- }, this.Sh = function () { return !!(t.gg || t.Pe || t.Lh) || !!s.Pe.Gh; }, this.dragInProgress = function () { return s.Sh(); }, this.Re = function (e) { var t = DayPilot.mo3(s.he, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ch = function (e) {
5614
+ }, this.Th = function () { return !!(t.fg || t.Oe || t.Mh) || !!s.Oe.Hh; }, this.dragInProgress = function () { return s.Th(); }, this.Qe = function (e) { var t = DayPilot.mo3(s.ge, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.bh = function (e) {
5609
5615
  if (!DayPilot.Global.touch.active) {
5610
5616
  var n = DayPilot.mc(e);
5611
- if (s.Re(e), s.Pe.Gh) {
5612
- DayPilot.distance(s.Pe.Eh, n) > 2 && (DayPilot.Util.copyProps(s.Pe, t), i().style.cursor = "move", s.Pe = {});
5617
+ if (s.Qe(e), s.Oe.Hh) {
5618
+ DayPilot.distance(s.Oe.Fh, n) > 2 && (DayPilot.Util.copyProps(s.Oe, t), i().style.cursor = "move", s.Oe = {});
5613
5619
  }
5614
- t.gg && t.kg.calendar === s ? (t.gg.event || (t.gg.event = t.kg), s.Xh()) : t.ng ? s.Yh() : t.Lh && t.Lh.calendar === s && (t.Lh.moved = !0, s.Zh());
5620
+ t.fg && t.jg.calendar === s ? (t.fg.event || (t.fg.event = t.jg), s.Yh()) : t.mg ? s.Zh() : t.Mh && t.Mh.calendar === s && (t.Mh.moved = !0, s.$h());
5615
5621
  }
5616
- }, this.Zh = function () { var e = t.Lh, n = s.Ie(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.zf(e); }, this.Xh = function () { t.jg || (t.jg = s.ca(t.gg)), s.lg(); }, this.Yh = function () {
5617
- if (!t.og) {
5618
- DayPilot.Util.addClass(t.Pe, s.L("_event_moving_source"));
5619
- var e = t.ng;
5620
- t.og = s.ca(e);
5622
+ }, this.$h = function () { var e = t.Mh, n = s.He(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.yf(e); }, this.Yh = function () { t.ig || (t.ig = s.ca(t.fg)), s.kg(); }, this.Zh = function () {
5623
+ if (!t.ng) {
5624
+ DayPilot.Util.addClass(t.Oe, s.L("_event_moving_source"));
5625
+ var e = t.mg;
5626
+ t.ng = s.ca(e);
5621
5627
  }
5622
- s.mg();
5623
- }, this.eh = function (e) { return e.cancelBubble = !0, !1; }, this.Th = function (e) {
5624
- var t = s.yf;
5628
+ s.lg();
5629
+ }, this.dh = function (e) { return e.cancelBubble = !0, !1; }, this.Uh = function (e) {
5630
+ var t = s.xf;
5625
5631
  if (!t || !t.start || !t.end)
5626
5632
  return !1;
5627
- var n = this.Jf(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom;
5633
+ var n = this.If(t.start.y), a = t.start.x < t.end.x, i = (a ? t.start.x : t.end.x) * this.cellWidth, r = (a ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, o = n.top, l = n.bottom;
5628
5634
  return e.x >= i && e.x <= r && e.y >= o && e.y <= l;
5629
- }, this.zf = function (e) {
5635
+ }, this.yf = function (e) {
5630
5636
  function n(e) {
5631
5637
  var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time;
5632
5638
  if (i || !h) {
5633
- var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Je(f), m = s.Je(v);
5639
+ var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.Ie(f), m = s.Ie(v);
5634
5640
  t = p.left, n = m.left + m.width;
5635
5641
  }
5636
5642
  else
@@ -5643,54 +5649,54 @@ var DayPilot = { Global: {} };
5643
5649
  }
5644
5650
  return y.className = s.L("_shadow"), y.firstChild.innerHTML = "", y.style.left = t + "px", y.style.top = o[u].top + "px", y.style.width = g + "px", y.style.height = o[u].height - 1 + "px", y.calendar = s, s.elements.range2 = y, y;
5645
5651
  }
5646
- if (e = e || t.Lh) {
5652
+ if (e = e || t.Mh) {
5647
5653
  var a = s.eventBorderRadius;
5648
5654
  "number" == typeof a && (a += "px");
5649
5655
  var i = s.snapToGrid, o = s.rowlist;
5650
5656
  n(e);
5651
5657
  }
5652
- }, this.$h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () {
5658
+ }, this._h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () {
5653
5659
  if (!s.coords)
5654
5660
  return null;
5655
5661
  var e = {};
5656
5662
  e.x = s.coords.x, e.y = s.coords.y;
5657
- var t = s.Gf(e.y, e.grid).element;
5658
- return e.row = s.Ag(t), e.time = s.getDate(e.x, !0), e;
5659
- }, this.Hf = {}, this.Hf.na = null, this.Hf.drawCells = null, this.Hf.drawRows = null, this.Hf.click = null, this.Hf.resClick = [], this.Hf.updateFloats = null, this.ef = function () {
5663
+ var t = s.Ff(e.y, e.grid).element;
5664
+ return e.row = s.zg(t), e.time = s.getDate(e.x, !0), e;
5665
+ }, this.Gf = {}, this.Gf.na = null, this.Gf.drawCells = null, this.Gf.drawRows = null, this.Gf.click = null, this.Gf.resClick = [], this.Gf.updateFloats = null, this.df = function () {
5660
5666
  if (!s.Q) {
5661
- s.cf();
5667
+ s.bf();
5662
5668
  var e = s.nav.scroll;
5663
- if (s.jh = e.scrollLeft, s.kh = e.scrollTop, s.lh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.jh), DayPilot.browser.ios && t.Wg ? n() : s.divResScroll.scrollTop = s.kh, s.progressiveRowRendering && (s.Hf.drawRows && (clearTimeout(s.Hf.drawRows), s.Hf.drawRows = null), s.scrollDelayRows > 0 ? s.Hf.drawRows = setTimeout(function () { s.vg(); }, s.scrollDelayRows) : s.vg()), s.Hf.drawCells && (clearTimeout(s.Hf.drawCells), s.Hf.drawCells = null), s.scrollDelayCells > 0)
5664
- s.Hf.drawCells = setTimeout(s._h(), s.scrollDelayCells);
5669
+ if (s.ih = e.scrollLeft, s.jh = e.scrollTop, s.kh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.ih), DayPilot.browser.ios && t.Vg ? n() : s.divResScroll.scrollTop = s.jh, s.progressiveRowRendering && (s.Gf.drawRows && (clearTimeout(s.Gf.drawRows), s.Gf.drawRows = null), s.scrollDelayRows > 0 ? s.Gf.drawRows = setTimeout(function () { s.ug(); }, s.scrollDelayRows) : s.ug()), s.Gf.drawCells && (clearTimeout(s.Gf.drawCells), s.Gf.drawCells = null), s.scrollDelayCells > 0)
5670
+ s.Gf.drawCells = setTimeout(s.ai(), s.scrollDelayCells);
5665
5671
  else {
5666
- s._h()();
5672
+ s.ai()();
5667
5673
  }
5668
- s.Hf.na && (clearTimeout(s.Hf.na), s.Hf.na = null), s.scrollDelayEvents > 0 ? s.Hf.na = setTimeout(s.ai(), s.scrollDelayEvents) : s.na(), s.Hf.updateFloats && (clearTimeout(s.Hf.updateFloats), s.Hf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Hf.updateFloats = setTimeout(function () { s.oe(); }, s.scrollDelayFloats) : s.oe(), s.onScrollCalled = !0;
5674
+ s.Gf.na && (clearTimeout(s.Gf.na), s.Gf.na = null), s.scrollDelayEvents > 0 ? s.Gf.na = setTimeout(s.bi(), s.scrollDelayEvents) : s.na(), s.Gf.updateFloats && (clearTimeout(s.Gf.updateFloats), s.Gf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Gf.updateFloats = setTimeout(function () { s.ne(); }, s.scrollDelayFloats) : s.ne(), s.onScrollCalled = !0;
5669
5675
  }
5670
- }, this._h = function () { return function () { s && s.df(); }; }, this.ai = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.pe()); }; }, this.cf = function () { s.yb.drawArea = null; }, this.show = function () { s.visible = !0, s.be = !0, s.nav.top.style.display = "", s.u(), s._g(), s.ef(); }, this.hide = function () { s.visible = !1, s.be = !1, s.nav.top.style.display = "none"; }, this.Wf = function (e) {
5676
+ }, this.ai = function () { return function () { s && s.cf(); }; }, this.bi = function () { return function () { s && (s.rh() ? setTimeout(function () { s.oh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.oe()); }; }, this.bf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ae = !0, s.nav.top.style.display = "", s.u(), s.$g(), s.df(); }, this.hide = function () { s.visible = !1, s.ae = !1, s.nav.top.style.display = "none"; }, this.Vf = function (e) {
5671
5677
  if (!s.events.list)
5672
5678
  return null;
5673
5679
  for (var t = 0; t < this.events.list.length; t++) {
5674
5680
  var n = this.events.list[t];
5675
- if (s.Pf(n, e)) {
5681
+ if (s.Of(n, e)) {
5676
5682
  var a = {};
5677
5683
  return a.ex = n, a.index = t, a;
5678
5684
  }
5679
5685
  }
5680
5686
  return null;
5681
- }, this.bi = function () {
5682
- var e = this.le(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart;
5687
+ }, this.ci = function () {
5688
+ var e = this.ke(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart;
5683
5689
  this.cellProperties || (this.cellProperties = {});
5684
5690
  for (var r = 0; r <= n; r++) {
5685
5691
  for (var o = t + r, s = 0; s < i; s++) {
5686
5692
  var l = a + s;
5687
- this.hd(o, l);
5693
+ this.gd(o, l);
5688
5694
  }
5689
- this.ci(o);
5695
+ this.di(o);
5690
5696
  }
5691
- for (var d = this.qg(), l = d.start; l < d.end; l++)
5692
- this.di(l);
5693
- }, this.df = function () {
5697
+ for (var d = this.pg(), l = d.start; l < d.end; l++)
5698
+ this.ei(l);
5699
+ }, this.cf = function () {
5694
5700
  if (!s.Q) {
5695
5701
  var e = s.rowlist;
5696
5702
  if (e && e.length > 0) {
@@ -5698,58 +5704,58 @@ var DayPilot = { Global: {} };
5698
5704
  var t = this.cellSweepingCacheSize;
5699
5705
  this.qh(t);
5700
5706
  }
5701
- this.bi();
5707
+ this.ci();
5702
5708
  }
5703
- this.lf = !1;
5709
+ this.kf = !1;
5704
5710
  }
5705
- }, this.le = function () {
5706
- if (s.yb.drawArea)
5707
- return s.yb.drawArea;
5711
+ }, this.ke = function () {
5712
+ if (s.xb.drawArea)
5713
+ return s.xb.drawArea;
5708
5714
  if (!this.nav.scroll)
5709
5715
  return null;
5710
- var e = s.kh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, a = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, i = s.jh - n, r = i + s.lh + 2 * n, o = 0, l = 0;
5711
- o = s.Ie(i).x, l = s.Ie(r, !0).x;
5712
- var d = this.Af();
5713
- l = Math.min(l, d - 1), o = DayPilot.Util.atLeast(o, 0);
5714
- var c = e - a, u = e + this.nav.scroll.offsetHeight + 2 * a, h = this.Gf(c).i, f = this.Gf(u).i;
5715
- f < this.rowlist.length && f++, t.xStart = o, t.xEnd = l, t.yStart = h, t.yEnd = f;
5716
- var v = s.nav.scroll;
5717
- return 0 === v.clientWidth && (v = s.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.yb.drawArea = t, t;
5718
- }, this.Ae = function () { return s.Af() * s.cellWidth; }, this.di = function (e) {
5716
+ var e = s.jh, t = {}, n = l.vh(), a = l.mh(), i = s.ih - n, r = i + s.kh + 2 * n, o = 0, d = 0;
5717
+ o = s.He(i).x, d = s.He(r, !0).x;
5718
+ var c = this.zf();
5719
+ d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0);
5720
+ var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Ff(u).i, v = this.Ff(h).i;
5721
+ v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v;
5722
+ var p = s.nav.scroll;
5723
+ return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t;
5724
+ }, this.ze = function () { return s.zf() * s.cellWidth; }, this.ei = function (e) {
5719
5725
  var t = s.rowlist, n = s.divLines, a = "y_" + e;
5720
- if (!this.yb.linesHorizontal[a]) {
5721
- var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ae(), c = r();
5722
- c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.yb.linesHorizontal[a] = c;
5726
+ if (!this.xb.linesHorizontal[a]) {
5727
+ var i = t[e], o = i.height, l = i.top + o - 1, d = this.ze(), c = r();
5728
+ c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.xb.linesHorizontal[a] = c;
5723
5729
  }
5724
- }, this.ci = function (e) {
5725
- var t = s.Je(e);
5730
+ }, this.di = function (e) {
5731
+ var t = s.Ie(e);
5726
5732
  if (t) {
5727
- var n = s.divLines, a = s.ae, i = "x_" + e;
5728
- if (!this.yb.linesVertical[i]) {
5733
+ var n = s.divLines, a = s._d, i = "x_" + e;
5734
+ if (!this.xb.linesVertical[i]) {
5729
5735
  var o = t.left + t.width - 1, l = r();
5730
- l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.yb.linesVertical[i] = l;
5736
+ l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = a + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.xb.linesVertical[i] = l;
5731
5737
  }
5732
5738
  }
5733
- }, this.Xe = function () { s.ae = s.ei(s.rowlist); }, this.ei = function (e) {
5739
+ }, this.We = function () { s._d = s.fi(s.rowlist); }, this.fi = function (e) {
5734
5740
  for (var t = 0, n = 0; n < e.length; n++) {
5735
5741
  var a = e[n];
5736
5742
  a.top = t, t += a.height;
5737
5743
  }
5738
5744
  return t;
5739
- }, this.af = function () { s.elements.cells = [], s.yb.cells = [], s.divCells.innerHTML = "", s.fi(); }, this.fi = function () { s.divLines.innerHTML = "", s.yb.linesVertical = {}, s.yb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.pf = function (e) {
5745
+ }, this._e = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.gi(); }, this.gi = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.of = function (e) {
5740
5746
  var t = [];
5741
- for (var n in s.yb.cells)
5742
- t.push(s.yb.cells[n]);
5743
- t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.gb(e); });
5744
- }, this.hd = function (e, t) {
5745
- if (this.Ma) {
5746
- var n = s.Je(e);
5747
+ for (var n in s.xb.cells)
5748
+ t.push(s.xb.cells[n]);
5749
+ t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.fb(e); });
5750
+ }, this.gd = function (e, t) {
5751
+ if (this.La) {
5752
+ var n = s.Ie(e);
5747
5753
  if (n) {
5748
5754
  var a = s.rowlist, i = s.divCells, o = e + "_" + t;
5749
- if (!this.yb.cells[o]) {
5750
- var l = this.gi(e, t), d = s.hi(e, t), c = r();
5755
+ if (!this.xb.cells[o]) {
5756
+ var l = this.hi(e, t), d = s.ii(e, t), c = r();
5751
5757
  if (c.style.left = n.left + "px", c.style.top = a[t].top + "px", c.style.width = n.width + "px", c.style.height = a[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
5752
- if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s._a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
5758
+ if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.$a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
5753
5759
  switch (c.style.display = "flex", l.horizontalAlignment) {
5754
5760
  case "right":
5755
5761
  c.style.justifyContent = "flex-end";
@@ -5769,7 +5775,7 @@ var DayPilot = { Global: {} };
5769
5775
  case "bottom": c.style.alignItems = "flex-end";
5770
5776
  }
5771
5777
  }
5772
- DayPilot.Areas.attach(c, d.cell, { "areas": l.areas || d.cell.areas });
5778
+ DayPilot.Areas.attach(c, d.cell, { "areas": l.areas });
5773
5779
  }
5774
5780
  var u = { start: n.start, end: n.end, resource: a[t].id, div: c, properties: l, x: e, y: t };
5775
5781
  !function () {
@@ -5778,61 +5784,73 @@ var DayPilot = { Global: {} };
5778
5784
  if (e.control = s, e.cell = u, e.element = null, c.domArgs = e, "function" == typeof s.onBeforeCellDomAdd && s.onBeforeCellDomAdd(e), e.element) {
5779
5785
  var t = c;
5780
5786
  if (t) {
5781
- e.Qa = t;
5787
+ e.Pa = t;
5782
5788
  var n = DayPilot.Util.isReactComponent(e.element), a = DayPilot.Util.isVueVNode(e.element);
5783
5789
  if (n) {
5784
- if (!s.cg.reactDOM)
5790
+ if (!s.bg.reactDOM)
5785
5791
  throw new DayPilot.Exception("Can't reach ReactDOM");
5786
- s.cg.Vc(e.element, t);
5792
+ s.bg.Uc(e.element, t);
5787
5793
  }
5788
5794
  else if (a) {
5789
- if (!s.Sa.Ra)
5795
+ if (!s.Ra.Qa)
5790
5796
  throw new DayPilot.Exception("Can't reach Vue");
5791
- s.Sa.Ta = !0, s.Sa.Wa(e.element, t), s.Sa.Ta = !1;
5797
+ s.Ra.Sa = !0, s.Ra.Va(e.element, t), s.Ra.Sa = !1;
5792
5798
  }
5793
5799
  else
5794
5800
  t.appendChild(e.element);
5795
5801
  }
5796
5802
  }
5797
5803
  }
5798
- }(), i.appendChild(c), this.elements.cells.push(c), this.yb.cells[o] = c;
5804
+ }(), i.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
5799
5805
  }
5800
5806
  }
5801
5807
  }
5802
- }, this.hi = function (e, t) {
5803
- var n = s.Je(e);
5808
+ }, this.ii = function (e, t) {
5809
+ var n = s.Ie(e);
5804
5810
  if (!n)
5805
5811
  return null;
5806
5812
  var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {};
5807
- if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Ag(a), properties: s.gi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
5813
+ if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.zg(a), properties: s.hi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
5808
5814
  var d = e + "_" + t;
5809
- if (s.beforeCellRenderCaching && s.bf[d])
5815
+ if (s.beforeCellRenderCaching && s.af[d])
5810
5816
  return l;
5811
- s.bf[d] = !0, this.onBeforeCellRender(l);
5817
+ s.af[d] = !0, this.onBeforeCellRender(l);
5812
5818
  }
5813
5819
  return l;
5814
- }, this.clearSelection = function () { this.ii(); }, this.ji = function (e, t, n) {
5820
+ }, this.clearSelection = function () { this.ji(); }, this.ki = function (e, t, n) {
5815
5821
  e = new DayPilot.Date(e), t = new DayPilot.Date(t);
5816
- var a = s.je(n), i = s.Le(e);
5822
+ var a = s.ie(n), i = s.Ke(e);
5817
5823
  if (!i.current)
5818
5824
  throw new DayPilot.Exception("Time range selection 'start' out of timeline");
5819
- var r = s.Le(new DayPilot.Date(t).addMilliseconds(-1));
5825
+ var r = s.Ke(new DayPilot.Date(t).addMilliseconds(-1));
5820
5826
  if (!r.current)
5821
5827
  throw new DayPilot.Exception("Time range selection 'end' out of timeline");
5822
5828
  var o = {};
5823
5829
  return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o;
5824
- }, this.selectTimeRange = function (e, t, n, a) { var i = s.ji(e, t, n); s.zf(i), a || setTimeout(function () { s.vf(i); }, 0); }, this.tf = function () { var e = t.og && t.og.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.og), t.og = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ii = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.yf = null, s.ki = null; }, l.Ld = function () { delete s.yb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Ge = function () { return DayPilot.Locale.find(s.locale); }, l.Qh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Ge().timeFormat; }, l.ea = function () {
5830
+ }, this.selectTimeRange = function (e, t, n, a) { var i = s.ki(e, t, n); s.yf(i), a || setTimeout(function () { s.uf(i); }, 0); }, this.sf = function () { var e = t.ng && t.ng.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.ng), t.ng = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ji = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.xf = null, s.li = null; }, l.Kd = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Fe = function () { return DayPilot.Locale.find(s.locale); }, l.Rh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Fe().timeFormat; }, l.ea = function () {
5825
5831
  if ("Auto" === s.weekStarts) {
5826
- var e = l.Ge();
5832
+ var e = l.Fe();
5827
5833
  return e ? e.weekStarts : 0;
5828
5834
  }
5829
5835
  return s.weekStarts || 0;
5830
- }, l.xg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.eg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Me() * 1e3; }, this.gi = function (e, t) {
5836
+ }, l.wg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.dg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Le() * 1e3; }, l.vh = function () {
5837
+ var e = s.dynamicEventRenderingMarginX;
5838
+ if ("number" == typeof e)
5839
+ return e;
5840
+ var t = s.dynamicEventRenderingMargin;
5841
+ return "number" == typeof t ? t : 0;
5842
+ }, l.mh = function () {
5843
+ var e = s.dynamicEventRenderingMarginY;
5844
+ if ("number" == typeof e)
5845
+ return e;
5846
+ var t = s.dynamicEventRenderingMargin;
5847
+ return "number" == typeof t ? t : 0;
5848
+ }, this.hi = function (e, t) {
5831
5849
  var n = e + "_" + t, a = s.rowlist;
5832
5850
  if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
5833
5851
  return this.cellProperties[n];
5834
5852
  if (!this.cellProperties[n]) {
5835
- var i = a[t], r = i.id, o = s.Je(e), l = o.start, d = o.end, c = {};
5853
+ var i = a[t], r = i.id, o = s.Ie(e), l = o.start, d = o.end, c = {};
5836
5854
  c.start = l, c.end = d, c.resource = r;
5837
5855
  var u = {};
5838
5856
  u.business = s.isBusiness(c), this.cellProperties[n] = u;
@@ -5858,7 +5876,7 @@ var DayPilot = { Global: {} };
5858
5876
  return !1;
5859
5877
  }
5860
5878
  return !0;
5861
- }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.li = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ce() + 2), this.ma(); }, this.setHeight = this.li, this.je = function (e) { return s.Eg(e)[0]; }, this.xb = function () {
5879
+ }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.mi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Be() + 2), this.ma(); }, this.setHeight = this.mi, this.ie = function (e) { return s.Dg(e)[0]; }, this.wb = function () {
5862
5880
  if (this.id && this.id.tagName)
5863
5881
  this.nav.top = this.id;
5864
5882
  else {
@@ -5868,18 +5886,18 @@ var DayPilot = { Global: {} };
5868
5886
  throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
5869
5887
  }
5870
5888
  }, this.init = function () {
5871
- if (this.Ma)
5889
+ if (this.La)
5872
5890
  throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties.");
5873
- if (this.xb(), this.nav.top.dp) {
5891
+ if (this.wb(), this.nav.top.dp) {
5874
5892
  if (this.nav.top.dp === s)
5875
5893
  return s;
5876
5894
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
5877
5895
  }
5878
- return this.mi(), this.$g(), this;
5879
- }, this.mi = function () { this.Mg(), this.qb(), this.ba(), this.ih(), this.rb(); var angular = s.ze.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.ef(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.cf(), this.wb(), this.Ma = !0; var t = s.ge; t ? s.scrollTo(t) : s.ef(); }, this.vb = null, this.tb = function (e) {
5896
+ return this.ni(), this.Zg(), this;
5897
+ }, this.ni = function () { this.Lg(), this.pb(), this.ba(), this.hh(), this.qb(); var angular = s.ye.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.df(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.bf(), this.vb(), this.La = !0; var t = s.fe; t ? s.scrollTo(t) : s.df(); }, this.ub = null, this.sb = function (e) {
5880
5898
  if (e) {
5881
- var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.fe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ie(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Be(this.data); } } };
5882
- s.vb = t, s.ze.scrollToRequested && (t.scrollTo.data = s.ze.scrollToRequested, s.ze.scrollToRequested = null), s.ze.scrollXRequested && (t.scrollX.data = s.ze.scrollXRequested, s.ze.scrollXRequested = null), s.ze.scrollYRequested && (t.scrollY.data = s.ze.scrollYRequested, s.ze.scrollYRequested = null);
5899
+ var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.ee(this.data); } }, "scrollX": { "postInit": function () { this.data && s.he(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ae(this.data); } } };
5900
+ s.ub = t, s.ye.scrollToRequested && (t.scrollTo.data = s.ye.scrollToRequested, s.ye.scrollToRequested = null), s.ye.scrollXRequested && (t.scrollX.data = s.ye.scrollXRequested, s.ye.scrollXRequested = null), s.ye.scrollYRequested && (t.scrollY.data = s.ye.scrollYRequested, s.ye.scrollYRequested = null);
5883
5901
  for (var n in e)
5884
5902
  t[n] || (s[n] = e[n]);
5885
5903
  for (var a in e)
@@ -5888,95 +5906,95 @@ var DayPilot = { Global: {} };
5888
5906
  i.data = e[a], i.preInit && i.preInit();
5889
5907
  }
5890
5908
  }
5891
- }, this.wb = function () {
5892
- var e = s.vb;
5909
+ }, this.vb = function () {
5910
+ var e = s.ub;
5893
5911
  for (var t in e) {
5894
5912
  var n = e[t];
5895
5913
  n.postInit && n.postInit();
5896
5914
  }
5897
- s.vb = {};
5898
- }, this.cg = {}, this.cg.reactDOM = null, this.cg.react = null, this.cg.Vc = function (e, t) {
5899
- var n = s.cg.reactDOM;
5915
+ s.ub = {};
5916
+ }, this.bg = {}, this.bg.reactDOM = null, this.bg.react = null, this.bg.Uc = function (e, t) {
5917
+ var n = s.bg.reactDOM;
5900
5918
  if ("function" == typeof n.createRoot) {
5901
- var a = t.ni;
5902
- a || (a = n.createRoot(t), t.ni = a), a.render(e);
5919
+ var a = t.oi;
5920
+ a || (a = n.createRoot(t), t.oi = a), a.render(e);
5903
5921
  }
5904
5922
  else
5905
5923
  n.render(e, t);
5906
- }, this.cg.nh = function (e) {
5907
- var t = s.cg.reactDOM;
5924
+ }, this.bg.nh = function (e) {
5925
+ var t = s.bg.reactDOM;
5908
5926
  if ("function" == typeof t.createRoot) {
5909
- var n = e.ni;
5910
- setTimeout(function () { n.unmount(), e.ni = null; }, 0);
5927
+ var n = e.oi;
5928
+ setTimeout(function () { n.unmount(), e.oi = null; }, 0);
5911
5929
  }
5912
5930
  else
5913
5931
  t.unmountComponentAtNode(e);
5914
- }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Mb = function (e, t, n) {
5915
- var a = s.Sa.Ra;
5932
+ }, this.Ra = {}, this.Ra.Qa = null, this.Ra.Lb = function (e, t, n) {
5933
+ var a = s.Ra.Qa;
5916
5934
  if ("function" == typeof a.createVNode && "function" == typeof a.render) {
5917
5935
  var i = a.createVNode(e, n);
5918
5936
  a.render(i, t);
5919
5937
  }
5920
- }, this.Sa.Wa = function (e, t) {
5921
- var n = s.Sa.Ra;
5938
+ }, this.Ra.Va = function (e, t) {
5939
+ var n = s.Ra.Qa;
5922
5940
  if ("function" == typeof n.render) {
5923
5941
  var a = e;
5924
5942
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
5925
5943
  }
5926
- }, this.Sa.Ua = function (e) { var t = s.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.qf, this.internal.adjustEndNormalize = s.rf, this.internal.xssTextHtml = s._a, this.internal.touch = s.ce, this.internal.skipUpdate = s.ze.skipUpdate, this.internal.skipped = s.ze.skipped, this.internal.loadOptions = s.tb, this.internal.postInit = s.wb, this.internal.enableAngular2 = function () { s.ze.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { s.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { s.events.uf(); }, this.internal.enableReact = function (e, t) { s.cg.react = e, s.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Sa.Ra = e; }, this.internal.vueRef = function () { return s.Sa.Ra; }, this.internal.vueRendering = function () { return s.Sa.Ta; }, this.tb(o);
5944
+ }, this.Ra.Ta = function (e) { var t = s.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.pf, this.internal.adjustEndNormalize = s.qf, this.internal.xssTextHtml = s.$a, this.internal.touch = s.be, this.internal.skipUpdate = s.ye.skipUpdate, this.internal.skipped = s.ye.skipped, this.internal.loadOptions = s.sb, this.internal.postInit = s.vb, this.internal.enableAngular2 = function () { s.ye.enabled = !0; }, this.internal.eventsFromAttr = function () { s.ye.Tf = !0; }, this.internal.resourcesFromAttr = function () { s.ye.ag = !0; }, this.internal.evImmediateRefresh = function () { s.events.tf(); }, this.internal.enableReact = function (e, t) { s.bg.react = e, s.bg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.bg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ra.Qa = e; }, this.internal.vueRef = function () { return s.Ra.Qa; }, this.internal.vueRendering = function () { return s.Ra.Sa; }, this.sb(o);
5927
5945
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
5928
5946
  if (!e)
5929
5947
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
5930
5948
  if (!t)
5931
5949
  throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row");
5932
- this.oi = {};
5933
- var n = this.oi;
5950
+ this.pi = {};
5951
+ var n = this.pi;
5934
5952
  n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags;
5935
5953
  var a = this;
5936
- a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.pi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () {
5937
- for (var e = [], t = 0; t < a.pi.events.length; t++)
5938
- e.push(a.pi.events[t]);
5954
+ a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.qi = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () {
5955
+ for (var e = [], t = 0; t < a.qi.events.length; t++)
5956
+ e.push(a.qi.events[t]);
5939
5957
  return e;
5940
- }, a.events.isEmpty = function () { return 0 === a.pi.events.length; }, a.events.forRange = function (e, t) { return a.pi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); };
5941
- }, t.Pe = null, t.ng = null, t.Eh = null, t.gg = null, t.kg = null, t.Oe = !1, t.fh = !1, t.Wh = null, t.qi = null, t.qc = function () { DayPilot.ue(document, "mouseup", t._d), DayPilot.ue(document, "touchmove", t.gh), DayPilot.ue(document, "touchend", t.hh), t.fh = !1; }, t.gh = function (e) {
5942
- if (t.gg) {
5943
- var n = t.gg.event.calendar;
5944
- n.coords = n.ce.Ih(e), n.ce.Nh(), e.preventDefault();
5958
+ }, a.events.isEmpty = function () { return 0 === a.qi.events.length; }, a.events.forRange = function (e, t) { return a.qi.events.forRange(e, t); }, a.events.totalDuration = function () { var e = 0; return a.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, a.remove = function () { t.rows.remove(a); }, a.addClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.addClass(i, e), a.$.row.cssClass = DayPilot.Util.addClassToString(a.$.row.cssClass, e), a.data.cssClass = e; }, a.removeClass = function (e) { var n = t.divHeader, i = n.rows[a.index]; DayPilot.Util.removeClass(i, e), a.$.row.cssClass = DayPilot.Util.removeClassFromString(a.$.row.cssClass, e), a.data.cssClass = DayPilot.Util.removeClassFromString(a.data.cssClass, e); };
5959
+ }, t.Oe = null, t.mg = null, t.Fh = null, t.fg = null, t.jg = null, t.Ne = !1, t.eh = !1, t.Xh = null, t.ri = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.$d), DayPilot.ue(document, "touchmove", t.fh), DayPilot.ue(document, "touchend", t.gh), t.eh = !1; }, t.fh = function (e) {
5960
+ if (t.fg) {
5961
+ var n = t.fg.event.calendar;
5962
+ n.coords = n.be.Jh(e), n.be.Oh(), e.preventDefault();
5945
5963
  }
5946
- if (t.Pe) {
5964
+ if (t.Oe) {
5947
5965
  e.preventDefault();
5948
- var n = t.ng.calendar;
5949
- n.coords = n.ce.Ih(e), n.ce.Oh();
5966
+ var n = t.mg.calendar;
5967
+ n.coords = n.be.Jh(e), n.be.Ph();
5950
5968
  }
5951
- }, t.hh = function (e) { t.Wg = !1, t._d(e); }, t._d = function (e) {
5952
- if (t.gg) {
5953
- var a = function () { var e = t.kg, n = e.calendar; i().style.cursor = "", t.gg = null, t.kg = null, DayPilot.de(t.jg), t.jg = null, n && (n.ri = null); };
5954
- if (setTimeout(function () { t.Oe = !1; }), !t.jg)
5969
+ }, t.gh = function (e) { t.Vg = !1, t.$d(e); }, t.$d = function (e) {
5970
+ if (t.fg) {
5971
+ var a = function () { var e = t.jg, n = e.calendar; i().style.cursor = "", t.fg = null, t.jg = null, DayPilot.de(t.ig), t.ig = null, n && (n.si = null); };
5972
+ if (setTimeout(function () { t.Ne = !1; }), !t.ig)
5955
5973
  return void a();
5956
- var r = t.kg, o = r.calendar, s = t.jg.start, l = t.jg.end, d = "left" === t.gg.dpBorder ? "start" : "end";
5974
+ var r = t.jg, o = r.calendar, s = t.ig.start, l = t.ig.end, d = "left" === t.fg.dpBorder ? "start" : "end";
5957
5975
  a(), o.K(r, s, l, d);
5958
5976
  }
5959
- else if (t.ng) {
5960
- var a = function () { DayPilot.Global.movingAreaData = null; var e = t.og && t.og.calendar; t.og && (DayPilot.de(t.og), t.og.calendar = null), i().style.cursor = "", t.Pe = null, t.ng = null, e && (e.sf = null); };
5961
- if (!t.og)
5977
+ else if (t.mg) {
5978
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.ng && t.ng.calendar; t.ng && (DayPilot.de(t.ng), t.ng.calendar = null), i().style.cursor = "", t.Oe = null, t.mg = null, e && (e.rf = null); };
5979
+ if (!t.ng)
5962
5980
  return void a();
5963
- var r = t.ng, o = t.og.calendar;
5981
+ var r = t.mg, o = t.ng.calendar;
5964
5982
  if (!o)
5965
5983
  return void a();
5966
- if (t.og.source = t.Pe, !t.og.row)
5984
+ if (t.ng.source = t.Oe, !t.ng.row)
5967
5985
  return void a();
5968
- var s = t.og.start, l = t.og.end, c = t.og.row.id;
5969
- t.og.calendar = null, i().style.cursor = "", t.Pe = null, t.ng = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
5986
+ var s = t.ng.start, l = t.ng.end, c = t.ng.row.id;
5987
+ t.ng.calendar = null, i().style.cursor = "", t.Oe = null, t.mg = null, o.M(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
5970
5988
  }
5971
- else if (t.Lh) {
5972
- var u = DayPilot.Util.mouseButton(e), h = t.Lh, f = h.calendar, a = function () { };
5973
- if (f.ki = null, t.Wh)
5974
- return clearTimeout(t.Wh), t.Wh = null, void a();
5975
- f.yf = h, t.Lh = null;
5976
- var v = function (e) { return function () { t.Wh = null, f.vf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.yf = e; }; }, p = f.$h(h);
5977
- return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Wh = null);
5989
+ else if (t.Mh) {
5990
+ var u = DayPilot.Util.mouseButton(e), h = t.Mh, f = h.calendar, a = function () { };
5991
+ if (f.li = null, t.Xh)
5992
+ return clearTimeout(t.Xh), t.Xh = null, void a();
5993
+ f.xf = h, t.Mh = null;
5994
+ var v = function (e) { return function () { t.Xh = null, f.uf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.xf = e; }; }, p = f._h(h);
5995
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.Xh = null);
5978
5996
  }
5979
- t.Hh = null, t.fg = null;
5997
+ t.Ih = null, t.eg = null;
5980
5998
  };
5981
5999
  }
5982
6000
  }(DayPilot);