@daypilot/daypilot-lite-angular 5.8.0 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -500,7 +500,7 @@ DayPilot Lite
500
500
  Copyright (c) 2005 - 2026 Annpoint s.r.o.
501
501
  https://www.daypilot.org/
502
502
  Licensed under Apache Software License 2.0
503
- Version: 2026.2.833-lite
503
+ Version: 2026.2.839-lite
504
504
  */
505
505
  "use strict";
506
506
  var DayPilot = { Global: {} };
@@ -1675,45 +1675,46 @@ var DayPilot = { Global: {} };
1675
1675
  }
1676
1676
  if (l.style.position = "absolute", l.style.top = "0px", l.style.left = "0px", l.style.display = "none", l.style.overflow = "hidden", l.style.zIndex = this.zIndex + 1, l.className = this._b("main"), l.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, a.rtl && (l.style.direction = "rtl", l.className += " " + a._b("direction_rtl")), this.hideOnMouseOut && (l.onmousemove = function () { clearTimeout(t.hideTimeout); }, l.onmouseleave = function () { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
1677
1677
  throw "No menu items defined.";
1678
- if (this.showMenuTitle) {
1679
- var c = document.createElement("div");
1680
- c.innerHTML = this.menuTitle, c.className = this._b("title"), l.appendChild(c);
1678
+ var c = document.createElement("div");
1679
+ if (c.className = this._b("main_inner"), l.appendChild(c), this.showMenuTitle) {
1680
+ var u = document.createElement("div");
1681
+ u.innerHTML = this.menuTitle, u.className = this._b("title"), c.appendChild(u);
1681
1682
  }
1682
- for (var u = 0; u < this.items.length; u++) {
1683
- var h = this.items[u], f = document.createElement("div");
1684
- if (DayPilot.Util.addClass(f, this._b("item")), h.items && (DayPilot.Util.addClass(f, this._b("item_haschildren")), DayPilot.Util.addClass(l, this._b("withchildren"))), "undefined" != typeof h && !h.hidden) {
1685
- if ("-" === h.text) {
1686
- var v = document.createElement("div");
1687
- v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
1683
+ for (var h = 0; h < this.items.length; h++) {
1684
+ var f = this.items[h], v = document.createElement("div");
1685
+ if (DayPilot.Util.addClass(v, this._b("item")), f.items && (DayPilot.Util.addClass(v, this._b("item_haschildren")), DayPilot.Util.addClass(l, this._b("withchildren"))), "undefined" != typeof f && !f.hidden) {
1686
+ if ("-" === f.text) {
1687
+ var p = document.createElement("div");
1688
+ p.addEventListener("click", function (e) { e.stopPropagation(); }), v.appendChild(p);
1688
1689
  }
1689
1690
  else {
1690
- var p = document.createElement("a");
1691
- if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
1692
- DayPilot.Util.addClass(p, a._b("item_disabled"));
1691
+ var m = document.createElement("a");
1692
+ if (m.style.position = "relative", m.style.display = "block", f.cssClass && DayPilot.Util.addClass(m, f.cssClass), f.disabled)
1693
+ DayPilot.Util.addClass(m, a._b("item_disabled"));
1693
1694
  else {
1694
- if (h.onclick || h.onClick) {
1695
- p.item = h, p.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
1695
+ if (f.onclick || f.onClick) {
1696
+ m.item = f, m.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
1696
1697
  var a = {};
1697
1698
  if (a.item = e, a.source = t.source, a.originalEvent = n, a.preventDefault = function () { a.preventDefault.value = !0; }, e.onClick(a), a.preventDefault.value)
1698
1699
  return void n.stopPropagation();
1699
- } e.onclick && e.onclick.call(t, n); }; }(h, p);
1700
- var m = function (e, t) { return function (e) { e.stopPropagation(), e.preventDefault(), t.source.calendar && t.source.calendar.internal.touch && (t.source.calendar.internal.touch.active = !0); }; }, g = function (e, n) { return function (a) { a.stopPropagation(), a.preventDefault(); var i = function () { window.setTimeout(function () { n.source.calendar && n.source.calendar.internal.touch && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
1700
+ } e.onclick && e.onclick.call(t, n); }; }(f, m);
1701
+ var g = function (e, t) { return function (e) { e.stopPropagation(), e.preventDefault(), t.source.calendar && t.source.calendar.internal.touch && (t.source.calendar.internal.touch.active = !0); }; }, y = function (e, n) { return function (a) { a.stopPropagation(), a.preventDefault(); var i = function () { window.setTimeout(function () { n.source.calendar && n.source.calendar.internal.touch && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
1701
1702
  var r = {};
1702
1703
  if (r.item = e, r.source = n.source, r.originalEvent = a, r.preventDefault = function () { r.preventDefault.value = !0; }, e.onClick(r), r.preventDefault.value)
1703
1704
  return void i();
1704
1705
  } e.onclick && e.onclick.call(n, a), t.menuClean(), i(); }; };
1705
- DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
1706
+ DayPilot.reNonPassive(m, "touchstart", g(f, m)), DayPilot.reNonPassive(m, "touchend", y(f, m));
1706
1707
  }
1707
- if (h.items && !h.disabled) {
1708
- var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.bc(e, t); }; };
1709
- p.ontouchend = y(h, p);
1708
+ if (f.items && !f.disabled) {
1709
+ var b = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), a.bc(e, t); }; };
1710
+ m.ontouchend = b(f, m);
1710
1711
  }
1711
- if (h.onclick)
1712
+ if (f.onclick)
1712
1713
  e();
1713
- else if (h.href)
1714
- p.href = h.href.replace(/\x7B0\x7D/gim, o), h.target && p.setAttribute("target", h.target);
1715
- else if (h.command) {
1716
- var y = function (e, t) { return function (n) { var a = t.source, i = e; i.action = i.action ? i.action : "CallBack"; var r = a.calendar || a.root; if (n.preventDefault(), a instanceof DayPilot.Link)
1714
+ else if (f.href)
1715
+ m.href = f.href.replace(/\x7B0\x7D/gim, o), f.target && m.setAttribute("target", f.target);
1716
+ else if (f.command) {
1717
+ var b = function (e, t) { return function (n) { var a = t.source, i = e; i.action = i.action ? i.action : "CallBack"; var r = a.calendar || a.root; if (n.preventDefault(), a instanceof DayPilot.Link)
1717
1718
  r.internal.linkMenuClick(i.command, a, i.action);
1718
1719
  else if (a instanceof DayPilot.Selection)
1719
1720
  r.internal.timeRangeMenuClick(i.command, a, i.action);
@@ -1731,67 +1732,72 @@ var DayPilot = { Global: {} };
1731
1732
  break;
1732
1733
  default: r.internal.eventMenuClick(i.command, a, i.action);
1733
1734
  } }; };
1734
- p.onclick = y(h, p), p.ontouchend = y(h, p);
1735
+ m.onclick = b(f, m), m.ontouchend = b(f, m);
1735
1736
  }
1736
1737
  }
1737
- h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
1738
- var b = document.createElement("span");
1739
- if (b.className = a._b("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
1740
- var w = document.createElement("img");
1741
- w.src = h.image, w.style.position = "absolute", w.style.top = "0px", a.rtl ? w.style.right = "0px" : w.style.left = "0px", p.appendChild(w);
1738
+ f.items && m.addEventListener("click", function (e) { e.stopPropagation(); }), m.source = s, m.menuSource = n;
1739
+ var w = document.createElement("span");
1740
+ if (w.className = a._b("item_text"), w.innerHTML = DayPilot.Util.escapeTextHtml(f.text, f.html), m.appendChild(w), f.image) {
1741
+ var x = document.createElement("img");
1742
+ x.src = f.image, x.style.position = "absolute", x.style.top = "0px", a.rtl ? x.style.right = "0px" : x.style.left = "0px", m.appendChild(x);
1742
1743
  }
1743
- if (h.icon) {
1744
- var x = document.createElement("span");
1745
- x.className = a._b("item_icon");
1746
- var _ = document.createElement("i");
1747
- _.className = h.icon, x.appendChild(_), p.appendChild(x);
1744
+ if (f.icon) {
1745
+ var _ = document.createElement("span");
1746
+ _.className = a._b("item_icon");
1747
+ var C = document.createElement("i");
1748
+ C.className = f.icon, _.appendChild(C), m.appendChild(_);
1748
1749
  }
1749
- if (h.symbol) {
1750
- var C = "http://www.w3.org/2000/svg", k = document.createElementNS(C, "svg");
1751
- k.setAttribute("width", "100%"), k.setAttribute("height", "100%");
1752
- var D = document.createElementNS(C, "use");
1753
- D.setAttribute("href", h.symbol), k.appendChild(D);
1754
- var M = document.createElement("span");
1755
- M.className = a._b("item_symbol"), M.style.position = "absolute", M.style.top = "0px", a.rtl ? M.style.right = "0px" : M.style.left = "0px", M.appendChild(k), p.appendChild(M);
1750
+ if (f.symbol) {
1751
+ var k = "http://www.w3.org/2000/svg", D = document.createElementNS(k, "svg");
1752
+ D.setAttribute("width", "100%"), D.setAttribute("height", "100%");
1753
+ var M = document.createElementNS(k, "use");
1754
+ M.setAttribute("href", f.symbol), D.appendChild(M);
1755
+ var S = document.createElement("span");
1756
+ S.className = a._b("item_symbol"), S.style.position = "absolute", S.style.top = "0px", a.rtl ? S.style.right = "0px" : S.style.left = "0px", S.appendChild(D), m.appendChild(S);
1756
1757
  }
1757
- var S = function (e, n) { return function () { var i = e, r = t.waitingSubmenu; if (r) {
1758
+ var T = function (e, n) { return function () { var i = e, r = t.waitingSubmenu; if (r) {
1758
1759
  if (r.parent === i)
1759
1760
  return;
1760
1761
  clearTimeout(r.timeout), t.waitingSubmenu = null;
1761
1762
  } e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = i, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.bc(i, n); }, 300)); }; };
1762
- p.onmouseover = S(h, p), f.appendChild(p);
1763
+ m.onmouseover = T(f, m), v.appendChild(m);
1763
1764
  }
1764
- l.appendChild(f);
1765
+ c.appendChild(v);
1765
1766
  }
1766
1767
  }
1767
- var T = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1768
- l.onclick = T, l.ontouchend = T, l.onmousedown = function (e) { e.stopPropagation(); }, l.oncontextmenu = function () { return !1; }, document.body.appendChild(l), a.$b.visible = !0, a.$b.source = n, l.style.display = "";
1769
- var E = l.offsetHeight, H = l.offsetWidth;
1768
+ var E = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
1769
+ l.onclick = E, l.ontouchend = E, l.onmousedown = function (e) { e.stopPropagation(); }, l.oncontextmenu = function () { return !1; }, document.body.appendChild(l), a.$b.visible = !0, a.$b.source = n, l.style.display = "";
1770
+ var H = l.offsetHeight, A = l.offsetWidth;
1770
1771
  l.style.display = "none";
1771
- var A = document.documentElement.clientHeight, N = window.innerWidth, I = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1772
+ var N = document.documentElement.clientHeight, I = window.innerWidth, R = "number" == typeof r.windowMargin ? r.windowMargin : 5;
1772
1773
  if (function () { var e = r.initiator; if (e) {
1773
1774
  var t = e.div, n = e.e, o = e.area, s = o.visibility || o.v || "Visible", l = e.a;
1774
1775
  if ("Visible" !== s && (l = DayPilot.Areas.createArea(t, n, o), t.appendChild(l), i = l), l) {
1775
1776
  var d = DayPilot.abs(l);
1776
1777
  r.x = d.x, r.y = d.y + d.h + 2, a.rtl && (r.x = d.x + d.w);
1777
1778
  }
1778
- } }(), function () { 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, d = 0; if (n - i > A - E && 0 !== A) {
1779
- s = n - (n - i - (A - E) + I);
1780
- }
1781
- else
1782
- s = n; if (a.$b.y = s, l.style.top = s + "px", ("right" === r.align || a.rtl) && (e -= H), e - o > N - H && 0 !== N) {
1783
- d = e - (e - o - (N - H) + I);
1784
- }
1785
- else
1786
- d = e; a.$b.x = d, l.style.left = d + "px"; }(), r.parentLink) {
1787
- var R = r.parentLink, z = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), U = P.x + R.offsetWidth;
1788
- a.rtl && (U = P.x - H);
1789
- var L = P.y - z;
1790
- U + H > N && (U = Math.max(0, P.x - H));
1791
- var B = document.body.scrollTop + document.documentElement.scrollTop;
1792
- L + E - B > A && (L = Math.max(0, A - E + B)), l.style.left = U + "px", l.style.top = L + "px";
1779
+ } }(), function () {
1780
+ 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, d = 0;
1781
+ if (n - i > N - H && 0 !== N) {
1782
+ s = n - (n - i - (N - H) + R);
1783
+ }
1784
+ else
1785
+ s = n;
1786
+ if (a.$b.y = s, l.style.top = s + "px", ("right" === r.align || a.rtl) && (e -= A), e - o > I - A && 0 !== I) {
1787
+ d = e - (e - o - (I - A) + R);
1788
+ }
1789
+ else
1790
+ d = e;
1791
+ a.$b.x = d, l.style.left = d + "px";
1792
+ }(), r.parentLink) {
1793
+ var P = r.parentLink, z = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), B = DayPilot.abs(r.parentLink.parentNode), L = B.x + P.offsetWidth;
1794
+ a.rtl && (L = B.x - A);
1795
+ var U = B.y - z;
1796
+ L + A > I && (L = Math.max(0, B.x - A));
1797
+ var j = document.body.scrollTop + document.documentElement.scrollTop;
1798
+ U + H - j > N && (U = Math.max(0, N - H + j)), l.style.left = L + "px", l.style.top = U + "px";
1793
1799
  }
1794
- l.style.display = "", this.addShadow(l), this.$b.div = l, r.submenu || (DayPilot.Menu.active = this);
1800
+ l.style.display = "", function () { l.offsetHeight > N - R && (l.style.height = N - R + "px", l.style.overflowY = "auto", l.onwheel = function (e) { e.stopPropagation(); }); }(), this.addShadow(l), this.$b.div = l, r.submenu || (DayPilot.Menu.active = this);
1795
1801
  }
1796
1802
  }, this.update = function () { if (a.$b.visible) {
1797
1803
  var e = a.$b.source;
@@ -1972,15 +1978,10 @@ var DayPilot = { Global: {} };
1972
1978
  } }, this.Ec = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1973
1979
  var e = t.Fc.scrollY();
1974
1980
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1975
- } }, this.Fc = {}, this.Fc.container = function () { return t.container || document.body; }, this.Fc.scrollY = function () { var e = t.Fc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1976
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.lc = function () {
1977
- var e = t.Fc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div");
1978
- 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);
1979
- var r = document.createElement("div");
1980
- 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.Bc), r.addEventListener("keydown", function (e) { e.stopPropagation(); });
1981
- var o = null;
1982
- 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;
1983
- }, 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.Gc || (t.stretch(), t.Gc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.rc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1981
+ } }, this.Fc = {}, this.Fc.container = function () { return t.container || document.body; }, this.Fc.scrollY = function () { var e = t.Fc.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) {
1982
+ e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n);
1983
+ }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1984
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.lc = function () { var e = t.Fc.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.Bc), 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.Gc || (t.stretch(), t.Gc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.rc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1984
1985
  var r = n[i], o = r.name;
1985
1986
  if (o) {
1986
1987
  var s = r.value;
@@ -2220,8 +2221,8 @@ var DayPilot = { Global: {} };
2220
2221
  e.Month = function (n, a) {
2221
2222
  this.v = "${v}", this.nav = {};
2222
2223
  var i = this;
2223
- 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",
2224
- 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.R = !1, this.S = {};
2224
+ 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,
2225
+ 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.R = !1, this.S = {};
2225
2226
  var r = this.S;
2226
2227
  this.Y = 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._(), i.md(), i.ia(), "Full" === t.UpdateType && (i.nd(), i.od()), i.na(), i.show(), i.oa(), 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) { var t = null; if (e instanceof DayPilot.Event)
2227
2228
  t = e.data;
@@ -2666,28 +2667,12 @@ var DayPilot = { Global: {} };
2666
2667
  for (var a in e)
2667
2668
  n[a] = e[a];
2668
2669
  n.Init(), t || (t = n);
2669
- } }); return 1 === this.length ? t : n; }; }(jQuery), function () {
2670
- var e = DayPilot.am();
2671
- e && e.directive("daypilotMonth", ["$parse", function (e) {
2672
- return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, n, a) {
2673
- var i = new DayPilot.Month(n[0]);
2674
- i.xa.scope = t, i.init();
2675
- var r = a["id"];
2676
- r && (t[r] = i);
2677
- var o = a["publishAs"];
2678
- if (o) {
2679
- (0, e(o).assign)(t, i);
2680
- }
2681
- for (var s in a)
2682
- 0 === s.indexOf("on") && !function (n) {
2683
- i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); };
2684
- }(s);
2685
- var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"];
2686
- l.call(t, d, function (e) { for (var t in e)
2687
- i[t] = e[t]; i.update(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0);
2688
- } };
2689
- }]);
2690
- }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2670
+ } }); return 1 === this.length ? t : n; }; }(jQuery),
2671
+ function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, n, a) { var i = new DayPilot.Month(n[0]); i.xa.scope = t, i.init(); var r = a["id"]; r && (t[r] = i); var o = a["publishAs"]; if (o) {
2672
+ (0, e(o).assign)(t, i);
2673
+ } for (var s in a)
2674
+ 0 === s.indexOf("on") && !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
2675
+ i[t] = e[t]; i.update(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0); } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
2691
2676
  }
2692
2677
  }(DayPilot), function (DayPilot) { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2693
2678
  var e = DayPilot.Util.isReactComponent, t = DayPilot.Util.isVueComponent, n = DayPilot.Util.isVueVNode;
@@ -3089,24 +3074,22 @@ var DayPilot = { Global: {} };
3089
3074
  var d = s.ne;
3090
3075
  this.oe = {};
3091
3076
  var c = this.oe, u = {};
3092
- this.scrollTo = function (e) { s.pe(e); }, this.pe = function (e) {
3093
- if (e) {
3094
- if (!s.Ra)
3095
- return void (s.qe = e);
3096
- var t;
3097
- if (e instanceof DayPilot.Date)
3098
- t = this.getPixels(e).left;
3099
- else if ("string" == typeof e)
3100
- t = this.getPixels(new DayPilot.Date(e)).left;
3101
- else {
3102
- if ("number" != typeof e)
3103
- throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
3104
- t = e;
3105
- }
3106
- var n = s.se.clientWidth, a = s.nav.scroll.clientWidth;
3107
- t < 0 && (t = 0), t > n - a && (t = n - a), s.te(t);
3077
+ this.scrollTo = function (e) { s.pe(e); }, this.pe = function (e) { if (e) {
3078
+ if (!s.Ra)
3079
+ return void (s.qe = e);
3080
+ var t;
3081
+ if (e instanceof DayPilot.Date)
3082
+ t = this.getPixels(e).left;
3083
+ else if ("string" == typeof e)
3084
+ t = this.getPixels(new DayPilot.Date(e)).left;
3085
+ else {
3086
+ if ("number" != typeof e)
3087
+ throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
3088
+ t = e;
3108
3089
  }
3109
- }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
3090
+ var n = s.se.clientWidth, a = s.nav.scroll.clientWidth;
3091
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.te(t);
3092
+ } }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
3110
3093
  t = s.ve(e);
3111
3094
  else {
3112
3095
  if (!(e instanceof DayPilot.Row))
@@ -3261,38 +3244,38 @@ var DayPilot = { Global: {} };
3261
3244
  case "Update": s.events.remove(e);
3262
3245
  }
3263
3246
  "function" == typeof s.onEventDeleted && s.onEventDeleted(t);
3264
- } }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.L = function (e, t, n, a, i) { function r() { if (!o.preventDefault.value) {
3247
+ } }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.L = function (e, t, n, a, i) { function r() { if (s.ef(), !o.preventDefault.value) {
3265
3248
  switch (o.loaded = {}, t = o.newStart, n = o.newEnd, s.eventResizeHandling) {
3266
- case "Update": s.ef(o);
3249
+ case "Update": s.ff(o);
3267
3250
  }
3268
3251
  "function" == typeof s.onEventResized && s.onEventResized(o);
3269
3252
  } } if ("Disabled" !== this.eventResizeHandling) {
3270
3253
  n = s.df(n);
3271
3254
  var o = {};
3272
3255
  o.e = e, o.async = !1, o.loaded = function () { r(); }, o.ctrl = !1, o.meta = !1, o.shift = !1, o.alt = !1, i && (o.shift = i.shiftKey, o.ctrl = i.ctrlKey, o.meta = i.metaKey, o.alt = i.altKey), o.newStart = t, o.newEnd = n, o.what = a, o.preventDefault = function () { this.preventDefault.value = !0; }, o.control = s, o.toJSON = function () { return DayPilot.Util.copyProps(o, {}, ["e", "async", "newStart", "newEnd"]); }, "function" == typeof s.onEventResize && s.onEventResize(o), o.async || r();
3273
- } }, this.Bb = function (e) { e = e || {}, clearTimeout(s.ff), s.timeHeader = null, s.cellProperties = {}, s.Re(), s.gf(), s.events.hf(), s.S.Vd(), s.clearSelection(), s.ia(), s.if(), s.jf(), s.ob(), s.Cb(), s.kf(), s.lf(), s.mf(), s.ja(), s._(), s.nf(), s.of = {}, s.pf(), s.na(), s.qf(), e.immediateEvents ? s.oa() : setTimeout(function () { s.oa(); }, 100), this.visible ? s.me !== s.visible && this.show() : this.hide(), this.me = this.visible, this.Be(), s.rf(), this.sf(); }, this.sf = function () { if ("function" == typeof s.onAfterUpdate) {
3256
+ } }, this.Bb = function (e) { e = e || {}, clearTimeout(s.gf), s.timeHeader = null, s.cellProperties = {}, s.Re(), s.hf(), s.events.if(), s.S.Vd(), s.clearSelection(), s.ia(), s.jf(), s.kf(), s.ob(), s.Cb(), s.lf(), s.mf(), s.nf(), s.ja(), s._(), s.of(), s.pf = {}, s.qf(), s.na(), s.rf(), e.immediateEvents ? s.oa() : setTimeout(function () { s.oa(); }, 100), this.visible ? s.me !== s.visible && this.show() : this.hide(), this.me = this.visible, this.Be(), s.sf(), this.tf(); }, this.tf = function () { if ("function" == typeof s.onAfterUpdate) {
3274
3257
  var e = {};
3275
3258
  s.onAfterUpdate(e);
3276
3259
  } }, this.update = function (e) { if (!s.Ra)
3277
3260
  throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (s.R)
3278
- 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."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.tf(e), u.timeout = setTimeout(u.doit)) : (u.tf(e), u.doit()); }, u.tf = function (e) { if (e) {
3261
+ 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."); u.request(e); }, u.timeout = null, u.options = null, u.enabled = !1, u.request = function (e) { u.enabled ? (clearTimeout(u.timeout), u.uf(e), u.timeout = setTimeout(u.doit)) : (u.uf(e), u.doit()); }, u.uf = function (e) { if (e) {
3279
3262
  u.options || (u.options = {});
3280
3263
  for (var t in e)
3281
3264
  u.options[t] = e[t];
3282
- } }, u.doit = function () { var e = u.options; return u.options = null, s.Ra ? (s.Db(e), s.Bb({ "immediateEvents": !0 }), void s.Gb()) : void s.Db(e); }, this.uf = function (e) { e.forEach(function (e) { s.vf(e.index); }); }, this.wf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.xf = function (e, t, n) { e = DayPilot.ua(e), e = s.wf(e), s.uf(e), this.yf ? (this.if(), this.lf(), this.nf(), e.forEach(function (e) { s.zf(e.index); }), e.forEach(function (e) { s.Af(e.index); }), this.qf(), this.Bf()) : (e.forEach(function (e) { t || s.zf(e.index), s.Af(e.index); }), e.forEach(function (e) { s.Cf(e.index); }), s.qf()), s.Ce(), n && n(), this.pf(); }, this.df = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.Df = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.Ef = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.N = function (e, t, n, a, i) { if (s.Ff = null, "Disabled" !== s.eventMoveHandling) {
3265
+ } }, u.doit = function () { var e = u.options; return u.options = null, s.Ra ? (s.Db(e), s.Bb({ "immediateEvents": !0 }), void s.Gb()) : void s.Db(e); }, this.vf = function (e) { e.forEach(function (e) { s.wf(e.index); }); }, this.xf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return s.rowlist[e]; }) : []; }, this.yf = function (e, t, n) { e = DayPilot.ua(e), e = s.xf(e), s.vf(e), this.zf ? (this.jf(), this.mf(), this.of(), e.forEach(function (e) { s.Af(e.index); }), e.forEach(function (e) { s.Bf(e.index); }), this.rf(), this.Cf()) : (e.forEach(function (e) { t || s.Af(e.index), s.Bf(e.index); }), e.forEach(function (e) { s.Df(e.index); }), s.rf()), s.Ce(), n && n(), this.qf(); }, this.df = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.Ef = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.Ff = function (e) { return "DateTime" === s.eventEndSpec ? e : e.getDatePart(); }, this.N = function (e, t, n, a, i) { if (s.Gf = null, "Disabled" !== s.eventMoveHandling) {
3283
3266
  n = s.df(n);
3284
3267
  var r = {};
3285
3268
  r.e = e, r.newStart = t, r.newEnd = n, r.newResource = a, r.ctrl = !1, r.meta = !1, r.shift = !1, r.alt = !1, i && (r.shift = i.shiftKey, r.ctrl = i.ctrlKey, r.meta = i.metaKey, r.alt = i.altKey), 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; };
3286
3269
  var o = function () { if (r.loaded = function () { }, r.preventDefault.value)
3287
- return void s.Gf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
3288
- case "Update": s.ef(r);
3289
- } s.Gf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
3270
+ return void s.Hf(); switch (t = r.newStart, n = r.newEnd, s.eventMoveHandling) {
3271
+ case "Update": s.ff(r);
3272
+ } s.Hf(), "function" == typeof s.onEventMoved && s.onEventMoved(r); };
3290
3273
  r.async = !1, r.loaded = function () { o(); }, "function" == typeof s.onEventMove && s.onEventMove(r), r.async || o();
3291
- } }, this.ef = 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.Hf(); }, this.If = function (e) { if (e)
3274
+ } }, this.ff = 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.If(); }, this.Jf = function (e) { if (e)
3292
3275
  if (e.args)
3293
3276
  s.P(e.args.start, e.args.end, e.args.resource);
3294
3277
  else {
3295
- var t = s.Jf(e);
3278
+ var t = s.Kf(e);
3296
3279
  if (!t)
3297
3280
  return;
3298
3281
  s.P(t.start, t.end, t.resource);
@@ -3305,31 +3288,31 @@ var DayPilot = { Global: {} };
3305
3288
  return;
3306
3289
  e = i.start, t = i.end;
3307
3290
  }
3308
- t = s.Df(t), s.Kf(s.Lf, e, t), s.Mf(s.Lf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
3309
- } }, this.Kf = function (e, t, n) { if (e) {
3291
+ t = s.Ef(t), s.Lf(s.Mf, e, t), s.Nf(s.Mf), "function" == typeof s.onTimeRangeSelected && s.onTimeRangeSelected(i);
3292
+ } }, this.Lf = function (e, t, n) { if (e) {
3310
3293
  var a, i = n;
3311
3294
  t.getTime() < s.startDate.getTime() ? (e.start.x = 0, e.start.time = s.startDate.getTime()) : (a = s.Ye(t), e.start.x = a.i, e.start.time = t);
3312
3295
  var r = s.startDate.addDays(s.days);
3313
- i.getTime() > r.getTime() ? (e.end.x = s.Nf(), e.end.time = r.getTime()) : (a = s.Ye(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
3314
- } }, this.Of = function (e, t) { s.Pf(e, t); }, this.Pf = 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.Qf = 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.Rf(e, t), i = s.Sf(a), r = s.We(a.start.x), o = s.We(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.Rf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ve(e), i = s.Ve(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.Tf(r).i, n.end.y = s.Tf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Nf(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Sf = function (e) { e || (e = this.Rf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
3296
+ i.getTime() > r.getTime() ? (e.end.x = s.Of(), e.end.time = r.getTime()) : (a = s.Ye(i.addMilliseconds(-1)), e.end.x = a.i, e.end.time = n);
3297
+ } }, this.Pf = function (e, t) { s.Qf(e, t); }, this.Qf = 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.Rf = 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.Sf(e, t), i = s.Tf(a), r = s.We(a.start.x), o = s.We(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.Sf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var a = s.Ve(e), i = s.Ve(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.Uf(r).i, n.end.y = s.Uf(o).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var l = s.Of(); return n.end.x >= l && (n.end.x = l - 1), n; }, this.Tf = function (e) { e || (e = this.Sf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
3315
3298
  var a = s.rowlist[n];
3316
3299
  a && t.push(a.id);
3317
3300
  } return t; }, this.M = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Cb = function () { s.nav.top.className !== s.M("_main") && (s.nav.top.className = s.M("_main"), s.nav.dh1.className = s.M("_divider_horizontal"), s.nav.dh2.className = s.M("_divider_horizontal"), s.divResScroll.className = s.M("_rowheader_scroll"), s.nav.divider.className = s.M("_divider") + " " + s.M("_splitter"), s.nav.scroll.className = s.M("_scrollable"), s.se.className = s.M("_matrix") + " " + s.M("_grid_main")); }, this.ca = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = s; if (e.Ra && !e.R) {
3318
3301
  e.R = !0;
3319
- for (var n in e.Uf) {
3320
- var a = e.Uf[n];
3302
+ for (var n in e.Vf) {
3303
+ var a = e.Vf[n];
3321
3304
  DayPilot.isArray(a) ? a.forEach(function (e) { clearTimeout(e); }) : clearTimeout(a);
3322
3305
  }
3323
3306
  e._(), 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.Qe = null, e.se.calendar = null, e.se = 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.Ac(e), c = null;
3324
- } }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Vf(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.M("_shadow"), h.className = this.M("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Tf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
3307
+ } }, this.disposed = function () { return s.R; }, this.da = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = s.eventBorderRadius; "number" == typeof n && (n += "px"); var a = s.Wf(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.M("_shadow"), h.className = this.M("_shadow_inner"), n && (u.style.borderRadius = n, h.style.borderRadius = n), s.divShadow.appendChild(u), u.calendar = s, u; }, this.Uf = function (e) { for (var t, n = s.rowlist, a = {}, i = 0, r = 0, o = n.length, l = 0; l < o; l++) {
3325
3308
  var d = n[l];
3326
3309
  if (r += d.height, i = r - d.height, t = d, a.top = i, a.bottom = r, a.i = l, a.element = t, e < r)
3327
3310
  break;
3328
- } return a; }, this.Wf = function (e) { if (e > this.rowlist.length - 1)
3311
+ } return a; }, this.Xf = function (e) { if (e > this.rowlist.length - 1)
3329
3312
  throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
3330
3313
  t += this.rowlist[n].height; var a = this.rowlist[e]; return { top: t - a.height, height: a.height, bottom: t, i: e, data: a }; }, this.events.find = function (e) { if (!s.events.list || "undefined" == typeof s.events.list.length)
3331
3314
  return null; if ("function" == typeof e)
3332
- return s.Xf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
3315
+ return s.Yf(e); for (var t = s.events.list.length, n = 0; n < t; n++)
3333
3316
  if (s.events.list[n].id === e)
3334
3317
  return new DayPilot.Event(s.events.list[n], s); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
3335
3318
  for (var t = s.events.list.length, n = [], a = 0; a < t; a++) {
@@ -3340,13 +3323,13 @@ var DayPilot = { Global: {} };
3340
3323
  } if ("object" == typeof e)
3341
3324
  return s.events.findAll(function (t) { for (var n in e)
3342
3325
  if (e[n] !== t.data[n])
3343
- return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Xf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
3326
+ return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Yf = function (e) { for (var t = s.events.list.length, n = 0; n < t; n++) {
3344
3327
  var a = new DayPilot.Event(s.events.list[n], s);
3345
3328
  if (e(a))
3346
3329
  return a;
3347
- } return null; }, this.events.focus = function (e) { var t = s.Yf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Yf(e)) {
3330
+ } return null; }, this.events.focus = function (e) { var t = s.Zf(e); null === t || void 0 === t ? void 0 : t.focus(); }, this.events.scrollIntoView = function (e) { if (s.Zf(e)) {
3348
3331
  var t = e.start(), n = s.getViewport();
3349
- !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.Zf(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
3332
+ !DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(s.ta(), s.$f(), e.start(), e.end()) && s.scrollTo(t, "fast", "middle");
3350
3333
  var a = e.resource();
3351
3334
  s.getViewport().resources.indexOf(a) === -1 && s.scrollToResource(a);
3352
3335
  } }, this.events.all = function () { for (var e = [], t = 0; t < s.events.list.length; t++) {
@@ -3372,42 +3355,42 @@ var DayPilot = { Global: {} };
3372
3355
  else {
3373
3356
  var r = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
3374
3357
  r += r.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.ajax({ "method": "GET", "url": r, "success": i, "error": a });
3375
- } }, this.events.$f = function (e) { var t = []; return s.rowlist.forEach(function (n) { s._f(n.index); for (var a = 0; a < n.events.length; a++) {
3358
+ } }, this.events._f = function (e) { var t = []; return s.rowlist.forEach(function (n) { s.ag(n.index); for (var a = 0; a < n.events.length; a++) {
3376
3359
  var i = n.events[a].data;
3377
- if (s.ag(i, e)) {
3360
+ if (s.bg(i, e)) {
3378
3361
  t.push(n), n.events.splice(a, 1);
3379
3362
  break;
3380
3363
  }
3381
- } }), t; }, this.events.bg = function (e) { if (!e)
3364
+ } }), t; }, this.events.cg = function (e) { if (!e)
3382
3365
  return null; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3383
3366
  var a = t[n];
3384
- s._f(a.index);
3367
+ s.ag(a.index);
3385
3368
  for (var i = 0; i < a.events.length; i++) {
3386
3369
  var r = a.events[i];
3387
- if (s.ag(r.data, e))
3370
+ if (s.bg(r.data, e))
3388
3371
  return a.events[i];
3389
3372
  }
3390
- } return null; }, this.events.cg = function (e) { var t = [], n = s.dg(), a = DayPilot.indexOf(s.events.list, e); s.Jb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
3391
- s._f(i.index);
3392
- var o = s.eg(e, i);
3373
+ } return null; }, this.events.dg = function (e) { var t = [], n = s.eg(), a = DayPilot.indexOf(s.events.list, e); s.Jb(a); var i = s.rowlist, r = !1; return i.forEach(function (i) { if (!r) {
3374
+ s.ag(i.index);
3375
+ var o = s.fg(e, i);
3393
3376
  o && ("function" == typeof s.onBeforeEventRender && (o.cache = s.Ib.events[a]), t.push(i), n || (r = !0));
3394
- } }), t; }, this.ag = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
3377
+ } }), t; }, this.bg = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
3395
3378
  var t = s.events.find(e.id);
3396
3379
  return s.events.remove(t), void s.events.add(e);
3397
- } if (s.events.list.find(function (t) { return s.ag(t, e.data); })) {
3398
- s.Me.fg && (s.Me.skip = !0);
3399
- var n = s.events.$f(e.data);
3400
- e.commit(), n = n.concat(s.events.cg(e.data)), s.events.gg(n);
3380
+ } if (s.events.list.find(function (t) { return s.bg(t, e.data); })) {
3381
+ s.Me.gg && (s.Me.skip = !0);
3382
+ var n = s.events._f(e.data);
3383
+ e.commit(), n = n.concat(s.events.dg(e.data)), s.events.hg(n);
3401
3384
  } }, this.events.remove = function (e) { if (e) {
3402
3385
  if ("string" == typeof e || "number" == typeof e) {
3403
3386
  var t = s.events.find(e);
3404
3387
  return void s.events.remove(t);
3405
3388
  }
3406
- var n = s.hg(e.data);
3407
- n && s.events.list.splice(n.index, 1), s.Me.fg && (s.Me.skip = !0);
3408
- var a = s.events.$f(e.data);
3409
- s.events.gg(a);
3410
- } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.hg(e); if (a) {
3389
+ var n = s.ig(e.data);
3390
+ n && s.events.list.splice(n.index, 1), s.Me.gg && (s.Me.skip = !0);
3391
+ var a = s.events._f(e.data);
3392
+ s.events.hg(a);
3393
+ } }, this.events.add = function (e, t, n) { n = n || {}; var a = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = s, s.events.list || (s.events.list = []); var i = s.ig(e); if (a) {
3411
3394
  if (!i)
3412
3395
  throw new DayPilot.Exception("Unexpected: event not found in list");
3413
3396
  }
@@ -3416,34 +3399,34 @@ var DayPilot = { Global: {} };
3416
3399
  throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
3417
3400
  i || s.events.list.push(e.data);
3418
3401
  } if (s.Ra) {
3419
- s.Me.fg && (s.Me.skip = !0);
3420
- var r = s.events.cg(e.data);
3421
- s.events.gg(r);
3422
- } }, this.events.ig = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.ag(t, e))
3402
+ s.Me.gg && (s.Me.skip = !0);
3403
+ var r = s.events.dg(e.data);
3404
+ s.events.hg(r);
3405
+ } }, this.events.jg = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), a = new DayPilot.Date(t.end); return !!s.events.list.find(function (e) { if (s.bg(t, e))
3423
3406
  return !1; if (t.resource !== e.resource)
3424
- return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.jg = { "rows": [] }, this.events.kg = null, this.events.hf = function () { clearTimeout(s.events.kg), s.events.kg = null, s.events.jg.rows = []; }, this.events.lg = 0, this.events.gg = function (e) { var t = s.events.jg.rows; e.forEach(function (e) { t.push(e); }), s.events.jg.rows = DayPilot.ua(t); var n = s.events.Hf; s.events.kg || (s.events.kg = setTimeout(n, s.events.lg)); }, this.events.Hf = function () { clearTimeout(s.events.kg), s.events.kg = null; var e = s.events.jg.rows; s.events.jg.rows = [], s.mg(e), s.ng(), s.Ra && (s.yf && s.if(), s.na(), s.xf(e)); }, this.Me = {}, this.Me.enabled = !1, this.Me.skip = !1, this.Me.skipUpdate = function () { return s.Me.skip; }, this.Me.skipped = function () { s.Me.skip = !1; }, this.Me.og = !1, this.Me.fg = !1, this.pg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
3407
+ return !1; var i = new DayPilot.Date(e.start), r = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, a, i, r); }); }, this.events.kg = { "rows": [] }, this.events.lg = null, this.events.if = function () { clearTimeout(s.events.lg), s.events.lg = null, s.events.kg.rows = []; }, this.events.mg = 0, this.events.hg = function (e) { var t = s.events.kg.rows; e.forEach(function (e) { t.push(e); }), s.events.kg.rows = DayPilot.ua(t); var n = s.events.If; s.events.lg || (s.events.lg = setTimeout(n, s.events.mg)); }, this.events.If = function () { clearTimeout(s.events.lg), s.events.lg = null; var e = s.events.kg.rows; s.events.kg.rows = [], s.ng(e), s.og(), s.Ra && (s.zf && s.jf(), s.na(), s.yf(e)); }, this.Me = {}, this.Me.enabled = !1, this.Me.skip = !1, this.Me.skipUpdate = function () { return s.Me.skip; }, this.Me.skipped = function () { s.Me.skip = !1; }, this.Me.pg = !1, this.Me.gg = !1, this.qg = function (e) { var t = s.startDate; if (e.ticks === t.ticks)
3425
3408
  return e; var n = t; if (e.ticks < t.ticks) {
3426
3409
  for (; n.ticks > e.ticks;)
3427
3410
  n = n.addTime(60 * -s.Ze() * 1e3);
3428
3411
  return n;
3429
3412
  } var a = this.Ye(e); if (a.current)
3430
- return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Vf = function (e) { var n = this.Tf(s.coords.y); if ("function" != typeof e.end)
3413
+ return a.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Wf = function (e) { var n = this.Uf(s.coords.y); if ("function" != typeof e.end)
3431
3414
  throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
3432
- throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.qg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.pg(e.start()).getTime()); var d = 0; if (t.rg)
3415
+ throw new DayPilot.Exception("e.end() returns null"); var a = DayPilot.DateUtil.diff(e.rawend(), e.start()); a = DayPilot.Util.atLeast(a, 1); var i = l.rg(a), r = 0, o = s.coords.x; i && (r = e.start().getTime() - this.qg(e.start()).getTime()); var d = 0; if (t.sg)
3433
3416
  if (i) {
3434
- var c = e.start(), u = this.pg(c);
3435
- d = t.rg.getTime() - u.getTime();
3417
+ var c = e.start(), u = this.qg(c);
3418
+ d = t.sg.getTime() - u.getTime();
3436
3419
  var h = 60 * s.Ze() * 1e3;
3437
3420
  d = Math.floor(d / h) * h;
3438
3421
  }
3439
3422
  else
3440
- d = t.rg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.sg && (f = e.start()); var v = s.snapToGrid; v && (f = this.pg(f)), f = f.addTime(r); 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, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Ze = function () { switch (this.scale) {
3423
+ d = t.sg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-d); t.tg && (f = e.start()); var v = s.snapToGrid; v && (f = this.qg(f)), f = f.addTime(r); 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, _ = {}; return _.top = n.top, _.left = w, _.row = n.element, _.rowIndex = n.i, _.width = x, _.start = f, _.end = p, _.relativeY = s.coords.y - n.top, _; }, this.Ze = function () { switch (this.scale) {
3441
3424
  case "CellDuration": return this.cellDuration;
3442
3425
  case "Minute": return 1;
3443
3426
  case "Hour": return 60;
3444
3427
  case "Day": return 1440;
3445
3428
  case "Week": return 10080;
3446
- } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.tg = function (e) { return e.end.ticks - e.start.ticks; }, this.ug = function () { var e = t.vg.width, n = t.vg.left, a = t.wg, i = t.sg.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.vg.start = r, t.vg.end = o; }, this.xg = function () { var e = s.coords, n = t.sg.dpBorder, a = t.sg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.sg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
3429
+ } throw new DayPilot.Exception("can't guess cellDuration value"); }, this.ug = function (e) { return e.end.ticks - e.start.ticks; }, this.vg = function () { var e = t.wg.width, n = t.wg.left, a = t.xg, i = t.tg.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.wg.start = r, t.wg.end = o; }, this.yg = function () { var e = s.coords, n = t.tg.dpBorder, a = t.tg.event, i = a.part.left; "right" === n && (i += a.part.width); var r, o, l = t.tg.event.calendar.cellWidth, d = a.part.width, c = a.part.left, u = 0, h = e.x - i, f = s.snapToGrid; if ("right" === n) {
3447
3430
  if (r = c, f) {
3448
3431
  var v = s.Ve(d + c + h).cell, p = s.Ve(c).cell, m = p.left + p.width - c;
3449
3432
  o = v.left + v.width - c, o < m && (o = m);
@@ -3451,42 +3434,42 @@ var DayPilot = { Global: {} };
3451
3434
  else
3452
3435
  o = d + h;
3453
3436
  var g = s.Ne();
3454
- c + o > g && (o = g - c), t.vg.left = c, t.vg.width = o, t.vg.style.left = c + "px", t.vg.style.width = o + "px";
3437
+ c + o > g && (o = g - c), t.wg.left = c, t.wg.width = o, t.wg.style.left = c + "px", t.wg.style.width = o + "px";
3455
3438
  }
3456
3439
  else {
3457
3440
  if ("left" !== n)
3458
3441
  throw new DayPilot.Exception("Invalid dpBorder.");
3459
3442
  f ? (h >= d && (h = d), r = Math.floor((c + h + 0) / l) * l, r < u && (r = u)) : r = c + h, o = d - (r - c);
3460
3443
  var y = c + d, b = l;
3461
- f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.vg.left = r, t.vg.width = o, t.vg.style.left = r + "px", t.vg.style.width = o + "px";
3462
- } s.ug(); }, this.yg = function () { if (s.coords && t.zg) {
3463
- var e = t.Ag, n = this.Vf(t.zg);
3444
+ f ? "Never" === s.useEventBoxes && (b = d < l ? d : 1) : b = 1, o < b && (o = b, r = y - o), t.wg.left = r, t.wg.width = o, t.wg.style.left = r + "px", t.wg.style.width = o + "px";
3445
+ } s.vg(); }, this.zg = function () { if (s.coords && t.Ag) {
3446
+ var e = t.Bg, n = this.Wf(t.Ag);
3464
3447
  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;
3465
- } }, this.Bg = function () { return this.rowHeaderWidth; }, this.Cg = function () { return this.Dg(s.progressiveRowRenderingPreload); }, this.Dg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
3448
+ } }, this.Cg = function () { return this.rowHeaderWidth; }, this.Dg = function () { return this.Eg(s.progressiveRowRenderingPreload); }, this.Eg = function (e) { e = e || 0; var t = 0, n = s.rowlist.length; if (s.progressiveRowRendering) {
3466
3449
  var a = s.xe();
3467
3450
  t = a.yStart, n = a.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(s.rowlist.length, n + e);
3468
- } return { "start": t, "end": n }; }, this.jf = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.Eg = !0; var t = this.Bg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.le + "px", s.divHeader = a, s.progressiveRowRendering)
3451
+ } return { "start": t, "end": n }; }, this.kf = function () { function e() { var e = s.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.Fg = !0; var t = this.Cg(); e(); var a = this.divHeader; if (a.style.width = t + "px", a.style.height = s.le + "px", s.divHeader = a, s.progressiveRowRendering)
3469
3452
  n();
3470
3453
  else
3471
3454
  for (var i = this.rowlist.length, r = 0; r < i; r++)
3472
- s.Fg(r); s.Gg(), this.divResScroll.appendChild(a); }, this.Hg = function () { if (s.progressiveRowRendering)
3473
- for (var e = this.Cg(), t = 0; t < s.rowlist.length; t++)
3474
- e.start <= t && t < e.end ? s.Fg(t) : s.Ig(t); }, this.Gg = function () { if (!s.S.Jg()) {
3455
+ s.Gg(r); s.Hg(), this.divResScroll.appendChild(a); }, this.Ig = function () { if (s.progressiveRowRendering)
3456
+ for (var e = this.Dg(), t = 0; t < s.rowlist.length; t++)
3457
+ e.start <= t && t < e.end ? s.Gg(t) : s.Jg(t); }, this.Hg = function () { if (!s.S.Kg()) {
3475
3458
  var e = s.divHeader, t = r();
3476
3459
  t.style.position = "absolute", e.appendChild(t), s.nav.resScrollSpace = t;
3477
3460
  var n = r();
3478
3461
  n.style.position = "relative", n.style.height = "100%", n.className = this.M("_rowheader"), t.appendChild(n);
3479
- var a = this.Bg();
3462
+ var a = this.Cg();
3480
3463
  t.style.width = a + "px", t.style.top = this.le + "px";
3481
- } }, this.Ig = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.vf = function (e) { this.Ig(e), this.Fg(e); }, this.Fg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3482
- var a = this.Bg(), i = t[e];
3464
+ } }, this.Jg = function (e) { var t = s.divHeader.rows[e]; t && (DayPilot.de(t), s.divHeader.rows[e] = null); }, this.wf = function (e) { this.Jg(e), this.Gg(e); }, this.Gg = function (e) { var t = s.rowlist, n = s.divHeader; if (n && !n.rows[e]) {
3465
+ var a = this.Cg(), i = t[e];
3483
3466
  if (i) {
3484
- var o = this.Kg(i), l = r();
3467
+ var o = this.Lg(i), l = r();
3485
3468
  l.style.position = "absolute", l.style.top = i.top + "px", n.rows[e] = l, l.row = i, l.index = e;
3486
3469
  var d = o.row, c = this.rowHeaderWidth;
3487
3470
  l.style.width = c + "px", l.style.border = "0px none";
3488
3471
  var u = d.toolTip || d.toolTip;
3489
- u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.Lg;
3472
+ u && (l.title = u), "undefined" != typeof d.ariaLabel ? l.setAttribute("aria-label", d.ariaLabel) : l.setAttribute("aria-label", d.text || ""), l.onclick = s.Mg;
3490
3473
  var h = r();
3491
3474
  h.style.width = c + "px", h.className = this.M("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
3492
3475
  var f = d.backColor || d.backColor;
@@ -3506,7 +3489,7 @@ var DayPilot = { Global: {} };
3506
3489
  case "center": m.style.justifyContent = "center";
3507
3490
  }
3508
3491
  h.appendChild(m);
3509
- var g = d.areas || [], y = s.Mg(i);
3492
+ var g = d.areas || [], y = s.Ng(i);
3510
3493
  DayPilot.Areas.attach(h, y, { areas: g });
3511
3494
  var b = r();
3512
3495
  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.M("_resourcedivider"), h.appendChild(b);
@@ -3525,46 +3508,50 @@ var DayPilot = { Global: {} };
3525
3508
  }
3526
3509
  l.appendChild(h), n.appendChild(l), h.style.width = a + "px";
3527
3510
  }
3528
- } }, this.Lg = function (e) { var t = this.row, n = s.Mg(t, this.index); s.Of(n, e); }, this.Ng = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3511
+ } }, this.Mg = function (e) { var t = this.row, n = s.Ng(t, this.index); s.Pf(n, e); }, this.Og = function () { if ("Disabled" !== s.timeHeaderClickHandling) {
3529
3512
  var e = {};
3530
- 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.Ze())), s.Qf(e);
3531
- } }, this.Og = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3513
+ 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.Ze())), s.Rf(e);
3514
+ } }, this.Pg = function (e) { if ("Disabled" !== s.timeHeaderRightClickHandling) {
3532
3515
  e.cancelBubble = !0, e.preventDefault();
3533
3516
  var t = {};
3534
3517
  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.Ze()));
3535
3518
  var n = {};
3536
3519
  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);
3537
- } }, this.Mg = function (e) { return new DayPilot.Row(e, s); }, this._f = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Pg = {}, this.ia = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3538
- throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); c.prepareRows(!0); var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender; s.Pg = {}; for (var i = 0; i < n.length; i++) {
3539
- var r = n[i];
3540
- if (r) {
3541
- if ("object" != typeof r)
3542
- throw new DayPilot.Exception("Event data item must be an object");
3543
- if (!r.start)
3544
- throw new DayPilot.Exception("Event data item must specify 'start' property");
3545
- if (r instanceof DayPilot.Event)
3546
- throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3547
- if (!("string" == typeof r.id || "number" == typeof r.id))
3548
- throw new DayPilot.Exception("All events must have an id property (string or number)");
3549
- var o = "_" + r.id;
3550
- if (s.Pg[o])
3551
- throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3552
- s.Pg[o] = !0, a && this.Jb(i), t = s.Qg(r.resource);
3553
- for (var l = 0; t && l < t.length; l++) {
3554
- var d = t[l], u = this.eg(r, d);
3555
- u && a && (u.cache = this.Ib.events[i]);
3520
+ } }, this.Ng = function (e) { return new DayPilot.Row(e, s); }, this.ag = function (e) { var t = s.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Qg = {}, this.ia = function (e) {
3521
+ if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
3522
+ throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object");
3523
+ c.prepareRows(!0);
3524
+ var t, n = this.events.list, a = "function" == typeof this.onBeforeEventRender;
3525
+ s.Qg = {};
3526
+ for (var i = 0; i < n.length; i++) {
3527
+ var r = n[i];
3528
+ if (r) {
3529
+ if ("object" != typeof r)
3530
+ throw new DayPilot.Exception("Event data item must be an object");
3531
+ if (!r.start)
3532
+ throw new DayPilot.Exception("Event data item must specify 'start' property");
3533
+ if (r instanceof DayPilot.Event)
3534
+ throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3535
+ if (!("string" == typeof r.id || "number" == typeof r.id))
3536
+ throw new DayPilot.Exception("All events must have an id property (string or number)");
3537
+ var o = "_" + r.id;
3538
+ if (s.Qg[o])
3539
+ throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + o);
3540
+ s.Qg[o] = !0, a && this.Jb(i), t = s.Rg(r.resource);
3541
+ for (var l = 0; t && l < t.length; l++) {
3542
+ var d = t[l], u = this.fg(r, d);
3543
+ u && a && (u.cache = this.Ib.events[i]);
3544
+ }
3556
3545
  }
3557
3546
  }
3558
- } s.rowlist.forEach(function (e) { s.Rg(e); }), s.ng(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3547
+ s.rowlist.forEach(function (e) { s.Sg(e); }), s.og();
3548
+ }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3559
3549
  var a = t[n];
3560
- if (e && a.resetEvents(), s._f(a.index), a.id) {
3550
+ if (e && a.resetEvents(), s.ag(a.index), a.id) {
3561
3551
  var i = typeof a.id + "_" + a.id;
3562
3552
  c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3563
3553
  }
3564
- } }, this.Qg = function (e) {
3565
- var t = typeof e + "_" + e;
3566
- return c.rowcache[t] || [];
3567
- }, this.dg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3554
+ } }, this.Rg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.eg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3568
3555
  var n = s.rowlist[t], a = n.id;
3569
3556
  if (e[a])
3570
3557
  return !0;
@@ -3573,31 +3560,31 @@ var DayPilot = { Global: {} };
3573
3560
  a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
3574
3561
  var r = {};
3575
3562
  r.e = a, r.data = a, this.onBeforeEventRender(r);
3576
- } t[e] = a; }, this.Rg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Kb); for (var t = 0; t < e.events.length; t++) {
3563
+ } t[e] = a; }, this.Sg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Kb); for (var t = 0; t < e.events.length; t++) {
3577
3564
  var n = e.events[t];
3578
3565
  e.putIntoLine(n);
3579
- } }, this.mg = function (e) { e = DayPilot.ua(e), e = s.wf(e), e.forEach(function (e) { s.Rg(e); }), e.forEach(function (e) { s.Sg(e); }); }, this.eg = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.Df(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3566
+ } }, this.ng = function (e) { e = DayPilot.ua(e), e = s.xf(e), e.forEach(function (e) { s.Sg(e); }), e.forEach(function (e) { s.Tg(e); }); }, this.fg = function (e, t) { var n = new DayPilot.Date(e.start), a = new DayPilot.Date(e.end); a = s.Ef(a); var i = n.ticks, r = a.ticks, o = s.startDate.ticks, d = s.startDate.addDays(s.days).ticks; if (r < i)
3580
3567
  return null; var c = null; if ("function" == typeof s.onBeforeEventRender) {
3581
3568
  var u = DayPilot.indexOf(s.events.list, e);
3582
3569
  c = s.Ib.events[u];
3583
3570
  } if (t.id !== e.resource || (r <= o || i >= d) && (i !== r || i !== o))
3584
- return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.qg(r - i)) {
3571
+ return null; var h = new DayPilot.Event(e, s); h.part.dayIndex = s.rowlist.indexOf(t), h.part.start = o < i ? n : s.startDate, h.part.end = d > r ? a : s.startDate.addDays(s.days); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (l.rg(r - i)) {
3585
3572
  var g = f.boxLeft, y = v.boxRight;
3586
3573
  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);
3587
3574
  }
3588
3575
  else
3589
3576
  h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = s.eventMinWidth; 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; }, this.Kb = function (e, t) { if (!(e && t && e.start && t.start))
3590
3577
  return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < s.rowlist.length; t++) {
3591
- var n = s.Mg(s.rowlist[t]);
3578
+ var n = s.Ng(s.rowlist[t]);
3592
3579
  e.push(n);
3593
3580
  } return e; }, 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) { if ("string" == typeof e || "number" == typeof e || !e && t) {
3594
- var n = s.Qg(e);
3581
+ var n = s.Rg(e);
3595
3582
  e || (n = s.rowlist);
3596
3583
  var a = null;
3597
3584
  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;
3598
3585
  } if ("function" != typeof e)
3599
- throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Mg(t)); }); if (r)
3600
- return s.Mg(r); }, this.rows.load = function (e, t, n) { if (!e)
3586
+ throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var i = t || 0, r = s.rowlist.find(function (t, n) { return !(n < i) && e(s.Ng(t)); }); if (r)
3587
+ return s.Ng(r); }, this.rows.load = function (e, t, n) { if (!e)
3601
3588
  throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, i = function (e) { var n, i = e.request; try {
3602
3589
  n = JSON.parse(i.responseText);
3603
3590
  }
@@ -3620,22 +3607,22 @@ var DayPilot = { Global: {} };
3620
3607
  if (e = s.rows.find(t.id), !e)
3621
3608
  return;
3622
3609
  e.data = t;
3623
- } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Tg(r), l = s.Ug(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s._f(l.index), s.Vg(l), s.Rg(l), s.vf(l.index), s.nf(), s.qf(); }, this.Vg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3610
+ } var n = e.index, a = s.rowlist, i = a[n], r = e.data, o = s.Ug(r), l = s.Vg(o); l.level = i.level, l.index = n, l.top = i.top, l.height = i.height, a[n] = l, l.resetEvents(), s.ag(l.index), s.Wg(l), s.Sg(l), s.wf(l.index), s.of(), s.rf(); }, this.Wg = function (e) { for (var t = s.events.list, n = t.length, a = "function" == typeof s.onBeforeEventRender, i = 0; i < n; i++) {
3624
3611
  var r = t[i];
3625
3612
  if (r) {
3626
3613
  if (r instanceof DayPilot.Event)
3627
3614
  throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
3628
3615
  if (r.resource === e.id) {
3629
3616
  a && this.Jb(i);
3630
- var o = this.eg(r, e);
3617
+ var o = this.fg(r, e);
3631
3618
  o && a && (o.cache = this.Ib.events[i]);
3632
3619
  }
3633
3620
  }
3634
- } }, this.gf = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3635
- throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Wg(e); }, this.ta = function () { return new DayPilot.Date(this.startDate); }, this.Zf = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.ta(); }, this.visibleEnd = function () { return this.Zf(); }, this.Ug = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.jb(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.Le, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
3636
- var r = e.events[i], o = s.Df(r.end());
3621
+ } }, this.hf = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
3622
+ throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], s.rowlist = [], this.Xg(e); }, this.ta = function () { return new DayPilot.Date(this.startDate); }, this.$f = function () { return new DayPilot.Date(s.startDate).addDays(s.days); }, this.visibleStart = function () { return this.ta(); }, this.visibleEnd = function () { return this.$f(); }, this.Vg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = s.jb(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.Le, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(s.eventHeight, this.lines.length * s.eventHeight); }, t.resetEvents = function () { var e = t; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : s.startDate.addDays(s.days); for (var a = [], i = 0; i < e.events.length; i++) {
3623
+ var r = e.events[i], o = s.Ef(r.end());
3637
3624
  DayPilot.Util.overlaps(r.start(), o, t, n) && a.push(r);
3638
- } return a; }; }, t.Xg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3625
+ } return a; }; }, t.Yg = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var a = e + t - 1, i = this.length, r = 0; r < i; r++) {
3639
3626
  var o = this[r];
3640
3627
  if (!(a < o.part.left || e > o.part.left + o.part.width - 1)) {
3641
3628
  if (DayPilot.contains(n, o.data))
@@ -3645,51 +3632,51 @@ var DayPilot = { Global: {} };
3645
3632
  } return !0; }, e; }, t.findFreeLine = function (e, n) { for (var a = 0; a < this.lines.length; a++) {
3646
3633
  if (this.lines[a].isFree(e, n))
3647
3634
  return a;
3648
- } var i = t.Xg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Wg = function (e) { if (e)
3635
+ } var i = t.Yg(); return this.lines.push(i), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Xg = function (e) { if (e)
3649
3636
  for (var t = s.rowlist, n = 0; n < e.length; n++)
3650
3637
  if (e[n]) {
3651
3638
  var a = {};
3652
3639
  a.index = n;
3653
- var i = this.Tg(e[n], a), r = s.Ug(i, parent);
3640
+ var i = this.Ug(e[n], a), r = s.Vg(i, parent);
3654
3641
  r.index = n, t.push(r);
3655
- } }, this.Kg = function (e) { var t = {}; return t.row = this.Mg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Tg = function (e, t) { var n = { get $data() { return this.Le; } }; for (var a in t)
3642
+ } }, this.Lg = function (e) { var t = {}; return t.row = this.Ng(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Ug = function (e, t) { var n = { get $data() { return this.Le; } }; for (var a in t)
3656
3643
  n[a] = t[a]; for (var i in e)
3657
- n[i] = e[i]; return n.html = s.jb(e.name, e.html), n.Le = e, n; }, this.Yg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.M("_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.Zg, this.nav.top.ontouchmove = d.$g, this.nav.top.ontouchend = d._g; 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.M("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.pb()), t.appendChild(n), t.appendChild(this.ah()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Pe() + this.gb() + "px", a.className = this.M("_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.Pe() + "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.M("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.bh()), i.appendChild(s.ch()), 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.M("_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.M("_divider_horizontal") + " " + this.M("_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.ja = function () { var e = this.Pe(); 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.dh = 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.eh = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.Cg(), a = n.start; a < n.end; a++) {
3644
+ n[i] = e[i]; return n.html = s.jb(e.name, e.html), n.Le = e, n; }, this.Zg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.M("_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.$g, this.nav.top.ontouchmove = d._g, this.nav.top.ontouchend = d.ah; 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.M("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.pb()), t.appendChild(n), t.appendChild(this.bh()); var a = r(); a.style.position = "absolute", a.style.left = e + "px", a.style.width = "1px", a.style.height = this.Pe() + this.gb() + "px", a.className = this.M("_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.Pe() + "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.M("_divider_horizontal"), this.nav.dh2 = o, i.appendChild(s.ch()), i.appendChild(s.dh()), 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.M("_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.M("_divider_horizontal") + " " + this.M("_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.ja = function () { var e = this.Pe(); 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.eh = 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.fh = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = s.Dg(), a = n.start; a < n.end; a++) {
3658
3645
  var i = t.rows[a];
3659
3646
  if (i) {
3660
3647
  var r = s.rowHeaderWidth;
3661
3648
  i.style.width = r + "px";
3662
3649
  i.firstChild.style.width = r + "px";
3663
3650
  }
3664
- } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.mf = function () { this.dh(), this.eh(); }, this.pb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Pe() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.M("_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.M("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Pe = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.fh = null, this.ah = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.gb() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.M("_rowheader_scroll"); var n = s.S.Jg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.gh = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.fh && clearTimeout(s.fh), n) {
3665
- var a = function () { var t = s.hh() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3666
- DayPilot.browser.ios ? t.gh && (s.fh = setTimeout(a, 10)) : s.fh = setTimeout(a, 10);
3651
+ } s.nav.resScrollSpace && (s.nav.resScrollSpace.style.width = e + "px"); }, this.nf = function () { this.eh(), this.fh(); }, this.pb = function () { var e = this.rowHeaderWidth, t = r(); s.nav.corner = t, t.style.width = e + "px", t.style.height = this.Pe() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.M("_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.M("_corner_inner"), n.innerHTML = "&nbsp;", this.divCorner = n, t.appendChild(n), t; }, this.Pe = function () { return s.timeHeaders ? s.timeHeaders.length * s.headerHeight : 0; }, this.gh = null, this.bh = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.gb() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = s.M("_rowheader_scroll"); var n = s.S.Kg(); n && (e.style.overflowY = "auto"), e.ontouchstart = function () { t.hh = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (s.gh && clearTimeout(s.gh), n) {
3652
+ var a = function () { var t = s.ih() - s.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), s.nav.scroll.scrollTop = e.scrollTop; };
3653
+ DayPilot.browser.ios ? t.hh && (s.gh = setTimeout(a, 10)) : s.gh = setTimeout(a, 10);
3667
3654
  }
3668
3655
  else
3669
- s.fh = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Qe = e, e; }, this.ih = null, this.jh = null, this.kh = function () { var e = function () { s.lh(), s.rf(); }, t = function () { var t = s.nav.top; if (t) {
3670
- if (!s.ih)
3671
- return s.ih = {}, void (s.ih.width = t.offsetWidth);
3672
- s.ih.width !== t.offsetWidth && (s.ih.width = t.offsetWidth, e());
3673
- } }; if (!s.jh) {
3656
+ s.gh = setTimeout(function () { s.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.Qe = e, e; }, this.jh = null, this.kh = null, this.lh = function () { var e = function () { s.mh(), s.sf(); }, t = function () { var t = s.nav.top; if (t) {
3657
+ if (!s.jh)
3658
+ return s.jh = {}, void (s.jh.width = t.offsetWidth);
3659
+ s.jh.width !== t.offsetWidth && (s.jh.width = t.offsetWidth, e());
3660
+ } }; if (!s.kh) {
3674
3661
  var n = new ResizeObserver(DayPilot.debounce(t, 100));
3675
- n.observe(s.nav.top), s.jh = n;
3676
- } }, this.lh = function () { s.R || (s.na(), s.mh(), s.Ib.drawArea = null); }, this.mh = function () { var e = s.Lf; s.clearSelection(), s.Lf = e, s.Mf(e, { "justDraw": !0 }); }, this.bh = 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.Pe() + "px", e.style.overflow = "hidden", e.className = s.M("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ne() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.gb = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.hh(), "Max" === t && e > s.height ? s.height : e); }, this.hh = function () { var e; return this.le !== -1 ? (e = this.le, this.le > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.ch = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.gb() + "px", e.style.top = this.Pe() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.M("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.se = r(); var t = this.se; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ne(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.nh, t.onmousemove = this.oh, t.onmouseup = this.ph, t.oncontextmenu = this.qh, t.className = this.M("_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.qh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.qh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.qh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.qh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e; }, this.Ab = function () { t.rh || (t.rh = !0, DayPilot.re(document, "mouseup", t.ke), DayPilot.reNonPassive(document, "touchmove", t.uh), DayPilot.re(document, "touchend", t.vh)); }, this.wh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.rf, s.xh = this.nav.scroll.scrollLeft, s.yh = this.nav.scroll.scrollTop, this.divNorth && (s.zh = this.divNorth.clientWidth); }, this.Ah = {}, this.Ah.step = 300, this.Ah.delay = 10, this.Ah.mode = "display", this.Ah.layers = !1, this.Sg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3662
+ n.observe(s.nav.top), s.kh = n;
3663
+ } }, this.mh = function () { s.R || (s.na(), s.nh(), s.Ib.drawArea = null); }, this.nh = function () { var e = s.Mf; s.clearSelection(), s.Mf = e, s.Nf(e, { "justDraw": !0 }); }, this.ch = 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.Pe() + "px", e.style.overflow = "hidden", e.className = s.M("_timeheader_scroll"), this.divTimeScroll = e; var t = r(); return t.style.width = this.Ne() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e; }, this.gb = function () { var e = 0, t = s.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = s.ih(), "Max" === t && e > s.height ? s.height : e); }, this.ih = function () { var e; return this.le !== -1 ? (e = this.le, this.le > 0 && "auto" === s.nav.scroll.style.overflowX && (e += DayPilot.sh(s.nav.scroll) + 1)) : e = this.rowlist.length * s.eventHeight, e; }, this.dh = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.gb() + "px", e.style.top = this.Pe() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.M("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.se = r(); var t = this.se; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ne(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.oh, t.onmousemove = this.ph, t.onmouseup = this.qh, t.oncontextmenu = this.rh, t.className = this.M("_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.rh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.rh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.rh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.rh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e; }, this.Ab = function () { t.uh || (t.uh = !0, DayPilot.re(document, "mouseup", t.ke), DayPilot.reNonPassive(document, "touchmove", t.vh), DayPilot.re(document, "touchend", t.wh)); }, this.xh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.sf, s.yh = this.nav.scroll.scrollLeft, s.zh = this.nav.scroll.scrollTop, this.divNorth && (s.Ah = this.divNorth.clientWidth); }, this.Bh = {}, this.Bh.step = 300, this.Bh.delay = 10, this.Bh.mode = "display", this.Bh.layers = !1, this.Tg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3677
3664
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3678
3665
  var r = a[i];
3679
3666
  r.part.line = n, r.part.top = t + s.rowMarginTop, r.part.right = r.part.left + r.part.width;
3680
3667
  }
3681
3668
  t += s.eventHeight;
3682
- } }, this.ff = null, this.oa = function (e) { if (!s.R) {
3683
- var t = this.Ah.step;
3684
- "display" === this.Ah.mode ? this.divEvents.style.display = "none" : "visibility" === this.Ah.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3669
+ } }, this.gf = null, this.oa = function (e) { if (!s.R) {
3670
+ var t = this.Bh.step;
3671
+ "display" === this.Bh.mode ? this.divEvents.style.display = "none" : "visibility" === this.Bh.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
3685
3672
  var n = "Progressive" === this.dynamicEventRendering, a = this.xe(), i = a.pixels.top, r = a.pixels.bottom;
3686
- s.rowlist.filter(function (e) { var t = e.top - l.Bh(), a = t + e.height + 2 * l.Bh(); return !n || !(a <= i || t >= r); }).forEach(function (n) { s.Sg(n); for (var a = 0; a < n.lines.length; a++)
3673
+ s.rowlist.filter(function (e) { var t = e.top - l.Ch(), a = t + e.height + 2 * l.Ch(); return !n || !(a <= i || t >= r); }).forEach(function (n) { s.Tg(n); for (var a = 0; a < n.lines.length; a++)
3687
3674
  for (var i = n.lines[a], r = 0; r < i.length; r++) {
3688
3675
  var o = i[r], l = s.bb(o);
3689
3676
  if (e && l && (t--, t <= 0))
3690
- return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.ff = setTimeout(function () { s.oa(e); }, s.Ah.delay));
3677
+ return s.divEvents.style.visibility = "", s.divEvents.style.display = "", void (s.gf = setTimeout(function () { s.oa(e); }, s.Bh.delay));
3691
3678
  } }), this.divEvents.style.display = "", this.Ce();
3692
- } }, this.Af = function (e) { var t = s.rowlist[e]; this.Sg(t); for (var n = 0; n < t.lines.length; n++)
3679
+ } }, this.Bf = function (e) { var t = s.rowlist[e]; this.Tg(t); for (var n = 0; n < t.lines.length; n++)
3693
3680
  for (var a = t.lines[n], i = 0; i < a.length; i++) {
3694
3681
  var r = a[i];
3695
3682
  this.bb(r);
@@ -3697,7 +3684,7 @@ var DayPilot = { Global: {} };
3697
3684
  for (var e = this.elements.events.length, t = 0; t < e; t++) {
3698
3685
  var n = this.elements.events[t];
3699
3686
  this.Va(n);
3700
- } this.elements.events = []; }, this.zf = function (e) { if (this.elements.events) {
3687
+ } this.elements.events = []; }, this.Af = function (e) { if (this.elements.events) {
3701
3688
  for (var t = this.elements.events.length, n = [], a = 0; a < t; a++) {
3702
3689
  var i = this.elements.events[a];
3703
3690
  i.event.part.dayIndex === e && (this.Va(i), n.push(a));
@@ -3710,17 +3697,17 @@ var DayPilot = { Global: {} };
3710
3697
  var a = s.Za.reactDOM && DayPilot.Util.isReactComponent(t.element), i = s.Ya.Xa && DayPilot.Util.isVueVNode(t.element);
3711
3698
  a ? s.Za.$a(n) : i && (s.Ya._a = !0, s.Ya.ab(n), s.Ya._a = !1);
3712
3699
  }
3713
- } e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.Ch = function () { if ("Progressive" === this.dynamicEventRendering) {
3700
+ } e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.Dh = function () { if ("Progressive" === this.dynamicEventRendering) {
3714
3701
  if (s.dynamicEventRenderingCacheSweeping) {
3715
3702
  var e = s.dynamicEventRenderingCacheSize || 0;
3716
3703
  this.divEvents.style.display = "none";
3717
3704
  for (var t = [], n = this.elements.events.length, a = n - 1; a >= 0; a--) {
3718
3705
  var i = this.elements.events[a];
3719
- this.Dh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Va(i) : t.unshift(i);
3706
+ this.Eh(i.event) ? e > 0 ? (e--, t.unshift(i)) : this.Va(i) : t.unshift(i);
3720
3707
  }
3721
3708
  this.elements.events = t, this.divEvents.style.display = "";
3722
3709
  }
3723
- } }, this.Eh = function (e) { for (var t = this.xe(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3710
+ } }, this.Fh = function (e) { for (var t = this.xe(), n = this.elements.cells.length, a = n - 1; a >= 0; a--) {
3724
3711
  var i = this.elements.cells[a];
3725
3712
  t.xStart < i.coords.x && i.coords.x <= t.xEnd && t.yStart < i.coords.y && i.coords.y <= t.yEnd || (e > 0 ? e-- : this.qb(i));
3726
3713
  } }, this.qb = function (e) { if (e && e.coords) {
@@ -3732,27 +3719,27 @@ var DayPilot = { Global: {} };
3732
3719
  a ? s.Za.$a(n) : i && (s.Ya._a = !0, s.Ya.ab(n), s.Ya._a = !1);
3733
3720
  }
3734
3721
  } }(), DayPilot.rfa(s.elements.cells, e), DayPilot.de(e), s.Ib.cells[t + "_" + n] = null;
3735
- } }, this.Fh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3736
- return !1; for (var t = this.nav.scroll.scrollTop - l.Bh(), n = t + this.nav.scroll.clientHeight + 2 * l.Bh(), a = 0; a < this.rowlist.length; a++) {
3722
+ } }, this.Gh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
3723
+ return !1; for (var t = this.nav.scroll.scrollTop - l.Ch(), n = t + this.nav.scroll.clientHeight + 2 * l.Ch(), a = 0; a < this.rowlist.length; a++) {
3737
3724
  var i = this.rowlist[a], r = i.top, o = i.top + i.height;
3738
3725
  if (!e || !(r >= n || o <= t))
3739
3726
  for (var s = 0; s < i.lines.length; s++)
3740
3727
  for (var d = i.lines[s], c = 0; c < d.length; c++) {
3741
3728
  var u = d[c];
3742
- if (this.Gh(u))
3729
+ if (this.Hh(u))
3743
3730
  return !0;
3744
3731
  }
3745
- } return !1; }, this.Gh = function (e) { if (e.rendered)
3746
- return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.Hh(), a = n + this.nav.scroll.clientWidth + 2 * l.Hh(), i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.Dh = function (e) { if (!e.rendered)
3732
+ } return !1; }, this.Hh = function (e) { if (e.rendered)
3733
+ return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft - l.Ih(), a = n + this.nav.scroll.clientWidth + 2 * l.Ih(), i = e.part.left, r = e.part.left + e.part.width; return !t || !(a <= i || n >= r); }, this.Eh = function (e) { if (!e.rendered)
3747
3734
  return !0; var t = this.xe(), 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; return r <= o || i >= l || (a <= d || n >= c); }, this.bb = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
3748
- return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.xe(), v = f.pixels.left - l.Hh(), p = f.pixels.right + l.Hh(), 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; if (!n && a && (_ || C))
3749
- return !1; var k = e.part.width, D = s.eventHeight, M = e.cache || e.data, S = M.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var T = M.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D); var E = r(); E.style.position = "absolute", E.style.left = e.part.left + "px", E.style.top = h + e.part.top + "px", E.style.width = k + "px", E.style.height = D + "px", s.eventTextWrappingEnabled || (E.style.whiteSpace = "nowrap"), E.style.overflow = "hidden", E.className = this.M("_event"), M.cssClass && DayPilot.Util.addClass(E, M.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(E, this.M("_event_line" + e.part.line)), S && (E.style.borderRadius = S), this.showToolTip && (E.title = e.client.toolTip() || ""), E.onmousemove = this.Ih, E.onmousedown = this.Jh, E.onmouseup = this.Kh, E.ontouchstart = d.Lh, E.ontouchmove = d.Mh, E.ontouchend = d.Nh, e.client.clickEnabled() && (E.onclick = this.$e), "undefined" != typeof M.ariaLabel ? E.setAttribute("aria-label", M.ariaLabel) : E.setAttribute("aria-label", M.text), E.setAttribute("tabindex", "-1"); var H = r(); H.className = s.M("_event_inner"), S && (H.style.borderRadius = S), T && (H.style.padding = T), M.backColor && (H.style.background = M.backColor), M.fontColor && (H.style.color = M.fontColor), "darker" === M.borderColor && M.backColor ? H.style.borderColor = DayPilot.ColorUtil.darker(M.backColor, 2) : H.style.borderColor = M.borderColor, M.backImage && (H.style.backgroundImage = "url(" + M.backImage + ")", M.backRepeat && (H.style.backgroundRepeat = M.backRepeat)), E.appendChild(H); var A = e.start().getTime() === e.part.start.getTime(), N = e.rawend().getTime() === e.part.end.getTime(); if (A || DayPilot.Util.addClass(E, this.M("_event_continueleft")), N || DayPilot.Util.addClass(E, this.M("_event_continueright")), e.client.barVisible() && k > 0) {
3750
- var I = 100 * e.part.barLeft / k, R = Math.ceil(100 * e.part.barWidth / k), z = r();
3751
- z.className = this.M("_event_bar"), z.style.position = "absolute", M.barBackColor && (z.style.backgroundColor = M.barBackColor);
3752
- var P = r();
3753
- P.className = this.M("_event_bar_inner"), P.style.left = I + "%", 0 < R && R <= 1 ? P.style.width = "1px" : P.style.width = R + "%", M.barColor && (P.style.backgroundColor = M.barColor), M.barImageUrl && (P.style.backgroundImage = "url(" + M.barImageUrl + ")"), z.appendChild(P), E.appendChild(z);
3735
+ return !1; var a = "Progressive" === this.dynamicEventRendering, i = e.part.dayIndex, o = s.divEvents, c = s.rowlist, u = c[i], h = u.top, f = this.xe(), v = f.pixels.left - l.Ih(), p = f.pixels.right + l.Ih(), 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; if (!n && a && (_ || C))
3736
+ return !1; var k = e.part.width, D = s.eventHeight, M = e.cache || e.data, S = M.borderRadius || s.eventBorderRadius; "number" == typeof S && (S += "px"); var T = M.padding || s.eventPadding; "number" == typeof T && (T += "px"), k = DayPilot.Util.atLeast(0, k), D = DayPilot.Util.atLeast(0, D); var E = r(); E.style.position = "absolute", E.style.left = e.part.left + "px", E.style.top = h + e.part.top + "px", E.style.width = k + "px", E.style.height = D + "px", s.eventTextWrappingEnabled || (E.style.whiteSpace = "nowrap"), E.style.overflow = "hidden", E.className = this.M("_event"), M.cssClass && DayPilot.Util.addClass(E, M.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(E, this.M("_event_line" + e.part.line)), S && (E.style.borderRadius = S), this.showToolTip && (E.title = e.client.toolTip() || ""), E.onmousemove = this.Jh, E.onmousedown = this.Kh, E.onmouseup = this.Lh, E.ontouchstart = d.Mh, E.ontouchmove = d.Nh, E.ontouchend = d.Oh, e.client.clickEnabled() && (E.onclick = this.$e), "undefined" != typeof M.ariaLabel ? E.setAttribute("aria-label", M.ariaLabel) : E.setAttribute("aria-label", M.text), E.setAttribute("tabindex", "-1"); var H = r(); H.className = s.M("_event_inner"), S && (H.style.borderRadius = S), T && (H.style.padding = T), M.backColor && (H.style.background = M.backColor), M.fontColor && (H.style.color = M.fontColor), "darker" === M.borderColor && M.backColor ? H.style.borderColor = DayPilot.ColorUtil.darker(M.backColor, 2) : H.style.borderColor = M.borderColor, M.backImage && (H.style.backgroundImage = "url(" + M.backImage + ")", M.backRepeat && (H.style.backgroundRepeat = M.backRepeat)), E.appendChild(H); var A = e.start().getTime() === e.part.start.getTime(), N = e.rawend().getTime() === e.part.end.getTime(); if (A || DayPilot.Util.addClass(E, this.M("_event_continueleft")), N || DayPilot.Util.addClass(E, this.M("_event_continueright")), e.client.barVisible() && k > 0) {
3737
+ var I = 100 * e.part.barLeft / k, R = Math.ceil(100 * e.part.barWidth / k), P = r();
3738
+ P.className = this.M("_event_bar"), P.style.position = "absolute", M.barBackColor && (P.style.backgroundColor = M.barBackColor);
3739
+ var z = r();
3740
+ z.className = this.M("_event_bar_inner"), z.style.left = I + "%", 0 < R && R <= 1 ? z.style.width = "1px" : z.style.width = R + "%", M.barColor && (z.style.backgroundColor = M.barColor), M.barImageUrl && (z.style.backgroundImage = "url(" + M.barImageUrl + ")"), P.appendChild(z), E.appendChild(P);
3754
3741
  } E.row = i, E.event = e, function () { if ("function" != typeof s.onBeforeEventDomAdd && "function" != typeof s.onBeforeEventDomRemove)
3755
- return void s.Oh(H, M.text, M.html); var t = {}; if (t.control = s, t.e = e, t.element = null, E.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3742
+ return void s.Ph(H, M.text, M.html); var t = {}; if (t.control = s, t.e = e, t.element = null, E.domArgs = t, "function" == typeof s.onBeforeEventDomAdd && s.onBeforeEventDomAdd(t), t.element) {
3756
3743
  var n = H;
3757
3744
  if (n) {
3758
3745
  t.Wa = n;
@@ -3772,95 +3759,95 @@ var DayPilot = { Global: {} };
3772
3759
  }
3773
3760
  }
3774
3761
  else
3775
- H.innerHTML = e.client.innerHTML(); }(); var U = []; return function () { "Disabled" === s.eventDeleteHandling || M.deleteDisabled || U.push({ v: "Hover", w: 18, h: 18, top: "calc(50% - 9px)", right: 2, action: "None", css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } }); }(), M.areas && (U = U.concat(M.areas)), DayPilot.Areas.attach(E, e, { areas: U }), this.elements.events.push(E), o.appendChild(E), e.rendered = !0, !0; }, this.jb = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Oh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.Bf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3762
+ H.innerHTML = e.client.innerHTML(); }(); var B = []; return function () { "Disabled" === s.eventDeleteHandling || M.deleteDisabled || B.push({ v: "Hover", w: 18, h: 18, top: "calc(50% - 9px)", right: 2, action: "None", css: s.M("_event_delete"), onClick: function (e) { s.za(e.source); } }); }(), M.areas && (B = B.concat(M.areas)), DayPilot.Areas.attach(E, e, { areas: B }), this.elements.events.push(E), o.appendChild(E), e.rendered = !0, !0; }, this.jb = function (e, t) { return s.S.ea() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ph = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.S.ea() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.Cf = function () { for (var e = 0; e < this.elements.events.length; e++) {
3776
3763
  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;
3777
3764
  n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
3778
- } }, this.Ph = function (e) { if (!e)
3765
+ } }, this.Qh = function (e) { if (!e)
3779
3766
  return null; for (var t = 0; t < s.elements.events.length; t++) {
3780
3767
  var n = s.elements.events[t];
3781
3768
  if (n.event === e || n.event.data === e.data)
3782
3769
  return n;
3783
- } return null; }, this.Yf = function (e) { var t = s.events.bg(e.data); if (!t)
3784
- return null; var n = s.rowlist[t.part.dayIndex]; return s.Sg(n), s.bb(t, { "forced": !0 }), s.Ph(t); }, this.Ih = function (e) { for (var t = e.currentTarget; t && !t.event;)
3785
- t = t.parentNode; s.Qh(t, e), s.cf(e); }, this.af = {}, this.Jh = function (e) { s.cf(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t._e = !0, t.sg = this, t.wg = this.event, t.Rh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Sh(this, e)); }, this.Kh = function (e) { DayPilot.Util.mouseButton(e).right && s.ya.call(this, e); }, this.Sh = function (e, t) { var n = s.af; s.cf(t), n.Th = !0, n.af = e, n.zg = e.event, n.Rh = DayPilot.mc(t), n.Uh = DayPilot.mo3(e, t).x, n.rg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, d.Uf = [], d.relativeCoords = function (e) { return d.Vh(e); };
3786
- d.startResizing = function (e, t) { d.Wh(e, t); };
3787
- d.startMoving = function (e, t) { d.Sh(e, t); }, d.Lh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3788
- t.stopPropagation(), d.Xh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3770
+ } return null; }, this.Zf = function (e) { var t = s.events.cg(e.data); if (!t)
3771
+ return null; var n = s.rowlist[t.part.dayIndex]; return s.Tg(n), s.bb(t, { "forced": !0 }), s.Qh(t); }, this.Jh = function (e) { for (var t = e.currentTarget; t && !t.event;)
3772
+ t = t.parentNode; s.Rh(t, e), s.cf(e); }, this.af = {}, this.Kh = function (e) { s.cf(e); var n = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), n.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (t._e = !0, t.tg = this, t.xg = this.event, t.Sh = DayPilot.mc(e), i().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && s.Th(this, e)); }, this.Lh = function (e) { DayPilot.Util.mouseButton(e).right && s.ya.call(this, e); }, this.Th = function (e, t) { var n = s.af; s.cf(t), n.Uh = !0, n.af = e, n.Ag = e.event, n.Sh = DayPilot.mc(t), n.Vh = DayPilot.mo3(e, t).x, n.sg = s.getDate(s.coords.x, !0); }, "undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, d.Vf = [], d.relativeCoords = function (e) { return d.Wh(e); };
3773
+ d.startResizing = function (e, t) { d.Xh(e, t); };
3774
+ d.startMoving = function (e, t) { d.Th(e, t); }, d.Mh = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
3775
+ t.stopPropagation(), d.Yh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3789
3776
  var n = t.currentTarget;
3790
- s.coords = d.Vh(t);
3777
+ s.coords = d.Wh(t);
3791
3778
  var a = s.tapAndHoldTimeout;
3792
- d.Uf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3779
+ d.Vf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var a = n.event; switch (s.eventTapAndHoldHandling) {
3793
3780
  case "Move": if (a.client.moveEnabled()) {
3794
3781
  var i = e(t);
3795
- d.Sh(n, i);
3782
+ d.Th(n, i);
3796
3783
  }
3797
3784
  } }, a));
3798
- } }, d.Mh = function () { d.Xh(), DayPilot.Global.touch.start = !1; }, d.Nh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3799
- if (d.Xh(), DayPilot.Global.touch.start) {
3785
+ } }, d.Nh = function () { d.Yh(), DayPilot.Global.touch.start = !1; }, d.Oh = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
3786
+ if (d.Yh(), DayPilot.Global.touch.start) {
3800
3787
  DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
3801
3788
  var t = e.currentTarget;
3802
3789
  setTimeout(function () { s.bf(t, e); });
3803
3790
  }
3804
3791
  setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
3805
- } }, d.Zg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3806
- d.Xh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3792
+ } }, d.$g = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === s.timeRangeSelectedHandling)) {
3793
+ d.Yh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
3807
3794
  var t = s.tapAndHoldTimeout;
3808
- d.Uf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.coords = d.Vh(e), d.Yh = s.Zh(); }, t));
3809
- s.coords = d.Vh(e);
3810
- } }, d.$g = function (e) { if (d.Xh(), DayPilot.Global.touch.start = !1, t.sg)
3811
- return e.preventDefault(), void d.$h(); if (DayPilot.Global.touch.active) {
3812
- if (e.preventDefault(), s.coords = d.Vh(e), t.af)
3813
- return void d._h();
3814
- if (d.Yh) {
3815
- var n = d.Yh;
3816
- n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.Mf(n);
3795
+ d.Vf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.coords = d.Wh(e), d.Zh = s.$h(); }, t));
3796
+ s.coords = d.Wh(e);
3797
+ } }, d._g = function (e) { if (d.Yh(), DayPilot.Global.touch.start = !1, t.tg)
3798
+ return e.preventDefault(), void d._h(); if (DayPilot.Global.touch.active) {
3799
+ if (e.preventDefault(), s.coords = d.Wh(e), t.af)
3800
+ return void d.ai();
3801
+ if (d.Zh) {
3802
+ var n = d.Zh;
3803
+ n.end = { x: Math.floor(s.coords.x / s.cellWidth), "time": s.getDate(s.coords.x, !0) }, s.Nf(n);
3817
3804
  }
3818
- } }, d.debug = function () { }, d._g = function (e) { d.Xh(); if (DayPilot.Global.touch.active) {
3805
+ } }, d.debug = function () { }, d.ah = function (e) { d.Yh(); if (DayPilot.Global.touch.active) {
3819
3806
  if (t.af) {
3820
3807
  e.preventDefault();
3821
- var n = t.zg;
3822
- if (s !== t.Ag.calendar)
3808
+ var n = t.Ag;
3809
+ if (s !== t.Bg.calendar)
3823
3810
  return;
3824
- var a = t.Ag.start, r = t.Ag.end, o = t.Ag.row.id;
3825
- DayPilot.Util.removeClass(t.af, s.M("_event_moving_source")), DayPilot.de(t.Ag), t.Ag.calendar = null, i().style.cursor = "", t.af = null, t.zg = null, t.Ag = null, s.N(n, a, r, o);
3811
+ var a = t.Bg.start, r = t.Bg.end, o = t.Bg.row.id;
3812
+ DayPilot.Util.removeClass(t.af, s.M("_event_moving_source")), DayPilot.de(t.Bg), t.Bg.calendar = null, i().style.cursor = "", t.af = null, t.Ag = null, t.Bg = null, s.N(n, a, r, o);
3826
3813
  }
3827
- if (d.Yh) {
3828
- var l = d.Yh;
3829
- d.Yh = null;
3814
+ if (d.Zh) {
3815
+ var l = d.Zh;
3816
+ d.Zh = null;
3830
3817
  var c = s.elements.range2;
3831
- c && c.overlapping ? s.clearSelection() : s.If(l);
3818
+ c && c.overlapping ? s.clearSelection() : s.Jf(l);
3832
3819
  }
3833
3820
  }
3834
3821
  else if (DayPilot.Global.touch.start) {
3835
3822
  if (s.coords.x < s.getScrollX())
3836
3823
  return;
3837
- var l = s.Zh();
3838
- s.Mf(l);
3824
+ var l = s.$h();
3825
+ s.Nf(l);
3839
3826
  var c = s.elements.range2;
3840
- c && c.overlapping ? s.clearSelection() : s.If(l);
3841
- } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Xh = function () { for (var e = 0; e < d.Uf.length; e++)
3842
- clearTimeout(d.Uf[e]); d.Uf = []; }, d.Vh = 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.se, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Sh = function (e, n) { t.af = e, t.zg = e.event, t.Rh = n; var a = DayPilot.abs(e); t.Uh = n.x - a.x, t.rg = s.getDate(s.coords.x, !0), t.Ag = s.da(e), s.yg(); }, d.Wh = function (e, n) { t.sg = e, t.wg = e.event, t.sg.dpBorder = n, t.vg || (t.vg = s.da(e)), s.xg(); }, d.$h = function () { if (!t.vg) {
3843
- var e = t.sg;
3844
- t.vg = s.da(e);
3845
- } s.xg(); }, d._h = function () { if (!t.Ag) {
3827
+ c && c.overlapping ? s.clearSelection() : s.Jf(l);
3828
+ } setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, d.Yh = function () { for (var e = 0; e < d.Vf.length; e++)
3829
+ clearTimeout(d.Vf[e]); d.Vf = []; }, d.Wh = 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.se, a = e.touches ? e.touches[0] : e; return t(a.pageX, a.pageY, n); }, d.Th = function (e, n) { t.af = e, t.Ag = e.event, t.Sh = n; var a = DayPilot.abs(e); t.Vh = n.x - a.x, t.sg = s.getDate(s.coords.x, !0), t.Bg = s.da(e), s.zg(); }, d.Xh = function (e, n) { t.tg = e, t.xg = e.event, t.tg.dpBorder = n, t.wg || (t.wg = s.da(e)), s.yg(); }, d._h = function () { if (!t.wg) {
3830
+ var e = t.tg;
3831
+ t.wg = s.da(e);
3832
+ } s.yg(); }, d.ai = function () { if (!t.Bg) {
3846
3833
  var e = t.af;
3847
- t.Ag = s.da(e);
3848
- } t.Ag.calendar.yg(); }, this.Qh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3834
+ t.Bg = s.da(e);
3835
+ } t.Bg.calendar.zg(); }, this.Rh = function (e, n) { var a = this.eventResizeMargin, i = e; if ("undefined" != typeof t) {
3849
3836
  var r = DayPilot.mo3(e, n);
3850
- if (r && (s.eventOffset = r, !t.sg && !t.af)) {
3837
+ if (r && (s.eventOffset = r, !t.tg && !t.af)) {
3851
3838
  var o = i.event.part.start.toString() === i.event.start().toString(), l = i.event.part.end.toString() === i.event.rawend().toString();
3852
- 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.sg || t.af || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3839
+ 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.tg || t.af || (i.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
3853
3840
  }
3854
- } }, this.Nf = function () { var e = s.Ze(); return s.days * (1440 / e); }, this.Jf = function (e) { if (e = e || t.Yh || s.Lf, !e)
3841
+ } }, this.Of = function () { var e = s.Ze(); return s.days * (1440 / e); }, this.Kf = function (e) { if (e = e || t.Zh || s.Mf, !e)
3855
3842
  return null; var n = s.rowlist[e.start.y]; if (!n)
3856
- return null; 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; u ? (a = s.We(d).start, i = s.We(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.kf = function () { this.Ib.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3843
+ return null; 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; u ? (a = s.We(d).start, i = s.We(c).end) : o ? (a = r.start.time, i = r.end.time) : (a = r.end.time, i = r.start.time); var h = new DayPilot.Selection(a, i, l, s); return h.allowed = !e.div || !e.div.overlapping, h; }, this.lf = function () { this.Ib.timeHeader = {}, s.elements.timeHeader.length > 0 && (s.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
3857
3844
  for (var n = this.timeHeader[t], a = 0; a < n.length; a++)
3858
- this.ai(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ne(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ue = function (e, t) { var n = null, a = this.S.Te(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3845
+ this.bi(a, t); var i = this.divNorth; 1 === i.childNodes.length ? i.replaceChild(e, i.childNodes[0]) : (i.innerHTML = "", i.appendChild(e)); var o = this.Ne(); i.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Ue = function (e, t) { var n = null, a = this.S.Te(); t = t || this.cellGroupBy; var i = e.start; switch (t) {
3859
3846
  case "Minute":
3860
3847
  n = i.toString("m");
3861
3848
  break;
3862
3849
  case "Hour":
3863
- n = "Clock12Hours" === s.S.bi() ? i.toString("h tt", a) : i.toString("H", a);
3850
+ n = "Clock12Hours" === s.S.ci() ? i.toString("h tt", a) : i.toString("H", a);
3864
3851
  break;
3865
3852
  case "Day":
3866
3853
  n = i.toString(a.datePattern);
@@ -3882,10 +3869,10 @@ var DayPilot = { Global: {} };
3882
3869
  break;
3883
3870
  case "Cell":
3884
3871
  var r = (e.end.ticks - e.start.ticks) / 6e4;
3885
- n = this.ci(i, r);
3872
+ n = this.di(i, r);
3886
3873
  break;
3887
3874
  default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
3888
- } return n; }, this.ci = function (e, t) { var n = this.S.Te(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.S.bi() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.fa() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Se = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3875
+ } return n; }, this.di = function (e, t) { var n = this.S.Te(); return t = t || this.cellDuration, t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === s.S.ci() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === l.fa() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Se = function (e, t, n) { var a, i = s.startDate.addDays(s.days); t = t || this.cellGroupBy; var r = 60; switch (t) {
3889
3876
  case "Minute":
3890
3877
  e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), a = e.addMinutes(1);
3891
3878
  break;
@@ -3923,77 +3910,75 @@ var DayPilot = { Global: {} };
3923
3910
  d.current && (a = d.current.end);
3924
3911
  break;
3925
3912
  default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
3926
- } return a.getTime() > i.getTime() && (a = i), a; }, this.ai = 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.Ng, u.oncontextmenu = this.Og, 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.jb(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor); var f = this.M("_timeheadercol"), v = this.M("_timeheadercol_inner"); i && (f = this.M("_timeheadergroup"), v = this.M("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.M("_timeheader_cell")), DayPilot.Util.addClass(h, s.M("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.Ib.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.ob = function () {
3927
- var e = this.nav.corner;
3928
- if (e) {
3929
- var t = this.divCorner;
3930
- e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () {
3931
- var e = {};
3932
- e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null,
3933
- e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e);
3934
- var t = s.divCorner;
3935
- if (t) {
3936
- var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
3937
- if (t.innerHTML = n || "", e.backColor && (t.style.background = e.backColor), a || i) {
3938
- switch (t.style.display = "flex", a) {
3939
- case "right":
3940
- t.style.justifyContent = "flex-end";
3941
- break;
3942
- case "left":
3943
- t.style.justifyContent = "flex-start";
3944
- break;
3945
- case "center": t.style.justifyContent = "center";
3946
- }
3947
- switch (i) {
3948
- case "center":
3949
- t.style.alignItems = "center";
3950
- break;
3951
- case "top":
3952
- t.style.alignItems = "flex-start";
3953
- break;
3954
- case "bottom": t.style.alignItems = "flex-end";
3955
- }
3956
- }
3913
+ } return a.getTime() > i.getTime() && (a = i), a; }, this.bi = function (e, t) {
3914
+ 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();
3915
+ 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.Og, u.oncontextmenu = this.Pg, DayPilot.rePassive(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", s.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap");
3916
+ var h = r();
3917
+ h.innerHTML = s.jb(a.text, a.html), a.backColor && (h.style.background = a.backColor), a.fontColor && (h.style.color = a.fontColor);
3918
+ var f = this.M("_timeheadercol"), v = this.M("_timeheadercol_inner");
3919
+ i && (f = this.M("_timeheadergroup"), v = this.M("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, s.M("_timeheader_cell")), DayPilot.Util.addClass(h, s.M("_timeheader_cell_inner")),
3920
+ u.appendChild(h), DayPilot.Areas.attach(u, a, { areas: a.areas }), this.Ib.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u);
3921
+ }, this.ob = function () { var e = this.nav.corner; if (e) {
3922
+ var t = this.divCorner;
3923
+ e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () { var e = {}; e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null, e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e); var t = s.divCorner; if (t) {
3924
+ var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
3925
+ if (t.innerHTML = n || "", e.backColor && (t.style.background = e.backColor), a || i) {
3926
+ switch (t.style.display = "flex", a) {
3927
+ case "right":
3928
+ t.style.justifyContent = "flex-end";
3929
+ break;
3930
+ case "left":
3931
+ t.style.justifyContent = "flex-start";
3932
+ break;
3933
+ case "center": t.style.justifyContent = "center";
3957
3934
  }
3958
- e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas });
3959
- }();
3960
- }
3961
- }, this.ng = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.yf = !0), e.height = t; }), s.yf && (s.Ib.drawArea = null); }, this.lf = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3935
+ switch (i) {
3936
+ case "center":
3937
+ t.style.alignItems = "center";
3938
+ break;
3939
+ case "top":
3940
+ t.style.alignItems = "flex-start";
3941
+ break;
3942
+ case "bottom": t.style.alignItems = "flex-end";
3943
+ }
3944
+ }
3945
+ } e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas }); }();
3946
+ } }, this.og = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.zf = !0), e.height = t; }), s.zf && (s.Ib.drawArea = null); }, this.mf = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3962
3947
  var n = e.index;
3963
3948
  if (t.rows[n]) {
3964
3949
  var a = t.rows[n];
3965
- s.Eg && (a.style.top = e.top + "px");
3950
+ s.Fg && (a.style.top = e.top + "px");
3966
3951
  var i = e.height;
3967
3952
  a && a.firstChild && parseInt(a.firstChild.style.height, 10) !== i && (a.firstChild.style.height = i + "px");
3968
3953
  }
3969
- } }), s.Eg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.le + "px"); }, this.nh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3954
+ } }), s.Fg && s.nav.resScrollSpace && (s.nav.resScrollSpace.style.top = s.le + "px"); }, this.oh = function (e) { if (DayPilot.Global.touch.start || DayPilot.Global.touch.active)
3970
3955
  return !1; if (s.cf(e), "Disabled" === s.timeRangeSelectedHandling)
3971
- return !1; var n = DayPilot.Util.mouseButton(e); if ("undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.di())
3956
+ return !1; var n = DayPilot.Util.mouseButton(e); if ("undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.ei())
3972
3957
  return !1; if (n.middle || n.right)
3973
- return !1; if (s.ei(s.coords))
3974
- return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.fi = a, t.Yh = s.Zh(), t.Yh && (t.gi = s), !1; }, this.Zh = function () { var e = {}, t = s.Ve(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Tf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.Mf(e), e; }, this.ph = function (e) { if (s.af = {}, s.Lf) {
3958
+ return !1; if (s.fi(s.coords))
3959
+ return !1; var a = n.left ? "left" : n.right ? "right" : n.middle ? "middle" : "unknown"; return s.gi = a, t.Zh = s.$h(), t.Zh && (t.hi = s), !1; }, this.$h = function () { var e = {}, t = s.Ve(s.coords.x).x, n = s.getDate(s.coords.x, !0); return e.start = { y: s.Uf(s.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = s, s.Nf(e), e; }, this.qh = function (e) { if (s.af = {}, s.Mf) {
3975
3960
  if (DayPilot.Util.mouseButton(e).left) {
3976
- var n = s.Lf;
3977
- if (s.ei(s.coords)) {
3978
- var a = function (e) { return function () { t.hi = null; var n = s.Jf(e); if (n) {
3961
+ var n = s.Mf;
3962
+ if (s.fi(s.coords)) {
3963
+ var a = function (e) { return function () { t.ii = null; var n = s.Kf(e); if (n) {
3979
3964
  var a = {};
3980
3965
  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);
3981
3966
  } }; };
3982
3967
  "Disabled" !== s.timeRangeClickHandling && a(n)();
3983
3968
  }
3984
3969
  }
3985
- } }, this.di = function () { return !!(t.sg || t.af || t.Yh) || !!s.af.Th; }, this.dragInProgress = function () { return s.di(); }, this.cf = function (e) { var t = DayPilot.mo3(s.se, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.oh = function (e) { if (!DayPilot.Global.touch.active) {
3970
+ } }, this.ei = function () { return !!(t.tg || t.af || t.Zh) || !!s.af.Uh; }, this.dragInProgress = function () { return s.ei(); }, this.cf = function (e) { var t = DayPilot.mo3(s.se, e); t = t || {}, t.stamp = t.x + "_" + t.y, s.coords && s.coords.stamp === t.stamp || (s.coords = t); }, this.ph = function (e) { if (!DayPilot.Global.touch.active) {
3986
3971
  var n = DayPilot.mc(e);
3987
- if (s.cf(e), s.af.Th) {
3988
- DayPilot.distance(s.af.Rh, n) > 2 && (DayPilot.Util.copyProps(s.af, t), i().style.cursor = "move", s.af = {});
3972
+ if (s.cf(e), s.af.Uh) {
3973
+ DayPilot.distance(s.af.Sh, n) > 2 && (DayPilot.Util.copyProps(s.af, t), i().style.cursor = "move", s.af = {});
3989
3974
  }
3990
- t.sg && t.wg.calendar === s ? (t.sg.event || (t.sg.event = t.wg), s.ii()) : t.zg ? s.ji() : t.Yh && t.Yh.calendar === s && (t.Yh.moved = !0, s.ki());
3991
- } }, this.ki = function () { var e = t.Yh, n = s.Ve(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.Mf(e); }, this.ii = function () { t.vg || (t.vg = s.da(t.sg)), s.xg(); }, this.ji = function () { if (!t.Ag) {
3975
+ t.tg && t.xg.calendar === s ? (t.tg.event || (t.tg.event = t.xg), s.ji()) : t.Ag ? s.ki() : t.Zh && t.Zh.calendar === s && (t.Zh.moved = !0, s.li());
3976
+ } }, this.li = function () { var e = t.Zh, n = s.Ve(s.coords.x).x, a = s.getDate(s.coords.x, !0); e.end = { x: n, "time": a }, s.Nf(e); }, this.ji = function () { t.wg || (t.wg = s.da(t.tg)), s.yg(); }, this.ki = function () { if (!t.Bg) {
3992
3977
  DayPilot.Util.addClass(t.af, s.M("_event_moving_source"));
3993
- var e = t.zg;
3994
- t.Ag = s.da(e);
3995
- } s.yg(); }, this.qh = function (e) { return e.cancelBubble = !0, !1; }, this.ei = function (e) { var t = s.Lf; if (!t || !t.start || !t.end)
3996
- return !1; var n = this.Wf(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; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.Mf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3978
+ var e = t.Ag;
3979
+ t.Bg = s.da(e);
3980
+ } s.zg(); }, this.rh = function (e) { return e.cancelBubble = !0, !1; }, this.fi = function (e) { var t = s.Mf; if (!t || !t.start || !t.end)
3981
+ return !1; var n = this.Xf(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; return e.x >= i && e.x <= r && e.y >= o && e.y <= l; }, this.Nf = function (e) { function n(e) { var t, n, l, d, c = e.end.time > e.start.time, u = e.start.y, h = e.start.time && e.end.time; if (i || !h) {
3997
3982
  var f = c ? e.start.x : e.end.x, v = c ? e.end.x : e.start.x, p = s.We(f), m = s.We(v);
3998
3983
  t = p.left, n = m.left + m.width;
3999
3984
  }
@@ -4002,13 +3987,13 @@ var DayPilot = { Global: {} };
4002
3987
  y = r(), y.style.position = "absolute";
4003
3988
  var b = r();
4004
3989
  b.className = s.M("_shadow_inner"), a && (y.style.borderRadius = a, b.style.borderRadius = a), y.appendChild(b), s.divShadow.appendChild(y);
4005
- } return y.className = s.M("_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; } if (e = e || t.Yh) {
3990
+ } return y.className = s.M("_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; } if (e = e || t.Zh) {
4006
3991
  var a = s.eventBorderRadius;
4007
3992
  "number" == typeof a && (a += "px");
4008
3993
  var i = s.snapToGrid, o = s.rowlist;
4009
3994
  n(e);
4010
- } }, this.li = 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 () { if (!s.coords)
4011
- return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Tf(e.y, e.grid).element; return e.row = s.Mg(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var a; if ("number" == typeof e)
3995
+ } }, this.mi = 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 () { if (!s.coords)
3996
+ return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Uf(e.y, e.grid).element; return e.row = s.Ng(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var a; if ("number" == typeof e)
4012
3997
  a = s.zoomLevels[e];
4013
3998
  else {
4014
3999
  if ("string" != typeof e)
@@ -4026,63 +4011,63 @@ var DayPilot = { Global: {} };
4026
4011
  break;
4027
4012
  case "right": t = n.end;
4028
4013
  } return t; }, this.zoom.Qa = function (e, t) { var n = s.zoomLevels.length - 1; e > n && (e = n), e < 0 && (e = 0), s.zoom.active = e; var a = s.zoomLevels[e], i = {}; return i.date = t || new DayPilot.Date(s.startDate), i.level = a, DayPilot.Util.ownPropsAsArray(a.properties).forEach(function (e) { if (0 !== e.key.indexOf("on"))
4029
- return "function" == typeof e.val ? void (s[e.key] = e.val(i)) : void (s[e.key] = e.val); }), i; }, this.Uf = {}, this.Uf.oa = null, this.Uf.drawCells = null, this.Uf.drawRows = null, this.Uf.click = null, this.Uf.resClick = [], this.Uf.updateFloats = null, this.rf = function () { if (!s.R) {
4030
- "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.pf();
4014
+ return "function" == typeof e.val ? void (s[e.key] = e.val(i)) : void (s[e.key] = e.val); }), i; }, this.Vf = {}, this.Vf.oa = null, this.Vf.drawCells = null, this.Vf.drawRows = null, this.Vf.click = null, this.Vf.resClick = [], this.Vf.updateFloats = null, this.sf = function () { if (!s.R) {
4015
+ "undefined" != typeof DayPilot.Menu && DayPilot.Menu.hide(), s.qf();
4031
4016
  var e = s.nav.scroll;
4032
- if (s.xh = e.scrollLeft, s.yh = e.scrollTop, s.zh = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.xh), DayPilot.browser.ios && t.gh ? n() : s.divResScroll.scrollTop = s.yh, s.progressiveRowRendering && (s.Uf.drawRows && (clearTimeout(s.Uf.drawRows), s.Uf.drawRows = null), s.scrollDelayRows > 0 ? s.Uf.drawRows = setTimeout(function () { s.Hg(); }, s.scrollDelayRows) : s.Hg()), s.Uf.drawCells && (clearTimeout(s.Uf.drawCells), s.Uf.drawCells = null), s.scrollDelayCells > 0)
4033
- s.Uf.drawCells = setTimeout(s.mi(), s.scrollDelayCells);
4017
+ if (s.yh = e.scrollLeft, s.zh = e.scrollTop, s.Ah = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.yh), DayPilot.browser.ios && t.hh ? n() : s.divResScroll.scrollTop = s.zh, s.progressiveRowRendering && (s.Vf.drawRows && (clearTimeout(s.Vf.drawRows), s.Vf.drawRows = null), s.scrollDelayRows > 0 ? s.Vf.drawRows = setTimeout(function () { s.Ig(); }, s.scrollDelayRows) : s.Ig()), s.Vf.drawCells && (clearTimeout(s.Vf.drawCells), s.Vf.drawCells = null), s.scrollDelayCells > 0)
4018
+ s.Vf.drawCells = setTimeout(s.ni(), s.scrollDelayCells);
4034
4019
  else {
4035
- s.mi()();
4020
+ s.ni()();
4036
4021
  }
4037
- if (s.Uf.oa && (clearTimeout(s.Uf.oa), s.Uf.oa = null), s.scrollDelayEvents > 0 ? s.Uf.oa = setTimeout(s.ni(), s.scrollDelayEvents) : s.oa(), s.Uf.updateFloats && (clearTimeout(s.Uf.updateFloats), s.Uf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Uf.updateFloats = setTimeout(function () { s.Be(); }, s.scrollDelayFloats) : s.Be(), s.onScrollCalled = !0, "function" == typeof s.onScroll) {
4022
+ if (s.Vf.oa && (clearTimeout(s.Vf.oa), s.Vf.oa = null), s.scrollDelayEvents > 0 ? s.Vf.oa = setTimeout(s.oi(), s.scrollDelayEvents) : s.oa(), s.Vf.updateFloats && (clearTimeout(s.Vf.updateFloats), s.Vf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Vf.updateFloats = setTimeout(function () { s.Be(); }, s.scrollDelayFloats) : s.Be(), s.onScrollCalled = !0, "function" == typeof s.onScroll) {
4038
4023
  var a = { control: s, viewport: s.getViewport() };
4039
4024
  s.onScroll(a);
4040
4025
  }
4041
- } }, this.mi = function () { return function () { s && s.qf(); }; }, this.ni = function () { return function () { s && (s.Fh() ? setTimeout(function () { s.Ch(), setTimeout(function () { s.oa(!0); }, 50); }, 50) : s.Ce()); }; }, this.pf = function () { s.Ib.drawArea = null; }, this.show = function () { s.visible = !0, s.me = !0, s.nav.top.style.display = "", s.z(), s.lh(), s.rf(); }, this.hide = function () { s.visible = !1, s.me = !1, s.nav.top.style.display = "none"; }, this.hg = function (e) { if (!s.events.list)
4026
+ } }, this.ni = function () { return function () { s && s.rf(); }; }, this.oi = function () { return function () { s && (s.Gh() ? setTimeout(function () { s.Dh(), setTimeout(function () { s.oa(!0); }, 50); }, 50) : s.Ce()); }; }, this.qf = function () { s.Ib.drawArea = null; }, this.show = function () { s.visible = !0, s.me = !0, s.nav.top.style.display = "", s.z(), s.mh(), s.sf(); }, this.hide = function () { s.visible = !1, s.me = !1, s.nav.top.style.display = "none"; }, this.ig = function (e) { if (!s.events.list)
4042
4027
  return null; for (var t = 0; t < this.events.list.length; t++) {
4043
4028
  var n = this.events.list[t];
4044
- if (s.ag(n, e)) {
4029
+ if (s.bg(n, e)) {
4045
4030
  var a = {};
4046
4031
  return a.ex = n, a.index = t, a;
4047
4032
  }
4048
- } return null; }, this.oi = function () { var e = this.xe(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
4033
+ } return null; }, this.pi = function () { var e = this.xe(), t = e.xStart, n = e.xEnd - e.xStart, a = e.yStart, i = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
4049
4034
  for (var o = t + r, s = 0; s < i; s++) {
4050
4035
  var l = a + s;
4051
4036
  this.rd(o, l);
4052
4037
  }
4053
- this.pi(o);
4054
- } for (var d = this.Cg(), l = d.start; l < d.end; l++)
4055
- this.qi(l); }, this.qf = function () { if (!s.R) {
4038
+ this.qi(o);
4039
+ } for (var d = this.Dg(), l = d.start; l < d.end; l++)
4040
+ this.ri(l); }, this.rf = function () { if (!s.R) {
4056
4041
  var e = s.rowlist;
4057
4042
  if (e && e.length > 0) {
4058
4043
  if (this.cellSweeping) {
4059
4044
  var t = this.cellSweepingCacheSize;
4060
- this.Eh(t);
4045
+ this.Fh(t);
4061
4046
  }
4062
- this.oi();
4047
+ this.pi();
4063
4048
  }
4064
- this.yf = !1;
4049
+ this.zf = !1;
4065
4050
  } }, this.xe = function () { if (s.Ib.drawArea)
4066
4051
  return s.Ib.drawArea; if (!this.nav.scroll)
4067
- return null; var e = s.yh, t = {}, n = l.Hh(), a = l.Bh(), i = s.xh - n, r = i + s.zh + 2 * n, o = 0, d = 0; o = s.Ve(i).x, d = s.Ve(r, !0).x; var c = this.Nf(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Tf(u).i, v = this.Tf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; 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.Ib.drawArea = t, t; }, this.Ne = function () { return s.Nf() * s.cellWidth; }, this.qi = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.Ib.linesHorizontal[a]) {
4052
+ return null; var e = s.zh, t = {}, n = l.Ih(), a = l.Ch(), i = s.yh - n, r = i + s.Ah + 2 * n, o = 0, d = 0; o = s.Ve(i).x, d = s.Ve(r, !0).x; var c = this.Of(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - a, h = e + this.nav.scroll.offsetHeight + 2 * a, f = this.Uf(u).i, v = this.Uf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; 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.Ib.drawArea = t, t; }, this.Ne = function () { return s.Of() * s.cellWidth; }, this.ri = function (e) { var t = s.rowlist, n = s.divLines, a = "y_" + e; if (!this.Ib.linesHorizontal[a]) {
4068
4053
  var i = t[e], o = i.height, l = i.top + o - 1, d = this.Ne(), c = r();
4069
4054
  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.M("_matrix_horizontal_line"), n.appendChild(c), this.Ib.linesHorizontal[a] = c;
4070
- } }, this.pi = function (e) { var t = s.We(e); if (t) {
4055
+ } }, this.qi = function (e) { var t = s.We(e); if (t) {
4071
4056
  var n = s.divLines, a = s.le, i = "x_" + e;
4072
4057
  if (!this.Ib.linesVertical[i]) {
4073
4058
  var o = t.left + t.width - 1, l = r();
4074
4059
  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.M("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.Ib.linesVertical[i] = l;
4075
4060
  }
4076
- } }, this.if = function () { s.le = s.ri(s.rowlist); }, this.ri = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
4061
+ } }, this.jf = function () { s.le = s.si(s.rowlist); }, this.si = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
4077
4062
  var a = e[n];
4078
4063
  a.top = t, t += a.height;
4079
- } return t; }, this.nf = function () { s.elements.cells = [], s.Ib.cells = [], s.divCells.innerHTML = "", s.si(); }, this.si = function () { s.divLines.innerHTML = "", s.Ib.linesVertical = {}, s.Ib.linesHorizontal = {}, s.elements.linesVertical = []; }, this.Cf = function (e) { var t = []; for (var n in s.Ib.cells)
4064
+ } return t; }, this.of = function () { s.elements.cells = [], s.Ib.cells = [], s.divCells.innerHTML = "", s.vi(); }, this.vi = function () { s.divLines.innerHTML = "", s.Ib.linesVertical = {}, s.Ib.linesHorizontal = {}, s.elements.linesVertical = []; }, this.Df = function (e) { var t = []; for (var n in s.Ib.cells)
4080
4065
  t.push(s.Ib.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.qb(e); }); }, this.rd = function (e, t) { if (this.Ra) {
4081
4066
  var n = s.We(e);
4082
4067
  if (n) {
4083
4068
  var a = s.rowlist, i = s.divCells, o = e + "_" + t;
4084
4069
  if (!this.Ib.cells[o]) {
4085
- var l = this.vi(e, t), d = s.wi(e, t), c = r();
4070
+ var l = this.wi(e, t), d = s.xi(e, t), c = r();
4086
4071
  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.M("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
4087
4072
  if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.jb(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.M("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.M("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
4088
4073
  switch (c.style.display = "flex", l.horizontalAlignment) {
@@ -4131,20 +4116,20 @@ var DayPilot = { Global: {} };
4131
4116
  } }(), i.appendChild(c), this.elements.cells.push(c), this.Ib.cells[o] = c;
4132
4117
  }
4133
4118
  }
4134
- } }, this.wi = function (e, t) { var n = s.We(e); if (!n)
4135
- return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Mg(a), properties: s.vi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
4119
+ } }, this.xi = function (e, t) { var n = s.We(e); if (!n)
4120
+ return null; var a = s.rowlist[t], i = a.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: i, row: s.Ng(a), properties: s.wi(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
4136
4121
  var d = e + "_" + t;
4137
- if (s.beforeCellRenderCaching && s.of[d])
4122
+ if (s.beforeCellRenderCaching && s.pf[d])
4138
4123
  return l;
4139
- s.of[d] = !0, this.onBeforeCellRender(l);
4140
- } return l; }, this.clearSelection = function () { this.xi(); }, this.yi = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ve(n), i = s.Ye(e); if (!i.current)
4124
+ s.pf[d] = !0, this.onBeforeCellRender(l);
4125
+ } return l; }, this.clearSelection = function () { this.yi(); }, this.zi = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var a = s.ve(n), i = s.Ye(e); if (!i.current)
4141
4126
  throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var r = s.Ye(new DayPilot.Date(t).addMilliseconds(-1)); if (!r.current)
4142
- throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.yi(e, t, n); s.Mf(i), a || setTimeout(function () { s.If(i); }, 0); }, this.Gf = function () { var e = t.Ag && t.Ag.source; e && DayPilot.Util.removeClass(e, s.M("_event_moving_source")), DayPilot.de(t.Ag), t.Ag = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.xi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Lf = null, s.zi = null; }, l.Vd = function () { delete s.Ib.headerHeight; }, l.ea = function () { return "Disabled" !== s.xssProtection; }, l.Te = function () { return DayPilot.Locale.find(s.locale); }, l.bi = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Te().timeFormat; }, l.fa = function () { if ("Auto" === s.weekStarts) {
4127
+ throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var o = {}; return o.start = { y: a.index, x: i.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o; }, this.selectTimeRange = function (e, t, n, a) { var i = s.zi(e, t, n); s.Nf(i), a || setTimeout(function () { s.Jf(i); }, 0); }, this.Hf = function () { var e = t.Bg && t.Bg.source; e && DayPilot.Util.removeClass(e, s.M("_event_moving_source")), DayPilot.de(t.Bg), t.Bg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ef = function () { DayPilot.de(t.wg), t.wg = null; }, this.yi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Mf = null, s.Ai = null; }, l.Vd = function () { delete s.Ib.headerHeight; }, l.ea = function () { return "Disabled" !== s.xssProtection; }, l.Te = function () { return DayPilot.Locale.find(s.locale); }, l.ci = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Te().timeFormat; }, l.fa = function () { if ("Auto" === s.weekStarts) {
4143
4128
  var e = l.Te();
4144
4129
  return e ? e.weekStarts : 0;
4145
- } return s.weekStarts || 0; }, l.Jg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.qg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Ze() * 1e3; }, l.Hh = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
4146
- return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.Bh = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
4147
- return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.vi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
4130
+ } return s.weekStarts || 0; }, l.Kg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.rg = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Ze() * 1e3; }, l.Ih = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
4131
+ return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.Ch = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
4132
+ return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.wi = function (e, t) { var n = e + "_" + t, a = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
4148
4133
  return this.cellProperties[n]; if (!this.cellProperties[n]) {
4149
4134
  var i = a[t], r = i.id, o = s.We(e), l = o.start, d = o.end, c = {};
4150
4135
  c.start = l, c.end = d, c.resource = r;
@@ -4165,7 +4150,7 @@ var DayPilot = { Global: {} };
4165
4150
  return !0;
4166
4151
  if (r >= l)
4167
4152
  return !1;
4168
- } return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.Ai = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Pe() + 2), this.na(); }, this.setHeight = this.Ai, this.ve = function (e) { return s.Qg(e)[0]; }, this.Hb = function () { if (this.id && this.id.tagName)
4153
+ } return !0; }, this.z = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.Bi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Pe() + 2), this.na(); }, this.setHeight = this.Bi, this.ve = function (e) { return s.Rg(e)[0]; }, this.Hb = function () { if (this.id && this.id.tagName)
4169
4154
  this.nav.top = this.id;
4170
4155
  else {
4171
4156
  if ("string" != typeof this.id)
@@ -4177,7 +4162,7 @@ var DayPilot = { Global: {} };
4177
4162
  if (this.nav.top.dp === s)
4178
4163
  return s;
4179
4164
  throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
4180
- } return this.Bi(), this.kh(), this; }, this.Bi = function () { this.Yg(), this.Ab(), this.ca(), this.wh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.Bb(); var angular = s.Me.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.rf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.pf(), this.Gb(), this.Ra = !0; var t = s.qe; t ? s.scrollTo(t) : s.rf(); }, this.Fb = null, this.Db = function (e) { if (e) {
4165
+ } return this.Ci(), this.lh(), this; }, this.Ci = function () { this.Zg(), this.Ab(), this.ca(), this.xh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.Bb(); var angular = s.Me.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.sf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.qf(), this.Gb(), this.Ra = !0; var t = s.qe; t ? s.scrollTo(t) : s.sf(); }, this.Fb = null, this.Db = function (e) { if (e) {
4181
4166
  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.pe(this.data); } }, "scrollX": { "postInit": function () { this.data && s.te(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Oe(this.data); } }, "zoom": { "preInit": function () { var e = this.data; if ("string" == typeof e) {
4182
4167
  var t = e;
4183
4168
  e = s.zoom.Oa(t);
@@ -4209,44 +4194,44 @@ var DayPilot = { Global: {} };
4209
4194
  } }, this.Ya.eb = function (e, t) { var n = s.Ya.Xa; if ("function" == typeof n.render) {
4210
4195
  var a = e;
4211
4196
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
4212
- } }, this.Ya.ab = function (e) { var t = s.Ya.Xa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.Df, this.internal.adjustEndNormalize = s.Ef, this.internal.xssTextHtml = s.jb, this.internal.touch = s.ne, this.internal.skipUpdate = s.Me.skipUpdate, this.internal.skipped = s.Me.skipped, this.internal.loadOptions = s.Db, this.internal.postInit = s.Gb, this.internal.enableAngular2 = function () { s.Me.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Me.fg = !0; }, this.internal.resourcesFromAttr = function () { s.Me.og = !0; }, this.internal.evImmediateRefresh = function () { s.events.Hf(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.Za.react = e, s.Za.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.Za, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ya.Xa = e; }, this.internal.vueRef = function () { return s.Ya.Xa; }, this.internal.vueRendering = function () { return s.Ya._a; }, this.Db(o);
4197
+ } }, this.Ya.ab = function (e) { var t = s.Ya.Xa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.Ef, this.internal.adjustEndNormalize = s.Ff, this.internal.xssTextHtml = s.jb, this.internal.touch = s.ne, this.internal.skipUpdate = s.Me.skipUpdate, this.internal.skipped = s.Me.skipped, this.internal.loadOptions = s.Db, this.internal.postInit = s.Gb, this.internal.enableAngular2 = function () { s.Me.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Me.gg = !0; }, this.internal.resourcesFromAttr = function () { s.Me.pg = !0; }, this.internal.evImmediateRefresh = function () { s.events.If(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.Za.react = e, s.Za.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.Za, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ya.Xa = e; }, this.internal.vueRef = function () { return s.Ya.Xa; }, this.internal.vueRendering = function () { return s.Ya._a; }, this.Db(o);
4213
4198
  }, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
4214
4199
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
4215
- throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.Ci = {}; var n = this.Ci; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; 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.Di = 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 () { for (var e = [], t = 0; t < a.Di.events.length; t++)
4216
- e.push(a.Di.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.Di.events.length; }, a.events.forRange = function (e, t) { return a.Di.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); }; }, t.af = null, t.zg = null, t.Rh = null, t.sg = null, t.wg = null, t._e = !1, t.rh = !1, t.hi = null, t.Ei = null, t.Ac = function () { DayPilot.ue(document, "mouseup", t.ke), DayPilot.ue(document, "touchmove", t.uh), DayPilot.ue(document, "touchend", t.vh), t.rh = !1; }, t.uh = function (e) { if (t.sg) {
4217
- var n = t.sg.event.calendar;
4218
- n.coords = n.ne.Vh(e), n.ne.$h(), e.preventDefault();
4200
+ throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.Di = {}; var n = this.Di; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; 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.Ei = 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 () { for (var e = [], t = 0; t < a.Ei.events.length; t++)
4201
+ e.push(a.Ei.events[t]); return e; }, a.events.isEmpty = function () { return 0 === a.Ei.events.length; }, a.events.forRange = function (e, t) { return a.Ei.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); }; }, t.af = null, t.Ag = null, t.Sh = null, t.tg = null, t.xg = null, t._e = !1, t.uh = !1, t.ii = null, t.Fi = null, t.Ac = function () { DayPilot.ue(document, "mouseup", t.ke), DayPilot.ue(document, "touchmove", t.vh), DayPilot.ue(document, "touchend", t.wh), t.uh = !1; }, t.vh = function (e) { if (t.tg) {
4202
+ var n = t.tg.event.calendar;
4203
+ n.coords = n.ne.Wh(e), n.ne._h(), e.preventDefault();
4219
4204
  } if (t.af) {
4220
4205
  e.preventDefault();
4221
- var n = t.zg.calendar;
4222
- n.coords = n.ne.Vh(e), n.ne._h();
4223
- } }, t.vh = function (e) { t.gh = !1, t.ke(e); }, t.ke = function (e) { if (t.sg) {
4224
- var a = function () { var e = t.wg, n = e.calendar; i().style.cursor = "", t.sg = null, t.wg = null, DayPilot.de(t.vg), t.vg = null, n && (n.Fi = null); };
4225
- if (setTimeout(function () { t._e = !1; }), !t.vg)
4206
+ var n = t.Ag.calendar;
4207
+ n.coords = n.ne.Wh(e), n.ne.ai();
4208
+ } }, t.wh = function (e) { t.hh = !1, t.ke(e); }, t.ke = function (e) { if (t.tg) {
4209
+ var a = function (e) { var n = t.xg, a = n.calendar; i().style.cursor = "", t.tg = null, t.xg = null, e || (DayPilot.de(t.wg), t.wg = null), a && (a.Gi = null); };
4210
+ if (setTimeout(function () { t._e = !1; }), !t.wg)
4226
4211
  return void a();
4227
- var r = t.wg, o = r.calendar, s = t.vg.start, l = t.vg.end, d = "left" === t.sg.dpBorder ? "start" : "end";
4228
- a(), o.L(r, s, l, d, e);
4212
+ var r = t.xg, o = r.calendar, s = t.wg.start, l = t.wg.end, d = "left" === t.tg.dpBorder ? "start" : "end";
4213
+ a(!0), o.L(r, s, l, d, e);
4229
4214
  }
4230
- else if (t.zg) {
4231
- var a = function () { DayPilot.Global.movingAreaData = null; var e = t.Ag && t.Ag.calendar; t.Ag && (DayPilot.de(t.Ag), t.Ag.calendar = null), i().style.cursor = "", t.af = null, t.zg = null, e && (e.Ff = null); };
4232
- if (!t.Ag)
4215
+ else if (t.Ag) {
4216
+ var a = function () { DayPilot.Global.movingAreaData = null; var e = t.Bg && t.Bg.calendar; t.Bg && (DayPilot.de(t.Bg), t.Bg.calendar = null), i().style.cursor = "", t.af = null, t.Ag = null, e && (e.Gf = null); };
4217
+ if (!t.Bg)
4233
4218
  return void a();
4234
- var r = t.zg, o = t.Ag.calendar;
4219
+ var r = t.Ag, o = t.Bg.calendar;
4235
4220
  if (!o)
4236
4221
  return void a();
4237
- if (t.Ag.source = t.af, !t.Ag.row)
4222
+ if (t.Bg.source = t.af, !t.Bg.row)
4238
4223
  return void a();
4239
- var s = t.Ag.start, l = t.Ag.end, c = t.Ag.row.id;
4240
- t.Ag.calendar = null, i().style.cursor = "", t.af = null, t.zg = null, o.N(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
4224
+ var s = t.Bg.start, l = t.Bg.end, c = t.Bg.row.id;
4225
+ t.Bg.calendar = null, i().style.cursor = "", t.af = null, t.Ag = null, o.N(r, s, l, c, e), DayPilot.Global.movingAreaData = null;
4241
4226
  }
4242
- else if (t.Yh) {
4243
- var u = DayPilot.Util.mouseButton(e), h = t.Yh, f = h.calendar, a = function () { };
4244
- if (f.zi = null, t.hi)
4245
- return clearTimeout(t.hi), t.hi = null, void a();
4246
- f.Lf = h, t.Yh = null;
4247
- var v = function (e) { return function () { t.hi = null, f.If(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Lf = e; }; }, p = f.li(h);
4248
- return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.hi = null);
4249
- } t.Uh = null, t.rg = null; };
4227
+ else if (t.Zh) {
4228
+ var u = DayPilot.Util.mouseButton(e), h = t.Zh, f = h.calendar, a = function () { };
4229
+ if (f.Ai = null, t.ii)
4230
+ return clearTimeout(t.ii), t.ii = null, void a();
4231
+ f.Mf = h, t.Zh = null;
4232
+ var v = function (e) { return function () { t.ii = null, f.Jf(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Mf = e; }; }, p = f.mi(h);
4233
+ return a(), u.left ? (v(p)(), e.cancelBubble = !0, !1) : void (t.ii = null);
4234
+ } t.Vh = null, t.sg = null; };
4250
4235
  }
4251
4236
  }(DayPilot);
4252
4237